| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Morley.Client.TezosClient.Types
Contents
Description
Types used for interaction with tezos-client.
Synopsis
- class CmdArg a where
- data CalcOriginationFeeData cp st = forall kind.CalcOriginationFeeData {
- cofdFrom :: AddressOrAlias kind
- cofdBalance :: TezosMutez
- cofdMbFromPassword :: Maybe ScrubbedBytes
- cofdContract :: Contract cp st
- cofdStorage :: Value st
- cofdBurnCap :: TezosInt64
- data CalcTransferFeeData = forall t kind.UntypedValScope t => CalcTransferFeeData {
- ctfdTo :: AddressOrAlias kind
- ctfdParam :: Value t
- ctfdEp :: EpName
- ctfdAmount :: TezosMutez
- newtype TezosClientConfig = TezosClientConfig {}
- data TezosClientEnv = TezosClientEnv {}
- class HasTezosClientEnv env where
- tezosClientEnvL :: Lens' env TezosClientEnv
- data SecretKeyEncryption
- tceEndpointUrlL :: Lens' TezosClientEnv BaseUrl
- tceTezosClientPathL :: Lens' TezosClientEnv FilePath
- tceMbTezosClientDataDirL :: Lens' TezosClientEnv (Maybe FilePath)
Documentation
An object that can be put as argument to a tezos-client command-line call.
Minimal complete definition
Nothing
Instances
data CalcOriginationFeeData cp st Source #
Data required for calculating fee for origination operation.
Constructors
| forall kind. CalcOriginationFeeData | |
Fields
| |
data CalcTransferFeeData Source #
Data required for calculating fee for transfer operation.
Constructors
| forall t kind.UntypedValScope t => CalcTransferFeeData | |
Fields
| |
Instances
| ToJSON CalcTransferFeeData Source # | |
Defined in Morley.Client.TezosClient.Types Methods toJSON :: CalcTransferFeeData -> Value # toEncoding :: CalcTransferFeeData -> Encoding # toJSONList :: [CalcTransferFeeData] -> Value # toEncodingList :: [CalcTransferFeeData] -> Encoding # | |
newtype TezosClientConfig Source #
Configuration maintained by tezos-client, see its config subcommands
(e. g. tezos-client config show).
Only the field we are interested in is present here.
Constructors
| TezosClientConfig | |
Fields | |
Instances
| FromJSON TezosClientConfig Source # | For reading tezos-client config. |
Defined in Morley.Client.TezosClient.Types Methods parseJSON :: Value -> Parser TezosClientConfig # parseJSONList :: Value -> Parser [TezosClientConfig] # | |
| Show TezosClientConfig Source # | |
Defined in Morley.Client.TezosClient.Types Methods showsPrec :: Int -> TezosClientConfig -> ShowS # show :: TezosClientConfig -> String # showList :: [TezosClientConfig] -> ShowS # | |
data TezosClientEnv Source #
Runtime environment for tezos-client bindings.
Constructors
| TezosClientEnv | |
Fields
| |
class HasTezosClientEnv env where Source #
Using this type class one can require MonadReader constraint
that holds any type with TezosClientEnv inside.
Methods
tezosClientEnvL :: Lens' env TezosClientEnv Source #
Instances
| HasTezosClientEnv (MorleyClientEnv' m) Source # | |
Defined in Morley.Client.Env Methods tezosClientEnvL :: Lens' (MorleyClientEnv' m) TezosClientEnv Source # | |
data SecretKeyEncryption Source #
Representation of address secret key encryption type
Constructors
| UnencryptedKey | |
| EncryptedKey | |
| LedgerKey |
Instances
| Show SecretKeyEncryption Source # | |
Defined in Morley.Client.TezosClient.Types Methods showsPrec :: Int -> SecretKeyEncryption -> ShowS # show :: SecretKeyEncryption -> String # showList :: [SecretKeyEncryption] -> ShowS # | |
| Eq SecretKeyEncryption Source # | |
Defined in Morley.Client.TezosClient.Types Methods (==) :: SecretKeyEncryption -> SecretKeyEncryption -> Bool # (/=) :: SecretKeyEncryption -> SecretKeyEncryption -> Bool # | |