pub enum ActionAnchor {
BeforeSlot {
slots: Vec<u64>,
},
AfterSlot {
slots: Vec<u64>,
},
BeforeEverySlot {
every_n_slots: NonZeroU64,
},
AfterEverySlot {
every_n_slots: NonZeroU64,
},
BeforeBatch {
batches: Vec<BatchPosition>,
},
BeforeMatch {
filter: DiscoveryFilter,
},
AfterMatch {
filter: DiscoveryFilter,
},
AfterChange {
accounts: NonEmptyAccounts,
},
}Expand description
Where a ScheduledAction fires.
Tagged by at: {"at": "afterEverySlot", "everyNSlots": 10}.
Variants§
BeforeSlot
At the start of each slot, before its transactions execute and before reroute quoting. Fires the entry for the current slot, if any.
Fields
AfterSlot
At the end of each slot, after its transactions execute but before it finalizes. Fires the entry for the current slot, if any.
Fields
slots: Vec<u64>As for Self::BeforeSlot.
BeforeEverySlot
Where beforeSlot fires, at every slot that is a multiple of
every_n_slots. The whole sequence fires at each, so a sequence repeated
across a range is sent once rather than once per slot. A slot that
carried no block fires nothing.
Fields
every_n_slots: NonZeroU64Wire name everyNSlots. Default 1: every slot.
AfterEverySlot
Where afterSlot fires, at every slot that is a multiple of
every_n_slots. The whole sequence fires at each. A slot that carried no
block fires nothing.
Fields
every_n_slots: NonZeroU64Wire name everyNSlots. Default 1: every slot.
BeforeBatch
Fires entry i of transactions alone before batches[i].
Fields
batches: Vec<BatchPosition>Parallel to transactions.
BeforeMatch
Before each batch matching filter executes. The whole sequence fires at
each matching batch.
Fields
filter: DiscoveryFilterWhich batches to fire before.
AfterMatch
After each batch matching filter commits. The whole sequence fires at
each matching batch.
Fields
filter: DiscoveryFilterWhich batches to fire after.
AfterChange
After each batch that changed one of accounts, decided from the state the batch left
rather than from the accounts its transactions lock. The whole sequence fires at each such
batch. Only under replayAccountState, whose recording holds the accounts each batch
changed.
Fields
accounts: NonEmptyAccountsThe accounts whose change fires the sequence.