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

Morley.Client.Action.Batched

Description

Primitives for running batched operations with a neat interface.

Synopsis

Documentation

newtype OperationsBatch a Source #

Where the batched operations occur.

Example:

runOperationsBatch mySender $ do
  addr <- originateContractM ...
  runTransactionM ...
  return addr

Note that this is not a Monad, rather an Applicative - use -XApplicativeDo extension for nicer experience.

Constructors

OperationsBatch 

originateContractM :: OriginationData -> OperationsBatch ContractAddress Source #

Perform origination within a batch.

runTransactionM :: TransactionData -> OperationsBatch [IntOpEvent] Source #

Perform transaction within a batch.

revealKeyM :: RevealData -> OperationsBatch () Source #

Perform key revealing within a batch.

runOperationsBatch :: (HasTezosRpc m, HasTezosClient m, WithClientLog env m) => ImplicitAddressOrAlias -> OperationsBatch a -> m (Maybe OperationHash, a) Source #

Execute a batch.