morley-client-0.3.1: Client to interact with the Tezos blockchain
Safe HaskellSafe-Inferred
LanguageHaskell2010

Morley.Client.Action.Operation

Contents

Description

Implementation of generic operations submission.

Synopsis

Documentation

data Result Source #

Designates output of an operation.

runOperations :: forall m env. (HasTezosRpc m, HasTezosClient m, WithClientLog env m) => ImplicitAddressWithAlias -> [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) => ImplicitAddressWithAlias -> 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).

helpers

dryRunOperationsNonEmpty :: forall m env. (HasTezosRpc m, HasTezosClient m, WithClientLog env m) => ImplicitAddressWithAlias -> 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.