ETH Price: $2,885.31 (-2.51%)
 

Overview

ETH Balance

0 ETH

ETH Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Enable Message S...1188088722024-04-15 21:28:41649 days ago1713216521IN
Archly : Chainlink Receiver v1.2.0
0 ETH0.0000094156340.2
Enable Message S...1159455642024-02-09 14:45:05716 days ago1707489905IN
Archly : Chainlink Receiver v1.2.0
0 ETH0.0001603121520.00094558
Enable Message S...1159455522024-02-09 14:44:41716 days ago1707489881IN
Archly : Chainlink Receiver v1.2.0
0 ETH0.0001640321550.00095074
Enable Message S...1159455382024-02-09 14:44:13716 days ago1707489853IN
Archly : Chainlink Receiver v1.2.0
0 ETH0.000154144780.00116575
Enable Message S...1159455272024-02-09 14:43:51716 days ago1707489831IN
Archly : Chainlink Receiver v1.2.0
0 ETH0.0001639209760.00103426
Enable Message S...1159455172024-02-09 14:43:31716 days ago1707489811IN
Archly : Chainlink Receiver v1.2.0
0 ETH0.0001505260750.00106479

View more zero value Internal Transactions in Advanced View mode

Advanced mode:

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ChainlinkReceiver

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.19;

import {CCIPReceiver} from "@chainlink/contracts-ccip/src/v0.8/ccip/applications/CCIPReceiver.sol";
import {Client} from "@chainlink/contracts-ccip/src/v0.8/ccip/libraries/Client.sol";
import {ArcBaseWithRainbowRoad} from "../bases/ArcBaseWithRainbowRoad.sol";
import {IRainbowRoad} from "../interfaces/IRainbowRoad.sol";

/**
 * Receives messages from Chainlink CCIP router
 */
contract ChainlinkReceiver is ArcBaseWithRainbowRoad, CCIPReceiver 
{
    mapping(uint64 => mapping(address => bool)) public messageSenders;
    
    event MessageReceived(bytes32 messageId, uint64 sourceChainSelector, address messageSender, string action, address actionRecipient);

    constructor(address _rainbowRoad, address _router) CCIPReceiver(_router) ArcBaseWithRainbowRoad(_rainbowRoad)
    {
    }
    
    function enableMessageSender(uint64 sourceChainSelector, address messageSender) external onlyOwner
    {
        require(!messageSenders[sourceChainSelector][messageSender], 'Message sender for source chain is enabled');
        messageSenders[sourceChainSelector][messageSender] = true;
    }
    
    function disableMessageSender(uint64 sourceChainSelector, address messageSender) external onlyOwner
    {
        require(messageSenders[sourceChainSelector][messageSender], 'Message sender for source chain is disabled');
        messageSenders[sourceChainSelector][messageSender] = false;
    }

    function _ccipReceive(Client.Any2EVMMessage memory message) internal override
    {
        _requireNotPaused();
        
        bytes32 messageId = message.messageId;
        uint64 sourceChainSelector = message.sourceChainSelector;
        address messageSender = abi.decode(message.sender, (address));
        require(messageSenders[sourceChainSelector][messageSender], 'Unsupported source chain/message sender');
        
        (string memory action, address actionRecipient, bytes memory payload) = abi.decode(message.data, (string, address, bytes));

        rainbowRoad.receiveAction(action, actionRecipient, payload);

        emit MessageReceived(messageId, sourceChainSelector, messageSender, action, actionRecipient);
    }

    receive() external payable {}
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {IAny2EVMMessageReceiver} from "../interfaces/IAny2EVMMessageReceiver.sol";

import {Client} from "../libraries/Client.sol";

import {IERC165} from "../../vendor/openzeppelin-solidity/v4.8.0/contracts/utils/introspection/IERC165.sol";

/// @title CCIPReceiver - Base contract for CCIP applications that can receive messages.
abstract contract CCIPReceiver is IAny2EVMMessageReceiver, IERC165 {
  address internal immutable i_router;

  constructor(address router) {
    if (router == address(0)) revert InvalidRouter(address(0));
    i_router = router;
  }

  /// @notice IERC165 supports an interfaceId
  /// @param interfaceId The interfaceId to check
  /// @return true if the interfaceId is supported
  /// @dev Should indicate whether the contract implements IAny2EVMMessageReceiver
  /// e.g. return interfaceId == type(IAny2EVMMessageReceiver).interfaceId || interfaceId == type(IERC165).interfaceId
  /// This allows CCIP to check if ccipReceive is available before calling it.
  /// If this returns false or reverts, only tokens are transferred to the receiver.
  /// If this returns true, tokens are transferred and ccipReceive is called atomically.
  /// Additionally, if the receiver address does not have code associated with
  /// it at the time of execution (EXTCODESIZE returns 0), only tokens will be transferred.
  function supportsInterface(bytes4 interfaceId) public pure virtual override returns (bool) {
    return interfaceId == type(IAny2EVMMessageReceiver).interfaceId || interfaceId == type(IERC165).interfaceId;
  }

  /// @inheritdoc IAny2EVMMessageReceiver
  function ccipReceive(Client.Any2EVMMessage calldata message) external virtual override onlyRouter {
    _ccipReceive(message);
  }

  /// @notice Override this function in your implementation.
  /// @param message Any2EVMMessage
  function _ccipReceive(Client.Any2EVMMessage memory message) internal virtual;

  /////////////////////////////////////////////////////////////////////
  // Plumbing
  /////////////////////////////////////////////////////////////////////

  /// @notice Return the current router
  /// @return i_router address
  function getRouter() public view returns (address) {
    return address(i_router);
  }

  error InvalidRouter(address router);

  /// @dev only calls from the set router are accepted.
  modifier onlyRouter() {
    if (msg.sender != address(i_router)) revert InvalidRouter(msg.sender);
    _;
  }
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {Client} from "../libraries/Client.sol";

/// @notice Application contracts that intend to receive messages from
/// the router should implement this interface.
interface IAny2EVMMessageReceiver {
  /// @notice Called by the Router to deliver a message.
  /// If this reverts, any token transfers also revert. The message
  /// will move to a FAILED state and become available for manual execution.
  /// @param message CCIP Message
  /// @dev Note ensure you check the msg.sender is the OffRampRouter
  function ccipReceive(Client.Any2EVMMessage calldata message) external;
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

// End consumer library.
library Client {
  /// @dev RMN depends on this struct, if changing, please notify the RMN maintainers.
  struct EVMTokenAmount {
    address token; // token address on the local chain.
    uint256 amount; // Amount of tokens.
  }

  struct Any2EVMMessage {
    bytes32 messageId; // MessageId corresponding to ccipSend on source.
    uint64 sourceChainSelector; // Source chain selector.
    bytes sender; // abi.decode(sender) if coming from an EVM chain.
    bytes data; // payload sent in original message.
    EVMTokenAmount[] destTokenAmounts; // Tokens and their amounts in their destination chain representation.
  }

  // If extraArgs is empty bytes, the default is 200k gas limit.
  struct EVM2AnyMessage {
    bytes receiver; // abi.encode(receiver address) for dest EVM chains
    bytes data; // Data payload
    EVMTokenAmount[] tokenAmounts; // Token transfers
    address feeToken; // Address of feeToken. address(0) means you will send msg.value.
    bytes extraArgs; // Populate this with _argsToBytes(EVMExtraArgsV1)
  }

  // bytes4(keccak256("CCIP EVMExtraArgsV1"));
  bytes4 public constant EVM_EXTRA_ARGS_V1_TAG = 0x97a657c9;
  struct EVMExtraArgsV1 {
    uint256 gasLimit;
  }

  function _argsToBytes(EVMExtraArgsV1 memory extraArgs) internal pure returns (bytes memory bts) {
    return abi.encodeWithSelector(EVM_EXTRA_ARGS_V1_TAG, extraArgs);
  }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

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);
}

// 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);
    }
}

// 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);
    }
}

// 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());
    }
}

// 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;
    }
}

// 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);
}

// 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;
    }
}

// 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);
    }
}

// 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');
        _;
    }
}

// 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 15 of 15 : 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

API
[{"inputs":[{"internalType":"address","name":"_rainbowRoad","type":"address"},{"internalType":"address","name":"_router","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"router","type":"address"}],"name":"InvalidRouter","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"messageId","type":"bytes32"},{"indexed":false,"internalType":"uint64","name":"sourceChainSelector","type":"uint64"},{"indexed":false,"internalType":"address","name":"messageSender","type":"address"},{"indexed":false,"internalType":"string","name":"action","type":"string"},{"indexed":false,"internalType":"address","name":"actionRecipient","type":"address"}],"name":"MessageReceived","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":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"messageId","type":"bytes32"},{"internalType":"uint64","name":"sourceChainSelector","type":"uint64"},{"internalType":"bytes","name":"sender","type":"bytes"},{"internalType":"bytes","name":"data","type":"bytes"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct Client.EVMTokenAmount[]","name":"destTokenAmounts","type":"tuple[]"}],"internalType":"struct Client.Any2EVMMessage","name":"message","type":"tuple"}],"name":"ccipReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"sourceChainSelector","type":"uint64"},{"internalType":"address","name":"messageSender","type":"address"}],"name":"disableMessageSender","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"sourceChainSelector","type":"uint64"},{"internalType":"address","name":"messageSender","type":"address"}],"name":"enableMessageSender","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"","type":"uint64"},{"internalType":"address","name":"","type":"address"}],"name":"messageSenders","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rainbowRoad","type":"address"}],"name":"setRainbowRoad","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","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"}]

60a06040523480156200001157600080fd5b506040516200197f3803806200197f833981016040819052620000349162000199565b808262000041336200010e565b6001805460ff60a01b191681556002556001600160a01b038116620000b95760405162461bcd60e51b815260206004820152602360248201527f5261696e626f7720526f61642063616e6e6f74206265207a65726f206164647260448201526265737360e81b60648201526084015b60405180910390fd5b600380546001600160a01b0319166001600160a01b039283161790558116620000f9576040516335fdcccd60e21b815260006004820152602401620000b0565b6001600160a01b031660805250620001d19050565b600180546001600160a01b031916905562000129816200012c565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200019457600080fd5b919050565b60008060408385031215620001ad57600080fd5b620001b8836200017c565b9150620001c8602084016200017c565b90509250929050565b60805161178b620001f46000396000818161035b01526108d5015261178b6000f3fe60806040526004361061012d5760003560e01c806379ba5097116100a55780639009371911610074578063bfb5944a11610059578063bfb5944a1461037f578063e30c39781461039f578063f2fde38b146103ca57600080fd5b8063900937191461032c578063b0f479a11461034c57600080fd5b806379ba5097146102b75780638456cb59146102cc57806385572ffb146102e15780638da5cb5b1461030157600080fd5b80633f4ba83a116100fc5780635c975abb116100e15780635c975abb146102205780636a93681714610250578063715018a6146102a257600080fd5b80633f4ba83a146101eb57806344de75661461020057600080fd5b806301ffc9a7146101395780632164c8361461016e5780632f622e6b146101a95780633aeac4e1146101cb57600080fd5b3661013457005b600080fd5b34801561014557600080fd5b50610159610154366004611122565b6103ea565b60405190151581526020015b60405180910390f35b34801561017a57600080fd5b506101596101893660046111aa565b600460209081526000928352604080842090915290825290205460ff1681565b3480156101b557600080fd5b506101c96101c43660046111e1565b610483565b005b3480156101d757600080fd5b506101c96101e63660046111fe565b61055f565b3480156101f757600080fd5b506101c961069b565b34801561020c57600080fd5b506101c961021b3660046111aa565b6106ad565b34801561022c57600080fd5b5060015474010000000000000000000000000000000000000000900460ff16610159565b34801561025c57600080fd5b5060035461027d9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610165565b3480156102ae57600080fd5b506101c96107e6565b3480156102c357600080fd5b506101c96107f8565b3480156102d857600080fd5b506101c96108ad565b3480156102ed57600080fd5b506101c96102fc36600461121c565b6108bd565b34801561030d57600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff1661027d565b34801561033857600080fd5b506101c96103473660046111aa565b61093f565b34801561035857600080fd5b507f000000000000000000000000000000000000000000000000000000000000000061027d565b34801561038b57600080fd5b506101c961039a3660046111e1565b610a74565b3480156103ab57600080fd5b5060015473ffffffffffffffffffffffffffffffffffffffff1661027d565b3480156103d657600080fd5b506101c96103e53660046111e1565b610b66565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f85572ffb00000000000000000000000000000000000000000000000000000000148061047d57507fffffffff0000000000000000000000000000000000000000000000000000000082167f01ffc9a700000000000000000000000000000000000000000000000000000000145b92915050565b61048b610c16565b604051479060009073ffffffffffffffffffffffffffffffffffffffff84169083908381818185875af1925050503d80600081146104e5576040519150601f19603f3d011682016040523d82523d6000602084013e6104ea565b606091505b505090508061055a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f556e61626c6520746f207769746864726177000000000000000000000000000060448201526064015b60405180910390fd5b505050565b610567610c16565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa1580156105d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f89190611257565b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152602482018390529192509083169063a9059cbb906044016020604051808303816000875af1158015610671573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106959190611270565b50505050565b6106a3610c16565b6106ab610c97565b565b6106b5610c16565b67ffffffffffffffff8216600090815260046020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1615610780576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4d6573736167652073656e64657220666f7220736f7572636520636861696e2060448201527f697320656e61626c6564000000000000000000000000000000000000000000006064820152608401610551565b67ffffffffffffffff909116600090815260046020908152604080832073ffffffffffffffffffffffffffffffffffffffff90941683529290522080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6107ee610c16565b6106ab6000610d14565b600154339073ffffffffffffffffffffffffffffffffffffffff1681146108a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e657200000000000000000000000000000000000000000000006064820152608401610551565b6108aa81610d14565b50565b6108b5610c16565b6106ab610d45565b3373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161461092e576040517fd7f73334000000000000000000000000000000000000000000000000000000008152336004820152602401610551565b6108aa61093a826114a5565b610db4565b610947610c16565b67ffffffffffffffff8216600090815260046020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610a11576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f4d6573736167652073656e64657220666f7220736f7572636520636861696e2060448201527f69732064697361626c65640000000000000000000000000000000000000000006064820152608401610551565b67ffffffffffffffff909116600090815260046020908152604080832073ffffffffffffffffffffffffffffffffffffffff90941683529290522080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b610a7c610c16565b73ffffffffffffffffffffffffffffffffffffffff8116610b1f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f5261696e626f7720526f61642063616e6e6f74206265207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610551565b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b610b6e610c16565b6001805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff00000000000000000000000000000000000000009091168117909155610bd160005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b60005473ffffffffffffffffffffffffffffffffffffffff1633146106ab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610551565b610c9f610fa4565b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690556108aa81611028565b610d4d61109d565b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610cea3390565b610dbc61109d565b8051602080830151604084015180519192600092610de09290810182019101611552565b67ffffffffffffffff8316600090815260046020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205490915060ff16610ead576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f556e737570706f7274656420736f7572636520636861696e2f6d65737361676560448201527f2073656e646572000000000000000000000000000000000000000000000000006064820152608401610551565b60008060008660600151806020019051810190610eca91906115c3565b6003546040517f9cdbf4c4000000000000000000000000000000000000000000000000000000008152939650919450925073ffffffffffffffffffffffffffffffffffffffff1690639cdbf4c490610f2a908690869086906004016116af565b600060405180830381600087803b158015610f4457600080fd5b505af1158015610f58573d6000803e3d6000fd5b505050507f2642174ced025a076e0aa6efd0f6c786f07d3a28c1b20dea79f09bbcd9d55c978686868686604051610f939594939291906116fa565b60405180910390a150505050505050565b60015474010000000000000000000000000000000000000000900460ff166106ab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610551565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60015474010000000000000000000000000000000000000000900460ff16156106ab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610551565b60006020828403121561113457600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461116457600080fd5b9392505050565b803567ffffffffffffffff8116811461118357600080fd5b919050565b73ffffffffffffffffffffffffffffffffffffffff811681146108aa57600080fd5b600080604083850312156111bd57600080fd5b6111c68361116b565b915060208301356111d681611188565b809150509250929050565b6000602082840312156111f357600080fd5b813561116481611188565b6000806040838503121561121157600080fd5b82356111c681611188565b60006020828403121561122e57600080fd5b813567ffffffffffffffff81111561124557600080fd5b820160a0818503121561116457600080fd5b60006020828403121561126957600080fd5b5051919050565b60006020828403121561128257600080fd5b8151801515811461116457600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040805190810167ffffffffffffffff811182821017156112e4576112e4611292565b60405290565b60405160a0810167ffffffffffffffff811182821017156112e4576112e4611292565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561135457611354611292565b604052919050565b600067ffffffffffffffff82111561137657611376611292565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b600082601f8301126113b357600080fd5b81356113c66113c18261135c565b61130d565b8181528460208386010111156113db57600080fd5b816020850160208301376000918101602001919091529392505050565b600082601f83011261140957600080fd5b8135602067ffffffffffffffff82111561142557611425611292565b611433818360051b0161130d565b82815260069290921b8401810191818101908684111561145257600080fd5b8286015b8481101561149a576040818903121561146f5760008081fd5b6114776112c1565b813561148281611188565b81528185013585820152835291830191604001611456565b509695505050505050565b600060a082360312156114b757600080fd5b6114bf6112ea565b823581526114cf6020840161116b565b6020820152604083013567ffffffffffffffff808211156114ef57600080fd5b6114fb368387016113a2565b6040840152606085013591508082111561151457600080fd5b611520368387016113a2565b6060840152608085013591508082111561153957600080fd5b50611546368286016113f8565b60808301525092915050565b60006020828403121561156457600080fd5b815161116481611188565b60005b8381101561158a578181015183820152602001611572565b50506000910152565b60006115a16113c18461135c565b90508281528383830111156115b557600080fd5b61116483602083018461156f565b6000806000606084860312156115d857600080fd5b835167ffffffffffffffff808211156115f057600080fd5b818601915086601f83011261160457600080fd5b61161387835160208501611593565b94506020860151915061162582611188565b60408601519193508082111561163a57600080fd5b508401601f8101861361164c57600080fd5b61165b86825160208401611593565b9150509250925092565b6000815180845261167d81602086016020860161156f565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6060815260006116c26060830186611665565b73ffffffffffffffffffffffffffffffffffffffff8516602084015282810360408401526116f08185611665565b9695505050505050565b85815267ffffffffffffffff85166020820152600073ffffffffffffffffffffffffffffffffffffffff808616604084015260a0606084015261174060a0840186611665565b9150808416608084015250969550505050505056fea264697066735822122076e98c4ad488e72220c547171de554091ce34e82fd0ef8efeccab77e3ee1b1bb64736f6c634300081300330000000000000000000000009de5b4928296d96f48fe67ebb2ca1556827fc6a90000000000000000000000003206695cae29952f4b0c22a169725a865bc8ce0f

Deployed Bytecode

0x60806040526004361061012d5760003560e01c806379ba5097116100a55780639009371911610074578063bfb5944a11610059578063bfb5944a1461037f578063e30c39781461039f578063f2fde38b146103ca57600080fd5b8063900937191461032c578063b0f479a11461034c57600080fd5b806379ba5097146102b75780638456cb59146102cc57806385572ffb146102e15780638da5cb5b1461030157600080fd5b80633f4ba83a116100fc5780635c975abb116100e15780635c975abb146102205780636a93681714610250578063715018a6146102a257600080fd5b80633f4ba83a146101eb57806344de75661461020057600080fd5b806301ffc9a7146101395780632164c8361461016e5780632f622e6b146101a95780633aeac4e1146101cb57600080fd5b3661013457005b600080fd5b34801561014557600080fd5b50610159610154366004611122565b6103ea565b60405190151581526020015b60405180910390f35b34801561017a57600080fd5b506101596101893660046111aa565b600460209081526000928352604080842090915290825290205460ff1681565b3480156101b557600080fd5b506101c96101c43660046111e1565b610483565b005b3480156101d757600080fd5b506101c96101e63660046111fe565b61055f565b3480156101f757600080fd5b506101c961069b565b34801561020c57600080fd5b506101c961021b3660046111aa565b6106ad565b34801561022c57600080fd5b5060015474010000000000000000000000000000000000000000900460ff16610159565b34801561025c57600080fd5b5060035461027d9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610165565b3480156102ae57600080fd5b506101c96107e6565b3480156102c357600080fd5b506101c96107f8565b3480156102d857600080fd5b506101c96108ad565b3480156102ed57600080fd5b506101c96102fc36600461121c565b6108bd565b34801561030d57600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff1661027d565b34801561033857600080fd5b506101c96103473660046111aa565b61093f565b34801561035857600080fd5b507f0000000000000000000000003206695cae29952f4b0c22a169725a865bc8ce0f61027d565b34801561038b57600080fd5b506101c961039a3660046111e1565b610a74565b3480156103ab57600080fd5b5060015473ffffffffffffffffffffffffffffffffffffffff1661027d565b3480156103d657600080fd5b506101c96103e53660046111e1565b610b66565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f85572ffb00000000000000000000000000000000000000000000000000000000148061047d57507fffffffff0000000000000000000000000000000000000000000000000000000082167f01ffc9a700000000000000000000000000000000000000000000000000000000145b92915050565b61048b610c16565b604051479060009073ffffffffffffffffffffffffffffffffffffffff84169083908381818185875af1925050503d80600081146104e5576040519150601f19603f3d011682016040523d82523d6000602084013e6104ea565b606091505b505090508061055a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f556e61626c6520746f207769746864726177000000000000000000000000000060448201526064015b60405180910390fd5b505050565b610567610c16565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a0823190602401602060405180830381865afa1580156105d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f89190611257565b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152602482018390529192509083169063a9059cbb906044016020604051808303816000875af1158015610671573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106959190611270565b50505050565b6106a3610c16565b6106ab610c97565b565b6106b5610c16565b67ffffffffffffffff8216600090815260046020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1615610780576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4d6573736167652073656e64657220666f7220736f7572636520636861696e2060448201527f697320656e61626c6564000000000000000000000000000000000000000000006064820152608401610551565b67ffffffffffffffff909116600090815260046020908152604080832073ffffffffffffffffffffffffffffffffffffffff90941683529290522080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6107ee610c16565b6106ab6000610d14565b600154339073ffffffffffffffffffffffffffffffffffffffff1681146108a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e657200000000000000000000000000000000000000000000006064820152608401610551565b6108aa81610d14565b50565b6108b5610c16565b6106ab610d45565b3373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000003206695cae29952f4b0c22a169725a865bc8ce0f161461092e576040517fd7f73334000000000000000000000000000000000000000000000000000000008152336004820152602401610551565b6108aa61093a826114a5565b610db4565b610947610c16565b67ffffffffffffffff8216600090815260046020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610a11576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f4d6573736167652073656e64657220666f7220736f7572636520636861696e2060448201527f69732064697361626c65640000000000000000000000000000000000000000006064820152608401610551565b67ffffffffffffffff909116600090815260046020908152604080832073ffffffffffffffffffffffffffffffffffffffff90941683529290522080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b610a7c610c16565b73ffffffffffffffffffffffffffffffffffffffff8116610b1f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f5261696e626f7720526f61642063616e6e6f74206265207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610551565b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b610b6e610c16565b6001805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff00000000000000000000000000000000000000009091168117909155610bd160005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b60005473ffffffffffffffffffffffffffffffffffffffff1633146106ab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610551565b610c9f610fa4565b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690556108aa81611028565b610d4d61109d565b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610cea3390565b610dbc61109d565b8051602080830151604084015180519192600092610de09290810182019101611552565b67ffffffffffffffff8316600090815260046020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205490915060ff16610ead576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f556e737570706f7274656420736f7572636520636861696e2f6d65737361676560448201527f2073656e646572000000000000000000000000000000000000000000000000006064820152608401610551565b60008060008660600151806020019051810190610eca91906115c3565b6003546040517f9cdbf4c4000000000000000000000000000000000000000000000000000000008152939650919450925073ffffffffffffffffffffffffffffffffffffffff1690639cdbf4c490610f2a908690869086906004016116af565b600060405180830381600087803b158015610f4457600080fd5b505af1158015610f58573d6000803e3d6000fd5b505050507f2642174ced025a076e0aa6efd0f6c786f07d3a28c1b20dea79f09bbcd9d55c978686868686604051610f939594939291906116fa565b60405180910390a150505050505050565b60015474010000000000000000000000000000000000000000900460ff166106ab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610551565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60015474010000000000000000000000000000000000000000900460ff16156106ab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610551565b60006020828403121561113457600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461116457600080fd5b9392505050565b803567ffffffffffffffff8116811461118357600080fd5b919050565b73ffffffffffffffffffffffffffffffffffffffff811681146108aa57600080fd5b600080604083850312156111bd57600080fd5b6111c68361116b565b915060208301356111d681611188565b809150509250929050565b6000602082840312156111f357600080fd5b813561116481611188565b6000806040838503121561121157600080fd5b82356111c681611188565b60006020828403121561122e57600080fd5b813567ffffffffffffffff81111561124557600080fd5b820160a0818503121561116457600080fd5b60006020828403121561126957600080fd5b5051919050565b60006020828403121561128257600080fd5b8151801515811461116457600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040805190810167ffffffffffffffff811182821017156112e4576112e4611292565b60405290565b60405160a0810167ffffffffffffffff811182821017156112e4576112e4611292565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561135457611354611292565b604052919050565b600067ffffffffffffffff82111561137657611376611292565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b600082601f8301126113b357600080fd5b81356113c66113c18261135c565b61130d565b8181528460208386010111156113db57600080fd5b816020850160208301376000918101602001919091529392505050565b600082601f83011261140957600080fd5b8135602067ffffffffffffffff82111561142557611425611292565b611433818360051b0161130d565b82815260069290921b8401810191818101908684111561145257600080fd5b8286015b8481101561149a576040818903121561146f5760008081fd5b6114776112c1565b813561148281611188565b81528185013585820152835291830191604001611456565b509695505050505050565b600060a082360312156114b757600080fd5b6114bf6112ea565b823581526114cf6020840161116b565b6020820152604083013567ffffffffffffffff808211156114ef57600080fd5b6114fb368387016113a2565b6040840152606085013591508082111561151457600080fd5b611520368387016113a2565b6060840152608085013591508082111561153957600080fd5b50611546368286016113f8565b60808301525092915050565b60006020828403121561156457600080fd5b815161116481611188565b60005b8381101561158a578181015183820152602001611572565b50506000910152565b60006115a16113c18461135c565b90508281528383830111156115b557600080fd5b61116483602083018461156f565b6000806000606084860312156115d857600080fd5b835167ffffffffffffffff808211156115f057600080fd5b818601915086601f83011261160457600080fd5b61161387835160208501611593565b94506020860151915061162582611188565b60408601519193508082111561163a57600080fd5b508401601f8101861361164c57600080fd5b61165b86825160208401611593565b9150509250925092565b6000815180845261167d81602086016020860161156f565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6060815260006116c26060830186611665565b73ffffffffffffffffffffffffffffffffffffffff8516602084015282810360408401526116f08185611665565b9695505050505050565b85815267ffffffffffffffff85166020820152600073ffffffffffffffffffffffffffffffffffffffff808616604084015260a0606084015261174060a0840186611665565b9150808416608084015250969550505050505056fea264697066735822122076e98c4ad488e72220c547171de554091ce34e82fd0ef8efeccab77e3ee1b1bb64736f6c63430008130033

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

0000000000000000000000009de5b4928296d96f48fe67ebb2ca1556827fc6a90000000000000000000000003206695cae29952f4b0c22a169725a865bc8ce0f

-----Decoded View---------------
Arg [0] : _rainbowRoad (address): 0x9DE5b4928296D96f48Fe67ebB2cA1556827fc6A9
Arg [1] : _router (address): 0x3206695CaE29952f4b0c22a169725a865bc8Ce0f

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000009de5b4928296d96f48fe67ebb2ca1556827fc6a9
Arg [1] : 0000000000000000000000003206695cae29952f4b0c22a169725a865bc8ce0f


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
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.