Contract 0xbf9813FC8f99759A77D877F812ff065D2070F1cC

 
  Note: Our frxETH balance display is temporarily unavailable. Please check back later.

Contract Overview

Balance:

frxETHValue:
$0.00

Token:
Txn Hash Method
Block
From
To
Value
0xcf4175121490caf83bd54cc9618f626c93b1f9f4fff4f3bb8246a7dc8e07d4b9Send31065092024-04-13 15:55:2945 days 11 hrs ago0x60d320a138deb35ac3b666ba746399251ef60d2d IN  0xbf9813fc8f99759a77d877f812ff065d2070f1cc0 frxETH0.000003211320.0011
0x5fe2f43bdd7a6dc79658b297b66bd7960bac364eae3d957eb7e1d837ddedf1beSend26023232024-04-01 23:49:1757 days 3 hrs ago0x112d8df6507692e95aa7ade3a889cbafc2e7c1be IN  0xbf9813fc8f99759a77d877f812ff065d2070f1cc0 frxETH0.0000046139560.0011
0xe012a374675757f35199b180103e62806519b854d333c3575da0efe43057553bTransfer19192262024-03-17 4:19:2372 days 22 hrs ago0xf087491dbb6d94a1332501bc087390b887b3ec92 IN  0xbf9813fc8f99759a77d877f812ff065d2070f1cc0.015 frxETH0.0000020290940.000100254
0xd6b469c89f3ad28f9cf3375df546431a394e26cf873e70ea20336e8ebc1f9f730x6080604018526922024-03-15 15:21:3574 days 11 hrs ago0xf087491dbb6d94a1332501bc087390b887b3ec92 IN  Create: AxelarSender0 frxETH0.0003050339140.001000254
[ Download CSV Export 
Latest 4 internal transactions
Parent Txn Hash Block From To Value
0xfed006c35edf25953acb7cb8b98763925e632bbc49d775daa717771cec267c2c31085382024-04-13 17:03:0745 days 10 hrs ago Axelar Network : Gateway 0xbf9813fc8f99759a77d877f812ff065d2070f1cc0.000699852913058734 frxETH
0xcf4175121490caf83bd54cc9618f626c93b1f9f4fff4f3bb8246a7dc8e07d4b931065092024-04-13 15:55:2945 days 11 hrs ago 0xbf9813fc8f99759a77d877f812ff065d2070f1cc Axelar Network : Gateway0.001 frxETH
0x1fbaeeb86f8eb788d0dc1f38cabd85205d9fa2f96a35bf95fcf4bae957eb797226039902024-04-02 0:44:5157 days 2 hrs ago Axelar Network : Gateway 0xbf9813fc8f99759a77d877f812ff065d2070f1cc0.000863727634048392 frxETH
0x5fe2f43bdd7a6dc79658b297b66bd7960bac364eae3d957eb7e1d837ddedf1be26023232024-04-01 23:49:1757 days 3 hrs ago 0xbf9813fc8f99759a77d877f812ff065d2070f1cc Axelar Network : Gateway0.001 frxETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AxelarSender

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 10000 runs

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

pragma solidity ^0.8.0;

import { IUpgradable } from '../interfaces/IUpgradable.sol';

/**
 * @title IAxelarGasService Interface
 * @notice This is an interface for the AxelarGasService contract which manages gas payments
 * and refunds for cross-chain communication on the Axelar network.
 * @dev This interface inherits IUpgradable
 */
interface IAxelarGasService is IUpgradable {
    error NothingReceived();
    error InvalidAddress();
    error NotCollector();
    error InvalidAmounts();

    event GasPaidForContractCall(
        address indexed sourceAddress,
        string destinationChain,
        string destinationAddress,
        bytes32 indexed payloadHash,
        address gasToken,
        uint256 gasFeeAmount,
        address refundAddress
    );

    event GasPaidForContractCallWithToken(
        address indexed sourceAddress,
        string destinationChain,
        string destinationAddress,
        bytes32 indexed payloadHash,
        string symbol,
        uint256 amount,
        address gasToken,
        uint256 gasFeeAmount,
        address refundAddress
    );

    event NativeGasPaidForContractCall(
        address indexed sourceAddress,
        string destinationChain,
        string destinationAddress,
        bytes32 indexed payloadHash,
        uint256 gasFeeAmount,
        address refundAddress
    );

    event NativeGasPaidForContractCallWithToken(
        address indexed sourceAddress,
        string destinationChain,
        string destinationAddress,
        bytes32 indexed payloadHash,
        string symbol,
        uint256 amount,
        uint256 gasFeeAmount,
        address refundAddress
    );

    event GasPaidForExpressCall(
        address indexed sourceAddress,
        string destinationChain,
        string destinationAddress,
        bytes32 indexed payloadHash,
        address gasToken,
        uint256 gasFeeAmount,
        address refundAddress
    );

    event GasPaidForExpressCallWithToken(
        address indexed sourceAddress,
        string destinationChain,
        string destinationAddress,
        bytes32 indexed payloadHash,
        string symbol,
        uint256 amount,
        address gasToken,
        uint256 gasFeeAmount,
        address refundAddress
    );

    event NativeGasPaidForExpressCall(
        address indexed sourceAddress,
        string destinationChain,
        string destinationAddress,
        bytes32 indexed payloadHash,
        uint256 gasFeeAmount,
        address refundAddress
    );

    event NativeGasPaidForExpressCallWithToken(
        address indexed sourceAddress,
        string destinationChain,
        string destinationAddress,
        bytes32 indexed payloadHash,
        string symbol,
        uint256 amount,
        uint256 gasFeeAmount,
        address refundAddress
    );

    event GasAdded(
        bytes32 indexed txHash,
        uint256 indexed logIndex,
        address gasToken,
        uint256 gasFeeAmount,
        address refundAddress
    );

    event NativeGasAdded(bytes32 indexed txHash, uint256 indexed logIndex, uint256 gasFeeAmount, address refundAddress);

    event ExpressGasAdded(
        bytes32 indexed txHash,
        uint256 indexed logIndex,
        address gasToken,
        uint256 gasFeeAmount,
        address refundAddress
    );

    event NativeExpressGasAdded(
        bytes32 indexed txHash,
        uint256 indexed logIndex,
        uint256 gasFeeAmount,
        address refundAddress
    );

    event Refunded(
        bytes32 indexed txHash,
        uint256 indexed logIndex,
        address payable receiver,
        address token,
        uint256 amount
    );

    /**
     * @notice Pay for gas using ERC20 tokens for a contract call on a destination chain.
     * @dev This function is called on the source chain before calling the gateway to execute a remote contract.
     * @param sender The address making the payment
     * @param destinationChain The target chain where the contract call will be made
     * @param destinationAddress The target address on the destination chain
     * @param payload Data payload for the contract call
     * @param gasToken The address of the ERC20 token used to pay for gas
     * @param gasFeeAmount The amount of tokens to pay for gas
     * @param refundAddress The address where refunds, if any, should be sent
     */
    function payGasForContractCall(
        address sender,
        string calldata destinationChain,
        string calldata destinationAddress,
        bytes calldata payload,
        address gasToken,
        uint256 gasFeeAmount,
        address refundAddress
    ) external;

    /**
     * @notice Pay for gas using ERC20 tokens for a contract call with tokens on a destination chain.
     * @dev This function is called on the source chain before calling the gateway to execute a remote contract.
     * @param sender The address making the payment
     * @param destinationChain The target chain where the contract call with tokens will be made
     * @param destinationAddress The target address on the destination chain
     * @param payload Data payload for the contract call with tokens
     * @param symbol The symbol of the token to be sent with the call
     * @param amount The amount of tokens to be sent with the call
     * @param gasToken The address of the ERC20 token used to pay for gas
     * @param gasFeeAmount The amount of tokens to pay for gas
     * @param refundAddress The address where refunds, if any, should be sent
     */
    function payGasForContractCallWithToken(
        address sender,
        string calldata destinationChain,
        string calldata destinationAddress,
        bytes calldata payload,
        string calldata symbol,
        uint256 amount,
        address gasToken,
        uint256 gasFeeAmount,
        address refundAddress
    ) external;

    /**
     * @notice Pay for gas using native currency for a contract call on a destination chain.
     * @dev This function is called on the source chain before calling the gateway to execute a remote contract.
     * @param sender The address making the payment
     * @param destinationChain The target chain where the contract call will be made
     * @param destinationAddress The target address on the destination chain
     * @param payload Data payload for the contract call
     * @param refundAddress The address where refunds, if any, should be sent
     */
    function payNativeGasForContractCall(
        address sender,
        string calldata destinationChain,
        string calldata destinationAddress,
        bytes calldata payload,
        address refundAddress
    ) external payable;

    /**
     * @notice Pay for gas using native currency for a contract call with tokens on a destination chain.
     * @dev This function is called on the source chain before calling the gateway to execute a remote contract.
     * @param sender The address making the payment
     * @param destinationChain The target chain where the contract call with tokens will be made
     * @param destinationAddress The target address on the destination chain
     * @param payload Data payload for the contract call with tokens
     * @param symbol The symbol of the token to be sent with the call
     * @param amount The amount of tokens to be sent with the call
     * @param refundAddress The address where refunds, if any, should be sent
     */
    function payNativeGasForContractCallWithToken(
        address sender,
        string calldata destinationChain,
        string calldata destinationAddress,
        bytes calldata payload,
        string calldata symbol,
        uint256 amount,
        address refundAddress
    ) external payable;

    /**
     * @notice Pay for gas using ERC20 tokens for an express contract call on a destination chain.
     * @dev This function is called on the source chain before calling the gateway to express execute a remote contract.
     * @param sender The address making the payment
     * @param destinationChain The target chain where the contract call will be made
     * @param destinationAddress The target address on the destination chain
     * @param payload Data payload for the contract call
     * @param gasToken The address of the ERC20 token used to pay for gas
     * @param gasFeeAmount The amount of tokens to pay for gas
     * @param refundAddress The address where refunds, if any, should be sent
     */
    function payGasForExpressCall(
        address sender,
        string calldata destinationChain,
        string calldata destinationAddress,
        bytes calldata payload,
        address gasToken,
        uint256 gasFeeAmount,
        address refundAddress
    ) external;

    /**
     * @notice Pay for gas using ERC20 tokens for an express contract call with tokens on a destination chain.
     * @dev This function is called on the source chain before calling the gateway to express execute a remote contract.
     * @param sender The address making the payment
     * @param destinationChain The target chain where the contract call with tokens will be made
     * @param destinationAddress The target address on the destination chain
     * @param payload Data payload for the contract call with tokens
     * @param symbol The symbol of the token to be sent with the call
     * @param amount The amount of tokens to be sent with the call
     * @param gasToken The address of the ERC20 token used to pay for gas
     * @param gasFeeAmount The amount of tokens to pay for gas
     * @param refundAddress The address where refunds, if any, should be sent
     */
    function payGasForExpressCallWithToken(
        address sender,
        string calldata destinationChain,
        string calldata destinationAddress,
        bytes calldata payload,
        string calldata symbol,
        uint256 amount,
        address gasToken,
        uint256 gasFeeAmount,
        address refundAddress
    ) external;

    /**
     * @notice Pay for gas using native currency for an express contract call on a destination chain.
     * @dev This function is called on the source chain before calling the gateway to express execute a remote contract.
     * @param sender The address making the payment
     * @param destinationChain The target chain where the contract call will be made
     * @param destinationAddress The target address on the destination chain
     * @param payload Data payload for the contract call
     * @param refundAddress The address where refunds, if any, should be sent
     */
    function payNativeGasForExpressCall(
        address sender,
        string calldata destinationChain,
        string calldata destinationAddress,
        bytes calldata payload,
        address refundAddress
    ) external payable;

    /**
     * @notice Pay for gas using native currency for an express contract call with tokens on a destination chain.
     * @dev This function is called on the source chain before calling the gateway to express execute a remote contract.
     * @param sender The address making the payment
     * @param destinationChain The target chain where the contract call with tokens will be made
     * @param destinationAddress The target address on the destination chain
     * @param payload Data payload for the contract call with tokens
     * @param symbol The symbol of the token to be sent with the call
     * @param amount The amount of tokens to be sent with the call
     * @param refundAddress The address where refunds, if any, should be sent
     */
    function payNativeGasForExpressCallWithToken(
        address sender,
        string calldata destinationChain,
        string calldata destinationAddress,
        bytes calldata payload,
        string calldata symbol,
        uint256 amount,
        address refundAddress
    ) external payable;

    /**
     * @notice Add additional gas payment using ERC20 tokens after initiating a cross-chain call.
     * @dev This function can be called on the source chain after calling the gateway to execute a remote contract.
     * @param txHash The transaction hash of the cross-chain call
     * @param logIndex The log index for the cross-chain call
     * @param gasToken The ERC20 token address used to add gas
     * @param gasFeeAmount The amount of tokens to add as gas
     * @param refundAddress The address where refunds, if any, should be sent
     */
    function addGas(
        bytes32 txHash,
        uint256 logIndex,
        address gasToken,
        uint256 gasFeeAmount,
        address refundAddress
    ) external;

    /**
     * @notice Add additional gas payment using native currency after initiating a cross-chain call.
     * @dev This function can be called on the source chain after calling the gateway to execute a remote contract.
     * @param txHash The transaction hash of the cross-chain call
     * @param logIndex The log index for the cross-chain call
     * @param refundAddress The address where refunds, if any, should be sent
     */
    function addNativeGas(
        bytes32 txHash,
        uint256 logIndex,
        address refundAddress
    ) external payable;

    /**
     * @notice Add additional gas payment using ERC20 tokens after initiating an express cross-chain call.
     * @dev This function can be called on the source chain after calling the gateway to express execute a remote contract.
     * @param txHash The transaction hash of the cross-chain call
     * @param logIndex The log index for the cross-chain call
     * @param gasToken The ERC20 token address used to add gas
     * @param gasFeeAmount The amount of tokens to add as gas
     * @param refundAddress The address where refunds, if any, should be sent
     */
    function addExpressGas(
        bytes32 txHash,
        uint256 logIndex,
        address gasToken,
        uint256 gasFeeAmount,
        address refundAddress
    ) external;

    /**
     * @notice Add additional gas payment using native currency after initiating an express cross-chain call.
     * @dev This function can be called on the source chain after calling the gateway to express execute a remote contract.
     * @param txHash The transaction hash of the cross-chain call
     * @param logIndex The log index for the cross-chain call
     * @param refundAddress The address where refunds, if any, should be sent
     */
    function addNativeExpressGas(
        bytes32 txHash,
        uint256 logIndex,
        address refundAddress
    ) external payable;

    /**
     * @notice Allows the gasCollector to collect accumulated fees from the contract.
     * @dev Use address(0) as the token address for native currency.
     * @param receiver The address to receive the collected fees
     * @param tokens Array of token addresses to be collected
     * @param amounts Array of amounts to be collected for each respective token address
     */
    function collectFees(
        address payable receiver,
        address[] calldata tokens,
        uint256[] calldata amounts
    ) external;

    /**
     * @notice Refunds gas payment to the receiver in relation to a specific cross-chain transaction.
     * @dev Only callable by the gasCollector.
     * @dev Use address(0) as the token address to refund native currency.
     * @param txHash The transaction hash of the cross-chain call
     * @param logIndex The log index for the cross-chain call
     * @param receiver The address to receive the refund
     * @param token The token address to be refunded
     * @param amount The amount to refund
     */
    function refund(
        bytes32 txHash,
        uint256 logIndex,
        address payable receiver,
        address token,
        uint256 amount
    ) external;

    /**
     * @notice Returns the address of the designated gas collector.
     * @return address of the gas collector
     */
    function gasCollector() external returns (address);
}

File 2 of 18 : IAxelarGateway.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import { IGovernable } from './IGovernable.sol';

interface IAxelarGateway is IGovernable {
    /**********\
    |* Errors *|
    \**********/

    error NotSelf();
    error NotProxy();
    error InvalidCodeHash();
    error SetupFailed();
    error InvalidAuthModule();
    error InvalidTokenDeployer();
    error InvalidAmount();
    error InvalidChainId();
    error InvalidCommands();
    error TokenDoesNotExist(string symbol);
    error TokenAlreadyExists(string symbol);
    error TokenDeployFailed(string symbol);
    error TokenContractDoesNotExist(address token);
    error BurnFailed(string symbol);
    error MintFailed(string symbol);
    error InvalidSetMintLimitsParams();
    error ExceedMintLimit(string symbol);

    /**********\
    |* Events *|
    \**********/

    event TokenSent(
        address indexed sender,
        string destinationChain,
        string destinationAddress,
        string symbol,
        uint256 amount
    );

    event ContractCall(
        address indexed sender,
        string destinationChain,
        string destinationContractAddress,
        bytes32 indexed payloadHash,
        bytes payload
    );

    event ContractCallWithToken(
        address indexed sender,
        string destinationChain,
        string destinationContractAddress,
        bytes32 indexed payloadHash,
        bytes payload,
        string symbol,
        uint256 amount
    );

    event Executed(bytes32 indexed commandId);

    event TokenDeployed(string symbol, address tokenAddresses);

    event ContractCallApproved(
        bytes32 indexed commandId,
        string sourceChain,
        string sourceAddress,
        address indexed contractAddress,
        bytes32 indexed payloadHash,
        bytes32 sourceTxHash,
        uint256 sourceEventIndex
    );

    event ContractCallApprovedWithMint(
        bytes32 indexed commandId,
        string sourceChain,
        string sourceAddress,
        address indexed contractAddress,
        bytes32 indexed payloadHash,
        string symbol,
        uint256 amount,
        bytes32 sourceTxHash,
        uint256 sourceEventIndex
    );

    event TokenMintLimitUpdated(string symbol, uint256 limit);

    event OperatorshipTransferred(bytes newOperatorsData);

    event Upgraded(address indexed implementation);

    /********************\
    |* Public Functions *|
    \********************/

    function sendToken(
        string calldata destinationChain,
        string calldata destinationAddress,
        string calldata symbol,
        uint256 amount
    ) external;

    function callContract(
        string calldata destinationChain,
        string calldata contractAddress,
        bytes calldata payload
    ) external;

    function callContractWithToken(
        string calldata destinationChain,
        string calldata contractAddress,
        bytes calldata payload,
        string calldata symbol,
        uint256 amount
    ) external;

    function isContractCallApproved(
        bytes32 commandId,
        string calldata sourceChain,
        string calldata sourceAddress,
        address contractAddress,
        bytes32 payloadHash
    ) external view returns (bool);

    function isContractCallAndMintApproved(
        bytes32 commandId,
        string calldata sourceChain,
        string calldata sourceAddress,
        address contractAddress,
        bytes32 payloadHash,
        string calldata symbol,
        uint256 amount
    ) external view returns (bool);

    function validateContractCall(
        bytes32 commandId,
        string calldata sourceChain,
        string calldata sourceAddress,
        bytes32 payloadHash
    ) external returns (bool);

    function validateContractCallAndMint(
        bytes32 commandId,
        string calldata sourceChain,
        string calldata sourceAddress,
        bytes32 payloadHash,
        string calldata symbol,
        uint256 amount
    ) external returns (bool);

    /***********\
    |* Getters *|
    \***********/

    function authModule() external view returns (address);

    function tokenDeployer() external view returns (address);

    function tokenMintLimit(string memory symbol) external view returns (uint256);

    function tokenMintAmount(string memory symbol) external view returns (uint256);

    function allTokensFrozen() external view returns (bool);

    function implementation() external view returns (address);

    function tokenAddresses(string memory symbol) external view returns (address);

    function tokenFrozen(string memory symbol) external view returns (bool);

    function isCommandExecuted(bytes32 commandId) external view returns (bool);

    function adminEpoch() external view returns (uint256);

    function adminThreshold(uint256 epoch) external view returns (uint256);

    function admins(uint256 epoch) external view returns (address[] memory);

    /*******************\
    |* Admin Functions *|
    \*******************/

    function setTokenMintLimits(string[] calldata symbols, uint256[] calldata limits) external;

    function upgrade(
        address newImplementation,
        bytes32 newImplementationCodeHash,
        bytes calldata setupParams
    ) external;

    /**********************\
    |* External Functions *|
    \**********************/

    function setup(bytes calldata params) external;

    function execute(bytes calldata input) external;
}

File 3 of 18 : IContractIdentifier.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// General interface for upgradable contracts
interface IContractIdentifier {
    /**
     * @notice Returns the contract ID. It can be used as a check during upgrades.
     * @dev Meant to be overridden in derived contracts.
     * @return bytes32 The contract ID
     */
    function contractId() external pure returns (bytes32);
}

File 4 of 18 : IGovernable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title IGovernable Interface
 * @notice This is an interface used by the AxelarGateway contract to manage governance and mint limiter roles.
 */
interface IGovernable {
    error NotGovernance();
    error NotMintLimiter();
    error InvalidGovernance();
    error InvalidMintLimiter();

    event GovernanceTransferred(address indexed previousGovernance, address indexed newGovernance);
    event MintLimiterTransferred(address indexed previousGovernance, address indexed newGovernance);

    /**
     * @notice Returns the governance address.
     * @return address of the governance
     */
    function governance() external view returns (address);

    /**
     * @notice Returns the mint limiter address.
     * @return address of the mint limiter
     */
    function mintLimiter() external view returns (address);

    /**
     * @notice Transfer the governance role to another address.
     * @param newGovernance The new governance address
     */
    function transferGovernance(address newGovernance) external;

    /**
     * @notice Transfer the mint limiter role to another address.
     * @param newGovernance The new mint limiter address
     */
    function transferMintLimiter(address newGovernance) external;
}

File 5 of 18 : IOwnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title IOwnable Interface
 * @notice IOwnable is an interface that abstracts the implementation of a
 * contract with ownership control features. It's commonly used in upgradable
 * contracts and includes the functionality to get current owner, transfer
 * ownership, and propose and accept ownership.
 */
interface IOwnable {
    error NotOwner();
    error InvalidOwner();
    error InvalidOwnerAddress();

    event OwnershipTransferStarted(address indexed newOwner);
    event OwnershipTransferred(address indexed newOwner);

    /**
     * @notice Returns the current owner of the contract.
     * @return address The address of the current owner
     */
    function owner() external view returns (address);

    /**
     * @notice Returns the address of the pending owner of the contract.
     * @return address The address of the pending owner
     */
    function pendingOwner() external view returns (address);

    /**
     * @notice Transfers ownership of the contract to a new address
     * @param newOwner The address to transfer ownership to
     */
    function transferOwnership(address newOwner) external;

    /**
     * @notice Proposes to transfer the contract's ownership to a new address.
     * The new owner needs to accept the ownership explicitly.
     * @param newOwner The address to transfer ownership to
     */
    function proposeOwnership(address newOwner) external;

    /**
     * @notice Transfers ownership to the pending owner.
     * @dev Can only be called by the pending owner
     */
    function acceptOwnership() external;
}

File 6 of 18 : IUpgradable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import { IOwnable } from './IOwnable.sol';
import { IContractIdentifier } from './IContractIdentifier.sol';

// General interface for upgradable contracts
interface IUpgradable is IOwnable, IContractIdentifier {
    error InvalidCodeHash();
    error InvalidImplementation();
    error SetupFailed();
    error NotProxy();

    event Upgraded(address indexed newImplementation);

    function implementation() external view returns (address);

    function upgrade(
        address newImplementation,
        bytes32 newImplementationCodeHash,
        bytes calldata params
    ) external;

    function setup(bytes calldata data) external;
}

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

pragma solidity ^0.8.0;

library StringToAddress {
    error InvalidAddressString();

    function toAddress(string memory addressString) internal pure returns (address) {
        bytes memory stringBytes = bytes(addressString);
        uint160 addressNumber = 0;
        uint8 stringByte;

        if (stringBytes.length != 42 || stringBytes[0] != '0' || stringBytes[1] != 'x') revert InvalidAddressString();

        for (uint256 i = 2; i < 42; ++i) {
            stringByte = uint8(stringBytes[i]);

            if ((stringByte >= 97) && (stringByte <= 102)) stringByte -= 87;
            else if ((stringByte >= 65) && (stringByte <= 70)) stringByte -= 55;
            else if ((stringByte >= 48) && (stringByte <= 57)) stringByte -= 48;
            else revert InvalidAddressString();

            addressNumber |= uint160(uint256(stringByte) << ((41 - i) << 2));
        }

        return address(addressNumber);
    }
}

library AddressToString {
    function toString(address address_) internal pure returns (string memory) {
        bytes memory addressBytes = abi.encodePacked(address_);
        bytes memory characters = '0123456789abcdef';
        bytes memory stringBytes = new bytes(42);

        stringBytes[0] = '0';
        stringBytes[1] = 'x';

        for (uint256 i; i < 20; ++i) {
            stringBytes[2 + i * 2] = characters[uint8(addressBytes[i] >> 4)];
            stringBytes[3 + i * 2] = characters[uint8(addressBytes[i] & 0x0f)];
        }

        return string(stringBytes);
    }
}

File 8 of 18 : 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 9 of 18 : 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 10 of 18 : 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 11 of 18 : 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 12 of 18 : 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 13 of 18 : 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 14 of 18 : 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 15 of 18 : 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 16 of 18 : 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 17 of 18 : 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;
}

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

import {IAxelarGasService} from '@axelar-network/axelar-gmp-sdk-solidity/contracts/interfaces/IAxelarGasService.sol';
import {IAxelarGateway} from '@axelar-network/axelar-gmp-sdk-solidity/contracts/interfaces/IAxelarGateway.sol';
import {AddressToString} from "@axelar-network/axelar-gmp-sdk-solidity/contracts/libs/AddressString.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {ArcBaseWithRainbowRoad} from "../bases/ArcBaseWithRainbowRoad.sol";
import {IRainbowRoad} from "../interfaces/IRainbowRoad.sol";

/**
 * Sends messages to the Axelar Gateway
 */
contract AxelarSender is ArcBaseWithRainbowRoad 
{
    using AddressToString for address;
    
    enum PaymentTypes {
        NATIVE,
        TOKEN
    }
    
    IAxelarGateway public gateway;
    IAxelarGasService public gasService;
    PaymentTypes public paymentType;
    IERC20 public paymentToken;
    mapping(address => bool) public admins;

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

    constructor(address _rainbowRoad, address _gateway, address _gasService, address _paymentToken) ArcBaseWithRainbowRoad(_rainbowRoad)
    {
        require(_gateway != address(0), 'Gateway cannot be zero address');
        require(_gasService != address(0), 'Gas service cannot be zero address');
        require(_paymentToken != address(0), 'Payment token cannot be zero address');
        
        gateway = IAxelarGateway(_gateway);
        gasService = IAxelarGasService(_gasService);
        paymentType = PaymentTypes.NATIVE;
        paymentToken = IERC20(_paymentToken);
    }
    
    function setGateway(address _gateway) external onlyOwner
    {
        require(_gateway != address(0), 'Gateway cannot be zero address');
        gateway = IAxelarGateway(_gateway);
    }
    
    function setGasService(address _gasService) external onlyOwner
    {
        require(_gasService != address(0), 'Gas service cannot be zero address');
        gasService = IAxelarGasService(_gasService);
    }

    function setPaymentToken(address _paymentToken) external onlyOwner
    {
        require(_paymentToken != address(0), 'Payment token cannot be zero address');
        paymentToken = IERC20(_paymentToken);
    }
    
    function setPaymentTypeToToken() external onlyOwner
    {
        require(paymentType != PaymentTypes.TOKEN, 'Fees are already paid in TOKEN');
        paymentType = PaymentTypes.TOKEN;
    }
    
    function setPaymentTypeToNative() external onlyOwner
    {
        require(paymentType != PaymentTypes.NATIVE, 'Fees are already paid in NATIVE');
        paymentType = PaymentTypes.NATIVE;
    }
    
    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(string calldata destinationChainSelector, address messageReceiver, address actionRecipient, string calldata action, bytes calldata payload) external nonReentrant whenNotPaused onlyAdmins
    {
        return _send(destinationChainSelector, messageReceiver, actionRecipient, action, payload);
    }
    
    function send(string calldata destinationChainSelector, address messageReceiver, string calldata action, bytes calldata payload) external nonReentrant whenNotPaused
    {
        return _send(destinationChainSelector, messageReceiver, msg.sender, action, payload);
    }

    function _send(string calldata destinationChainSelector, address messageReceiver, address actionRecipient, string calldata action, bytes calldata payload) internal
    {
        require(messageReceiver != address(0), 'Message receiver cannot be zero address');

        rainbowRoad.sendAction(action, actionRecipient, payload);
        
        bytes memory message = abi.encode(action, actionRecipient, payload);
        string memory destinationAddress = messageReceiver.toString();

        if (paymentType == PaymentTypes.TOKEN) {
            
            uint256 tokenFee;
            {
                string memory tokenFeeConfigName = 'axelar_sender.token_fee';
                string memory tokenFeeConfigNameOverride = string.concat(tokenFeeConfigName, '_', action);
                bytes memory tokenFeeConfig = rainbowRoad.config(tokenFeeConfigNameOverride);
                
                if(tokenFeeConfig.length == 0) {
                    tokenFeeConfig = rainbowRoad.config(tokenFeeConfigName);
                }
                
                tokenFee = abi.decode(tokenFeeConfig, (uint256));
            }
            
            paymentToken.approve(address(gasService), tokenFee);
            gasService.payGasForContractCall(
                address(this),
                destinationChainSelector,
                destinationAddress,
                message,
                address(paymentToken),
                tokenFee,
                address(this)
            );
            
            gateway.callContract(destinationChainSelector, destinationAddress, message);
        } else {
            
            uint256 nativeFee;
            {
                string memory nativeFeeConfigName = 'axelar_sender.native_fee';
                string memory nativeFeeConfigNameOverride = string.concat(nativeFeeConfigName, '_', action);
                bytes memory nativeFeeConfig = rainbowRoad.config(nativeFeeConfigNameOverride);
                
                if(nativeFeeConfig.length == 0) {
                    nativeFeeConfig = rainbowRoad.config(nativeFeeConfigName);
                }
                
                nativeFee = abi.decode(nativeFeeConfig, (uint256));
            }
            
            gasService.payNativeGasForContractCall{ value: nativeFee }(
                address(this),
                destinationChainSelector,
                destinationAddress,
                message,
                address(this)
            );
            
            gateway.callContract(destinationChainSelector, destinationAddress, message);
        }

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

    receive() external payable {}
}

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"},{"internalType":"address","name":"_gateway","type":"address"},{"internalType":"address","name":"_gasService","type":"address"},{"internalType":"address","name":"_paymentToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"destinationChainSelector","type":"string"},{"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":"account","type":"address"}],"name":"Unpaused","type":"event"},{"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":"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":[],"name":"gasService","outputs":[{"internalType":"contract IAxelarGasService","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gateway","outputs":[{"internalType":"contract IAxelarGateway","name":"","type":"address"}],"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":"paymentToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paymentType","outputs":[{"internalType":"enum AxelarSender.PaymentTypes","name":"","type":"uint8"}],"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":"string","name":"destinationChainSelector","type":"string"},{"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":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"destinationChainSelector","type":"string"},{"internalType":"address","name":"messageReceiver","type":"address"},{"internalType":"string","name":"action","type":"string"},{"internalType":"bytes","name":"payload","type":"bytes"}],"name":"send","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gasService","type":"address"}],"name":"setGasService","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gateway","type":"address"}],"name":"setGateway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_paymentToken","type":"address"}],"name":"setPaymentToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPaymentTypeToNative","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPaymentTypeToToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rainbowRoad","type":"address"}],"name":"setRainbowRoad","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"}]

60806040523480156200001157600080fd5b50604051620026e5380380620026e58339810160408190526200003491620002c1565b83620000403362000236565b6001805460ff60a01b191681556002556001600160a01b038116620000b85760405162461bcd60e51b815260206004820152602360248201527f5261696e626f7720526f61642063616e6e6f74206265207a65726f206164647260448201526265737360e81b60648201526084015b60405180910390fd5b600380546001600160a01b0319166001600160a01b039283161790558316620001245760405162461bcd60e51b815260206004820152601e60248201527f476174657761792063616e6e6f74206265207a65726f206164647265737300006044820152606401620000af565b6001600160a01b038216620001875760405162461bcd60e51b815260206004820152602260248201527f47617320736572766963652063616e6e6f74206265207a65726f206164647265604482015261737360f01b6064820152608401620000af565b6001600160a01b038116620001eb5760405162461bcd60e51b8152602060048201526024808201527f5061796d656e7420746f6b656e2063616e6e6f74206265207a65726f206164646044820152637265737360e01b6064820152608401620000af565b600480546001600160a01b03199081166001600160a01b0395861617909155600580546001600160a81b0319169385169390931790925560068054919093169116179055506200031e565b600180546001600160a01b0319169055620002518162000254565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114620002bc57600080fd5b919050565b60008060008060808587031215620002d857600080fd5b620002e385620002a4565b9350620002f360208601620002a4565b92506200030360408601620002a4565b91506200031360608601620002a4565b905092959194509250565b6123b7806200032e6000396000f3fe6080604052600436106101a55760003560e01c8063751e9a9c116100e1578063bea532ff1161008a578063dfdd8b9011610064578063dfdd8b901461049b578063e30c3978146104bb578063eb599a10146104d9578063f2fde38b146104f957600080fd5b8063bea532ff1461043b578063bfb5944a1461045b578063d883d2271461047b57600080fd5b80638da5cb5b116100bb5780638da5cb5b146103e857806390646b4a146104065780639e996a721461042657600080fd5b8063751e9a9c1461039e57806379ba5097146103be5780638456cb59146103d357600080fd5b8063429b62e51161014e5780636a22d8cc116101285780636a22d8cc146103295780636a326ab1146103495780636a93681714610369578063715018a61461038957600080fd5b8063429b62e5146102a45780635c975abb146102e45780635f95266f1461031457600080fd5b80633013ce291161017f5780633013ce291461024f5780633aeac4e11461026f5780633f4ba83a1461028f57600080fd5b8063116191b6146101b15780632763b8da146101ee5780632f622e6b1461022d57600080fd5b366101ac57005b600080fd5b3480156101bd57600080fd5b506004546101d1906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101fa57600080fd5b506005546102209074010000000000000000000000000000000000000000900460ff1681565b6040516101e59190611cc4565b34801561023957600080fd5b5061024d610248366004611d21565b610519565b005b34801561025b57600080fd5b506006546101d1906001600160a01b031681565b34801561027b57600080fd5b5061024d61028a366004611d43565b6105ce565b34801561029b57600080fd5b5061024d6106f0565b3480156102b057600080fd5b506102d46102bf366004611d21565b60076020526000908152604090205460ff1681565b60405190151581526020016101e5565b3480156102f057600080fd5b5060015474010000000000000000000000000000000000000000900460ff166102d4565b34801561032057600080fd5b5061024d610702565b34801561033557600080fd5b506005546101d1906001600160a01b031681565b34801561035557600080fd5b5061024d610364366004611d21565b6107d1565b34801561037557600080fd5b506003546101d1906001600160a01b031681565b34801561039557600080fd5b5061024d61088e565b3480156103aa57600080fd5b5061024d6103b9366004611d21565b6108a0565b3480156103ca57600080fd5b5061024d61094f565b3480156103df57600080fd5b5061024d6109dd565b3480156103f457600080fd5b506000546001600160a01b03166101d1565b34801561041257600080fd5b5061024d610421366004611d21565b6109ed565b34801561043257600080fd5b5061024d610a85565b34801561044757600080fd5b5061024d610456366004611d21565b610b51565b34801561046757600080fd5b5061024d610476366004611d21565b610c04565b34801561048757600080fd5b5061024d610496366004611dbf565b610cc2565b3480156104a757600080fd5b5061024d6104b6366004611d21565b610d55565b3480156104c757600080fd5b506001546001600160a01b03166101d1565b3480156104e557600080fd5b5061024d6104f4366004611e7d565b610e13565b34801561050557600080fd5b5061024d610514366004611d21565b610e46565b610521610ecf565b60405147906000906001600160a01b0384169083908381818185875af1925050503d806000811461056e576040519150601f19603f3d011682016040523d82523d6000602084013e610573565b606091505b50509050806105c95760405162461bcd60e51b815260206004820152601260248201527f556e61626c6520746f207769746864726177000000000000000000000000000060448201526064015b60405180910390fd5b505050565b6105d6610ecf565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610636573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065a9190611f2b565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152602482018390529192509083169063a9059cbb906044016020604051808303816000875af11580156106c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ea9190611f44565b50505050565b6106f8610ecf565b610700610f29565b565b61070a610ecf565b600060055474010000000000000000000000000000000000000000900460ff16600181111561073b5761073b611c95565b036107885760405162461bcd60e51b815260206004820152601f60248201527f466565732061726520616c7265616479207061696420696e204e41544956450060448201526064016105c0565b60058054600091907fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000835b0217905550565b6107d9610ecf565b6001600160a01b0381166108545760405162461bcd60e51b8152602060048201526024808201527f5061796d656e7420746f6b656e2063616e6e6f74206265207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016105c0565b600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b610896610ecf565b6107006000610f99565b6108a8610ecf565b6001600160a01b03811660009081526007602052604090205460ff166109105760405162461bcd60e51b815260206004820152601160248201527f41646d696e2069732064697361626c656400000000000000000000000000000060448201526064016105c0565b6001600160a01b0316600090815260076020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b60015433906001600160a01b031681146109d15760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e6572000000000000000000000000000000000000000000000060648201526084016105c0565b6109da81610f99565b50565b6109e5610ecf565b610700610fca565b6109f5610ecf565b6001600160a01b038116610a4b5760405162461bcd60e51b815260206004820152601e60248201527f476174657761792063616e6e6f74206265207a65726f2061646472657373000060448201526064016105c0565b600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b610a8d610ecf565b600160055474010000000000000000000000000000000000000000900460ff166001811115610abe57610abe611c95565b03610b0b5760405162461bcd60e51b815260206004820152601e60248201527f466565732061726520616c7265616479207061696420696e20544f4b454e000060448201526064016105c0565b60058054600191907fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000836107ca565b610b59610ecf565b6001600160a01b03811660009081526007602052604090205460ff1615610bc25760405162461bcd60e51b815260206004820152601060248201527f41646d696e20697320656e61626c65640000000000000000000000000000000060448201526064016105c0565b6001600160a01b0316600090815260076020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b610c0c610ecf565b6001600160a01b038116610c885760405162461bcd60e51b815260206004820152602360248201527f5261696e626f7720526f61642063616e6e6f74206265207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016105c0565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b610cca611039565b610cd2611090565b3360009081526007602052604090205460ff16610d315760405162461bcd60e51b815260206004820152600d60248201527f496e76616c69642061646d696e0000000000000000000000000000000000000060448201526064016105c0565b610d4188888888888888886110fb565b610d4b6001600255565b5050505050505050565b610d5d610ecf565b6001600160a01b038116610dd95760405162461bcd60e51b815260206004820152602260248201527f47617320736572766963652063616e6e6f74206265207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016105c0565b600580547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b610e1b611039565b610e23611090565b610e3387878733888888886110fb565b610e3d6001600255565b50505050505050565b610e4e610ecf565b600180546001600160a01b0383167fffffffffffffffffffffffff00000000000000000000000000000000000000009091168117909155610e976000546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6000546001600160a01b031633146107005760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105c0565b610f316118c1565b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690556109da8161192b565b610fd2611090565b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610f7c3390565b600280540361108a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105c0565b60028055565b60015474010000000000000000000000000000000000000000900460ff16156107005760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016105c0565b6001600160a01b0386166111775760405162461bcd60e51b815260206004820152602760248201527f4d6573736167652072656365697665722063616e6e6f74206265207a65726f2060448201527f616464726573730000000000000000000000000000000000000000000000000060648201526084016105c0565b6003546040517f6eb8011d0000000000000000000000000000000000000000000000000000000081526001600160a01b0390911690636eb8011d906111c890879087908a9088908890600401611f91565b600060405180830381600087803b1580156111e257600080fd5b505af11580156111f6573d6000803e3d6000fd5b5050505060008484878585604051602001611215959493929190611f91565b6040516020818303038152906040529050600061123a886001600160a01b0316611993565b9050600160055474010000000000000000000000000000000000000000900460ff16600181111561126d5761126d611c95565b036115cb576000806040518060400160405280601781526020017f6178656c61725f73656e6465722e746f6b656e5f666565000000000000000000815250905060008189896040516020016112c493929190611ff7565b60408051601f19818403018152908290526003547f96d436c00000000000000000000000000000000000000000000000000000000083529092506000916001600160a01b03909116906396d436c090611321908590600401612076565b600060405180830381865afa15801561133e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261136691908101906120b8565b90508051600003611402576003546040517f96d436c00000000000000000000000000000000000000000000000000000000081526001600160a01b03909116906396d436c0906113ba908690600401612076565b600060405180830381865afa1580156113d7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526113ff91908101906120b8565b90505b808060200190518101906114169190611f2b565b6006546005546040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b0391821660048201526024810184905292965016935063095ea7b3925060440190506020604051808303816000875af115801561148a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114ae9190611f44565b50600560009054906101000a90046001600160a01b03166001600160a01b031663fd09e3bd308d8d8688600660009054906101000a90046001600160a01b031688306040518963ffffffff1660e01b8152600401611513989796959493929190612165565b600060405180830381600087803b15801561152d57600080fd5b505af1158015611541573d6000803e3d6000fd5b5050600480546040517f1c92115f0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169350631c92115f9250611593918f918f9188918a91016121d2565b600060405180830381600087803b1580156115ad57600080fd5b505af11580156115c1573d6000803e3d6000fd5b5050505050611874565b6000806040518060400160405280601881526020017f6178656c61725f73656e6465722e6e61746976655f66656500000000000000008152509050600081898960405160200161161d93929190611ff7565b60408051601f19818403018152908290526003547f96d436c00000000000000000000000000000000000000000000000000000000083529092506000916001600160a01b03909116906396d436c09061167a908590600401612076565b600060405180830381865afa158015611697573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526116bf91908101906120b8565b9050805160000361175b576003546040517f96d436c00000000000000000000000000000000000000000000000000000000081526001600160a01b03909116906396d436c090611713908690600401612076565b600060405180830381865afa158015611730573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261175891908101906120b8565b90505b8080602001905181019061176f9190611f2b565b9350505050600560009054906101000a90046001600160a01b03166001600160a01b0316630c93e3bb82308e8e8789306040518863ffffffff1660e01b81526004016117c09695949392919061220c565b6000604051808303818588803b1580156117d957600080fd5b505af11580156117ed573d6000803e3d6000fd5b5050600480546040517f1c92115f0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169450631c92115f935061184092508f918f9188918a91016121d2565b600060405180830381600087803b15801561185a57600080fd5b505af115801561186e573d6000803e3d6000fd5b50505050505b7f3833c5a095fc44695fd6a35cdc408b7ab7b4c2cc334bba440bc8f4e7ef08083d8a8a8a89898c6040516118ad9695949392919061226d565b60405180910390a150505050505050505050565b60015474010000000000000000000000000000000000000000900460ff166107005760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016105c0565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604051606082811b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000001660208301529060009060340160408051808303601f190181528282018252601083527f303132333435363738396162636465660000000000000000000000000000000060208401528151602a808252606082019093529093506000916020820181803683370190505090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611a5c57611a5c6122bb565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611abf57611abf6122bb565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060005b6014811015611c8c57826004858381518110611b0f57611b0f6122bb565b016020015182517fff0000000000000000000000000000000000000000000000000000000000000090911690911c60f81c908110611b4f57611b4f6122bb565b01602001517fff000000000000000000000000000000000000000000000000000000000000001682611b82836002612319565b611b8d906002612336565b81518110611b9d57611b9d6122bb565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535082848281518110611bdf57611bdf6122bb565b602091010151815160f89190911c600f16908110611bff57611bff6122bb565b01602001517fff000000000000000000000000000000000000000000000000000000000000001682611c32836002612319565b611c3d906003612336565b81518110611c4d57611c4d6122bb565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611c8581612349565b9050611af1565b50949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6020810160028310611cff577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b80356001600160a01b0381168114611d1c57600080fd5b919050565b600060208284031215611d3357600080fd5b611d3c82611d05565b9392505050565b60008060408385031215611d5657600080fd5b611d5f83611d05565b9150611d6d60208401611d05565b90509250929050565b60008083601f840112611d8857600080fd5b50813567ffffffffffffffff811115611da057600080fd5b602083019150836020828501011115611db857600080fd5b9250929050565b60008060008060008060008060a0898b031215611ddb57600080fd5b883567ffffffffffffffff80821115611df357600080fd5b611dff8c838d01611d76565b909a509850889150611e1360208c01611d05565b9750611e2160408c01611d05565b965060608b0135915080821115611e3757600080fd5b611e438c838d01611d76565b909650945060808b0135915080821115611e5c57600080fd5b50611e698b828c01611d76565b999c989b5096995094979396929594505050565b60008060008060008060006080888a031215611e9857600080fd5b873567ffffffffffffffff80821115611eb057600080fd5b611ebc8b838c01611d76565b9099509750879150611ed060208b01611d05565b965060408a0135915080821115611ee657600080fd5b611ef28b838c01611d76565b909650945060608a0135915080821115611f0b57600080fd5b50611f188a828b01611d76565b989b979a50959850939692959293505050565b600060208284031215611f3d57600080fd5b5051919050565b600060208284031215611f5657600080fd5b81518015158114611d3c57600080fd5b818352818160208501375060006020828401015260006020601f19601f840116840101905092915050565b606081526000611fa5606083018789611f66565b6001600160a01b03861660208401528281036040840152611fc7818587611f66565b98975050505050505050565b60005b83811015611fee578181015183820152602001611fd6565b50506000910152565b60008451612009818460208901611fd3565b7f5f00000000000000000000000000000000000000000000000000000000000000908301908152838560018301376000930160010192835250909392505050565b60008151808452612062816020860160208601611fd3565b601f01601f19169290920160200192915050565b602081526000611d3c602083018461204a565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000602082840312156120ca57600080fd5b815167ffffffffffffffff808211156120e257600080fd5b818401915084601f8301126120f657600080fd5b81518181111561210857612108612089565b604051601f8201601f19908116603f0116810190838211818310171561213057612130612089565b8160405282815287602084870101111561214957600080fd5b61215a836020830160208801611fd3565b979650505050505050565b60006001600160a01b03808b16835260e0602084015261218960e084018a8c611f66565b838103604085015261219b818a61204a565b905083810360608501526121af818961204a565b96821660808501525060a083019490945250911660c09091015295945050505050565b6060815260006121e6606083018688611f66565b82810360208401526121f8818661204a565b9050828103604084015261215a818561204a565b60006001600160a01b03808916835260a0602084015261223060a08401888a611f66565b8381036040850152612242818861204a565b90508381036060850152612256818761204a565b925050808416608084015250979650505050505050565b60808152600061228160808301888a611f66565b6001600160a01b03808816602085015283820360408501526122a4828789611f66565b925080851660608501525050979650505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082028115828204841417612330576123306122ea565b92915050565b80820180821115612330576123306122ea565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361237a5761237a6122ea565b506001019056fea2646970667358221220365344fbe9aa49571c848ca00e5aa7de9e68d803001700fa1f7e16862f0763e964736f6c634300081300330000000000000000000000009412316dc6c882ffc4fa1a01413b0c701b147b9e000000000000000000000000e432150cce91c13a887f7d836923d5597add8e310000000000000000000000002d5d7d31f671f86c782533cc367f14109a082712000000000000000000000000eb466342c4d449bc9f53a865d5cb90586f405215

Deployed Bytecode

0x6080604052600436106101a55760003560e01c8063751e9a9c116100e1578063bea532ff1161008a578063dfdd8b9011610064578063dfdd8b901461049b578063e30c3978146104bb578063eb599a10146104d9578063f2fde38b146104f957600080fd5b8063bea532ff1461043b578063bfb5944a1461045b578063d883d2271461047b57600080fd5b80638da5cb5b116100bb5780638da5cb5b146103e857806390646b4a146104065780639e996a721461042657600080fd5b8063751e9a9c1461039e57806379ba5097146103be5780638456cb59146103d357600080fd5b8063429b62e51161014e5780636a22d8cc116101285780636a22d8cc146103295780636a326ab1146103495780636a93681714610369578063715018a61461038957600080fd5b8063429b62e5146102a45780635c975abb146102e45780635f95266f1461031457600080fd5b80633013ce291161017f5780633013ce291461024f5780633aeac4e11461026f5780633f4ba83a1461028f57600080fd5b8063116191b6146101b15780632763b8da146101ee5780632f622e6b1461022d57600080fd5b366101ac57005b600080fd5b3480156101bd57600080fd5b506004546101d1906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101fa57600080fd5b506005546102209074010000000000000000000000000000000000000000900460ff1681565b6040516101e59190611cc4565b34801561023957600080fd5b5061024d610248366004611d21565b610519565b005b34801561025b57600080fd5b506006546101d1906001600160a01b031681565b34801561027b57600080fd5b5061024d61028a366004611d43565b6105ce565b34801561029b57600080fd5b5061024d6106f0565b3480156102b057600080fd5b506102d46102bf366004611d21565b60076020526000908152604090205460ff1681565b60405190151581526020016101e5565b3480156102f057600080fd5b5060015474010000000000000000000000000000000000000000900460ff166102d4565b34801561032057600080fd5b5061024d610702565b34801561033557600080fd5b506005546101d1906001600160a01b031681565b34801561035557600080fd5b5061024d610364366004611d21565b6107d1565b34801561037557600080fd5b506003546101d1906001600160a01b031681565b34801561039557600080fd5b5061024d61088e565b3480156103aa57600080fd5b5061024d6103b9366004611d21565b6108a0565b3480156103ca57600080fd5b5061024d61094f565b3480156103df57600080fd5b5061024d6109dd565b3480156103f457600080fd5b506000546001600160a01b03166101d1565b34801561041257600080fd5b5061024d610421366004611d21565b6109ed565b34801561043257600080fd5b5061024d610a85565b34801561044757600080fd5b5061024d610456366004611d21565b610b51565b34801561046757600080fd5b5061024d610476366004611d21565b610c04565b34801561048757600080fd5b5061024d610496366004611dbf565b610cc2565b3480156104a757600080fd5b5061024d6104b6366004611d21565b610d55565b3480156104c757600080fd5b506001546001600160a01b03166101d1565b3480156104e557600080fd5b5061024d6104f4366004611e7d565b610e13565b34801561050557600080fd5b5061024d610514366004611d21565b610e46565b610521610ecf565b60405147906000906001600160a01b0384169083908381818185875af1925050503d806000811461056e576040519150601f19603f3d011682016040523d82523d6000602084013e610573565b606091505b50509050806105c95760405162461bcd60e51b815260206004820152601260248201527f556e61626c6520746f207769746864726177000000000000000000000000000060448201526064015b60405180910390fd5b505050565b6105d6610ecf565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610636573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065a9190611f2b565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152602482018390529192509083169063a9059cbb906044016020604051808303816000875af11580156106c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ea9190611f44565b50505050565b6106f8610ecf565b610700610f29565b565b61070a610ecf565b600060055474010000000000000000000000000000000000000000900460ff16600181111561073b5761073b611c95565b036107885760405162461bcd60e51b815260206004820152601f60248201527f466565732061726520616c7265616479207061696420696e204e41544956450060448201526064016105c0565b60058054600091907fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000835b0217905550565b6107d9610ecf565b6001600160a01b0381166108545760405162461bcd60e51b8152602060048201526024808201527f5061796d656e7420746f6b656e2063616e6e6f74206265207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016105c0565b600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b610896610ecf565b6107006000610f99565b6108a8610ecf565b6001600160a01b03811660009081526007602052604090205460ff166109105760405162461bcd60e51b815260206004820152601160248201527f41646d696e2069732064697361626c656400000000000000000000000000000060448201526064016105c0565b6001600160a01b0316600090815260076020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b60015433906001600160a01b031681146109d15760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e6572000000000000000000000000000000000000000000000060648201526084016105c0565b6109da81610f99565b50565b6109e5610ecf565b610700610fca565b6109f5610ecf565b6001600160a01b038116610a4b5760405162461bcd60e51b815260206004820152601e60248201527f476174657761792063616e6e6f74206265207a65726f2061646472657373000060448201526064016105c0565b600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b610a8d610ecf565b600160055474010000000000000000000000000000000000000000900460ff166001811115610abe57610abe611c95565b03610b0b5760405162461bcd60e51b815260206004820152601e60248201527f466565732061726520616c7265616479207061696420696e20544f4b454e000060448201526064016105c0565b60058054600191907fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000836107ca565b610b59610ecf565b6001600160a01b03811660009081526007602052604090205460ff1615610bc25760405162461bcd60e51b815260206004820152601060248201527f41646d696e20697320656e61626c65640000000000000000000000000000000060448201526064016105c0565b6001600160a01b0316600090815260076020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b610c0c610ecf565b6001600160a01b038116610c885760405162461bcd60e51b815260206004820152602360248201527f5261696e626f7720526f61642063616e6e6f74206265207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016105c0565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b610cca611039565b610cd2611090565b3360009081526007602052604090205460ff16610d315760405162461bcd60e51b815260206004820152600d60248201527f496e76616c69642061646d696e0000000000000000000000000000000000000060448201526064016105c0565b610d4188888888888888886110fb565b610d4b6001600255565b5050505050505050565b610d5d610ecf565b6001600160a01b038116610dd95760405162461bcd60e51b815260206004820152602260248201527f47617320736572766963652063616e6e6f74206265207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016105c0565b600580547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b610e1b611039565b610e23611090565b610e3387878733888888886110fb565b610e3d6001600255565b50505050505050565b610e4e610ecf565b600180546001600160a01b0383167fffffffffffffffffffffffff00000000000000000000000000000000000000009091168117909155610e976000546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6000546001600160a01b031633146107005760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105c0565b610f316118c1565b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690556109da8161192b565b610fd2611090565b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610f7c3390565b600280540361108a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105c0565b60028055565b60015474010000000000000000000000000000000000000000900460ff16156107005760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016105c0565b6001600160a01b0386166111775760405162461bcd60e51b815260206004820152602760248201527f4d6573736167652072656365697665722063616e6e6f74206265207a65726f2060448201527f616464726573730000000000000000000000000000000000000000000000000060648201526084016105c0565b6003546040517f6eb8011d0000000000000000000000000000000000000000000000000000000081526001600160a01b0390911690636eb8011d906111c890879087908a9088908890600401611f91565b600060405180830381600087803b1580156111e257600080fd5b505af11580156111f6573d6000803e3d6000fd5b5050505060008484878585604051602001611215959493929190611f91565b6040516020818303038152906040529050600061123a886001600160a01b0316611993565b9050600160055474010000000000000000000000000000000000000000900460ff16600181111561126d5761126d611c95565b036115cb576000806040518060400160405280601781526020017f6178656c61725f73656e6465722e746f6b656e5f666565000000000000000000815250905060008189896040516020016112c493929190611ff7565b60408051601f19818403018152908290526003547f96d436c00000000000000000000000000000000000000000000000000000000083529092506000916001600160a01b03909116906396d436c090611321908590600401612076565b600060405180830381865afa15801561133e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261136691908101906120b8565b90508051600003611402576003546040517f96d436c00000000000000000000000000000000000000000000000000000000081526001600160a01b03909116906396d436c0906113ba908690600401612076565b600060405180830381865afa1580156113d7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526113ff91908101906120b8565b90505b808060200190518101906114169190611f2b565b6006546005546040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b0391821660048201526024810184905292965016935063095ea7b3925060440190506020604051808303816000875af115801561148a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114ae9190611f44565b50600560009054906101000a90046001600160a01b03166001600160a01b031663fd09e3bd308d8d8688600660009054906101000a90046001600160a01b031688306040518963ffffffff1660e01b8152600401611513989796959493929190612165565b600060405180830381600087803b15801561152d57600080fd5b505af1158015611541573d6000803e3d6000fd5b5050600480546040517f1c92115f0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169350631c92115f9250611593918f918f9188918a91016121d2565b600060405180830381600087803b1580156115ad57600080fd5b505af11580156115c1573d6000803e3d6000fd5b5050505050611874565b6000806040518060400160405280601881526020017f6178656c61725f73656e6465722e6e61746976655f66656500000000000000008152509050600081898960405160200161161d93929190611ff7565b60408051601f19818403018152908290526003547f96d436c00000000000000000000000000000000000000000000000000000000083529092506000916001600160a01b03909116906396d436c09061167a908590600401612076565b600060405180830381865afa158015611697573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526116bf91908101906120b8565b9050805160000361175b576003546040517f96d436c00000000000000000000000000000000000000000000000000000000081526001600160a01b03909116906396d436c090611713908690600401612076565b600060405180830381865afa158015611730573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261175891908101906120b8565b90505b8080602001905181019061176f9190611f2b565b9350505050600560009054906101000a90046001600160a01b03166001600160a01b0316630c93e3bb82308e8e8789306040518863ffffffff1660e01b81526004016117c09695949392919061220c565b6000604051808303818588803b1580156117d957600080fd5b505af11580156117ed573d6000803e3d6000fd5b5050600480546040517f1c92115f0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169450631c92115f935061184092508f918f9188918a91016121d2565b600060405180830381600087803b15801561185a57600080fd5b505af115801561186e573d6000803e3d6000fd5b50505050505b7f3833c5a095fc44695fd6a35cdc408b7ab7b4c2cc334bba440bc8f4e7ef08083d8a8a8a89898c6040516118ad9695949392919061226d565b60405180910390a150505050505050505050565b60015474010000000000000000000000000000000000000000900460ff166107005760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016105c0565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604051606082811b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000001660208301529060009060340160408051808303601f190181528282018252601083527f303132333435363738396162636465660000000000000000000000000000000060208401528151602a808252606082019093529093506000916020820181803683370190505090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611a5c57611a5c6122bb565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611abf57611abf6122bb565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060005b6014811015611c8c57826004858381518110611b0f57611b0f6122bb565b016020015182517fff0000000000000000000000000000000000000000000000000000000000000090911690911c60f81c908110611b4f57611b4f6122bb565b01602001517fff000000000000000000000000000000000000000000000000000000000000001682611b82836002612319565b611b8d906002612336565b81518110611b9d57611b9d6122bb565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535082848281518110611bdf57611bdf6122bb565b602091010151815160f89190911c600f16908110611bff57611bff6122bb565b01602001517fff000000000000000000000000000000000000000000000000000000000000001682611c32836002612319565b611c3d906003612336565b81518110611c4d57611c4d6122bb565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611c8581612349565b9050611af1565b50949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6020810160028310611cff577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b80356001600160a01b0381168114611d1c57600080fd5b919050565b600060208284031215611d3357600080fd5b611d3c82611d05565b9392505050565b60008060408385031215611d5657600080fd5b611d5f83611d05565b9150611d6d60208401611d05565b90509250929050565b60008083601f840112611d8857600080fd5b50813567ffffffffffffffff811115611da057600080fd5b602083019150836020828501011115611db857600080fd5b9250929050565b60008060008060008060008060a0898b031215611ddb57600080fd5b883567ffffffffffffffff80821115611df357600080fd5b611dff8c838d01611d76565b909a509850889150611e1360208c01611d05565b9750611e2160408c01611d05565b965060608b0135915080821115611e3757600080fd5b611e438c838d01611d76565b909650945060808b0135915080821115611e5c57600080fd5b50611e698b828c01611d76565b999c989b5096995094979396929594505050565b60008060008060008060006080888a031215611e9857600080fd5b873567ffffffffffffffff80821115611eb057600080fd5b611ebc8b838c01611d76565b9099509750879150611ed060208b01611d05565b965060408a0135915080821115611ee657600080fd5b611ef28b838c01611d76565b909650945060608a0135915080821115611f0b57600080fd5b50611f188a828b01611d76565b989b979a50959850939692959293505050565b600060208284031215611f3d57600080fd5b5051919050565b600060208284031215611f5657600080fd5b81518015158114611d3c57600080fd5b818352818160208501375060006020828401015260006020601f19601f840116840101905092915050565b606081526000611fa5606083018789611f66565b6001600160a01b03861660208401528281036040840152611fc7818587611f66565b98975050505050505050565b60005b83811015611fee578181015183820152602001611fd6565b50506000910152565b60008451612009818460208901611fd3565b7f5f00000000000000000000000000000000000000000000000000000000000000908301908152838560018301376000930160010192835250909392505050565b60008151808452612062816020860160208601611fd3565b601f01601f19169290920160200192915050565b602081526000611d3c602083018461204a565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000602082840312156120ca57600080fd5b815167ffffffffffffffff808211156120e257600080fd5b818401915084601f8301126120f657600080fd5b81518181111561210857612108612089565b604051601f8201601f19908116603f0116810190838211818310171561213057612130612089565b8160405282815287602084870101111561214957600080fd5b61215a836020830160208801611fd3565b979650505050505050565b60006001600160a01b03808b16835260e0602084015261218960e084018a8c611f66565b838103604085015261219b818a61204a565b905083810360608501526121af818961204a565b96821660808501525060a083019490945250911660c09091015295945050505050565b6060815260006121e6606083018688611f66565b82810360208401526121f8818661204a565b9050828103604084015261215a818561204a565b60006001600160a01b03808916835260a0602084015261223060a08401888a611f66565b8381036040850152612242818861204a565b90508381036060850152612256818761204a565b925050808416608084015250979650505050505050565b60808152600061228160808301888a611f66565b6001600160a01b03808816602085015283820360408501526122a4828789611f66565b925080851660608501525050979650505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082028115828204841417612330576123306122ea565b92915050565b80820180821115612330576123306122ea565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361237a5761237a6122ea565b506001019056fea2646970667358221220365344fbe9aa49571c848ca00e5aa7de9e68d803001700fa1f7e16862f0763e964736f6c63430008130033

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

0000000000000000000000009412316dc6c882ffc4fa1a01413b0c701b147b9e000000000000000000000000e432150cce91c13a887f7d836923d5597add8e310000000000000000000000002d5d7d31f671f86c782533cc367f14109a082712000000000000000000000000eb466342c4d449bc9f53a865d5cb90586f405215

-----Decoded View---------------
Arg [0] : _rainbowRoad (address): 0x9412316DC6C882ffc4FA1A01413b0C701b147B9E
Arg [1] : _gateway (address): 0xe432150cce91c13a887f7D836923d5597adD8E31
Arg [2] : _gasService (address): 0x2d5d7d31F671F86C782533cc367F14109a082712
Arg [3] : _paymentToken (address): 0xEB466342C4d449BC9f53A865D5Cb90586f405215

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000009412316dc6c882ffc4fa1a01413b0c701b147b9e
Arg [1] : 000000000000000000000000e432150cce91c13a887f7d836923d5597add8e31
Arg [2] : 0000000000000000000000002d5d7d31f671f86c782533cc367f14109a082712
Arg [3] : 000000000000000000000000eb466342c4d449bc9f53a865d5cb90586f405215


Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.