| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Morley.Client.TezosClient.Types
Contents
Description
Types used for interaction with tezos-client.
Synopsis
- class CmdArg a where
- addressResolved :: ToAddress addr => addr -> AddressOrAlias
- data CalcOriginationFeeData cp st = CalcOriginationFeeData {
- cofdFrom :: AddressOrAlias
- cofdBalance :: TezosMutez
- cofdMbFromPassword :: Maybe ScrubbedBytes
- cofdContract :: Contract cp st
- cofdStorage :: Value st
- cofdBurnCap :: TezosInt64
- data CalcTransferFeeData = forall t.UntypedValScope t => CalcTransferFeeData {
- ctfdTo :: AddressOrAlias
- 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
| CmdArg Word16 Source # | |
| CmdArg ByteString Source # | |
Defined in Morley.Client.TezosClient.Types Methods toCmdArg :: ByteString -> String Source # | |
| CmdArg EpName Source # | |
Defined in Morley.Client.TezosClient.Types | |
| CmdArg Address Source # | |
Defined in Morley.Client.TezosClient.Types | |
| CmdArg AddressOrAlias Source # | |
Defined in Morley.Client.TezosClient.Types | |
| CmdArg Alias Source # | |
Defined in Morley.Client.TezosClient.Types | |
| CmdArg Mutez Source # | |
Defined in Morley.Client.TezosClient.Types | |
| CmdArg SecretKey Source # | |
Defined in Morley.Client.TezosClient.Types | |
| CmdArg OperationHash Source # | |
Defined in Morley.Client.TezosClient.Types Methods toCmdArg :: OperationHash -> String Source # | |
| CmdArg BaseUrl Source # | |
| CmdArg Text Source # | |
| CmdArg LText Source # | |
| ProperUntypedValBetterErrors t => CmdArg (Value t) Source # | |
Defined in Morley.Client.TezosClient.Types | |
| CmdArg (Contract cp st) Source # | |
Defined in Morley.Client.TezosClient.Types | |
addressResolved :: ToAddress addr => addr -> AddressOrAlias Source #
Creates an AddressOrAlias with the given address.
data CalcOriginationFeeData cp st Source #
Data required for calculating fee for origination operation.
Constructors
| CalcOriginationFeeData | |
Fields
| |
data CalcTransferFeeData Source #
Data required for calculating fee for transfer operation.
Constructors
| forall t.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 # | |