Orbit Bridge
  • Introduction
  • Overview
  • Core Concept
  • How it works
    • Features
    • Differentiation
    • Bridge Validator
    • Bridge Operator
    • Governance
  • Bridging Transactions
    • Ethereum
    • BNB Chain
    • Klaytn
    • Heco
    • Polygon
    • Celo
    • ICON
    • XRP
  • Validator Guide
    • Notes for Validator Nodes
    • Hardware Specifications
    • Validator Reward Structure
    • Quick Start
    • REST API
    • Configuration
    • Troubleshooting
  • Operator Guide
    • Hardware Specifications
    • Quick Start
    • REST API
    • Configuration
    • Troubleshooting
  • Official Bridge Governance
  • Token Registration for Bridging
    • Registration Using Etherscan
    • Registration Using Remix
    • Bridge to The Open Network(TON)
      • Registration on TON Using Etherscan
      • Registration on TON Using Remix
  • FAQ
    • General [EN]
    • General [KO]
    • Gas Fee Guide [EN]
    • Gas Fee Guide [KO]
    • Guide for Adding RPC Network [EN]
    • Guide for Adding RPC Network [KO]
    • Anti-Phishing [EN]
    • Anti-Phishing [KO]
    • Transaction delay after setting the gas fee
    • Integration Guide
      • 1. List of supported chains
      • 2. Contract Addresses
      • 3. How to use an Orbit Bridge
      • 4. Chain Explorers
      • 5. API
  • Contract
    • OrbitHub
    • Bridge
      • Ethereum
      • BNB Chain
      • Klaytn
      • Heco
      • Polygon
      • Celo
      • ICON
      • XRP
    • Vault (Layer 1)
      • Ethereum
      • BNB Chain
      • Klaytn
      • Heco
      • Polygon
      • Celo
      • XRP
    • Minter (Layer 2)
      • Ethereum
      • Avalanche
      • BNB Chain
      • Klaytn
      • Celo
      • Fantom
      • Harmony
      • Polygon
      • Moonriver
      • OKExChain
      • Orbit
      • Gnosis
      • ICON
      • XRP
    • BridgeReceiver
    • Governance
    • Glossary
  • LINK
    • Orbit Bridge Github
    • Orbit Bridge Website
  • POLICIES
    • Layer Fee
    • Bridge Fee
      • Current
      • History
        • Ethereum Layer1
        • BNB Layer 1
        • Ripple Layer 1
        • Klaytn Layer 1
    • Terms of Use [EN]
    • Terms of Use [KO]
  • Bridging Assets
    • Ethereum Layer 1
    • Ripple Layer 1
    • BNB Layer 1
  • CROSS CHAIN TIPS
    • ICON
    • Celo
    • HECO
    • XRP
Powered by GitBook
On this page
  • Code
  • Events
  • Swap
  • SwapNFT
  • SwapRequest
  • SwapRequestNFT
  • Interface

Was this helpful?

  1. Contract
  2. Minter (Layer 2)

Orbit

Code

  • OrbitMinter.sol

  • OrbitMinter.impl.sol

Events

Swap

event Swap(string fromChain, bytes fromAddr, bytes toAddr, address tokenAddress, bytes32[] bytes32s, uint[] uints, bytes data);

This event occurs when a bridge operator performs bridging with Klaytn Minter through the Orbit Bridge System.

  • string fromChain : Chain Symbol requesting bridging

  • bytes fromAddr : Address of the chain requesting bridging

  • bytes toAddr : Address of chain to execute bridging

  • address tokenAddress : Token Address minted by bridging execution

  • bytes32[] bytes32s : Bytes32 data array used in the bridging consensus process

  • uint[] uints : Uint data array used in the bridging consensus process

  • bytes data : Execution data for Bridge Receiver

SwapNFT

event SwapNFT(string fromChain, bytes fromAddr, bytes toAddr, address tokenAddress, bytes32[] bytes32s, uint[] uints, bytes data);

This event occurs when a bridge operator performs NFT bridging with Klaytn Minter through the Orbit Bridge System.

  • string fromChain : Chain Symbol requesting bridging

  • bytes fromAddr : Address of the chain requesting bridging

  • bytes toAddr : Address of chain to execute bridging

  • address tokenAddress : Token Address minted by bridging execution

  • bytes32[] bytes32s : Bytes32 data array used in the bridging consensus process

  • uint[] uints : Uint data array used in the bridging consensus process

  • bytes data : Execution data for Bridge Receiver

SwapRequest

event SwapRequest(string toChain, address fromAddr, bytes toAddr, bytes token, address tokenAddress, uint8 decimal, uint amount, uint depositId, bytes data);

Event occurs when a user who uses the Orbit Bridge System requests bridging to Klaytn Minter

  • string toChain : Chain Symbol to execute bridging

  • bytes fromAddr : Address of the chain requesting bridging

  • bytes toAddr : Address of chain to execute bridging

  • bytes token : Token Information to be executed bridging

  • address tokenAddress : Token Address requesting bridging

  • uint8 decimal : Token Decimal requesting bridging

  • uint amount : Token Amount requesting bridging

  • uint depositId : Unique Identifier of bridging request

  • bytes data : Execution data requested for bridging

SwapRequestNFT

event SwapRequestNFT(string toChain, address fromAddr, bytes toAddr, bytes token, address tokenAddress, uint8 decimal, uint amount, uint depositId, bytes data);

Event occurs when a user who uses the Orbit Bridge System requests NFT bridging to Klaytn Minter

  • string toChain : Chain Symbol to execute bridging

  • bytes fromAddr : Address of the chain requesting bridging

  • bytes toAddr : Address of chain to execute bridging

  • bytes token : Token Information to be executed bridging

  • address tokenAddress : Token Address requesting bridging

  • uint tokenId : Token ID requesting bridging

  • uint amount : Token Amount requesting bridging

  • uint depositId : Unique Identifier of bridging request

  • bytes data : Execution data requested for bridging

Interface

pragma solidity 0.5.0;

interface OrbitMinter {
    function getVersion() public pure returns(string memory);
    function getTokenAddress(bytes memory token) public view returns(address);
    function getChainId(string memory _chain) public view returns(bytes32);
   
    function swap(address hubContract, string memory fromChain, bytes memory fromAddr, bytes memory toAddr, bytes memory token, bytes32[] memory bytes32s, uint[] memory uints, bytes memory data, uint8[] memory v, bytes32[] memory r, bytes32[] memory s) public;
    function swapNFT(address hubContract, string memory fromChain, bytes memory fromAddr, bytes memory toAddr, bytes memory token, bytes32[] memory bytes32s, uint[] memory uints, bytes memory data, uint8[] memory v, bytes32[] memory r, bytes32[] memory s) public;
    
    function requestSwap(address tokenAddress, string memory toChain, bytes memory toAddr, uint amount) public payable;
    function requestSwap(address tokenAddress, string memory toChain, bytes memory toAddr, uint amount, bytes memory data) public payable;
    
    function requestSwapNFT(address nftAddress, uint tokenId, string memory toChain, bytes memory toAddr) public payable;
    function requestSwapNFT(address nftAddress, uint tokenId, string memory toChain, bytes memory toAddr, bytes memory data) public payable;
}
PreviousOKExChainNextGnosis

Last updated 2 years ago

Was this helpful?