morley-client-0.1.1: Client to interact with the Tezos blockchain
Safe HaskellNone
LanguageHaskell2010

Morley.Client.Action.Operation

Description

Implementation of generic operations submission.

Synopsis

Documentation

data Result Source #

Designates output of an operation.

Instances

Instances details
OperationInfoDescriptor Result Source # 
Instance details

Defined in Morley.Client.Action.Operation

type TransferInfo Result Source # 
Instance details

Defined in Morley.Client.Action.Operation

type OriginationInfo Result Source # 
Instance details

Defined in Morley.Client.Action.Operation

type OriginationInfo Result = Address
type RevealInfo Result Source # 
Instance details

Defined in Morley.Client.Action.Operation

type RevealInfo Result = ()

runOperations :: forall m env. (HasTezosRpc m, HasTezosClient m, WithClientLog env m) => AddressOrAlias -> [OperationInfo ClientInput] -> m (Maybe OperationHash, [OperationInfo Result]) Source #

Perform sequence of operations.

Returns operation hash (or Nothing in case empty list was provided) and result of each operation (nothing for transactions and an address for originated contracts

runOperationsNonEmpty :: forall m env. (HasTezosRpc m, HasTezosClient m, WithClientLog env m) => AddressOrAlias -> NonEmpty (OperationInfo ClientInput) -> m (OperationHash, NonEmpty (OperationInfo Result)) Source #

Perform non-empty sequence of operations.

Returns operation hash and result of each operation (nothing for transactions and an address for originated contracts).

dryRunOperationsNonEmpty :: forall m env. (HasTezosRpc m, HasTezosClient m, WithClientLog env m) => AddressOrAlias -> NonEmpty (OperationInfo ClientInput) -> m (NonEmpty (AppliedResult, TezosMutez)) Source #

Perform dry-run for sequence of operations.

Returned AppliedResult contains information about estimated limits, storage changes, etc. Additionally, estimated fees are returned.