Context interfaces
A closer look at the Context types passed to the mappers
StoreContext
StoreContext
is a type indicating that the mappings context is aware of the store
property of type DatabaseManager
. DatabaseManager
is a wrapper interface incapsulating the persistence layer:
BlockContext
Contains information about the block: timestamp, height, hash, as well as the list of all events and extrinsics.
EventContext
Contains info about the event being handled and the extrinsic emitted the event. Since some events are emitted without an extrinsic (system event), the extrinsic
parameter is optional.
ExtrinsicContext
Passed to extrinsic handlers. Similar to EventContext
but extrinsic
is now a mandatory property.
Last updated