Ethereum

Code

  • EthMinter.sol

  • EthMinter.impl.sol

Events

Swap

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

An event occurs when a bridge operator executes bridging with Ethereum Minter through the Orbit Bridge System.

  • address hubContract : Orbit Hub Contract Address

  • string fromChain : Chain Symbol requesting bridging

  • string toChain : Chain Symbol to execute 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

SwapRequest

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

Event occurs when a user who use the Orbit Bridge System requests bridging to Ethereum Minter

  • string fromChain : Chain Symbol requesting bridging

  • 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

  • uint block : Block number requested for bridging

Interface

pragma solidity 0.5.0;

interface EthMinter {
    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, uint8[] memory v, bytes32[] memory r, bytes32[] memory s) public;
    function requestSwap(address tokenAddress, string memory toChain, bytes memory toAddr, uint amount) payable public;
}

Last updated