EMC Testnet Documentation: Quick Start Guide
  • EMC TESTNET
    • EMC Testnet Chain Documentation: Quick Start Guide
      • Introduction
      • Requirements
      • Setting Up the Development Environment
      • Testing
      • Conclusion
    • Estimate Gas Costs
      • What is Gas fee?
      • Methods to estimate gas costs
      • Precaution
      • Conclusion
    • EMC chain documents: Mainnet and Testnet
      • EMC mainnet
      • EMC Testnet
      • User Guide
      • Conclusion
    • Cross-chain messaging
      • What is cross-chain messaging?
      • Principle of cross-chain message passing
      • Implement cross-chain messaging
      • Conclusion
    • How to use oracles in applications
      • What is an oracle?
      • Steps to use oracle
      • Precautions
      • Conclusion
    • Precompilation
      • Overview of precompiled contracts
    • Functions of NodeInterface
      • Using NodeInterface
      • Conclusion
    • RPC endpoints and providers
      • Introduction
      • EMC Mainnet RPC endpoint
      • EMC Testnet RPC endpoint
      • User Guide
      • Conclusion
    • Block explorer
      • User Guide
    • Cross-chain bridge
      • Overview
      • Detailed operation rules and principles
  • EMC Airdrop Guidelines
    • EMC Airdrop Guidelines
      • What is EMC Public Testnet?
      • EMC Public Testnet Incentive Program
      • EMC Public Testnet Mining Rules
      • How to seek help if you encounter a problem?
      • How long will the EMC Public Testnet Mining Event last?
    • Wallet Setup
      • Method 1: One-Click Configuration (Recommended)
      • Method 2: Manual Configuration
        • EMC Testnet Network RPC Information
    • Faucets: Claim Test Tokens
    • Testnet Tutorial Guide
      • Windows Tutorial
        • Docker Installation and Setup Tutorial(Window Version)
      • MacOS Tutorial
      • Linux Tutorial
        • Docker Installation and NVIDIA GPU Configuration
        • EMC Client Installation and Operation
      • Windows CLI Tutorial
        • WSL Subsystem Installation
        • Install and Setup Docker Desktop
        • EMC CLI Download and Mining
        • Claim Gas Fee from EMC Community
    • EMC Testnet Blockchain Explorer
Powered by GitBook
On this page
  1. EMC TESTNET
  2. Cross-chain bridge

Detailed operation rules and principles

Cross-Chain operation GAS token (EMC)

GAS Token (EMC) Cross-chain Operations

Cross into EMC Chain (from ARB Chain)

a. Locking

● Users send EMC tokens on the ARB chain to the Cross-chain Bridge Contract.

● The Cross-chain Bridge Contract locks these EMC tokens and records the locking event.

b. Polling Process

● Through a polling process, the Cross-chain Bridge Contract generates a locking proof containing details such as the amount locked and user addresses.

c. Notification

● The Cross-chain Bridge system sends the locking proof to the Cross-chain Bridge Contract on the EMC chain.

d. Issuance

● The Cross-chain Bridge Contract on the EMC chain verifies the locking proof and issues an equivalent amount of WEMC tokens.

● WEMC tokens are automatically converted back to EMC tokens within the contract and distributed to the user.

Cross out of EMC Chain (to ARB Chain)

a. Conversion and Locking

● The platform automatically wraps EMC tokens into WEMC tokens on the EMC chain for users who wish to cross-chain.

● WEMC tokens are sent to the Cross-chain Bridge Contract, which locks them and records the locking event.

b. Polling Process

● Similar to the previous step, a polling process is used to generate a locking proof on the Cross-chain Bridge Contract, detailing the amount locked and user addresses.

c. Notification

● The Cross-chain Bridge system transmits the locking proof to the Cross-chain Bridge Contract on the ARB chain.

d. Release

● The Cross-chain Bridge Contract on the ARB chain verifies the locking proof and releases an equivalent amount of EMC tokens to the user.

ERC20 Token Cross-chain Operations

Cross into EMC Chain (from ARB Chain)

a. Locking

● Users send ERC20 tokens (e.g., USDT, ETH) on the ARB chain to the Cross-chain Bridge Contract.

● The Cross-chain Bridge Contract locks these tokens and records the locking event.

b. Polling Process

● A polling process is employed to generate a locking proof on the Cross-chain Bridge Contract, detailing the amount locked and user addresses.

c. Notification

● The Cross-chain Bridge system sends the locking proof to the Cross-chain Bridge Contract on the EMC chain.

d. Minting

● The Cross-chain Bridge Contract on the EMC chain verifies the locking proof and mints an equivalent amount of the corresponding ERC20 tokens, which are then distributed to the user.

Cross out of EMC Chain (to ARB Chain)

a. Destruction

● Users send ERC20 tokens on the EMC chain to the Cross-chain Bridge Contract.

● The Cross-chain Bridge Contract destroys these tokens and records the destruction event.

b. Polling Process

● Through a polling process, the Cross-chain Bridge Contract generates a destruction proof, detailing the amount destroyed and user addresses.

c. Notification

● The Cross-chain Bridge system transmits the destruction proof to the Cross-chain Bridge Contract on the ARB chain.

d. Release

● The Cross-chain Bridge Contract on the ARB chain verifies the destruction proof and releases an equivalent amount of the corresponding ERC20 tokens to the user.

These detailed operations ensure the secure and efficient transfer of GAS tokens (EMC) and ERC20 tokens between ARB and EMC chains, facilitated by robust cross-chain bridge mechanisms.

PreviousOverviewNextEMC Airdrop Guidelines

Last updated 9 months ago