ETH Price: $2,804.53 (+1.22%)

Contract

0x67AC0F6872251b5e99c52a1208D992e7184EEF26
 

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...201717342024-06-25 22:38:47242 days ago1719355127IN
0x67AC0F68...7184EEF26
0 ETH0.000304763.50670388
Transfer To Othe...201615472024-06-24 12:29:35244 days ago1719232175IN
0x67AC0F68...7184EEF26
0 ETH0.000616737.09623497
Transfer To User...201040502024-06-16 11:27:23252 days ago1718537243IN
0x67AC0F68...7184EEF26
0 ETH0.000422373.30412307
Transfer To User...200073682024-06-02 23:17:59265 days ago1717370279IN
0x67AC0F68...7184EEF26
0 ETH0.000680166.14169608
Transfer To User...199942712024-06-01 3:25:47267 days ago1717212347IN
0x67AC0F68...7184EEF26
0 ETH0.000714975.59298131
Transfer To User...199930862024-05-31 23:27:23267 days ago1717198043IN
0x67AC0F68...7184EEF26
0 ETH0.000695346.27938095
Transfer To User...199930752024-05-31 23:25:11267 days ago1717197911IN
0x67AC0F68...7184EEF26
0 ETH0.000775836.06849656
Transfer To User...199930712024-05-31 23:24:11267 days ago1717197851IN
0x67AC0F68...7184EEF26
0 ETH0.000809256.32871321
Transfer To User...198640442024-05-13 22:21:23285 days ago1715638883IN
0x67AC0F68...7184EEF26
0 ETH0.000475983.72241025
Transfer To User...197822662024-05-02 11:53:47297 days ago1714650827IN
0x67AC0F68...7184EEF26
0 ETH0.000868516.79341104
Transfer To User...197667142024-04-30 7:44:11299 days ago1714463051IN
0x67AC0F68...7184EEF26
0 ETH0.000946657.40465378
Transfer To Othe...194592182024-03-18 4:10:47342 days ago1710735047IN
0x67AC0F68...7184EEF26
0 ETH0.0021209824.4043495
Transfer To User...194591662024-03-18 3:59:59342 days ago1710734399IN
0x67AC0F68...7184EEF26
0 ETH0.0021471119.38770809
Transfer To User...193083492024-02-26 1:04:35363 days ago1708909475IN
0x67AC0F68...7184EEF26
0 ETH0.0028359622.18478369
Transfer To Othe...190031612024-01-14 5:52:59406 days ago1705211579IN
0x67AC0F68...7184EEF26
0 ETH0.0025497932.98146765
Transfer To User...189886802024-01-12 5:17:59408 days ago1705036679IN
0x67AC0F68...7184EEF26
0 ETH0.0017496413.68297333
Transfer To User...189827732024-01-11 9:24:35409 days ago1704965075IN
0x67AC0F68...7184EEF26
0 ETH0.0025619223.13336437
Transfer To User...189827512024-01-11 9:20:11409 days ago1704964811IN
0x67AC0F68...7184EEF26
0 ETH0.0037050228.98033649
Transfer To Othe...188733222023-12-27 0:04:47424 days ago1703635487IN
0x67AC0F68...7184EEF26
0 ETH0.0011104313.51984049
Transfer To User...188595412023-12-25 1:39:35426 days ago1703468375IN
0x67AC0F68...7184EEF26
0 ETH0.001804814.11570421
Transfer To User...187506022023-12-09 18:58:59442 days ago1702148339IN
0x67AC0F68...7184EEF26
0 ETH0.0034714627.14843154
Transfer To User...187225642023-12-05 20:36:23445 days ago1701808583IN
0x67AC0F68...7184EEF26
0 ETH0.0071186855.6817042
Transfer To User...186986552023-12-02 12:15:11449 days ago1701519311IN
0x67AC0F68...7184EEF26
0 ETH0.0029836626.9415031
Transfer To User...186458062023-11-25 2:43:11456 days ago1700880191IN
0x67AC0F68...7184EEF26
0 ETH0.0034348126.86937361
Transfer To User...186105722023-11-20 4:19:11461 days ago1700453951IN
0x67AC0F68...7184EEF26
0 ETH0.0025734420.1292751
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.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 999999 runs

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

pragma solidity ^0.8.4;


import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "./TransferHelper.sol";

/// @title Swap contract for simple bridge
contract swapContract is AccessControlEnumerable, Pausable
{

    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;
    
    uint256 public minTokenAmount;
    uint256 public maxGasPrice;
    

    event TransferFromOtherBlockchain(address user, uint256 amount, uint256 amountWithoutFee, bytes32 originalTxHash);
    event TransferToOtherBlockchain(uint128 blockchain, address user, uint256 amount, string newAddress);
    

    /** 
      * @dev throws if transaction sender is not in owner role
    */  
    modifier onlyOwner() {
        require(
            hasRole(OWNER_ROLE, _msgSender()),
            "Caller is not in owner role"
        );
        _;
    }

    /** 
      * @dev throws if transaction sender is not in owner or manager role
      */
    modifier onlyOwnerAndManager() {
        require(
            hasRole(OWNER_ROLE, _msgSender()) || hasRole(MANAGER_ROLE, _msgSender()),
            "Caller is not in owner or manager role"
        );
        _;
    }

    /** 
      * @dev Constructor of contract
      * @param _tokenAddress address Address of token contract
      * @param _feeAddress Address to receive deducted fees
      * @param _numOfThisBlockchain Number of blockchain where contract is deployed
      * @param _numsOfOtherBlockchains List of blockchain number that is supported by bridge
      * @param _minTokenAmount Minimal amount of tokens required for token swap
      * @param _maxGasPrice Maximum gas price on which relayer nodes will operate
      */
    constructor(
        IERC20 _tokenAddress,
        address _feeAddress,
        uint128 _numOfThisBlockchain,
        uint128 [] memory _numsOfOtherBlockchains,
        uint256 _minTokenAmount,
        uint256 _maxGasPrice
        
        )
    {
        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;
        }

        require(_maxGasPrice > 0, "swapContract: Gas price cannot be zero");
        
        numOfThisBlockchain = _numOfThisBlockchain;
        minTokenAmount = _minTokenAmount;
        maxGasPrice = _maxGasPrice;
        
        
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _setupRole(OWNER_ROLE, _msgSender());
    }

    /** 
      * @dev Returns true if blockchain of passed id is registered to swap
      * @param blockchain number of blockchain
      */
    function getOtherBlockchainAvailableByNum(uint128 blockchain) external view returns (bool)
    {
        return existingOtherBlockchain[blockchain];
    }

    /** 
      * @dev Transfers tokens from sender to the contract. 
      * User calls this function when he wants to transfer tokens to another blockchain.
      * @param blockchain Number of blockchain
      * @param amount Amount of tokens
      * @param newAddress Address in the blockchain to which the user wants to transfer
      */
    function transferToOtherBlockchain(uint128 blockchain, uint256 amount, string memory newAddress) external whenNotPaused
    {
        require( 
            amount >= minTokenAmount,
            "swapContract: Less than required minimum of tokens requested"
        );
        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"
        );
        TransferHelper.safeTransferFrom(address(tokenAddress), sender, address(this), amount);
        emit TransferToOtherBlockchain(blockchain, sender, amount, newAddress);
    }
    
    /** 
      * @dev Transfers tokens to end user in current blockchain (without fees)
      * @param user User address
      * @param amount Amount of tokens
      */
    function transferToUserWithoutFee(address user, uint256 amount) external onlyOwner whenNotPaused
    {
        TransferHelper.safeTransferFrom(address(tokenAddress), user, address(this), amount);
        emit TransferFromOtherBlockchain(user, amount, amount, bytes32(0));
    }

    /** 
      * @dev Transfers tokens to end user in current blockchain 
      * @param user User address
      * @param amountWithFee Amount of tokens with included fees
      * @param originalTxHash Hash of transaction from other network, on which swap was called
      */
    function transferToUserWithFee(
        address user,
        uint256 amountWithFee,
        bytes32 originalTxHash
    )
        external
        onlyOwner
        whenNotPaused
    {
        require(!isProcessedTransaction(originalTxHash), "swapContract: Transaction already processed");
        processedTransactions[originalTxHash] = true;
        uint256 fee = feeAmountOfBlockchain[numOfThisBlockchain];
        uint256 amountWithoutFee = amountWithFee - fee;
        TransferHelper.safeTransfer(address(tokenAddress), user, amountWithoutFee);
        TransferHelper.safeTransfer(address(tokenAddress), feeAddress, fee);
        emit TransferFromOtherBlockchain(user, amountWithFee, amountWithoutFee, originalTxHash);
    }

    // OTHER BLOCKCHAIN MANAGEMENT

    
    /** 
      * @dev Registers another blockchain for availability to swap
      * @param numOfOtherBlockchain number of blockchain
      */
    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;
    }

    /** 
      * @dev Unregisters another blockchain for availability to swap
      * @param numOfOtherBlockchain number of blockchain
      */
    function removeOtherBlockchain(
        uint128 numOfOtherBlockchain
    )
        external
        onlyOwner
    {
        require(
            existingOtherBlockchain[numOfOtherBlockchain],
            "swapContract: This blockchain was not added"
        );
        existingOtherBlockchain[numOfOtherBlockchain] = false;
    }

    /** 
      * @dev Change existing blockchain id
      * @param oldNumOfOtherBlockchain number of existing blockchain
      * @param newNumOfOtherBlockchain number of new blockchain
      */
    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;
    }


    // FEE MANAGEMENT

    /** 
      * @dev Changes address which receives fees from transfers
      * @param newFeeAddress New address for fees
      */
    function changeFeeAddress(address newFeeAddress) external onlyOwner
    {
        feeAddress = newFeeAddress;
    }

    /** 
      * @dev Changes fee values for blockchains in feeAmountOfBlockchain variables
      * @param blockchainNum Existing number of blockchain
      * @param feeAmount Fee amount to substruct from transfer amount
      */
    function setFeeAmountOfBlockchain(uint128 blockchainNum, uint128 feeAmount) external onlyOwnerAndManager
    {
        feeAmountOfBlockchain[blockchainNum] = feeAmount;
    }

    /** 
      * @dev Changes requirement for minimal token amount on transfers
      * @param _minTokenAmount Amount of tokens
      */
    function setMinTokenAmount(uint256 _minTokenAmount) external onlyOwnerAndManager {
        minTokenAmount = _minTokenAmount;
    }

    /** 
      * @dev Changes parameter of maximum gas price on which relayer nodes will operate
      * @param _maxGasPrice Price of gas in wei
      */
    function setMaxGasPrice(uint256 _maxGasPrice) external onlyOwnerAndManager {
        require(_maxGasPrice > 0, "swapContract: Gas price cannot be zero");
        maxGasPrice = _maxGasPrice;
    }


    

    

    function transferOwnerAndSetManager(address newOwner, address newManager) external onlyOwner {
        require(newOwner != address(0x0), "swapContract: Owner cannot be zero address");
        require(!hasRole(OWNER_ROLE, newOwner), "swapContract: New owner cannot be current owner");
        require(!hasRole(DEFAULT_ADMIN_ROLE, newOwner), "swapContract: New owner cannot be current default admin role");
        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());
    }

    /** 
      * @dev Pauses transfers of tokens on contract
      */
    function pauseExecution() external onlyOwner {
        _pause();
    }

    /** 
      * @dev Resumes transfers of tokens on contract
      */
    function continueExecution() external onlyOwner {
        _unpause();
    }

    /** 
      * @dev Function to check if address is belongs to owner role
      * @param account Address to check
      */
    function isOwner(address account) public view returns (bool) {
        return hasRole(OWNER_ROLE, account);
    }

    /** 
      * @dev Function to check if address is belongs to manager role
      * @param account Address to check
      */
    function isManager(address account) public view returns (bool) {
        return hasRole(MANAGER_ROLE, account);
    }
    
    /** 
      * @dev Function to check if transfer of tokens on previous
      * transaction from other blockchain was executed
      * @param originalTxHash Transaction hash to check
      */
    function isProcessedTransaction(bytes32 originalTxHash) public view returns (bool processed) {
        return processedTransactions[originalTxHash];
    }
}

File 2 of 11 : TransferHelper.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false
library TransferHelper {
    function safeApprove(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('approve(address,uint256)')));
        (bool success, bytes memory data) =
            token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            "TransferHelper::safeApprove: approve failed"
        );
    }

    function safeTransfer(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transfer(address,uint256)')));
        (bool success, bytes memory data) =
            token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            "TransferHelper::safeTransfer: transfer failed"
        );
    }

    function safeTransferFrom(
        address token,
        address from,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
        (bool success, bytes memory data) =
            token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            "TransferHelper::transferFrom: transferFrom failed"
        );
    }

    function safeTransferETH(address to, uint256 value) internal {
        (bool success, ) = to.call{value: value}(new bytes(0));
        require(
            success,
            "TransferHelper::safeTransferETH: ETH transfer failed"
        );
    }
}

File 3 of 11 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    function hasRole(bytes32 role, address account) external view returns (bool);

    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    function grantRole(bytes32 role, address account) external;

    function revokeRole(bytes32 role, address account) external;

    function renounceRole(bytes32 role, address account) external;
}

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * 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, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) 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 Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

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

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{20}) is missing role (0x[0-9a-f]{32})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @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 override 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 override onlyRole(getRoleAdmin(role)) {
        _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 override onlyRole(getRoleAdmin(role)) {
        _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 override {
        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, getRoleAdmin(role), adminRole);
        _roles[role].adminRole = adminRole;
    }

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

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

File 4 of 11 : AccessControlEnumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./AccessControl.sol";
import "../utils/structs/EnumerableSet.sol";

/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable {
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @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 override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @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 override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {grantRole} to track enumerable memberships
     */
    function grantRole(bytes32 role, address account) public virtual override {
        super.grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {revokeRole} to track enumerable memberships
     */
    function revokeRole(bytes32 role, address account) public virtual override {
        super.revokeRole(role, account);
        _roleMembers[role].remove(account);
    }

    /**
     * @dev Overload {renounceRole} to track enumerable memberships
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        super.renounceRole(role, account);
        _roleMembers[role].remove(account);
    }

    /**
     * @dev Overload {_setupRole} to track enumerable memberships
     */
    function _setupRole(bytes32 role, address account) internal virtual override {
        super._setupRole(role, account);
        _roleMembers[role].add(account);
    }
}

File 5 of 11 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 6 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^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 7 of 11 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^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 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) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 8 of 11 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 9 of 11 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 10 of 11 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

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

pragma solidity ^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;

            if (lastIndex != toDeleteIndex) {
                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] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // 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) {
        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[]"},{"internalType":"uint256","name":"_minTokenAmount","type":"uint256"},{"internalType":"uint256","name":"_maxGasPrice","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","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":[],"name":"continueExecution","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":"address","name":"account","type":"address"}],"name":"isManager","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isOwner","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":"maxGasPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minTokenAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numOfThisBlockchain","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseExecution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"uint256","name":"_maxGasPrice","type":"uint256"}],"name":"setMaxGasPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minTokenAmount","type":"uint256"}],"name":"setMinTokenAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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"}]

60806040523480156200001157600080fd5b5060405162003be338038062003be3833981016040819052620000349162000409565b600280546001600160a81b0319166101006001600160a01b038981169190910291909117909155600380546001600160a01b03191691871691909117905560005b8351811015620001b457846001600160801b0316848281518110620000aa57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160801b03161415620001465760405162461bcd60e51b815260206004820152604860248201527f73776170436f6e74726163743a204e756d626572206f66207468697320626c6f60448201527f636b636861696e20697320696e206172726179206f66206f7468657220626c6f606482015267636b636861696e7360c01b608482015260a4015b60405180910390fd5b6001600560008684815181106200016d57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160801b03168252810191909152604001600020805460ff191691151591909117905580620001ab8162000530565b91505062000075565b5060008111620002165760405162461bcd60e51b815260206004820152602660248201527f73776170436f6e74726163743a204761732070726963652063616e6e6f74206260448201526565207a65726f60d01b60648201526084016200013d565b600480546001600160801b0319166001600160801b038616179055600882905560098190556200024f6000620002493390565b62000287565b6200027b7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e3362000287565b50505050505062000587565b6200029e8282620002ca60201b6200224d1760201c565b6000828152600160209081526040909120620002c591839062002257620002da821b17901c565b505050565b620002d68282620002fa565b5050565b6000620002f1836001600160a01b0384166200039a565b90505b92915050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620002d6576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620003563390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000818152600183016020526040812054620003e357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620002f4565b506000620002f4565b80516001600160801b03811681146200040457600080fd5b919050565b60008060008060008060c0878903121562000422578182fd5b86516200042f816200056e565b8096505060208088015162000444816200056e565b95506200045460408901620003ec565b60608901519095506001600160401b038082111562000471578485fd5b818a0191508a601f83011262000485578485fd5b8151818111156200049a576200049a62000558565b8060051b604051601f19603f83011681018181108582111715620004c257620004c262000558565b604052828152858101935084860182860187018f1015620004e1578889fd5b8895505b838610156200050e57620004f981620003ec565b855260019590950194938601938601620004e5565b508098505050505050506080870151915060a087015190509295509295509295565b60006000198214156200055157634e487b7160e01b81526011600452602481fd5b5060010190565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146200058457600080fd5b50565b61364c80620005976000396000f3fe608060405234801561001057600080fd5b50600436106102775760003560e01c80637483274811610160578063ac2e4936116100d8578063d547741f1161008c578063e58378bb11610071578063e58378bb1461060a578063ec87621c14610631578063f3ae24151461065857600080fd5b8063d547741f146105e4578063d86d1d1a146105f757600080fd5b8063c5d4d1c2116100bd578063c5d4d1c21461058c578063ca15c873146105be578063d2fa635e146105d157600080fd5b8063ac2e49361461052c578063bf9cfe051461054f57600080fd5b80639294a0301161012f578063960f5e8911610114578063960f5e89146104dc5780639d76ea58146104ff578063a217fddf1461052457600080fd5b80639294a030146104c0578063952867b1146104c957600080fd5b8063748327481461042c5780638124bb0f146104615780639010d07c1461046957806391d148541461047c57600080fd5b80632f54bf6e116101f35780633de39c11116101c257806341275358116101a757806341275358146103c95780634f8d99a61461040e5780635c975abb1461042157600080fd5b80633de39c11146103ad5780633f19f657146103b657600080fd5b80632f54bf6e1461035157806336568abe146103645780633771fc2f146103775780633db99b361461039a57600080fd5b806320b337c41161024a578063285e14061161022f578063285e1406146103185780632a3221c61461032b5780632f2ff15d1461033e57600080fd5b806320b337c4146102d4578063248a9ca3146102e757600080fd5b806301ffc9a71461027c578063102a95af146102a45780631641f1ba146102b95780631f041ec6146102cc575b600080fd5b61028f61028a366004613217565b61066b565b60405190151581526020015b60405180910390f35b6102b76102b236600461310f565b6106c7565b005b6102b76102c73660046131bc565b610ae4565b6102b7610bcf565b6102b76102e2366004613257565b610c69565b61030a6102f53660046131bc565b60009081526020819052604090206001015490565b60405190815260200161029b565b6102b76103263660046130f5565b610df2565b6102b7610339366004613271565b610ec9565b6102b761034c3660046131d4565b61129f565b61028f61035f3660046130f5565b6112c6565b6102b76103723660046131d4565b611313565b61028f6103853660046131bc565b60009081526007602052604090205460ff1690565b6102b76103a8366004613257565b611335565b61030a60095481565b6102b76103c436600461329a565b61158f565b6003546103e99073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161029b565b6102b761041c366004613141565b611a2c565b60025460ff1661028f565b61028f61043a366004613257565b6fffffffffffffffffffffffffffffffff1660009081526005602052604090205460ff1690565b6102b7611bb5565b6103e96104773660046131f6565b611c4d565b61028f61048a3660046131d4565b60009182526020828152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b61030a60085481565b6102b76104d736600461316a565b611c6c565b61028f6104ea366004613257565b60056020526000908152604090205460ff1681565b6002546103e990610100900473ffffffffffffffffffffffffffffffffffffffff1681565b61030a600081565b61028f61053a3660046131bc565b60076020526000908152604090205460ff1681565b60045461056b906fffffffffffffffffffffffffffffffff1681565b6040516fffffffffffffffffffffffffffffffff909116815260200161029b565b61056b61059a366004613257565b6006602052600090815260409020546fffffffffffffffffffffffffffffffff1681565b61030a6105cc3660046131bc565b611f2f565b6102b76105df3660046131bc565b611f46565b6102b76105f23660046131d4565b6120c1565b6102b7610605366004613271565b6120cb565b61030a7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e81565b61030a7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0881565b61028f6106663660046130f5565b612200565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f5a05180f0000000000000000000000000000000000000000000000000000000014806106c157506106c182612279565b92915050565b6106f17fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e3361048a565b61075c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420696e206f776e657220726f6c65000000000060448201526064015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff82166107ff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f73776170436f6e74726163743a204f776e65722063616e6e6f74206265207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610753565b73ffffffffffffffffffffffffffffffffffffffff821660009081527fd329ff8a035c3ce5df2b0dae604d660c0d8783bf7e64be00c1d10db96c0b87b4602052604090205460ff16156108d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f73776170436f6e74726163743a204e6577206f776e65722063616e6e6f74206260448201527f652063757272656e74206f776e657200000000000000000000000000000000006064820152608401610753565b73ffffffffffffffffffffffffffffffffffffffff821660009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16156109a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603c60248201527f73776170436f6e74726163743a204e6577206f776e65722063616e6e6f74206260448201527f652063757272656e742064656661756c742061646d696e20726f6c65000000006064820152608401610753565b73ffffffffffffffffffffffffffffffffffffffff8116610a4c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f73776170436f6e74726163743a204f776e65722063616e6e6f74206265207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610753565b610a57600083612310565b610a817fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e83612310565b610aab7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0882612310565b610ad57fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e33611313565b610ae0600033611313565b5050565b610b0e7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e3361048a565b80610b3e5750610b3e7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b083361048a565b610bca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f43616c6c6572206973206e6f7420696e206f776e6572206f72206d616e61676560448201527f7220726f6c6500000000000000000000000000000000000000000000000000006064820152608401610753565b600855565b610bf97fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e3361048a565b610c5f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420696e206f776e657220726f6c6500000000006044820152606401610753565b610c6761231a565b565b610c937fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e3361048a565b610cf9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420696e206f776e657220726f6c6500000000006044820152606401610753565b6fffffffffffffffffffffffffffffffff811660009081526005602052604090205460ff16610daa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f73776170436f6e74726163743a205468697320626c6f636b636861696e20776160448201527f73206e6f742061646465640000000000000000000000000000000000000000006064820152608401610753565b6fffffffffffffffffffffffffffffffff16600090815260056020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b610e1c7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e3361048a565b610e82576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420696e206f776e657220726f6c6500000000006044820152606401610753565b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b610ef37fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e3361048a565b610f59576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420696e206f776e657220726f6c6500000000006044820152606401610753565b806fffffffffffffffffffffffffffffffff16826fffffffffffffffffffffffffffffffff16141561100d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f73776170436f6e74726163743a2043616e6e6f74206368616e676520626c6f6360448201527f6b636861696e7320776974682073616d65206e756d62657200000000000000006064820152608401610753565b6004546fffffffffffffffffffffffffffffffff828116911614156110da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604660248201527f73776170436f6e74726163743a2043616e6e6f7420616464207468697320626c60448201527f6f636b636861696e20746f206172726179206f66206f7468657220626c6f636b60648201527f636861696e730000000000000000000000000000000000000000000000000000608482015260a401610753565b6fffffffffffffffffffffffffffffffff821660009081526005602052604090205460ff1661118b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f73776170436f6e74726163743a205468697320626c6f636b636861696e20776160448201527f73206e6f742061646465640000000000000000000000000000000000000000006064820152608401610753565b6fffffffffffffffffffffffffffffffff811660009081526005602052604090205460ff161561123d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f73776170436f6e74726163743a205468697320626c6f636b636861696e20697360448201527f20616c72656164792061646465640000000000000000000000000000000000006064820152608401610753565b6fffffffffffffffffffffffffffffffff91821660009081526005602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009081169091559290931681529190912080549091166001179055565b6112a98282612404565b60008281526001602052604090206112c19082612257565b505050565b73ffffffffffffffffffffffffffffffffffffffff811660009081527fd329ff8a035c3ce5df2b0dae604d660c0d8783bf7e64be00c1d10db96c0b87b4602052604081205460ff166106c1565b61131d828261242a565b60008281526001602052604090206112c190826124d9565b61135f7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e3361048a565b6113c5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420696e206f776e657220726f6c6500000000006044820152606401610753565b6004546fffffffffffffffffffffffffffffffff82811691161415611492576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604660248201527f73776170436f6e74726163743a2043616e6e6f7420616464207468697320626c60448201527f6f636b636861696e20746f206172726179206f66206f7468657220626c6f636b60648201527f636861696e730000000000000000000000000000000000000000000000000000608482015260a401610753565b6fffffffffffffffffffffffffffffffff811660009081526005602052604090205460ff1615611544576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f73776170436f6e74726163743a205468697320626c6f636b636861696e20697360448201527f20616c72656164792061646465640000000000000000000000000000000000006064820152608401610753565b6fffffffffffffffffffffffffffffffff16600090815260056020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60025460ff16156115fc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610753565b60085482101561168e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603c60248201527f73776170436f6e74726163743a204c657373207468616e20726571756972656460448201527f206d696e696d756d206f6620746f6b656e7320726571756573746564000000006064820152608401610753565b600081511161171f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f73776170436f6e74726163743a204e6f2064657374696e6174696f6e2061646460448201527f726573732070726f7669646564000000000000000000000000000000000000006064820152608401610753565b6fffffffffffffffffffffffffffffffff831660009081526005602052604090205460ff16801561176757506004546fffffffffffffffffffffffffffffffff848116911614155b6117f3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f73776170436f6e74726163743a2057726f6e672063686f6f7365206f6620626c60448201527f6f636b636861696e0000000000000000000000000000000000000000000000006064820152608401610753565b6fffffffffffffffffffffffffffffffff808416600090815260066020526040902054168210156118a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f73776170436f6e74726163743a204e6f7420656e6f75676820616d6f756e742060448201527f6f6620746f6b656e7300000000000000000000000000000000000000000000006064820152608401610753565b6000336002546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff80841660048301529293508592610100909204909116906370a082319060240160206040518083038186803b15801561191f57600080fd5b505afa158015611933573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611957919061337e565b10156119bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f73776170436f6e74726163743a204e6f7420656e6f7567682062616c616e63656044820152606401610753565b6002546119e990610100900473ffffffffffffffffffffffffffffffffffffffff168230866124fb565b7f530414e7b01e4eb239740ce86981a020e12faaffca6a86bbb62113a4ffafbaf684828585604051611a1e9493929190613490565b60405180910390a150505050565b611a567fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e3361048a565b611abc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420696e206f776e657220726f6c6500000000006044820152606401610753565b60025460ff1615611b29576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610753565b600254611b5390610100900473ffffffffffffffffffffffffffffffffffffffff168330846124fb565b6040805173ffffffffffffffffffffffffffffffffffffffff8416815260208101839052908101829052600060608201527f8157b9086cfdda00012a3010e96c58ca2bf54627629af408db9302736af9e0659060800160405180910390a15050565b611bdf7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e3361048a565b611c45576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420696e206f776e657220726f6c6500000000006044820152606401610753565b610c6761269a565b6000828152600160205260408120611c659083612755565b9392505050565b611c967fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e3361048a565b611cfc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420696e206f776e657220726f6c6500000000006044820152606401610753565b60025460ff1615611d69576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610753565b60008181526007602052604090205460ff1615611e08576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f73776170436f6e74726163743a205472616e73616374696f6e20616c7265616460448201527f792070726f6365737365640000000000000000000000000000000000000000006064820152608401610753565b600081815260076020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556004546fffffffffffffffffffffffffffffffff908116845260069092528220541690611e6f828561353c565b600254909150611e9b90610100900473ffffffffffffffffffffffffffffffffffffffff168683612761565b600254600354611eca9173ffffffffffffffffffffffffffffffffffffffff6101009091048116911684612761565b6040805173ffffffffffffffffffffffffffffffffffffffff8716815260208101869052908101829052606081018490527f8157b9086cfdda00012a3010e96c58ca2bf54627629af408db9302736af9e0659060800160405180910390a15050505050565b60008181526001602052604081206106c1906128f7565b611f707fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e3361048a565b80611fa05750611fa07f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b083361048a565b61202c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f43616c6c6572206973206e6f7420696e206f776e6572206f72206d616e61676560448201527f7220726f6c6500000000000000000000000000000000000000000000000000006064820152608401610753565b600081116120bc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f73776170436f6e74726163743a204761732070726963652063616e6e6f74206260448201527f65207a65726f00000000000000000000000000000000000000000000000000006064820152608401610753565b600955565b61131d8282612901565b6120f57fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e3361048a565b8061212557506121257f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b083361048a565b6121b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f43616c6c6572206973206e6f7420696e206f776e6572206f72206d616e61676560448201527f7220726f6c6500000000000000000000000000000000000000000000000000006064820152608401610753565b6fffffffffffffffffffffffffffffffff918216600090815260066020526040902080547fffffffffffffffffffffffffffffffff000000000000000000000000000000001691909216179055565b73ffffffffffffffffffffffffffffffffffffffff811660009081527fe84508f2c7fa9c351146748b3025cb78b45df37d868e48c6a75102fecdeee645602052604081205460ff166106c1565b610ae08282612927565b6000611c658373ffffffffffffffffffffffffffffffffffffffff8416612a17565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806106c157507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146106c1565b6112a9828261224d565b60025460ff1615612387576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610753565b600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586123da3390565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b6000828152602081905260409020600101546124208133612a66565b6112c18383612927565b73ffffffffffffffffffffffffffffffffffffffff811633146124cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610753565b610ae08282612b36565b6000611c658373ffffffffffffffffffffffffffffffffffffffff8416612bed565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052915160009283929088169161259a91906133e0565b6000604051808303816000865af19150503d80600081146125d7576040519150601f19603f3d011682016040523d82523d6000602084013e6125dc565b606091505b5091509150818015612606575080511580612606575080806020019051810190612606919061319c565b612692576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f5472616e7366657248656c7065723a3a7472616e7366657246726f6d3a20747260448201527f616e7366657246726f6d206661696c65640000000000000000000000000000006064820152608401610753565b505050505050565b60025460ff16612706576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610753565b600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa336123da565b6000611c658383612d55565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905291516000928392908716916127f891906133e0565b6000604051808303816000865af19150503d8060008114612835576040519150601f19603f3d011682016040523d82523d6000602084013e61283a565b606091505b5091509150818015612864575080511580612864575080806020019051810190612864919061319c565b6128f0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260448201527f616e73666572206661696c6564000000000000000000000000000000000000006064820152608401610753565b5050505050565b60006106c1825490565b60008281526020819052604090206001015461291d8133612a66565b6112c18383612b36565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610ae05760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556129b93390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000818152600183016020526040812054612a5e575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556106c1565b5060006106c1565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610ae057612abc8173ffffffffffffffffffffffffffffffffffffffff166014612da6565b612ac7836020612da6565b604051602001612ad89291906133fc565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a00000000000000000000000000000000000000000000000000000000082526107539160040161347d565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1615610ae05760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60008181526001830160205260408120548015612d4b576000612c1160018361353c565b8554909150600090612c259060019061353c565b9050818114612cd8576000866000018281548110612c6c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080876000018481548110612cb6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b8554869080612d10577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506106c1565b60009150506106c1565b6000826000018281548110612d93577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905092915050565b60606000612db58360026134ff565b612dc09060026134e7565b67ffffffffffffffff811115612dff577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612e29576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612e87577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612f11577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000612f4d8460026134ff565b612f589060016134e7565b90505b6001811115613043577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110612fc0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110612ffd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c9361303c81613583565b9050612f5b565b508315611c65576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610753565b803573ffffffffffffffffffffffffffffffffffffffff811681146130d057600080fd5b919050565b80356fffffffffffffffffffffffffffffffff811681146130d057600080fd5b600060208284031215613106578081fd5b611c65826130ac565b60008060408385031215613121578081fd5b61312a836130ac565b9150613138602084016130ac565b90509250929050565b60008060408385031215613153578182fd5b61315c836130ac565b946020939093013593505050565b60008060006060848603121561317e578081fd5b613187846130ac565b95602085013595506040909401359392505050565b6000602082840312156131ad578081fd5b81518015158114611c65578182fd5b6000602082840312156131cd578081fd5b5035919050565b600080604083850312156131e6578182fd5b82359150613138602084016130ac565b60008060408385031215613208578182fd5b50508035926020909101359150565b600060208284031215613228578081fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114611c65578182fd5b600060208284031215613268578081fd5b611c65826130d5565b60008060408385031215613283578182fd5b61328c836130d5565b9150613138602084016130d5565b6000806000606084860312156132ae578283fd5b6132b7846130d5565b925060208401359150604084013567ffffffffffffffff808211156132da578283fd5b818601915086601f8301126132ed578283fd5b8135818111156132ff576132ff6135e7565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908382118183101715613345576133456135e7565b8160405282815289602084870101111561335d578586fd5b82602086016020830137856020848301015280955050505050509250925092565b60006020828403121561338f578081fd5b5051919050565b600081518084526133ae816020860160208601613553565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600082516133f2818460208701613553565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613434816017850160208801613553565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351613471816028840160208801613553565b01602801949350505050565b602081526000611c656020830184613396565b6fffffffffffffffffffffffffffffffff8516815273ffffffffffffffffffffffffffffffffffffffff841660208201528260408201526080606082015260006134dd6080830184613396565b9695505050505050565b600082198211156134fa576134fa6135b8565b500190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613537576135376135b8565b500290565b60008282101561354e5761354e6135b8565b500390565b60005b8381101561356e578181015183820152602001613556565b8381111561357d576000848401525b50505050565b600081613592576135926135b8565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea2646970667358221220d565e3f59e703df110aa4b1d3ffa4d5e125988552f53ad1e411712547a7ea51264736f6c634300080400330000000000000000000000003757232b55e60da4a8793183ac030cfce4c3865d000000000000000000000000c9c5c2f3956b225dfea6ec262758fe4bdf367603000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000010f0cf064dd59200000000000000000000000000000000000000000000000000000000000174876e80000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102775760003560e01c80637483274811610160578063ac2e4936116100d8578063d547741f1161008c578063e58378bb11610071578063e58378bb1461060a578063ec87621c14610631578063f3ae24151461065857600080fd5b8063d547741f146105e4578063d86d1d1a146105f757600080fd5b8063c5d4d1c2116100bd578063c5d4d1c21461058c578063ca15c873146105be578063d2fa635e146105d157600080fd5b8063ac2e49361461052c578063bf9cfe051461054f57600080fd5b80639294a0301161012f578063960f5e8911610114578063960f5e89146104dc5780639d76ea58146104ff578063a217fddf1461052457600080fd5b80639294a030146104c0578063952867b1146104c957600080fd5b8063748327481461042c5780638124bb0f146104615780639010d07c1461046957806391d148541461047c57600080fd5b80632f54bf6e116101f35780633de39c11116101c257806341275358116101a757806341275358146103c95780634f8d99a61461040e5780635c975abb1461042157600080fd5b80633de39c11146103ad5780633f19f657146103b657600080fd5b80632f54bf6e1461035157806336568abe146103645780633771fc2f146103775780633db99b361461039a57600080fd5b806320b337c41161024a578063285e14061161022f578063285e1406146103185780632a3221c61461032b5780632f2ff15d1461033e57600080fd5b806320b337c4146102d4578063248a9ca3146102e757600080fd5b806301ffc9a71461027c578063102a95af146102a45780631641f1ba146102b95780631f041ec6146102cc575b600080fd5b61028f61028a366004613217565b61066b565b60405190151581526020015b60405180910390f35b6102b76102b236600461310f565b6106c7565b005b6102b76102c73660046131bc565b610ae4565b6102b7610bcf565b6102b76102e2366004613257565b610c69565b61030a6102f53660046131bc565b60009081526020819052604090206001015490565b60405190815260200161029b565b6102b76103263660046130f5565b610df2565b6102b7610339366004613271565b610ec9565b6102b761034c3660046131d4565b61129f565b61028f61035f3660046130f5565b6112c6565b6102b76103723660046131d4565b611313565b61028f6103853660046131bc565b60009081526007602052604090205460ff1690565b6102b76103a8366004613257565b611335565b61030a60095481565b6102b76103c436600461329a565b61158f565b6003546103e99073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161029b565b6102b761041c366004613141565b611a2c565b60025460ff1661028f565b61028f61043a366004613257565b6fffffffffffffffffffffffffffffffff1660009081526005602052604090205460ff1690565b6102b7611bb5565b6103e96104773660046131f6565b611c4d565b61028f61048a3660046131d4565b60009182526020828152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b61030a60085481565b6102b76104d736600461316a565b611c6c565b61028f6104ea366004613257565b60056020526000908152604090205460ff1681565b6002546103e990610100900473ffffffffffffffffffffffffffffffffffffffff1681565b61030a600081565b61028f61053a3660046131bc565b60076020526000908152604090205460ff1681565b60045461056b906fffffffffffffffffffffffffffffffff1681565b6040516fffffffffffffffffffffffffffffffff909116815260200161029b565b61056b61059a366004613257565b6006602052600090815260409020546fffffffffffffffffffffffffffffffff1681565b61030a6105cc3660046131bc565b611f2f565b6102b76105df3660046131bc565b611f46565b6102b76105f23660046131d4565b6120c1565b6102b7610605366004613271565b6120cb565b61030a7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e81565b61030a7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0881565b61028f6106663660046130f5565b612200565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f5a05180f0000000000000000000000000000000000000000000000000000000014806106c157506106c182612279565b92915050565b6106f17fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e3361048a565b61075c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420696e206f776e657220726f6c65000000000060448201526064015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff82166107ff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f73776170436f6e74726163743a204f776e65722063616e6e6f74206265207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610753565b73ffffffffffffffffffffffffffffffffffffffff821660009081527fd329ff8a035c3ce5df2b0dae604d660c0d8783bf7e64be00c1d10db96c0b87b4602052604090205460ff16156108d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f73776170436f6e74726163743a204e6577206f776e65722063616e6e6f74206260448201527f652063757272656e74206f776e657200000000000000000000000000000000006064820152608401610753565b73ffffffffffffffffffffffffffffffffffffffff821660009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16156109a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603c60248201527f73776170436f6e74726163743a204e6577206f776e65722063616e6e6f74206260448201527f652063757272656e742064656661756c742061646d696e20726f6c65000000006064820152608401610753565b73ffffffffffffffffffffffffffffffffffffffff8116610a4c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f73776170436f6e74726163743a204f776e65722063616e6e6f74206265207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610753565b610a57600083612310565b610a817fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e83612310565b610aab7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0882612310565b610ad57fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e33611313565b610ae0600033611313565b5050565b610b0e7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e3361048a565b80610b3e5750610b3e7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b083361048a565b610bca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f43616c6c6572206973206e6f7420696e206f776e6572206f72206d616e61676560448201527f7220726f6c6500000000000000000000000000000000000000000000000000006064820152608401610753565b600855565b610bf97fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e3361048a565b610c5f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420696e206f776e657220726f6c6500000000006044820152606401610753565b610c6761231a565b565b610c937fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e3361048a565b610cf9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420696e206f776e657220726f6c6500000000006044820152606401610753565b6fffffffffffffffffffffffffffffffff811660009081526005602052604090205460ff16610daa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f73776170436f6e74726163743a205468697320626c6f636b636861696e20776160448201527f73206e6f742061646465640000000000000000000000000000000000000000006064820152608401610753565b6fffffffffffffffffffffffffffffffff16600090815260056020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b610e1c7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e3361048a565b610e82576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420696e206f776e657220726f6c6500000000006044820152606401610753565b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b610ef37fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e3361048a565b610f59576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420696e206f776e657220726f6c6500000000006044820152606401610753565b806fffffffffffffffffffffffffffffffff16826fffffffffffffffffffffffffffffffff16141561100d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f73776170436f6e74726163743a2043616e6e6f74206368616e676520626c6f6360448201527f6b636861696e7320776974682073616d65206e756d62657200000000000000006064820152608401610753565b6004546fffffffffffffffffffffffffffffffff828116911614156110da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604660248201527f73776170436f6e74726163743a2043616e6e6f7420616464207468697320626c60448201527f6f636b636861696e20746f206172726179206f66206f7468657220626c6f636b60648201527f636861696e730000000000000000000000000000000000000000000000000000608482015260a401610753565b6fffffffffffffffffffffffffffffffff821660009081526005602052604090205460ff1661118b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f73776170436f6e74726163743a205468697320626c6f636b636861696e20776160448201527f73206e6f742061646465640000000000000000000000000000000000000000006064820152608401610753565b6fffffffffffffffffffffffffffffffff811660009081526005602052604090205460ff161561123d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f73776170436f6e74726163743a205468697320626c6f636b636861696e20697360448201527f20616c72656164792061646465640000000000000000000000000000000000006064820152608401610753565b6fffffffffffffffffffffffffffffffff91821660009081526005602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009081169091559290931681529190912080549091166001179055565b6112a98282612404565b60008281526001602052604090206112c19082612257565b505050565b73ffffffffffffffffffffffffffffffffffffffff811660009081527fd329ff8a035c3ce5df2b0dae604d660c0d8783bf7e64be00c1d10db96c0b87b4602052604081205460ff166106c1565b61131d828261242a565b60008281526001602052604090206112c190826124d9565b61135f7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e3361048a565b6113c5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420696e206f776e657220726f6c6500000000006044820152606401610753565b6004546fffffffffffffffffffffffffffffffff82811691161415611492576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604660248201527f73776170436f6e74726163743a2043616e6e6f7420616464207468697320626c60448201527f6f636b636861696e20746f206172726179206f66206f7468657220626c6f636b60648201527f636861696e730000000000000000000000000000000000000000000000000000608482015260a401610753565b6fffffffffffffffffffffffffffffffff811660009081526005602052604090205460ff1615611544576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f73776170436f6e74726163743a205468697320626c6f636b636861696e20697360448201527f20616c72656164792061646465640000000000000000000000000000000000006064820152608401610753565b6fffffffffffffffffffffffffffffffff16600090815260056020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60025460ff16156115fc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610753565b60085482101561168e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603c60248201527f73776170436f6e74726163743a204c657373207468616e20726571756972656460448201527f206d696e696d756d206f6620746f6b656e7320726571756573746564000000006064820152608401610753565b600081511161171f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f73776170436f6e74726163743a204e6f2064657374696e6174696f6e2061646460448201527f726573732070726f7669646564000000000000000000000000000000000000006064820152608401610753565b6fffffffffffffffffffffffffffffffff831660009081526005602052604090205460ff16801561176757506004546fffffffffffffffffffffffffffffffff848116911614155b6117f3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f73776170436f6e74726163743a2057726f6e672063686f6f7365206f6620626c60448201527f6f636b636861696e0000000000000000000000000000000000000000000000006064820152608401610753565b6fffffffffffffffffffffffffffffffff808416600090815260066020526040902054168210156118a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f73776170436f6e74726163743a204e6f7420656e6f75676820616d6f756e742060448201527f6f6620746f6b656e7300000000000000000000000000000000000000000000006064820152608401610753565b6000336002546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff80841660048301529293508592610100909204909116906370a082319060240160206040518083038186803b15801561191f57600080fd5b505afa158015611933573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611957919061337e565b10156119bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f73776170436f6e74726163743a204e6f7420656e6f7567682062616c616e63656044820152606401610753565b6002546119e990610100900473ffffffffffffffffffffffffffffffffffffffff168230866124fb565b7f530414e7b01e4eb239740ce86981a020e12faaffca6a86bbb62113a4ffafbaf684828585604051611a1e9493929190613490565b60405180910390a150505050565b611a567fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e3361048a565b611abc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420696e206f776e657220726f6c6500000000006044820152606401610753565b60025460ff1615611b29576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610753565b600254611b5390610100900473ffffffffffffffffffffffffffffffffffffffff168330846124fb565b6040805173ffffffffffffffffffffffffffffffffffffffff8416815260208101839052908101829052600060608201527f8157b9086cfdda00012a3010e96c58ca2bf54627629af408db9302736af9e0659060800160405180910390a15050565b611bdf7fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e3361048a565b611c45576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420696e206f776e657220726f6c6500000000006044820152606401610753565b610c6761269a565b6000828152600160205260408120611c659083612755565b9392505050565b611c967fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e3361048a565b611cfc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f43616c6c6572206973206e6f7420696e206f776e657220726f6c6500000000006044820152606401610753565b60025460ff1615611d69576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610753565b60008181526007602052604090205460ff1615611e08576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f73776170436f6e74726163743a205472616e73616374696f6e20616c7265616460448201527f792070726f6365737365640000000000000000000000000000000000000000006064820152608401610753565b600081815260076020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556004546fffffffffffffffffffffffffffffffff908116845260069092528220541690611e6f828561353c565b600254909150611e9b90610100900473ffffffffffffffffffffffffffffffffffffffff168683612761565b600254600354611eca9173ffffffffffffffffffffffffffffffffffffffff6101009091048116911684612761565b6040805173ffffffffffffffffffffffffffffffffffffffff8716815260208101869052908101829052606081018490527f8157b9086cfdda00012a3010e96c58ca2bf54627629af408db9302736af9e0659060800160405180910390a15050505050565b60008181526001602052604081206106c1906128f7565b611f707fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e3361048a565b80611fa05750611fa07f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b083361048a565b61202c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f43616c6c6572206973206e6f7420696e206f776e6572206f72206d616e61676560448201527f7220726f6c6500000000000000000000000000000000000000000000000000006064820152608401610753565b600081116120bc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f73776170436f6e74726163743a204761732070726963652063616e6e6f74206260448201527f65207a65726f00000000000000000000000000000000000000000000000000006064820152608401610753565b600955565b61131d8282612901565b6120f57fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e3361048a565b8061212557506121257f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b083361048a565b6121b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f43616c6c6572206973206e6f7420696e206f776e6572206f72206d616e61676560448201527f7220726f6c6500000000000000000000000000000000000000000000000000006064820152608401610753565b6fffffffffffffffffffffffffffffffff918216600090815260066020526040902080547fffffffffffffffffffffffffffffffff000000000000000000000000000000001691909216179055565b73ffffffffffffffffffffffffffffffffffffffff811660009081527fe84508f2c7fa9c351146748b3025cb78b45df37d868e48c6a75102fecdeee645602052604081205460ff166106c1565b610ae08282612927565b6000611c658373ffffffffffffffffffffffffffffffffffffffff8416612a17565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806106c157507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146106c1565b6112a9828261224d565b60025460ff1615612387576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610753565b600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586123da3390565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b6000828152602081905260409020600101546124208133612a66565b6112c18383612927565b73ffffffffffffffffffffffffffffffffffffffff811633146124cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610753565b610ae08282612b36565b6000611c658373ffffffffffffffffffffffffffffffffffffffff8416612bed565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052915160009283929088169161259a91906133e0565b6000604051808303816000865af19150503d80600081146125d7576040519150601f19603f3d011682016040523d82523d6000602084013e6125dc565b606091505b5091509150818015612606575080511580612606575080806020019051810190612606919061319c565b612692576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f5472616e7366657248656c7065723a3a7472616e7366657246726f6d3a20747260448201527f616e7366657246726f6d206661696c65640000000000000000000000000000006064820152608401610753565b505050505050565b60025460ff16612706576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610753565b600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa336123da565b6000611c658383612d55565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905291516000928392908716916127f891906133e0565b6000604051808303816000865af19150503d8060008114612835576040519150601f19603f3d011682016040523d82523d6000602084013e61283a565b606091505b5091509150818015612864575080511580612864575080806020019051810190612864919061319c565b6128f0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260448201527f616e73666572206661696c6564000000000000000000000000000000000000006064820152608401610753565b5050505050565b60006106c1825490565b60008281526020819052604090206001015461291d8133612a66565b6112c18383612b36565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610ae05760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556129b93390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000818152600183016020526040812054612a5e575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556106c1565b5060006106c1565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610ae057612abc8173ffffffffffffffffffffffffffffffffffffffff166014612da6565b612ac7836020612da6565b604051602001612ad89291906133fc565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a00000000000000000000000000000000000000000000000000000000082526107539160040161347d565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1615610ae05760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60008181526001830160205260408120548015612d4b576000612c1160018361353c565b8554909150600090612c259060019061353c565b9050818114612cd8576000866000018281548110612c6c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080876000018481548110612cb6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b8554869080612d10577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506106c1565b60009150506106c1565b6000826000018281548110612d93577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905092915050565b60606000612db58360026134ff565b612dc09060026134e7565b67ffffffffffffffff811115612dff577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612e29576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612e87577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612f11577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000612f4d8460026134ff565b612f589060016134e7565b90505b6001811115613043577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110612fc0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110612ffd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c9361303c81613583565b9050612f5b565b508315611c65576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610753565b803573ffffffffffffffffffffffffffffffffffffffff811681146130d057600080fd5b919050565b80356fffffffffffffffffffffffffffffffff811681146130d057600080fd5b600060208284031215613106578081fd5b611c65826130ac565b60008060408385031215613121578081fd5b61312a836130ac565b9150613138602084016130ac565b90509250929050565b60008060408385031215613153578182fd5b61315c836130ac565b946020939093013593505050565b60008060006060848603121561317e578081fd5b613187846130ac565b95602085013595506040909401359392505050565b6000602082840312156131ad578081fd5b81518015158114611c65578182fd5b6000602082840312156131cd578081fd5b5035919050565b600080604083850312156131e6578182fd5b82359150613138602084016130ac565b60008060408385031215613208578182fd5b50508035926020909101359150565b600060208284031215613228578081fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114611c65578182fd5b600060208284031215613268578081fd5b611c65826130d5565b60008060408385031215613283578182fd5b61328c836130d5565b9150613138602084016130d5565b6000806000606084860312156132ae578283fd5b6132b7846130d5565b925060208401359150604084013567ffffffffffffffff808211156132da578283fd5b818601915086601f8301126132ed578283fd5b8135818111156132ff576132ff6135e7565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908382118183101715613345576133456135e7565b8160405282815289602084870101111561335d578586fd5b82602086016020830137856020848301015280955050505050509250925092565b60006020828403121561338f578081fd5b5051919050565b600081518084526133ae816020860160208601613553565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600082516133f2818460208701613553565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613434816017850160208801613553565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351613471816028840160208801613553565b01602801949350505050565b602081526000611c656020830184613396565b6fffffffffffffffffffffffffffffffff8516815273ffffffffffffffffffffffffffffffffffffffff841660208201528260408201526080606082015260006134dd6080830184613396565b9695505050505050565b600082198211156134fa576134fa6135b8565b500190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613537576135376135b8565b500290565b60008282101561354e5761354e6135b8565b500390565b60005b8381101561356e578181015183820152602001613556565b8381111561357d576000848401525b50505050565b600081613592576135926135b8565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea2646970667358221220d565e3f59e703df110aa4b1d3ffa4d5e125988552f53ad1e411712547a7ea51264736f6c63430008040033

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

0000000000000000000000003757232b55e60da4a8793183ac030cfce4c3865d000000000000000000000000c9c5c2f3956b225dfea6ec262758fe4bdf367603000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000010f0cf064dd59200000000000000000000000000000000000000000000000000000000000174876e80000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001

-----Decoded View---------------
Arg [0] : _tokenAddress (address): 0x3757232B55E60da4A8793183aC030CfCE4c3865d
Arg [1] : _feeAddress (address): 0xC9C5c2f3956B225DfEA6EC262758Fe4bDF367603
Arg [2] : _numOfThisBlockchain (uint128): 2
Arg [3] : _numsOfOtherBlockchains (uint128[]): 1
Arg [4] : _minTokenAmount (uint256): 5000000000000000000000
Arg [5] : _maxGasPrice (uint256): 100000000000

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000003757232b55e60da4a8793183ac030cfce4c3865d
Arg [1] : 000000000000000000000000c9c5c2f3956b225dfea6ec262758fe4bdf367603
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [4] : 00000000000000000000000000000000000000000000010f0cf064dd59200000
Arg [5] : 000000000000000000000000000000000000000000000000000000174876e800
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [7] : 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

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.