morley-client-0.2.1: Client to interact with the Tezos blockchain
Safe HaskellSafe-Inferred
LanguageHaskell2010

Morley.Client.TezosClient

Description

Interface to tezos-client (and its implementation).

Synopsis

Documentation

data TezosClientError Source #

A data type for all predicatable errors that can happen during tezos-client usage.

Constructors

UnexpectedClientFailure

tezos-client call unexpectedly failed (returned non-zero exit code). The error contains the error code, stdout and stderr contents.

Fields

UnknownAddressAlias

Could not find an address with given name.

Fields

  • Text

    Name of address which is eventually used

UnknownAddress

Could not find an address.

Fields

  • Address

    Address that is not present in local tezos cache

AlreadyRevealed

Public key of the given address is already revealed.

Fields

  • ImplicitAlias

    Address alias that has already revealed its key

InvalidOperationHash OperationHash

Can't wait for inclusion of operation with given hash because the hash is invalid.

CounterIsAlreadyUsed

Error that indicates when given counter is already used for given contract.

Fields

EConnreset

Network error with which tezos-client fails from time to time.

ConfigParseError String

A parse error occurred during config parsing.

TezosClientCryptoParseError Text CryptoParseError

tezos-client produced a cryptographic primitive that we can't parse.

TezosClientParseAddressError Text ParseAddressError

tezos-client produced an address that we can't parse.

TezosClientParseFeeError Text Text

tezos-client produced invalid output for parsing baker fee

TezosClientUnexpectedOutputFormat Text

tezos-client printed a string that doesn't match the format we expect.

CantRevealContract

Given alias is a contract and cannot be revealed.

Fields

  • ImplicitAlias

    Address alias of implicit account

ContractSender ContractAddress Text

Given contract is a source of a transfer or origination operation.

EmptyImplicitContract

Given alias is an empty implicit contract.

Fields

  • ImplicitAlias

    Address alias of implicit contract

TezosClientUnexpectedSignatureOutput Text

tezos-client sign bytes produced unexpected output format

TezosClientParseEncryptionTypeError Text Text

tezos-client produced invalid output for parsing secret key encryption type.

resolveAddress :: (MonadThrow m, HasTezosClient m) => AddressOrAlias kind -> m (KindedAddress kind) Source #

Return KindedAddress corresponding to given AddressOrAlias.