Module offchain_storage

Source
Expand description

Offchain storage for MSA pallet

Structs§

FinalizedBlockResponse
Response type of rpc to get finalized block

Enums§

IndexedEvent
Offchain indexed compatible Event type
MsaOffchainReplayEvent
The Offchain replay type for Msa Pallet that can allow replay of different events
OffchainReplayEvent
The overarching Offchain replay type that can allow replay of different events across different pallets

Constants§

HTTP_REQUEST_DEADLINE_MS
HTTP request deadline in milliseconds
LAST_PROCESSED_BLOCK_STORAGE_NAME
lst processed block storage name
MSA_INITIAL_INDEXED_STORAGE_NAME
storage name for initial data import storage
RPC_FINALIZED_BLOCK_REQUEST_BODY
request body for getting last finalized block from rpc
RPC_FINALIZED_BLOCK_REQUEST_URL
LOCAL RPC URL and port warning: this should be updated if rpc port is set to anything different from 9944

Functions§

do_offchain_worker
offchain worker main execution function
get_bucket_number
converts an event to a number between [1, MAX_FORK_AWARE_BUCKET]
offchain_index_event
stores the event into offchain DB using offchain indexing

Type Aliases§

MessageSourceId
Message Source Id or msaId is the unique identifier for Message Source Accounts