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.
Last updated