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

Morley.Client.Action.Operation

Description

Implementation of generic operations submission.

Synopsis

Documentation

runOperations :: forall m env. (HasTezosRpc m, HasTezosClient m, WithClientLog env m) => AddressOrAlias -> [Either TransactionData OriginationData] -> m (Maybe OperationHash, [Either () Address]) 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 (Either TransactionData OriginationData) -> m (OperationHash, NonEmpty (Either () Address)) 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 (Either TransactionData OriginationData) -> 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.