Solidity API
Executable
Contract module that allows children to implement rollup execution mechanisms.
This module is supposed to be used in layer 2 (execution layer).
bridgeAddressExecutable
address bridgeAddressExecutable
ROLLUP_ADMIN_ROLE
bytes32 ROLLUP_ADMIN_ROLE
SETTLE
uint16 SETTLE
_epoch
uint8 _epoch
_state
bytes32 _state
_startBlock
uint256 _startBlock
EmitRollupMsg
event EmitRollupMsg(struct RollupMsg messages)
BlockNumber
event BlockNumber(uint256)
NewEpoch
event NewEpoch(uint8)
constructor
constructor(address bridgeAddress) internal
_emitRollupMsg
function _emitRollupMsg(struct RollupStateContext ctx, uint16 tag, bytes key, bytes value) internal
Emits a {EmitRollupMsg} event with rollup state.
_executeRollup
function _executeRollup(uint8 destDomainID, bytes32 resourceID, uint64 batchSize) internal
Executes rollup.
Emits a {NewEpoch} event.
_saveContext
function _saveContext(struct RollupStateContext ctx) internal
Emits a {BlockNumber} event.
_getReadContext
function _getReadContext() internal view returns (struct RollupStateContext)
_getWriteContext
function _getWriteContext() internal view returns (struct RollupStateContext)