OPinit Module
This documentation provides an overview and detailed description of the Cosmos SDK based Rollup module OPinit, consisting of two primary components: ophost and opchild. These modules respectively handle Layer 1 and Layer 2 operations within the Initia ecosystem.
ophost Module: Layer 1 Operations
The ophost module is responsible for the Layer 1 (L1) side of operations. It includes message types and RPC handler methods for batch submission, bridge creation, output proposal, challenge management, and user-focused token transfer operations.
Message Types
MsgRecordBatch
RecordBatchdefines a rpc handler method for MsgRecordBatch.
MsgCreateBridge
CreateBridgedefines a rpc handler method for MsgCreateBridge.
MsgProposeOutput
ProposeOutputdefines a rpc handler method for MsgProposeOutput.
MsgDeleteOutput
DeleteOutputdefines a rpc handler method for MsgDeleteOutput.
MsgInitiateTokenDeposit
InitiateTokenDepositdefines a user facing L1 -> L2 token transfer interface.
MsgFinalizeTokenWithdrawal
FinalizeTokenWithdrawaldefines a user facing L2 -> L1 token transfer interface.
opchild Module: Layer 2 Operations
The opchild module manages the Layer 2 (L2) aspects of the rollup. It includes various message types and RPC handler methods to facilitate operations such as token transfers, validator management, parameter updates, and fee pool management.
Message Types
MsgExecuteMessages
ExecuteMessagesdefines a rpc handler method for MsgExecuteMessages.
MsgFinalizeTokenDeposit
FinalizeTokenDepositdefines a rpc handler method for MsgFinalizeTokenDeposit.
MsgInitiateTokenWithdrawal
InitiateTokenWithdrawaldefines a user facing L2 -> L1 token transfer interface.
Reference
Last updated