| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Morley.Client.TezosClient
Description
Interface to tezos-client (and its implementation).
Synopsis
- module Morley.Client.TezosClient.Class
- module Morley.Client.TezosClient.Types
- data TezosClientError
- = UnexpectedClientFailure Int Text Text
- | UnknownAddressAlias Alias
- | UnknownAddress Address
- | AlreadyRevealed Alias
- | InvalidOperationHash OperationHash
- | CounterIsAlreadyUsed Text Text
- | EConnreset
- | ConfigParseError String
- | TezosClientCryptoParseError Text CryptoParseError
- | TezosClientParseAddressError Text ParseAddressError
- | TezosClientParseFeeError Text Text
- | TezosClientUnexpectedOutputFormat Text
- | CantRevealContract Alias
- | ContractSender Address Text
- | EmptyImplicitContract Alias
- | TezosClientUnexpectedSignatureOutput Text
- | TezosClientParseEncryptionTypeError Text Text
- resolveAddress :: (MonadThrow m, HasTezosClient m) => AddressOrAlias -> m Address
Documentation
data TezosClientError Source #
A data type for all predicatable errors that can happen during
tezos-client usage.
Constructors
| UnexpectedClientFailure |
|
| UnknownAddressAlias | Could not find an address with given name. |
Fields
| |
| UnknownAddress | Could not find an address. |
Fields
| |
| AlreadyRevealed | Public key of the given address is already revealed. |
Fields
| |
| 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. |
| EConnreset | Network error with which |
| ConfigParseError String | A parse error occurred during config parsing. |
| TezosClientCryptoParseError Text CryptoParseError |
|
| TezosClientParseAddressError Text ParseAddressError |
|
| TezosClientParseFeeError Text Text |
|
| TezosClientUnexpectedOutputFormat Text |
|
| CantRevealContract | Given alias is a contract and cannot be revealed. |
Fields
| |
| ContractSender Address Text | Given contract is a source of a transfer or origination operation. |
| EmptyImplicitContract | Given alias is an empty implicit contract. |
Fields
| |
| TezosClientUnexpectedSignatureOutput Text |
|
| TezosClientParseEncryptionTypeError Text Text |
|
Instances
| Eq TezosClientError Source # | |
Defined in Morley.Client.TezosClient.Impl Methods (==) :: TezosClientError -> TezosClientError -> Bool # (/=) :: TezosClientError -> TezosClientError -> Bool # | |
| Show TezosClientError Source # | |
Defined in Morley.Client.TezosClient.Impl Methods showsPrec :: Int -> TezosClientError -> ShowS # show :: TezosClientError -> String # showList :: [TezosClientError] -> ShowS # | |
| Exception TezosClientError Source # | |
Defined in Morley.Client.TezosClient.Impl Methods toException :: TezosClientError -> SomeException # | |
| Buildable TezosClientError Source # | |
Defined in Morley.Client.TezosClient.Impl Methods build :: TezosClientError -> Builder # | |
resolveAddress :: (MonadThrow m, HasTezosClient m) => AddressOrAlias -> m Address Source #
Return Address corresponding to given AddressOrAlias.