BNB Price: $627.89 (+0.38%)
 

Overview

Max Total Supply

10,499,845,901.197199ZTC

Holders

43,405 ( -0.014%)

Market

Price

$0.0005 @ 0.000001 BNB (+0.52%)

Onchain Market Cap

$5,426,425.36

Circulating Supply Market Cap

$2,826,006.00

Other Info

Token Contract (WITH 18 Decimals)

Balance
4,548.89421 ZTC

Value
$2.35 ( ~0.00374270728571099 BNB) [0.0000%]
0x4e3abf643b6a55a934086f714cb348050f593c8c
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

ZenChain is a Layer 1 blockchain combining Bitcoin’s security with Ethereum’s programmability. Its hybrid consensus enables high throughput, fast finality, and EVM compatibility, allowing developers to deploy smart contracts with Bitcoin-level security, low fees, and fast transactions.


Update? Click here to update the token ICO / general information

Contract Source Code Verified (Exact Match)

Contract Name:
ZTCOFT

Compiler Version
v0.8.22+commit.4fc1097e

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
paris EvmVersion, MIT license
/**
 *Submitted for verification at BscScan.com on 2026-01-03
*/

// SPDX-License-Identifier: MIT
pragma solidity 0.8.22;

// Sources flattened with hardhat v2.28.2 https://hardhat.org


// File @layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/[email protected]



struct SetConfigParam {
    uint32 eid;
    uint32 configType;
    bytes config;
}

interface IMessageLibManager {
    struct Timeout {
        address lib;
        uint256 expiry;
    }

    event LibraryRegistered(address newLib);
    event DefaultSendLibrarySet(uint32 eid, address newLib);
    event DefaultReceiveLibrarySet(uint32 eid, address newLib);
    event DefaultReceiveLibraryTimeoutSet(uint32 eid, address oldLib, uint256 expiry);
    event SendLibrarySet(address sender, uint32 eid, address newLib);
    event ReceiveLibrarySet(address receiver, uint32 eid, address newLib);
    event ReceiveLibraryTimeoutSet(address receiver, uint32 eid, address oldLib, uint256 timeout);

    function registerLibrary(address _lib) external;

    function isRegisteredLibrary(address _lib) external view returns (bool);

    function getRegisteredLibraries() external view returns (address[] memory);

    function setDefaultSendLibrary(uint32 _eid, address _newLib) external;

    function defaultSendLibrary(uint32 _eid) external view returns (address);

    function setDefaultReceiveLibrary(uint32 _eid, address _newLib, uint256 _gracePeriod) external;

    function defaultReceiveLibrary(uint32 _eid) external view returns (address);

    function setDefaultReceiveLibraryTimeout(uint32 _eid, address _lib, uint256 _expiry) external;

    function defaultReceiveLibraryTimeout(uint32 _eid) external view returns (address lib, uint256 expiry);

    function isSupportedEid(uint32 _eid) external view returns (bool);

    function isValidReceiveLibrary(address _receiver, uint32 _eid, address _lib) external view returns (bool);

    /// ------------------- OApp interfaces -------------------
    function setSendLibrary(address _oapp, uint32 _eid, address _newLib) external;

    function getSendLibrary(address _sender, uint32 _eid) external view returns (address lib);

    function isDefaultSendLibrary(address _sender, uint32 _eid) external view returns (bool);

    function setReceiveLibrary(address _oapp, uint32 _eid, address _newLib, uint256 _gracePeriod) external;

    function getReceiveLibrary(address _receiver, uint32 _eid) external view returns (address lib, bool isDefault);

    function setReceiveLibraryTimeout(address _oapp, uint32 _eid, address _lib, uint256 _expiry) external;

    function receiveLibraryTimeout(address _receiver, uint32 _eid) external view returns (address lib, uint256 expiry);

    function setConfig(address _oapp, address _lib, SetConfigParam[] calldata _params) external;

    function getConfig(
        address _oapp,
        address _lib,
        uint32 _eid,
        uint32 _configType
    ) external view returns (bytes memory config);
}


// File @layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/[email protected]



interface IMessagingChannel {
    event InboundNonceSkipped(uint32 srcEid, bytes32 sender, address receiver, uint64 nonce);
    event PacketNilified(uint32 srcEid, bytes32 sender, address receiver, uint64 nonce, bytes32 payloadHash);
    event PacketBurnt(uint32 srcEid, bytes32 sender, address receiver, uint64 nonce, bytes32 payloadHash);

    function eid() external view returns (uint32);

    // this is an emergency function if a message cannot be verified for some reasons
    // required to provide _nextNonce to avoid race condition
    function skip(address _oapp, uint32 _srcEid, bytes32 _sender, uint64 _nonce) external;

    function nilify(address _oapp, uint32 _srcEid, bytes32 _sender, uint64 _nonce, bytes32 _payloadHash) external;

    function burn(address _oapp, uint32 _srcEid, bytes32 _sender, uint64 _nonce, bytes32 _payloadHash) external;

    function nextGuid(address _sender, uint32 _dstEid, bytes32 _receiver) external view returns (bytes32);

    function inboundNonce(address _receiver, uint32 _srcEid, bytes32 _sender) external view returns (uint64);

    function outboundNonce(address _sender, uint32 _dstEid, bytes32 _receiver) external view returns (uint64);

    function inboundPayloadHash(
        address _receiver,
        uint32 _srcEid,
        bytes32 _sender,
        uint64 _nonce
    ) external view returns (bytes32);

    function lazyInboundNonce(address _receiver, uint32 _srcEid, bytes32 _sender) external view returns (uint64);
}


// File @layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/[email protected]



interface IMessagingComposer {
    event ComposeSent(address from, address to, bytes32 guid, uint16 index, bytes message);
    event ComposeDelivered(address from, address to, bytes32 guid, uint16 index);
    event LzComposeAlert(
        address indexed from,
        address indexed to,
        address indexed executor,
        bytes32 guid,
        uint16 index,
        uint256 gas,
        uint256 value,
        bytes message,
        bytes extraData,
        bytes reason
    );

    function composeQueue(
        address _from,
        address _to,
        bytes32 _guid,
        uint16 _index
    ) external view returns (bytes32 messageHash);

    function sendCompose(address _to, bytes32 _guid, uint16 _index, bytes calldata _message) external;

    function lzCompose(
        address _from,
        address _to,
        bytes32 _guid,
        uint16 _index,
        bytes calldata _message,
        bytes calldata _extraData
    ) external payable;
}


// File @layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/[email protected]



interface IMessagingContext {
    function isSendingMessage() external view returns (bool);

    function getSendContext() external view returns (uint32 dstEid, address sender);
}


// File @layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/[email protected]






struct MessagingParams {
    uint32 dstEid;
    bytes32 receiver;
    bytes message;
    bytes options;
    bool payInLzToken;
}

struct MessagingReceipt {
    bytes32 guid;
    uint64 nonce;
    MessagingFee fee;
}

struct MessagingFee {
    uint256 nativeFee;
    uint256 lzTokenFee;
}

struct Origin {
    uint32 srcEid;
    bytes32 sender;
    uint64 nonce;
}

interface ILayerZeroEndpointV2 is IMessageLibManager, IMessagingComposer, IMessagingChannel, IMessagingContext {
    event PacketSent(bytes encodedPayload, bytes options, address sendLibrary);

    event PacketVerified(Origin origin, address receiver, bytes32 payloadHash);

    event PacketDelivered(Origin origin, address receiver);

    event LzReceiveAlert(
        address indexed receiver,
        address indexed executor,
        Origin origin,
        bytes32 guid,
        uint256 gas,
        uint256 value,
        bytes message,
        bytes extraData,
        bytes reason
    );

    event LzTokenSet(address token);

    event DelegateSet(address sender, address delegate);

    function quote(MessagingParams calldata _params, address _sender) external view returns (MessagingFee memory);

    function send(
        MessagingParams calldata _params,
        address _refundAddress
    ) external payable returns (MessagingReceipt memory);

    function verify(Origin calldata _origin, address _receiver, bytes32 _payloadHash) external;

    function verifiable(Origin calldata _origin, address _receiver) external view returns (bool);

    function initializable(Origin calldata _origin, address _receiver) external view returns (bool);

    function lzReceive(
        Origin calldata _origin,
        address _receiver,
        bytes32 _guid,
        bytes calldata _message,
        bytes calldata _extraData
    ) external payable;

    // oapp can burn messages partially by calling this function with its own business logic if messages are verified in order
    function clear(address _oapp, Origin calldata _origin, bytes32 _guid, bytes calldata _message) external;

    function setLzToken(address _lzToken) external;

    function lzToken() external view returns (address);

    function nativeToken() external view returns (address);

    function setDelegate(address _delegate) external;
}


// File @layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/[email protected]



interface ILayerZeroReceiver {
    function allowInitializePath(Origin calldata _origin) external view returns (bool);

    function nextNonce(uint32 _eid, bytes32 _sender) external view returns (uint64);

    function lzReceive(
        Origin calldata _origin,
        bytes32 _guid,
        bytes calldata _message,
        address _executor,
        bytes calldata _extraData
    ) external payable;
}


// File @openzeppelin/contracts/utils/introspection/[email protected]

// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)


/**
 * @dev Interface of the ERC-165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[ERC].
 *
 * 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[ERC 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 @layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/[email protected]



enum MessageLibType {
    Send,
    Receive,
    SendAndReceive
}

interface IMessageLib is IERC165 {
    function setConfig(address _oapp, SetConfigParam[] calldata _config) external;

    function getConfig(uint32 _eid, address _oapp, uint32 _configType) external view returns (bytes memory config);

    function isSupportedEid(uint32 _eid) external view returns (bool);

    // message libs of same major version are compatible
    function version() external view returns (uint64 major, uint8 minor, uint8 endpointVersion);

    function messageLibType() external view returns (MessageLibType);
}


// File @layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/[email protected]




struct Packet {
    uint64 nonce;
    uint32 srcEid;
    address sender;
    uint32 dstEid;
    bytes32 receiver;
    bytes32 guid;
    bytes message;
}

interface ISendLib is IMessageLib {
    function send(
        Packet calldata _packet,
        bytes calldata _options,
        bool _payInLzToken
    ) external returns (MessagingFee memory, bytes memory encodedPacket);

    function quote(
        Packet calldata _packet,
        bytes calldata _options,
        bool _payInLzToken
    ) external view returns (MessagingFee memory);

    function setTreasury(address _treasury) external;

    function withdrawFee(address _to, uint256 _amount) external;

    function withdrawLzTokenFee(address _lzToken, address _to, uint256 _amount) external;
}


// File @layerzerolabs/lz-evm-protocol-v2/contracts/libs/[email protected]



library AddressCast {
    error AddressCast_InvalidSizeForAddress();
    error AddressCast_InvalidAddress();

    function toBytes32(bytes calldata _addressBytes) internal pure returns (bytes32 result) {
        if (_addressBytes.length > 32) revert AddressCast_InvalidAddress();
        result = bytes32(_addressBytes);
        unchecked {
            uint256 offset = 32 - _addressBytes.length;
            result = result >> (offset * 8);
        }
    }

    function toBytes32(address _address) internal pure returns (bytes32 result) {
        result = bytes32(uint256(uint160(_address)));
    }

    function toBytes(bytes32 _addressBytes32, uint256 _size) internal pure returns (bytes memory result) {
        if (_size == 0 || _size > 32) revert AddressCast_InvalidSizeForAddress();
        result = new bytes(_size);
        unchecked {
            uint256 offset = 256 - _size * 8;
            assembly {
                mstore(add(result, 32), shl(offset, _addressBytes32))
            }
        }
    }

    function toAddress(bytes32 _addressBytes32) internal pure returns (address result) {
        result = address(uint160(uint256(_addressBytes32)));
    }

    function toAddress(bytes calldata _addressBytes) internal pure returns (address result) {
        if (_addressBytes.length != 20) revert AddressCast_InvalidAddress();
        result = address(bytes20(_addressBytes));
    }
}


// File @layerzerolabs/lz-evm-protocol-v2/contracts/messagelib/libs/[email protected]




library PacketV1Codec {
    using AddressCast for address;
    using AddressCast for bytes32;

    uint8 internal constant PACKET_VERSION = 1;

    // header (version + nonce + path)
    // version
    uint256 private constant PACKET_VERSION_OFFSET = 0;
    //    nonce
    uint256 private constant NONCE_OFFSET = 1;
    //    path
    uint256 private constant SRC_EID_OFFSET = 9;
    uint256 private constant SENDER_OFFSET = 13;
    uint256 private constant DST_EID_OFFSET = 45;
    uint256 private constant RECEIVER_OFFSET = 49;
    // payload (guid + message)
    uint256 private constant GUID_OFFSET = 81; // keccak256(nonce + path)
    uint256 private constant MESSAGE_OFFSET = 113;

    function encode(Packet memory _packet) internal pure returns (bytes memory encodedPacket) {
        encodedPacket = abi.encodePacked(
            PACKET_VERSION,
            _packet.nonce,
            _packet.srcEid,
            _packet.sender.toBytes32(),
            _packet.dstEid,
            _packet.receiver,
            _packet.guid,
            _packet.message
        );
    }

    function encodePacketHeader(Packet memory _packet) internal pure returns (bytes memory) {
        return
            abi.encodePacked(
                PACKET_VERSION,
                _packet.nonce,
                _packet.srcEid,
                _packet.sender.toBytes32(),
                _packet.dstEid,
                _packet.receiver
            );
    }

    function encodePayload(Packet memory _packet) internal pure returns (bytes memory) {
        return abi.encodePacked(_packet.guid, _packet.message);
    }

    function header(bytes calldata _packet) internal pure returns (bytes calldata) {
        return _packet[0:GUID_OFFSET];
    }

    function version(bytes calldata _packet) internal pure returns (uint8) {
        return uint8(bytes1(_packet[PACKET_VERSION_OFFSET:NONCE_OFFSET]));
    }

    function nonce(bytes calldata _packet) internal pure returns (uint64) {
        return uint64(bytes8(_packet[NONCE_OFFSET:SRC_EID_OFFSET]));
    }

    function srcEid(bytes calldata _packet) internal pure returns (uint32) {
        return uint32(bytes4(_packet[SRC_EID_OFFSET:SENDER_OFFSET]));
    }

    function sender(bytes calldata _packet) internal pure returns (bytes32) {
        return bytes32(_packet[SENDER_OFFSET:DST_EID_OFFSET]);
    }

    function senderAddressB20(bytes calldata _packet) internal pure returns (address) {
        return sender(_packet).toAddress();
    }

    function dstEid(bytes calldata _packet) internal pure returns (uint32) {
        return uint32(bytes4(_packet[DST_EID_OFFSET:RECEIVER_OFFSET]));
    }

    function receiver(bytes calldata _packet) internal pure returns (bytes32) {
        return bytes32(_packet[RECEIVER_OFFSET:GUID_OFFSET]);
    }

    function receiverB20(bytes calldata _packet) internal pure returns (address) {
        return receiver(_packet).toAddress();
    }

    function guid(bytes calldata _packet) internal pure returns (bytes32) {
        return bytes32(_packet[GUID_OFFSET:MESSAGE_OFFSET]);
    }

    function message(bytes calldata _packet) internal pure returns (bytes calldata) {
        return bytes(_packet[MESSAGE_OFFSET:]);
    }

    function payload(bytes calldata _packet) internal pure returns (bytes calldata) {
        return bytes(_packet[GUID_OFFSET:]);
    }

    function payloadHash(bytes calldata _packet) internal pure returns (bytes32) {
        return keccak256(payload(_packet));
    }
}


// File @layerzerolabs/oapp-evm/contracts/oapp/interfaces/[email protected]



/**
 * @title IOAppCore
 */
interface IOAppCore {
    // Custom error messages
    error OnlyPeer(uint32 eid, bytes32 sender);
    error NoPeer(uint32 eid);
    error InvalidEndpointCall();
    error InvalidDelegate();

    // Event emitted when a peer (OApp) is set for a corresponding endpoint
    event PeerSet(uint32 eid, bytes32 peer);

    /**
     * @notice Retrieves the OApp version information.
     * @return senderVersion The version of the OAppSender.sol contract.
     * @return receiverVersion The version of the OAppReceiver.sol contract.
     */
    function oAppVersion() external view returns (uint64 senderVersion, uint64 receiverVersion);

    /**
     * @notice Retrieves the LayerZero endpoint associated with the OApp.
     * @return iEndpoint The LayerZero endpoint as an interface.
     */
    function endpoint() external view returns (ILayerZeroEndpointV2 iEndpoint);

    /**
     * @notice Retrieves the peer (OApp) associated with a corresponding endpoint.
     * @param _eid The endpoint ID.
     * @return peer The peer address (OApp instance) associated with the corresponding endpoint.
     */
    function peers(uint32 _eid) external view returns (bytes32 peer);

    /**
     * @notice Sets the peer address (OApp instance) for a corresponding endpoint.
     * @param _eid The endpoint ID.
     * @param _peer The address of the peer to be associated with the corresponding endpoint.
     */
    function setPeer(uint32 _eid, bytes32 _peer) external;

    /**
     * @notice Sets the delegate address for the OApp Core.
     * @param _delegate The address of the delegate to be set.
     */
    function setDelegate(address _delegate) external;
}


// File @layerzerolabs/oapp-evm/contracts/oapp/interfaces/[email protected]


interface IOAppReceiver is ILayerZeroReceiver {
    /**
     * @notice Indicates whether an address is an approved composeMsg sender to the Endpoint.
     * @param _origin The origin information containing the source endpoint and sender address.
     *  - srcEid: The source chain endpoint ID.
     *  - sender: The sender address on the src chain.
     *  - nonce: The nonce of the message.
     * @param _message The lzReceive payload.
     * @param _sender The sender address.
     * @return isSender Is a valid sender.
     *
     * @dev Applications can optionally choose to implement a separate composeMsg sender that is NOT the bridging layer.
     * @dev The default sender IS the OAppReceiver implementer.
     */
    function isComposeMsgSender(
        Origin calldata _origin,
        bytes calldata _message,
        address _sender
    ) external view returns (bool isSender);
}


// File @layerzerolabs/oapp-evm/contracts/oapp/interfaces/[email protected]



/**
 * @dev Struct representing enforced option parameters.
 */
struct EnforcedOptionParam {
    uint32 eid; // Endpoint ID
    uint16 msgType; // Message Type
    bytes options; // Additional options
}

/**
 * @title IOAppOptionsType3
 * @dev Interface for the OApp with Type 3 Options, allowing the setting and combining of enforced options.
 */
interface IOAppOptionsType3 {
    // Custom error message for invalid options
    error InvalidOptions(bytes options);

    // Event emitted when enforced options are set
    event EnforcedOptionSet(EnforcedOptionParam[] _enforcedOptions);

    /**
     * @notice Sets enforced options for specific endpoint and message type combinations.
     * @param _enforcedOptions An array of EnforcedOptionParam structures specifying enforced options.
     */
    function setEnforcedOptions(EnforcedOptionParam[] calldata _enforcedOptions) external;

    /**
     * @notice Combines options for a given endpoint and message type.
     * @param _eid The endpoint ID.
     * @param _msgType The OApp message type.
     * @param _extraOptions Additional options passed by the caller.
     * @return options The combination of caller specified options AND enforced options.
     */
    function combineOptions(
        uint32 _eid,
        uint16 _msgType,
        bytes calldata _extraOptions
    ) external view returns (bytes memory options);
}


// File @openzeppelin/contracts/utils/[email protected]

// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)


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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}


// File @openzeppelin/contracts/access/[email protected]

// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _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 @layerzerolabs/oapp-evm/contracts/oapp/libs/[email protected]




/**
 * @title OAppOptionsType3
 * @dev Abstract contract implementing the IOAppOptionsType3 interface with type 3 options.
 */
abstract contract OAppOptionsType3 is IOAppOptionsType3, Ownable {
    uint16 internal constant OPTION_TYPE_3 = 3;

    // @dev The "msgType" should be defined in the child contract.
    mapping(uint32 eid => mapping(uint16 msgType => bytes enforcedOption)) public enforcedOptions;

    /**
     * @dev Sets the enforced options for specific endpoint and message type combinations.
     * @param _enforcedOptions An array of EnforcedOptionParam structures specifying enforced options.
     *
     * @dev Only the owner/admin of the OApp can call this function.
     * @dev Provides a way for the OApp to enforce things like paying for PreCrime, AND/OR minimum dst lzReceive gas amounts etc.
     * @dev These enforced options can vary as the potential options/execution on the remote may differ as per the msgType.
     * eg. Amount of lzReceive() gas necessary to deliver a lzCompose() message adds overhead you dont want to pay
     * if you are only making a standard LayerZero message ie. lzReceive() WITHOUT sendCompose().
     */
    function setEnforcedOptions(EnforcedOptionParam[] calldata _enforcedOptions) public virtual onlyOwner {
        _setEnforcedOptions(_enforcedOptions);
    }

    /**
     * @dev Sets the enforced options for specific endpoint and message type combinations.
     * @param _enforcedOptions An array of EnforcedOptionParam structures specifying enforced options.
     *
     * @dev Provides a way for the OApp to enforce things like paying for PreCrime, AND/OR minimum dst lzReceive gas amounts etc.
     * @dev These enforced options can vary as the potential options/execution on the remote may differ as per the msgType.
     * eg. Amount of lzReceive() gas necessary to deliver a lzCompose() message adds overhead you dont want to pay
     * if you are only making a standard LayerZero message ie. lzReceive() WITHOUT sendCompose().
     */
    function _setEnforcedOptions(EnforcedOptionParam[] memory _enforcedOptions) internal virtual {
        for (uint256 i = 0; i < _enforcedOptions.length; i++) {
            // @dev Enforced options are only available for optionType 3, as type 1 and 2 dont support combining.
            _assertOptionsType3(_enforcedOptions[i].options);
            enforcedOptions[_enforcedOptions[i].eid][_enforcedOptions[i].msgType] = _enforcedOptions[i].options;
        }

        emit EnforcedOptionSet(_enforcedOptions);
    }

    /**
     * @notice Combines options for a given endpoint and message type.
     * @param _eid The endpoint ID.
     * @param _msgType The OAPP message type.
     * @param _extraOptions Additional options passed by the caller.
     * @return options The combination of caller specified options AND enforced options.
     *
     * @dev If there is an enforced lzReceive option:
     * - {gasLimit: 200k, msg.value: 1 ether} AND a caller supplies a lzReceive option: {gasLimit: 100k, msg.value: 0.5 ether}
     * - The resulting options will be {gasLimit: 300k, msg.value: 1.5 ether} when the message is executed on the remote lzReceive() function.
     * @dev This presence of duplicated options is handled off-chain in the verifier/executor.
     */
    function combineOptions(
        uint32 _eid,
        uint16 _msgType,
        bytes calldata _extraOptions
    ) public view virtual returns (bytes memory) {
        bytes memory enforced = enforcedOptions[_eid][_msgType];

        // No enforced options, pass whatever the caller supplied, even if it's empty or legacy type 1/2 options.
        if (enforced.length == 0) return _extraOptions;

        // No caller options, return enforced
        if (_extraOptions.length == 0) return enforced;

        // @dev If caller provided _extraOptions, must be type 3 as its the ONLY type that can be combined.
        if (_extraOptions.length >= 2) {
            _assertOptionsType3(_extraOptions);
            // @dev Remove the first 2 bytes containing the type from the _extraOptions and combine with enforced.
            return bytes.concat(enforced, _extraOptions[2:]);
        }

        // No valid set of options was found.
        revert InvalidOptions(_extraOptions);
    }

    /**
     * @dev Internal function to assert that options are of type 3.
     * @param _options The options to be checked.
     */
    function _assertOptionsType3(bytes memory _options) internal pure virtual {
        uint16 optionsType;
        assembly {
            optionsType := mload(add(_options, 2))
        }
        if (optionsType != OPTION_TYPE_3) revert InvalidOptions(_options);
    }
}


// File @layerzerolabs/oapp-evm/contracts/oapp/[email protected]




/**
 * @title OAppCore
 * @dev Abstract contract implementing the IOAppCore interface with basic OApp configurations.
 */
abstract contract OAppCore is IOAppCore, Ownable {
    // The LayerZero endpoint associated with the given OApp
    ILayerZeroEndpointV2 public immutable endpoint;

    // Mapping to store peers associated with corresponding endpoints
    mapping(uint32 eid => bytes32 peer) public peers;

    /**
     * @dev Constructor to initialize the OAppCore with the provided endpoint and delegate.
     * @param _endpoint The address of the LOCAL Layer Zero endpoint.
     * @param _delegate The delegate capable of making OApp configurations inside of the endpoint.
     *
     * @dev The delegate typically should be set as the owner of the contract.
     */
    constructor(address _endpoint, address _delegate) {
        endpoint = ILayerZeroEndpointV2(_endpoint);

        if (_delegate == address(0)) revert InvalidDelegate();
        endpoint.setDelegate(_delegate);
    }

    /**
     * @notice Sets the peer address (OApp instance) for a corresponding endpoint.
     * @param _eid The endpoint ID.
     * @param _peer The address of the peer to be associated with the corresponding endpoint.
     *
     * @dev Only the owner/admin of the OApp can call this function.
     * @dev Indicates that the peer is trusted to send LayerZero messages to this OApp.
     * @dev Set this to bytes32(0) to remove the peer address.
     * @dev Peer is a bytes32 to accommodate non-evm chains.
     */
    function setPeer(uint32 _eid, bytes32 _peer) public virtual onlyOwner {
        _setPeer(_eid, _peer);
    }

    /**
     * @notice Sets the peer address (OApp instance) for a corresponding endpoint.
     * @param _eid The endpoint ID.
     * @param _peer The address of the peer to be associated with the corresponding endpoint.
     *
     * @dev Indicates that the peer is trusted to send LayerZero messages to this OApp.
     * @dev Set this to bytes32(0) to remove the peer address.
     * @dev Peer is a bytes32 to accommodate non-evm chains.
     */
    function _setPeer(uint32 _eid, bytes32 _peer) internal virtual {
        peers[_eid] = _peer;
        emit PeerSet(_eid, _peer);
    }

    /**
     * @notice Internal function to get the peer address associated with a specific endpoint; reverts if NOT set.
     * ie. the peer is set to bytes32(0).
     * @param _eid The endpoint ID.
     * @return peer The address of the peer associated with the specified endpoint.
     */
    function _getPeerOrRevert(uint32 _eid) internal view virtual returns (bytes32) {
        bytes32 peer = peers[_eid];
        if (peer == bytes32(0)) revert NoPeer(_eid);
        return peer;
    }

    /**
     * @notice Sets the delegate address for the OApp.
     * @param _delegate The address of the delegate to be set.
     *
     * @dev Only the owner/admin of the OApp can call this function.
     * @dev Provides the ability for a delegate to set configs, on behalf of the OApp, directly on the Endpoint contract.
     */
    function setDelegate(address _delegate) public onlyOwner {
        endpoint.setDelegate(_delegate);
    }
}


// File @layerzerolabs/oapp-evm/contracts/oapp/[email protected]




/**
 * @title OAppReceiver
 * @dev Abstract contract implementing the ILayerZeroReceiver interface and extending OAppCore for OApp receivers.
 */
abstract contract OAppReceiver is IOAppReceiver, OAppCore {
    // Custom error message for when the caller is not the registered endpoint/
    error OnlyEndpoint(address addr);

    // @dev The version of the OAppReceiver implementation.
    // @dev Version is bumped when changes are made to this contract.
    uint64 internal constant RECEIVER_VERSION = 2;

    /**
     * @notice Retrieves the OApp version information.
     * @return senderVersion The version of the OAppSender.sol contract.
     * @return receiverVersion The version of the OAppReceiver.sol contract.
     *
     * @dev Providing 0 as the default for OAppSender version. Indicates that the OAppSender is not implemented.
     * ie. this is a RECEIVE only OApp.
     * @dev If the OApp uses both OAppSender and OAppReceiver, then this needs to be override returning the correct versions.
     */
    function oAppVersion() public view virtual returns (uint64 senderVersion, uint64 receiverVersion) {
        return (0, RECEIVER_VERSION);
    }

    /**
     * @notice Indicates whether an address is an approved composeMsg sender to the Endpoint.
     * @dev _origin The origin information containing the source endpoint and sender address.
     *  - srcEid: The source chain endpoint ID.
     *  - sender: The sender address on the src chain.
     *  - nonce: The nonce of the message.
     * @dev _message The lzReceive payload.
     * @param _sender The sender address.
     * @return isSender Is a valid sender.
     *
     * @dev Applications can optionally choose to implement separate composeMsg senders that are NOT the bridging layer.
     * @dev The default sender IS the OAppReceiver implementer.
     */
    function isComposeMsgSender(
        Origin calldata /*_origin*/,
        bytes calldata /*_message*/,
        address _sender
    ) public view virtual returns (bool) {
        return _sender == address(this);
    }

    /**
     * @notice Checks if the path initialization is allowed based on the provided origin.
     * @param origin The origin information containing the source endpoint and sender address.
     * @return Whether the path has been initialized.
     *
     * @dev This indicates to the endpoint that the OApp has enabled msgs for this particular path to be received.
     * @dev This defaults to assuming if a peer has been set, its initialized.
     * Can be overridden by the OApp if there is other logic to determine this.
     */
    function allowInitializePath(Origin calldata origin) public view virtual returns (bool) {
        return peers[origin.srcEid] == origin.sender;
    }

    /**
     * @notice Retrieves the next nonce for a given source endpoint and sender address.
     * @dev _srcEid The source endpoint ID.
     * @dev _sender The sender address.
     * @return nonce The next nonce.
     *
     * @dev The path nonce starts from 1. If 0 is returned it means that there is NO nonce ordered enforcement.
     * @dev Is required by the off-chain executor to determine the OApp expects msg execution is ordered.
     * @dev This is also enforced by the OApp.
     * @dev By default this is NOT enabled. ie. nextNonce is hardcoded to return 0.
     */
    function nextNonce(uint32 /*_srcEid*/, bytes32 /*_sender*/) public view virtual returns (uint64 nonce) {
        return 0;
    }

    /**
     * @dev Entry point for receiving messages or packets from the endpoint.
     * @param _origin The origin information containing the source endpoint and sender address.
     *  - srcEid: The source chain endpoint ID.
     *  - sender: The sender address on the src chain.
     *  - nonce: The nonce of the message.
     * @param _guid The unique identifier for the received LayerZero message.
     * @param _message The payload of the received message.
     * @param _executor The address of the executor for the received message.
     * @param _extraData Additional arbitrary data provided by the corresponding executor.
     *
     * @dev Entry point for receiving msg/packet from the LayerZero endpoint.
     */
    function lzReceive(
        Origin calldata _origin,
        bytes32 _guid,
        bytes calldata _message,
        address _executor,
        bytes calldata _extraData
    ) public payable virtual {
        // Ensures that only the endpoint can attempt to lzReceive() messages to this OApp.
        if (address(endpoint) != msg.sender) revert OnlyEndpoint(msg.sender);

        // Ensure that the sender matches the expected peer for the source endpoint.
        if (_getPeerOrRevert(_origin.srcEid) != _origin.sender) revert OnlyPeer(_origin.srcEid, _origin.sender);

        // Call the internal OApp implementation of lzReceive.
        _lzReceive(_origin, _guid, _message, _executor, _extraData);
    }

    /**
     * @dev Internal function to implement lzReceive logic without needing to copy the basic parameter validation.
     */
    function _lzReceive(
        Origin calldata _origin,
        bytes32 _guid,
        bytes calldata _message,
        address _executor,
        bytes calldata _extraData
    ) internal virtual;
}


// File @openzeppelin/contracts/interfaces/[email protected]

// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)



// File @openzeppelin/contracts/token/ERC20/[email protected]

// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)


/**
 * @dev Interface of the ERC-20 standard as defined in the ERC.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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


// File @openzeppelin/contracts/interfaces/[email protected]

// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)



// File @openzeppelin/contracts/interfaces/[email protected]

// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)



/**
 * @title IERC1363
 * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
 *
 * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
 * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
 */
interface IERC1363 is IERC20, IERC165 {
    /*
     * Note: the ERC-165 identifier for this interface is 0xb0202a11.
     * 0xb0202a11 ===
     *   bytes4(keccak256('transferAndCall(address,uint256)')) ^
     *   bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
     */

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @param data Additional data with no specified format, sent in call to `spender`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}


// File @openzeppelin/contracts/token/ERC20/utils/[email protected]

// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)



/**
 * @title SafeERC20
 * @dev Wrappers around ERC-20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    /**
     * @dev An operation with an ERC-20 token failed.
     */
    error SafeERC20FailedOperation(address token);

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.
     */
    function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {
        return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.
     */
    function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {
        return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     *
     * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
     * only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
     * set here.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            safeTransfer(token, to, value);
        } else if (!token.transferAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
     * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferFromAndCallRelaxed(
        IERC1363 token,
        address from,
        address to,
        uint256 value,
        bytes memory data
    ) internal {
        if (to.code.length == 0) {
            safeTransferFrom(token, from, to, value);
        } else if (!token.transferFromAndCall(from, to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
     * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
     * once without retrying, and relies on the returned value to be true.
     *
     * Reverts if the returned value is other than `true`.
     */
    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            forceApprove(token, to, value);
        } else if (!token.approveAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            // bubble errors
            if iszero(success) {
                let ptr := mload(0x40)
                returndatacopy(ptr, 0, returndatasize())
                revert(ptr, returndatasize())
            }
            returnSize := returndatasize()
            returnValue := mload(0)
        }

        if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        bool success;
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            returnSize := returndatasize()
            returnValue := mload(0)
        }
        return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
    }
}


// File @layerzerolabs/oapp-evm/contracts/oapp/[email protected]





/**
 * @title OAppSender
 * @dev Abstract contract implementing the OAppSender functionality for sending messages to a LayerZero endpoint.
 */
abstract contract OAppSender is OAppCore {
    using SafeERC20 for IERC20;

    // Custom error messages
    error NotEnoughNative(uint256 msgValue);
    error LzTokenUnavailable();

    // @dev The version of the OAppSender implementation.
    // @dev Version is bumped when changes are made to this contract.
    uint64 internal constant SENDER_VERSION = 1;

    /**
     * @notice Retrieves the OApp version information.
     * @return senderVersion The version of the OAppSender.sol contract.
     * @return receiverVersion The version of the OAppReceiver.sol contract.
     *
     * @dev Providing 0 as the default for OAppReceiver version. Indicates that the OAppReceiver is not implemented.
     * ie. this is a SEND only OApp.
     * @dev If the OApp uses both OAppSender and OAppReceiver, then this needs to be override returning the correct versions
     */
    function oAppVersion() public view virtual returns (uint64 senderVersion, uint64 receiverVersion) {
        return (SENDER_VERSION, 0);
    }

    /**
     * @dev Internal function to interact with the LayerZero EndpointV2.quote() for fee calculation.
     * @param _dstEid The destination endpoint ID.
     * @param _message The message payload.
     * @param _options Additional options for the message.
     * @param _payInLzToken Flag indicating whether to pay the fee in LZ tokens.
     * @return fee The calculated MessagingFee for the message.
     *      - nativeFee: The native fee for the message.
     *      - lzTokenFee: The LZ token fee for the message.
     */
    function _quote(
        uint32 _dstEid,
        bytes memory _message,
        bytes memory _options,
        bool _payInLzToken
    ) internal view virtual returns (MessagingFee memory fee) {
        return
            endpoint.quote(
                MessagingParams(_dstEid, _getPeerOrRevert(_dstEid), _message, _options, _payInLzToken),
                address(this)
            );
    }

    /**
     * @dev Internal function to interact with the LayerZero EndpointV2.send() for sending a message.
     * @param _dstEid The destination endpoint ID.
     * @param _message The message payload.
     * @param _options Additional options for the message.
     * @param _fee The calculated LayerZero fee for the message.
     *      - nativeFee: The native fee.
     *      - lzTokenFee: The lzToken fee.
     * @param _refundAddress The address to receive any excess fee values sent to the endpoint.
     * @return receipt The receipt for the sent message.
     *      - guid: The unique identifier for the sent message.
     *      - nonce: The nonce of the sent message.
     *      - fee: The LayerZero fee incurred for the message.
     */
    function _lzSend(
        uint32 _dstEid,
        bytes memory _message,
        bytes memory _options,
        MessagingFee memory _fee,
        address _refundAddress
    ) internal virtual returns (MessagingReceipt memory receipt) {
        // @dev Push corresponding fees to the endpoint, any excess is sent back to the _refundAddress from the endpoint.
        uint256 messageValue = _payNative(_fee.nativeFee);
        if (_fee.lzTokenFee > 0) _payLzToken(_fee.lzTokenFee);

        return
            // solhint-disable-next-line check-send-result
            endpoint.send{ value: messageValue }(
                MessagingParams(_dstEid, _getPeerOrRevert(_dstEid), _message, _options, _fee.lzTokenFee > 0),
                _refundAddress
            );
    }

    /**
     * @dev Internal function to pay the native fee associated with the message.
     * @param _nativeFee The native fee to be paid.
     * @return nativeFee The amount of native currency paid.
     *
     * @dev If the OApp needs to initiate MULTIPLE LayerZero messages in a single transaction,
     * this will need to be overridden because msg.value would contain multiple lzFees.
     * @dev Should be overridden in the event the LayerZero endpoint requires a different native currency.
     * @dev Some EVMs use an ERC20 as a method for paying transactions/gasFees.
     * @dev The endpoint is EITHER/OR, ie. it will NOT support both types of native payment at a time.
     */
    function _payNative(uint256 _nativeFee) internal virtual returns (uint256 nativeFee) {
        if (msg.value != _nativeFee) revert NotEnoughNative(msg.value);
        return _nativeFee;
    }

    /**
     * @dev Internal function to pay the LZ token fee associated with the message.
     * @param _lzTokenFee The LZ token fee to be paid.
     *
     * @dev If the caller is trying to pay in the specified lzToken, then the lzTokenFee is passed to the endpoint.
     * @dev Any excess sent, is passed back to the specified _refundAddress in the _lzSend().
     */
    function _payLzToken(uint256 _lzTokenFee) internal virtual {
        // @dev Cannot cache the token because it is not immutable in the endpoint.
        address lzToken = endpoint.lzToken();
        if (lzToken == address(0)) revert LzTokenUnavailable();

        // Pay LZ token fee by sending tokens to the endpoint.
        IERC20(lzToken).safeTransferFrom(msg.sender, address(endpoint), _lzTokenFee);
    }
}


// File @layerzerolabs/oapp-evm/contracts/oapp/[email protected]



// @dev Import the 'MessagingFee' and 'MessagingReceipt' so it's exposed to OApp implementers
// solhint-disable-next-line no-unused-import

// @dev Import the 'Origin' so it's exposed to OApp implementers
// solhint-disable-next-line no-unused-import


/**
 * @title OApp
 * @dev Abstract contract serving as the base for OApp implementation, combining OAppSender and OAppReceiver functionality.
 */
abstract contract OApp is OAppSender, OAppReceiver {
    /**
     * @dev Constructor to initialize the OApp with the provided endpoint and owner.
     * @param _endpoint The address of the LOCAL LayerZero endpoint.
     * @param _delegate The delegate capable of making OApp configurations inside of the endpoint.
     */
    constructor(address _endpoint, address _delegate) OAppCore(_endpoint, _delegate) {}

    /**
     * @notice Retrieves the OApp version information.
     * @return senderVersion The version of the OAppSender.sol implementation.
     * @return receiverVersion The version of the OAppReceiver.sol implementation.
     */
    function oAppVersion()
        public
        pure
        virtual
        override(OAppSender, OAppReceiver)
        returns (uint64 senderVersion, uint64 receiverVersion)
    {
        return (SENDER_VERSION, RECEIVER_VERSION);
    }
}


// File @layerzerolabs/oapp-evm/contracts/precrime/libs/[email protected]




/**
 * @title InboundPacket
 * @dev Structure representing an inbound packet received by the contract.
 */
struct InboundPacket {
    Origin origin; // Origin information of the packet.
    uint32 dstEid; // Destination endpointId of the packet.
    address receiver; // Receiver address for the packet.
    bytes32 guid; // Unique identifier of the packet.
    uint256 value; // msg.value of the packet.
    address executor; // Executor address for the packet.
    bytes message; // Message payload of the packet.
    bytes extraData; // Additional arbitrary data for the packet.
}

/**
 * @title PacketDecoder
 * @dev Library for decoding LayerZero packets.
 */
library PacketDecoder {
    using PacketV1Codec for bytes;

    /**
     * @dev Decode an inbound packet from the given packet data.
     * @param _packet The packet data to decode.
     * @return packet An InboundPacket struct representing the decoded packet.
     */
    function decode(bytes calldata _packet) internal pure returns (InboundPacket memory packet) {
        packet.origin = Origin(_packet.srcEid(), _packet.sender(), _packet.nonce());
        packet.dstEid = _packet.dstEid();
        packet.receiver = _packet.receiverB20();
        packet.guid = _packet.guid();
        packet.message = _packet.message();
    }

    /**
     * @dev Decode multiple inbound packets from the given packet data and associated message values.
     * @param _packets An array of packet data to decode.
     * @param _packetMsgValues An array of associated message values for each packet.
     * @return packets An array of InboundPacket structs representing the decoded packets.
     */
    function decode(
        bytes[] calldata _packets,
        uint256[] memory _packetMsgValues
    ) internal pure returns (InboundPacket[] memory packets) {
        packets = new InboundPacket[](_packets.length);
        for (uint256 i = 0; i < _packets.length; i++) {
            bytes calldata packet = _packets[i];
            packets[i] = PacketDecoder.decode(packet);
            // @dev Allows the verifier to specify the msg.value that gets passed in lzReceive.
            packets[i].value = _packetMsgValues[i];
        }
    }
}


// File @layerzerolabs/oapp-evm/contracts/precrime/interfaces/[email protected]



// @dev Import the Origin so it's exposed to OAppPreCrimeSimulator implementers.
// solhint-disable-next-line no-unused-import

/**
 * @title IOAppPreCrimeSimulator Interface
 * @dev Interface for the preCrime simulation functionality in an OApp.
 */
interface IOAppPreCrimeSimulator {
    // @dev simulation result used in PreCrime implementation
    error SimulationResult(bytes result);
    error OnlySelf();

    /**
     * @dev Emitted when the preCrime contract address is set.
     * @param preCrimeAddress The address of the preCrime contract.
     */
    event PreCrimeSet(address preCrimeAddress);

    /**
     * @dev Retrieves the address of the preCrime contract implementation.
     * @return The address of the preCrime contract.
     */
    function preCrime() external view returns (address);

    /**
     * @dev Retrieves the address of the OApp contract.
     * @return The address of the OApp contract.
     */
    function oApp() external view returns (address);

    /**
     * @dev Sets the preCrime contract address.
     * @param _preCrime The address of the preCrime contract.
     */
    function setPreCrime(address _preCrime) external;

    /**
     * @dev Mocks receiving a packet, then reverts with a series of data to infer the state/result.
     * @param _packets An array of LayerZero InboundPacket objects representing received packets.
     */
    function lzReceiveAndRevert(InboundPacket[] calldata _packets) external payable;

    /**
     * @dev checks if the specified peer is considered 'trusted' by the OApp.
     * @param _eid The endpoint Id to check.
     * @param _peer The peer to check.
     * @return Whether the peer passed is considered 'trusted' by the OApp.
     */
    function isPeer(uint32 _eid, bytes32 _peer) external view returns (bool);
}


// File @layerzerolabs/oapp-evm/contracts/precrime/interfaces/[email protected]


struct PreCrimePeer {
    uint32 eid;
    bytes32 preCrime;
    bytes32 oApp;
}

// TODO not done yet
interface IPreCrime {
    error OnlyOffChain();

    // for simulate()
    error PacketOversize(uint256 max, uint256 actual);
    error PacketUnsorted();
    error SimulationFailed(bytes reason);

    // for preCrime()
    error SimulationResultNotFound(uint32 eid);
    error InvalidSimulationResult(uint32 eid, bytes reason);
    error CrimeFound(bytes crime);

    function getConfig(bytes[] calldata _packets, uint256[] calldata _packetMsgValues) external returns (bytes memory);

    function simulate(
        bytes[] calldata _packets,
        uint256[] calldata _packetMsgValues
    ) external payable returns (bytes memory);

    function buildSimulationResult() external view returns (bytes memory);

    function preCrime(
        bytes[] calldata _packets,
        uint256[] calldata _packetMsgValues,
        bytes[] calldata _simulations
    ) external;

    function version() external view returns (uint64 major, uint8 minor);
}


// File @layerzerolabs/oapp-evm/contracts/precrime/[email protected]





/**
 * @title OAppPreCrimeSimulator
 * @dev Abstract contract serving as the base for preCrime simulation functionality in an OApp.
 */
abstract contract OAppPreCrimeSimulator is IOAppPreCrimeSimulator, Ownable {
    // The address of the preCrime implementation.
    address public preCrime;

    /**
     * @dev Retrieves the address of the OApp contract.
     * @return The address of the OApp contract.
     *
     * @dev The simulator contract is the base contract for the OApp by default.
     * @dev If the simulator is a separate contract, override this function.
     */
    function oApp() external view virtual returns (address) {
        return address(this);
    }

    /**
     * @dev Sets the preCrime contract address.
     * @param _preCrime The address of the preCrime contract.
     */
    function setPreCrime(address _preCrime) public virtual onlyOwner {
        preCrime = _preCrime;
        emit PreCrimeSet(_preCrime);
    }

    /**
     * @dev Interface for pre-crime simulations. Always reverts at the end with the simulation results.
     * @param _packets An array of InboundPacket objects representing received packets to be delivered.
     *
     * @dev WARNING: MUST revert at the end with the simulation results.
     * @dev Gives the preCrime implementation the ability to mock sending packets to the lzReceive function,
     * WITHOUT actually executing them.
     */
    function lzReceiveAndRevert(InboundPacket[] calldata _packets) public payable virtual {
        for (uint256 i = 0; i < _packets.length; i++) {
            InboundPacket calldata packet = _packets[i];

            // Ignore packets that are not from trusted peers.
            if (!isPeer(packet.origin.srcEid, packet.origin.sender)) continue;

            // @dev Because a verifier is calling this function, it doesnt have access to executor params:
            //  - address _executor
            //  - bytes calldata _extraData
            // preCrime will NOT work for OApps that rely on these two parameters inside of their _lzReceive().
            // They are instead stubbed to default values, address(0) and bytes("")
            // @dev Calling this.lzReceiveSimulate removes ability for assembly return 0 callstack exit,
            // which would cause the revert to be ignored.
            this.lzReceiveSimulate{ value: packet.value }(
                packet.origin,
                packet.guid,
                packet.message,
                packet.executor,
                packet.extraData
            );
        }

        // @dev Revert with the simulation results. msg.sender must implement IPreCrime.buildSimulationResult().
        revert SimulationResult(IPreCrime(msg.sender).buildSimulationResult());
    }

    /**
     * @dev Is effectively an internal function because msg.sender must be address(this).
     * Allows resetting the call stack for 'internal' calls.
     * @param _origin The origin information containing the source endpoint and sender address.
     *  - srcEid: The source chain endpoint ID.
     *  - sender: The sender address on the src chain.
     *  - nonce: The nonce of the message.
     * @param _guid The unique identifier of the packet.
     * @param _message The message payload of the packet.
     * @param _executor The executor address for the packet.
     * @param _extraData Additional data for the packet.
     */
    function lzReceiveSimulate(
        Origin calldata _origin,
        bytes32 _guid,
        bytes calldata _message,
        address _executor,
        bytes calldata _extraData
    ) external payable virtual {
        // @dev Ensure ONLY can be called 'internally'.
        if (msg.sender != address(this)) revert OnlySelf();
        _lzReceiveSimulate(_origin, _guid, _message, _executor, _extraData);
    }

    /**
     * @dev Internal function to handle the OAppPreCrimeSimulator simulated receive.
     * @param _origin The origin information.
     *  - srcEid: The source chain endpoint ID.
     *  - sender: The sender address from the src chain.
     *  - nonce: The nonce of the LayerZero message.
     * @param _guid The GUID of the LayerZero message.
     * @param _message The LayerZero message.
     * @param _executor The address of the off-chain executor.
     * @param _extraData Arbitrary data passed by the msg executor.
     *
     * @dev Enables the preCrime simulator to mock sending lzReceive() messages,
     * routes the msg down from the OAppPreCrimeSimulator, and back up to the OAppReceiver.
     */
    function _lzReceiveSimulate(
        Origin calldata _origin,
        bytes32 _guid,
        bytes calldata _message,
        address _executor,
        bytes calldata _extraData
    ) internal virtual;

    /**
     * @dev checks if the specified peer is considered 'trusted' by the OApp.
     * @param _eid The endpoint Id to check.
     * @param _peer The peer to check.
     * @return Whether the peer passed is considered 'trusted' by the OApp.
     */
    function isPeer(uint32 _eid, bytes32 _peer) public view virtual returns (bool);
}


// File @layerzerolabs/oft-evm/contracts/interfaces/[email protected]



/**
 * @dev Struct representing token parameters for the OFT send() operation.
 */
struct SendParam {
    uint32 dstEid; // Destination endpoint ID.
    bytes32 to; // Recipient address.
    uint256 amountLD; // Amount to send in local decimals.
    uint256 minAmountLD; // Minimum amount to send in local decimals.
    bytes extraOptions; // Additional options supplied by the caller to be used in the LayerZero message.
    bytes composeMsg; // The composed message for the send() operation.
    bytes oftCmd; // The OFT command to be executed, unused in default OFT implementations.
}

/**
 * @dev Struct representing OFT limit information.
 * @dev These amounts can change dynamically and are up the specific oft implementation.
 */
struct OFTLimit {
    uint256 minAmountLD; // Minimum amount in local decimals that can be sent to the recipient.
    uint256 maxAmountLD; // Maximum amount in local decimals that can be sent to the recipient.
}

/**
 * @dev Struct representing OFT receipt information.
 */
struct OFTReceipt {
    uint256 amountSentLD; // Amount of tokens ACTUALLY debited from the sender in local decimals.
    // @dev In non-default implementations, the amountReceivedLD COULD differ from this value.
    uint256 amountReceivedLD; // Amount of tokens to be received on the remote side.
}

/**
 * @dev Struct representing OFT fee details.
 * @dev Future proof mechanism to provide a standardized way to communicate fees to things like a UI.
 */
struct OFTFeeDetail {
    int256 feeAmountLD; // Amount of the fee in local decimals.
    string description; // Description of the fee.
}

/**
 * @title IOFT
 * @dev Interface for the OftChain (OFT) token.
 * @dev Does not inherit ERC20 to accommodate usage by OFTAdapter as well.
 * @dev This specific interface ID is '0x02e49c2c'.
 */
interface IOFT {
    // Custom error messages
    error InvalidLocalDecimals();
    error SlippageExceeded(uint256 amountLD, uint256 minAmountLD);
    error AmountSDOverflowed(uint256 amountSD);

    // Events
    event OFTSent(
        bytes32 indexed guid, // GUID of the OFT message.
        uint32 dstEid, // Destination Endpoint ID.
        address indexed fromAddress, // Address of the sender on the src chain.
        uint256 amountSentLD, // Amount of tokens sent in local decimals.
        uint256 amountReceivedLD // Amount of tokens received in local decimals.
    );
    event OFTReceived(
        bytes32 indexed guid, // GUID of the OFT message.
        uint32 srcEid, // Source Endpoint ID.
        address indexed toAddress, // Address of the recipient on the dst chain.
        uint256 amountReceivedLD // Amount of tokens received in local decimals.
    );

    /**
     * @notice Retrieves interfaceID and the version of the OFT.
     * @return interfaceId The interface ID.
     * @return version The version.
     *
     * @dev interfaceId: This specific interface ID is '0x02e49c2c'.
     * @dev version: Indicates a cross-chain compatible msg encoding with other OFTs.
     * @dev If a new feature is added to the OFT cross-chain msg encoding, the version will be incremented.
     * ie. localOFT version(x,1) CAN send messages to remoteOFT version(x,1)
     */
    function oftVersion() external view returns (bytes4 interfaceId, uint64 version);

    /**
     * @notice Retrieves the address of the token associated with the OFT.
     * @return token The address of the ERC20 token implementation.
     */
    function token() external view returns (address);

    /**
     * @notice Indicates whether the OFT contract requires approval of the 'token()' to send.
     * @return requiresApproval Needs approval of the underlying token implementation.
     *
     * @dev Allows things like wallet implementers to determine integration requirements,
     * without understanding the underlying token implementation.
     */
    function approvalRequired() external view returns (bool);

    /**
     * @notice Retrieves the shared decimals of the OFT.
     * @return sharedDecimals The shared decimals of the OFT.
     */
    function sharedDecimals() external view returns (uint8);

    /**
     * @notice Provides the fee breakdown and settings data for an OFT. Unused in the default implementation.
     * @param _sendParam The parameters for the send operation.
     * @return limit The OFT limit information.
     * @return oftFeeDetails The details of OFT fees.
     * @return receipt The OFT receipt information.
     */
    function quoteOFT(
        SendParam calldata _sendParam
    ) external view returns (OFTLimit memory, OFTFeeDetail[] memory oftFeeDetails, OFTReceipt memory);

    /**
     * @notice Provides a quote for the send() operation.
     * @param _sendParam The parameters for the send() operation.
     * @param _payInLzToken Flag indicating whether the caller is paying in the LZ token.
     * @return fee The calculated LayerZero messaging fee from the send() operation.
     *
     * @dev MessagingFee: LayerZero msg fee
     *  - nativeFee: The native fee.
     *  - lzTokenFee: The lzToken fee.
     */
    function quoteSend(SendParam calldata _sendParam, bool _payInLzToken) external view returns (MessagingFee memory);

    /**
     * @notice Executes the send() operation.
     * @param _sendParam The parameters for the send operation.
     * @param _fee The fee information supplied by the caller.
     *      - nativeFee: The native fee.
     *      - lzTokenFee: The lzToken fee.
     * @param _refundAddress The address to receive any excess funds from fees etc. on the src.
     * @return receipt The LayerZero messaging receipt from the send() operation.
     * @return oftReceipt The OFT receipt information.
     *
     * @dev MessagingReceipt: LayerZero msg receipt
     *  - guid: The unique identifier for the sent message.
     *  - nonce: The nonce of the sent message.
     *  - fee: The LayerZero fee incurred for the message.
     */
    function send(
        SendParam calldata _sendParam,
        MessagingFee calldata _fee,
        address _refundAddress
    ) external payable returns (MessagingReceipt memory, OFTReceipt memory);
}


// File @layerzerolabs/oapp-evm/contracts/oapp/interfaces/[email protected]



/**
 * @title IOAppMsgInspector
 * @dev Interface for the OApp Message Inspector, allowing examination of message and options contents.
 */
interface IOAppMsgInspector {
    // Custom error message for inspection failure
    error InspectionFailed(bytes message, bytes options);

    /**
     * @notice Allows the inspector to examine LayerZero message contents and optionally throw a revert if invalid.
     * @param _message The message payload to be inspected.
     * @param _options Additional options or parameters for inspection.
     * @return valid A boolean indicating whether the inspection passed (true) or failed (false).
     *
     * @dev Optionally done as a revert, OR use the boolean provided to handle the failure.
     */
    function inspect(bytes calldata _message, bytes calldata _options) external view returns (bool valid);
}


// File @layerzerolabs/oft-evm/contracts/libs/[email protected]



library OFTComposeMsgCodec {
    // Offset constants for decoding composed messages
    uint8 private constant NONCE_OFFSET = 8;
    uint8 private constant SRC_EID_OFFSET = 12;
    uint8 private constant AMOUNT_LD_OFFSET = 44;
    uint8 private constant COMPOSE_FROM_OFFSET = 76;

    /**
     * @dev Encodes a OFT composed message.
     * @param _nonce The nonce value.
     * @param _srcEid The source endpoint ID.
     * @param _amountLD The amount in local decimals.
     * @param _composeMsg The composed message.
     * @return _msg The encoded Composed message.
     */
    function encode(
        uint64 _nonce,
        uint32 _srcEid,
        uint256 _amountLD,
        bytes memory _composeMsg // 0x[composeFrom][composeMsg]
    ) internal pure returns (bytes memory _msg) {
        _msg = abi.encodePacked(_nonce, _srcEid, _amountLD, _composeMsg);
    }

    /**
     * @dev Retrieves the nonce for the composed message.
     * @param _msg The message.
     * @return The nonce value.
     */
    function nonce(bytes calldata _msg) internal pure returns (uint64) {
        return uint64(bytes8(_msg[:NONCE_OFFSET]));
    }

    /**
     * @dev Retrieves the source endpoint ID for the composed message.
     * @param _msg The message.
     * @return The source endpoint ID.
     */
    function srcEid(bytes calldata _msg) internal pure returns (uint32) {
        return uint32(bytes4(_msg[NONCE_OFFSET:SRC_EID_OFFSET]));
    }

    /**
     * @dev Retrieves the amount in local decimals from the composed message.
     * @param _msg The message.
     * @return The amount in local decimals.
     */
    function amountLD(bytes calldata _msg) internal pure returns (uint256) {
        return uint256(bytes32(_msg[SRC_EID_OFFSET:AMOUNT_LD_OFFSET]));
    }

    /**
     * @dev Retrieves the composeFrom value from the composed message.
     * @param _msg The message.
     * @return The composeFrom value.
     */
    function composeFrom(bytes calldata _msg) internal pure returns (bytes32) {
        return bytes32(_msg[AMOUNT_LD_OFFSET:COMPOSE_FROM_OFFSET]);
    }

    /**
     * @dev Retrieves the composed message.
     * @param _msg The message.
     * @return The composed message.
     */
    function composeMsg(bytes calldata _msg) internal pure returns (bytes memory) {
        return _msg[COMPOSE_FROM_OFFSET:];
    }

    /**
     * @dev Converts an address to bytes32.
     * @param _addr The address to convert.
     * @return The bytes32 representation of the address.
     */
    function addressToBytes32(address _addr) internal pure returns (bytes32) {
        return bytes32(uint256(uint160(_addr)));
    }

    /**
     * @dev Converts bytes32 to an address.
     * @param _b The bytes32 value to convert.
     * @return The address representation of bytes32.
     */
    function bytes32ToAddress(bytes32 _b) internal pure returns (address) {
        return address(uint160(uint256(_b)));
    }
}


// File @layerzerolabs/oft-evm/contracts/libs/[email protected]



library OFTMsgCodec {
    // Offset constants for encoding and decoding OFT messages
    uint8 private constant SEND_TO_OFFSET = 32;
    uint8 private constant SEND_AMOUNT_SD_OFFSET = 40;

    /**
     * @dev Encodes an OFT LayerZero message.
     * @param _sendTo The recipient address.
     * @param _amountShared The amount in shared decimals.
     * @param _composeMsg The composed message.
     * @return _msg The encoded message.
     * @return hasCompose A boolean indicating whether the message has a composed payload.
     */
    function encode(
        bytes32 _sendTo,
        uint64 _amountShared,
        bytes memory _composeMsg
    ) internal view returns (bytes memory _msg, bool hasCompose) {
        hasCompose = _composeMsg.length > 0;
        // @dev Remote chains will want to know the composed function caller ie. msg.sender on the src.
        _msg = hasCompose
            ? abi.encodePacked(_sendTo, _amountShared, addressToBytes32(msg.sender), _composeMsg)
            : abi.encodePacked(_sendTo, _amountShared);
    }

    /**
     * @dev Checks if the OFT message is composed.
     * @param _msg The OFT message.
     * @return A boolean indicating whether the message is composed.
     */
    function isComposed(bytes calldata _msg) internal pure returns (bool) {
        return _msg.length > SEND_AMOUNT_SD_OFFSET;
    }

    /**
     * @dev Retrieves the recipient address from the OFT message.
     * @param _msg The OFT message.
     * @return The recipient address.
     */
    function sendTo(bytes calldata _msg) internal pure returns (bytes32) {
        return bytes32(_msg[:SEND_TO_OFFSET]);
    }

    /**
     * @dev Retrieves the amount in shared decimals from the OFT message.
     * @param _msg The OFT message.
     * @return The amount in shared decimals.
     */
    function amountSD(bytes calldata _msg) internal pure returns (uint64) {
        return uint64(bytes8(_msg[SEND_TO_OFFSET:SEND_AMOUNT_SD_OFFSET]));
    }

    /**
     * @dev Retrieves the composed message from the OFT message.
     * @param _msg The OFT message.
     * @return The composed message.
     */
    function composeMsg(bytes calldata _msg) internal pure returns (bytes memory) {
        return _msg[SEND_AMOUNT_SD_OFFSET:];
    }

    /**
     * @dev Converts an address to bytes32.
     * @param _addr The address to convert.
     * @return The bytes32 representation of the address.
     */
    function addressToBytes32(address _addr) internal pure returns (bytes32) {
        return bytes32(uint256(uint160(_addr)));
    }

    /**
     * @dev Converts bytes32 to an address.
     * @param _b The bytes32 value to convert.
     * @return The address representation of bytes32.
     */
    function bytes32ToAddress(bytes32 _b) internal pure returns (address) {
        return address(uint160(uint256(_b)));
    }
}


// File @layerzerolabs/oft-evm/contracts/[email protected]







/**
 * @title OFTCore
 * @dev Abstract contract for the OftChain (OFT) token.
 */
abstract contract OFTCore is IOFT, OApp, OAppPreCrimeSimulator, OAppOptionsType3 {
    using OFTMsgCodec for bytes;
    using OFTMsgCodec for bytes32;

    // @notice Provides a conversion rate when swapping between denominations of SD and LD
    //      - shareDecimals == SD == shared Decimals
    //      - localDecimals == LD == local decimals
    // @dev Considers that tokens have different decimal amounts on various chains.
    // @dev eg.
    //  For a token
    //      - locally with 4 decimals --> 1.2345 => uint(12345)
    //      - remotely with 2 decimals --> 1.23 => uint(123)
    //      - The conversion rate would be 10 ** (4 - 2) = 100
    //  @dev If you want to send 1.2345 -> (uint 12345), you CANNOT represent that value on the remote,
    //  you can only display 1.23 -> uint(123).
    //  @dev To preserve the dust that would otherwise be lost on that conversion,
    //  we need to unify a denomination that can be represented on ALL chains inside of the OFT mesh
    uint256 public immutable decimalConversionRate;

    // @notice Msg types that are used to identify the various OFT operations.
    // @dev This can be extended in child contracts for non-default oft operations
    // @dev These values are used in things like combineOptions() in OAppOptionsType3.sol.
    uint16 public constant SEND = 1;
    uint16 public constant SEND_AND_CALL = 2;

    // Address of an optional contract to inspect both 'message' and 'options'
    address public msgInspector;
    event MsgInspectorSet(address inspector);

    /**
     * @dev Constructor.
     * @param _localDecimals The decimals of the token on the local chain (this chain).
     * @param _endpoint The address of the LayerZero endpoint.
     * @param _delegate The delegate capable of making OApp configurations inside of the endpoint.
     */
    constructor(uint8 _localDecimals, address _endpoint, address _delegate) OApp(_endpoint, _delegate) {
        if (_localDecimals < sharedDecimals()) revert InvalidLocalDecimals();
        decimalConversionRate = 10 ** (_localDecimals - sharedDecimals());
    }

    /**
     * @notice Retrieves interfaceID and the version of the OFT.
     * @return interfaceId The interface ID.
     * @return version The version.
     *
     * @dev interfaceId: This specific interface ID is '0x02e49c2c'.
     * @dev version: Indicates a cross-chain compatible msg encoding with other OFTs.
     * @dev If a new feature is added to the OFT cross-chain msg encoding, the version will be incremented.
     * ie. localOFT version(x,1) CAN send messages to remoteOFT version(x,1)
     */
    function oftVersion() external pure virtual returns (bytes4 interfaceId, uint64 version) {
        return (type(IOFT).interfaceId, 1);
    }

    /**
     * @dev Retrieves the shared decimals of the OFT.
     * @return The shared decimals of the OFT.
     *
     * @dev Sets an implicit cap on the amount of tokens, over uint64.max() will need some sort of outbound cap / totalSupply cap
     * Lowest common decimal denominator between chains.
     * Defaults to 6 decimal places to provide up to 18,446,744,073,709.551615 units (max uint64).
     * For tokens exceeding this totalSupply(), they will need to override the sharedDecimals function with something smaller.
     * ie. 4 sharedDecimals would be 1,844,674,407,370,955.1615
     */
    function sharedDecimals() public view virtual returns (uint8) {
        return 6;
    }

    /**
     * @dev Sets the message inspector address for the OFT.
     * @param _msgInspector The address of the message inspector.
     *
     * @dev This is an optional contract that can be used to inspect both 'message' and 'options'.
     * @dev Set it to address(0) to disable it, or set it to a contract address to enable it.
     */
    function setMsgInspector(address _msgInspector) public virtual onlyOwner {
        msgInspector = _msgInspector;
        emit MsgInspectorSet(_msgInspector);
    }

    /**
     * @notice Provides the fee breakdown and settings data for an OFT. Unused in the default implementation.
     * @param _sendParam The parameters for the send operation.
     * @return oftLimit The OFT limit information.
     * @return oftFeeDetails The details of OFT fees.
     * @return oftReceipt The OFT receipt information.
     */
    function quoteOFT(
        SendParam calldata _sendParam
    )
        external
        view
        virtual
        returns (OFTLimit memory oftLimit, OFTFeeDetail[] memory oftFeeDetails, OFTReceipt memory oftReceipt)
    {
        uint256 minAmountLD = 0; // Unused in the default implementation.
        uint256 maxAmountLD = IERC20(this.token()).totalSupply(); // Unused in the default implementation.
        oftLimit = OFTLimit(minAmountLD, maxAmountLD);

        // Unused in the default implementation; reserved for future complex fee details.
        oftFeeDetails = new OFTFeeDetail[](0);

        // @dev This is the same as the send() operation, but without the actual send.
        // - amountSentLD is the amount in local decimals that would be sent from the sender.
        // - amountReceivedLD is the amount in local decimals that will be credited to the recipient on the remote OFT instance.
        // @dev The amountSentLD MIGHT not equal the amount the user actually receives. HOWEVER, the default does.
        (uint256 amountSentLD, uint256 amountReceivedLD) = _debitView(
            _sendParam.amountLD,
            _sendParam.minAmountLD,
            _sendParam.dstEid
        );
        oftReceipt = OFTReceipt(amountSentLD, amountReceivedLD);
    }

    /**
     * @notice Provides a quote for the send() operation.
     * @param _sendParam The parameters for the send() operation.
     * @param _payInLzToken Flag indicating whether the caller is paying in the LZ token.
     * @return msgFee The calculated LayerZero messaging fee from the send() operation.
     *
     * @dev MessagingFee: LayerZero msg fee
     *  - nativeFee: The native fee.
     *  - lzTokenFee: The lzToken fee.
     */
    function quoteSend(
        SendParam calldata _sendParam,
        bool _payInLzToken
    ) external view virtual returns (MessagingFee memory msgFee) {
        // @dev mock the amount to receive, this is the same operation used in the send().
        // The quote is as similar as possible to the actual send() operation.
        (, uint256 amountReceivedLD) = _debitView(_sendParam.amountLD, _sendParam.minAmountLD, _sendParam.dstEid);

        // @dev Builds the options and OFT message to quote in the endpoint.
        (bytes memory message, bytes memory options) = _buildMsgAndOptions(_sendParam, amountReceivedLD);

        // @dev Calculates the LayerZero fee for the send() operation.
        return _quote(_sendParam.dstEid, message, options, _payInLzToken);
    }

    /**
     * @dev Executes the send operation.
     * @param _sendParam The parameters for the send operation.
     * @param _fee The calculated fee for the send() operation.
     *      - nativeFee: The native fee.
     *      - lzTokenFee: The lzToken fee.
     * @param _refundAddress The address to receive any excess funds.
     * @return msgReceipt The receipt for the send operation.
     * @return oftReceipt The OFT receipt information.
     *
     * @dev MessagingReceipt: LayerZero msg receipt
     *  - guid: The unique identifier for the sent message.
     *  - nonce: The nonce of the sent message.
     *  - fee: The LayerZero fee incurred for the message.
     */
    function send(
        SendParam calldata _sendParam,
        MessagingFee calldata _fee,
        address _refundAddress
    ) external payable virtual returns (MessagingReceipt memory msgReceipt, OFTReceipt memory oftReceipt) {
        return _send(_sendParam, _fee, _refundAddress);
    }

    /**
     * @dev Internal function to execute the send operation.
     * @param _sendParam The parameters for the send operation.
     * @param _fee The calculated fee for the send() operation.
     *      - nativeFee: The native fee.
     *      - lzTokenFee: The lzToken fee.
     * @param _refundAddress The address to receive any excess funds.
     * @return msgReceipt The receipt for the send operation.
     * @return oftReceipt The OFT receipt information.
     *
     * @dev MessagingReceipt: LayerZero msg receipt
     *  - guid: The unique identifier for the sent message.
     *  - nonce: The nonce of the sent message.
     *  - fee: The LayerZero fee incurred for the message.
     */
    function _send(
        SendParam calldata _sendParam,
        MessagingFee calldata _fee,
        address _refundAddress
    ) internal virtual returns (MessagingReceipt memory msgReceipt, OFTReceipt memory oftReceipt) {
        // @dev Applies the token transfers regarding this send() operation.
        // - amountSentLD is the amount in local decimals that was ACTUALLY sent/debited from the sender.
        // - amountReceivedLD is the amount in local decimals that will be received/credited to the recipient on the remote OFT instance.
        (uint256 amountSentLD, uint256 amountReceivedLD) = _debit(
            msg.sender,
            _sendParam.amountLD,
            _sendParam.minAmountLD,
            _sendParam.dstEid
        );

        // @dev Builds the options and OFT message to quote in the endpoint.
        (bytes memory message, bytes memory options) = _buildMsgAndOptions(_sendParam, amountReceivedLD);

        // @dev Sends the message to the LayerZero endpoint and returns the LayerZero msg receipt.
        msgReceipt = _lzSend(_sendParam.dstEid, message, options, _fee, _refundAddress);
        // @dev Formulate the OFT receipt.
        oftReceipt = OFTReceipt(amountSentLD, amountReceivedLD);

        emit OFTSent(msgReceipt.guid, _sendParam.dstEid, msg.sender, amountSentLD, amountReceivedLD);
    }

    /**
     * @dev Internal function to build the message and options.
     * @param _sendParam The parameters for the send() operation.
     * @param _amountLD The amount in local decimals.
     * @return message The encoded message.
     * @return options The encoded options.
     */
    function _buildMsgAndOptions(
        SendParam calldata _sendParam,
        uint256 _amountLD
    ) internal view virtual returns (bytes memory message, bytes memory options) {
        bool hasCompose;
        // @dev This generated message has the msg.sender encoded into the payload so the remote knows who the caller is.
        (message, hasCompose) = OFTMsgCodec.encode(
            _sendParam.to,
            _toSD(_amountLD),
            // @dev Must be include a non empty bytes if you want to compose, EVEN if you dont need it on the remote.
            // EVEN if you dont require an arbitrary payload to be sent... eg. '0x01'
            _sendParam.composeMsg
        );
        // @dev Change the msg type depending if its composed or not.
        uint16 msgType = hasCompose ? SEND_AND_CALL : SEND;
        // @dev Combine the callers _extraOptions with the enforced options via the OAppOptionsType3.
        options = combineOptions(_sendParam.dstEid, msgType, _sendParam.extraOptions);

        // @dev Optionally inspect the message and options depending if the OApp owner has set a msg inspector.
        // @dev If it fails inspection, needs to revert in the implementation. ie. does not rely on return boolean
        address inspector = msgInspector; // caches the msgInspector to avoid potential double storage read
        if (inspector != address(0)) IOAppMsgInspector(inspector).inspect(message, options);
    }

    /**
     * @dev Internal function to handle the receive on the LayerZero endpoint.
     * @param _origin The origin information.
     *  - srcEid: The source chain endpoint ID.
     *  - sender: The sender address from the src chain.
     *  - nonce: The nonce of the LayerZero message.
     * @param _guid The unique identifier for the received LayerZero message.
     * @param _message The encoded message.
     * @dev _executor The address of the executor.
     * @dev _extraData Additional data.
     */
    function _lzReceive(
        Origin calldata _origin,
        bytes32 _guid,
        bytes calldata _message,
        address /*_executor*/, // @dev unused in the default implementation.
        bytes calldata /*_extraData*/ // @dev unused in the default implementation.
    ) internal virtual override {
        // @dev The src sending chain doesnt know the address length on this chain (potentially non-evm)
        // Thus everything is bytes32() encoded in flight.
        address toAddress = _message.sendTo().bytes32ToAddress();
        // @dev Credit the amountLD to the recipient and return the ACTUAL amount the recipient received in local decimals
        uint256 amountReceivedLD = _credit(toAddress, _toLD(_message.amountSD()), _origin.srcEid);

        if (_message.isComposed()) {
            // @dev Proprietary composeMsg format for the OFT.
            bytes memory composeMsg = OFTComposeMsgCodec.encode(
                _origin.nonce,
                _origin.srcEid,
                amountReceivedLD,
                _message.composeMsg()
            );

            // @dev Stores the lzCompose payload that will be executed in a separate tx.
            // Standardizes functionality for executing arbitrary contract invocation on some non-evm chains.
            // @dev The off-chain executor will listen and process the msg based on the src-chain-callers compose options passed.
            // @dev The index is used when a OApp needs to compose multiple msgs on lzReceive.
            // For default OFT implementation there is only 1 compose msg per lzReceive, thus its always 0.
            endpoint.sendCompose(toAddress, _guid, 0 /* the index of the composed message*/, composeMsg);
        }

        emit OFTReceived(_guid, _origin.srcEid, toAddress, amountReceivedLD);
    }

    /**
     * @dev Internal function to handle the OAppPreCrimeSimulator simulated receive.
     * @param _origin The origin information.
     *  - srcEid: The source chain endpoint ID.
     *  - sender: The sender address from the src chain.
     *  - nonce: The nonce of the LayerZero message.
     * @param _guid The unique identifier for the received LayerZero message.
     * @param _message The LayerZero message.
     * @param _executor The address of the off-chain executor.
     * @param _extraData Arbitrary data passed by the msg executor.
     *
     * @dev Enables the preCrime simulator to mock sending lzReceive() messages,
     * routes the msg down from the OAppPreCrimeSimulator, and back up to the OAppReceiver.
     */
    function _lzReceiveSimulate(
        Origin calldata _origin,
        bytes32 _guid,
        bytes calldata _message,
        address _executor,
        bytes calldata _extraData
    ) internal virtual override {
        _lzReceive(_origin, _guid, _message, _executor, _extraData);
    }

    /**
     * @dev Check if the peer is considered 'trusted' by the OApp.
     * @param _eid The endpoint ID to check.
     * @param _peer The peer to check.
     * @return Whether the peer passed is considered 'trusted' by the OApp.
     *
     * @dev Enables OAppPreCrimeSimulator to check whether a potential Inbound Packet is from a trusted source.
     */
    function isPeer(uint32 _eid, bytes32 _peer) public view virtual override returns (bool) {
        return peers[_eid] == _peer;
    }

    /**
     * @dev Internal function to remove dust from the given local decimal amount.
     * @param _amountLD The amount in local decimals.
     * @return amountLD The amount after removing dust.
     *
     * @dev Prevents the loss of dust when moving amounts between chains with different decimals.
     * @dev eg. uint(123) with a conversion rate of 100 becomes uint(100).
     */
    function _removeDust(uint256 _amountLD) internal view virtual returns (uint256 amountLD) {
        return (_amountLD / decimalConversionRate) * decimalConversionRate;
    }

    /**
     * @dev Internal function to convert an amount from shared decimals into local decimals.
     * @param _amountSD The amount in shared decimals.
     * @return amountLD The amount in local decimals.
     */
    function _toLD(uint64 _amountSD) internal view virtual returns (uint256 amountLD) {
        return _amountSD * decimalConversionRate;
    }

    /**
     * @dev Internal function to convert an amount from local decimals into shared decimals.
     * @param _amountLD The amount in local decimals.
     * @return amountSD The amount in shared decimals.
     *
     * @dev Reverts if the _amountLD in shared decimals overflows uint64.
     * @dev eg. uint(2**64 + 123) with a conversion rate of 1 wraps around 2**64 to uint(123).
     */
    function _toSD(uint256 _amountLD) internal view virtual returns (uint64 amountSD) {
        uint256 _amountSD = _amountLD / decimalConversionRate;
        if (_amountSD > type(uint64).max) revert AmountSDOverflowed(_amountSD);
        return uint64(_amountSD);
    }

    /**
     * @dev Internal function to mock the amount mutation from a OFT debit() operation.
     * @param _amountLD The amount to send in local decimals.
     * @param _minAmountLD The minimum amount to send in local decimals.
     * @dev _dstEid The destination endpoint ID.
     * @return amountSentLD The amount sent, in local decimals.
     * @return amountReceivedLD The amount to be received on the remote chain, in local decimals.
     *
     * @dev This is where things like fees would be calculated and deducted from the amount to be received on the remote.
     */
    function _debitView(
        uint256 _amountLD,
        uint256 _minAmountLD,
        uint32 /*_dstEid*/
    ) internal view virtual returns (uint256 amountSentLD, uint256 amountReceivedLD) {
        // @dev Remove the dust so nothing is lost on the conversion between chains with different decimals for the token.
        amountSentLD = _removeDust(_amountLD);
        // @dev The amount to send is the same as amount received in the default implementation.
        amountReceivedLD = amountSentLD;

        // @dev Check for slippage.
        if (amountReceivedLD < _minAmountLD) {
            revert SlippageExceeded(amountReceivedLD, _minAmountLD);
        }
    }

    /**
     * @dev Internal function to perform a debit operation.
     * @param _from The address to debit.
     * @param _amountLD The amount to send in local decimals.
     * @param _minAmountLD The minimum amount to send in local decimals.
     * @param _dstEid The destination endpoint ID.
     * @return amountSentLD The amount sent in local decimals.
     * @return amountReceivedLD The amount received in local decimals on the remote.
     *
     * @dev Defined here but are intended to be overriden depending on the OFT implementation.
     * @dev Depending on OFT implementation the _amountLD could differ from the amountReceivedLD.
     */
    function _debit(
        address _from,
        uint256 _amountLD,
        uint256 _minAmountLD,
        uint32 _dstEid
    ) internal virtual returns (uint256 amountSentLD, uint256 amountReceivedLD);

    /**
     * @dev Internal function to perform a credit operation.
     * @param _to The address to credit.
     * @param _amountLD The amount to credit in local decimals.
     * @param _srcEid The source endpoint ID.
     * @return amountReceivedLD The amount ACTUALLY received in local decimals.
     *
     * @dev Defined here but are intended to be overriden depending on the OFT implementation.
     * @dev Depending on OFT implementation the _amountLD could differ from the amountReceivedLD.
     */
    function _credit(
        address _to,
        uint256 _amountLD,
        uint32 _srcEid
    ) internal virtual returns (uint256 amountReceivedLD);
}


// File @openzeppelin/contracts/interfaces/[email protected]

// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC6093.sol)

/**
 * @dev Standard ERC-20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC-721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC-1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}


// File @openzeppelin/contracts/token/ERC20/extensions/[email protected]

// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/extensions/IERC20Metadata.sol)


/**
 * @dev Interface for the optional metadata functions from the ERC-20 standard.
 */
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 @openzeppelin/contracts/token/ERC20/[email protected]

// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/ERC20.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}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * 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 ERC-20
 * applications.
 */
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
    mapping(address account => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * Both 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 returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual 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 default value returned by this function, unless
     * it's 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 returns (uint8) {
        return 18;
    }

    /// @inheritdoc IERC20
    function totalSupply() public view virtual returns (uint256) {
        return _totalSupply;
    }

    /// @inheritdoc IERC20
    function balanceOf(address account) public view virtual returns (uint256) {
        return _balances[account];
    }

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

    /// @inheritdoc IERC20
    function allowance(address owner, address spender) public view virtual returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, value);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Skips emitting an {Approval} event indicating an allowance update. This is not
     * required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve].
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `value`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `value`.
     */
    function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, value);
        _transfer(from, to, value);
        return true;
    }

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to`.
     *
     * 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.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _transfer(address from, address to, uint256 value) internal {
        if (from == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        if (to == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(from, to, value);
    }

    /**
     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
     * this function.
     *
     * Emits a {Transfer} event.
     */
    function _update(address from, address to, uint256 value) internal virtual {
        if (from == address(0)) {
            // Overflow check required: The rest of the code assumes that totalSupply never overflows
            _totalSupply += value;
        } else {
            uint256 fromBalance = _balances[from];
            if (fromBalance < value) {
                revert ERC20InsufficientBalance(from, fromBalance, value);
            }
            unchecked {
                // Overflow not possible: value <= fromBalance <= totalSupply.
                _balances[from] = fromBalance - value;
            }
        }

        if (to == address(0)) {
            unchecked {
                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
                _totalSupply -= value;
            }
        } else {
            unchecked {
                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
                _balances[to] += value;
            }
        }

        emit Transfer(from, to, value);
    }

    /**
     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
     * Relies on the `_update` mechanism
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _mint(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(address(0), account, value);
    }

    /**
     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
     * Relies on the `_update` mechanism.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead
     */
    function _burn(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        _update(account, address(0), value);
    }

    /**
     * @dev Sets `value` 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.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address owner, address spender, uint256 value) internal {
        _approve(owner, spender, value, true);
    }

    /**
     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
     *
     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
     * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
     * `Approval` event during `transferFrom` operations.
     *
     * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
     * true using the following override:
     *
     * ```solidity
     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
     *     super._approve(owner, spender, value, true);
     * }
     * ```
     *
     * Requirements are the same as {_approve}.
     */
    function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
        if (owner == address(0)) {
            revert ERC20InvalidApprover(address(0));
        }
        if (spender == address(0)) {
            revert ERC20InvalidSpender(address(0));
        }
        _allowances[owner][spender] = value;
        if (emitEvent) {
            emit Approval(owner, spender, value);
        }
    }

    /**
     * @dev Updates `owner`'s allowance for `spender` based on spent `value`.
     *
     * Does not update the allowance value in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Does not emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance < type(uint256).max) {
            if (currentAllowance < value) {
                revert ERC20InsufficientAllowance(spender, currentAllowance, value);
            }
            unchecked {
                _approve(owner, spender, currentAllowance - value, false);
            }
        }
    }
}


// File @layerzerolabs/oft-evm/contracts/[email protected]




/**
 * @title OFT Contract
 * @dev OFT is an ERC-20 token that extends the functionality of the OFTCore contract.
 */
abstract contract OFT is OFTCore, ERC20 {
    /**
     * @dev Constructor for the OFT contract.
     * @param _name The name of the OFT.
     * @param _symbol The symbol of the OFT.
     * @param _lzEndpoint The LayerZero endpoint address.
     * @param _delegate The delegate capable of making OApp configurations inside of the endpoint.
     */
    constructor(
        string memory _name,
        string memory _symbol,
        address _lzEndpoint,
        address _delegate
    ) ERC20(_name, _symbol) OFTCore(decimals(), _lzEndpoint, _delegate) {}

    /**
     * @dev Retrieves the address of the underlying ERC20 implementation.
     * @return The address of the OFT token.
     *
     * @dev In the case of OFT, address(this) and erc20 are the same contract.
     */
    function token() public view returns (address) {
        return address(this);
    }

    /**
     * @notice Indicates whether the OFT contract requires approval of the 'token()' to send.
     * @return requiresApproval Needs approval of the underlying token implementation.
     *
     * @dev In the case of OFT where the contract IS the token, approval is NOT required.
     */
    function approvalRequired() external pure virtual returns (bool) {
        return false;
    }

    /**
     * @dev Burns tokens from the sender's specified balance.
     * @param _from The address to debit the tokens from.
     * @param _amountLD The amount of tokens to send in local decimals.
     * @param _minAmountLD The minimum amount to send in local decimals.
     * @param _dstEid The destination chain ID.
     * @return amountSentLD The amount sent in local decimals.
     * @return amountReceivedLD The amount received in local decimals on the remote.
     */
    function _debit(
        address _from,
        uint256 _amountLD,
        uint256 _minAmountLD,
        uint32 _dstEid
    ) internal virtual override returns (uint256 amountSentLD, uint256 amountReceivedLD) {
        (amountSentLD, amountReceivedLD) = _debitView(_amountLD, _minAmountLD, _dstEid);

        // @dev In NON-default OFT, amountSentLD could be 100, with a 10% fee, the amountReceivedLD amount is 90,
        // therefore amountSentLD CAN differ from amountReceivedLD.

        // @dev Default OFT burns on src.
        _burn(_from, amountSentLD);
    }

    /**
     * @dev Credits tokens to the specified address.
     * @param _to The address to credit the tokens to.
     * @param _amountLD The amount of tokens to credit in local decimals.
     * @dev _srcEid The source chain ID.
     * @return amountReceivedLD The amount of tokens ACTUALLY received in local decimals.
     */
    function _credit(
        address _to,
        uint256 _amountLD,
        uint32 /*_srcEid*/
    ) internal virtual override returns (uint256 amountReceivedLD) {
        if (_to == address(0x0)) _to = address(0xdead); // _mint(...) does not support address(0x0)
        // @dev Default OFT mints on dst.
        _mint(_to, _amountLD);
        // @dev In the case of NON-default OFT, the _amountLD MIGHT not be == amountReceivedLD.
        return _amountLD;
    }
}


// File contracts/ZTCOFT.sol



contract ZTCOFT is OFT {
    constructor(
        string memory _name,
        string memory _symbol,
        address _lzEndpoint,
        address _delegate
    ) OFT(_name, _symbol, _lzEndpoint, _delegate) Ownable(_delegate) {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_lzEndpoint","type":"address"},{"internalType":"address","name":"_delegate","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"amountSD","type":"uint256"}],"name":"AmountSDOverflowed","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[],"name":"InvalidDelegate","type":"error"},{"inputs":[],"name":"InvalidEndpointCall","type":"error"},{"inputs":[],"name":"InvalidLocalDecimals","type":"error"},{"inputs":[{"internalType":"bytes","name":"options","type":"bytes"}],"name":"InvalidOptions","type":"error"},{"inputs":[],"name":"LzTokenUnavailable","type":"error"},{"inputs":[{"internalType":"uint32","name":"eid","type":"uint32"}],"name":"NoPeer","type":"error"},{"inputs":[{"internalType":"uint256","name":"msgValue","type":"uint256"}],"name":"NotEnoughNative","type":"error"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"OnlyEndpoint","type":"error"},{"inputs":[{"internalType":"uint32","name":"eid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"}],"name":"OnlyPeer","type":"error"},{"inputs":[],"name":"OnlySelf","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[{"internalType":"bytes","name":"result","type":"bytes"}],"name":"SimulationResult","type":"error"},{"inputs":[{"internalType":"uint256","name":"amountLD","type":"uint256"},{"internalType":"uint256","name":"minAmountLD","type":"uint256"}],"name":"SlippageExceeded","type":"error"},{"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":[{"components":[{"internalType":"uint32","name":"eid","type":"uint32"},{"internalType":"uint16","name":"msgType","type":"uint16"},{"internalType":"bytes","name":"options","type":"bytes"}],"indexed":false,"internalType":"struct EnforcedOptionParam[]","name":"_enforcedOptions","type":"tuple[]"}],"name":"EnforcedOptionSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"inspector","type":"address"}],"name":"MsgInspectorSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"guid","type":"bytes32"},{"indexed":false,"internalType":"uint32","name":"srcEid","type":"uint32"},{"indexed":true,"internalType":"address","name":"toAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountReceivedLD","type":"uint256"}],"name":"OFTReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"guid","type":"bytes32"},{"indexed":false,"internalType":"uint32","name":"dstEid","type":"uint32"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountSentLD","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountReceivedLD","type":"uint256"}],"name":"OFTSent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint32","name":"eid","type":"uint32"},{"indexed":false,"internalType":"bytes32","name":"peer","type":"bytes32"}],"name":"PeerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"preCrimeAddress","type":"address"}],"name":"PreCrimeSet","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":[],"name":"SEND","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SEND_AND_CALL","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"srcEid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"}],"internalType":"struct Origin","name":"origin","type":"tuple"}],"name":"allowInitializePath","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"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":[],"name":"approvalRequired","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","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":[{"internalType":"uint32","name":"_eid","type":"uint32"},{"internalType":"uint16","name":"_msgType","type":"uint16"},{"internalType":"bytes","name":"_extraOptions","type":"bytes"}],"name":"combineOptions","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimalConversionRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endpoint","outputs":[{"internalType":"contract ILayerZeroEndpointV2","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"eid","type":"uint32"},{"internalType":"uint16","name":"msgType","type":"uint16"}],"name":"enforcedOptions","outputs":[{"internalType":"bytes","name":"enforcedOption","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"srcEid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"}],"internalType":"struct Origin","name":"","type":"tuple"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"address","name":"_sender","type":"address"}],"name":"isComposeMsgSender","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_eid","type":"uint32"},{"internalType":"bytes32","name":"_peer","type":"bytes32"}],"name":"isPeer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"srcEid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"}],"internalType":"struct Origin","name":"_origin","type":"tuple"},{"internalType":"bytes32","name":"_guid","type":"bytes32"},{"internalType":"bytes","name":"_message","type":"bytes"},{"internalType":"address","name":"_executor","type":"address"},{"internalType":"bytes","name":"_extraData","type":"bytes"}],"name":"lzReceive","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"uint32","name":"srcEid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"}],"internalType":"struct Origin","name":"origin","type":"tuple"},{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"bytes32","name":"guid","type":"bytes32"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"address","name":"executor","type":"address"},{"internalType":"bytes","name":"message","type":"bytes"},{"internalType":"bytes","name":"extraData","type":"bytes"}],"internalType":"struct InboundPacket[]","name":"_packets","type":"tuple[]"}],"name":"lzReceiveAndRevert","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"srcEid","type":"uint32"},{"internalType":"bytes32","name":"sender","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"}],"internalType":"struct Origin","name":"_origin","type":"tuple"},{"internalType":"bytes32","name":"_guid","type":"bytes32"},{"internalType":"bytes","name":"_message","type":"bytes"},{"internalType":"address","name":"_executor","type":"address"},{"internalType":"bytes","name":"_extraData","type":"bytes"}],"name":"lzReceiveSimulate","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"msgInspector","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"","type":"uint32"},{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"nextNonce","outputs":[{"internalType":"uint64","name":"nonce","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oApp","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oAppVersion","outputs":[{"internalType":"uint64","name":"senderVersion","type":"uint64"},{"internalType":"uint64","name":"receiverVersion","type":"uint64"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"oftVersion","outputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"},{"internalType":"uint64","name":"version","type":"uint64"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"eid","type":"uint32"}],"name":"peers","outputs":[{"internalType":"bytes32","name":"peer","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preCrime","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"bytes32","name":"to","type":"bytes32"},{"internalType":"uint256","name":"amountLD","type":"uint256"},{"internalType":"uint256","name":"minAmountLD","type":"uint256"},{"internalType":"bytes","name":"extraOptions","type":"bytes"},{"internalType":"bytes","name":"composeMsg","type":"bytes"},{"internalType":"bytes","name":"oftCmd","type":"bytes"}],"internalType":"struct SendParam","name":"_sendParam","type":"tuple"}],"name":"quoteOFT","outputs":[{"components":[{"internalType":"uint256","name":"minAmountLD","type":"uint256"},{"internalType":"uint256","name":"maxAmountLD","type":"uint256"}],"internalType":"struct OFTLimit","name":"oftLimit","type":"tuple"},{"components":[{"internalType":"int256","name":"feeAmountLD","type":"int256"},{"internalType":"string","name":"description","type":"string"}],"internalType":"struct OFTFeeDetail[]","name":"oftFeeDetails","type":"tuple[]"},{"components":[{"internalType":"uint256","name":"amountSentLD","type":"uint256"},{"internalType":"uint256","name":"amountReceivedLD","type":"uint256"}],"internalType":"struct OFTReceipt","name":"oftReceipt","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"bytes32","name":"to","type":"bytes32"},{"internalType":"uint256","name":"amountLD","type":"uint256"},{"internalType":"uint256","name":"minAmountLD","type":"uint256"},{"internalType":"bytes","name":"extraOptions","type":"bytes"},{"internalType":"bytes","name":"composeMsg","type":"bytes"},{"internalType":"bytes","name":"oftCmd","type":"bytes"}],"internalType":"struct SendParam","name":"_sendParam","type":"tuple"},{"internalType":"bool","name":"_payInLzToken","type":"bool"}],"name":"quoteSend","outputs":[{"components":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"lzTokenFee","type":"uint256"}],"internalType":"struct MessagingFee","name":"msgFee","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"dstEid","type":"uint32"},{"internalType":"bytes32","name":"to","type":"bytes32"},{"internalType":"uint256","name":"amountLD","type":"uint256"},{"internalType":"uint256","name":"minAmountLD","type":"uint256"},{"internalType":"bytes","name":"extraOptions","type":"bytes"},{"internalType":"bytes","name":"composeMsg","type":"bytes"},{"internalType":"bytes","name":"oftCmd","type":"bytes"}],"internalType":"struct SendParam","name":"_sendParam","type":"tuple"},{"components":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"lzTokenFee","type":"uint256"}],"internalType":"struct MessagingFee","name":"_fee","type":"tuple"},{"internalType":"address","name":"_refundAddress","type":"address"}],"name":"send","outputs":[{"components":[{"internalType":"bytes32","name":"guid","type":"bytes32"},{"internalType":"uint64","name":"nonce","type":"uint64"},{"components":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"lzTokenFee","type":"uint256"}],"internalType":"struct MessagingFee","name":"fee","type":"tuple"}],"internalType":"struct MessagingReceipt","name":"msgReceipt","type":"tuple"},{"components":[{"internalType":"uint256","name":"amountSentLD","type":"uint256"},{"internalType":"uint256","name":"amountReceivedLD","type":"uint256"}],"internalType":"struct OFTReceipt","name":"oftReceipt","type":"tuple"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_delegate","type":"address"}],"name":"setDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"eid","type":"uint32"},{"internalType":"uint16","name":"msgType","type":"uint16"},{"internalType":"bytes","name":"options","type":"bytes"}],"internalType":"struct EnforcedOptionParam[]","name":"_enforcedOptions","type":"tuple[]"}],"name":"setEnforcedOptions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_msgInspector","type":"address"}],"name":"setMsgInspector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_eid","type":"uint32"},{"internalType":"bytes32","name":"_peer","type":"bytes32"}],"name":"setPeer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_preCrime","type":"address"}],"name":"setPreCrime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sharedDecimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","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"}]

60c06040523480156200001157600080fd5b5060405162004083380380620040838339810160408190526200003491620002d2565b83838383838360128484818181818d6001600160a01b0381166200007257604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b6200007d8162000198565b506001600160a01b038083166080528116620000ac57604051632d618d8160e21b815260040160405180910390fd5b60805160405163ca5eb5e160e01b81526001600160a01b0383811660048301529091169063ca5eb5e190602401600060405180830381600087803b158015620000f457600080fd5b505af115801562000109573d6000803e3d6000fd5b505050505050505062000121620001e860201b60201c565b60ff168360ff16101562000148576040516301e9714b60e41b815260040160405180910390fd5b6200015560068462000377565b6200016290600a62000496565b60a052506008915062000178905083826200053f565b5060096200018782826200053f565b50505050505050505050506200060b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600690565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200021557600080fd5b81516001600160401b0380821115620002325762000232620001ed565b604051601f8301601f19908116603f011681019082821181831017156200025d576200025d620001ed565b81604052838152602092508660208588010111156200027b57600080fd5b600091505b838210156200029f578582018301518183018401529082019062000280565b6000602085830101528094505050505092915050565b80516001600160a01b0381168114620002cd57600080fd5b919050565b60008060008060808587031215620002e957600080fd5b84516001600160401b03808211156200030157600080fd5b6200030f8883890162000203565b955060208701519150808211156200032657600080fd5b50620003358782880162000203565b9350506200034660408601620002b5565b91506200035660608601620002b5565b905092959194509250565b634e487b7160e01b600052601160045260246000fd5b60ff828116828216039081111562000393576200039362000361565b92915050565b600181815b80851115620003da578160001904821115620003be57620003be62000361565b80851615620003cc57918102915b93841c93908002906200039e565b509250929050565b600082620003f35750600162000393565b81620004025750600062000393565b81600181146200041b5760028114620004265762000446565b600191505062000393565b60ff8411156200043a576200043a62000361565b50506001821b62000393565b5060208310610133831016604e8410600b84101617156200046b575081810a62000393565b62000477838362000399565b80600019048211156200048e576200048e62000361565b029392505050565b6000620004a760ff841683620003e2565b9392505050565b600181811c90821680620004c357607f821691505b602082108103620004e457634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200053a576000816000526020600020601f850160051c81016020861015620005155750805b601f850160051c820191505b81811015620005365782815560010162000521565b5050505b505050565b81516001600160401b038111156200055b576200055b620001ed565b62000573816200056c8454620004ae565b84620004ea565b602080601f831160018114620005ab5760008415620005925750858301515b600019600386901b1c1916600185901b17855562000536565b600085815260208120601f198616915b82811015620005dc57888601518255948401946001909101908401620005bb565b5085821015620005fb5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a051613a0c62000677600039600081816106ed01528181611f1501528181611f8a015261221e01526000818161059101528181610b5001528181611294015281816115c701528181611a35015281816123750152818161255701526126410152613a0c6000f3fe6080604052600436106102d15760003560e01c80637d25a05e11610179578063bb0b6a53116100d6578063d045a0dc1161008a578063f2fde38b11610064578063f2fde38b146108b7578063fc0c546a14610515578063ff7bd03d146108d757600080fd5b8063d045a0dc14610831578063d424388514610844578063dd62ed3e1461086457600080fd5b8063bd815db0116100bb578063bd815db0146107dd578063c7c7f5b3146107f0578063ca5eb5e11461081157600080fd5b8063bb0b6a5314610790578063bc70b354146107bd57600080fd5b8063963efcaa1161012d578063a9059cbb11610112578063a9059cbb14610723578063b731ea0a14610743578063b98bd0701461077057600080fd5b8063963efcaa146106db5780639f68b9641461070f57600080fd5b8063857749b01161015e578063857749b0146106875780638da5cb5b1461069b57806395d89b41146106c657600080fd5b80637d25a05e1461062b57806382413eac1461066757600080fd5b806323b872dd116102325780635535d461116101e65780636fc1b31e116101c05780636fc1b31e146105b357806370a08231146105d3578063715018a61461061657600080fd5b80635535d461146105285780635a0dfe4d146105485780635e280f111461057f57600080fd5b80633400288b116102175780633400288b146104c85780633b6f743b146104e857806352ae28791461051557600080fd5b806323b872dd14610486578063313ce567146104a657600080fd5b8063134d4f251161028957806317442b701161026e57806317442b701461043057806318160ddd146104525780631f5e13341461047157600080fd5b8063134d4f25146103c7578063156a0d0f146103ef57600080fd5b80630d35b415116102ba5780630d35b41514610331578063111ecdad1461036057806313137d65146103b257600080fd5b806306fdde03146102d6578063095ea7b314610301575b600080fd5b3480156102e257600080fd5b506102eb6108f7565b6040516102f89190612846565b60405180910390f35b34801561030d57600080fd5b5061032161031c36600461287b565b610989565b60405190151581526020016102f8565b34801561033d57600080fd5b5061035161034c3660046128bf565b6109a3565b6040516102f8939291906128f4565b34801561036c57600080fd5b5060045461038d9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102f8565b6103c56103c0366004612a06565b610b4e565b005b3480156103d357600080fd5b506103dc600281565b60405161ffff90911681526020016102f8565b3480156103fb57600080fd5b50604080517f02e49c2c00000000000000000000000000000000000000000000000000000000815260016020820152016102f8565b34801561043c57600080fd5b50604080516001815260026020820152016102f8565b34801561045e57600080fd5b506007545b6040519081526020016102f8565b34801561047d57600080fd5b506103dc600181565b34801561049257600080fd5b506103216104a1366004612aa6565b610c4d565b3480156104b257600080fd5b5060125b60405160ff90911681526020016102f8565b3480156104d457600080fd5b506103c56104e3366004612b00565b610c73565b3480156104f457600080fd5b50610508610503366004612b2a565b610c89565b6040516102f89190612b7c565b34801561052157600080fd5b503061038d565b34801561053457600080fd5b506102eb610543366004612ba5565b610cf0565b34801561055457600080fd5b50610321610563366004612b00565b63ffffffff919091166000908152600160205260409020541490565b34801561058b57600080fd5b5061038d7f000000000000000000000000000000000000000000000000000000000000000081565b3480156105bf57600080fd5b506103c56105ce366004612bd8565b610d95565b3480156105df57600080fd5b506104636105ee366004612bd8565b73ffffffffffffffffffffffffffffffffffffffff1660009081526005602052604090205490565b34801561062257600080fd5b506103c5610e17565b34801561063757600080fd5b5061064e610646366004612b00565b600092915050565b60405167ffffffffffffffff90911681526020016102f8565b34801561067357600080fd5b50610321610682366004612bf5565b610e2b565b34801561069357600080fd5b5060066104b6565b3480156106a757600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff1661038d565b3480156106d257600080fd5b506102eb610e4d565b3480156106e757600080fd5b506104637f000000000000000000000000000000000000000000000000000000000000000081565b34801561071b57600080fd5b506000610321565b34801561072f57600080fd5b5061032161073e36600461287b565b610e5c565b34801561074f57600080fd5b5060025461038d9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561077c57600080fd5b506103c561078b366004612ca1565b610e6a565b34801561079c57600080fd5b506104636107ab366004612ce3565b60016020526000908152604090205481565b3480156107c957600080fd5b506102eb6107d8366004612cfe565b610e84565b6103c56107eb366004612ca1565b611045565b6108036107fe366004612d5f565b611213565b6040516102f8929190612deb565b34801561081d57600080fd5b506103c561082c366004612bd8565b611247565b6103c561083f366004612a06565b6112f3565b34801561085057600080fd5b506103c561085f366004612bd8565b61133b565b34801561087057600080fd5b5061046361087f366004612e3e565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260066020908152604080832093909416825291909152205490565b3480156108c357600080fd5b506103c56108d2366004612bd8565b6113b6565b3480156108e357600080fd5b506103216108f2366004612e6c565b61141a565b60606008805461090690612e88565b80601f016020809104026020016040519081016040528092919081815260200182805461093290612e88565b801561097f5780601f106109545761010080835404028352916020019161097f565b820191906000526020600020905b81548152906001019060200180831161096257829003601f168201915b5050505050905090565b600033610997818585611450565b60019150505b92915050565b604080518082019091526000808252602082015260606109d6604051806040016040528060008152602001600081525090565b6000803073ffffffffffffffffffffffffffffffffffffffff1663fc0c546a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a489190612ed5565b73ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab69190612ef2565b60408051808201825284815260208082018490528251600080825291810190935290975091925090610b0b565b604080518082019091526000815260606020820152815260200190600190039081610ae35790505b509350600080610b30604089013560608a0135610b2b60208c018c612ce3565b611462565b60408051808201909152918252602082015296989597505050505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163314610bc4576040517f91ac5e4f0000000000000000000000000000000000000000000000000000000081523360048201526024015b60405180910390fd5b60208701803590610bde90610bd9908a612ce3565b6114b7565b14610c3557610bf06020880188612ce3565b6040517fc26bebcc00000000000000000000000000000000000000000000000000000000815263ffffffff909116600482015260208801356024820152604401610bbb565b610c448787878787878761150c565b50505050505050565b600033610c5b8582856116a6565b610c66858585611776565b60019150505b9392505050565b610c7b611821565b610c858282611874565b5050565b60408051808201909152600080825260208201526000610cb960408501356060860135610b2b6020880188612ce3565b915050600080610cc986846118c9565b9092509050610ce6610cde6020880188612ce3565b838388611a1f565b9695505050505050565b600360209081526000928352604080842090915290825290208054610d1490612e88565b80601f0160208091040260200160405190810160405280929190818152602001828054610d4090612e88565b8015610d8d5780601f10610d6257610100808354040283529160200191610d8d565b820191906000526020600020905b815481529060010190602001808311610d7057829003601f168201915b505050505081565b610d9d611821565b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527ff0be4f1e87349231d80c36b33f9e8639658eeaf474014dee15a3e6a4d4414197906020015b60405180910390a150565b610e1f611821565b610e296000611b0d565b565b73ffffffffffffffffffffffffffffffffffffffff811630145b949350505050565b60606009805461090690612e88565b600033610997818585611776565b610e72611821565b610c85610e7f828461301b565b611b82565b63ffffffff8416600090815260036020908152604080832061ffff87168452909152812080546060929190610eb890612e88565b80601f0160208091040260200160405190810160405280929190818152602001828054610ee490612e88565b8015610f315780601f10610f0657610100808354040283529160200191610f31565b820191906000526020600020905b815481529060010190602001808311610f1457829003601f168201915b505050505090508051600003610f815783838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929450610e459350505050565b6000839003610f91579050610e45565b6002831061100f57610fd884848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611c8992505050565b80610fe68460028188613131565b604051602001610ff89392919061315b565b604051602081830303815290604052915050610e45565b83836040517f9a6d49cd000000000000000000000000000000000000000000000000000000008152600401610bbb9291906131cc565b60005b8181101561114e5736838383818110611063576110636131e0565b9050602002810190611075919061320f565b90506110a86110876020830183612ce3565b602083013563ffffffff919091166000908152600160205260409020541490565b6110b25750611146565b3063d045a0dc60c08301358360a08101356110d161010083018361324d565b6110e2610100890160e08a01612bd8565b6110f06101208a018a61324d565b6040518963ffffffff1660e01b815260040161111297969594939291906132c8565b6000604051808303818588803b15801561112b57600080fd5b505af115801561113f573d6000803e3d6000fd5b5050505050505b600101611048565b503373ffffffffffffffffffffffffffffffffffffffff16638e9e70996040518163ffffffff1660e01b8152600401600060405180830381865afa15801561119a573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526111e0919081019061335c565b6040517f8351eea7000000000000000000000000000000000000000000000000000000008152600401610bbb9190612846565b61121b612790565b604080518082019091526000808252602082015261123a858585611cce565b915091505b935093915050565b61124f611821565b6040517fca5eb5e100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063ca5eb5e190602401600060405180830381600087803b1580156112d857600080fd5b505af11580156112ec573d6000803e3d6000fd5b5050505050565b33301461132c576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c4487878787878787610c35565b611343611821565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527fd48d879cef83a1c0bdda516f27b13ddb1b3f8bbac1c9e1511bb2a659c242776090602001610e0c565b6113be611821565b73ffffffffffffffffffffffffffffffffffffffff811661140e576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610bbb565b61141781611b0d565b50565b60006020820180359060019083906114329086612ce3565b63ffffffff1681526020810191909152604001600020541492915050565b61145d8383836001611dc9565b505050565b60008061146e85611f11565b91508190508381101561123f576040517f71c4efed0000000000000000000000000000000000000000000000000000000081526004810182905260248101859052604401610bbb565b63ffffffff81166000908152600160205260408120548061099d576040517ff6ff4fb700000000000000000000000000000000000000000000000000000000815263ffffffff84166004820152602401610bbb565b600061151e61151b8787611f48565b90565b9050600061154a826115386115338a8a611f60565b611f83565b61154560208d018d612ce3565b611fb9565b9050602886111561163757600061158761156a60608c0160408d016133ca565b61157760208d018d612ce3565b846115828c8c611fee565b612039565b6040517f7cb5901200000000000000000000000000000000000000000000000000000000815290915073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690637cb59012906116039086908d9060009087906004016133e7565b600060405180830381600087803b15801561161d57600080fd5b505af1158015611631573d6000803e3d6000fd5b50505050505b73ffffffffffffffffffffffffffffffffffffffff8216887fefed6d3500546b29533b128a29e3a94d70788727f0507505ac12eaf2e578fd9c61167d60208d018d612ce3565b6040805163ffffffff9092168252602082018690520160405180910390a3505050505050505050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600660209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8110156117705781811015611761576040517ffb8f41b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff841660048201526024810182905260448101839052606401610bbb565b61177084848484036000611dc9565b50505050565b73ffffffffffffffffffffffffffffffffffffffff83166117c6576040517f96c6fd1e00000000000000000000000000000000000000000000000000000000815260006004820152602401610bbb565b73ffffffffffffffffffffffffffffffffffffffff8216611816576040517fec442f0500000000000000000000000000000000000000000000000000000000815260006004820152602401610bbb565b61145d83838361206b565b60005473ffffffffffffffffffffffffffffffffffffffff163314610e29576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610bbb565b63ffffffff8216600081815260016020908152604091829020849055815192835282018390527f238399d427b947898edb290f5ff0f9109849b1c3ba196a42e35f00c50a54b98b910160405180910390a15050565b606080600061192685602001356118df86612216565b6118ec60a089018961324d565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061228a92505050565b909350905060008161193957600161193c565b60025b905061195c61194e6020880188612ce3565b826107d860808a018a61324d565b60045490935073ffffffffffffffffffffffffffffffffffffffff168015611a15576040517f043a78eb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82169063043a78eb906119d29088908890600401613426565b602060405180830381865afa1580156119ef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a13919061344b565b505b5050509250929050565b60408051808201909152600080825260208201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663ddc28c586040518060a001604052808863ffffffff168152602001611a8f896114b7565b8152602001878152602001868152602001851515815250306040518363ffffffff1660e01b8152600401611ac4929190613468565b6040805180830381865afa158015611ae0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b04919061353c565b95945050505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60005b8151811015611c5957611bb4828281518110611ba357611ba36131e0565b602002602001015160400151611c89565b818181518110611bc657611bc66131e0565b60200260200101516040015160036000848481518110611be857611be86131e0565b60200260200101516000015163ffffffff1663ffffffff1681526020019081526020016000206000848481518110611c2257611c226131e0565b60200260200101516020015161ffff1661ffff1681526020019081526020016000209081611c5091906135a8565b50600101611b85565b507fbe4864a8e820971c0247f5992e2da559595f7bf076a21cb5928d443d2a13b67481604051610e0c91906136c2565b600281015161ffff8116600314610c8557816040517f9a6d49cd000000000000000000000000000000000000000000000000000000008152600401610bbb9190612846565b611cd6612790565b6040805180820190915260008082526020820152600080611d0d33604089013560608a0135611d0860208c018c612ce3565b61231c565b91509150600080611d1e89846118c9565b9092509050611d4a611d3360208b018b612ce3565b8383611d44368d90038d018d61376b565b8b612342565b60408051808201909152858152602080820186905282519298509096503391907f85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a90611d98908d018d612ce3565b6040805163ffffffff909216825260208201899052810187905260600160405180910390a350505050935093915050565b73ffffffffffffffffffffffffffffffffffffffff8416611e19576040517fe602df0500000000000000000000000000000000000000000000000000000000815260006004820152602401610bbb565b73ffffffffffffffffffffffffffffffffffffffff8316611e69576040517f94280d6200000000000000000000000000000000000000000000000000000000815260006004820152602401610bbb565b73ffffffffffffffffffffffffffffffffffffffff80851660009081526006602090815260408083209387168352929052208290558015611770578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051611f0391815260200190565b60405180910390a350505050565b60007f0000000000000000000000000000000000000000000000000000000000000000611f3e81846137cc565b61099d9190613807565b6000611f576020828486613131565b610c6c9161381e565b6000611f70602860208486613131565b611f799161385a565b60c01c9392505050565b600061099d7f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff8416613807565b600073ffffffffffffffffffffffffffffffffffffffff8416611fdc5761dead93505b611fe6848461245a565b509092915050565b6060611ffd8260288186613131565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929695505050505050565b60608484848460405160200161205294939291906138a2565b6040516020818303038152906040529050949350505050565b73ffffffffffffffffffffffffffffffffffffffff83166120a35780600760008282546120989190613920565b909155506121559050565b73ffffffffffffffffffffffffffffffffffffffff831660009081526005602052604090205481811015612129576040517fe450d38c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff851660048201526024810182905260448101839052606401610bbb565b73ffffffffffffffffffffffffffffffffffffffff841660009081526005602052604090209082900390555b73ffffffffffffffffffffffffffffffffffffffff821661217e576007805482900390556121aa565b73ffffffffffffffffffffffffffffffffffffffff821660009081526005602052604090208054820190555b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161220991815260200190565b60405180910390a3505050565b6000806122437f0000000000000000000000000000000000000000000000000000000000000000846137cc565b905067ffffffffffffffff81111561099d576040517fe2ce941300000000000000000000000000000000000000000000000000000000815260048101829052602401610bbb565b80516060901515806122eb5784846040516020016122d792919091825260c01b7fffffffffffffffff00000000000000000000000000000000000000000000000016602082015260280190565b604051602081830303815290604052612312565b848433856040516020016123029493929190613933565b6040516020818303038152906040525b9150935093915050565b60008061232a858585611462565b909250905061233986836124b6565b94509492505050565b61234a612790565b60006123598460000151612512565b602085015190915015612373576123738460200151612553565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632637a450826040518060a001604052808b63ffffffff1681526020016123d08c6114b7565b81526020018a815260200189815260200160008960200151111515815250866040518463ffffffff1660e01b815260040161240c929190613468565b60806040518083038185885af115801561242a573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061244f919061398c565b979650505050505050565b73ffffffffffffffffffffffffffffffffffffffff82166124aa576040517fec442f0500000000000000000000000000000000000000000000000000000000815260006004820152602401610bbb565b610c856000838361206b565b73ffffffffffffffffffffffffffffffffffffffff8216612506576040517f96c6fd1e00000000000000000000000000000000000000000000000000000000815260006004820152602401610bbb565b610c858260008361206b565b600081341461254f576040517f9f704120000000000000000000000000000000000000000000000000000000008152346004820152602401610bbb565b5090565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663e4fe1d946040518163ffffffff1660e01b8152600401602060405180830381865afa1580156125c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125e49190612ed5565b905073ffffffffffffffffffffffffffffffffffffffff8116612633576040517f5373352a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805133602482018190527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff81811660448501526064808501889052855180860390910181526084909401909452602080840180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001781528451610c8596881695899361177093889360009283929091839182885af18061270f576040513d6000823e3d81fd5b50506000513d91508115612727578060011415612741565b73ffffffffffffffffffffffffffffffffffffffff84163b155b15611770576040517f5274afe700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85166004820152602401610bbb565b604051806060016040528060008019168152602001600067ffffffffffffffff1681526020016127d3604051806040016040528060008152602001600081525090565b905290565b60005b838110156127f35781810151838201526020016127db565b50506000910152565b600081518084526128148160208601602086016127d8565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000610c6c60208301846127fc565b73ffffffffffffffffffffffffffffffffffffffff8116811461141757600080fd5b6000806040838503121561288e57600080fd5b823561289981612859565b946020939093013593505050565b600060e082840312156128b957600080fd5b50919050565b6000602082840312156128d157600080fd5b813567ffffffffffffffff8111156128e857600080fd5b610e45848285016128a7565b8351815260208085015190820152600060a08201604060a0604085015281865180845260c08601915060c08160051b8701019350602080890160005b8381101561298d578887037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff4001855281518051885283015183880187905261297a878901826127fc565b9750509382019390820190600101612930565b50508751606088015250505060208501516080850152509050610e45565b6000606082840312156128b957600080fd5b60008083601f8401126129cf57600080fd5b50813567ffffffffffffffff8111156129e757600080fd5b6020830191508360208285010111156129ff57600080fd5b9250929050565b600080600080600080600060e0888a031215612a2157600080fd5b612a2b89896129ab565b965060608801359550608088013567ffffffffffffffff80821115612a4f57600080fd5b612a5b8b838c016129bd565b909750955060a08a01359150612a7082612859565b90935060c08901359080821115612a8657600080fd5b50612a938a828b016129bd565b989b979a50959850939692959293505050565b600080600060608486031215612abb57600080fd5b8335612ac681612859565b92506020840135612ad681612859565b929592945050506040919091013590565b803563ffffffff81168114612afb57600080fd5b919050565b60008060408385031215612b1357600080fd5b61289983612ae7565b801515811461141757600080fd5b60008060408385031215612b3d57600080fd5b823567ffffffffffffffff811115612b5457600080fd5b612b60858286016128a7565b9250506020830135612b7181612b1c565b809150509250929050565b81518152602080830151908201526040810161099d565b803561ffff81168114612afb57600080fd5b60008060408385031215612bb857600080fd5b612bc183612ae7565b9150612bcf60208401612b93565b90509250929050565b600060208284031215612bea57600080fd5b8135610c6c81612859565b60008060008060a08587031215612c0b57600080fd5b612c1586866129ab565b9350606085013567ffffffffffffffff811115612c3157600080fd5b612c3d878288016129bd565b9094509250506080850135612c5181612859565b939692955090935050565b60008083601f840112612c6e57600080fd5b50813567ffffffffffffffff811115612c8657600080fd5b6020830191508360208260051b85010111156129ff57600080fd5b60008060208385031215612cb457600080fd5b823567ffffffffffffffff811115612ccb57600080fd5b612cd785828601612c5c565b90969095509350505050565b600060208284031215612cf557600080fd5b610c6c82612ae7565b60008060008060608587031215612d1457600080fd5b612d1d85612ae7565b9350612d2b60208601612b93565b9250604085013567ffffffffffffffff811115612d4757600080fd5b612d53878288016129bd565b95989497509550505050565b60008060008385036080811215612d7557600080fd5b843567ffffffffffffffff811115612d8c57600080fd5b612d98878288016128a7565b94505060407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe082011215612dcb57600080fd5b506020840191506060840135612de081612859565b809150509250925092565b600060c0820190508351825267ffffffffffffffff60208501511660208301526040840151612e27604084018280518252602090810151910152565b5082516080830152602083015160a0830152610c6c565b60008060408385031215612e5157600080fd5b8235612e5c81612859565b91506020830135612b7181612859565b600060608284031215612e7e57600080fd5b610c6c83836129ab565b600181811c90821680612e9c57607f821691505b6020821081036128b9577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060208284031215612ee757600080fd5b8151610c6c81612859565b600060208284031215612f0457600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040516060810167ffffffffffffffff81118282101715612f5d57612f5d612f0b565b60405290565b6040805190810167ffffffffffffffff81118282101715612f5d57612f5d612f0b565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715612fcd57612fcd612f0b565b604052919050565b600067ffffffffffffffff821115612fef57612fef612f0b565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b600067ffffffffffffffff8084111561303657613036612f0b565b8360051b6020613047818301612f86565b86815291850191818101903684111561305f57600080fd5b865b84811015613125578035868111156130795760008081fd5b8801606036829003121561308d5760008081fd5b613095612f3a565b61309e82612ae7565b81526130ab868301612b93565b86820152604080830135898111156130c35760008081fd5b929092019136601f8401126130d85760008081fd5b82356130eb6130e682612fd5565b612f86565b81815236898387010111156131005760008081fd5b818986018a830137600091810189019190915290820152845250918301918301613061565b50979650505050505050565b6000808585111561314157600080fd5b8386111561314e57600080fd5b5050820193919092039150565b6000845161316d8184602089016127d8565b8201838582376000930192835250909392505050565b8183528181602085013750600060208284010152600060207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b602081526000610e45602083018486613183565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082357ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec183360301811261324357600080fd5b9190910192915050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261328257600080fd5b83018035915067ffffffffffffffff82111561329d57600080fd5b6020019150368190038213156129ff57600080fd5b67ffffffffffffffff8116811461141757600080fd5b63ffffffff6132d689612ae7565b16815260208801356020820152600060408901356132f3816132b2565b67ffffffffffffffff811660408401525087606083015260e0608083015261331f60e083018789613183565b73ffffffffffffffffffffffffffffffffffffffff861660a084015282810360c084015261334e818587613183565b9a9950505050505050505050565b60006020828403121561336e57600080fd5b815167ffffffffffffffff81111561338557600080fd5b8201601f8101841361339657600080fd5b80516133a46130e682612fd5565b8181528560208385010111156133b957600080fd5b611b048260208301602086016127d8565b6000602082840312156133dc57600080fd5b8135610c6c816132b2565b73ffffffffffffffffffffffffffffffffffffffff8516815283602082015261ffff83166040820152608060608201526000610ce660808301846127fc565b60408152600061343960408301856127fc565b8281036020840152611b0481856127fc565b60006020828403121561345d57600080fd5b8151610c6c81612b1c565b6040815263ffffffff8351166040820152602083015160608201526000604084015160a0608084015261349e60e08401826127fc565b905060608501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08483030160a08501526134d982826127fc565b60809690960151151560c085015250505073ffffffffffffffffffffffffffffffffffffffff9190911660209091015290565b60006040828403121561351e57600080fd5b613526612f63565b9050815181526020820151602082015292915050565b60006040828403121561354e57600080fd5b610c6c838361350c565b601f82111561145d576000816000526020600020601f850160051c810160208610156135815750805b601f850160051c820191505b818110156135a05782815560010161358d565b505050505050565b815167ffffffffffffffff8111156135c2576135c2612f0b565b6135d6816135d08454612e88565b84613558565b602080601f83116001811461362957600084156135f35750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b1785556135a0565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b8281101561367657888601518255948401946001909101908401613657565b50858210156136b257878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b600060208083018184528085518083526040925060408601915060408160051b87010184880160005b8381101561375d578883037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc00185528151805163ffffffff1684528781015161ffff16888501528601516060878501819052613749818601836127fc565b9689019694505050908601906001016136eb565b509098975050505050505050565b60006040828403121561377d57600080fd5b613785612f63565b82358152602083013560208201528091505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082613802577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b808202811582820484141761099d5761099d61379d565b8035602083101561099d577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff602084900360031b1b1692915050565b7fffffffffffffffff000000000000000000000000000000000000000000000000813581811691600885101561389a5780818660080360031b1b83161692505b505092915050565b7fffffffffffffffff0000000000000000000000000000000000000000000000008560c01b1681527fffffffff000000000000000000000000000000000000000000000000000000008460e01b16600882015282600c8201526000825161391081602c8501602087016127d8565b91909101602c0195945050505050565b8082018082111561099d5761099d61379d565b8481527fffffffffffffffff0000000000000000000000000000000000000000000000008460c01b1660208201528260288201526000825161397c8160488501602087016127d8565b9190910160480195945050505050565b60006080828403121561399e57600080fd5b6139a6612f3a565b8251815260208301516139b8816132b2565b60208201526139ca846040850161350c565b6040820152939250505056fea2646970667358221220856890b8d008384e42bd931a80c995f6baf3c54a1836e822facb297fc43f103d64736f6c63430008160033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000001a44076050125825900e736c501f859c50fe728c000000000000000000000000c3d3f35811e62f42918c7e11c9548eaad82319f200000000000000000000000000000000000000000000000000000000000000085a656e636861696e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035a54430000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102d15760003560e01c80637d25a05e11610179578063bb0b6a53116100d6578063d045a0dc1161008a578063f2fde38b11610064578063f2fde38b146108b7578063fc0c546a14610515578063ff7bd03d146108d757600080fd5b8063d045a0dc14610831578063d424388514610844578063dd62ed3e1461086457600080fd5b8063bd815db0116100bb578063bd815db0146107dd578063c7c7f5b3146107f0578063ca5eb5e11461081157600080fd5b8063bb0b6a5314610790578063bc70b354146107bd57600080fd5b8063963efcaa1161012d578063a9059cbb11610112578063a9059cbb14610723578063b731ea0a14610743578063b98bd0701461077057600080fd5b8063963efcaa146106db5780639f68b9641461070f57600080fd5b8063857749b01161015e578063857749b0146106875780638da5cb5b1461069b57806395d89b41146106c657600080fd5b80637d25a05e1461062b57806382413eac1461066757600080fd5b806323b872dd116102325780635535d461116101e65780636fc1b31e116101c05780636fc1b31e146105b357806370a08231146105d3578063715018a61461061657600080fd5b80635535d461146105285780635a0dfe4d146105485780635e280f111461057f57600080fd5b80633400288b116102175780633400288b146104c85780633b6f743b146104e857806352ae28791461051557600080fd5b806323b872dd14610486578063313ce567146104a657600080fd5b8063134d4f251161028957806317442b701161026e57806317442b701461043057806318160ddd146104525780631f5e13341461047157600080fd5b8063134d4f25146103c7578063156a0d0f146103ef57600080fd5b80630d35b415116102ba5780630d35b41514610331578063111ecdad1461036057806313137d65146103b257600080fd5b806306fdde03146102d6578063095ea7b314610301575b600080fd5b3480156102e257600080fd5b506102eb6108f7565b6040516102f89190612846565b60405180910390f35b34801561030d57600080fd5b5061032161031c36600461287b565b610989565b60405190151581526020016102f8565b34801561033d57600080fd5b5061035161034c3660046128bf565b6109a3565b6040516102f8939291906128f4565b34801561036c57600080fd5b5060045461038d9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102f8565b6103c56103c0366004612a06565b610b4e565b005b3480156103d357600080fd5b506103dc600281565b60405161ffff90911681526020016102f8565b3480156103fb57600080fd5b50604080517f02e49c2c00000000000000000000000000000000000000000000000000000000815260016020820152016102f8565b34801561043c57600080fd5b50604080516001815260026020820152016102f8565b34801561045e57600080fd5b506007545b6040519081526020016102f8565b34801561047d57600080fd5b506103dc600181565b34801561049257600080fd5b506103216104a1366004612aa6565b610c4d565b3480156104b257600080fd5b5060125b60405160ff90911681526020016102f8565b3480156104d457600080fd5b506103c56104e3366004612b00565b610c73565b3480156104f457600080fd5b50610508610503366004612b2a565b610c89565b6040516102f89190612b7c565b34801561052157600080fd5b503061038d565b34801561053457600080fd5b506102eb610543366004612ba5565b610cf0565b34801561055457600080fd5b50610321610563366004612b00565b63ffffffff919091166000908152600160205260409020541490565b34801561058b57600080fd5b5061038d7f0000000000000000000000001a44076050125825900e736c501f859c50fe728c81565b3480156105bf57600080fd5b506103c56105ce366004612bd8565b610d95565b3480156105df57600080fd5b506104636105ee366004612bd8565b73ffffffffffffffffffffffffffffffffffffffff1660009081526005602052604090205490565b34801561062257600080fd5b506103c5610e17565b34801561063757600080fd5b5061064e610646366004612b00565b600092915050565b60405167ffffffffffffffff90911681526020016102f8565b34801561067357600080fd5b50610321610682366004612bf5565b610e2b565b34801561069357600080fd5b5060066104b6565b3480156106a757600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff1661038d565b3480156106d257600080fd5b506102eb610e4d565b3480156106e757600080fd5b506104637f000000000000000000000000000000000000000000000000000000e8d4a5100081565b34801561071b57600080fd5b506000610321565b34801561072f57600080fd5b5061032161073e36600461287b565b610e5c565b34801561074f57600080fd5b5060025461038d9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561077c57600080fd5b506103c561078b366004612ca1565b610e6a565b34801561079c57600080fd5b506104636107ab366004612ce3565b60016020526000908152604090205481565b3480156107c957600080fd5b506102eb6107d8366004612cfe565b610e84565b6103c56107eb366004612ca1565b611045565b6108036107fe366004612d5f565b611213565b6040516102f8929190612deb565b34801561081d57600080fd5b506103c561082c366004612bd8565b611247565b6103c561083f366004612a06565b6112f3565b34801561085057600080fd5b506103c561085f366004612bd8565b61133b565b34801561087057600080fd5b5061046361087f366004612e3e565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260066020908152604080832093909416825291909152205490565b3480156108c357600080fd5b506103c56108d2366004612bd8565b6113b6565b3480156108e357600080fd5b506103216108f2366004612e6c565b61141a565b60606008805461090690612e88565b80601f016020809104026020016040519081016040528092919081815260200182805461093290612e88565b801561097f5780601f106109545761010080835404028352916020019161097f565b820191906000526020600020905b81548152906001019060200180831161096257829003601f168201915b5050505050905090565b600033610997818585611450565b60019150505b92915050565b604080518082019091526000808252602082015260606109d6604051806040016040528060008152602001600081525090565b6000803073ffffffffffffffffffffffffffffffffffffffff1663fc0c546a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a489190612ed5565b73ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab69190612ef2565b60408051808201825284815260208082018490528251600080825291810190935290975091925090610b0b565b604080518082019091526000815260606020820152815260200190600190039081610ae35790505b509350600080610b30604089013560608a0135610b2b60208c018c612ce3565b611462565b60408051808201909152918252602082015296989597505050505050565b7f0000000000000000000000001a44076050125825900e736c501f859c50fe728c73ffffffffffffffffffffffffffffffffffffffff163314610bc4576040517f91ac5e4f0000000000000000000000000000000000000000000000000000000081523360048201526024015b60405180910390fd5b60208701803590610bde90610bd9908a612ce3565b6114b7565b14610c3557610bf06020880188612ce3565b6040517fc26bebcc00000000000000000000000000000000000000000000000000000000815263ffffffff909116600482015260208801356024820152604401610bbb565b610c448787878787878761150c565b50505050505050565b600033610c5b8582856116a6565b610c66858585611776565b60019150505b9392505050565b610c7b611821565b610c858282611874565b5050565b60408051808201909152600080825260208201526000610cb960408501356060860135610b2b6020880188612ce3565b915050600080610cc986846118c9565b9092509050610ce6610cde6020880188612ce3565b838388611a1f565b9695505050505050565b600360209081526000928352604080842090915290825290208054610d1490612e88565b80601f0160208091040260200160405190810160405280929190818152602001828054610d4090612e88565b8015610d8d5780601f10610d6257610100808354040283529160200191610d8d565b820191906000526020600020905b815481529060010190602001808311610d7057829003601f168201915b505050505081565b610d9d611821565b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527ff0be4f1e87349231d80c36b33f9e8639658eeaf474014dee15a3e6a4d4414197906020015b60405180910390a150565b610e1f611821565b610e296000611b0d565b565b73ffffffffffffffffffffffffffffffffffffffff811630145b949350505050565b60606009805461090690612e88565b600033610997818585611776565b610e72611821565b610c85610e7f828461301b565b611b82565b63ffffffff8416600090815260036020908152604080832061ffff87168452909152812080546060929190610eb890612e88565b80601f0160208091040260200160405190810160405280929190818152602001828054610ee490612e88565b8015610f315780601f10610f0657610100808354040283529160200191610f31565b820191906000526020600020905b815481529060010190602001808311610f1457829003601f168201915b505050505090508051600003610f815783838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929450610e459350505050565b6000839003610f91579050610e45565b6002831061100f57610fd884848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611c8992505050565b80610fe68460028188613131565b604051602001610ff89392919061315b565b604051602081830303815290604052915050610e45565b83836040517f9a6d49cd000000000000000000000000000000000000000000000000000000008152600401610bbb9291906131cc565b60005b8181101561114e5736838383818110611063576110636131e0565b9050602002810190611075919061320f565b90506110a86110876020830183612ce3565b602083013563ffffffff919091166000908152600160205260409020541490565b6110b25750611146565b3063d045a0dc60c08301358360a08101356110d161010083018361324d565b6110e2610100890160e08a01612bd8565b6110f06101208a018a61324d565b6040518963ffffffff1660e01b815260040161111297969594939291906132c8565b6000604051808303818588803b15801561112b57600080fd5b505af115801561113f573d6000803e3d6000fd5b5050505050505b600101611048565b503373ffffffffffffffffffffffffffffffffffffffff16638e9e70996040518163ffffffff1660e01b8152600401600060405180830381865afa15801561119a573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526111e0919081019061335c565b6040517f8351eea7000000000000000000000000000000000000000000000000000000008152600401610bbb9190612846565b61121b612790565b604080518082019091526000808252602082015261123a858585611cce565b915091505b935093915050565b61124f611821565b6040517fca5eb5e100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82811660048301527f0000000000000000000000001a44076050125825900e736c501f859c50fe728c169063ca5eb5e190602401600060405180830381600087803b1580156112d857600080fd5b505af11580156112ec573d6000803e3d6000fd5b5050505050565b33301461132c576040517f14d4a4e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c4487878787878787610c35565b611343611821565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527fd48d879cef83a1c0bdda516f27b13ddb1b3f8bbac1c9e1511bb2a659c242776090602001610e0c565b6113be611821565b73ffffffffffffffffffffffffffffffffffffffff811661140e576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610bbb565b61141781611b0d565b50565b60006020820180359060019083906114329086612ce3565b63ffffffff1681526020810191909152604001600020541492915050565b61145d8383836001611dc9565b505050565b60008061146e85611f11565b91508190508381101561123f576040517f71c4efed0000000000000000000000000000000000000000000000000000000081526004810182905260248101859052604401610bbb565b63ffffffff81166000908152600160205260408120548061099d576040517ff6ff4fb700000000000000000000000000000000000000000000000000000000815263ffffffff84166004820152602401610bbb565b600061151e61151b8787611f48565b90565b9050600061154a826115386115338a8a611f60565b611f83565b61154560208d018d612ce3565b611fb9565b9050602886111561163757600061158761156a60608c0160408d016133ca565b61157760208d018d612ce3565b846115828c8c611fee565b612039565b6040517f7cb5901200000000000000000000000000000000000000000000000000000000815290915073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000001a44076050125825900e736c501f859c50fe728c1690637cb59012906116039086908d9060009087906004016133e7565b600060405180830381600087803b15801561161d57600080fd5b505af1158015611631573d6000803e3d6000fd5b50505050505b73ffffffffffffffffffffffffffffffffffffffff8216887fefed6d3500546b29533b128a29e3a94d70788727f0507505ac12eaf2e578fd9c61167d60208d018d612ce3565b6040805163ffffffff9092168252602082018690520160405180910390a3505050505050505050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600660209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8110156117705781811015611761576040517ffb8f41b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff841660048201526024810182905260448101839052606401610bbb565b61177084848484036000611dc9565b50505050565b73ffffffffffffffffffffffffffffffffffffffff83166117c6576040517f96c6fd1e00000000000000000000000000000000000000000000000000000000815260006004820152602401610bbb565b73ffffffffffffffffffffffffffffffffffffffff8216611816576040517fec442f0500000000000000000000000000000000000000000000000000000000815260006004820152602401610bbb565b61145d83838361206b565b60005473ffffffffffffffffffffffffffffffffffffffff163314610e29576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610bbb565b63ffffffff8216600081815260016020908152604091829020849055815192835282018390527f238399d427b947898edb290f5ff0f9109849b1c3ba196a42e35f00c50a54b98b910160405180910390a15050565b606080600061192685602001356118df86612216565b6118ec60a089018961324d565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061228a92505050565b909350905060008161193957600161193c565b60025b905061195c61194e6020880188612ce3565b826107d860808a018a61324d565b60045490935073ffffffffffffffffffffffffffffffffffffffff168015611a15576040517f043a78eb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82169063043a78eb906119d29088908890600401613426565b602060405180830381865afa1580156119ef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a13919061344b565b505b5050509250929050565b60408051808201909152600080825260208201527f0000000000000000000000001a44076050125825900e736c501f859c50fe728c73ffffffffffffffffffffffffffffffffffffffff1663ddc28c586040518060a001604052808863ffffffff168152602001611a8f896114b7565b8152602001878152602001868152602001851515815250306040518363ffffffff1660e01b8152600401611ac4929190613468565b6040805180830381865afa158015611ae0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b04919061353c565b95945050505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60005b8151811015611c5957611bb4828281518110611ba357611ba36131e0565b602002602001015160400151611c89565b818181518110611bc657611bc66131e0565b60200260200101516040015160036000848481518110611be857611be86131e0565b60200260200101516000015163ffffffff1663ffffffff1681526020019081526020016000206000848481518110611c2257611c226131e0565b60200260200101516020015161ffff1661ffff1681526020019081526020016000209081611c5091906135a8565b50600101611b85565b507fbe4864a8e820971c0247f5992e2da559595f7bf076a21cb5928d443d2a13b67481604051610e0c91906136c2565b600281015161ffff8116600314610c8557816040517f9a6d49cd000000000000000000000000000000000000000000000000000000008152600401610bbb9190612846565b611cd6612790565b6040805180820190915260008082526020820152600080611d0d33604089013560608a0135611d0860208c018c612ce3565b61231c565b91509150600080611d1e89846118c9565b9092509050611d4a611d3360208b018b612ce3565b8383611d44368d90038d018d61376b565b8b612342565b60408051808201909152858152602080820186905282519298509096503391907f85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a90611d98908d018d612ce3565b6040805163ffffffff909216825260208201899052810187905260600160405180910390a350505050935093915050565b73ffffffffffffffffffffffffffffffffffffffff8416611e19576040517fe602df0500000000000000000000000000000000000000000000000000000000815260006004820152602401610bbb565b73ffffffffffffffffffffffffffffffffffffffff8316611e69576040517f94280d6200000000000000000000000000000000000000000000000000000000815260006004820152602401610bbb565b73ffffffffffffffffffffffffffffffffffffffff80851660009081526006602090815260408083209387168352929052208290558015611770578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051611f0391815260200190565b60405180910390a350505050565b60007f000000000000000000000000000000000000000000000000000000e8d4a51000611f3e81846137cc565b61099d9190613807565b6000611f576020828486613131565b610c6c9161381e565b6000611f70602860208486613131565b611f799161385a565b60c01c9392505050565b600061099d7f000000000000000000000000000000000000000000000000000000e8d4a5100067ffffffffffffffff8416613807565b600073ffffffffffffffffffffffffffffffffffffffff8416611fdc5761dead93505b611fe6848461245a565b509092915050565b6060611ffd8260288186613131565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929695505050505050565b60608484848460405160200161205294939291906138a2565b6040516020818303038152906040529050949350505050565b73ffffffffffffffffffffffffffffffffffffffff83166120a35780600760008282546120989190613920565b909155506121559050565b73ffffffffffffffffffffffffffffffffffffffff831660009081526005602052604090205481811015612129576040517fe450d38c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff851660048201526024810182905260448101839052606401610bbb565b73ffffffffffffffffffffffffffffffffffffffff841660009081526005602052604090209082900390555b73ffffffffffffffffffffffffffffffffffffffff821661217e576007805482900390556121aa565b73ffffffffffffffffffffffffffffffffffffffff821660009081526005602052604090208054820190555b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161220991815260200190565b60405180910390a3505050565b6000806122437f000000000000000000000000000000000000000000000000000000e8d4a51000846137cc565b905067ffffffffffffffff81111561099d576040517fe2ce941300000000000000000000000000000000000000000000000000000000815260048101829052602401610bbb565b80516060901515806122eb5784846040516020016122d792919091825260c01b7fffffffffffffffff00000000000000000000000000000000000000000000000016602082015260280190565b604051602081830303815290604052612312565b848433856040516020016123029493929190613933565b6040516020818303038152906040525b9150935093915050565b60008061232a858585611462565b909250905061233986836124b6565b94509492505050565b61234a612790565b60006123598460000151612512565b602085015190915015612373576123738460200151612553565b7f0000000000000000000000001a44076050125825900e736c501f859c50fe728c73ffffffffffffffffffffffffffffffffffffffff16632637a450826040518060a001604052808b63ffffffff1681526020016123d08c6114b7565b81526020018a815260200189815260200160008960200151111515815250866040518463ffffffff1660e01b815260040161240c929190613468565b60806040518083038185885af115801561242a573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061244f919061398c565b979650505050505050565b73ffffffffffffffffffffffffffffffffffffffff82166124aa576040517fec442f0500000000000000000000000000000000000000000000000000000000815260006004820152602401610bbb565b610c856000838361206b565b73ffffffffffffffffffffffffffffffffffffffff8216612506576040517f96c6fd1e00000000000000000000000000000000000000000000000000000000815260006004820152602401610bbb565b610c858260008361206b565b600081341461254f576040517f9f704120000000000000000000000000000000000000000000000000000000008152346004820152602401610bbb565b5090565b60007f0000000000000000000000001a44076050125825900e736c501f859c50fe728c73ffffffffffffffffffffffffffffffffffffffff1663e4fe1d946040518163ffffffff1660e01b8152600401602060405180830381865afa1580156125c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125e49190612ed5565b905073ffffffffffffffffffffffffffffffffffffffff8116612633576040517f5373352a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805133602482018190527f0000000000000000000000001a44076050125825900e736c501f859c50fe728c73ffffffffffffffffffffffffffffffffffffffff81811660448501526064808501889052855180860390910181526084909401909452602080840180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001781528451610c8596881695899361177093889360009283929091839182885af18061270f576040513d6000823e3d81fd5b50506000513d91508115612727578060011415612741565b73ffffffffffffffffffffffffffffffffffffffff84163b155b15611770576040517f5274afe700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85166004820152602401610bbb565b604051806060016040528060008019168152602001600067ffffffffffffffff1681526020016127d3604051806040016040528060008152602001600081525090565b905290565b60005b838110156127f35781810151838201526020016127db565b50506000910152565b600081518084526128148160208601602086016127d8565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000610c6c60208301846127fc565b73ffffffffffffffffffffffffffffffffffffffff8116811461141757600080fd5b6000806040838503121561288e57600080fd5b823561289981612859565b946020939093013593505050565b600060e082840312156128b957600080fd5b50919050565b6000602082840312156128d157600080fd5b813567ffffffffffffffff8111156128e857600080fd5b610e45848285016128a7565b8351815260208085015190820152600060a08201604060a0604085015281865180845260c08601915060c08160051b8701019350602080890160005b8381101561298d578887037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff4001855281518051885283015183880187905261297a878901826127fc565b9750509382019390820190600101612930565b50508751606088015250505060208501516080850152509050610e45565b6000606082840312156128b957600080fd5b60008083601f8401126129cf57600080fd5b50813567ffffffffffffffff8111156129e757600080fd5b6020830191508360208285010111156129ff57600080fd5b9250929050565b600080600080600080600060e0888a031215612a2157600080fd5b612a2b89896129ab565b965060608801359550608088013567ffffffffffffffff80821115612a4f57600080fd5b612a5b8b838c016129bd565b909750955060a08a01359150612a7082612859565b90935060c08901359080821115612a8657600080fd5b50612a938a828b016129bd565b989b979a50959850939692959293505050565b600080600060608486031215612abb57600080fd5b8335612ac681612859565b92506020840135612ad681612859565b929592945050506040919091013590565b803563ffffffff81168114612afb57600080fd5b919050565b60008060408385031215612b1357600080fd5b61289983612ae7565b801515811461141757600080fd5b60008060408385031215612b3d57600080fd5b823567ffffffffffffffff811115612b5457600080fd5b612b60858286016128a7565b9250506020830135612b7181612b1c565b809150509250929050565b81518152602080830151908201526040810161099d565b803561ffff81168114612afb57600080fd5b60008060408385031215612bb857600080fd5b612bc183612ae7565b9150612bcf60208401612b93565b90509250929050565b600060208284031215612bea57600080fd5b8135610c6c81612859565b60008060008060a08587031215612c0b57600080fd5b612c1586866129ab565b9350606085013567ffffffffffffffff811115612c3157600080fd5b612c3d878288016129bd565b9094509250506080850135612c5181612859565b939692955090935050565b60008083601f840112612c6e57600080fd5b50813567ffffffffffffffff811115612c8657600080fd5b6020830191508360208260051b85010111156129ff57600080fd5b60008060208385031215612cb457600080fd5b823567ffffffffffffffff811115612ccb57600080fd5b612cd785828601612c5c565b90969095509350505050565b600060208284031215612cf557600080fd5b610c6c82612ae7565b60008060008060608587031215612d1457600080fd5b612d1d85612ae7565b9350612d2b60208601612b93565b9250604085013567ffffffffffffffff811115612d4757600080fd5b612d53878288016129bd565b95989497509550505050565b60008060008385036080811215612d7557600080fd5b843567ffffffffffffffff811115612d8c57600080fd5b612d98878288016128a7565b94505060407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe082011215612dcb57600080fd5b506020840191506060840135612de081612859565b809150509250925092565b600060c0820190508351825267ffffffffffffffff60208501511660208301526040840151612e27604084018280518252602090810151910152565b5082516080830152602083015160a0830152610c6c565b60008060408385031215612e5157600080fd5b8235612e5c81612859565b91506020830135612b7181612859565b600060608284031215612e7e57600080fd5b610c6c83836129ab565b600181811c90821680612e9c57607f821691505b6020821081036128b9577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060208284031215612ee757600080fd5b8151610c6c81612859565b600060208284031215612f0457600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040516060810167ffffffffffffffff81118282101715612f5d57612f5d612f0b565b60405290565b6040805190810167ffffffffffffffff81118282101715612f5d57612f5d612f0b565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715612fcd57612fcd612f0b565b604052919050565b600067ffffffffffffffff821115612fef57612fef612f0b565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b600067ffffffffffffffff8084111561303657613036612f0b565b8360051b6020613047818301612f86565b86815291850191818101903684111561305f57600080fd5b865b84811015613125578035868111156130795760008081fd5b8801606036829003121561308d5760008081fd5b613095612f3a565b61309e82612ae7565b81526130ab868301612b93565b86820152604080830135898111156130c35760008081fd5b929092019136601f8401126130d85760008081fd5b82356130eb6130e682612fd5565b612f86565b81815236898387010111156131005760008081fd5b818986018a830137600091810189019190915290820152845250918301918301613061565b50979650505050505050565b6000808585111561314157600080fd5b8386111561314e57600080fd5b5050820193919092039150565b6000845161316d8184602089016127d8565b8201838582376000930192835250909392505050565b8183528181602085013750600060208284010152600060207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b602081526000610e45602083018486613183565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082357ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec183360301811261324357600080fd5b9190910192915050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261328257600080fd5b83018035915067ffffffffffffffff82111561329d57600080fd5b6020019150368190038213156129ff57600080fd5b67ffffffffffffffff8116811461141757600080fd5b63ffffffff6132d689612ae7565b16815260208801356020820152600060408901356132f3816132b2565b67ffffffffffffffff811660408401525087606083015260e0608083015261331f60e083018789613183565b73ffffffffffffffffffffffffffffffffffffffff861660a084015282810360c084015261334e818587613183565b9a9950505050505050505050565b60006020828403121561336e57600080fd5b815167ffffffffffffffff81111561338557600080fd5b8201601f8101841361339657600080fd5b80516133a46130e682612fd5565b8181528560208385010111156133b957600080fd5b611b048260208301602086016127d8565b6000602082840312156133dc57600080fd5b8135610c6c816132b2565b73ffffffffffffffffffffffffffffffffffffffff8516815283602082015261ffff83166040820152608060608201526000610ce660808301846127fc565b60408152600061343960408301856127fc565b8281036020840152611b0481856127fc565b60006020828403121561345d57600080fd5b8151610c6c81612b1c565b6040815263ffffffff8351166040820152602083015160608201526000604084015160a0608084015261349e60e08401826127fc565b905060608501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08483030160a08501526134d982826127fc565b60809690960151151560c085015250505073ffffffffffffffffffffffffffffffffffffffff9190911660209091015290565b60006040828403121561351e57600080fd5b613526612f63565b9050815181526020820151602082015292915050565b60006040828403121561354e57600080fd5b610c6c838361350c565b601f82111561145d576000816000526020600020601f850160051c810160208610156135815750805b601f850160051c820191505b818110156135a05782815560010161358d565b505050505050565b815167ffffffffffffffff8111156135c2576135c2612f0b565b6135d6816135d08454612e88565b84613558565b602080601f83116001811461362957600084156135f35750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b1785556135a0565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b8281101561367657888601518255948401946001909101908401613657565b50858210156136b257878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b600060208083018184528085518083526040925060408601915060408160051b87010184880160005b8381101561375d578883037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc00185528151805163ffffffff1684528781015161ffff16888501528601516060878501819052613749818601836127fc565b9689019694505050908601906001016136eb565b509098975050505050505050565b60006040828403121561377d57600080fd5b613785612f63565b82358152602083013560208201528091505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082613802577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b808202811582820484141761099d5761099d61379d565b8035602083101561099d577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff602084900360031b1b1692915050565b7fffffffffffffffff000000000000000000000000000000000000000000000000813581811691600885101561389a5780818660080360031b1b83161692505b505092915050565b7fffffffffffffffff0000000000000000000000000000000000000000000000008560c01b1681527fffffffff000000000000000000000000000000000000000000000000000000008460e01b16600882015282600c8201526000825161391081602c8501602087016127d8565b91909101602c0195945050505050565b8082018082111561099d5761099d61379d565b8481527fffffffffffffffff0000000000000000000000000000000000000000000000008460c01b1660208201528260288201526000825161397c8160488501602087016127d8565b9190910160480195945050505050565b60006080828403121561399e57600080fd5b6139a6612f3a565b8251815260208301516139b8816132b2565b60208201526139ca846040850161350c565b6040820152939250505056fea2646970667358221220856890b8d008384e42bd931a80c995f6baf3c54a1836e822facb297fc43f103d64736f6c63430008160033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000001a44076050125825900e736c501f859c50fe728c000000000000000000000000c3d3f35811e62f42918c7e11c9548eaad82319f200000000000000000000000000000000000000000000000000000000000000085a656e636861696e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035a54430000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Zenchain
Arg [1] : _symbol (string): ZTC
Arg [2] : _lzEndpoint (address): 0x1a44076050125825900e736c501f859c50fE728c
Arg [3] : _delegate (address): 0xC3d3f35811E62f42918c7E11C9548EAad82319f2

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000001a44076050125825900e736c501f859c50fe728c
Arg [3] : 000000000000000000000000c3d3f35811e62f42918c7e11c9548eaad82319f2
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [5] : 5a656e636861696e000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [7] : 5a54430000000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

129830:237:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;117121:91;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;119331:190;;;;;;;;;;-1:-1:-1;119331:190:0;;;;;:::i;:::-;;:::i;:::-;;;1473:14:1;;1466:22;1448:41;;1436:2;1421:18;119331:190:0;1308:187:1;92303:1301:0;;;;;;;;;;-1:-1:-1;92303:1301:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;:::i;89396:27::-;;;;;;;;;;-1:-1:-1;89396:27:0;;;;;;;;;;;3757:42:1;3745:55;;;3727:74;;3715:2;3700:18;89396:27:0;3581:226:1;37782:723:0;;;;;;:::i;:::-;;:::i;:::-;;89267:40;;;;;;;;;;;;89306:1;89267:40;;;;;5549:6:1;5537:19;;;5519:38;;5507:2;5492:18;89267:40:0;5375:188:1;90565:142:0;;;;;;;;;;-1:-1:-1;90565:142:0;;;90673:22;5738:98:1;;90697:1:0;5867:2:1;5852:18;;5845:59;5711:18;90565:142:0;5568:342:1;63324:243:0;;;;;;;;;;-1:-1:-1;63324:243:0;;;57286:1;6122:34:1;;34015:1:0;6187:2:1;6172:18;;6165:43;6058:18;63324:243:0;5915:299:1;118194:99:0;;;;;;;;;;-1:-1:-1;118273:12:0;;118194:99;;;6365:25:1;;;6353:2;6338:18;118194:99:0;6219:177:1;89229:31:0;;;;;;;;;;;;89259:1;89229:31;;120131:249;;;;;;;;;;-1:-1:-1;120131:249:0;;;;;:::i;:::-;;:::i;118074:84::-;;;;;;;;;;-1:-1:-1;118148:2:0;118074:84;;;7034:4:1;7022:17;;;7004:36;;6992:2;6977:18;118074:84:0;6862:184:1;31741:110:0;;;;;;;;;;-1:-1:-1;31741:110:0;;;;;:::i;:::-;;:::i;94067:787::-;;;;;;;;;;-1:-1:-1;94067:787:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;69738:95::-;;;;;;;;;;-1:-1:-1;69820:4:0;69738:95;;25667:93;;;;;;;;;;-1:-1:-1;25667:93:0;;;;;:::i;:::-;;:::i;103501:134::-;;;;;;;;;;-1:-1:-1;103501:134:0;;;;;:::i;:::-;103607:11;;;;;103583:4;103607:11;;;:5;:11;;;;;;:20;;103501:134;30434:46;;;;;;;;;;;;;;;91772:166;;;;;;;;;;-1:-1:-1;91772:166:0;;;;;:::i;:::-;;:::i;118329:118::-;;;;;;;;;;-1:-1:-1;118329:118:0;;;;;:::i;:::-;118421:18;;118394:7;118421:18;;;:9;:18;;;;;;;118329:118;24418:103;;;;;;;;;;;;;:::i;36904:130::-;;;;;;;;;;-1:-1:-1;36904:130:0;;;;;:::i;:::-;36993:12;36904:130;;;;;;;;9686:18:1;9674:31;;;9656:50;;9644:2;9629:18;36904:130:0;9512:200:1;35378:222:0;;;;;;;;;;-1:-1:-1;35378:222:0;;;;;:::i;:::-;;:::i;91326:89::-;;;;;;;;;;-1:-1:-1;91406:1:0;91326:89;;23743:87;;;;;;;;;;-1:-1:-1;23789:7:0;23816:6;;;23743:87;;117331:95;;;;;;;;;;;;;:::i;88918:46::-;;;;;;;;;;;;;;;127799:96;;;;;;;;;;-1:-1:-1;127858:4:0;127799:96;;118652:182;;;;;;;;;;-1:-1:-1;118652:182:0;;;;;:::i;:::-;;:::i;69413:23::-;;;;;;;;;;-1:-1:-1;69413:23:0;;;;;;;;26532:158;;;;;;;;;;-1:-1:-1;26532:158:0;;;;;:::i;:::-;;:::i;30560:48::-;;;;;;;;;;-1:-1:-1;30560:48:0;;;;;:::i;:::-;;;;;;;;;;;;;;28686:1003;;;;;;;;;;-1:-1:-1;28686:1003:0;;;;;:::i;:::-;;:::i;70582:1358::-;;;;;;:::i;:::-;;:::i;95559:296::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;33306:107::-;;;;;;;;;;-1:-1:-1;33306:107:0;;;;;:::i;:::-;;:::i;72602:419::-;;;;;;:::i;:::-;;:::i;69971:142::-;;;;;;;;;;-1:-1:-1;69971:142:0;;;;;:::i;:::-;;:::i;118870:::-;;;;;;;;;;-1:-1:-1;118870:142:0;;;;;:::i;:::-;118977:18;;;;118950:7;118977:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;118870:142;24676:220;;;;;;;;;;-1:-1:-1;24676:220:0;;;;;:::i;:::-;;:::i;36153:151::-;;;;;;;;;;-1:-1:-1;36153:151:0;;;;;:::i;:::-;;:::i;117121:91::-;117166:13;117199:5;117192:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;117121:91;:::o;119331:190::-;119404:4;21854:10;119460:31;21854:10;119476:7;119485:5;119460:8;:31::i;:::-;119509:4;119502:11;;;119331:190;;;;;:::o;92303:1301::-;-1:-1:-1;;;;;;;;;;;;;;;;;92461:35:0;92498:28;-1:-1:-1;;;;;;;;;;;;;;;;;;;92498:28:0;92544:19;92619;92648:4;:10;;;:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;92641:32;;;:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;92738;;;;;;;;;;;;;;;;;;92892:21;;-1:-1:-1;92892:21:0;;;;;;;;;92738:34;;-1:-1:-1;92738:34:0;;-1:-1:-1;92892:21:0;;;;-1:-1:-1;;;;;;;;;;;;;;;;;92892:21:0;;;;;;;;;;;;;;;-1:-1:-1;92876:37:0;-1:-1:-1;93356:20:0;;93406:124;93431:19;;;;93465:22;;;;93502:17;;;;93431:10;93502:17;:::i;:::-;93406:10;:124::i;:::-;93554:42;;;;;;;;;;;;;;;;92303:1301;;;;-1:-1:-1;;;;;;92303:1301:0:o;37782:723::-;38103:8;38095:31;;38116:10;38095:31;38091:68;;38135:24;;;;;38148:10;38135:24;;;3727:74:1;3700:18;;38135:24:0;;;;;;;;38091:68;38298:14;;;;;;38262:32;;38279:14;;38298:7;38279:14;:::i;:::-;38262:16;:32::i;:::-;:50;38258:103;;38330:14;;;;:7;:14;:::i;:::-;38321:40;;;;;15979:10:1;15967:23;;;38321:40:0;;;15949:42:1;38346:14:0;;;;16007:18:1;;;16000:34;15922:18;;38321:40:0;15777:263:1;38258:103:0;38438:59;38449:7;38458:5;38465:8;;38475:9;38486:10;;38438;:59::i;:::-;37782:723;;;;;;;:::o;120131:249::-;120218:4;21854:10;120276:37;120292:4;21854:10;120307:5;120276:15;:37::i;:::-;120324:26;120334:4;120340:2;120344:5;120324:9;:26::i;:::-;120368:4;120361:11;;;120131:249;;;;;;:::o;31741:110::-;23629:13;:11;:13::i;:::-;31822:21:::1;31831:4;31837:5;31822:8;:21::i;:::-;31741:110:::0;;:::o;94067:787::-;-1:-1:-1;;;;;;;;;;;;;;;;;94407:24:0;94435:74;94446:19;;;;94467:22;;;;94491:17;;;;94446:10;94491:17;:::i;94435:74::-;94404:105;;;94601:20;94623;94647:49;94667:10;94679:16;94647:19;:49::i;:::-;94600:96;;-1:-1:-1;94600:96:0;-1:-1:-1;94788:58:0;94795:17;;;;:10;:17;:::i;:::-;94814:7;94823;94832:13;94788:6;:58::i;:::-;94781:65;94067:787;-1:-1:-1;;;;;;94067:787:0:o;25667:93::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;91772:166::-;23629:13;:11;:13::i;:::-;91856:12:::1;:28:::0;;;::::1;;::::0;::::1;::::0;;::::1;::::0;;;91900:30:::1;::::0;3727:74:1;;;91900:30:0::1;::::0;3715:2:1;3700:18;91900:30:0::1;;;;;;;;91772:166:::0;:::o;24418:103::-;23629:13;:11;:13::i;:::-;24483:30:::1;24510:1;24483:18;:30::i;:::-;24418:103::o:0;35378:222::-;35568:24;;;35587:4;35568:24;35378:222;;;;;;;:::o;117331:95::-;117378:13;117411:7;117404:14;;;;;:::i;118652:182::-;118721:4;21854:10;118777:27;21854:10;118794:2;118798:5;118777:9;:27::i;26532:158::-;23629:13;:11;:13::i;:::-;26645:37:::1;;26665:16:::0;;26645:37:::1;:::i;:::-;:19;:37::i;28686:1003::-:0;28882:21;;;28858;28882;;;:15;:21;;;;;;;;:31;;;;;;;;;;28858:55;;28833:12;;28858:21;28882:31;28858:55;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29045:8;:15;29064:1;29045:20;29041:46;;29074:13;;29067:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29067:20:0;;-1:-1:-1;29067:20:0;;-1:-1:-1;;;;29067:20:0;29041:46;29175:1;29151:25;;;29147:46;;29185:8;-1:-1:-1;29178:15:0;;29147:46;29343:1;29319:25;;29315:271;;29361:34;29381:13;;29361:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29361:19:0;;-1:-1:-1;;;29361:34:0:i;:::-;29546:8;29556:17;:13;29570:1;29556:13;;:17;:::i;:::-;29533:41;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;29526:48;;;;;29315:271;29667:13;;29652:29;;;;;;;;;;;;:::i;70582:1358::-;70684:9;70679:1057;70699:19;;;70679:1057;;;70740:29;70772:8;;70781:1;70772:11;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;70740:43;-1:-1:-1;70869:50:0;70876:20;;;;70740:43;70876:20;:::i;:::-;70898;;;;103607:11;;;;;103583:4;103607:11;;;:5;:11;;;;;;:20;;103501:134;70869:50;70864:65;;70921:8;;;70864:65;71500:4;:22;71531:12;;;;:6;71596:11;;;;71626:14;;;;71531:6;71626:14;:::i;:::-;71659:15;;;;;;;;:::i;:::-;71693:16;;;;:6;:16;:::i;:::-;71500:224;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70725:1011;70679:1057;70720:3;;70679:1057;;;;71896:10;71886:43;;;:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;71869:63;;;;;;;;;;;:::i;95559:296::-;95724:34;;:::i;:::-;-1:-1:-1;;;;;;;;;;;;;;;;;95808:39:0;95814:10;95826:4;95832:14;95808:5;:39::i;:::-;95801:46;;;;95559:296;;;;;;;:::o;33306:107::-;23629:13;:11;:13::i;:::-;33374:31:::1;::::0;;;;:20:::1;3745:55:1::0;;;33374:31:0::1;::::0;::::1;3727:74:1::0;33374:8:0::1;:20;::::0;::::1;::::0;3700:18:1;;33374:31:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;33306:107:::0;:::o;72602:419::-;72889:10;72911:4;72889:27;72885:50;;72925:10;;;;;;;;;;;;;;72885:50;72946:67;72965:7;72974:5;72981:8;;72991:9;73002:10;;72946:18;:67::i;69971:142::-;23629:13;:11;:13::i;:::-;70047:8:::1;:20:::0;;;::::1;;::::0;::::1;::::0;;::::1;::::0;;;70083:22:::1;::::0;3727:74:1;;;70083:22:0::1;::::0;3715:2:1;3700:18;70083:22:0::1;3581:226:1::0;24676:220:0;23629:13;:11;:13::i;:::-;24761:22:::1;::::0;::::1;24757:93;;24807:31;::::0;::::1;::::0;;24835:1:::1;24807:31;::::0;::::1;3727:74:1::0;3700:18;;24807:31:0::1;3581:226:1::0;24757:93:0::1;24860:28;24879:8;24860:18;:28::i;:::-;24676:220:::0;:::o;36153:151::-;36235:4;36283:13;;;;;;36259:5;;36235:4;;36265:13;;36283:6;36265:13;:::i;:::-;36259:20;;;;;;;;;;;;;-1:-1:-1;36259:20:0;;:37;;36153:151;-1:-1:-1;;36153:151:0:o;124190:130::-;124275:37;124284:5;124291:7;124300:5;124307:4;124275:8;:37::i;:::-;124190:130;;;:::o;105862:682::-;106008:20;106030:24;106206:22;106218:9;106206:11;:22::i;:::-;106191:37;;106356:12;106337:31;;106441:12;106422:16;:31;106418:119;;;106477:48;;;;;;;;23818:25:1;;;23859:18;;;23852:34;;;23791:18;;106477:48:0;23644:248:1;32759:200:0;32864:11;;;32829:7;32864:11;;;:5;:11;;;;;;;32886:43;;32917:12;;;;;24071:10:1;24059:23;;32917:12:0;;;24041:42:1;24014:18;;32917:12:0;23897:192:1;100229:1837:0;100715:17;100735:36;:17;:8;;:15;:17::i;:::-;87722:2;87610:125;100735:36;100715:56;;100906:24;100933:62;100941:9;100952:26;100958:19;:8;;:17;:19::i;:::-;100952:5;:26::i;:::-;100980:14;;;;:7;:14;:::i;:::-;100933:7;:62::i;:::-;100906:89;-1:-1:-1;85001:2:0;-1:-1:-1;;101008:970:0;;;101114:23;101140:180;101184:13;;;;;;;;:::i;:::-;101216:14;;;;:7;:14;:::i;:::-;101249:16;101284:21;:8;;:19;:21::i;:::-;101140:25;:180::i;:::-;101874:92;;;;;101114:206;;-1:-1:-1;101874:20:0;:8;:20;;;;:92;;101895:9;;101906:5;;101913:1;;101114:206;;101874:92;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;101035:943;101008:970;101995:63;;;102007:5;101995:63;102014:14;;;;:7;:14;:::i;:::-;101995:63;;;15979:10:1;15967:23;;;15949:42;;16022:2;16007:18;;16000:34;;;15922:18;101995:63:0;;;;;;;100538:1528;;100229:1837;;;;;;;:::o;125922:486::-;118977:18;;;;126022:24;118977:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;126108:17;126089:36;;126085:316;;;126165:5;126146:16;:24;126142:132;;;126198:60;;;;;25351:42:1;25339:55;;126198:60:0;;;25321:74:1;25411:18;;;25404:34;;;25454:18;;;25447:34;;;25294:18;;126198:60:0;25119:368:1;126142:132:0;126317:57;126326:5;126333:7;126361:5;126342:16;:24;126368:5;126317:8;:57::i;:::-;126011:397;125922:486;;;:::o;120765:308::-;120849:18;;;120845:88;;120891:30;;;;;120918:1;120891:30;;;3727:74:1;3700:18;;120891:30:0;3581:226:1;120845:88:0;120947:16;;;120943:88;;120987:32;;;;;121016:1;120987:32;;;3727:74:1;3700:18;;120987:32:0;3581:226:1;120943:88:0;121041:24;121049:4;121055:2;121059:5;121041:7;:24::i;23908:166::-;23789:7;23816:6;23968:23;23816:6;21854:10;23968:23;23964:103;;24015:40;;;;;21854:10;24015:40;;;3727:74:1;3700:18;;24015:40:0;3581:226:1;32316:137:0;32390:11;;;;;;;:5;:11;;;;;;;;;:19;;;32425:20;;15949:42:1;;;16007:18;;16000:34;;;32425:20:0;;15922:18:1;32425:20:0;;;;;;;32316:137;;:::o;98240:1458::-;98375:20;98397;98430:15;98603:330;98636:10;:13;;;98664:16;98670:9;98664:5;:16::i;:::-;98901:21;;;;:10;:21;:::i;:::-;98603:330;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;98603:18:0;;-1:-1:-1;;;98603:330:0:i;:::-;98579:354;;-1:-1:-1;98579:354:0;-1:-1:-1;99015:14:0;98579:354;99032:33;;89259:1;99032:33;;;89306:1;99032:33;99015:50;-1:-1:-1;99189:67:0;99204:17;;;;:10;:17;:::i;:::-;99223:7;99232:23;;;;:10;:23;:::i;99189:67::-;99518:12;;99179:77;;-1:-1:-1;99518:12:0;;99611:23;;99607:83;;99636:54;;;;;:36;;;;;;:54;;99673:7;;99682;;99636:54;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;99607:83;98419:1279;;;98240:1458;;;;;:::o;58506:402::-;-1:-1:-1;;;;;;;;;;;;;;;;;58734:8:0;:14;;;58767:86;;;;;;;;58783:7;58767:86;;;;;;58792:25;58809:7;58792:16;:25::i;:::-;58767:86;;;;58819:8;58767:86;;;;58829:8;58767:86;;;;58839:13;58767:86;;;;;58880:4;58734:166;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;58714:186;58506:402;-1:-1:-1;;;;;58506:402:0:o;25056:191::-;25130:16;25149:6;;;25166:17;;;;;;;;;;25199:40;;25149:6;;;;;;;25199:40;;25130:16;25199:40;25119:128;25056:191;:::o;27391:522::-;27500:9;27495:358;27519:16;:23;27515:1;:27;27495:358;;;27679:48;27699:16;27716:1;27699:19;;;;;;;;:::i;:::-;;;;;;;:27;;;27679:19;:48::i;:::-;27814:16;27831:1;27814:19;;;;;;;;:::i;:::-;;;;;;;:27;;;27742:15;:40;27758:16;27775:1;27758:19;;;;;;;;:::i;:::-;;;;;;;:23;;;27742:40;;;;;;;;;;;;;;;:69;27783:16;27800:1;27783:19;;;;;;;;:::i;:::-;;;;;;;:27;;;27742:69;;;;;;;;;;;;;;;:99;;;;;;:::i;:::-;-1:-1:-1;27544:3:0;;27495:358;;;;27870:35;27888:16;27870:35;;;;;;:::i;29835:270::-;30008:1;29994:16;;29988:23;30036:28;;;25589:1;30036:28;30032:65;;30088:8;30073:24;;;;;;;;;;;:::i;96580:1357::-;96738:34;;:::i;:::-;-1:-1:-1;;;;;;;;;;;;;;;;;97140:20:0;;97190:145;97211:10;97236:19;;;;97270:22;;;;97307:17;;;;97236:10;97307:17;:::i;:::-;97190:6;:145::i;:::-;97139:196;;;;97427:20;97449;97473:49;97493:10;97505:16;97473:19;:49::i;:::-;97426:96;;-1:-1:-1;97426:96:0;-1:-1:-1;97648:66:0;97656:17;;;;:10;:17;:::i;:::-;97675:7;97684;97648:66;;;;;;;97693:4;97648:66;:::i;:::-;97699:14;97648:7;:66::i;:::-;97782:42;;;;;;;;;;;;;;;;;;;97850:15;;97635:79;;-1:-1:-1;97782:42:0;;-1:-1:-1;97886:10:0;;97850:15;97842:87;;97867:17;;;;:10;:17;:::i;:::-;97842:87;;;31832:10:1;31820:23;;;31802:42;;31875:2;31860:18;;31853:34;;;31903:18;;31896:34;;;31790:2;31775:18;97842:87:0;;;;;;;96804:1133;;;;96580:1357;;;;;;:::o;125187:443::-;125300:19;;;125296:91;;125343:32;;;;;125372:1;125343:32;;;3727:74:1;3700:18;;125343:32:0;3581:226:1;125296:91:0;125401:21;;;125397:92;;125446:31;;;;;125474:1;125446:31;;;3727:74:1;3700:18;;125446:31:0;3581:226:1;125397:92:0;125499:18;;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;:35;;;125545:78;;;;125596:7;125580:31;;125589:5;125580:31;;;125605:5;125580:31;;;;6365:25:1;;6353:2;6338:18;;6219:177;125580:31:0;;;;;;;;125187:443;;;;:::o;104039:174::-;104110:16;104184:21;104147:33;104184:21;104147:9;:33;:::i;:::-;104146:59;;;;:::i;86367:125::-;86427:7;86462:21;84945:2;86427:7;86462:4;;:21;:::i;:::-;86454:30;;;:::i;86677:154::-;86739:6;86779:42;85001:2;84945;86779:4;;:42;:::i;:::-;86772:50;;;:::i;:::-;86765:58;;;86677:154;-1:-1:-1;;;86677:154:0:o;104444:141::-;104508:16;104544:33;104556:21;104544:33;;;;:::i;129313:472::-;129451:24;129492:19;;;129488:46;;129527:6;129513:21;;129488:46;129632:21;129638:3;129643:9;129632:5;:21::i;:::-;-1:-1:-1;129768:9:0;;129313:472;-1:-1:-1;;129313:472:0:o;86998:132::-;87062:12;87094:28;:4;85001:2;87094:4;;:28;:::i;:::-;87087:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;87087:35:0;;86998:132;-1:-1:-1;;;;;;86998:132:0:o;82311:291::-;82500:17;82554:6;82562:7;82571:9;82582:11;82537:57;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;82530:64;;82311:291;;;;;;:::o;121397:1135::-;121487:18;;;121483:552;;121641:5;121625:12;;:21;;;;;;;:::i;:::-;;;;-1:-1:-1;121483:552:0;;-1:-1:-1;121483:552:0;;121701:15;;;121679:19;121701:15;;;:9;:15;;;;;;121735:19;;;121731:117;;;121782:50;;;;;25351:42:1;25339:55;;121782:50:0;;;25321:74:1;25411:18;;;25404:34;;;25454:18;;;25447:34;;;25294:18;;121782:50:0;25119:368:1;121731:117:0;121971:15;;;;;;;:9;:15;;;;;121989:19;;;;121971:37;;121483:552;122051:16;;;122047:435;;122217:12;:21;;;;;;;122047:435;;;122433:13;;;;;;;:9;:13;;;;;:22;;;;;;122047:435;122514:2;122499:25;;122508:4;122499:25;;;122518:5;122499:25;;;;6365::1;;6353:2;6338:18;;6219:177;122499:25:0;;;;;;;;121397:1135;;;:::o;104995:270::-;105060:15;;105108:33;105120:21;105108:9;:33;:::i;:::-;105088:53;-1:-1:-1;105168:16:0;105156:28;;105152:70;;;105193:29;;;;;;;;6365:25:1;;;6338:18;;105193:29:0;6219:177:1;85366:516:0;85564:18;;85504:17;;85564:22;;;85709:165;;85851:7;85860:13;85834:40;;;;;;;;34218:19:1;;;34275:3;34271:16;34289:66;34267:89;34262:2;34253:12;;34246:111;34382:2;34373:12;;34063:328;85834:40:0;;;;;;;;;;;;;85709:165;;;85752:7;85761:13;85793:10;85806:11;85735:83;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;85709:165;85702:172;;85366:516;;;;;;:::o;128389:580::-;128555:20;128577:24;128649:44;128660:9;128671:12;128685:7;128649:10;:44::i;:::-;128614:79;;-1:-1:-1;128614:79:0;-1:-1:-1;128935:26:0;128941:5;128614:79;128935:5;:26::i;:::-;128389:580;;;;;;;:::o;59683:783::-;59890:31;;:::i;:::-;60057:20;60080:26;60091:4;:14;;;60080:10;:26::i;:::-;60121:15;;;;60057:49;;-1:-1:-1;60121:19:0;60117:53;;60142:28;60154:4;:15;;;60142:11;:28::i;:::-;60263:8;:13;;;60285:12;60318:92;;;;;;;;60334:7;60318:92;;;;;;60343:25;60360:7;60343:16;:25::i;:::-;60318:92;;;;60370:8;60318:92;;;;60380:8;60318:92;;;;60408:1;60390:4;:15;;;:19;60318:92;;;;;60429:14;60263:195;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;60183:275;59683:783;-1:-1:-1;;;;;;;59683:783:0:o;122885:213::-;122956:21;;;122952:93;;123001:32;;;;;123030:1;123001:32;;;3727:74:1;3700:18;;123001:32:0;3581:226:1;122952:93:0;123055:35;123071:1;123075:7;123084:5;123055:7;:35::i;123426:211::-;123497:21;;;123493:91;;123542:30;;;;;123569:1;123542:30;;;3727:74:1;3700:18;;123542:30:0;3581:226:1;123493:91:0;123594:35;123602:7;123619:1;123623:5;123594:7;:35::i;61175:194::-;61241:17;61288:10;61275:9;:23;61271:62;;61307:26;;;;;61323:9;61307:26;;;6365:25:1;6338:18;;61307:26:0;6219:177:1;61271:62:0;-1:-1:-1;61351:10:0;61175:194::o;61755:417::-;61910:15;61928:8;:16;;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61910:36;-1:-1:-1;61961:21:0;;;61957:54;;61991:20;;;;;;;;;;;;;;61957:54;48188:53;;;62121:10;48188:53;;;35763:34:1;;;62141:8:0;62088:32;35833:15:1;;;35813:18;;;35806:43;35865:18;;;;35858:34;;;48188:53:0;;;;;;;;;;35675:18:1;;;;48188:53:0;;;;;;;;;;;;;;;55178:11;;62088:76;;:32;;;62152:11;;48161:81;;62088:32;;-1:-1:-1;;;;48188:53:0;;-1:-1:-1;;;62088:32:0;55144:5;55139:60;55253:7;55243:180;;55298:4;55292:11;55344:16;55341:1;55336:3;55321:40;55391:16;55386:3;55379:29;55243:180;-1:-1:-1;;55502:1:0;55496:8;55451:16;;-1:-1:-1;55531:15:0;;:68;;55583:11;55598:1;55583:16;;55531:68;;;55549:26;;;;:31;55531:68;55527:148;;;55623:40;;;;;3757:42:1;3745:55;;55623:40:0;;;3727:74:1;3700:18;;55623:40:0;3581:226:1;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;14:250:1:-;99:1;109:113;123:6;120:1;117:13;109:113;;;199:11;;;193:18;180:11;;;173:39;145:2;138:10;109:113;;;-1:-1:-1;;256:1:1;238:16;;231:27;14:250::o;269:330::-;311:3;349:5;343:12;376:6;371:3;364:19;392:76;461:6;454:4;449:3;445:14;438:4;431:5;427:16;392:76;:::i;:::-;513:2;501:15;518:66;497:88;488:98;;;;588:4;484:109;;269:330;-1:-1:-1;;269:330:1:o;604:220::-;753:2;742:9;735:21;716:4;773:45;814:2;803:9;799:18;791:6;773:45;:::i;829:154::-;915:42;908:5;904:54;897:5;894:65;884:93;;973:1;970;963:12;988:315;1056:6;1064;1117:2;1105:9;1096:7;1092:23;1088:32;1085:52;;;1133:1;1130;1123:12;1085:52;1172:9;1159:23;1191:31;1216:5;1191:31;:::i;:::-;1241:5;1293:2;1278:18;;;;1265:32;;-1:-1:-1;;;988:315:1:o;1500:158::-;1562:5;1607:3;1598:6;1593:3;1589:16;1585:26;1582:46;;;1624:1;1621;1614:12;1582:46;-1:-1:-1;1646:6:1;1500:158;-1:-1:-1;1500:158:1:o;1663:360::-;1751:6;1804:2;1792:9;1783:7;1779:23;1775:32;1772:52;;;1820:1;1817;1810:12;1772:52;1860:9;1847:23;1893:18;1885:6;1882:30;1879:50;;;1925:1;1922;1915:12;1879:50;1948:69;2009:7;2000:6;1989:9;1985:22;1948:69;:::i;2182:1394::-;2102:12;;2090:25;;2164:4;2153:16;;;2147:23;2131:14;;;2124:47;2548:4;2596:3;2581:19;;2673:2;2711:3;2706:2;2695:9;2691:18;2684:31;2735:6;2770;2764:13;2801:6;2793;2786:22;2839:3;2828:9;2824:19;2817:26;;2902:3;2892:6;2889:1;2885:14;2874:9;2870:30;2866:40;2852:54;;2925:4;2964;2956:6;2952:17;2987:1;2997:487;3011:6;3008:1;3005:13;2997:487;;;3076:22;;;3100:66;3072:95;3060:108;;3191:13;;3232:9;;3217:25;;3281:11;;3275:18;3313:15;;;3306:27;;;3356:48;3388:15;;;3275:18;3356:48;:::i;:::-;3346:58;-1:-1:-1;;3462:12:1;;;;3427:15;;;;3033:1;3026:9;2997:487;;;-1:-1:-1;;2102:12:1;;3566:2;3551:18;;2090:25;-1:-1:-1;;;2164:4:1;2153:16;;2147:23;2131:14;;;2124:47;-1:-1:-1;3501:6:1;-1:-1:-1;3516:54:1;2028:149;3812:154;3871:5;3916:2;3907:6;3902:3;3898:16;3894:25;3891:45;;;3932:1;3929;3922:12;3971:347;4022:8;4032:6;4086:3;4079:4;4071:6;4067:17;4063:27;4053:55;;4104:1;4101;4094:12;4053:55;-1:-1:-1;4127:20:1;;4170:18;4159:30;;4156:50;;;4202:1;4199;4192:12;4156:50;4239:4;4231:6;4227:17;4215:29;;4291:3;4284:4;4275:6;4267;4263:19;4259:30;4256:39;4253:59;;;4308:1;4305;4298:12;4253:59;3971:347;;;;;:::o;4323:1047::-;4465:6;4473;4481;4489;4497;4505;4513;4566:3;4554:9;4545:7;4541:23;4537:33;4534:53;;;4583:1;4580;4573:12;4534:53;4606;4651:7;4640:9;4606:53;:::i;:::-;4596:63;;4706:2;4695:9;4691:18;4678:32;4668:42;;4761:3;4750:9;4746:19;4733:33;4785:18;4826:2;4818:6;4815:14;4812:34;;;4842:1;4839;4832:12;4812:34;4881:58;4931:7;4922:6;4911:9;4907:22;4881:58;:::i;:::-;4958:8;;-1:-1:-1;4855:84:1;-1:-1:-1;5043:3:1;5028:19;;5015:33;;-1:-1:-1;5057:31:1;5015:33;5057:31;:::i;:::-;5107:5;;-1:-1:-1;5165:3:1;5150:19;;5137:33;;5182:16;;;5179:36;;;5211:1;5208;5201:12;5179:36;;5250:60;5302:7;5291:8;5280:9;5276:24;5250:60;:::i;:::-;4323:1047;;;;-1:-1:-1;4323:1047:1;;-1:-1:-1;4323:1047:1;;;;5224:86;;-1:-1:-1;;;4323:1047:1:o;6401:456::-;6478:6;6486;6494;6547:2;6535:9;6526:7;6522:23;6518:32;6515:52;;;6563:1;6560;6553:12;6515:52;6602:9;6589:23;6621:31;6646:5;6621:31;:::i;:::-;6671:5;-1:-1:-1;6728:2:1;6713:18;;6700:32;6741:33;6700:32;6741:33;:::i;:::-;6401:456;;6793:7;;-1:-1:-1;;;6847:2:1;6832:18;;;;6819:32;;6401:456::o;7051:163::-;7118:20;;7178:10;7167:22;;7157:33;;7147:61;;7204:1;7201;7194:12;7147:61;7051:163;;;:::o;7219:252::-;7286:6;7294;7347:2;7335:9;7326:7;7322:23;7318:32;7315:52;;;7363:1;7360;7353:12;7315:52;7386:28;7404:9;7386:28;:::i;7476:118::-;7562:5;7555:13;7548:21;7541:5;7538:32;7528:60;;7584:1;7581;7574:12;7599:489;7693:6;7701;7754:2;7742:9;7733:7;7729:23;7725:32;7722:52;;;7770:1;7767;7760:12;7722:52;7810:9;7797:23;7843:18;7835:6;7832:30;7829:50;;;7875:1;7872;7865:12;7829:50;7898:69;7959:7;7950:6;7939:9;7935:22;7898:69;:::i;:::-;7888:79;;;8017:2;8006:9;8002:18;7989:32;8030:28;8052:5;8030:28;:::i;:::-;8077:5;8067:15;;;7599:489;;;;;:::o;8093:255::-;2102:12;;2090:25;;2164:4;2153:16;;;2147:23;2131:14;;;2124:47;8285:2;8270:18;;8297:45;2028:149;8353:159;8420:20;;8480:6;8469:18;;8459:29;;8449:57;;8502:1;8499;8492:12;8517:256;8583:6;8591;8644:2;8632:9;8623:7;8619:23;8615:32;8612:52;;;8660:1;8657;8650:12;8612:52;8683:28;8701:9;8683:28;:::i;:::-;8673:38;;8730:37;8763:2;8752:9;8748:18;8730:37;:::i;:::-;8720:47;;8517:256;;;;;:::o;9260:247::-;9319:6;9372:2;9360:9;9351:7;9347:23;9343:32;9340:52;;;9388:1;9385;9378:12;9340:52;9427:9;9414:23;9446:31;9471:5;9446:31;:::i;9717:669::-;9830:6;9838;9846;9854;9907:3;9895:9;9886:7;9882:23;9878:33;9875:53;;;9924:1;9921;9914:12;9875:53;9947;9992:7;9981:9;9947:53;:::i;:::-;9937:63;;10051:2;10040:9;10036:18;10023:32;10078:18;10070:6;10067:30;10064:50;;;10110:1;10107;10100:12;10064:50;10149:58;10199:7;10190:6;10179:9;10175:22;10149:58;:::i;:::-;10226:8;;-1:-1:-1;10123:84:1;-1:-1:-1;;10311:3:1;10296:19;;10283:33;10325:31;10283:33;10325:31;:::i;:::-;9717:669;;;;-1:-1:-1;9717:669:1;;-1:-1:-1;;9717:669:1:o;10391:395::-;10482:8;10492:6;10546:3;10539:4;10531:6;10527:17;10523:27;10513:55;;10564:1;10561;10554:12;10513:55;-1:-1:-1;10587:20:1;;10630:18;10619:30;;10616:50;;;10662:1;10659;10652:12;10616:50;10699:4;10691:6;10687:17;10675:29;;10759:3;10752:4;10742:6;10739:1;10735:14;10727:6;10723:27;10719:38;10716:47;10713:67;;;10776:1;10773;10766:12;10791:504;10916:6;10924;10977:2;10965:9;10956:7;10952:23;10948:32;10945:52;;;10993:1;10990;10983:12;10945:52;11033:9;11020:23;11066:18;11058:6;11055:30;11052:50;;;11098:1;11095;11088:12;11052:50;11137:98;11227:7;11218:6;11207:9;11203:22;11137:98;:::i;:::-;11254:8;;11111:124;;-1:-1:-1;10791:504:1;-1:-1:-1;;;;10791:504:1:o;11300:184::-;11358:6;11411:2;11399:9;11390:7;11386:23;11382:32;11379:52;;;11427:1;11424;11417:12;11379:52;11450:28;11468:9;11450:28;:::i;11671:553::-;11757:6;11765;11773;11781;11834:2;11822:9;11813:7;11809:23;11805:32;11802:52;;;11850:1;11847;11840:12;11802:52;11873:28;11891:9;11873:28;:::i;:::-;11863:38;;11920:37;11953:2;11942:9;11938:18;11920:37;:::i;:::-;11910:47;;12008:2;11997:9;11993:18;11980:32;12035:18;12027:6;12024:30;12021:50;;;12067:1;12064;12057:12;12021:50;12106:58;12156:7;12147:6;12136:9;12132:22;12106:58;:::i;:::-;11671:553;;;;-1:-1:-1;12183:8:1;-1:-1:-1;;;;11671:553:1:o;12732:715::-;12869:6;12877;12885;12929:9;12920:7;12916:23;12959:3;12955:2;12951:12;12948:32;;;12976:1;12973;12966:12;12948:32;13016:9;13003:23;13049:18;13041:6;13038:30;13035:50;;;13081:1;13078;13071:12;13035:50;13104:69;13165:7;13156:6;13145:9;13141:22;13104:69;:::i;:::-;13094:79;;;13266:2;13197:66;13193:2;13189:75;13185:84;13182:104;;;13282:1;13279;13272:12;13182:104;;13320:2;13309:9;13305:18;13295:28;;13373:2;13362:9;13358:18;13345:32;13386:31;13411:5;13386:31;:::i;:::-;13436:5;13426:15;;;12732:715;;;;;:::o;13452:611::-;13694:4;13736:3;13725:9;13721:19;13713:27;;13773:6;13767:13;13756:9;13749:32;13849:18;13841:4;13833:6;13829:17;13823:24;13819:49;13812:4;13801:9;13797:20;13790:79;13916:4;13908:6;13904:17;13898:24;13931:62;13987:4;13976:9;13972:20;13958:12;2102;;2090:25;;2164:4;2153:16;;;2147:23;2131:14;;2124:47;2028:149;13931:62;-1:-1:-1;2102:12:1;;14052:3;14037:19;;2090:25;2164:4;2153:16;;2147:23;2131:14;;;2124:47;14002:55;2028:149;14068:388;14136:6;14144;14197:2;14185:9;14176:7;14172:23;14168:32;14165:52;;;14213:1;14210;14203:12;14165:52;14252:9;14239:23;14271:31;14296:5;14271:31;:::i;:::-;14321:5;-1:-1:-1;14378:2:1;14363:18;;14350:32;14391:33;14350:32;14391:33;:::i;14461:235::-;14545:6;14598:2;14586:9;14577:7;14573:23;14569:32;14566:52;;;14614:1;14611;14604:12;14566:52;14637:53;14682:7;14671:9;14637:53;:::i;14701:437::-;14780:1;14776:12;;;;14823;;;14844:61;;14898:4;14890:6;14886:17;14876:27;;14844:61;14951:2;14943:6;14940:14;14920:18;14917:38;14914:218;;14988:77;14985:1;14978:88;15089:4;15086:1;15079:15;15117:4;15114:1;15107:15;15143:251;15213:6;15266:2;15254:9;15245:7;15241:23;15237:32;15234:52;;;15282:1;15279;15272:12;15234:52;15314:9;15308:16;15333:31;15358:5;15333:31;:::i;15399:184::-;15469:6;15522:2;15510:9;15501:7;15497:23;15493:32;15490:52;;;15538:1;15535;15528:12;15490:52;-1:-1:-1;15561:16:1;;15399:184;-1:-1:-1;15399:184:1:o;15588:::-;15640:77;15637:1;15630:88;15737:4;15734:1;15727:15;15761:4;15758:1;15751:15;16045:253;16117:2;16111:9;16159:4;16147:17;;16194:18;16179:34;;16215:22;;;16176:62;16173:88;;;16241:18;;:::i;:::-;16277:2;16270:22;16045:253;:::o;16303:257::-;16375:4;16369:11;;;16407:17;;16454:18;16439:34;;16475:22;;;16436:62;16433:88;;;16501:18;;:::i;16565:334::-;16636:2;16630:9;16692:2;16682:13;;16697:66;16678:86;16666:99;;16795:18;16780:34;;16816:22;;;16777:62;16774:88;;;16842:18;;:::i;:::-;16878:2;16871:22;16565:334;;-1:-1:-1;16565:334:1:o;16904:245::-;16952:4;16985:18;16977:6;16974:30;16971:56;;;17007:18;;:::i;:::-;-1:-1:-1;17064:2:1;17052:15;17069:66;17048:88;17138:4;17044:99;;16904:245::o;17154:2117::-;17346:9;17380:18;17421:2;17413:6;17410:14;17407:40;;;17427:18;;:::i;:::-;17473:6;17470:1;17466:14;17499:4;17523:28;17547:2;17543;17539:11;17523:28;:::i;:::-;17585:19;;;17655:14;;;;17620:12;;;;17692:14;17681:26;;17678:46;;;17720:1;17717;17710:12;17678:46;17744:5;17758:1480;17774:6;17769:3;17766:15;17758:1480;;;17860:3;17847:17;17896:2;17883:11;17880:19;17877:109;;;17940:1;17969:2;17965;17958:14;17877:109;18009:23;;18077:4;18056:14;18052:23;;;18048:34;18045:124;;;18123:1;18152:2;18148;18141:14;18045:124;18197:22;;:::i;:::-;18248:21;18266:2;18248:21;:::i;:::-;18239:7;18232:38;18308:30;18334:2;18330;18326:11;18308:30;:::i;:::-;18303:2;18294:7;18290:16;18283:56;18362:2;18412;18408;18404:11;18391:25;18443:2;18435:6;18432:14;18429:104;;;18487:1;18516:2;18512;18505:14;18429:104;18556:15;;;;;18613:14;18606:4;18598:13;;18594:34;18584:135;;18671:1;18701:3;18696;18689:16;18584:135;18756:2;18743:16;18785:49;18801:32;18829:3;18801:32;:::i;:::-;18785:49;:::i;:::-;18861:3;18854:5;18847:18;18907:14;18902:2;18896:3;18892:2;18888:12;18884:21;18881:41;18878:134;;;18964:1;18994:3;18989;18982:16;18878:134;19067:3;19062:2;19058;19054:11;19049:2;19042:5;19038:14;19025:46;19117:1;19095:15;;;19091:24;;19084:35;;;;19139:16;;;19132:31;19176:20;;-1:-1:-1;19216:12:1;;;;17791;;17758:1480;;;-1:-1:-1;19260:5:1;17154:2117;-1:-1:-1;;;;;;;17154:2117:1:o;19276:331::-;19381:9;19392;19434:8;19422:10;19419:24;19416:44;;;19456:1;19453;19446:12;19416:44;19485:6;19475:8;19472:20;19469:40;;;19505:1;19502;19495:12;19469:40;-1:-1:-1;;19531:23:1;;;19576:25;;;;;-1:-1:-1;19276:331:1:o;19612:476::-;19803:3;19841:6;19835:13;19857:66;19916:6;19911:3;19904:4;19896:6;19892:17;19857:66;:::i;:::-;19945:16;;19998:6;19990;19945:16;19970:35;20062:1;20024:18;;20051:13;;;-1:-1:-1;20024:18:1;;19612:476;-1:-1:-1;;;19612:476:1:o;20093:325::-;20181:6;20176:3;20169:19;20233:6;20226:5;20219:4;20214:3;20210:14;20197:43;;20285:1;20278:4;20269:6;20264:3;20260:16;20256:27;20249:38;20151:3;20407:4;20337:66;20332:2;20324:6;20320:15;20316:88;20311:3;20307:98;20303:109;20296:116;;20093:325;;;;:::o;20423:244::-;20580:2;20569:9;20562:21;20543:4;20600:61;20657:2;20646:9;20642:18;20634:6;20626;20600:61;:::i;20672:184::-;20724:77;20721:1;20714:88;20821:4;20818:1;20811:15;20845:4;20842:1;20835:15;20861:389;20960:4;21018:11;21005:25;21108:66;21097:8;21081:14;21077:29;21073:102;21053:18;21049:127;21039:155;;21190:1;21187;21180:12;21039:155;21211:33;;;;;20861:389;-1:-1:-1;;20861:389:1:o;21255:580::-;21332:4;21338:6;21398:11;21385:25;21488:66;21477:8;21461:14;21457:29;21453:102;21433:18;21429:127;21419:155;;21570:1;21567;21560:12;21419:155;21597:33;;21649:20;;;-1:-1:-1;21692:18:1;21681:30;;21678:50;;;21724:1;21721;21714:12;21678:50;21757:4;21745:17;;-1:-1:-1;21788:14:1;21784:27;;;21774:38;;21771:58;;;21825:1;21822;21815:12;21840:129;21925:18;21918:5;21914:30;21907:5;21904:41;21894:69;;21959:1;21956;21949:12;21974:1013;22350:10;22323:25;22341:6;22323:25;:::i;:::-;22319:42;22308:9;22301:61;22425:4;22417:6;22413:17;22400:31;22393:4;22382:9;22378:20;22371:61;22282:4;22479;22471:6;22467:17;22454:31;22494:30;22518:5;22494:30;:::i;:::-;22573:18;22566:5;22562:30;22555:4;22544:9;22540:20;22533:60;;22629:6;22624:2;22613:9;22609:18;22602:34;22673:3;22667;22656:9;22652:19;22645:32;22700:62;22757:3;22746:9;22742:19;22734:6;22726;22700:62;:::i;:::-;22811:42;22803:6;22799:55;22793:3;22782:9;22778:19;22771:84;22904:9;22896:6;22892:22;22886:3;22875:9;22871:19;22864:51;22932:49;22974:6;22966;22958;22932:49;:::i;:::-;22924:57;21974:1013;-1:-1:-1;;;;;;;;;;21974:1013:1:o;22992:647::-;23071:6;23124:2;23112:9;23103:7;23099:23;23095:32;23092:52;;;23140:1;23137;23130:12;23092:52;23173:9;23167:16;23206:18;23198:6;23195:30;23192:50;;;23238:1;23235;23228:12;23192:50;23261:22;;23314:4;23306:13;;23302:27;-1:-1:-1;23292:55:1;;23343:1;23340;23333:12;23292:55;23372:2;23366:9;23397:48;23413:31;23441:2;23413:31;:::i;23397:48::-;23468:2;23461:5;23454:17;23508:7;23503:2;23498;23494;23490:11;23486:20;23483:33;23480:53;;;23529:1;23526;23519:12;23480:53;23542:67;23606:2;23601;23594:5;23590:14;23585:2;23581;23577:11;23542:67;:::i;24094:245::-;24152:6;24205:2;24193:9;24184:7;24180:23;24176:32;24173:52;;;24221:1;24218;24211:12;24173:52;24260:9;24247:23;24279:30;24303:5;24279:30;:::i;24344:502::-;24594:42;24586:6;24582:55;24571:9;24564:74;24674:6;24669:2;24658:9;24654:18;24647:34;24729:6;24721;24717:19;24712:2;24701:9;24697:18;24690:47;24773:3;24768:2;24757:9;24753:18;24746:31;24545:4;24794:46;24835:3;24824:9;24820:19;24812:6;24794:46;:::i;25492:379::-;25685:2;25674:9;25667:21;25648:4;25711:45;25752:2;25741:9;25737:18;25729:6;25711:45;:::i;:::-;25804:9;25796:6;25792:22;25787:2;25776:9;25772:18;25765:50;25832:33;25858:6;25850;25832:33;:::i;25876:245::-;25943:6;25996:2;25984:9;25975:7;25971:23;25967:32;25964:52;;;26012:1;26009;26002:12;25964:52;26044:9;26038:16;26063:28;26085:5;26063:28;:::i;26126:971::-;26347:2;26336:9;26329:21;26405:10;26396:6;26390:13;26386:30;26381:2;26370:9;26366:18;26359:58;26471:4;26463:6;26459:17;26453:24;26448:2;26437:9;26433:18;26426:52;26310:4;26525:2;26517:6;26513:15;26507:22;26566:4;26560:3;26549:9;26545:19;26538:33;26594:52;26641:3;26630:9;26626:19;26612:12;26594:52;:::i;:::-;26580:66;;26695:2;26687:6;26683:15;26677:22;26765:66;26753:9;26745:6;26741:22;26737:95;26730:4;26719:9;26715:20;26708:125;26856:41;26890:6;26874:14;26856:41;:::i;:::-;26966:3;26954:16;;;;26948:23;26941:31;26934:39;26928:3;26913:19;;26906:68;-1:-1:-1;;;27047:42:1;27035:55;;;;27028:4;27013:20;;;27006:85;26842:55;26126:971::o;27102:284::-;27172:5;27220:4;27208:9;27203:3;27199:19;27195:30;27192:50;;;27238:1;27235;27228:12;27192:50;27260:22;;:::i;:::-;27251:31;;27311:9;27305:16;27298:5;27291:31;27375:2;27364:9;27360:18;27354:25;27349:2;27342:5;27338:14;27331:49;27102:284;;;;:::o;27391:258::-;27490:6;27543:2;27531:9;27522:7;27518:23;27514:32;27511:52;;;27559:1;27556;27549:12;27511:52;27582:61;27635:7;27624:9;27582:61;:::i;27779:542::-;27880:2;27875:3;27872:11;27869:446;;;27916:1;27940:5;27937:1;27930:16;27984:4;27981:1;27971:18;28054:2;28042:10;28038:19;28035:1;28031:27;28025:4;28021:38;28090:4;28078:10;28075:20;28072:47;;;-1:-1:-1;28113:4:1;28072:47;28168:2;28163:3;28159:12;28156:1;28152:20;28146:4;28142:31;28132:41;;28223:82;28241:2;28234:5;28231:13;28223:82;;;28286:17;;;28267:1;28256:13;28223:82;;;28227:3;;;27779:542;;;:::o;28557:1460::-;28681:3;28675:10;28708:18;28700:6;28697:30;28694:56;;;28730:18;;:::i;:::-;28759:96;28848:6;28808:38;28840:4;28834:11;28808:38;:::i;:::-;28802:4;28759:96;:::i;:::-;28910:4;;28967:2;28956:14;;28984:1;28979:781;;;;29804:1;29821:6;29818:89;;;-1:-1:-1;29873:19:1;;;29867:26;29818:89;28463:66;28454:1;28450:11;;;28446:84;28442:89;28432:100;28538:1;28534:11;;;28429:117;29920:81;;28949:1062;;28979:781;27726:1;27719:14;;;27763:4;27750:18;;29027:66;29015:79;;;29191:236;29205:7;29202:1;29199:14;29191:236;;;29294:19;;;29288:26;29273:42;;29386:27;;;;29354:1;29342:14;;;;29221:19;;29191:236;;;29195:3;29455:6;29446:7;29443:19;29440:261;;;29516:19;;;29510:26;29617:66;29599:1;29595:14;;;29611:3;29591:24;29587:97;29583:102;29568:118;29553:134;;29440:261;-1:-1:-1;;;;;29747:1:1;29731:14;;;29727:22;29714:36;;-1:-1:-1;28557:1460:1:o;30022:1223::-;30238:4;30267:2;30307;30296:9;30292:18;30337:2;30326:9;30319:21;30360:6;30395;30389:13;30426:6;30418;30411:22;30452:2;30442:12;;30485:2;30474:9;30470:18;30463:25;;30547:2;30537:6;30534:1;30530:14;30519:9;30515:30;30511:39;30585:2;30577:6;30573:15;30606:1;30616:600;30630:6;30627:1;30624:13;30616:600;;;30695:22;;;30719:66;30691:95;30679:108;;30810:13;;30882:9;;30893:10;30878:26;30863:42;;30952:11;;;30946:18;30966:6;30942:31;30925:15;;;30918:56;31013:11;;31007:18;30846:4;31045:15;;;31038:27;;;31088:48;31120:15;;;31007:18;31088:48;:::i;:::-;31194:12;;;;31078:58;-1:-1:-1;;;31159:15:1;;;;30652:1;30645:9;30616:600;;;-1:-1:-1;31233:6:1;;30022:1223;-1:-1:-1;;;;;;;;30022:1223:1:o;31250:347::-;31338:6;31391:2;31379:9;31370:7;31366:23;31362:32;31359:52;;;31407:1;31404;31397:12;31359:52;31433:22;;:::i;:::-;31491:9;31478:23;31471:5;31464:38;31562:2;31551:9;31547:18;31534:32;31529:2;31522:5;31518:14;31511:56;31586:5;31576:15;;;31250:347;;;;:::o;31941:184::-;31993:77;31990:1;31983:88;32090:4;32087:1;32080:15;32114:4;32111:1;32104:15;32130:274;32170:1;32196;32186:189;;32231:77;32228:1;32221:88;32332:4;32329:1;32322:15;32360:4;32357:1;32350:15;32186:189;-1:-1:-1;32389:9:1;;32130:274::o;32409:168::-;32482:9;;;32513;;32530:15;;;32524:22;;32510:37;32500:71;;32551:18;;:::i;32582:315::-;32702:19;;32741:2;32733:11;;32730:161;;;32813:66;32802:2;32798:12;;;32795:1;32791:20;32787:93;32776:105;32582:315;;;;:::o;32902:369::-;33060:66;33022:19;;33144:11;;;;33175:1;33167:10;;33164:101;;;33252:2;33246;33239:3;33236:1;33232:11;33229:1;33225:19;33221:28;33217:2;33213:37;33209:46;33200:55;;33164:101;;;32902:369;;;;:::o;33276:652::-;33537:66;33528:6;33523:3;33519:16;33515:89;33510:3;33503:102;33656:66;33647:6;33642:3;33638:16;33634:89;33630:1;33625:3;33621:11;33614:110;33754:6;33749:2;33744:3;33740:12;33733:28;33485:3;33790:6;33784:13;33806:75;33874:6;33869:2;33864:3;33860:12;33853:4;33845:6;33841:17;33806:75;:::i;:::-;33901:16;;;;33919:2;33897:25;;33276:652;-1:-1:-1;;;;;33276:652:1:o;33933:125::-;33998:9;;;34019:10;;;34016:36;;;34032:18;;:::i;34396:570::-;34637:6;34632:3;34625:19;34696:66;34687:6;34682:3;34678:16;34674:89;34669:2;34664:3;34660:12;34653:111;34794:6;34789:2;34784:3;34780:12;34773:28;34607:3;34830:6;34824:13;34846:73;34912:6;34907:2;34902:3;34898:12;34893:2;34885:6;34881:15;34846:73;:::i;:::-;34939:16;;;;34957:2;34935:25;;34396:570;-1:-1:-1;;;;;34396:570:1:o;34971:524::-;35074:6;35127:3;35115:9;35106:7;35102:23;35098:33;35095:53;;;35144:1;35141;35134:12;35095:53;35170:22;;:::i;:::-;35221:9;35215:16;35208:5;35201:31;35277:2;35266:9;35262:18;35256:25;35290:32;35314:7;35290:32;:::i;:::-;35349:2;35338:14;;35331:31;35394:70;35456:7;35451:2;35436:18;;35394:70;:::i;:::-;35389:2;35378:14;;35371:94;35382:5;34971:524;-1:-1:-1;;;34971:524:1:o

Swarm Source

ipfs://856890b8d008384e42bd931a80c995f6baf3c54a1836e822facb297fc43f103d
Loading...
Loading
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.