Clerk manages generic state-sync from Ethereum chain to Bor chain. Heimdall agrees on state sync, which is initiated on the Ethereum chain using this module.
More details: State sync mechanism
MsgEventRecord transaction is responsible for validating events from
StateSender.sol and storing the state on Heimdall for Bor to use.
Handler for this transaction validates for any given
msg.LogIndex. It throws
Older invalid tx found error if trying to process the transaction more than once.
Here is the structure for the transaction message:
Send state record transaction
To query already validated state event record
|Event record details||GET||/clerk/event-record/<record-id>|
|All event records||GET||/clerk/event-record/list|