Skip to main content

Module batch

Module batch 

Source
Expand description

documents_batch

Modules§

batched_transition
batched transition
v0
v0

Structs§

ResolvedContractGroupMemberships
A contract’s group memberships as the batch transformer read them, with the fee of that read. The fee travels with the data, like a contract’s fetch info: the transformer does not bill it, the check that uses the answer does, so a batch signed by an ordinary key pays nothing for it.
ResolvedDocumentActionFee
The action fee one document transition of a batch owes (protocol version 14): what its document type declares for the action, priced for the epoch the batch executes in.
ResolvedGasSponsor
The contract owner a batch asks to pay its gas, with the balance the batch transformer read for them. Resolved from protocol version 14, and only when the contract owner is not the batch’s own signer: fee validation checks the fee against this balance, and execution charges this identity instead of the signer when it covers the fee. A batch that failed validation is never sponsored, whatever it asked for: its signer pays for the work that ran.

Enums§

BatchTransitionAction
documents batch transition action
GasPayer
Who pays the gas of a whole batch, as GasFeesPaidBy::resolve names it for each of its transitions

Functions§

action_fee_operations
The operations that charge action_fees to payer_id: one removal from the payer’s balance and one addition per contract fee pot that receives something. Empty when nothing is owed.
action_fees_total
What payer_id owes for all of action_fees.