CRO Price: $0.08 (+2.56%)

Contract

0x523073f029C889242beBFbB7eE3BDaB52942a39A
Transaction Hash
Method
Block
From
To
Send143438632024-06-10 14:42:4589 days ago1718030565IN
Archly : CryptoLink Sender
0 CRO7.08875575,050
Send133526312024-04-06 7:59:01154 days ago1712390341IN
Archly : CryptoLink Sender
0 CRO1.426812865,555
Send129952592024-03-13 23:57:52177 days ago1710374272IN
Archly : CryptoLink Sender
0 CRO2.2824828411,110
Configure Client129924052024-03-13 19:33:04178 days ago1710358384IN
Archly : CryptoLink Sender
0 CRO1.107757910,100
Configure Client127416732024-02-26 16:07:01194 days ago1708963621IN
Archly : CryptoLink Sender
0 CRO0.668811910,100
Configure Client126370502024-02-19 21:00:51201 days ago1708376451IN
Archly : CryptoLink Sender
0 CRO1.8284642210,001.5
0x60806040126366842024-02-19 20:26:33201 days ago1708374393IN
 Create: CryptoLinkSender
0 CRO24.1817067110,001.5

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CryptoLinkSender

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion
File 1 of 14 : CryptoLinkSender.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.19;

import {MessageClient} from "@cryptolink/contracts/message/MessageClient.sol";
import {ArcBaseWithRainbowRoad} from "../bases/ArcBaseWithRainbowRoad.sol";
import {IRainbowRoad} from "../interfaces/IRainbowRoad.sol";

/**
 * Sends messages to the CryptoLink Message System
 */
contract CryptoLinkSender is ArcBaseWithRainbowRoad, MessageClient
{
    mapping(address => bool) public admins;

    event MessageSent(uint transactionId, uint destinationChainSelector, address messageReceiver, string action, address actionRecipient);

    constructor(address _rainbowRoad) ArcBaseWithRainbowRoad(_rainbowRoad)
    {
    }
    
    function enableAdmin(address admin) external onlyOwner
    {
        require(!admins[admin], 'Admin is enabled');
        admins[admin] = true;
    }
    
    function disableAdmin(address admin) external onlyOwner
    {
        require(admins[admin], 'Admin is disabled');
        admins[admin] = false;
    }

    function send(uint destinationChainSelector, address messageReceiver, address actionRecipient, string calldata action, bytes calldata payload) external nonReentrant whenNotPaused onlyAdmins returns (uint transactionId)
    {
        return _send(destinationChainSelector, messageReceiver, actionRecipient, action, payload);
    }
    
    function send(uint destinationChainSelector, address messageReceiver, string calldata action, bytes calldata payload) external nonReentrant whenNotPaused returns (uint transactionId)
    {
        return _send(destinationChainSelector, messageReceiver, msg.sender, action, payload);
    }
    
    function _send(uint destinationChainSelector, address messageReceiver, address actionRecipient, string calldata action, bytes calldata payload) internal returns (uint transactionId)
    {
        require(messageReceiver != address(0), 'Message receiver cannot be zero address');

        rainbowRoad.sendAction(action, actionRecipient, payload);
        
        transactionId = _sendMessage(
            destinationChainSelector,
            abi.encode(action, actionRecipient, payload)
        );
        
        emit MessageSent(transactionId, destinationChainSelector, messageReceiver, action, actionRecipient);
    }
    
    /// @dev Only calls from the enabled admins are accepted.
    modifier onlyAdmins() 
    {
        require(admins[msg.sender], 'Invalid admin');
        _;
    }
}

File 2 of 14 : IERC20cl.sol
// SPDX-License-Identifier: MIT
// (c)2021-2023 Atlas
// security-contact: [email protected]
pragma solidity ^0.8.9;

interface IERC20cl {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function decimals() external view returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);
}

File 3 of 14 : IMessageV3.sol
// SPDX-License-Identifier: MIT
// (c)2021-2023 Atlas
// security-contact: [email protected]
pragma solidity ^0.8.9;

interface IMessageV3 {
    event SendRequested(uint txId, address sender, address recipient, uint chain, bool express, bytes data, uint16 confirmations);
    event SendProcessed(uint txId, uint sourceChainId, address sender, address recipient);
    event Success(uint txId, uint sourceChainId, address sender, address recipient, uint amount);
    event ErrorLog(uint txId, string message);
    event SetExsig(address caller, address signer);
    event SetMaxgas(address caller, uint maxGas);
    event SetMaxfee(address caller, uint maxFee);

    function chainsig() external view returns (address signer);
    function weth() external view returns (address wethTokenAddress);
    function feeToken() external view returns (address feeToken);
    function feeTokenDecimals() external view returns (uint feeTokenDecimals);
    function minFee() external view returns (uint minFee);
    function bridgeEnabled() external view returns (bool bridgeEnabled);
    function takeFeesOffline() external view returns (bool takeFeesOffline);
    function whitelistOnly() external view returns (bool whitelistOnly);

    function enabledChains(uint destChainId) external view returns (bool enabled);
    function customSourceFee(address caller) external view returns (uint customSourceFee);
    function maxgas(address caller) external view returns (uint maxgas);
    function exsig(address caller) external view returns (address signer);

    // @dev backwards compat with BridgeClient
    function minTokenForChain(uint chainId) external returns (uint amount);

    function sendMessage(address recipient, uint chain, bytes calldata data, uint16 confirmations, bool express) external returns (uint txId);
    // @dev backwards compat with BridgeClient
    function sendRequest(address recipient, uint chainId, uint amount, address referrer, bytes calldata data, uint16 confirmations) external returns (uint txId);

    function setExsig(address signer) external;
    function setMaxgas(uint maxgas) external;
    function setMaxfee(uint maxfee) external;
}

File 4 of 14 : MessageClient.sol
// SPDX-License-Identifier: MIT
// (c)2021-2024 Atlas
// security-contact: [email protected]
pragma solidity ^0.8.9;

import "./IMessageV3.sol";
import "./IERC20cl.sol";

/**
 * @title MessageV3 Client
 * @author CryptoLink.Tech <[email protected]>
 */
abstract contract MessageClient {
    IMessageV3 public MESSAGEv3;
    IERC20cl public FEE_TOKEN;

    struct ChainData {
        address endpoint; // address of this contract on specified chain
        bytes endpointExtended; // address of this contract on non EVM
        uint16 confirmations; // source confirmations
        bool extended; // are we using extended endpoint? (addresses larger than uint256)
    }
    mapping(uint => ChainData) public CHAINS;
    address public MESSAGE_OWNER;

    modifier onlySelf(address _sender, uint _sourceChainId) {
        require(msg.sender == address(MESSAGEv3), "MessageClient: not authorized");
        require(_sender == CHAINS[_sourceChainId].endpoint, "MessageClient: not authorized");
        _;
    }

    modifier onlyActiveChain(uint _destinationChainId) {
        require(CHAINS[_destinationChainId].endpoint != address(0), "MessageClient: destination chain not active");
        _;
    }

    modifier onlyMessageOwner() {
        require(msg.sender == MESSAGE_OWNER, "MessageClient: not authorized");
        _;
    }

    event MessageOwnershipTransferred(address previousOwner, address newOwner);
    event RecoverToken(address owner, address token, uint amount);
    event SetMaxgas(address owner, uint maxGas);
    event SetMaxfee(address owner, uint maxfee);
    event SetExsig(address owner, address exsig);

    constructor() {
        MESSAGE_OWNER = msg.sender;
    }

    function transferMessageOwnership(address _newMessageOwner) external onlyMessageOwner {
        MESSAGE_OWNER = _newMessageOwner;
        emit MessageOwnershipTransferred(msg.sender, _newMessageOwner);
    }

    /** BRIDGE RECEIVER */
    function messageProcess(
        uint _txId,          // transaction id
        uint _sourceChainId, // source chain id
        address _sender,     // corresponding MessageClient address on source chain
        address _reference,  // (optional source reference address)
        uint _amount,        // (not used for messages, always 0)
        bytes calldata _data // encoded message from source chain
    ) external virtual onlySelf (_sender, _sourceChainId) {
    }

    /** BRIDGE SENDER */
    function _sendMessage(uint _destinationChainId, bytes memory _data) internal returns (uint _txId) {
        ChainData memory _chain = CHAINS[_destinationChainId];
        if(_chain.extended) { // non-evm addresses larger than uint256
            _data = abi.encode(_data, _chain.endpointExtended);
        }
        return IMessageV3(MESSAGEv3).sendMessage(
            _chain.endpoint,      // corresponding MessageClient contract address on destination chain
            _destinationChainId,  // id of the destination chain
            _data,                // arbitrary data package to send
            _chain.confirmations, // amount of required transaction confirmations
            false                 // send express mode on destination
        );
    }

    function _sendMessageExpress(uint _destinationChainId, bytes memory _data) internal returns (uint _txId) {
        ChainData memory _chain = CHAINS[_destinationChainId];
        if(_chain.extended) { // non-evm addresses larger than uint256
            _data = abi.encode(_data, _chain.endpointExtended);
        }
        return IMessageV3(MESSAGEv3).sendMessage(
            _chain.endpoint,      // corresponding MessageV3Client contract address on destination chain
            _destinationChainId,  // id of the destination chain
            _data,                // arbitrary data package to send
            _chain.confirmations, // amount of required transaction confirmations
            true                  // send express mode on destination
        );
    }

    /** OWNER */
    function configureClientExtended(
        address _messageV3, // MessageV3 bridge address
        uint[] calldata _chains, // list of chains to accept as valid destinations
        bytes[] calldata _endpoints, // list of corresponding MessageV3Client addresses on each chain
        uint16[] calldata _confirmations // confirmations required on each chain before processing
    ) external onlyMessageOwner {
        uint _chainsLength = _chains.length;
        for(uint x=0; x < _chainsLength; x++) {
            CHAINS[_chains[x]].confirmations = _confirmations[x];
            CHAINS[_chains[x]].endpointExtended = _endpoints[x];
            CHAINS[_chains[x]].extended = true;
            CHAINS[_chains[x]].endpoint = address(1);
        }

        _configureMessageV3(_messageV3);
    }

    function configureClient(
        address _messageV3, // MessageV3 bridge address
        uint[] calldata _chains, // list of chains to accept as valid destinations
        address[] calldata _endpoints, // list of corresponding MessageV3Client addresses on each chain
        uint16[] calldata _confirmations // confirmations required on each chain before processing
    ) public onlyMessageOwner {
        uint _chainsLength = _chains.length;
        for(uint x=0; x < _chainsLength; x++) {
            CHAINS[_chains[x]].confirmations = _confirmations[x];
            CHAINS[_chains[x]].endpoint = _endpoints[x];
            CHAINS[_chains[x]].extended = false;
        }

        _configureMessageV3(_messageV3);
    }

    function _configureMessageV3(address _messageV3) internal {
        MESSAGEv3 = IMessageV3(_messageV3);
        FEE_TOKEN = IERC20cl(MESSAGEv3.feeToken());

        // approve bridge for source chain fees (limited per transaction with setMaxfee)
        if(address(FEE_TOKEN) != address(0)) {
            FEE_TOKEN.approve(address(MESSAGEv3), type(uint).max);
        }

        // approve bridge for destination gas fees (limited per transaction with setMaxgas)
        if(address(MESSAGEv3.weth()) != address(0)) {
            IERC20cl(MESSAGEv3.weth()).approve(address(MESSAGEv3), type(uint).max);
        }
    }

    function setExsig(address _signer) external onlyMessageOwner {
        MESSAGEv3.setExsig(_signer);
        emit SetExsig(msg.sender, _signer);
    }

    function setMaxgas(uint _maxGas) external onlyMessageOwner {
        MESSAGEv3.setMaxgas(_maxGas);
        emit SetMaxgas(msg.sender, _maxGas);
    }

    function setMaxfee(uint _maxFee) external onlyMessageOwner {
        MESSAGEv3.setMaxfee(_maxFee);
        emit SetMaxfee(msg.sender, _maxFee);
    }

    function recoverToken(address _token, uint _amount) external onlyMessageOwner {
        if(_token == address(0)) {
            payable(msg.sender).transfer(_amount);
        } else {
            IERC20cl(_token).transfer(msg.sender, _amount);
        }
        emit RecoverToken(msg.sender, _token, _amount);
    }

    function isSelf(address _sender, uint _sourceChainId) external view returns (bool) {
        if(_sender == CHAINS[_sourceChainId].endpoint) return true;
        return false;
    }

    receive() external payable {}
    fallback() external payable {}
}

File 5 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 6 of 14 : Ownable2Step.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol)

pragma solidity ^0.8.0;

import "./Ownable.sol";

/**
 * @dev Contract module which provides access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership} and {acceptOwnership}.
 *
 * This module is used through inheritance. It will make available all functions
 * from parent (Ownable).
 */
abstract contract Ownable2Step is Ownable {
    address private _pendingOwner;

    event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Returns the address of the pending owner.
     */
    function pendingOwner() public view virtual returns (address) {
        return _pendingOwner;
    }

    /**
     * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual override onlyOwner {
        _pendingOwner = newOwner;
        emit OwnershipTransferStarted(owner(), newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual override {
        delete _pendingOwner;
        super._transferOwnership(newOwner);
    }

    /**
     * @dev The new owner accepts the ownership transfer.
     */
    function acceptOwnership() public virtual {
        address sender = _msgSender();
        require(pendingOwner() == sender, "Ownable2Step: caller is not the new owner");
        _transferOwnership(sender);
    }
}

File 7 of 14 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

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 Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        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 8 of 14 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

File 9 of 14 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool);
}

File 10 of 14 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

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 11 of 14 : ArcBase.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.19;

import {Ownable2Step} from "@openzeppelin/contracts/access/Ownable2Step.sol";
import {Pausable} from "@openzeppelin/contracts/security/Pausable.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";

/**
 * Provides set of properties, functions, and modifiers to help with 
 * security and access control of extending contracts
 */
contract ArcBase is Ownable2Step, Pausable, ReentrancyGuard
{
    function pause() public onlyOwner
    {
        _pause();
    }
    
    function unpause() public onlyOwner
    {
        _unpause();
    }

    function withdrawNative(address beneficiary) public onlyOwner {
        uint256 amount = address(this).balance;
        (bool sent, ) = beneficiary.call{value: amount}("");
        require(sent, 'Unable to withdraw');
    }

    function withdrawToken(address beneficiary, address token) public onlyOwner {
        uint256 amount = IERC20(token).balanceOf(address(this));
        IERC20(token).transfer(beneficiary, amount);
    }
}

File 12 of 14 : ArcBaseWithRainbowRoad.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.19;

import {ArcBase} from "./ArcBase.sol";
import {IRainbowRoad} from "../interfaces/IRainbowRoad.sol";

/**
 * Extends the ArcBase contract to provide
 * for interactions with the Rainbow Road
 */
contract ArcBaseWithRainbowRoad is ArcBase
{
    IRainbowRoad public rainbowRoad;
    
    constructor(address _rainbowRoad)
    {
        require(_rainbowRoad != address(0), 'Rainbow Road cannot be zero address');
        rainbowRoad = IRainbowRoad(_rainbowRoad);
    }
    
    function setRainbowRoad(address _rainbowRoad) external onlyOwner
    {
        require(_rainbowRoad != address(0), 'Rainbow Road cannot be zero address');
        rainbowRoad = IRainbowRoad(_rainbowRoad);
    }
    
    /// @dev Only calls from the Rainbow Road are accepted.
    modifier onlyRainbowRoad() 
    {
        require(msg.sender == address(rainbowRoad), 'Must be called by Rainbow Road');
        _;
    }
}

File 13 of 14 : IArc.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.19;

interface IArc {
    function approve(address _spender, uint _value) external returns (bool);
    function burn(uint amount) external;
    function mint(address account, uint amount) external;
    function transfer(address, uint) external returns (bool);
    function transferFrom(address _from, address _to, uint _value) external;
}

File 14 of 14 : IRainbowRoad.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.19;

import {IArc} from "./IArc.sol";

interface IRainbowRoad {
    
    function acceptTeam() external;
    function actionHandlers(string calldata action) external view returns (address);
    function arc() external view returns (IArc);
    function blockToken(address tokenAddress) external;
    function disableFeeManager(address feeManager) external;
    function disableOpenTokenWhitelisting() external;
    function disableReceiver(address receiver) external;
    function disableSender(address sender) external;
    function disableSendFeeBurn() external;
    function disableSendFeeCharge() external;
    function disableWhitelistingFeeBurn() external;
    function disableWhitelistingFeeCharge() external;
    function enableFeeManager(address feeManager) external;
    function enableOpenTokenWhitelisting() external;
    function enableReceiver(address receiver) external;
    function enableSendFeeBurn() external;
    function enableSender(address sender) external;
    function enableSendFeeCharge() external;
    function enableWhitelistingFeeBurn() external;
    function enableWhitelistingFeeCharge() external;
    function sendFee() external view returns (uint256);
    function whitelistingFee() external view returns (uint256);
    function chargeSendFee() external view returns (bool);
    function chargeWhitelistingFee() external view returns (bool);
    function burnSendFee() external view returns (bool);
    function burnWhitelistingFee() external view returns (bool);
    function openTokenWhitelisting() external view returns (bool);
    function config(string calldata configName) external view returns (bytes memory);
    function blockedTokens(address tokenAddress) external view returns (bool);
    function feeManagers(address feeManager) external view returns (bool);
    function receiveAction(string calldata action, address to, bytes calldata payload) external;
    function sendAction(string calldata action, address from, bytes calldata payload) external;
    function setActionHandler(string memory action, address handler) external;
    function setArc(address _arc) external;
    function setSendFee(uint256 _fee) external;
    function setTeam(address _team) external;
    function setTeamRate(uint256 _teamRate) external;
    function setToken(string calldata tokenSymbol, address tokenAddress) external;
    function setWhitelistingFee(uint256 _fee) external;
    function team() external view returns (address);
    function teamRate() external view returns (uint256);
    function tokens(string calldata tokenSymbol) external view returns (address);
    function MAX_TEAM_RATE() external view returns (uint256);
    function receivers(address receiver) external view returns (bool);
    function senders(address sender) external view returns (bool);
    function unblockToken(address tokenAddress) external;
    function whitelist(address tokenAddress) external;
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 10000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_rainbowRoad","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"MessageOwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"transactionId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"destinationChainSelector","type":"uint256"},{"indexed":false,"internalType":"address","name":"messageReceiver","type":"address"},{"indexed":false,"internalType":"string","name":"action","type":"string"},{"indexed":false,"internalType":"address","name":"actionRecipient","type":"address"}],"name":"MessageSent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RecoverToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address","name":"exsig","type":"address"}],"name":"SetExsig","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"maxfee","type":"uint256"}],"name":"SetMaxfee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"maxGas","type":"uint256"}],"name":"SetMaxgas","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"CHAINS","outputs":[{"internalType":"address","name":"endpoint","type":"address"},{"internalType":"bytes","name":"endpointExtended","type":"bytes"},{"internalType":"uint16","name":"confirmations","type":"uint16"},{"internalType":"bool","name":"extended","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEE_TOKEN","outputs":[{"internalType":"contract IERC20cl","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MESSAGE_OWNER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MESSAGEv3","outputs":[{"internalType":"contract IMessageV3","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"admins","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_messageV3","type":"address"},{"internalType":"uint256[]","name":"_chains","type":"uint256[]"},{"internalType":"address[]","name":"_endpoints","type":"address[]"},{"internalType":"uint16[]","name":"_confirmations","type":"uint16[]"}],"name":"configureClient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_messageV3","type":"address"},{"internalType":"uint256[]","name":"_chains","type":"uint256[]"},{"internalType":"bytes[]","name":"_endpoints","type":"bytes[]"},{"internalType":"uint16[]","name":"_confirmations","type":"uint16[]"}],"name":"configureClientExtended","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"disableAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"enableAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_sender","type":"address"},{"internalType":"uint256","name":"_sourceChainId","type":"uint256"}],"name":"isSelf","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_txId","type":"uint256"},{"internalType":"uint256","name":"_sourceChainId","type":"uint256"},{"internalType":"address","name":"_sender","type":"address"},{"internalType":"address","name":"_reference","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"messageProcess","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rainbowRoad","outputs":[{"internalType":"contract IRainbowRoad","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"recoverToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"destinationChainSelector","type":"uint256"},{"internalType":"address","name":"messageReceiver","type":"address"},{"internalType":"string","name":"action","type":"string"},{"internalType":"bytes","name":"payload","type":"bytes"}],"name":"send","outputs":[{"internalType":"uint256","name":"transactionId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"destinationChainSelector","type":"uint256"},{"internalType":"address","name":"messageReceiver","type":"address"},{"internalType":"address","name":"actionRecipient","type":"address"},{"internalType":"string","name":"action","type":"string"},{"internalType":"bytes","name":"payload","type":"bytes"}],"name":"send","outputs":[{"internalType":"uint256","name":"transactionId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setExsig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxFee","type":"uint256"}],"name":"setMaxfee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxGas","type":"uint256"}],"name":"setMaxgas","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rainbowRoad","type":"address"}],"name":"setRainbowRoad","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newMessageOwner","type":"address"}],"name":"transferMessageOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"withdrawNative","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"address","name":"token","type":"address"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b5060405162002ac438038062002ac4833981016040819052620000349162000155565b806200004033620000e7565b6001805460ff60a01b191681556002556001600160a01b038116620000b75760405162461bcd60e51b815260206004820152602360248201527f5261696e626f7720526f61642063616e6e6f74206265207a65726f206164647260448201526265737360e81b606482015260840160405180910390fd5b600380546001600160a01b039092166001600160a01b031992831617905560078054909116331790555062000187565b600180546001600160a01b0319169055620001028162000105565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156200016857600080fd5b81516001600160a01b03811681146200018057600080fd5b9392505050565b61292d80620001976000396000f3fe6080604052600436106101b95760003560e01c8063751e9a9c116100eb578063b479a9611161008f578063c60853f611610061578063c60853f61461053f578063e30c39781461055f578063e47ad74d1461057d578063f2fde38b1461059d57005b8063b479a961146104bf578063b7f494a4146104df578063bea532ff146104ff578063bfb5944a1461051f57005b8063853c75d8116100c8578063853c75d8146104315780638da5cb5b1461045157806392ae12fd1461046f578063b29a81401461049f57005b8063751e9a9c146103e757806379ba5097146104075780638456cb591461041c57005b806342bcc1841161015d5780636a9368171161012f5780636a936817146103725780636da5c94714610392578063715018a6146103b257806373717b08146103c757005b806342bcc184146102d4578063559b2f65146103025780635c975abb146103225780635f46e7401461035257005b80632f622e6b116101965780632f622e6b1461024f5780633aeac4e11461026f5780633f4ba83a1461028f578063429b62e5146102a457005b80630d029802146101c257806320bfe342146101ff5780632ee02d7c1461022f57005b366101c057005b005b3480156101ce57600080fd5b506004546101e2906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561020b57600080fd5b5061021f61021a36600461204f565b6105bd565b60405190151581526020016101f6565b34801561023b57600080fd5b506101c061024a3660046120c7565b6105f1565b34801561025b57600080fd5b506101c061026a366004612174565b6107b2565b34801561027b57600080fd5b506101c061028a366004612198565b610862565b34801561029b57600080fd5b506101c0610984565b3480156102b057600080fd5b5061021f6102bf366004612174565b60086020526000908152604090205460ff1681565b3480156102e057600080fd5b506102f46102ef366004612213565b610996565b6040519081526020016101f6565b34801561030e57600080fd5b506101c061031d366004612174565b6109cd565b34801561032e57600080fd5b5060015474010000000000000000000000000000000000000000900460ff1661021f565b34801561035e57600080fd5b506101c061036d36600461229f565b610a9b565b34801561037e57600080fd5b506003546101e2906001600160a01b031681565b34801561039e57600080fd5b506102f46103ad366004612312565b610b6d565b3480156103be57600080fd5b506101c0610c04565b3480156103d357600080fd5b506005546101e2906001600160a01b031681565b3480156103f357600080fd5b506101c0610402366004612174565b610c16565b34801561041357600080fd5b506101c0610cc5565b34801561042857600080fd5b506101c0610d53565b34801561043d57600080fd5b506007546101e2906001600160a01b031681565b34801561045d57600080fd5b506000546001600160a01b03166101e2565b34801561047b57600080fd5b5061048f61048a36600461239e565b610d63565b6040516101f6949392919061241b565b3480156104ab57600080fd5b506101c06104ba36600461204f565b610e28565b3480156104cb57600080fd5b506101c06104da36600461239e565b610f9c565b3480156104eb57600080fd5b506101c06104fa3660046120c7565b6110a2565b34801561050b57600080fd5b506101c061051a366004612174565b611285565b34801561052b57600080fd5b506101c061053a366004612174565b611338565b34801561054b57600080fd5b506101c061055a366004612174565b6113f6565b34801561056b57600080fd5b506001546001600160a01b03166101e2565b34801561058957600080fd5b506101c061059836600461239e565b611509565b3480156105a957600080fd5b506101c06105b8366004612174565b61160f565b6000818152600660205260408120546001600160a01b03908116908416036105e7575060016105eb565b5060005b92915050565b6007546001600160a01b031633146106505760405162461bcd60e51b815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a656400000060448201526064015b60405180910390fd5b8460005b8181101561079e5783838281811061066e5761066e612459565b90506020020160208101906106839190612488565b600660008a8a8581811061069957610699612459565b90506020020135815260200190815260200160002060020160006101000a81548161ffff021916908361ffff1602179055508585828181106106dd576106dd612459565b90506020020160208101906106f29190612174565b600660008a8a8581811061070857610708612459565b90506020020135815260200190815260200160002060000160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506000600660008a8a8581811061075c5761075c612459565b90506020020135815260200190815260200160002060020160026101000a81548160ff0219169083151502179055508080610796906124ac565b915050610654565b506107a888611698565b5050505050505050565b6107ba611a07565b60405147906000906001600160a01b0384169083908381818185875af1925050503d8060008114610807576040519150601f19603f3d011682016040523d82523d6000602084013e61080c565b606091505b505090508061085d5760405162461bcd60e51b815260206004820152601260248201527f556e61626c6520746f20776974686472617700000000000000000000000000006044820152606401610647565b505050565b61086a611a07565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156108ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ee919061250b565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152602482018390529192509083169063a9059cbb906044016020604051808303816000875af115801561095a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097e9190612524565b50505050565b61098c611a07565b610994611a61565b565b60006109a0611ad1565b6109a8611b28565b6109b787873388888888611b93565b90506109c36001600255565b9695505050505050565b6007546001600160a01b03163314610a275760405162461bcd60e51b815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610647565b600780547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040805133815260208101929092527fe1a25f463c6504824e91268b5b2c05658d5358c9c1698a85346cfae5336a642e91015b60405180910390a150565b600454859087906001600160a01b03163314610af95760405162461bcd60e51b815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610647565b6000818152600660205260409020546001600160a01b03838116911614610b625760405162461bcd60e51b815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610647565b505050505050505050565b6000610b77611ad1565b610b7f611b28565b3360009081526008602052604090205460ff16610bde5760405162461bcd60e51b815260206004820152600d60248201527f496e76616c69642061646d696e000000000000000000000000000000000000006044820152606401610647565b610bed88888888888888611b93565b9050610bf96001600255565b979650505050505050565b610c0c611a07565b6109946000611d13565b610c1e611a07565b6001600160a01b03811660009081526008602052604090205460ff16610c865760405162461bcd60e51b815260206004820152601160248201527f41646d696e2069732064697361626c65640000000000000000000000000000006044820152606401610647565b6001600160a01b0316600090815260086020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b60015433906001600160a01b03168114610d475760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e657200000000000000000000000000000000000000000000006064820152608401610647565b610d5081611d13565b50565b610d5b611a07565b610994611d44565b600660205260009081526040902080546001820180546001600160a01b039092169291610d8f90612546565b80601f0160208091040260200160405190810160405280929190818152602001828054610dbb90612546565b8015610e085780601f10610ddd57610100808354040283529160200191610e08565b820191906000526020600020905b815481529060010190602001808311610deb57829003601f168201915b5050506002909301549192505061ffff81169060ff620100009091041684565b6007546001600160a01b03163314610e825760405162461bcd60e51b815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610647565b6001600160a01b038216610ec357604051339082156108fc029083906000818181858888f19350505050158015610ebd573d6000803e3d6000fd5b50610f4f565b6040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015610f29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4d9190612524565b505b604080513381526001600160a01b03841660208201529081018290527f16a1412f01b73c390eb2548427101644aa86c1443c272f73df00fb74c48fe4999060600160405180910390a15050565b6007546001600160a01b03163314610ff65760405162461bcd60e51b815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610647565b600480546040517fb479a9610000000000000000000000000000000000000000000000000000000081529182018390526001600160a01b03169063b479a96190602401600060405180830381600087803b15801561105357600080fd5b505af1158015611067573d6000803e3d6000fd5b505060408051338152602081018590527f7b6bdf5a54b984bdb41e777eb126123085d57633ab56d408d9a1d39dd894e7bb9350019050610a90565b6007546001600160a01b031633146110fc5760405162461bcd60e51b815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610647565b8460005b8181101561079e5783838281811061111a5761111a612459565b905060200201602081019061112f9190612488565b600660008a8a8581811061114557611145612459565b90506020020135815260200190815260200160002060020160006101000a81548161ffff021916908361ffff16021790555085858281811061118957611189612459565b905060200281019061119b9190612599565b600660008b8b868181106111b1576111b1612459565b90506020020135815260200190815260200160002060010191826111d692919061267b565b506001600660008a8a858181106111ef576111ef612459565b90506020020135815260200190815260200160002060020160026101000a81548160ff0219169083151502179055506001600660008a8a8581811061123657611236612459565b90506020020135815260200190815260200160002060000160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550808061127d906124ac565b915050611100565b61128d611a07565b6001600160a01b03811660009081526008602052604090205460ff16156112f65760405162461bcd60e51b815260206004820152601060248201527f41646d696e20697320656e61626c6564000000000000000000000000000000006044820152606401610647565b6001600160a01b0316600090815260086020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b611340611a07565b6001600160a01b0381166113bc5760405162461bcd60e51b815260206004820152602360248201527f5261696e626f7720526f61642063616e6e6f74206265207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610647565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6007546001600160a01b031633146114505760405162461bcd60e51b815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610647565b600480546040517fc60853f60000000000000000000000000000000000000000000000000000000081526001600160a01b038481169382019390935291169063c60853f690602401600060405180830381600087803b1580156114b257600080fd5b505af11580156114c6573d6000803e3d6000fd5b5050604080513381526001600160a01b03851660208201527f3785abad972484d82ebc033d8eb190737cd209b24e7f853dd622e415c3f537a29350019050610a90565b6007546001600160a01b031633146115635760405162461bcd60e51b815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610647565b600480546040517fe47ad74d0000000000000000000000000000000000000000000000000000000081529182018390526001600160a01b03169063e47ad74d90602401600060405180830381600087803b1580156115c057600080fd5b505af11580156115d4573d6000803e3d6000fd5b505060408051338152602081018590527f83f76efc0c025b2e3779f7bcead5a89ddaf05dc7829157cdab021a8591e7a6f99350019050610a90565b611617611a07565b600180546001600160a01b0383167fffffffffffffffffffffffff000000000000000000000000000000000000000090911681179091556116606000546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081178255604080517f647846a50000000000000000000000000000000000000000000000000000000081529051919263647846a59282820192602092908290030181865afa15801561171f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117439190612796565b600580547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b039290921691821790551561183657600554600480546040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b03918216928101929092527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60248301529091169063095ea7b3906044016020604051808303816000875af1158015611810573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118349190612524565b505b60048054604080517f3fc8cef300000000000000000000000000000000000000000000000000000000815290516000936001600160a01b0390931692633fc8cef3928082019260209290918290030181865afa15801561189a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118be9190612796565b6001600160a01b031614610d505760048054604080517f3fc8cef300000000000000000000000000000000000000000000000000000000815290516001600160a01b0390921692633fc8cef39282820192602092908290030181865afa15801561192c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119509190612796565b600480546040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b03918216928101929092527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6024830152919091169063095ea7b3906044016020604051808303816000875af11580156119df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a039190612524565b5050565b6000546001600160a01b031633146109945760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610647565b611a69611db3565b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6002805403611b225760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610647565b60028055565b60015474010000000000000000000000000000000000000000900460ff16156109945760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610647565b60006001600160a01b038716611c115760405162461bcd60e51b815260206004820152602760248201527f4d6573736167652072656365697665722063616e6e6f74206265207a65726f2060448201527f61646472657373000000000000000000000000000000000000000000000000006064820152608401610647565b6003546040517f6eb8011d0000000000000000000000000000000000000000000000000000000081526001600160a01b0390911690636eb8011d90611c6290889088908b90899089906004016127fc565b600060405180830381600087803b158015611c7c57600080fd5b505af1158015611c90573d6000803e3d6000fd5b50505050611cc5888686898787604051602001611cb19594939291906127fc565b604051602081830303815290604052611e1d565b90507fe1bc3d92161421117791c55f0daa8078d5e6c94ffeec6995b303f5b1dca6a88281898988888b604051611d009695949392919061283e565b60405180910390a1979650505050505050565b600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055610d5081611fd2565b611d4c611b28565b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611ab43390565b60015474010000000000000000000000000000000000000000900460ff166109945760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610647565b600082815260066020908152604080832081516080810190925280546001600160a01b03168252600181018054859484019190611e5990612546565b80601f0160208091040260200160405190810160405280929190818152602001828054611e8590612546565b8015611ed25780601f10611ea757610100808354040283529160200191611ed2565b820191906000526020600020905b815481529060010190602001808311611eb557829003601f168201915b50505091835250506002919091015461ffff8116602083015262010000900460ff161515604090910152606081015190915015611f3257828160200151604051602001611f20929190612884565b60405160208183030381529060405292505b60048054825160408085015190517ffdadc90c0000000000000000000000000000000000000000000000000000000081526001600160a01b039093169363fdadc90c93611f8793928a928a92600091016128b2565b6020604051808303816000875af1158015611fa6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fca919061250b565b949350505050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381168114610d5057600080fd5b6000806040838503121561206257600080fd5b823561206d8161203a565b946020939093013593505050565b60008083601f84011261208d57600080fd5b50813567ffffffffffffffff8111156120a557600080fd5b6020830191508360208260051b85010111156120c057600080fd5b9250929050565b60008060008060008060006080888a0312156120e257600080fd5b87356120ed8161203a565b9650602088013567ffffffffffffffff8082111561210a57600080fd5b6121168b838c0161207b565b909850965060408a013591508082111561212f57600080fd5b61213b8b838c0161207b565b909650945060608a013591508082111561215457600080fd5b506121618a828b0161207b565b989b979a50959850939692959293505050565b60006020828403121561218657600080fd5b81356121918161203a565b9392505050565b600080604083850312156121ab57600080fd5b82356121b68161203a565b915060208301356121c68161203a565b809150509250929050565b60008083601f8401126121e357600080fd5b50813567ffffffffffffffff8111156121fb57600080fd5b6020830191508360208285010111156120c057600080fd5b6000806000806000806080878903121561222c57600080fd5b86359550602087013561223e8161203a565b9450604087013567ffffffffffffffff8082111561225b57600080fd5b6122678a838b016121d1565b9096509450606089013591508082111561228057600080fd5b5061228d89828a016121d1565b979a9699509497509295939492505050565b600080600080600080600060c0888a0312156122ba57600080fd5b873596506020880135955060408801356122d38161203a565b945060608801356122e38161203a565b93506080880135925060a088013567ffffffffffffffff81111561230657600080fd5b6121618a828b016121d1565b600080600080600080600060a0888a03121561232d57600080fd5b87359650602088013561233f8161203a565b9550604088013561234f8161203a565b9450606088013567ffffffffffffffff8082111561236c57600080fd5b6123788b838c016121d1565b909650945060808a013591508082111561239157600080fd5b506121618a828b016121d1565b6000602082840312156123b057600080fd5b5035919050565b6000815180845260005b818110156123dd576020818501810151868301820152016123c1565b5060006020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b6001600160a01b038516815260806020820152600061243d60808301866123b7565b61ffff9490941660408301525090151560609091015292915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561249a57600080fd5b813561ffff8116811461219157600080fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612504577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b5060010190565b60006020828403121561251d57600080fd5b5051919050565b60006020828403121561253657600080fd5b8151801515811461219157600080fd5b600181811c9082168061255a57607f821691505b602082108103612593577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126125ce57600080fd5b83018035915067ffffffffffffffff8211156125e957600080fd5b6020019150368190038213156120c057600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b601f82111561085d57600081815260208120601f850160051c810160208610156126545750805b601f850160051c820191505b8181101561267357828155600101612660565b505050505050565b67ffffffffffffffff831115612693576126936125fe565b6126a7836126a18354612546565b8361262d565b6000601f8411600181146126f957600085156126c35750838201355b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b1c1916600186901b17835561278f565b6000838152602090207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0861690835b828110156127485786850135825560209485019460019092019101612728565b5086821015612783577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b6000602082840312156127a857600080fd5b81516121918161203a565b8183528181602085013750600060208284010152600060207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b6060815260006128106060830187896127b3565b6001600160a01b038616602084015282810360408401526128328185876127b3565b98975050505050505050565b86815285602082015260006001600160a01b03808716604084015260a0606084015261286e60a0840186886127b3565b9150808416608084015250979650505050505050565b60408152600061289760408301856123b7565b82810360208401526128a981856123b7565b95945050505050565b6001600160a01b038616815284602082015260a0604082015260006128da60a08301866123b7565b61ffff94909416606083015250901515608090910152939250505056fea264697066735822122008289046e3059e47fc7125ccd61e4efd8c0efea7b61d132741e0dcd5eaec8b4864736f6c634300081300330000000000000000000000009412316dc6c882ffc4fa1a01413b0c701b147b9e

Deployed Bytecode

0x6080604052600436106101b95760003560e01c8063751e9a9c116100eb578063b479a9611161008f578063c60853f611610061578063c60853f61461053f578063e30c39781461055f578063e47ad74d1461057d578063f2fde38b1461059d57005b8063b479a961146104bf578063b7f494a4146104df578063bea532ff146104ff578063bfb5944a1461051f57005b8063853c75d8116100c8578063853c75d8146104315780638da5cb5b1461045157806392ae12fd1461046f578063b29a81401461049f57005b8063751e9a9c146103e757806379ba5097146104075780638456cb591461041c57005b806342bcc1841161015d5780636a9368171161012f5780636a936817146103725780636da5c94714610392578063715018a6146103b257806373717b08146103c757005b806342bcc184146102d4578063559b2f65146103025780635c975abb146103225780635f46e7401461035257005b80632f622e6b116101965780632f622e6b1461024f5780633aeac4e11461026f5780633f4ba83a1461028f578063429b62e5146102a457005b80630d029802146101c257806320bfe342146101ff5780632ee02d7c1461022f57005b366101c057005b005b3480156101ce57600080fd5b506004546101e2906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561020b57600080fd5b5061021f61021a36600461204f565b6105bd565b60405190151581526020016101f6565b34801561023b57600080fd5b506101c061024a3660046120c7565b6105f1565b34801561025b57600080fd5b506101c061026a366004612174565b6107b2565b34801561027b57600080fd5b506101c061028a366004612198565b610862565b34801561029b57600080fd5b506101c0610984565b3480156102b057600080fd5b5061021f6102bf366004612174565b60086020526000908152604090205460ff1681565b3480156102e057600080fd5b506102f46102ef366004612213565b610996565b6040519081526020016101f6565b34801561030e57600080fd5b506101c061031d366004612174565b6109cd565b34801561032e57600080fd5b5060015474010000000000000000000000000000000000000000900460ff1661021f565b34801561035e57600080fd5b506101c061036d36600461229f565b610a9b565b34801561037e57600080fd5b506003546101e2906001600160a01b031681565b34801561039e57600080fd5b506102f46103ad366004612312565b610b6d565b3480156103be57600080fd5b506101c0610c04565b3480156103d357600080fd5b506005546101e2906001600160a01b031681565b3480156103f357600080fd5b506101c0610402366004612174565b610c16565b34801561041357600080fd5b506101c0610cc5565b34801561042857600080fd5b506101c0610d53565b34801561043d57600080fd5b506007546101e2906001600160a01b031681565b34801561045d57600080fd5b506000546001600160a01b03166101e2565b34801561047b57600080fd5b5061048f61048a36600461239e565b610d63565b6040516101f6949392919061241b565b3480156104ab57600080fd5b506101c06104ba36600461204f565b610e28565b3480156104cb57600080fd5b506101c06104da36600461239e565b610f9c565b3480156104eb57600080fd5b506101c06104fa3660046120c7565b6110a2565b34801561050b57600080fd5b506101c061051a366004612174565b611285565b34801561052b57600080fd5b506101c061053a366004612174565b611338565b34801561054b57600080fd5b506101c061055a366004612174565b6113f6565b34801561056b57600080fd5b506001546001600160a01b03166101e2565b34801561058957600080fd5b506101c061059836600461239e565b611509565b3480156105a957600080fd5b506101c06105b8366004612174565b61160f565b6000818152600660205260408120546001600160a01b03908116908416036105e7575060016105eb565b5060005b92915050565b6007546001600160a01b031633146106505760405162461bcd60e51b815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a656400000060448201526064015b60405180910390fd5b8460005b8181101561079e5783838281811061066e5761066e612459565b90506020020160208101906106839190612488565b600660008a8a8581811061069957610699612459565b90506020020135815260200190815260200160002060020160006101000a81548161ffff021916908361ffff1602179055508585828181106106dd576106dd612459565b90506020020160208101906106f29190612174565b600660008a8a8581811061070857610708612459565b90506020020135815260200190815260200160002060000160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506000600660008a8a8581811061075c5761075c612459565b90506020020135815260200190815260200160002060020160026101000a81548160ff0219169083151502179055508080610796906124ac565b915050610654565b506107a888611698565b5050505050505050565b6107ba611a07565b60405147906000906001600160a01b0384169083908381818185875af1925050503d8060008114610807576040519150601f19603f3d011682016040523d82523d6000602084013e61080c565b606091505b505090508061085d5760405162461bcd60e51b815260206004820152601260248201527f556e61626c6520746f20776974686472617700000000000000000000000000006044820152606401610647565b505050565b61086a611a07565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156108ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ee919061250b565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152602482018390529192509083169063a9059cbb906044016020604051808303816000875af115801561095a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097e9190612524565b50505050565b61098c611a07565b610994611a61565b565b60006109a0611ad1565b6109a8611b28565b6109b787873388888888611b93565b90506109c36001600255565b9695505050505050565b6007546001600160a01b03163314610a275760405162461bcd60e51b815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610647565b600780547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040805133815260208101929092527fe1a25f463c6504824e91268b5b2c05658d5358c9c1698a85346cfae5336a642e91015b60405180910390a150565b600454859087906001600160a01b03163314610af95760405162461bcd60e51b815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610647565b6000818152600660205260409020546001600160a01b03838116911614610b625760405162461bcd60e51b815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610647565b505050505050505050565b6000610b77611ad1565b610b7f611b28565b3360009081526008602052604090205460ff16610bde5760405162461bcd60e51b815260206004820152600d60248201527f496e76616c69642061646d696e000000000000000000000000000000000000006044820152606401610647565b610bed88888888888888611b93565b9050610bf96001600255565b979650505050505050565b610c0c611a07565b6109946000611d13565b610c1e611a07565b6001600160a01b03811660009081526008602052604090205460ff16610c865760405162461bcd60e51b815260206004820152601160248201527f41646d696e2069732064697361626c65640000000000000000000000000000006044820152606401610647565b6001600160a01b0316600090815260086020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b60015433906001600160a01b03168114610d475760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e657200000000000000000000000000000000000000000000006064820152608401610647565b610d5081611d13565b50565b610d5b611a07565b610994611d44565b600660205260009081526040902080546001820180546001600160a01b039092169291610d8f90612546565b80601f0160208091040260200160405190810160405280929190818152602001828054610dbb90612546565b8015610e085780601f10610ddd57610100808354040283529160200191610e08565b820191906000526020600020905b815481529060010190602001808311610deb57829003601f168201915b5050506002909301549192505061ffff81169060ff620100009091041684565b6007546001600160a01b03163314610e825760405162461bcd60e51b815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610647565b6001600160a01b038216610ec357604051339082156108fc029083906000818181858888f19350505050158015610ebd573d6000803e3d6000fd5b50610f4f565b6040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015610f29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4d9190612524565b505b604080513381526001600160a01b03841660208201529081018290527f16a1412f01b73c390eb2548427101644aa86c1443c272f73df00fb74c48fe4999060600160405180910390a15050565b6007546001600160a01b03163314610ff65760405162461bcd60e51b815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610647565b600480546040517fb479a9610000000000000000000000000000000000000000000000000000000081529182018390526001600160a01b03169063b479a96190602401600060405180830381600087803b15801561105357600080fd5b505af1158015611067573d6000803e3d6000fd5b505060408051338152602081018590527f7b6bdf5a54b984bdb41e777eb126123085d57633ab56d408d9a1d39dd894e7bb9350019050610a90565b6007546001600160a01b031633146110fc5760405162461bcd60e51b815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610647565b8460005b8181101561079e5783838281811061111a5761111a612459565b905060200201602081019061112f9190612488565b600660008a8a8581811061114557611145612459565b90506020020135815260200190815260200160002060020160006101000a81548161ffff021916908361ffff16021790555085858281811061118957611189612459565b905060200281019061119b9190612599565b600660008b8b868181106111b1576111b1612459565b90506020020135815260200190815260200160002060010191826111d692919061267b565b506001600660008a8a858181106111ef576111ef612459565b90506020020135815260200190815260200160002060020160026101000a81548160ff0219169083151502179055506001600660008a8a8581811061123657611236612459565b90506020020135815260200190815260200160002060000160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550808061127d906124ac565b915050611100565b61128d611a07565b6001600160a01b03811660009081526008602052604090205460ff16156112f65760405162461bcd60e51b815260206004820152601060248201527f41646d696e20697320656e61626c6564000000000000000000000000000000006044820152606401610647565b6001600160a01b0316600090815260086020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b611340611a07565b6001600160a01b0381166113bc5760405162461bcd60e51b815260206004820152602360248201527f5261696e626f7720526f61642063616e6e6f74206265207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610647565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6007546001600160a01b031633146114505760405162461bcd60e51b815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610647565b600480546040517fc60853f60000000000000000000000000000000000000000000000000000000081526001600160a01b038481169382019390935291169063c60853f690602401600060405180830381600087803b1580156114b257600080fd5b505af11580156114c6573d6000803e3d6000fd5b5050604080513381526001600160a01b03851660208201527f3785abad972484d82ebc033d8eb190737cd209b24e7f853dd622e415c3f537a29350019050610a90565b6007546001600160a01b031633146115635760405162461bcd60e51b815260206004820152601d60248201527f4d657373616765436c69656e743a206e6f7420617574686f72697a65640000006044820152606401610647565b600480546040517fe47ad74d0000000000000000000000000000000000000000000000000000000081529182018390526001600160a01b03169063e47ad74d90602401600060405180830381600087803b1580156115c057600080fd5b505af11580156115d4573d6000803e3d6000fd5b505060408051338152602081018590527f83f76efc0c025b2e3779f7bcead5a89ddaf05dc7829157cdab021a8591e7a6f99350019050610a90565b611617611a07565b600180546001600160a01b0383167fffffffffffffffffffffffff000000000000000000000000000000000000000090911681179091556116606000546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081178255604080517f647846a50000000000000000000000000000000000000000000000000000000081529051919263647846a59282820192602092908290030181865afa15801561171f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117439190612796565b600580547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b039290921691821790551561183657600554600480546040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b03918216928101929092527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60248301529091169063095ea7b3906044016020604051808303816000875af1158015611810573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118349190612524565b505b60048054604080517f3fc8cef300000000000000000000000000000000000000000000000000000000815290516000936001600160a01b0390931692633fc8cef3928082019260209290918290030181865afa15801561189a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118be9190612796565b6001600160a01b031614610d505760048054604080517f3fc8cef300000000000000000000000000000000000000000000000000000000815290516001600160a01b0390921692633fc8cef39282820192602092908290030181865afa15801561192c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119509190612796565b600480546040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b03918216928101929092527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6024830152919091169063095ea7b3906044016020604051808303816000875af11580156119df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a039190612524565b5050565b6000546001600160a01b031633146109945760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610647565b611a69611db3565b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6002805403611b225760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610647565b60028055565b60015474010000000000000000000000000000000000000000900460ff16156109945760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610647565b60006001600160a01b038716611c115760405162461bcd60e51b815260206004820152602760248201527f4d6573736167652072656365697665722063616e6e6f74206265207a65726f2060448201527f61646472657373000000000000000000000000000000000000000000000000006064820152608401610647565b6003546040517f6eb8011d0000000000000000000000000000000000000000000000000000000081526001600160a01b0390911690636eb8011d90611c6290889088908b90899089906004016127fc565b600060405180830381600087803b158015611c7c57600080fd5b505af1158015611c90573d6000803e3d6000fd5b50505050611cc5888686898787604051602001611cb19594939291906127fc565b604051602081830303815290604052611e1d565b90507fe1bc3d92161421117791c55f0daa8078d5e6c94ffeec6995b303f5b1dca6a88281898988888b604051611d009695949392919061283e565b60405180910390a1979650505050505050565b600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055610d5081611fd2565b611d4c611b28565b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611ab43390565b60015474010000000000000000000000000000000000000000900460ff166109945760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610647565b600082815260066020908152604080832081516080810190925280546001600160a01b03168252600181018054859484019190611e5990612546565b80601f0160208091040260200160405190810160405280929190818152602001828054611e8590612546565b8015611ed25780601f10611ea757610100808354040283529160200191611ed2565b820191906000526020600020905b815481529060010190602001808311611eb557829003601f168201915b50505091835250506002919091015461ffff8116602083015262010000900460ff161515604090910152606081015190915015611f3257828160200151604051602001611f20929190612884565b60405160208183030381529060405292505b60048054825160408085015190517ffdadc90c0000000000000000000000000000000000000000000000000000000081526001600160a01b039093169363fdadc90c93611f8793928a928a92600091016128b2565b6020604051808303816000875af1158015611fa6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fca919061250b565b949350505050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381168114610d5057600080fd5b6000806040838503121561206257600080fd5b823561206d8161203a565b946020939093013593505050565b60008083601f84011261208d57600080fd5b50813567ffffffffffffffff8111156120a557600080fd5b6020830191508360208260051b85010111156120c057600080fd5b9250929050565b60008060008060008060006080888a0312156120e257600080fd5b87356120ed8161203a565b9650602088013567ffffffffffffffff8082111561210a57600080fd5b6121168b838c0161207b565b909850965060408a013591508082111561212f57600080fd5b61213b8b838c0161207b565b909650945060608a013591508082111561215457600080fd5b506121618a828b0161207b565b989b979a50959850939692959293505050565b60006020828403121561218657600080fd5b81356121918161203a565b9392505050565b600080604083850312156121ab57600080fd5b82356121b68161203a565b915060208301356121c68161203a565b809150509250929050565b60008083601f8401126121e357600080fd5b50813567ffffffffffffffff8111156121fb57600080fd5b6020830191508360208285010111156120c057600080fd5b6000806000806000806080878903121561222c57600080fd5b86359550602087013561223e8161203a565b9450604087013567ffffffffffffffff8082111561225b57600080fd5b6122678a838b016121d1565b9096509450606089013591508082111561228057600080fd5b5061228d89828a016121d1565b979a9699509497509295939492505050565b600080600080600080600060c0888a0312156122ba57600080fd5b873596506020880135955060408801356122d38161203a565b945060608801356122e38161203a565b93506080880135925060a088013567ffffffffffffffff81111561230657600080fd5b6121618a828b016121d1565b600080600080600080600060a0888a03121561232d57600080fd5b87359650602088013561233f8161203a565b9550604088013561234f8161203a565b9450606088013567ffffffffffffffff8082111561236c57600080fd5b6123788b838c016121d1565b909650945060808a013591508082111561239157600080fd5b506121618a828b016121d1565b6000602082840312156123b057600080fd5b5035919050565b6000815180845260005b818110156123dd576020818501810151868301820152016123c1565b5060006020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b6001600160a01b038516815260806020820152600061243d60808301866123b7565b61ffff9490941660408301525090151560609091015292915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561249a57600080fd5b813561ffff8116811461219157600080fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612504577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b5060010190565b60006020828403121561251d57600080fd5b5051919050565b60006020828403121561253657600080fd5b8151801515811461219157600080fd5b600181811c9082168061255a57607f821691505b602082108103612593577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126125ce57600080fd5b83018035915067ffffffffffffffff8211156125e957600080fd5b6020019150368190038213156120c057600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b601f82111561085d57600081815260208120601f850160051c810160208610156126545750805b601f850160051c820191505b8181101561267357828155600101612660565b505050505050565b67ffffffffffffffff831115612693576126936125fe565b6126a7836126a18354612546565b8361262d565b6000601f8411600181146126f957600085156126c35750838201355b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b1c1916600186901b17835561278f565b6000838152602090207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0861690835b828110156127485786850135825560209485019460019092019101612728565b5086821015612783577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b6000602082840312156127a857600080fd5b81516121918161203a565b8183528181602085013750600060208284010152600060207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b6060815260006128106060830187896127b3565b6001600160a01b038616602084015282810360408401526128328185876127b3565b98975050505050505050565b86815285602082015260006001600160a01b03808716604084015260a0606084015261286e60a0840186886127b3565b9150808416608084015250979650505050505050565b60408152600061289760408301856123b7565b82810360208401526128a981856123b7565b95945050505050565b6001600160a01b038616815284602082015260a0604082015260006128da60a08301866123b7565b61ffff94909416606083015250901515608090910152939250505056fea264697066735822122008289046e3059e47fc7125ccd61e4efd8c0efea7b61d132741e0dcd5eaec8b4864736f6c63430008130033

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

0000000000000000000000009412316dc6c882ffc4fa1a01413b0c701b147b9e

-----Decoded View---------------
Arg [0] : _rainbowRoad (address): 0x9412316DC6C882ffc4FA1A01413b0C701b147B9E

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000009412316dc6c882ffc4fa1a01413b0c701b147b9e


Block Transaction Gas Used Reward
view all blocks validated

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
[ 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.