GTON Capital | GC
  • GTON Capital ⚜️ Explained
  • LEARN
    • Brief Intro
    • GTON Capital in Detail
    • GameFi, SocialFi, & Real World Assets
    • GTON Network
      • Basics of Rollups
      • Protocol Overview
      • L2 Processes
      • Bridge
    • GTON Dollar (GCD)
      • Lending, CDP, and Money Markets
      • Fees
      • GCD Contracts
        • Solidity API
    • OGXT
    • Oracles
  • USE
    • GTON → OGXT Token Swap
    • OGXT/GCD Ratio
    • GTON CLI
    • Connect to GTON Testnet
    • Metamask Settings
    • Deploy to GTON Network
    • Contract Verification
    • Mint & Bridge GCD
    • Tech Support
    • Positions Liquidation and Closing the Project
  • GTON Ecosystem
    • GTON Ecosystem
  • Contributors
    • Multisig
    • Github
  • Treasury
    • Treasury Management
    • Treasury Snapshot Reports (TSR)
      • TSR 1 - 19 Jan 2022
      • TSR 2 - 19 Feb 2022
      • TSR 3 - 19 Mar 2022
      • TSR 4 - 19 Apr 2022
      • TSR 5 - 19 May 2022
      • TSR 6 - 19 Jun 2022
      • TSR 7 - 19 Jul 2022
      • TSR 8 - 19 Aug 2022
      • TSR 9 - 19 Sept 2022
      • TSR 10 - 19 Oct 2022
      • TSR 11 - 19 Nov 2022
      • TSR 12 - 19 Dec 2022
      • TSR 13 - 19 Jan 2023
      • TSR 14 - 19 Feb 2023
      • TSR 15 - 19 Mar 2023
      • TSR 16 - 19 Apr 2023
      • TSR 17 - 19 May 2023
      • TSR 18 - 19 Jun 2023
      • TSR 19 - 19 Jul 2023
      • TSR 20 - 19 Aug 2023
      • TSR 21 - 27 Feb 2024
  • Audits
    • Certik Audit
    • Securing Audit
    • Hacken Audit
  • Community
    • Snapshot (Fantom)
    • Snapshot (Ethereum)
    • ⚠️Legal Disclaimer
    • Code of Conduct
  • History & Legacy
    • Legacy Articles
      • 🪙Staking
      • 🪢Bonding
      • 🧬Pathway (PW)
        • PW FAQ
      • Roadmap
      • 👼Angels
    • Timeline Overview
    • Unlocking from staking v0/v1
    • 2021 Vision
    • GTON Token
Powered by GitBook
On this page
Export as PDF
  1. LEARN
  2. GTON Network

Protocol Overview

The smart contract system in GTON Network is inherited from Optimism and Metis. Below are the key parts that support the logic of the Layer 2 platform.

Layer 1

L1 is composed of different kinds of contracts, primarily used to facilitate messaging from L1 to L2 and ensure a correct ordering of transactions:

  • Messaging Contracts that support message exchange from L1 to L2.

    • L1 Cross Domain Messenger

      The role of the L1 Cross Domain Messenger contract is to send messages from L1 to L2. It also relays messages from L2 to L1 and is responsible for keeping rejected messages that are passing from L1 to L2. Please note: if a message sent from L1 to L2 is rejected, it can be resubmitted via the replay function of this contract.

    • L1 Standard Bridge

      The L1 Standard Bridge contract is used for storing locked L1 funds that users intend to bridge from L1 to L2 and are already locked on the L2. The contract synchronizes with a corresponding L2 bridge to get information about deposits and newly finalized withdrawals.

  • Rollup Contracts on L1 (Ethereum mainnet) that store ordered lists of transactions and of commitments to the L2 state roots.

    • L1 Rollup Contracts

      • They store an ordered list of all transactions that are submitted to the L2 state, such as:

        • The proposed state root that results from the application of each transaction.

        • Transactions sent from L1 to L2 that are pending in the ordered list.

    • Canonical Transaction Chain CTC (append only) Defines the ordering of transactions by writing them to the Chain Storage Container (CSC). Allows any account to ‘enqueue’ L2 transactions that the sequencer will eventually append to the state.

    • State Commitment Chain SCC

      Contains a list of proposed state roots.

    • Chain Storage Container CSC Gives reusable storage and provides its owner contract with read, write, and delete functionality.

  • Verification

    Verification on L1 is necessary to prove the integrity of the proposed state roots that come from each transaction. If the state root is deemed correct, the verifier will receive a reward. If not, the verifier can initiate a transaction challenge.

Layer 2

  • Messaging

    Contracts that support message exchange from L2 to L1.

    • Layer 2 Cross Domain Messenger Sends messages from L2 to L1.

    • L2 Standard Bridge

      The L2 Standard Bridge works together with the L1 Standard Bridge to enable the transfer of GCD between L1 and L2. It mints new tokens on L2 deposited into the L1 Standard Bridge, or burns the withdrawn tokens and informs their unlock on L1.

  • Predeploys

    Can be found at addresses with 0x42 prefixes. They handle common operations.

    • OVM_DeployerWhitelist

      It is owned by the GTON team and helps with mainnet rollout by allowing whitelisted addresses to do ovmCREATE or ovmCREATE2 operations.

    • OVM_ETH

      The OVM ETH predeploy provides an ERC20 interface for GCD deposited to L2. Unlike L1, L2 accounts do not have a balance field.

    • OVM_GasPriceOracle

      This contract determines the current L2 gas price. The gas fee depends on network congestion.

    • OVM_L2ToL1MessagePasser

      A utility contract that facilitates an proof of a L1 message on L2. This proof is performed in its _verifyStorageProof function. As a result, it verifies the existence of the transaction hash in the ‘sendMessages’ mapping of the L2ToL1MessagePasser contract.

    • OVM_SequencerFeeVault

      Used for fees paid to the sequencer.

PreviousBasics of RollupsNextL2 Processes

Last updated 2 years ago