morley-client-0.1.0: Client to interact with the Tezos blockchain
Safe HaskellNone
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 

Fields

originateContractM :: OriginationData -> OperationsBatch Address Source #

Perform origination within a batch.

runTransactionM :: TransactionData -> OperationsBatch () Source #

Perform transaction within a batch.