MATIC Price: $0.68 (-0.07%)
Gas: 67 GWei
 

Overview

Max Total Supply

1,000,000,000 OSEA

Holders

9,746

Total Transfers

-

Market

Price

$0.00 @ 0.000000 MATIC

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
OmniseaBaseToken

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion
File 1 of 18 : OmniseaBaseToken.sol
pragma solidity ^0.8.7;

import "../oft/extension/BasedOFT.sol";

contract OmniseaBaseToken is BasedOFT {
    constructor(address _layerZeroEndpoint) BasedOFT("Omnisea", "OSEA", _layerZeroEndpoint) {
        _mint(_msgSender(), (1000 * 10**6 * 10**18));
    }
}

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

pragma solidity ^0.8.0;

import "../OFT.sol";

contract BasedOFT is OFT {
    constructor(string memory _name, string memory _symbol, address _lzEndpoint) OFT(_name, _symbol, _lzEndpoint) {}

    function circulatingSupply() public view virtual override returns (uint) {
        unchecked {
            return totalSupply() - balanceOf(address(this));
        }
    }

    function _debitFrom(address _from, uint16, bytes memory, uint _amount) internal virtual override {
        address spender = _msgSender();
        if (_from != spender) {
            uint allowedSpend = allowance(_from, spender);
            require (allowedSpend >= _amount);
        }
        _transfer(_from, address(this), _amount);
    }

    function _creditTo(uint16, address _toAddress, uint _amount) internal virtual override {
        _transfer(address(this), _toAddress, _amount);
    }
}

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

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/introspection/IERC165.sol";
import "./OFTCore.sol";
import "./IOFT.sol";

// override decimal() function is needed
contract OFT is OFTCore, ERC20, IOFT {
    constructor(string memory _name, string memory _symbol, address _lzEndpoint) ERC20(_name, _symbol) OFTCore(_lzEndpoint) {}

    function supportsInterface(bytes4 interfaceId) public view virtual override(OFTCore, IERC165) returns (bool) {
        return interfaceId == type(IOFT).interfaceId || interfaceId == type(IERC20).interfaceId || super.supportsInterface(interfaceId);
    }

    function circulatingSupply() public view virtual override returns (uint) {
        return totalSupply();
    }

    function _debitFrom(address _from, uint16, bytes memory, uint _amount) internal virtual override {
        address spender = _msgSender();
        if (_from != spender) {
            uint allowedSpend = allowance(_from, spender);
            require (allowedSpend >= _amount);
        }
        _burn(_from, _amount);
    }

    function _creditTo(uint16, address _toAddress, uint _amount) internal virtual override {
        _mint(_toAddress, _amount);
    }
}

File 4 of 18 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../../lzApp/NonblockingLzApp.sol";
import "./IOFTCore.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

abstract contract OFTCore is NonblockingLzApp, ERC165, IOFTCore {
    constructor(address _lzEndpoint) NonblockingLzApp(_lzEndpoint) {}

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return interfaceId == type(IOFTCore).interfaceId || super.supportsInterface(interfaceId);
    }

    function estimateSendFee(uint16 _dstChainId, bytes memory _toAddress, uint _amount, bool _useZro, bytes memory _adapterParams) public view virtual override returns (uint nativeFee, uint zroFee) {
        // mock the payload for send()
        bytes memory payload = abi.encode(_toAddress, _amount);
        return lzEndpoint.estimateFees(_dstChainId, address(this), payload, _useZro, _adapterParams);
    }

    function sendFrom(address _from, uint16 _dstChainId, bytes memory _toAddress, uint _amount, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterParams) public payable virtual override {
        _send(_from, _dstChainId, _toAddress, _amount, _refundAddress, _zroPaymentAddress, _adapterParams);
    }

    function _nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual override {
        // decode and load the toAddress
        (bytes memory toAddressBytes, uint amount) = abi.decode(_payload, (bytes, uint));
        address toAddress;
        assembly {
            toAddress := mload(add(toAddressBytes, 20))
        }

        _creditTo(_srcChainId, toAddress, amount);

        emit ReceiveFromChain(_srcChainId, _srcAddress, toAddress, amount, _nonce);
    }

    function _send(address _from, uint16 _dstChainId, bytes memory _toAddress, uint _amount, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterParams) internal virtual {
        _debitFrom(_from, _dstChainId, _toAddress, _amount);

        bytes memory payload = abi.encode(_toAddress, _amount);
        _lzSend(_dstChainId, payload, _refundAddress, _zroPaymentAddress, _adapterParams);

        uint64 nonce = lzEndpoint.getOutboundNonce(_dstChainId, address(this));
        emit SendToChain(_from, _dstChainId, _toAddress, _amount, nonce);
    }

    function _debitFrom(address _from, uint16 _dstChainId, bytes memory _toAddress, uint _amount) internal virtual;

    function _creditTo(uint16 _srcChainId, address _toAddress, uint _amount) internal virtual;
}

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

pragma solidity ^0.8.0;

import "./IOFTCore.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

/**
 * @dev Interface of the OFT standard
 */
interface IOFT is IOFTCore, IERC20 {

}

File 8 of 18 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 9 of 18 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 10 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 11 of 18 : NonblockingLzApp.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./LzApp.sol";

/*
 * the default LayerZero messaging behaviour is blocking, i.e. any failed message will block the channel
 * this abstract class try-catch all fail messages and store locally for future retry. hence, non-blocking
 * NOTE: if the srcAddress is not configured properly, it will still block the message pathway from (srcChainId, srcAddress)
 */
abstract contract NonblockingLzApp is LzApp {
    constructor(address _endpoint) LzApp(_endpoint) {}

    mapping(uint16 => mapping(bytes => mapping(uint64 => bytes32))) public failedMessages;

    event MessageFailed(uint16 _srcChainId, bytes _srcAddress, uint64 _nonce, bytes _payload);

    // overriding the virtual function in LzReceiver
    function _blockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual override {
        // try-catch all errors/exceptions
        try this.nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload) {
            // do nothing
        } catch {
            // error / exception
            failedMessages[_srcChainId][_srcAddress][_nonce] = keccak256(_payload);
            emit MessageFailed(_srcChainId, _srcAddress, _nonce, _payload);
        }
    }

    function nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) public virtual {
        // only internal transaction
        require(_msgSender() == address(this), "NonblockingLzApp: caller must be LzApp");
        _nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload);
    }

    //@notice override this function
    function _nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual;

    function retryMessage(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) public payable virtual {
        // assert there is message to retry
        bytes32 payloadHash = failedMessages[_srcChainId][_srcAddress][_nonce];
        require(payloadHash != bytes32(0), "NonblockingLzApp: no stored message");
        require(keccak256(_payload) == payloadHash, "NonblockingLzApp: invalid payload");
        // clear the stored message
        failedMessages[_srcChainId][_srcAddress][_nonce] = bytes32(0);
        // execute the message. revert if it fails again
        _nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload);
    }
}

File 12 of 18 : IOFTCore.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

/**
 * @dev Interface of the IOFT core standard
 */
interface IOFTCore is IERC165 {
    /**
     * @dev estimate send token `_tokenId` to (`_dstChainId`, `_toAddress`)
     * _dstChainId - L0 defined chain id to send tokens too
     * _toAddress - dynamic bytes array which contains the address to whom you are sending tokens to on the dstChain
     * _amount - amount of the tokens to transfer
     * _useZro - indicates to use zro to pay L0 fees
     * _adapterParam - flexible bytes array to indicate messaging adapter services in L0
     */
    function estimateSendFee(uint16 _dstChainId, bytes calldata _toAddress, uint _amount, bool _useZro, bytes calldata _adapterParams) external view returns (uint nativeFee, uint zroFee);

    /**
     * @dev send `_amount` amount of token to (`_dstChainId`, `_toAddress`) from `_from`
     * `_from` the owner of token
     * `_dstChainId` the destination chain identifier
     * `_toAddress` can be any size depending on the `dstChainId`.
     * `_amount` the quantity of tokens in wei
     * `_refundAddress` the address LayerZero refunds if too much message fee is sent
     * `_zroPaymentAddress` set to address(0x0) if not paying in ZRO (LayerZero Token)
     * `_adapterParams` is a flexible bytes array to indicate messaging adapter services
     */
    function sendFrom(address _from, uint16 _dstChainId, bytes calldata _toAddress, uint _amount, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams) external payable;

    /**
     * @dev returns the circulating amount of tokens on current chain
     */
    function circulatingSupply() external view returns (uint);

    /**
     * @dev Emitted when `_amount` tokens are moved from the `_sender` to (`_dstChainId`, `_toAddress`)
     * `_nonce` is the outbound nonce
     */
    event SendToChain(address indexed _sender, uint16 indexed _dstChainId, bytes indexed _toAddress, uint _amount, uint64 _nonce);

    /**
     * @dev Emitted when `_amount` tokens are received from `_srcChainId` into the `_toAddress` on the local chain.
     * `_nonce` is the inbound nonce.
     */
    event ReceiveFromChain(uint16 indexed _srcChainId, bytes indexed _srcAddress, address indexed _toAddress, uint _amount, uint64 _nonce);
}

File 13 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 14 of 18 : LzApp.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "../interfaces/ILayerZeroReceiver.sol";
import "../interfaces/ILayerZeroUserApplicationConfig.sol";
import "../interfaces/ILayerZeroEndpoint.sol";

/*
 * a generic LzReceiver implementation
 */
abstract contract LzApp is Ownable, ILayerZeroReceiver, ILayerZeroUserApplicationConfig {
    ILayerZeroEndpoint public immutable lzEndpoint;

    mapping(uint16 => bytes) public trustedRemoteLookup;

    event SetTrustedRemote(uint16 _srcChainId, bytes _srcAddress);

    constructor(address _endpoint) {
        lzEndpoint = ILayerZeroEndpoint(_endpoint);
    }

    function lzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) public virtual override {
        // lzReceive must be called by the endpoint for security
        require(_msgSender() == address(lzEndpoint), "LzApp: invalid endpoint caller");

        bytes memory trustedRemote = trustedRemoteLookup[_srcChainId];
        // if will still block the message pathway from (srcChainId, srcAddress). should not receive message from untrusted remote.
        require(_srcAddress.length == trustedRemote.length && keccak256(_srcAddress) == keccak256(trustedRemote), "LzApp: invalid source sending contract");

        _blockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload);
    }

    // abstract function - the default behaviour of LayerZero is blocking. See: NonblockingLzApp if you dont need to enforce ordered messaging
    function _blockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual;

    function _lzSend(uint16 _dstChainId, bytes memory _payload, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterParams) internal virtual {
        bytes memory trustedRemote = trustedRemoteLookup[_dstChainId];
        require(trustedRemote.length != 0, "LzApp: destination chain is not a trusted source");
        lzEndpoint.send{value: msg.value}(_dstChainId, trustedRemote, _payload, _refundAddress, _zroPaymentAddress, _adapterParams);
    }

    //---------------------------UserApplication config----------------------------------------
    function getConfig(uint16 _version, uint16 _chainId, address, uint _configType) external view returns (bytes memory) {
        return lzEndpoint.getConfig(_version, _chainId, address(this), _configType);
    }

    // generic config for LayerZero user Application
    function setConfig(uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config) external override onlyOwner {
        lzEndpoint.setConfig(_version, _chainId, _configType, _config);
    }

    function setSendVersion(uint16 _version) external override onlyOwner {
        lzEndpoint.setSendVersion(_version);
    }

    function setReceiveVersion(uint16 _version) external override onlyOwner {
        lzEndpoint.setReceiveVersion(_version);
    }

    function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external override onlyOwner {
        lzEndpoint.forceResumeReceive(_srcChainId, _srcAddress);
    }

    // allow owner to set it multiple times.
    function setTrustedRemote(uint16 _srcChainId, bytes calldata _srcAddress) external onlyOwner {
        trustedRemoteLookup[_srcChainId] = _srcAddress;
        emit SetTrustedRemote(_srcChainId, _srcAddress);
    }

    //--------------------------- VIEW FUNCTION ----------------------------------------

    function isTrustedRemote(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool) {
        bytes memory trustedSource = trustedRemoteLookup[_srcChainId];
        return keccak256(trustedSource) == keccak256(_srcAddress);
    }
}

File 15 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing 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 16 of 18 : ILayerZeroReceiver.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.5.0;

interface ILayerZeroReceiver {
    // @notice LayerZero endpoint will invoke this function to deliver the message on the destination
    // @param _srcChainId - the source endpoint identifier
    // @param _srcAddress - the source sending contract address from the source chain
    // @param _nonce - the ordered message nonce
    // @param _payload - the signed payload is the UA bytes has encoded to be sent
    function lzReceive(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) external;
}

File 17 of 18 : ILayerZeroUserApplicationConfig.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.5.0;

interface ILayerZeroUserApplicationConfig {
    // @notice set the configuration of the LayerZero messaging library of the specified version
    // @param _version - messaging library version
    // @param _chainId - the chainId for the pending config change
    // @param _configType - type of configuration. every messaging library has its own convention.
    // @param _config - configuration in the bytes. can encode arbitrary content.
    function setConfig(uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config) external;

    // @notice set the send() LayerZero messaging library version to _version
    // @param _version - new messaging library version
    function setSendVersion(uint16 _version) external;

    // @notice set the lzReceive() LayerZero messaging library version to _version
    // @param _version - new messaging library version
    function setReceiveVersion(uint16 _version) external;

    // @notice Only when the UA needs to resume the message flow in blocking mode and clear the stored payload
    // @param _srcChainId - the chainId of the source chain
    // @param _srcAddress - the contract address of the source contract at the source chain
    function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external;
}

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

pragma solidity >=0.5.0;

import "./ILayerZeroUserApplicationConfig.sol";

interface ILayerZeroEndpoint is ILayerZeroUserApplicationConfig {
    // @notice send a LayerZero message to the specified address at a LayerZero endpoint.
    // @param _dstChainId - the destination chain identifier
    // @param _destination - the address on destination chain (in bytes). address length/format may vary by chains
    // @param _payload - a custom bytes payload to send to the destination contract
    // @param _refundAddress - if the source transaction is cheaper than the amount of value passed, refund the additional amount to this address
    // @param _zroPaymentAddress - the address of the ZRO token holder who would pay for the transaction
    // @param _adapterParams - parameters for custom functionality. e.g. receive airdropped native gas from the relayer on destination
    function send(uint16 _dstChainId, bytes calldata _destination, bytes calldata _payload, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams) external payable;

    // @notice used by the messaging library to publish verified payload
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source contract (as bytes) at the source chain
    // @param _dstAddress - the address on destination chain
    // @param _nonce - the unbound message ordering nonce
    // @param _gasLimit - the gas limit for external contract execution
    // @param _payload - verified payload to send to the destination contract
    function receivePayload(uint16 _srcChainId, bytes calldata _srcAddress, address _dstAddress, uint64 _nonce, uint _gasLimit, bytes calldata _payload) external;

    // @notice get the inboundNonce of a lzApp from a source chain which could be EVM or non-EVM chain
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source chain contract address
    function getInboundNonce(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (uint64);

    // @notice get the outboundNonce from this source chain which, consequently, is always an EVM
    // @param _srcAddress - the source chain contract address
    function getOutboundNonce(uint16 _dstChainId, address _srcAddress) external view returns (uint64);

    // @notice gets a quote in source native gas, for the amount that send() requires to pay for message delivery
    // @param _dstChainId - the destination chain identifier
    // @param _userApplication - the user app address on this EVM chain
    // @param _payload - the custom message to send over LayerZero
    // @param _payInZRO - if false, user app pays the protocol fee in native token
    // @param _adapterParam - parameters for the adapter service, e.g. send some dust native token to dstChain
    function estimateFees(uint16 _dstChainId, address _userApplication, bytes calldata _payload, bool _payInZRO, bytes calldata _adapterParam) external view returns (uint nativeFee, uint zroFee);

    // @notice get this Endpoint's immutable source identifier
    function getChainId() external view returns (uint16);

    // @notice the interface to retry failed message on this Endpoint destination
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source chain contract address
    // @param _payload - the payload to be retried
    function retryPayload(uint16 _srcChainId, bytes calldata _srcAddress, bytes calldata _payload) external;

    // @notice query if any STORED payload (message blocking) at the endpoint.
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source chain contract address
    function hasStoredPayload(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool);

    // @notice query if the _libraryAddress is valid for sending msgs.
    // @param _userApplication - the user app address on this EVM chain
    function getSendLibraryAddress(address _userApplication) external view returns (address);

    // @notice query if the _libraryAddress is valid for receiving msgs.
    // @param _userApplication - the user app address on this EVM chain
    function getReceiveLibraryAddress(address _userApplication) external view returns (address);

    // @notice query if the non-reentrancy guard for send() is on
    // @return true if the guard is on. false otherwise
    function isSendingPayload() external view returns (bool);

    // @notice query if the non-reentrancy guard for receive() is on
    // @return true if the guard is on. false otherwise
    function isReceivingPayload() external view returns (bool);

    // @notice get the configuration of the LayerZero messaging library of the specified version
    // @param _version - messaging library version
    // @param _chainId - the chainId for the pending config change
    // @param _userApplication - the contract address of the user application
    // @param _configType - type of configuration. every messaging library has its own convention.
    function getConfig(uint16 _version, uint16 _chainId, address _userApplication, uint _configType) external view returns (bytes memory);

    // @notice get the send() LayerZero messaging library version
    // @param _userApplication - the contract address of the user application
    function getSendVersion(address _userApplication) external view returns (uint16);

    // @notice get the lzReceive() LayerZero messaging library version
    // @param _userApplication - the contract address of the user application
    function getReceiveVersion(address _userApplication) external view returns (uint16);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_layerZeroEndpoint","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"},{"indexed":false,"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"MessageFailed","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":true,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":true,"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"indexed":true,"internalType":"address","name":"_toAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"}],"name":"ReceiveFromChain","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_sender","type":"address"},{"indexed":true,"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"indexed":true,"internalType":"bytes","name":"_toAddress","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"}],"name":"SendToChain","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"SetTrustedRemote","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"circulatingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_toAddress","type":"bytes"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_useZro","type":"bool"},{"internalType":"bytes","name":"_adapterParams","type":"bytes"}],"name":"estimateSendFee","outputs":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"zroFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint64","name":"","type":"uint64"}],"name":"failedMessages","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"forceResumeReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"},{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"_configType","type":"uint256"}],"name":"getConfig","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"isTrustedRemote","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lzEndpoint","outputs":[{"internalType":"contract ILayerZeroEndpoint","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"lzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"nonblockingLzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"retryMessage","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_toAddress","type":"bytes"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address payable","name":"_refundAddress","type":"address"},{"internalType":"address","name":"_zroPaymentAddress","type":"address"},{"internalType":"bytes","name":"_adapterParams","type":"bytes"}],"name":"sendFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"},{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"uint256","name":"_configType","type":"uint256"},{"internalType":"bytes","name":"_config","type":"bytes"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"}],"name":"setReceiveVersion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_version","type":"uint16"}],"name":"setSendVersion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"}],"name":"setTrustedRemote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"trustedRemoteLookup","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"}]

60a06040523480156200001157600080fd5b5060405162002950380380620029508339810160408190526200003491620002ea565b604051806040016040528060078152602001664f6d6e6973656160c81b815250604051806040016040528060048152602001634f53454160e01b815250828282828282828080620000946200008e6200010860201b60201c565b6200010c565b60601b6001600160601b03191660805250508151620000bb90600690602085019062000244565b508051620000d190600790602084019062000244565b50505050505050505062000101620000ee6200010860201b60201c565b6b033b2e3c9fd0803ce80000006200015c565b5062000380565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216620001b75760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060056000828254620001cb91906200031c565b90915550506001600160a01b03821660009081526003602052604081208054839290620001fa9084906200031c565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b828054620002529062000343565b90600052602060002090601f016020900481019282620002765760008555620002c1565b82601f106200029157805160ff1916838001178555620002c1565b82800160010185558215620002c1579182015b82811115620002c1578251825591602001919060010190620002a4565b50620002cf929150620002d3565b5090565b5b80821115620002cf5760008155600101620002d4565b600060208284031215620002fd57600080fd5b81516001600160a01b03811681146200031557600080fd5b9392505050565b600082198211156200033e57634e487b7160e01b600052601160045260246000fd5b500190565b600181811c908216806200035857607f821691505b602082108114156200037a57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160601c612572620003de600039600081816104b50152818161058d015281816108490152818161090801528181610a2801528181610c1101528181610f0e01528181611260015281816117680152611a9501526125726000f3fe6080604052600436106101675760003560e01c80621d35671461016c57806301ffc9a71461018e57806306fdde03146101c357806307e0db17146101e5578063095ea7b31461020557806310ddb1371461022557806318160ddd1461024557806323b872dd146102645780632a205e3d14610284578063313ce567146102b957806339509351146102d55780633d8b38f6146102f557806342d65a8d1461031557806351905636146103355780635b8c41e61461034857806366ad5c8a1461039757806370a08231146103b7578063715018a6146103d75780637533d788146103ec5780638da5cb5b1461040c5780639358928b1461043957806395d89b411461044e578063a457c2d714610463578063a9059cbb14610483578063b353aaa7146104a3578063cbed8b9c146104d7578063d1deba1f146104f7578063dd62ed3e1461050a578063eb8d72b71461052a578063f2fde38b1461054a578063f5ecbdbc1461056a575b600080fd5b34801561017857600080fd5b5061018c610187366004612042565b61058a565b005b34801561019a57600080fd5b506101ae6101a9366004611e39565b610731565b60405190151581526020015b60405180910390f35b3480156101cf57600080fd5b506101d861076f565b6040516101ba9190612247565b3480156101f157600080fd5b5061018c610200366004611edd565b610801565b34801561021157600080fd5b506101ae610220366004611e0d565b6108aa565b34801561023157600080fd5b5061018c610240366004611edd565b6108c0565b34801561025157600080fd5b506005545b6040519081526020016101ba565b34801561027057600080fd5b506101ae61027f366004611d13565b61093f565b34801561029057600080fd5b506102a461029f366004611f4a565b6109e9565b604080519283526020830191909152016101ba565b3480156102c557600080fd5b50604051601281526020016101ba565b3480156102e157600080fd5b506101ae6102f0366004611e0d565b610ac3565b34801561030157600080fd5b506101ae610310366004611ef8565b610aff565b34801561032157600080fd5b5061018c610330366004611ef8565b610bcb565b61018c610343366004611d54565b610c81565b34801561035457600080fd5b50610256610363366004611fe1565b6002602090815260009384526040808520845180860184018051928152908401958401959095209452929052825290205481565b3480156103a357600080fd5b5061018c6103b2366004612042565b610c90565b3480156103c357600080fd5b506102566103d2366004611cb6565b610d00565b3480156103e357600080fd5b5061018c610d1b565b3480156103f857600080fd5b506101d8610407366004611edd565b610d56565b34801561041857600080fd5b50610421610df0565b6040516001600160a01b0390911681526020016101ba565b34801561044557600080fd5b50610256610dff565b34801561045a57600080fd5b506101d8610e13565b34801561046f57600080fd5b506101ae61047e366004611e0d565b610e22565b34801561048f57600080fd5b506101ae61049e366004611e0d565b610ebb565b3480156104af57600080fd5b506104217f000000000000000000000000000000000000000000000000000000000000000081565b3480156104e357600080fd5b5061018c6104f2366004612117565b610ec8565b61018c610505366004612042565b610f84565b34801561051657600080fd5b50610256610525366004611cda565b6110d6565b34801561053657600080fd5b5061018c610545366004611ef8565b611101565b34801561055657600080fd5b5061018c610565366004611cb6565b61118f565b34801561057657600080fd5b506101d86105853660046120ca565b61122f565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316146106075760405162461bcd60e51b815260206004820152601e60248201527f4c7a4170703a20696e76616c696420656e64706f696e742063616c6c6572000060448201526064015b60405180910390fd5b61ffff841660009081526001602052604081208054610625906124c1565b80601f0160208091040260200160405190810160405280929190818152602001828054610651906124c1565b801561069e5780601f106106735761010080835404028352916020019161069e565b820191906000526020600020905b81548152906001019060200180831161068157829003601f168201915b50505050509050805184511480156106c3575080805190602001208480519060200120145b61071e5760405162461bcd60e51b815260206004820152602660248201527f4c7a4170703a20696e76616c696420736f757263652073656e64696e6720636f6044820152651b9d1c9858dd60d21b60648201526084016105fe565b61072a858585856112ef565b5050505050565b60006001600160e01b03198216158061075a57506001600160e01b031982166336372b0760e01b145b806107695750610769826113e0565b92915050565b60606006805461077e906124c1565b80601f01602080910402602001604051908101604052809291908181526020018280546107aa906124c1565b80156107f75780601f106107cc576101008083540402835291602001916107f7565b820191906000526020600020905b8154815290600101906020018083116107da57829003601f168201915b5050505050905090565b3361080a610df0565b6001600160a01b0316146108305760405162461bcd60e51b81526004016105fe9061227c565b6040516307e0db1760e01b815261ffff821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906307e0db17906024015b600060405180830381600087803b15801561089657600080fd5b505af115801561072a573d6000803e3d6000fd5b60006108b7338484611415565b50600192915050565b336108c9610df0565b6001600160a01b0316146108ef5760405162461bcd60e51b81526004016105fe9061227c565b6040516310ddb13760e01b815261ffff821660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906310ddb1379060240161087c565b600061094c848484611539565b6001600160a01b0384166000908152600460209081526040808320338452909152902054828110156109d15760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016105fe565b6109de8533858403611415565b506001949350505050565b60008060008686604051602001610a0192919061225a565b60408051601f198184030181529082905263040a7bb160e41b825291506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906340a7bb1090610a65908b90309086908b908b906004016122b1565b604080518083038186803b158015610a7c57600080fd5b505afa158015610a90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab49190612185565b92509250509550959350505050565b3360008181526004602090815260408083206001600160a01b038716845290915281205490916108b7918590610afa90869061246f565b611415565b61ffff831660009081526001602052604081208054829190610b20906124c1565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4c906124c1565b8015610b995780601f10610b6e57610100808354040283529160200191610b99565b820191906000526020600020905b815481529060010190602001808311610b7c57829003601f168201915b505050505090508383604051610bb092919061221b565b60405180910390208180519060200120149150509392505050565b33610bd4610df0565b6001600160a01b031614610bfa5760405162461bcd60e51b81526004016105fe9061227c565b6040516342d65a8d60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906342d65a8d90610c4a90869086908690600401612305565b600060405180830381600087803b158015610c6457600080fd5b505af1158015610c78573d6000803e3d6000fd5b50505050505050565b610c7887878787878787611707565b333014610cee5760405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e674c7a4170703a2063616c6c6572206d7573742062656044820152650204c7a4170760d41b60648201526084016105fe565b610cfa84848484611855565b50505050565b6001600160a01b031660009081526003602052604090205490565b33610d24610df0565b6001600160a01b031614610d4a5760405162461bcd60e51b81526004016105fe9061227c565b610d5460006118e8565b565b60016020526000908152604090208054610d6f906124c1565b80601f0160208091040260200160405190810160405280929190818152602001828054610d9b906124c1565b8015610de85780601f10610dbd57610100808354040283529160200191610de8565b820191906000526020600020905b815481529060010190602001808311610dcb57829003601f168201915b505050505081565b6000546001600160a01b031690565b6000610e0a30610d00565b60055403905090565b60606007805461077e906124c1565b3360009081526004602090815260408083206001600160a01b038616845290915281205482811015610ea45760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016105fe565b610eb13385858403611415565b5060019392505050565b60006108b7338484611539565b33610ed1610df0565b6001600160a01b031614610ef75760405162461bcd60e51b81526004016105fe9061227c565b6040516332fb62e760e21b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063cbed8b9c90610f4b90889088908890889088906004016123d3565b600060405180830381600087803b158015610f6557600080fd5b505af1158015610f79573d6000803e3d6000fd5b505050505050505050565b61ffff84166000908152600260205260408082209051610fa590869061222b565b90815260408051602092819003830190206001600160401b038616600090815292529020549050806110255760405162461bcd60e51b815260206004820152602360248201527f4e6f6e626c6f636b696e674c7a4170703a206e6f2073746f726564206d65737360448201526261676560e81b60648201526084016105fe565b8151602083012081146110845760405162461bcd60e51b815260206004820152602160248201527f4e6f6e626c6f636b696e674c7a4170703a20696e76616c6964207061796c6f616044820152601960fa1b60648201526084016105fe565b61ffff851660009081526002602052604080822090516110a590879061222b565b90815260408051602092819003830190206001600160401b0387166000908152925290205561072a85858585611855565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b3361110a610df0565b6001600160a01b0316146111305760405162461bcd60e51b81526004016105fe9061227c565b61ffff8316600090815260016020526040902061114e908383611b1b565b507ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab83838360405161118293929190612305565b60405180910390a1505050565b33611198610df0565b6001600160a01b0316146111be5760405162461bcd60e51b81526004016105fe9061227c565b6001600160a01b0381166112235760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105fe565b61122c816118e8565b50565b604051633d7b2f6f60e21b815261ffff808616600483015284166024820152306044820152606481018290526060907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f5ecbdbc9060840160006040518083038186803b1580156112aa57600080fd5b505afa1580156112be573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526112e69190810190611e63565b95945050505050565b604051633356ae4560e11b815230906366ad5c8a9061131890879087908790879060040161238a565b600060405180830381600087803b15801561133257600080fd5b505af1925050508015611343575060015b610cfa578080519060200120600260008661ffff1661ffff16815260200190815260200160002084604051611378919061222b565b9081526040805191829003602090810183206001600160401b0387166000908152915220919091557fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d906113d390869086908690869061238a565b60405180910390a1610cfa565b60006001600160e01b031982166301d1d13560e71b148061076957506301ffc9a760e01b6001600160e01b0319831614610769565b6001600160a01b0383166114775760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016105fe565b6001600160a01b0382166114d85760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016105fe565b6001600160a01b0383811660008181526004602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03831661159d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016105fe565b6001600160a01b0382166115ff5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105fe565b6001600160a01b038316600090815260036020526040902054818110156116775760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016105fe565b6001600160a01b038085166000908152600360205260408082208585039055918516815290812080548492906116ae90849061246f565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516116fa91815260200190565b60405180910390a3610cfa565b6117138787878761193d565b6000858560405160200161172892919061225a565b60405160208183030381529060405290506117468782868686611976565b604051630f428ae960e31b815261ffff881660048201523060248201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690637a1457489060440160206040518083038186803b1580156117b257600080fd5b505afa1580156117c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117ea91906121a9565b9050866040516117fa919061222b565b60405180910390208861ffff168a6001600160a01b03167f024797cc77ce15dc717112d54fb1df125fdfd8c81344fb046c5e074427ce15438985604051611842929190612401565b60405180910390a4505050505050505050565b6000808280602001905181019061186c9190611e97565b60148201519193509150611881878284611b10565b806001600160a01b031686604051611899919061222b565b60405180910390208861ffff167f64e10c37f404d128982dce114f5d233c14c5c7f6d8db93099e3d99dacb9e27ba85896040516118d7929190612401565b60405180910390a450505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b505050565b336001600160a01b038516811461196b57600061195a86836110d6565b90508281101561196957600080fd5b505b61072a853084611539565b61ffff851660009081526001602052604081208054611994906124c1565b80601f01602080910402602001604051908101604052809291908181526020018280546119c0906124c1565b8015611a0d5780601f106119e257610100808354040283529160200191611a0d565b820191906000526020600020905b8154815290600101906020018083116119f057829003601f168201915b50505050509050805160001415611a7f5760405162461bcd60e51b815260206004820152603060248201527f4c7a4170703a2064657374696e6174696f6e20636861696e206973206e6f742060448201526f61207472757374656420736f7572636560801b60648201526084016105fe565b60405162c5803160e81b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c5803100903490611ad6908a9086908b908b908b908b90600401612323565b6000604051808303818588803b158015611aef57600080fd5b505af1158015611b03573d6000803e3d6000fd5b5050505050505050505050565b611938308383611539565b828054611b27906124c1565b90600052602060002090601f016020900481019282611b495760008555611b8f565b82601f10611b625782800160ff19823516178555611b8f565b82800160010185558215611b8f579182015b82811115611b8f578235825591602001919060010190611b74565b50611b9b929150611b9f565b5090565b5b80821115611b9b5760008155600101611ba0565b60008083601f840112611bc657600080fd5b5081356001600160401b03811115611bdd57600080fd5b602083019150836020828501011115611bf557600080fd5b9250929050565b600082601f830112611c0d57600080fd5b8135611c20611c1b82612448565b612418565b818152846020838601011115611c3557600080fd5b816020850160208301376000918101602001919091529392505050565b600082601f830112611c6357600080fd5b8151611c71611c1b82612448565b818152846020838601011115611c8657600080fd5b611c97826020830160208701612495565b949350505050565b803561ffff81168114611cb157600080fd5b919050565b600060208284031215611cc857600080fd5b8135611cd381612512565b9392505050565b60008060408385031215611ced57600080fd5b8235611cf881612512565b91506020830135611d0881612512565b809150509250929050565b600080600060608486031215611d2857600080fd5b8335611d3381612512565b92506020840135611d4381612512565b929592945050506040919091013590565b600080600080600080600060e0888a031215611d6f57600080fd5b8735611d7a81612512565b9650611d8860208901611c9f565b955060408801356001600160401b0380821115611da457600080fd5b611db08b838c01611bfc565b965060608a0135955060808a01359150611dc982612512565b90935060a089013590611ddb82612512565b90925060c08901359080821115611df157600080fd5b50611dfe8a828b01611bfc565b91505092959891949750929550565b60008060408385031215611e2057600080fd5b8235611e2b81612512565b946020939093013593505050565b600060208284031215611e4b57600080fd5b81356001600160e01b031981168114611cd357600080fd5b600060208284031215611e7557600080fd5b81516001600160401b03811115611e8b57600080fd5b611c9784828501611c52565b60008060408385031215611eaa57600080fd5b82516001600160401b03811115611ec057600080fd5b611ecc85828601611c52565b925050602083015190509250929050565b600060208284031215611eef57600080fd5b611cd382611c9f565b600080600060408486031215611f0d57600080fd5b611f1684611c9f565b925060208401356001600160401b03811115611f3157600080fd5b611f3d86828701611bb4565b9497909650939450505050565b600080600080600060a08688031215611f6257600080fd5b611f6b86611c9f565b945060208601356001600160401b0380821115611f8757600080fd5b611f9389838a01611bfc565b955060408801359450606088013591508115158214611fb157600080fd5b90925060808701359080821115611fc757600080fd5b50611fd488828901611bfc565b9150509295509295909350565b600080600060608486031215611ff657600080fd5b611fff84611c9f565b925060208401356001600160401b0381111561201a57600080fd5b61202686828701611bfc565b925050604084013561203781612527565b809150509250925092565b6000806000806080858703121561205857600080fd5b61206185611c9f565b935060208501356001600160401b038082111561207d57600080fd5b61208988838901611bfc565b94506040870135915061209b82612527565b909250606086013590808211156120b157600080fd5b506120be87828801611bfc565b91505092959194509250565b600080600080608085870312156120e057600080fd5b6120e985611c9f565b93506120f760208601611c9f565b9250604085013561210781612512565b9396929550929360600135925050565b60008060008060006080868803121561212f57600080fd5b61213886611c9f565b945061214660208701611c9f565b93506040860135925060608601356001600160401b0381111561216857600080fd5b61217488828901611bb4565b969995985093965092949392505050565b6000806040838503121561219857600080fd5b505080516020909101519092909150565b6000602082840312156121bb57600080fd5b8151611cd381612527565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60008151808452612207816020860160208601612495565b601f01601f19169290920160200192915050565b8183823760009101908152919050565b6000825161223d818460208701612495565b9190910192915050565b602081526000611cd360208301846121ef565b60408152600061226d60408301856121ef565b90508260208301529392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b61ffff861681526001600160a01b038516602082015260a0604082018190526000906122df908301866121ef565b841515606084015282810360808401526122f981856121ef565b98975050505050505050565b61ffff841681526040602082015260006112e66040830184866121c6565b61ffff8716815260c06020820152600061234060c08301886121ef565b828103604084015261235281886121ef565b6001600160a01b0387811660608601528616608085015283810360a0850152905061237d81856121ef565b9998505050505050505050565b61ffff851681526080602082015260006123a760808301866121ef565b6001600160401b038516604084015282810360608401526123c881856121ef565b979650505050505050565b600061ffff8088168352808716602084015250846040830152608060608301526123c86080830184866121c6565b9182526001600160401b0316602082015260400190565b604051601f8201601f191681016001600160401b0381118282101715612440576124406124fc565b604052919050565b60006001600160401b03821115612461576124616124fc565b50601f01601f191660200190565b6000821982111561249057634e487b7160e01b600052601160045260246000fd5b500190565b60005b838110156124b0578181015183820152602001612498565b83811115610cfa5750506000910152565b600181811c908216806124d557607f821691505b602082108114156124f657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461122c57600080fd5b6001600160401b038116811461122c57600080fdfea264697066735822122087bc3c872c5ad8ea10427d3e3614fef1e7456040f2fb23620d0588739c657d4a64736f6c634300080700330000000000000000000000003c2269811836af69497e5f486a85d7316753cf62

Deployed Bytecode

0x6080604052600436106101675760003560e01c80621d35671461016c57806301ffc9a71461018e57806306fdde03146101c357806307e0db17146101e5578063095ea7b31461020557806310ddb1371461022557806318160ddd1461024557806323b872dd146102645780632a205e3d14610284578063313ce567146102b957806339509351146102d55780633d8b38f6146102f557806342d65a8d1461031557806351905636146103355780635b8c41e61461034857806366ad5c8a1461039757806370a08231146103b7578063715018a6146103d75780637533d788146103ec5780638da5cb5b1461040c5780639358928b1461043957806395d89b411461044e578063a457c2d714610463578063a9059cbb14610483578063b353aaa7146104a3578063cbed8b9c146104d7578063d1deba1f146104f7578063dd62ed3e1461050a578063eb8d72b71461052a578063f2fde38b1461054a578063f5ecbdbc1461056a575b600080fd5b34801561017857600080fd5b5061018c610187366004612042565b61058a565b005b34801561019a57600080fd5b506101ae6101a9366004611e39565b610731565b60405190151581526020015b60405180910390f35b3480156101cf57600080fd5b506101d861076f565b6040516101ba9190612247565b3480156101f157600080fd5b5061018c610200366004611edd565b610801565b34801561021157600080fd5b506101ae610220366004611e0d565b6108aa565b34801561023157600080fd5b5061018c610240366004611edd565b6108c0565b34801561025157600080fd5b506005545b6040519081526020016101ba565b34801561027057600080fd5b506101ae61027f366004611d13565b61093f565b34801561029057600080fd5b506102a461029f366004611f4a565b6109e9565b604080519283526020830191909152016101ba565b3480156102c557600080fd5b50604051601281526020016101ba565b3480156102e157600080fd5b506101ae6102f0366004611e0d565b610ac3565b34801561030157600080fd5b506101ae610310366004611ef8565b610aff565b34801561032157600080fd5b5061018c610330366004611ef8565b610bcb565b61018c610343366004611d54565b610c81565b34801561035457600080fd5b50610256610363366004611fe1565b6002602090815260009384526040808520845180860184018051928152908401958401959095209452929052825290205481565b3480156103a357600080fd5b5061018c6103b2366004612042565b610c90565b3480156103c357600080fd5b506102566103d2366004611cb6565b610d00565b3480156103e357600080fd5b5061018c610d1b565b3480156103f857600080fd5b506101d8610407366004611edd565b610d56565b34801561041857600080fd5b50610421610df0565b6040516001600160a01b0390911681526020016101ba565b34801561044557600080fd5b50610256610dff565b34801561045a57600080fd5b506101d8610e13565b34801561046f57600080fd5b506101ae61047e366004611e0d565b610e22565b34801561048f57600080fd5b506101ae61049e366004611e0d565b610ebb565b3480156104af57600080fd5b506104217f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf6281565b3480156104e357600080fd5b5061018c6104f2366004612117565b610ec8565b61018c610505366004612042565b610f84565b34801561051657600080fd5b50610256610525366004611cda565b6110d6565b34801561053657600080fd5b5061018c610545366004611ef8565b611101565b34801561055657600080fd5b5061018c610565366004611cb6565b61118f565b34801561057657600080fd5b506101d86105853660046120ca565b61122f565b337f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf626001600160a01b0316146106075760405162461bcd60e51b815260206004820152601e60248201527f4c7a4170703a20696e76616c696420656e64706f696e742063616c6c6572000060448201526064015b60405180910390fd5b61ffff841660009081526001602052604081208054610625906124c1565b80601f0160208091040260200160405190810160405280929190818152602001828054610651906124c1565b801561069e5780601f106106735761010080835404028352916020019161069e565b820191906000526020600020905b81548152906001019060200180831161068157829003601f168201915b50505050509050805184511480156106c3575080805190602001208480519060200120145b61071e5760405162461bcd60e51b815260206004820152602660248201527f4c7a4170703a20696e76616c696420736f757263652073656e64696e6720636f6044820152651b9d1c9858dd60d21b60648201526084016105fe565b61072a858585856112ef565b5050505050565b60006001600160e01b03198216158061075a57506001600160e01b031982166336372b0760e01b145b806107695750610769826113e0565b92915050565b60606006805461077e906124c1565b80601f01602080910402602001604051908101604052809291908181526020018280546107aa906124c1565b80156107f75780601f106107cc576101008083540402835291602001916107f7565b820191906000526020600020905b8154815290600101906020018083116107da57829003601f168201915b5050505050905090565b3361080a610df0565b6001600160a01b0316146108305760405162461bcd60e51b81526004016105fe9061227c565b6040516307e0db1760e01b815261ffff821660048201527f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf626001600160a01b0316906307e0db17906024015b600060405180830381600087803b15801561089657600080fd5b505af115801561072a573d6000803e3d6000fd5b60006108b7338484611415565b50600192915050565b336108c9610df0565b6001600160a01b0316146108ef5760405162461bcd60e51b81526004016105fe9061227c565b6040516310ddb13760e01b815261ffff821660048201527f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf626001600160a01b0316906310ddb1379060240161087c565b600061094c848484611539565b6001600160a01b0384166000908152600460209081526040808320338452909152902054828110156109d15760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016105fe565b6109de8533858403611415565b506001949350505050565b60008060008686604051602001610a0192919061225a565b60408051601f198184030181529082905263040a7bb160e41b825291506001600160a01b037f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf6216906340a7bb1090610a65908b90309086908b908b906004016122b1565b604080518083038186803b158015610a7c57600080fd5b505afa158015610a90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab49190612185565b92509250509550959350505050565b3360008181526004602090815260408083206001600160a01b038716845290915281205490916108b7918590610afa90869061246f565b611415565b61ffff831660009081526001602052604081208054829190610b20906124c1565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4c906124c1565b8015610b995780601f10610b6e57610100808354040283529160200191610b99565b820191906000526020600020905b815481529060010190602001808311610b7c57829003601f168201915b505050505090508383604051610bb092919061221b565b60405180910390208180519060200120149150509392505050565b33610bd4610df0565b6001600160a01b031614610bfa5760405162461bcd60e51b81526004016105fe9061227c565b6040516342d65a8d60e01b81526001600160a01b037f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf6216906342d65a8d90610c4a90869086908690600401612305565b600060405180830381600087803b158015610c6457600080fd5b505af1158015610c78573d6000803e3d6000fd5b50505050505050565b610c7887878787878787611707565b333014610cee5760405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e674c7a4170703a2063616c6c6572206d7573742062656044820152650204c7a4170760d41b60648201526084016105fe565b610cfa84848484611855565b50505050565b6001600160a01b031660009081526003602052604090205490565b33610d24610df0565b6001600160a01b031614610d4a5760405162461bcd60e51b81526004016105fe9061227c565b610d5460006118e8565b565b60016020526000908152604090208054610d6f906124c1565b80601f0160208091040260200160405190810160405280929190818152602001828054610d9b906124c1565b8015610de85780601f10610dbd57610100808354040283529160200191610de8565b820191906000526020600020905b815481529060010190602001808311610dcb57829003601f168201915b505050505081565b6000546001600160a01b031690565b6000610e0a30610d00565b60055403905090565b60606007805461077e906124c1565b3360009081526004602090815260408083206001600160a01b038616845290915281205482811015610ea45760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016105fe565b610eb13385858403611415565b5060019392505050565b60006108b7338484611539565b33610ed1610df0565b6001600160a01b031614610ef75760405162461bcd60e51b81526004016105fe9061227c565b6040516332fb62e760e21b81526001600160a01b037f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf62169063cbed8b9c90610f4b90889088908890889088906004016123d3565b600060405180830381600087803b158015610f6557600080fd5b505af1158015610f79573d6000803e3d6000fd5b505050505050505050565b61ffff84166000908152600260205260408082209051610fa590869061222b565b90815260408051602092819003830190206001600160401b038616600090815292529020549050806110255760405162461bcd60e51b815260206004820152602360248201527f4e6f6e626c6f636b696e674c7a4170703a206e6f2073746f726564206d65737360448201526261676560e81b60648201526084016105fe565b8151602083012081146110845760405162461bcd60e51b815260206004820152602160248201527f4e6f6e626c6f636b696e674c7a4170703a20696e76616c6964207061796c6f616044820152601960fa1b60648201526084016105fe565b61ffff851660009081526002602052604080822090516110a590879061222b565b90815260408051602092819003830190206001600160401b0387166000908152925290205561072a85858585611855565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b3361110a610df0565b6001600160a01b0316146111305760405162461bcd60e51b81526004016105fe9061227c565b61ffff8316600090815260016020526040902061114e908383611b1b565b507ffa41487ad5d6728f0b19276fa1eddc16558578f5109fc39d2dc33c3230470dab83838360405161118293929190612305565b60405180910390a1505050565b33611198610df0565b6001600160a01b0316146111be5760405162461bcd60e51b81526004016105fe9061227c565b6001600160a01b0381166112235760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105fe565b61122c816118e8565b50565b604051633d7b2f6f60e21b815261ffff808616600483015284166024820152306044820152606481018290526060907f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf626001600160a01b03169063f5ecbdbc9060840160006040518083038186803b1580156112aa57600080fd5b505afa1580156112be573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526112e69190810190611e63565b95945050505050565b604051633356ae4560e11b815230906366ad5c8a9061131890879087908790879060040161238a565b600060405180830381600087803b15801561133257600080fd5b505af1925050508015611343575060015b610cfa578080519060200120600260008661ffff1661ffff16815260200190815260200160002084604051611378919061222b565b9081526040805191829003602090810183206001600160401b0387166000908152915220919091557fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d906113d390869086908690869061238a565b60405180910390a1610cfa565b60006001600160e01b031982166301d1d13560e71b148061076957506301ffc9a760e01b6001600160e01b0319831614610769565b6001600160a01b0383166114775760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016105fe565b6001600160a01b0382166114d85760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016105fe565b6001600160a01b0383811660008181526004602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03831661159d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016105fe565b6001600160a01b0382166115ff5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105fe565b6001600160a01b038316600090815260036020526040902054818110156116775760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016105fe565b6001600160a01b038085166000908152600360205260408082208585039055918516815290812080548492906116ae90849061246f565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516116fa91815260200190565b60405180910390a3610cfa565b6117138787878761193d565b6000858560405160200161172892919061225a565b60405160208183030381529060405290506117468782868686611976565b604051630f428ae960e31b815261ffff881660048201523060248201526000907f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf626001600160a01b031690637a1457489060440160206040518083038186803b1580156117b257600080fd5b505afa1580156117c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117ea91906121a9565b9050866040516117fa919061222b565b60405180910390208861ffff168a6001600160a01b03167f024797cc77ce15dc717112d54fb1df125fdfd8c81344fb046c5e074427ce15438985604051611842929190612401565b60405180910390a4505050505050505050565b6000808280602001905181019061186c9190611e97565b60148201519193509150611881878284611b10565b806001600160a01b031686604051611899919061222b565b60405180910390208861ffff167f64e10c37f404d128982dce114f5d233c14c5c7f6d8db93099e3d99dacb9e27ba85896040516118d7929190612401565b60405180910390a450505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b505050565b336001600160a01b038516811461196b57600061195a86836110d6565b90508281101561196957600080fd5b505b61072a853084611539565b61ffff851660009081526001602052604081208054611994906124c1565b80601f01602080910402602001604051908101604052809291908181526020018280546119c0906124c1565b8015611a0d5780601f106119e257610100808354040283529160200191611a0d565b820191906000526020600020905b8154815290600101906020018083116119f057829003601f168201915b50505050509050805160001415611a7f5760405162461bcd60e51b815260206004820152603060248201527f4c7a4170703a2064657374696e6174696f6e20636861696e206973206e6f742060448201526f61207472757374656420736f7572636560801b60648201526084016105fe565b60405162c5803160e81b81526001600160a01b037f0000000000000000000000003c2269811836af69497e5f486a85d7316753cf62169063c5803100903490611ad6908a9086908b908b908b908b90600401612323565b6000604051808303818588803b158015611aef57600080fd5b505af1158015611b03573d6000803e3d6000fd5b5050505050505050505050565b611938308383611539565b828054611b27906124c1565b90600052602060002090601f016020900481019282611b495760008555611b8f565b82601f10611b625782800160ff19823516178555611b8f565b82800160010185558215611b8f579182015b82811115611b8f578235825591602001919060010190611b74565b50611b9b929150611b9f565b5090565b5b80821115611b9b5760008155600101611ba0565b60008083601f840112611bc657600080fd5b5081356001600160401b03811115611bdd57600080fd5b602083019150836020828501011115611bf557600080fd5b9250929050565b600082601f830112611c0d57600080fd5b8135611c20611c1b82612448565b612418565b818152846020838601011115611c3557600080fd5b816020850160208301376000918101602001919091529392505050565b600082601f830112611c6357600080fd5b8151611c71611c1b82612448565b818152846020838601011115611c8657600080fd5b611c97826020830160208701612495565b949350505050565b803561ffff81168114611cb157600080fd5b919050565b600060208284031215611cc857600080fd5b8135611cd381612512565b9392505050565b60008060408385031215611ced57600080fd5b8235611cf881612512565b91506020830135611d0881612512565b809150509250929050565b600080600060608486031215611d2857600080fd5b8335611d3381612512565b92506020840135611d4381612512565b929592945050506040919091013590565b600080600080600080600060e0888a031215611d6f57600080fd5b8735611d7a81612512565b9650611d8860208901611c9f565b955060408801356001600160401b0380821115611da457600080fd5b611db08b838c01611bfc565b965060608a0135955060808a01359150611dc982612512565b90935060a089013590611ddb82612512565b90925060c08901359080821115611df157600080fd5b50611dfe8a828b01611bfc565b91505092959891949750929550565b60008060408385031215611e2057600080fd5b8235611e2b81612512565b946020939093013593505050565b600060208284031215611e4b57600080fd5b81356001600160e01b031981168114611cd357600080fd5b600060208284031215611e7557600080fd5b81516001600160401b03811115611e8b57600080fd5b611c9784828501611c52565b60008060408385031215611eaa57600080fd5b82516001600160401b03811115611ec057600080fd5b611ecc85828601611c52565b925050602083015190509250929050565b600060208284031215611eef57600080fd5b611cd382611c9f565b600080600060408486031215611f0d57600080fd5b611f1684611c9f565b925060208401356001600160401b03811115611f3157600080fd5b611f3d86828701611bb4565b9497909650939450505050565b600080600080600060a08688031215611f6257600080fd5b611f6b86611c9f565b945060208601356001600160401b0380821115611f8757600080fd5b611f9389838a01611bfc565b955060408801359450606088013591508115158214611fb157600080fd5b90925060808701359080821115611fc757600080fd5b50611fd488828901611bfc565b9150509295509295909350565b600080600060608486031215611ff657600080fd5b611fff84611c9f565b925060208401356001600160401b0381111561201a57600080fd5b61202686828701611bfc565b925050604084013561203781612527565b809150509250925092565b6000806000806080858703121561205857600080fd5b61206185611c9f565b935060208501356001600160401b038082111561207d57600080fd5b61208988838901611bfc565b94506040870135915061209b82612527565b909250606086013590808211156120b157600080fd5b506120be87828801611bfc565b91505092959194509250565b600080600080608085870312156120e057600080fd5b6120e985611c9f565b93506120f760208601611c9f565b9250604085013561210781612512565b9396929550929360600135925050565b60008060008060006080868803121561212f57600080fd5b61213886611c9f565b945061214660208701611c9f565b93506040860135925060608601356001600160401b0381111561216857600080fd5b61217488828901611bb4565b969995985093965092949392505050565b6000806040838503121561219857600080fd5b505080516020909101519092909150565b6000602082840312156121bb57600080fd5b8151611cd381612527565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60008151808452612207816020860160208601612495565b601f01601f19169290920160200192915050565b8183823760009101908152919050565b6000825161223d818460208701612495565b9190910192915050565b602081526000611cd360208301846121ef565b60408152600061226d60408301856121ef565b90508260208301529392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b61ffff861681526001600160a01b038516602082015260a0604082018190526000906122df908301866121ef565b841515606084015282810360808401526122f981856121ef565b98975050505050505050565b61ffff841681526040602082015260006112e66040830184866121c6565b61ffff8716815260c06020820152600061234060c08301886121ef565b828103604084015261235281886121ef565b6001600160a01b0387811660608601528616608085015283810360a0850152905061237d81856121ef565b9998505050505050505050565b61ffff851681526080602082015260006123a760808301866121ef565b6001600160401b038516604084015282810360608401526123c881856121ef565b979650505050505050565b600061ffff8088168352808716602084015250846040830152608060608301526123c86080830184866121c6565b9182526001600160401b0316602082015260400190565b604051601f8201601f191681016001600160401b0381118282101715612440576124406124fc565b604052919050565b60006001600160401b03821115612461576124616124fc565b50601f01601f191660200190565b6000821982111561249057634e487b7160e01b600052601160045260246000fd5b500190565b60005b838110156124b0578181015183820152602001612498565b83811115610cfa5750506000910152565b600181811c908216806124d557607f821691505b602082108114156124f657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461122c57600080fd5b6001600160401b038116811461122c57600080fdfea264697066735822122087bc3c872c5ad8ea10427d3e3614fef1e7456040f2fb23620d0588739c657d4a64736f6c63430008070033

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

0000000000000000000000003c2269811836af69497e5f486a85d7316753cf62

-----Decoded View---------------
Arg [0] : _layerZeroEndpoint (address): 0x3c2269811836af69497E5F486A85D7316753cf62

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000003c2269811836af69497e5f486a85d7316753cf62


Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.