Documentation ¶
Index ¶
- func BatchReceptionIndex(logs []types.Log, l2BridgeAddress common.Address) []uint16
- func GetRollingHashUpdateTopic0() (res [32]byte)
- func IsL1L2MessageHashesAddedToInbox(log types.Log, l2BridgeAddress common.Address) bool
- func IsRollingHashUpdated(log ethtypes.Log, l2BridgeAddress common.Address) bool
- func L1L2MessageHashesAddedToInboxTopic0() common.Hash
- func L2L1MessageHashes(logs []ethtypes.Log, l2BridgeAddress common.Address) []types.FullBytes32
- func L2L1Topic0() (res [32]byte)
- func MsgConfirmSelector() []byte
- type L2L1Log
- type RollingHashUpdated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BatchReceptionIndex ¶
Batch reception index
func GetRollingHashUpdateTopic0 ¶
func GetRollingHashUpdateTopic0() (res [32]byte)
Returns the selector for RollingHashUpdated event.
func IsRollingHashUpdated ¶
func L1L2MessageHashesAddedToInboxTopic0 ¶
Is the L1L2MessageHashes event topic 0
func L2L1MessageHashes ¶
Returns the L2L1LogHashes from a list of logs and abi.encode them
func MsgConfirmSelector ¶
func MsgConfirmSelector() []byte
Returns the selector for the msg reception receipt
Types ¶
type L2L1Log ¶
type L2L1Log struct {
// contains filtered or unexported fields
}
L2L1Log message
func (L2L1Log) MsgHash ¶
func (l L2L1Log) MsgHash() types.FullBytes32
Returns the message hash of the log in hex format
type RollingHashUpdated ¶
type RollingHashUpdated struct { MessageNumber int64 `json:"messageNumber"` RollingHash types.FullBytes32 `json:"rollingHash"` }
Bridge-event emitted post-compression release to notify the prover that a message has been received on L2 from L1.
func ExtractRollingHashUpdated ¶
func ExtractRollingHashUpdated(logs []ethtypes.Log, l2BridgeAddress common.Address) []RollingHashUpdated
Scan the list of logs and returns the parsed `RollingHashUpdated` events that originated from the l2BridgeAddress.
func (*RollingHashUpdated) AsTypesLog ¶
func (l *RollingHashUpdated) AsTypesLog(l2BridgeAddress common.Address) ethtypes.Log
Click to show internal directories.
Click to hide internal directories.