Initia (Closed Testnet)
  • Reminder
    • ⛔Confidentiality Disclaimer
  • WELCOME TO CLOSED TESTNET
    • Welcome to Closed Testnet
  • About Initia
    • What is the Initia Platform?
      • Architecture
        • Layer 1
        • Layer 2
      • Aligning Initia (coming soon!)
    • InitiaDEX
    • Enshrined Liquidity and Staking
  • Developers
    • Initiad
      • Download Initiad
      • Using Initiad
    • Get INIT token
    • Build your own Minitia
      • Simple Minitia Setup
      • Connect Minitia to L1
        • OPinit Stack
          • OPinit Module
          • OPinit Bots
        • Relayer
          • Fetching Oracle Prices
    • Virtual Machines
      • MoveVM
        • Interact with CLI
      • WasmVM
    • Contracts
      • Move Contracts
      • CosmWasm Contracts
      • EVM Contracts (Coming Soon)
    • Oracles
  • Initia Developer Tutorials
    • 1. Create account
    • 2. Send Move coin
    • 3. Interchain Message
    • 4. Create your own Move coin
    • 5. Create your own Move NFT
    • 6. Build and Publish Contracts
      • Move Module
      • CosmWasm Contract
  • Core Applications
    • Core Applications
      • Wallet
      • Initia App
      • Usernames
      • Initia Scan
  • Node Operators
    • Running Initia Node
      • Prerequisites
      • Oracle
      • Boot an Initia Node
      • Connect to Initia Network
      • Cosmovisor Guide
    • Configuring Initia Validator
  • References and Tools
    • Move Language
    • Rust Language (CosmWasm)
    • Closed Testnet Chain Information
    • Chain Parameters
    • Initia.js
    • API Docs
    • API Docs (minimove)
    • API Docs (miniwasm)
    • Whitelisted Tokens and Pairs
Powered by GitBook
On this page
  • ophost Module: Layer 1 Operations
  • opchild Module: Layer 2 Operations
  • Reference
  1. Developers
  2. Build your own Minitia
  3. Connect Minitia to L1
  4. OPinit Stack

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

PreviousOPinit StackNextOPinit Bots

Last updated 1 year ago

OPinit module