ETH Price: $2,347.41 (-2.91%)

Contract

0xDc0D7e591948C347C0ec7111f9379cdA237b1834
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer To Othe...146310002022-04-21 22:42:00877 days ago1650580920IN
Less: Bridge
0 ETH0.0033472656.08311341
Transfer To Othe...146278582022-04-21 10:46:36878 days ago1650537996IN
Less: Bridge
0 ETH0.003684861.73857302
Transfer To Othe...146278502022-04-21 10:43:53878 days ago1650537833IN
Less: Bridge
0 ETH0.0035019858.6754605
Transfer To Othe...145830442022-04-14 10:35:17885 days ago1649932517IN
Less: Bridge
0 ETH0.0015861726.57622215
Transfer To Othe...145814112022-04-14 4:27:43885 days ago1649910463IN
Less: Bridge
0 ETH0.0028947148.49087238
Transfer To User...145814002022-04-14 4:24:56885 days ago1649910296IN
Less: Bridge
0 ETH0.0045990755.76388504
Transfer To User...145807902022-04-14 2:12:03885 days ago1649902323IN
Less: Bridge
0 ETH0.0068731869.02589553
Transfer To Othe...145764332022-04-13 9:49:48886 days ago1649843388IN
Less: Bridge
0 ETH0.0016500927.64167601
Transfer To User...145736412022-04-12 23:03:31886 days ago1649804611IN
Less: Bridge
0 ETH0.0026383126.49283835
Transfer To User...145732122022-04-12 21:28:54887 days ago1649798934IN
Less: Bridge
0 ETH0.0042009750.92950619
Transfer To Othe...145731662022-04-12 21:19:32887 days ago1649798372IN
Less: Bridge
0 ETH0.0029751549.83838761
Transfer To Othe...145704642022-04-12 11:36:47887 days ago1649763407IN
Less: Bridge
0 ETH0.0023326539.07554288
Transfer To User...145600152022-04-10 20:11:17889 days ago1649621477IN
Less: Bridge
0 ETH0.0039438439.60722592
Transfer To Othe...145228262022-04-05 0:51:17894 days ago1649119877IN
Less: Bridge
0 ETH0.0028401947.5776916
Transfer To Othe...143842672022-03-14 10:46:58916 days ago1647254818IN
Less: Bridge
0 ETH0.0008109413.58188592
Transfer To Othe...143476252022-03-08 17:56:38922 days ago1646762198IN
Less: Bridge
0 ETH0.0021723436.39013293
Transfer To Othe...143368402022-03-07 1:43:38923 days ago1646617418IN
Less: Bridge
0 ETH0.0025316242.41706447
Transfer To Othe...140182772022-01-16 18:47:55973 days ago1642358875IN
Less: Bridge
0 ETH0.00811381135.91886592
Transfer To Othe...140012532022-01-14 3:37:54975 days ago1642131474IN
Less: Bridge
0 ETH0.00945407158.3703074
Transfer To Othe...139588572022-01-07 14:27:30982 days ago1641565650IN
Less: Bridge
0 ETH0.00784235131.39790507
Transfer To User...139328402022-01-03 13:47:58986 days ago1641217678IN
Less: Bridge
0 ETH0.0081560681.90955719
Transfer To Othe...138477592021-12-21 9:35:31999 days ago1640079331IN
Less: Bridge
0 ETH0.0019136432.05658633
Transfer To Othe...138345352021-12-19 8:43:301001 days ago1639903410IN
Less: Bridge
0 ETH0.0023210938.87417243
Transfer To Othe...138151012021-12-16 8:24:071004 days ago1639643047IN
Less: Bridge
0 ETH0.0030379450.88004692
Transfer To Othe...138127472021-12-15 23:37:351004 days ago1639611455IN
Less: Bridge
0 ETH0.0039632266.40340619
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
swapContract

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion
File 1 of 7 : swapContract.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.0;

import "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol";
//import "openzeppelin-solidity/contracts/access/Ownable.sol";
import "openzeppelin-solidity/contracts/access/AccessControl.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";

contract swapContract is AccessControl
{
    using SafeMath for uint256;

    bytes32 public constant OWNER_ROLE = keccak256("OWNER_ROLE");
    bytes32 public constant MANAGER_ROLE = keccak256("MANAGER_ROLE");

    IERC20 public tokenAddress;
    address public feeAddress;

    uint128 public numOfThisBlockchain;
    mapping(uint128 => bool) public existingOtherBlockchain;
    mapping(uint128 => uint128) public feeAmountOfBlockchain;

    mapping(bytes32 => bool) public processedTransactions;

    event TransferFromOtherBlockchain(address user, uint256 amount, uint256 amountWithoutFee, bytes32 originalTxHash);
    event TransferToOtherBlockchain(uint128 blockchain, address user, uint256 amount, string newAddress);
    
    modifier onlyOwner() {
        require(
            hasRole(OWNER_ROLE, _msgSender()),
            "Caller is not an owner role"
        );
        _;
    }

    modifier onlyOwnerAndManager() {
        require(
            hasRole(OWNER_ROLE, _msgSender()) || hasRole(MANAGER_ROLE, _msgSender()),
            "Caller is not an owner or manager role"
        );
        _;
    }

    constructor(
        IERC20 _tokenAddress,
        address _feeAddress,
        uint128 _numOfThisBlockchain,
        uint128 [] memory _numsOfOtherBlockchains)
    {
        tokenAddress = _tokenAddress;
        feeAddress = _feeAddress;
        for (uint i = 0; i < _numsOfOtherBlockchains.length; i++ ) {
            require(
                _numsOfOtherBlockchains[i] != _numOfThisBlockchain,
                "swapContract: Number of this blockchain is in array of other blockchains"
            );
            existingOtherBlockchain[_numsOfOtherBlockchains[i]] = true;
        }
        
        numOfThisBlockchain = _numOfThisBlockchain;
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _setupRole(OWNER_ROLE, _msgSender());
    }

    function getOtherBlockchainAvailableByNum(uint128 blockchain) external view returns (bool)
    {
        return existingOtherBlockchain[blockchain];
    }

    function transferToOtherBlockchain(uint128 blockchain, uint256 amount, string memory newAddress) external
    {
        require(
            bytes(newAddress).length > 0,
            "swapContract: No destination address provided"
        );
        require(
            existingOtherBlockchain[blockchain] && blockchain != numOfThisBlockchain,
            "swapContract: Wrong choose of blockchain"
        );
        require(
            amount >= feeAmountOfBlockchain[blockchain],
            "swapContract: Not enough amount of tokens"
        );
        address sender = _msgSender();
        require(
            tokenAddress.balanceOf(sender) >= amount,
            "swapContract: Not enough balance"
        );
        tokenAddress.transferFrom(sender, address(this), amount);
        emit TransferToOtherBlockchain(blockchain, sender, amount, newAddress);
    }

    function transferToUserWithoutFee(address user, uint256 amount) external onlyOwner
    {
        tokenAddress.transfer(user, amount);
        emit TransferFromOtherBlockchain(user, amount, amount, bytes32(0));
    }

    /* function transferToUserWithFee(address user, uint256 amountToUser, uint256 feeAmount) external onlyOwner
    {
        tokenAddress.transfer(user, amountToUser);
        tokenAddress.transfer(feeAddress, feeAmount);
        emit TransferFromOtherBlockchain(user, amountToUser);
    } */

    function transferToUserWithFee(
        address user,
        uint256 amountWithFee,
        bytes32 originalTxHash
    )
        external
        onlyOwner
    {
        require(!isProcessedTransaction(originalTxHash), "swapContract: Transaction already processed");
        processedTransactions[originalTxHash] = true;
        uint256 fee = feeAmountOfBlockchain[numOfThisBlockchain];
        uint256 amountWithoutFee = amountWithFee.sub(fee);
        tokenAddress.transfer(user, amountWithoutFee);
        tokenAddress.transfer(feeAddress, fee);
        emit TransferFromOtherBlockchain(user, amountWithFee, amountWithoutFee, originalTxHash);
    }

    function removeOtherBlockchain(
        uint128 numOfOtherBlockchain
    )
        external
        onlyOwner
    {
        require(
            existingOtherBlockchain[numOfOtherBlockchain],
            "swapContract: This blockchain was not added"
        );
        existingOtherBlockchain[numOfOtherBlockchain] = false;
    }

    function addOtherBlockchain(
        uint128 numOfOtherBlockchain
    )
        external
        onlyOwner
    {
        require(
            numOfOtherBlockchain != numOfThisBlockchain,
            "swapContract: Cannot add this blockchain to array of other blockchains"
        );
        require(
            !existingOtherBlockchain[numOfOtherBlockchain],
            "swapContract: This blockchain is already added"
        );
        existingOtherBlockchain[numOfOtherBlockchain] = true;
    }

    function changeOtherBlockchain(
        uint128 oldNumOfOtherBlockchain,
        uint128 newNumOfOtherBlockchain
    )
        external
        onlyOwner
    {
        require(
            oldNumOfOtherBlockchain != newNumOfOtherBlockchain,
            "swapContract: Cannot change blockchains with same number"
        );
        require(
            newNumOfOtherBlockchain != numOfThisBlockchain,
            "swapContract: Cannot add this blockchain to array of other blockchains"
        );
        require(
            existingOtherBlockchain[oldNumOfOtherBlockchain],
            "swapContract: This blockchain was not added"
        );
        require(
            !existingOtherBlockchain[newNumOfOtherBlockchain],
            "swapContract: This blockchain is already added"
        );
        
        existingOtherBlockchain[oldNumOfOtherBlockchain] = false;
        existingOtherBlockchain[newNumOfOtherBlockchain] = true;
    }

    function changeFeeAddress(address newFeeAddress) external onlyOwner
    {
        feeAddress = newFeeAddress;
    }

    function transferOwnerAndSetManager(address newOwner, address newManager) external onlyOwner {
        require(newOwner != address(0x0), "swapContract: Owner cannot be zero address");
        require(newManager != address(0x0), "swapContract: Owner cannot be zero address");
        _setupRole(DEFAULT_ADMIN_ROLE, newOwner);
        _setupRole(OWNER_ROLE, newOwner);
        _setupRole(MANAGER_ROLE, newManager);
        renounceRole(OWNER_ROLE, _msgSender());
        renounceRole(DEFAULT_ADMIN_ROLE, _msgSender());
    }

    function setFeeAmountOfBlockchain(uint128 blockchainNum, uint128 feeAmount) external onlyOwnerAndManager
    {
        feeAmountOfBlockchain[blockchainNum] = feeAmount;
    }

    function isProcessedTransaction(bytes32 originalTxHash) public view returns (bool processed) {
        return processedTransactions[originalTxHash];
    }
}

File 2 of 7 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../utils/EnumerableSet.sol";
import "../utils/Address.sol";
import "../utils/Context.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context {
    using EnumerableSet for EnumerableSet.AddressSet;
    using Address for address;

    struct RoleData {
        EnumerableSet.AddressSet members;
        bytes32 adminRole;
    }

    mapping (bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view returns (bool) {
        return _roles[role].members.contains(account);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view returns (uint256) {
        return _roles[role].members.length();
    }

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view returns (address) {
        return _roles[role].members.at(index);
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant");

        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke");

        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        emit RoleAdminChanged(role, _roles[role].adminRole, adminRole);
        _roles[role].adminRole = adminRole;
    }

    function _grantRole(bytes32 role, address account) private {
        if (_roles[role].members.add(account)) {
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (_roles[role].members.remove(account)) {
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 3 of 7 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

File 4 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 5 of 7 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 6 of 7 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 7 of 7 : EnumerableSet.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 999999
  },
  "evmVersion": "istanbul",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_tokenAddress","type":"address"},{"internalType":"address","name":"_feeAddress","type":"address"},{"internalType":"uint128","name":"_numOfThisBlockchain","type":"uint128"},{"internalType":"uint128[]","name":"_numsOfOtherBlockchains","type":"uint128[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountWithoutFee","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"originalTxHash","type":"bytes32"}],"name":"TransferFromOtherBlockchain","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint128","name":"blockchain","type":"uint128"},{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"string","name":"newAddress","type":"string"}],"name":"TransferToOtherBlockchain","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OWNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"numOfOtherBlockchain","type":"uint128"}],"name":"addOtherBlockchain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newFeeAddress","type":"address"}],"name":"changeFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"oldNumOfOtherBlockchain","type":"uint128"},{"internalType":"uint128","name":"newNumOfOtherBlockchain","type":"uint128"}],"name":"changeOtherBlockchain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"","type":"uint128"}],"name":"existingOtherBlockchain","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"","type":"uint128"}],"name":"feeAmountOfBlockchain","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"blockchain","type":"uint128"}],"name":"getOtherBlockchainAvailableByNum","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"originalTxHash","type":"bytes32"}],"name":"isProcessedTransaction","outputs":[{"internalType":"bool","name":"processed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numOfThisBlockchain","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"processedTransactions","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"numOfOtherBlockchain","type":"uint128"}],"name":"removeOtherBlockchain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"blockchainNum","type":"uint128"},{"internalType":"uint128","name":"feeAmount","type":"uint128"}],"name":"setFeeAmountOfBlockchain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenAddress","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"},{"internalType":"address","name":"newManager","type":"address"}],"name":"transferOwnerAndSetManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"blockchain","type":"uint128"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"newAddress","type":"string"}],"name":"transferToOtherBlockchain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amountWithFee","type":"uint256"},{"internalType":"bytes32","name":"originalTxHash","type":"bytes32"}],"name":"transferToUserWithFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferToUserWithoutFee","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620026e5380380620026e5833981810160405260808110156200003757600080fd5b8151602083015160408085015160608601805192519496939591949391820192846401000000008211156200006b57600080fd5b9083019060208201858111156200008157600080fd5b82518660208202830111640100000000821117156200009f57600080fd5b82525081516020918201928201910280838360005b83811015620000ce578181015183820152602001620000b4565b50505050919091016040525050600180546001600160a01b038089166001600160a01b031992831617909255600280549288169290911691909117905550600090505b8151811015620001d057826001600160801b03168282815181106200013257fe5b60200260200101516001600160801b03161415620001825760405162461bcd60e51b81526004018080602001828103825260488152602001806200269d6048913960600191505060405180910390fd5b6001600460008484815181106200019557fe5b6020908102919091018101516001600160801b03168252810191909152604001600020805460ff191691151591909117905560010162000111565b50600380546001600160801b0319166001600160801b038416179055620002026000620001fc6200023b565b6200023f565b620002317fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e620001fc6200023b565b505050506200034f565b3390565b6200024b82826200024f565b5050565b6000828152602081815260409091206200027491839062001cc2620002c8821b17901c565b156200024b57620002846200023b565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000620002df836001600160a01b038416620002e8565b90505b92915050565b6000620002f6838362000337565b6200032e57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620002e2565b506000620002e2565b60009081526001919091016020526040902054151590565b61233e806200035f6000396000f3fe608060405234801561001057600080fd5b50600436106101b95760003560e01c80639010d07c116100f9578063bf9cfe0511610097578063d547741f11610071578063d547741f14610662578063d86d1d1a1461069b578063e58378bb146106d2578063ec87621c146106da576101b9565b8063bf9cfe05146105e9578063c5d4d1c214610616578063ca15c87314610645576101b9565b8063960f5e89116100d3578063960f5e891461058d5780639d76ea58146105bc578063a217fddf146105c4578063ac2e4936146105cc576101b9565b80639010d07c146104f257806391d1485414610515578063952867b11461054e576101b9565b806336568abe116101665780633f19f657116101405780633f19f6571461039557806341275358146104595780634f8d99a61461048a57806374832748146104c3576101b9565b806336568abe146102fc5780633771fc2f146103355780633db99b3614610366576101b9565b8063285e140611610197578063285e1406146102595780632a3221c61461028c5780632f2ff15d146102c3576101b9565b8063102a95af146101be57806320b337c4146101fb578063248a9ca31461022a575b600080fd5b6101f9600480360360408110156101d457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160200135166106e2565b005b6101f96004803603602081101561021157600080fd5b50356fffffffffffffffffffffffffffffffff166108f7565b6102476004803603602081101561024057600080fd5b5035610a50565b60408051918252519081900360200190f35b6101f96004803603602081101561026f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610a65565b6101f9600480360360408110156102a257600080fd5b506fffffffffffffffffffffffffffffffff81358116916020013516610b43565b6101f9600480360360408110156102d957600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16610e1e565b6101f96004803603604081101561031257600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16610e9b565b6103526004803603602081101561034b57600080fd5b5035610f30565b604080519115158252519081900360200190f35b6101f96004803603602081101561037c57600080fd5b50356fffffffffffffffffffffffffffffffff16610f45565b6101f9600480360360608110156103ab57600080fd5b6fffffffffffffffffffffffffffffffff823516916020810135918101906060810160408201356401000000008111156103e457600080fd5b8201836020820111156103f657600080fd5b8035906020019184600183028401116401000000008311171561041857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611112945050505050565b610461611535565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101f9600480360360408110156104a057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611551565b610352600480360360208110156104d957600080fd5b50356fffffffffffffffffffffffffffffffff166116f1565b6104616004803603604081101561050857600080fd5b5080359060200135611718565b6103526004803603604081101561052b57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16611739565b6101f96004803603606081101561056457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060208101359060400135611751565b610352600480360360208110156105a357600080fd5b50356fffffffffffffffffffffffffffffffff16611a67565b610461611a7c565b610247611a98565b610352600480360360208110156105e257600080fd5b5035611a9d565b6105f1611ab2565b604080516fffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6105f16004803603602081101561062c57600080fd5b50356fffffffffffffffffffffffffffffffff16611aca565b6102476004803603602081101561065b57600080fd5b5035611aee565b6101f96004803603604081101561067857600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16611b05565b6101f9600480360360408110156106b157600080fd5b506fffffffffffffffffffffffffffffffff81358116916020013516611b78565b610247611c7a565b610247611c9e565b6107137fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e61070e611ce4565b611739565b61077e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420616e206f776e657220726f6c650000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff82166107ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806121a9602a913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8116610856576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806121a9602a913960400191505060405180910390fd5b610861600083610e91565b61088b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e83610e91565b6108b57f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0882610e91565b6108e67fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e6108e1611ce4565b610e9b565b6108f360006108e1611ce4565b5050565b6109237fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e61070e611ce4565b61098e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420616e206f776e657220726f6c650000000000604482015290519081900360640190fd5b6fffffffffffffffffffffffffffffffff811660009081526004602052604090205460ff16610a08576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b81526020018061222c602b913960400191505060405180910390fd5b6fffffffffffffffffffffffffffffffff16600090815260046020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b60009081526020819052604090206002015490565b610a917fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e61070e611ce4565b610afc57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420616e206f776e657220726f6c650000000000604482015290519081900360640190fd5b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b610b6f7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e61070e611ce4565b610bda57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420616e206f776e657220726f6c650000000000604482015290519081900360640190fd5b806fffffffffffffffffffffffffffffffff16826fffffffffffffffffffffffffffffffff161415610c57576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260388152602001806121716038913960400191505060405180910390fd5b6003546fffffffffffffffffffffffffffffffff82811691161415610cc7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252604681526020018061212b6046913960600191505060405180910390fd5b6fffffffffffffffffffffffffffffffff821660009081526004602052604090205460ff16610d41576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b81526020018061222c602b913960400191505060405180910390fd5b6fffffffffffffffffffffffffffffffff811660009081526004602052604090205460ff1615610dbc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180612284602e913960400191505060405180910390fd5b6fffffffffffffffffffffffffffffffff91821660009081526004602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009081169091559290931681529190912080549091166001179055565b600082815260208190526040902060020154610e3c9061070e611ce4565b610e91576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f8152602001806120fc602f913960400191505060405180910390fd5b6108f38282611ce8565b610ea3611ce4565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f26576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f8152602001806122da602f913960400191505060405180910390fd5b6108f38282611d6b565b60009081526006602052604090205460ff1690565b610f717fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e61070e611ce4565b610fdc57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420616e206f776e657220726f6c650000000000604482015290519081900360640190fd5b6003546fffffffffffffffffffffffffffffffff8281169116141561104c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252604681526020018061212b6046913960600191505060405180910390fd5b6fffffffffffffffffffffffffffffffff811660009081526004602052604090205460ff16156110c7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180612284602e913960400191505060405180910390fd5b6fffffffffffffffffffffffffffffffff16600090815260046020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b600081511161116c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d815260200180612257602d913960400191505060405180910390fd5b6fffffffffffffffffffffffffffffffff831660009081526004602052604090205460ff1680156111b457506003546fffffffffffffffffffffffffffffffff848116911614155b611209576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806122b26028913960400191505060405180910390fd5b6fffffffffffffffffffffffffffffffff80841660009081526005602052604090205416821015611285576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806121d36029913960400191505060405180910390fd5b600061128f611ce4565b600154604080517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff80851660048301529151939450869391909216916370a08231916024808301926020929190829003018186803b15801561130757600080fd5b505afa15801561131b573d6000803e3d6000fd5b505050506040513d602081101561133157600080fd5b505110156113a057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f73776170436f6e74726163743a204e6f7420656e6f7567682062616c616e6365604482015290519081900360640190fd5b600154604080517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff848116600483015230602483015260448201879052915191909216916323b872dd9160648083019260209291908290030181600087803b15801561142257600080fd5b505af1158015611436573d6000803e3d6000fd5b505050506040513d602081101561144c57600080fd5b5050604080516fffffffffffffffffffffffffffffffff8616815273ffffffffffffffffffffffffffffffffffffffff831660208281019190915291810185905260806060820181815285519183019190915284517f530414e7b01e4eb239740ce86981a020e12faaffca6a86bbb62113a4ffafbaf693889386938993899360a08401919085019080838360005b838110156114f25781810151838201526020016114da565b50505050905090810190601f16801561151f5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a150505050565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b61157d7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e61070e611ce4565b6115e857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420616e206f776e657220726f6c650000000000604482015290519081900360640190fd5b600154604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561166457600080fd5b505af1158015611678573d6000803e3d6000fd5b505050506040513d602081101561168e57600080fd5b50506040805173ffffffffffffffffffffffffffffffffffffffff84168152602081018390528082018390526000606082015290517f8157b9086cfdda00012a3010e96c58ca2bf54627629af408db9302736af9e0659181900360800190a15050565b6fffffffffffffffffffffffffffffffff1660009081526004602052604090205460ff1690565b60008281526020819052604081206117309083611dee565b90505b92915050565b60008281526020819052604081206117309083611dfa565b61177d7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e61070e611ce4565b6117e857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420616e206f776e657220726f6c650000000000604482015290519081900360640190fd5b6117f181610f30565b15611847576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b8152602001806120d1602b913960400191505060405180910390fd5b600081815260066020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556003546fffffffffffffffffffffffffffffffff9081168452600590925282205416906118ae8483611e1c565b600154604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff898116600483015260248201859052915193945091169163a9059cbb916044808201926020929091908290030181600087803b15801561192c57600080fd5b505af1158015611940573d6000803e3d6000fd5b505050506040513d602081101561195657600080fd5b5050600154600254604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9283166004820152602481018690529051919092169163a9059cbb9160448083019260209291908290030181600087803b1580156119d757600080fd5b505af11580156119eb573d6000803e3d6000fd5b505050506040513d6020811015611a0157600080fd5b50506040805173ffffffffffffffffffffffffffffffffffffffff87168152602081018690528082018390526060810185905290517f8157b9086cfdda00012a3010e96c58ca2bf54627629af408db9302736af9e0659181900360800190a15050505050565b60046020526000908152604090205460ff1681565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b600081565b60066020526000908152604090205460ff1681565b6003546fffffffffffffffffffffffffffffffff1681565b6005602052600090815260409020546fffffffffffffffffffffffffffffffff1681565b600081815260208190526040812061173390611e93565b600082815260208190526040902060020154611b239061070e611ce4565b610f26576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806121fc6030913960400191505060405180910390fd5b611ba47fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e61070e611ce4565b80611bd65750611bd67f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0861070e611ce4565b611c2b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806120ab6026913960400191505060405180910390fd5b6fffffffffffffffffffffffffffffffff918216600090815260056020526040902080547fffffffffffffffffffffffffffffffff000000000000000000000000000000001691909216179055565b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e81565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0881565b60006117308373ffffffffffffffffffffffffffffffffffffffff8416611e9e565b3390565b6000828152602081905260409020611d009082611cc2565b156108f357611d0d611ce4565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081905260409020611d839082611ee8565b156108f357611d90611ce4565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60006117308383611f0a565b60006117308373ffffffffffffffffffffffffffffffffffffffff8416611f88565b600082821115611e8d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600061173382611fa0565b6000611eaa8383611f88565b611ee057508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611733565b506000611733565b60006117308373ffffffffffffffffffffffffffffffffffffffff8416611fa4565b81546000908210611f66576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806120896022913960400191505060405180910390fd5b826000018281548110611f7557fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b6000818152600183016020526040812054801561207e5783547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8083019190810190600090879083908110611ff557fe5b906000526020600020015490508087600001848154811061201257fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061204257fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050611733565b600091505061173356fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647343616c6c6572206973206e6f7420616e206f776e6572206f72206d616e6167657220726f6c6573776170436f6e74726163743a205472616e73616374696f6e20616c72656164792070726f636573736564416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7473776170436f6e74726163743a2043616e6e6f7420616464207468697320626c6f636b636861696e20746f206172726179206f66206f7468657220626c6f636b636861696e7373776170436f6e74726163743a2043616e6e6f74206368616e676520626c6f636b636861696e7320776974682073616d65206e756d62657273776170436f6e74726163743a204f776e65722063616e6e6f74206265207a65726f206164647265737373776170436f6e74726163743a204e6f7420656e6f75676820616d6f756e74206f6620746f6b656e73416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b6573776170436f6e74726163743a205468697320626c6f636b636861696e20776173206e6f7420616464656473776170436f6e74726163743a204e6f2064657374696e6174696f6e20616464726573732070726f766964656473776170436f6e74726163743a205468697320626c6f636b636861696e20697320616c726561647920616464656473776170436f6e74726163743a2057726f6e672063686f6f7365206f6620626c6f636b636861696e416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212209dbb15719b5f870757b26dbf60d1d946212786838690cbe6d9b15a2e7596e41c64736f6c6343000706003373776170436f6e74726163743a204e756d626572206f66207468697320626c6f636b636861696e20697320696e206172726179206f66206f7468657220626c6f636b636861696e7300000000000000000000000062786eeacc9246b4018e0146cb7a3efeacd9459d00000000000000000000000071a06a94a8f08ba850bb7fc86c4754aa09d7e4dd0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101b95760003560e01c80639010d07c116100f9578063bf9cfe0511610097578063d547741f11610071578063d547741f14610662578063d86d1d1a1461069b578063e58378bb146106d2578063ec87621c146106da576101b9565b8063bf9cfe05146105e9578063c5d4d1c214610616578063ca15c87314610645576101b9565b8063960f5e89116100d3578063960f5e891461058d5780639d76ea58146105bc578063a217fddf146105c4578063ac2e4936146105cc576101b9565b80639010d07c146104f257806391d1485414610515578063952867b11461054e576101b9565b806336568abe116101665780633f19f657116101405780633f19f6571461039557806341275358146104595780634f8d99a61461048a57806374832748146104c3576101b9565b806336568abe146102fc5780633771fc2f146103355780633db99b3614610366576101b9565b8063285e140611610197578063285e1406146102595780632a3221c61461028c5780632f2ff15d146102c3576101b9565b8063102a95af146101be57806320b337c4146101fb578063248a9ca31461022a575b600080fd5b6101f9600480360360408110156101d457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160200135166106e2565b005b6101f96004803603602081101561021157600080fd5b50356fffffffffffffffffffffffffffffffff166108f7565b6102476004803603602081101561024057600080fd5b5035610a50565b60408051918252519081900360200190f35b6101f96004803603602081101561026f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610a65565b6101f9600480360360408110156102a257600080fd5b506fffffffffffffffffffffffffffffffff81358116916020013516610b43565b6101f9600480360360408110156102d957600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16610e1e565b6101f96004803603604081101561031257600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16610e9b565b6103526004803603602081101561034b57600080fd5b5035610f30565b604080519115158252519081900360200190f35b6101f96004803603602081101561037c57600080fd5b50356fffffffffffffffffffffffffffffffff16610f45565b6101f9600480360360608110156103ab57600080fd5b6fffffffffffffffffffffffffffffffff823516916020810135918101906060810160408201356401000000008111156103e457600080fd5b8201836020820111156103f657600080fd5b8035906020019184600183028401116401000000008311171561041857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611112945050505050565b610461611535565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101f9600480360360408110156104a057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611551565b610352600480360360208110156104d957600080fd5b50356fffffffffffffffffffffffffffffffff166116f1565b6104616004803603604081101561050857600080fd5b5080359060200135611718565b6103526004803603604081101561052b57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16611739565b6101f96004803603606081101561056457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060208101359060400135611751565b610352600480360360208110156105a357600080fd5b50356fffffffffffffffffffffffffffffffff16611a67565b610461611a7c565b610247611a98565b610352600480360360208110156105e257600080fd5b5035611a9d565b6105f1611ab2565b604080516fffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6105f16004803603602081101561062c57600080fd5b50356fffffffffffffffffffffffffffffffff16611aca565b6102476004803603602081101561065b57600080fd5b5035611aee565b6101f96004803603604081101561067857600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16611b05565b6101f9600480360360408110156106b157600080fd5b506fffffffffffffffffffffffffffffffff81358116916020013516611b78565b610247611c7a565b610247611c9e565b6107137fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e61070e611ce4565b611739565b61077e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420616e206f776e657220726f6c650000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff82166107ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806121a9602a913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8116610856576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806121a9602a913960400191505060405180910390fd5b610861600083610e91565b61088b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e83610e91565b6108b57f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0882610e91565b6108e67fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e6108e1611ce4565b610e9b565b6108f360006108e1611ce4565b5050565b6109237fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e61070e611ce4565b61098e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420616e206f776e657220726f6c650000000000604482015290519081900360640190fd5b6fffffffffffffffffffffffffffffffff811660009081526004602052604090205460ff16610a08576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b81526020018061222c602b913960400191505060405180910390fd5b6fffffffffffffffffffffffffffffffff16600090815260046020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b60009081526020819052604090206002015490565b610a917fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e61070e611ce4565b610afc57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420616e206f776e657220726f6c650000000000604482015290519081900360640190fd5b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b610b6f7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e61070e611ce4565b610bda57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420616e206f776e657220726f6c650000000000604482015290519081900360640190fd5b806fffffffffffffffffffffffffffffffff16826fffffffffffffffffffffffffffffffff161415610c57576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260388152602001806121716038913960400191505060405180910390fd5b6003546fffffffffffffffffffffffffffffffff82811691161415610cc7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252604681526020018061212b6046913960600191505060405180910390fd5b6fffffffffffffffffffffffffffffffff821660009081526004602052604090205460ff16610d41576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b81526020018061222c602b913960400191505060405180910390fd5b6fffffffffffffffffffffffffffffffff811660009081526004602052604090205460ff1615610dbc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180612284602e913960400191505060405180910390fd5b6fffffffffffffffffffffffffffffffff91821660009081526004602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009081169091559290931681529190912080549091166001179055565b600082815260208190526040902060020154610e3c9061070e611ce4565b610e91576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f8152602001806120fc602f913960400191505060405180910390fd5b6108f38282611ce8565b610ea3611ce4565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f26576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f8152602001806122da602f913960400191505060405180910390fd5b6108f38282611d6b565b60009081526006602052604090205460ff1690565b610f717fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e61070e611ce4565b610fdc57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420616e206f776e657220726f6c650000000000604482015290519081900360640190fd5b6003546fffffffffffffffffffffffffffffffff8281169116141561104c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252604681526020018061212b6046913960600191505060405180910390fd5b6fffffffffffffffffffffffffffffffff811660009081526004602052604090205460ff16156110c7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180612284602e913960400191505060405180910390fd5b6fffffffffffffffffffffffffffffffff16600090815260046020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b600081511161116c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602d815260200180612257602d913960400191505060405180910390fd5b6fffffffffffffffffffffffffffffffff831660009081526004602052604090205460ff1680156111b457506003546fffffffffffffffffffffffffffffffff848116911614155b611209576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806122b26028913960400191505060405180910390fd5b6fffffffffffffffffffffffffffffffff80841660009081526005602052604090205416821015611285576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806121d36029913960400191505060405180910390fd5b600061128f611ce4565b600154604080517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff80851660048301529151939450869391909216916370a08231916024808301926020929190829003018186803b15801561130757600080fd5b505afa15801561131b573d6000803e3d6000fd5b505050506040513d602081101561133157600080fd5b505110156113a057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f73776170436f6e74726163743a204e6f7420656e6f7567682062616c616e6365604482015290519081900360640190fd5b600154604080517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff848116600483015230602483015260448201879052915191909216916323b872dd9160648083019260209291908290030181600087803b15801561142257600080fd5b505af1158015611436573d6000803e3d6000fd5b505050506040513d602081101561144c57600080fd5b5050604080516fffffffffffffffffffffffffffffffff8616815273ffffffffffffffffffffffffffffffffffffffff831660208281019190915291810185905260806060820181815285519183019190915284517f530414e7b01e4eb239740ce86981a020e12faaffca6a86bbb62113a4ffafbaf693889386938993899360a08401919085019080838360005b838110156114f25781810151838201526020016114da565b50505050905090810190601f16801561151f5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a150505050565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b61157d7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e61070e611ce4565b6115e857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420616e206f776e657220726f6c650000000000604482015290519081900360640190fd5b600154604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561166457600080fd5b505af1158015611678573d6000803e3d6000fd5b505050506040513d602081101561168e57600080fd5b50506040805173ffffffffffffffffffffffffffffffffffffffff84168152602081018390528082018390526000606082015290517f8157b9086cfdda00012a3010e96c58ca2bf54627629af408db9302736af9e0659181900360800190a15050565b6fffffffffffffffffffffffffffffffff1660009081526004602052604090205460ff1690565b60008281526020819052604081206117309083611dee565b90505b92915050565b60008281526020819052604081206117309083611dfa565b61177d7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e61070e611ce4565b6117e857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420616e206f776e657220726f6c650000000000604482015290519081900360640190fd5b6117f181610f30565b15611847576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b8152602001806120d1602b913960400191505060405180910390fd5b600081815260066020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556003546fffffffffffffffffffffffffffffffff9081168452600590925282205416906118ae8483611e1c565b600154604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff898116600483015260248201859052915193945091169163a9059cbb916044808201926020929091908290030181600087803b15801561192c57600080fd5b505af1158015611940573d6000803e3d6000fd5b505050506040513d602081101561195657600080fd5b5050600154600254604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9283166004820152602481018690529051919092169163a9059cbb9160448083019260209291908290030181600087803b1580156119d757600080fd5b505af11580156119eb573d6000803e3d6000fd5b505050506040513d6020811015611a0157600080fd5b50506040805173ffffffffffffffffffffffffffffffffffffffff87168152602081018690528082018390526060810185905290517f8157b9086cfdda00012a3010e96c58ca2bf54627629af408db9302736af9e0659181900360800190a15050505050565b60046020526000908152604090205460ff1681565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b600081565b60066020526000908152604090205460ff1681565b6003546fffffffffffffffffffffffffffffffff1681565b6005602052600090815260409020546fffffffffffffffffffffffffffffffff1681565b600081815260208190526040812061173390611e93565b600082815260208190526040902060020154611b239061070e611ce4565b610f26576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806121fc6030913960400191505060405180910390fd5b611ba47fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e61070e611ce4565b80611bd65750611bd67f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0861070e611ce4565b611c2b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806120ab6026913960400191505060405180910390fd5b6fffffffffffffffffffffffffffffffff918216600090815260056020526040902080547fffffffffffffffffffffffffffffffff000000000000000000000000000000001691909216179055565b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e81565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0881565b60006117308373ffffffffffffffffffffffffffffffffffffffff8416611e9e565b3390565b6000828152602081905260409020611d009082611cc2565b156108f357611d0d611ce4565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081905260409020611d839082611ee8565b156108f357611d90611ce4565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60006117308383611f0a565b60006117308373ffffffffffffffffffffffffffffffffffffffff8416611f88565b600082821115611e8d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600061173382611fa0565b6000611eaa8383611f88565b611ee057508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611733565b506000611733565b60006117308373ffffffffffffffffffffffffffffffffffffffff8416611fa4565b81546000908210611f66576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806120896022913960400191505060405180910390fd5b826000018281548110611f7557fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b6000818152600183016020526040812054801561207e5783547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8083019190810190600090879083908110611ff557fe5b906000526020600020015490508087600001848154811061201257fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061204257fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050611733565b600091505061173356fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647343616c6c6572206973206e6f7420616e206f776e6572206f72206d616e6167657220726f6c6573776170436f6e74726163743a205472616e73616374696f6e20616c72656164792070726f636573736564416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7473776170436f6e74726163743a2043616e6e6f7420616464207468697320626c6f636b636861696e20746f206172726179206f66206f7468657220626c6f636b636861696e7373776170436f6e74726163743a2043616e6e6f74206368616e676520626c6f636b636861696e7320776974682073616d65206e756d62657273776170436f6e74726163743a204f776e65722063616e6e6f74206265207a65726f206164647265737373776170436f6e74726163743a204e6f7420656e6f75676820616d6f756e74206f6620746f6b656e73416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b6573776170436f6e74726163743a205468697320626c6f636b636861696e20776173206e6f7420616464656473776170436f6e74726163743a204e6f2064657374696e6174696f6e20616464726573732070726f766964656473776170436f6e74726163743a205468697320626c6f636b636861696e20697320616c726561647920616464656473776170436f6e74726163743a2057726f6e672063686f6f7365206f6620626c6f636b636861696e416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212209dbb15719b5f870757b26dbf60d1d946212786838690cbe6d9b15a2e7596e41c64736f6c63430007060033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000062786eeacc9246b4018e0146cb7a3efeacd9459d00000000000000000000000071a06a94a8f08ba850bb7fc86c4754aa09d7e4dd0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001

-----Decoded View---------------
Arg [0] : _tokenAddress (address): 0x62786Eeacc9246b4018e0146cb7a3efeACD9459D
Arg [1] : _feeAddress (address): 0x71a06A94A8F08bA850bB7Fc86C4754aA09D7e4Dd
Arg [2] : _numOfThisBlockchain (uint128): 2
Arg [3] : _numsOfOtherBlockchains (uint128[]): 1

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 00000000000000000000000062786eeacc9246b4018e0146cb7a3efeacd9459d
Arg [1] : 00000000000000000000000071a06a94a8f08ba850bb7fc86c4754aa09d7e4dd
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000001


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

OVERVIEW

Cross-chain swaps between other blockhains supported.

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.