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

  • RecordBatch defines a rpc handler method for MsgRecordBatch.

MsgCreateBridge

  • CreateBridge defines a rpc handler method for MsgCreateBridge.

MsgProposeOutput

  • ProposeOutput defines a rpc handler method for MsgProposeOutput.

MsgDeleteOutput

  • DeleteOutput defines a rpc handler method for MsgDeleteOutput.

MsgInitiateTokenDeposit

  • InitiateTokenDeposit defines a user facing L1 -> L2 token transfer interface.

MsgFinalizeTokenWithdrawal

  • FinalizeTokenWithdrawal defines 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

  • ExecuteMessages defines a rpc handler method for MsgExecuteMessages.

MsgFinalizeTokenDeposit

  • FinalizeTokenDeposit defines a rpc handler method for MsgFinalizeTokenDeposit.

MsgInitiateTokenWithdrawal

  • InitiateTokenWithdrawal defines a user facing L2 -> L1 token transfer interface.

Reference

Last updated