Skip to main content

Solidity API

RollupStateContext

struct RollupStateContext {
bool _writable;
bytes32 _state;
uint256 _startBlock;
uint8 _epoch;
}

RollupMsgType

enum RollupMsgType {
Map
}

KeyValuePair

struct KeyValuePair {
bytes key;
bytes value;
}

RollupMsg

struct RollupMsg {
enum RollupMsgType ty;
uint16 tag;
bytes data;
}

RollupStateType

enum RollupStateType {
Map
}

RollupState

struct RollupState {
enum RollupStateType ty;
uint64 idx;
uint16 tag;
bytes records;
}

RollupStateHeader

struct RollupStateHeader {
enum RollupStateType ty;
uint64 idx;
uint16 tag;
}

RollupInfo

struct RollupInfo {
uint8 originDomainID;
uint64 nonce;
bytes32 stateRootHash;
bytes32 msgRootHash;
uint64 totalBatch;
address sender;
}