ETH Price: $2,863.67 (-2.55%)
 

Overview

Max Total Supply

3,969,045,921,635.441757 DOGL

Holders

26,084 (0.00%)

Market

Price

$0.00 @ 0.000000 ETH (-6.20%)

Onchain Market Cap

$8,335.00

Circulating Supply Market Cap

$48,297.00

Other Info

Token Contract (WITH 18 Decimals)

Balance
46,967,744.874364357897068144 DOGL

Value
$0.10 ( ~3.49202728074657E-05 ETH) [0.0012%]
0xaD01C20d5886137e056775af56915de824c8fCe5
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

DogLibre is a purpose-driven project leveraging cutting-edge technology to transform the lives of dogs worldwide. The mission is to create a better future for both stray and pet dogs by building an innovative ecosystem that empowers dog lovers, rescue groups, and the pet care industry.

Market

Volume (24H):$36.07
Market Capitalization:$48,297.00
Circulating Supply:23,044,205,425,747.00 DOGL
Market Data Source: Coinmarketcap

Contract Source Code Verified (Exact Match)

Contract Name:
OFTImplementation

Compiler Version
v0.8.25+commit.b61c2a91

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at basescan.org on 2024-12-12
*/

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

// ../node_modules/@layerzerolabs/oapp-evm/contracts/oapp/interfaces/IOAppMsgInspector.sol

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

// ../node_modules/@openzeppelin/contracts/utils/introspection/IERC165.sol

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

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

// src/interfaces/IMinter.sol

interface IMinter {
    function mint(address account, uint256 amount) external;
    function setMinter(address _minter) external;
}

// /Users/benhaslam/ambient/oft_tools/node_modules/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessageLibManager.sol

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

// /Users/benhaslam/ambient/oft_tools/node_modules/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingChannel.sol

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

// /Users/benhaslam/ambient/oft_tools/node_modules/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingComposer.sol

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

// /Users/benhaslam/ambient/oft_tools/node_modules/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingContext.sol

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

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

// /Users/benhaslam/ambient/oft_tools/node_modules/@layerzerolabs/lz-evm-protocol-v2/contracts/libs/AddressCast.sol

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

// /Users/benhaslam/ambient/oft_tools/node_modules/@layerzerolabs/oapp-evm/contracts/oapp/interfaces/IOAppOptionsType3.sol

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

// /Users/benhaslam/ambient/oft_tools/node_modules/@layerzerolabs/oapp-evm/contracts/precrime/interfaces/IPreCrime.sol

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

// /Users/benhaslam/ambient/oft_tools/node_modules/@layerzerolabs/oft-evm/contracts/libs/OFTComposeMsgCodec.sol

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

// /Users/benhaslam/ambient/oft_tools/node_modules/@layerzerolabs/oft-evm/contracts/libs/OFTMsgCodec.sol

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

// /Users/benhaslam/ambient/oft_tools/node_modules/@openzeppelin/contracts/interfaces/draft-IERC6093.sol

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

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 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 ERC721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-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 ERC1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 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);
}

// /Users/benhaslam/ambient/oft_tools/node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol

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

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

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

    /**
     * @dev Returns the 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);
}

// /Users/benhaslam/ambient/oft_tools/node_modules/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol

// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     *
     * CAUTION: See Security Considerations above.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

// /Users/benhaslam/ambient/oft_tools/node_modules/@openzeppelin/contracts/utils/Address.sol

// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error AddressInsufficientBalance(address account);

    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedInnerCall();

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        if (address(this).balance < amount) {
            revert AddressInsufficientBalance(address(this));
        }

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert FailedInnerCall();
        }
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason or custom error, it is bubbled
     * up by this function (like regular Solidity function calls). However, if
     * the call reverted with no returned reason, this function reverts with a
     * {FailedInnerCall} error.
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert AddressInsufficientBalance(address(this));
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
     * unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {FailedInnerCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

    /**
     * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
     */
    function _revert(bytes memory returndata) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert FailedInnerCall();
        }
    }
}

// /Users/benhaslam/ambient/oft_tools/node_modules/@openzeppelin/contracts/utils/Context.sol

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

// ../node_modules/@openzeppelin/contracts/access/Ownable.sol

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

// /Users/benhaslam/ambient/oft_tools/node_modules/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol

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

/**
 * @dev Interface for the optional metadata functions from the ERC20 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);
}

// /Users/benhaslam/ambient/oft_tools/node_modules/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessageLib.sol

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

// ../node_modules/@layerzerolabs/oapp-evm/contracts/oapp/libs/OAppOptionsType3.sol

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

// ../node_modules/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol

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

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 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 {
    using Address for address;

    /**
     * @dev An operation with an ERC20 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 Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    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.
     */
    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.
     */
    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 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).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data);
        if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
            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 silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
    }
}

// ../node_modules/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol

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

struct MessagingReceipt_0 {
    bytes32 guid;
    uint64 nonce;
    MessagingFee_0 fee;
}

struct MessagingFee_0 {
    uint256 nativeFee;
    uint256 lzTokenFee;
}

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

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

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

    event PacketDelivered(Origin_0 origin, address receiver);

    event LzReceiveAlert(
        address indexed receiver,
        address indexed executor,
        Origin_0 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_0 calldata _params, address _sender) external view returns (MessagingFee_0 memory);

    function send(
        MessagingParams_0 calldata _params,
        address _refundAddress
    ) external payable returns (MessagingReceipt_0 memory);

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

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

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

    function lzReceive(
        Origin_0 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_0 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;
}

// ../node_modules/@openzeppelin/contracts/token/ERC20/ERC20.sol

// OpenZeppelin Contracts (last updated v5.0.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 ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 */
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}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual 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;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    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;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    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}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * 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:
     * ```
     * 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);
            }
        }
    }
}

// /Users/benhaslam/ambient/oft_tools/node_modules/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol

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

struct MessagingReceipt_1 {
    bytes32 guid;
    uint64 nonce;
    MessagingFee_1 fee;
}

struct MessagingFee_1 {
    uint256 nativeFee;
    uint256 lzTokenFee;
}

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

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

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

    event PacketDelivered(Origin_1 origin, address receiver);

    event LzReceiveAlert(
        address indexed receiver,
        address indexed executor,
        Origin_1 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_1 calldata _params, address _sender) external view returns (MessagingFee_1 memory);

    function send(
        MessagingParams_1 calldata _params,
        address _refundAddress
    ) external payable returns (MessagingReceipt_1 memory);

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

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

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

    function lzReceive(
        Origin_1 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_1 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;
}

// ../node_modules/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroReceiver.sol

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

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

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

// /Users/benhaslam/ambient/oft_tools/node_modules/@layerzerolabs/oapp-evm/contracts/oapp/interfaces/IOAppCore.sol

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

// /Users/benhaslam/ambient/oft_tools/node_modules/@layerzerolabs/oapp-evm/contracts/oapp/interfaces/IOAppReceiver.sol

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_0 calldata _origin,
        bytes calldata _message,
        address _sender
    ) external view returns (bool isSender);
}

// /Users/benhaslam/ambient/oft_tools/node_modules/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ISendLib.sol

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_1 memory, bytes memory encodedPacket);

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

    function setTreasury(address _treasury) external;

    function withdrawFee(address _to, uint256 _amount) external;

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

// /Users/benhaslam/ambient/oft_tools/node_modules/@layerzerolabs/oapp-evm/contracts/oapp/OAppCore.sol

/**
 * @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_0 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_0(_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);
    }
}

// ../node_modules/@layerzerolabs/lz-evm-protocol-v2/contracts/messagelib/libs/PacketV1Codec.sol

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

// /Users/benhaslam/ambient/oft_tools/node_modules/@layerzerolabs/oapp-evm/contracts/precrime/libs/Packet.sol

/**
 * @title InboundPacket
 * @dev Structure representing an inbound packet received by the contract.
 */
struct InboundPacket {
    Origin_0 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_0(_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];
        }
    }
}

// /Users/benhaslam/ambient/oft_tools/node_modules/@layerzerolabs/oapp-evm/contracts/oapp/OAppReceiver.sol

/**
 * @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_0 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_0 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_0 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_0 calldata _origin,
        bytes32 _guid,
        bytes calldata _message,
        address _executor,
        bytes calldata _extraData
    ) internal virtual;
}

// /Users/benhaslam/ambient/oft_tools/node_modules/@layerzerolabs/oapp-evm/contracts/precrime/interfaces/IOAppPreCrimeSimulator.sol

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

// ../node_modules/@layerzerolabs/oapp-evm/contracts/oapp/OAppSender.sol

/**
 * @title OAppSender
 * @dev Abstract contract implementing the OAppSender functionality for sending messages to a LayerZero endpoint.
 */
abstract contract OAppSender_0 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_0 memory fee) {
        return
            endpoint.quote(
                MessagingParams_0(_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_0 memory _fee,
        address _refundAddress
    ) internal virtual returns (MessagingReceipt_0 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_0(_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);
    }
}

// /Users/benhaslam/ambient/oft_tools/node_modules/@layerzerolabs/oapp-evm/contracts/oapp/OAppSender.sol

/**
 * @title OAppSender
 * @dev Abstract contract implementing the OAppSender functionality for sending messages to a LayerZero endpoint.
 */
abstract contract OAppSender_1 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_0 memory fee) {
        return
            endpoint.quote(
                MessagingParams_0(_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_0 memory _fee,
        address _refundAddress
    ) internal virtual returns (MessagingReceipt_0 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_0(_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);
    }
}

// /Users/benhaslam/ambient/oft_tools/node_modules/@layerzerolabs/oft-evm/contracts/interfaces/IOFT.sol

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

    // 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 a quote for OFT-related operations.
     * @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_0 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_0 calldata _fee,
        address _refundAddress
    ) external payable returns (MessagingReceipt_0 memory, OFTReceipt memory);
}

// ../node_modules/@layerzerolabs/oapp-evm/contracts/precrime/OAppPreCrimeSimulator.sol

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

// ../node_modules/@layerzerolabs/oapp-evm/contracts/oapp/OApp.sol

// @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_0, 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_0, OAppReceiver)
        returns (uint64 senderVersion, uint64 receiverVersion)
    {
        return (SENDER_VERSION, RECEIVER_VERSION);
    }
}

// /Users/benhaslam/ambient/oft_tools/node_modules/@layerzerolabs/oft-evm/contracts/OFTCore.sol

/**
 * @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 a quote for OFT-related operations.
     * @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 = type(uint64).max; // 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_0 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_0 calldata _fee,
        address _refundAddress
    ) external payable virtual returns (MessagingReceipt_0 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_0 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_0 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.
     */
    function _toSD(uint256 _amountLD) internal view virtual returns (uint64 amountSD) {
        return uint64(_amountLD / decimalConversionRate);
    }

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

// ../node_modules/@layerzerolabs/oft-evm/contracts/OFT.sol

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

// src/oftImplementation.sol

contract OFTImplementation is OFT, IMinter {
    /// @dev Thrown when a non-minter address attempts to call a minter-only function
    error OnlyMinter();

    /// @notice Emitted when the minter is updated
    event minterUpdated(address sendLib);
    
    /// @dev Address authorized to mint new tokens and set a new minter
    address public minter;

    /**
     * @dev Constructor for the OFTImplementation contract.
     * @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
    ) OFT(name, symbol, _lzEndpoint, _delegate)Ownable(_delegate) {
        minter = _delegate;
    }

    function mint(address account, uint256 amount) public {
        if (msg.sender != minter) revert OnlyMinter();
        _mint(account, amount);
    }

    function setMinter(address _minter) public {
        if (msg.sender != minter) revert OnlyMinter();
        minter = _minter;
    }
}

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":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","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":"FailedInnerCall","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":[],"name":"OnlyMinter","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sendLib","type":"address"}],"name":"minterUpdated","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_0","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_0","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_0","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_0","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_0","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_0","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":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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_0","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_0","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_0","name":"fee","type":"tuple"}],"internalType":"struct MessagingReceipt_0","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":"_minter","type":"address"}],"name":"setMinter","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"}]

60c060405234801561001057600080fd5b506040516137f83803806137f883398101604081905261002f916102d1565b83838383838360128484818181818d6001600160a01b03811661006c57604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b610075816101a2565b506001600160a01b0380831660805281166100a357604051632d618d8160e21b815260040160405180910390fd5b60805160405163ca5eb5e160e01b81526001600160a01b0383811660048301529091169063ca5eb5e190602401600060405180830381600087803b1580156100ea57600080fd5b505af11580156100fe573d6000803e3d6000fd5b50505050505050506101146101f260201b60201c565b60ff168360ff16101561013a576040516301e9714b60e41b815260040160405180910390fd5b61014560068461036b565b61015090600a61046e565b60a05250600891506101649050838261050f565b506009610171828261050f565b5050600a80546001600160a01b0319166001600160a01b039790971696909617909555506105ce9650505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600690565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261021e57600080fd5b81516001600160401b0380821115610238576102386101f7565b604051601f8301601f19908116603f01168101908282118183101715610260576102606101f7565b816040528381526020925086602085880101111561027d57600080fd5b600091505b8382101561029f5785820183015181830184015290820190610282565b6000602085830101528094505050505092915050565b80516001600160a01b03811681146102cc57600080fd5b919050565b600080600080608085870312156102e757600080fd5b84516001600160401b03808211156102fe57600080fd5b61030a8883890161020d565b9550602087015191508082111561032057600080fd5b5061032d8782880161020d565b93505061033c604086016102b5565b915061034a606086016102b5565b905092959194509250565b634e487b7160e01b600052601160045260246000fd5b60ff828116828216039081111561038457610384610355565b92915050565b600181815b808511156103c55781600019048211156103ab576103ab610355565b808516156103b857918102915b93841c939080029061038f565b509250929050565b6000826103dc57506001610384565b816103e957506000610384565b81600181146103ff576002811461040957610425565b6001915050610384565b60ff84111561041a5761041a610355565b50506001821b610384565b5060208310610133831016604e8410600b8410161715610448575081810a610384565b610452838361038a565b806000190482111561046657610466610355565b029392505050565b600061047d60ff8416836103cd565b9392505050565b600181811c9082168061049857607f821691505b6020821081036104b857634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561050a576000816000526020600020601f850160051c810160208610156104e75750805b601f850160051c820191505b81811015610506578281556001016104f3565b5050505b505050565b81516001600160401b03811115610528576105286101f7565b61053c816105368454610484565b846104be565b602080601f83116001811461057157600084156105595750858301515b600019600386901b1c1916600185901b178555610506565b600085815260208120601f198616915b828110156105a057888601518255948401946001909101908401610581565b50858210156105be5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a0516131bf6106396000396000818161067f01528181611c1e01528181611c930152611e9701526000818161053e01528181610a0e0152818161115a015281816114260152818161179001528181611a6d01528181611f98015261204f01526131bf6000f3fe6080604052600436106102725760003560e01c8063715018a61161014f578063bb0b6a53116100c1578063d42438851161007a578063d4243885146107c9578063dd62ed3e146107e9578063f2fde38b1461082f578063fc0c546a146104c2578063fca3b5aa1461084f578063ff7bd03d1461086f57600080fd5b8063bb0b6a5314610715578063bc70b35414610742578063bd815db014610762578063c7c7f5b314610775578063ca5eb5e114610796578063d045a0dc146107b657600080fd5b806395d89b411161011357806395d89b4114610658578063963efcaa1461066d5780639f68b964146106a1578063a9059cbb146106b5578063b731ea0a146106d5578063b98bd070146106f557600080fd5b8063715018a6146105b65780637d25a05e146105cb57806382413eac14610606578063857749b0146106265780638da5cb5b1461063a57600080fd5b806323b872dd116101e857806352ae2879116101ac57806352ae2879146104c25780635535d461146104d55780635a0dfe4d146104f55780635e280f111461052c5780636fc1b31e1461056057806370a082311461058057600080fd5b806323b872dd14610413578063313ce567146104335780633400288b146104555780633b6f743b1461047557806340c10f19146104a257600080fd5b806313137d651161023a57806313137d6514610359578063134d4f251461036e578063156a0d0f1461039657806317442b70146103bd57806318160ddd146103df5780631f5e1334146103fe57600080fd5b806306fdde031461027757806307546172146102a2578063095ea7b3146102da5780630d35b4151461030a578063111ecdad14610339575b600080fd5b34801561028357600080fd5b5061028c61088f565b60405161029991906122aa565b60405180910390f35b3480156102ae57600080fd5b50600a546102c2906001600160a01b031681565b6040516001600160a01b039091168152602001610299565b3480156102e657600080fd5b506102fa6102f53660046122d2565b610921565b6040519015158152602001610299565b34801561031657600080fd5b5061032a610325366004612316565b61093b565b6040516102999392919061234a565b34801561034557600080fd5b506004546102c2906001600160a01b031681565b61036c61036736600461243d565b610a0c565b005b34801561037a57600080fd5b50610383600281565b60405161ffff9091168152602001610299565b3480156103a257600080fd5b506040805162b9270b60e21b81526001602082015201610299565b3480156103c957600080fd5b5060408051600181526002602082015201610299565b3480156103eb57600080fd5b506007545b604051908152602001610299565b34801561040a57600080fd5b50610383600181565b34801561041f57600080fd5b506102fa61042e3660046124dc565b610acc565b34801561043f57600080fd5b5060125b60405160ff9091168152602001610299565b34801561046157600080fd5b5061036c610470366004612536565b610af2565b34801561048157600080fd5b50610495610490366004612560565b610b08565b60405161029991906125b1565b3480156104ae57600080fd5b5061036c6104bd3660046122d2565b610b6f565b3480156104ce57600080fd5b50306102c2565b3480156104e157600080fd5b5061028c6104f03660046125da565b610ba4565b34801561050157600080fd5b506102fa610510366004612536565b63ffffffff919091166000908152600160205260409020541490565b34801561053857600080fd5b506102c27f000000000000000000000000000000000000000000000000000000000000000081565b34801561056c57600080fd5b5061036c61057b36600461260d565b610c49565b34801561058c57600080fd5b506103f061059b36600461260d565b6001600160a01b031660009081526005602052604090205490565b3480156105c257600080fd5b5061036c610ca6565b3480156105d757600080fd5b506105ee6105e6366004612536565b600092915050565b6040516001600160401b039091168152602001610299565b34801561061257600080fd5b506102fa61062136600461262a565b610cba565b34801561063257600080fd5b506006610443565b34801561064657600080fd5b506000546001600160a01b03166102c2565b34801561066457600080fd5b5061028c610ccf565b34801561067957600080fd5b506103f07f000000000000000000000000000000000000000000000000000000000000000081565b3480156106ad57600080fd5b5060006102fa565b3480156106c157600080fd5b506102fa6106d03660046122d2565b610cde565b3480156106e157600080fd5b506002546102c2906001600160a01b031681565b34801561070157600080fd5b5061036c6107103660046126d4565b610cec565b34801561072157600080fd5b506103f0610730366004612715565b60016020526000908152604090205481565b34801561074e57600080fd5b5061028c61075d366004612730565b610d06565b61036c6107703660046126d4565b610eae565b610788610783366004612790565b611038565b6040516102999291906127fd565b3480156107a257600080fd5b5061036c6107b136600461260d565b611133565b61036c6107c436600461243d565b6111b9565b3480156107d557600080fd5b5061036c6107e436600461260d565b6111e8565b3480156107f557600080fd5b506103f061080436600461284f565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b34801561083b57600080fd5b5061036c61084a36600461260d565b61123e565b34801561085b57600080fd5b5061036c61086a36600461260d565b61127c565b34801561087b57600080fd5b506102fa61088a36600461287d565b6112c9565b60606008805461089e90612899565b80601f01602080910402602001604051908101604052809291908181526020018280546108ca90612899565b80156109175780601f106108ec57610100808354040283529160200191610917565b820191906000526020600020905b8154815290600101906020018083116108fa57829003601f168201915b5050505050905090565b60003361092f8185856112ff565b60019150505b92915050565b6040805180820190915260008082526020820152606061096e604051806040016040528060008152602001600081525090565b60408051808201825260008082526001600160401b036020808401829052845183815290810190945291955091826109c9565b6040805180820190915260008152606060208201528152602001906001900390816109a15790505b5093506000806109ee604089013560608a01356109e960208c018c612715565b611311565b60408051808201909152918252602082015296989597505050505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03163314610a5c576040516391ac5e4f60e01b81523360048201526024015b60405180910390fd5b60208701803590610a7690610a71908a612715565b611355565b14610ab457610a886020880188612715565b60405163309afaf360e21b815263ffffffff909116600482015260208801356024820152604401610a53565b610ac387878787878787611391565b50505050505050565b600033610ada8582856114f8565b610ae5858585611576565b60019150505b9392505050565b610afa6115d5565b610b048282611602565b5050565b60408051808201909152600080825260208201526000610b38604085013560608601356109e96020880188612715565b915050600080610b488684611657565b9092509050610b65610b5d6020880188612715565b83838861177a565b9695505050505050565b600a546001600160a01b03163314610b9a57604051639cdc2ed560e01b815260040160405180910390fd5b610b04828261185b565b600360209081526000928352604080842090915290825290208054610bc890612899565b80601f0160208091040260200160405190810160405280929190818152602001828054610bf490612899565b8015610c415780601f10610c1657610100808354040283529160200191610c41565b820191906000526020600020905b815481529060010190602001808311610c2457829003601f168201915b505050505081565b610c516115d5565b600480546001600160a01b0319166001600160a01b0383169081179091556040519081527ff0be4f1e87349231d80c36b33f9e8639658eeaf474014dee15a3e6a4d4414197906020015b60405180910390a150565b610cae6115d5565b610cb86000611891565b565b6001600160a01b03811630145b949350505050565b60606009805461089e90612899565b60003361092f818585611576565b610cf46115d5565b610b04610d018284612984565b6118e1565b63ffffffff8416600090815260036020908152604080832061ffff87168452909152812080546060929190610d3a90612899565b80601f0160208091040260200160405190810160405280929190818152602001828054610d6690612899565b8015610db35780601f10610d8857610100808354040283529160200191610db3565b820191906000526020600020905b815481529060010190602001808311610d9657829003601f168201915b505050505090508051600003610e035783838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929450610cc79350505050565b6000839003610e13579050610cc7565b60028310610e9157610e5a84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506119e892505050565b80610e688460028188612a99565b604051602001610e7a93929190612ac3565b604051602081830303815290604052915050610cc7565b8383604051639a6d49cd60e01b8152600401610a53929190612b14565b60005b81811015610fb75736838383818110610ecc57610ecc612b28565b9050602002810190610ede9190612b3e565b9050610f11610ef06020830183612715565b602083013563ffffffff919091166000908152600160205260409020541490565b610f1b5750610faf565b3063d045a0dc60c08301358360a0810135610f3a610100830183612b5f565b610f4b610100890160e08a0161260d565b610f596101208a018a612b5f565b6040518963ffffffff1660e01b8152600401610f7b9796959493929190612bba565b6000604051808303818588803b158015610f9457600080fd5b505af1158015610fa8573d6000803e3d6000fd5b5050505050505b600101610eb1565b50336001600160a01b0316638e9e70996040518163ffffffff1660e01b8152600401600060405180830381865afa158015610ff6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261101e9190810190612c40565b604051638351eea760e01b8152600401610a5391906122aa565b611040612213565b604080518082019091526000808252602082015260008061107733604089013560608a013561107260208c018c612715565b611a14565b915091506000806110888984611657565b90925090506110b461109d60208b018b612715565b83836110ae368d90038d018d612cad565b8b611a3a565b60408051808201909152858152602080820186905282519298509096503391907f85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a90611102908d018d612715565b6040805163ffffffff909216825260208201899052810187905260600160405180910390a350505050935093915050565b61113b6115d5565b60405163ca5eb5e160e01b81526001600160a01b0382811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063ca5eb5e190602401600060405180830381600087803b15801561119e57600080fd5b505af11580156111b2573d6000803e3d6000fd5b5050505050565b3330146111d95760405163029a949d60e31b815260040160405180910390fd5b610ac387878787878787610ab4565b6111f06115d5565b600280546001600160a01b0319166001600160a01b0383169081179091556040519081527fd48d879cef83a1c0bdda516f27b13ddb1b3f8bbac1c9e1511bb2a659c242776090602001610c9b565b6112466115d5565b6001600160a01b03811661127057604051631e4fbdf760e01b815260006004820152602401610a53565b61127981611891565b50565b600a546001600160a01b031633146112a757604051639cdc2ed560e01b815260040160405180910390fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b60006020820180359060019083906112e19086612715565b63ffffffff1681526020810191909152604001600020541492915050565b61130c8383836001611b45565b505050565b60008061131d85611c1a565b91508190508381101561134d576040516371c4efed60e01b81526004810182905260248101859052604401610a53565b935093915050565b63ffffffff8116600090815260016020526040812054806109355760405163f6ff4fb760e01b815263ffffffff84166004820152602401610a53565b60006113a36113a08787611c51565b90565b905060006113cf826113bd6113b88a8a611c69565b611c8c565b6113ca60208d018d612715565b611cc1565b9050602886111561149657600061140c6113ef60608c0160408d01612cdf565b6113fc60208d018d612715565b846114078c8c611ce9565b611d34565b604051633e5ac80960e11b81529091506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690637cb59012906114629086908d906000908790600401612cfc565b600060405180830381600087803b15801561147c57600080fd5b505af1158015611490573d6000803e3d6000fd5b50505050505b6001600160a01b038216887fefed6d3500546b29533b128a29e3a94d70788727f0507505ac12eaf2e578fd9c6114cf60208d018d612715565b6040805163ffffffff9092168252602082018690520160405180910390a3505050505050505050565b6001600160a01b038381166000908152600660209081526040808320938616835292905220546000198114611570578181101561156157604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610a53565b61157084848484036000611b45565b50505050565b6001600160a01b0383166115a057604051634b637e8f60e11b815260006004820152602401610a53565b6001600160a01b0382166115ca5760405163ec442f0560e01b815260006004820152602401610a53565b61130c838383611d66565b6000546001600160a01b03163314610cb85760405163118cdaa760e01b8152336004820152602401610a53565b63ffffffff8216600081815260016020908152604091829020849055815192835282018390527f238399d427b947898edb290f5ff0f9109849b1c3ba196a42e35f00c50a54b98b910160405180910390a15050565b60608060006116b4856020013561166d86611e90565b61167a60a0890189612b5f565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611ebc92505050565b90935090506000816116c75760016116ca565b60025b90506116ea6116dc6020880188612715565b8261075d60808a018a612b5f565b6004549093506001600160a01b031680156117705760405163043a78eb60e01b81526001600160a01b0382169063043a78eb9061172d9088908890600401612d2d565b602060405180830381865afa15801561174a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061176e9190612d52565b505b5050509250929050565b60408051808201909152600080825260208201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ddc28c586040518060a001604052808863ffffffff1681526020016117dd89611355565b8152602001878152602001868152602001851515815250306040518363ffffffff1660e01b8152600401611812929190612d6f565b6040805180830381865afa15801561182e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118529190612e18565b95945050505050565b6001600160a01b0382166118855760405163ec442f0560e01b815260006004820152602401610a53565b610b0460008383611d66565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60005b81518110156119b85761191382828151811061190257611902612b28565b6020026020010151604001516119e8565b81818151811061192557611925612b28565b6020026020010151604001516003600084848151811061194757611947612b28565b60200260200101516000015163ffffffff1663ffffffff168152602001908152602001600020600084848151811061198157611981612b28565b60200260200101516020015161ffff1661ffff16815260200190815260200160002090816119af9190612e84565b506001016118e4565b507fbe4864a8e820971c0247f5992e2da559595f7bf076a21cb5928d443d2a13b67481604051610c9b9190612f43565b600281015161ffff8116600314610b045781604051639a6d49cd60e01b8152600401610a5391906122aa565b600080611a22858585611311565b9092509050611a318683611f36565b94509492505050565b611a42612213565b6000611a518460000151611f6c565b602085015190915015611a6b57611a6b8460200151611f94565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632637a450826040518060a001604052808b63ffffffff168152602001611abb8c611355565b81526020018a815260200189815260200160008960200151111515815250866040518463ffffffff1660e01b8152600401611af7929190612d6f565b60806040518083038185885af1158015611b15573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611b3a9190612fce565b979650505050505050565b6001600160a01b038416611b6f5760405163e602df0560e01b815260006004820152602401610a53565b6001600160a01b038316611b9957604051634a1406b160e11b815260006004820152602401610a53565b6001600160a01b038085166000908152600660209081526040808320938716835292905220829055801561157057826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051611c0c91815260200190565b60405180910390a350505050565b60007f0000000000000000000000000000000000000000000000000000000000000000611c47818461302e565b6109359190613050565b6000611c606020828486612a99565b610aeb91613067565b6000611c79602860208486612a99565b611c8291613085565b60c01c9392505050565b60006109357f00000000000000000000000000000000000000000000000000000000000000006001600160401b038416613050565b60006001600160a01b038416611cd75761dead93505b611ce1848461185b565b509092915050565b6060611cf88260288186612a99565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929695505050505050565b606084848484604051602001611d4d94939291906130b5565b6040516020818303038152906040529050949350505050565b6001600160a01b038316611d91578060076000828254611d869190613104565b90915550611e039050565b6001600160a01b03831660009081526005602052604090205481811015611de45760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610a53565b6001600160a01b03841660009081526005602052604090209082900390555b6001600160a01b038216611e1f57600780548290039055611e3e565b6001600160a01b03821660009081526005602052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611e8391815260200190565b60405180910390a3505050565b60006109357f00000000000000000000000000000000000000000000000000000000000000008361302e565b8051606090151580611f05578484604051602001611ef192919091825260c01b6001600160c01b031916602082015260280190565b604051602081830303815290604052611f2c565b84843385604051602001611f1c9493929190613117565b6040516020818303038152906040525b9150935093915050565b6001600160a01b038216611f6057604051634b637e8f60e11b815260006004820152602401610a53565b610b0482600083611d66565b6000813414611f90576040516304fb820960e51b8152346004820152602401610a53565b5090565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e4fe1d946040518163ffffffff1660e01b8152600401602060405180830381865afa158015611ff4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612018919061315a565b90506001600160a01b038116612041576040516329b99a9560e11b815260040160405180910390fd5b6040805133602482018190527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03818116604485015260648085018890528551808603909101815260849094019094526020830180516001600160e01b03166323b872dd60e01b179052610b0493851692869061157090859060006120cd838361211b565b905080516000141580156120f25750808060200190518101906120f09190612d52565b155b1561130c57604051635274afe760e01b81526001600160a01b0384166004820152602401610a53565b6060610aeb8383600084600080856001600160a01b031684866040516121419190613177565b60006040518083038185875af1925050503d806000811461217e576040519150601f19603f3d011682016040523d82523d6000602084013e612183565b606091505b5091509150610b658683836060826121a35761219e826121ea565b610aeb565b81511580156121ba57506001600160a01b0384163b155b156121e357604051639996b31560e01b81526001600160a01b0385166004820152602401610a53565b5080610aeb565b8051156121fa5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b60405180606001604052806000801916815260200160006001600160401b03168152602001612255604051806040016040528060008152602001600081525090565b905290565b60005b8381101561227557818101518382015260200161225d565b50506000910152565b6000815180845261229681602086016020860161225a565b601f01601f19169290920160200192915050565b602081526000610aeb602083018461227e565b6001600160a01b038116811461127957600080fd5b600080604083850312156122e557600080fd5b82356122f0816122bd565b946020939093013593505050565b600060e0828403121561231057600080fd5b50919050565b60006020828403121561232857600080fd5b81356001600160401b0381111561233e57600080fd5b610cc7848285016122fe565b8351815260208085015190820152600060a08201604060a0604085015281865180845260c08601915060c08160051b8701019350602080890160005b838110156123c55788870360bf190185528151805188528301518388018790526123b28789018261227e565b9750509382019390820190600101612386565b50508751606088015250505060208501516080850152509050610cc7565b60006060828403121561231057600080fd5b60008083601f84011261240757600080fd5b5081356001600160401b0381111561241e57600080fd5b60208301915083602082850101111561243657600080fd5b9250929050565b600080600080600080600060e0888a03121561245857600080fd5b61246289896123e3565b96506060880135955060808801356001600160401b038082111561248557600080fd5b6124918b838c016123f5565b909750955060a08a013591506124a6826122bd565b90935060c089013590808211156124bc57600080fd5b506124c98a828b016123f5565b989b979a50959850939692959293505050565b6000806000606084860312156124f157600080fd5b83356124fc816122bd565b9250602084013561250c816122bd565b929592945050506040919091013590565b803563ffffffff8116811461253157600080fd5b919050565b6000806040838503121561254957600080fd5b6122f08361251d565b801515811461127957600080fd5b6000806040838503121561257357600080fd5b82356001600160401b0381111561258957600080fd5b612595858286016122fe565b92505060208301356125a681612552565b809150509250929050565b815181526020808301519082015260408101610935565b803561ffff8116811461253157600080fd5b600080604083850312156125ed57600080fd5b6125f68361251d565b9150612604602084016125c8565b90509250929050565b60006020828403121561261f57600080fd5b8135610aeb816122bd565b60008060008060a0858703121561264057600080fd5b61264a86866123e3565b935060608501356001600160401b0381111561266557600080fd5b612671878288016123f5565b9094509250506080850135612685816122bd565b939692955090935050565b60008083601f8401126126a257600080fd5b5081356001600160401b038111156126b957600080fd5b6020830191508360208260051b850101111561243657600080fd5b600080602083850312156126e757600080fd5b82356001600160401b038111156126fd57600080fd5b61270985828601612690565b90969095509350505050565b60006020828403121561272757600080fd5b610aeb8261251d565b6000806000806060858703121561274657600080fd5b61274f8561251d565b935061275d602086016125c8565b925060408501356001600160401b0381111561277857600080fd5b612784878288016123f5565b95989497509550505050565b600080600083850360808112156127a657600080fd5b84356001600160401b038111156127bc57600080fd5b6127c8878288016122fe565b9450506040601f19820112156127dd57600080fd5b5060208401915060608401356127f2816122bd565b809150509250925092565b600060c082019050835182526001600160401b0360208501511660208301526040840151612838604084018280518252602090810151910152565b5082516080830152602083015160a0830152610aeb565b6000806040838503121561286257600080fd5b823561286d816122bd565b915060208301356125a6816122bd565b60006060828403121561288f57600080fd5b610aeb83836123e3565b600181811c908216806128ad57607f821691505b60208210810361231057634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b604051606081016001600160401b0381118282101715612905576129056128cd565b60405290565b604080519081016001600160401b0381118282101715612905576129056128cd565b604051601f8201601f191681016001600160401b0381118282101715612955576129556128cd565b604052919050565b60006001600160401b03821115612976576129766128cd565b50601f01601f191660200190565b60006001600160401b038084111561299e5761299e6128cd565b8360051b60206129af81830161292d565b8681529185019181810190368411156129c757600080fd5b865b84811015612a8d578035868111156129e15760008081fd5b880160603682900312156129f55760008081fd5b6129fd6128e3565b612a068261251d565b8152612a138683016125c8565b8682015260408083013589811115612a2b5760008081fd5b929092019136601f840112612a405760008081fd5b8235612a53612a4e8261295d565b61292d565b8181523689838701011115612a685760008081fd5b818986018a8301376000918101890191909152908201528452509183019183016129c9565b50979650505050505050565b60008085851115612aa957600080fd5b83861115612ab657600080fd5b5050820193919092039150565b60008451612ad581846020890161225a565b8201838582376000930192835250909392505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b602081526000610cc7602083018486612aeb565b634e487b7160e01b600052603260045260246000fd5b6000823561013e19833603018112612b5557600080fd5b9190910192915050565b6000808335601e19843603018112612b7657600080fd5b8301803591506001600160401b03821115612b9057600080fd5b60200191503681900382131561243657600080fd5b6001600160401b038116811461127957600080fd5b63ffffffff612bc88961251d565b1681526020880135602082015260006040890135612be581612ba5565b6001600160401b03811660408401525087606083015260e06080830152612c1060e083018789612aeb565b6001600160a01b03861660a084015282810360c0840152612c32818587612aeb565b9a9950505050505050505050565b600060208284031215612c5257600080fd5b81516001600160401b03811115612c6857600080fd5b8201601f81018413612c7957600080fd5b8051612c87612a4e8261295d565b818152856020838501011115612c9c57600080fd5b61185282602083016020860161225a565b600060408284031215612cbf57600080fd5b612cc761290b565b82358152602083013560208201528091505092915050565b600060208284031215612cf157600080fd5b8135610aeb81612ba5565b60018060a01b038516815283602082015261ffff83166040820152608060608201526000610b65608083018461227e565b604081526000612d40604083018561227e565b8281036020840152611852818561227e565b600060208284031215612d6457600080fd5b8151610aeb81612552565b6040815263ffffffff8351166040820152602083015160608201526000604084015160a06080840152612da560e084018261227e565b90506060850151603f198483030160a0850152612dc2828261227e565b60809690960151151560c08501525050506001600160a01b039190911660209091015290565b600060408284031215612dfa57600080fd5b612e0261290b565b9050815181526020820151602082015292915050565b600060408284031215612e2a57600080fd5b610aeb8383612de8565b601f82111561130c576000816000526020600020601f850160051c81016020861015612e5d5750805b601f850160051c820191505b81811015612e7c57828155600101612e69565b505050505050565b81516001600160401b03811115612e9d57612e9d6128cd565b612eb181612eab8454612899565b84612e34565b602080601f831160018114612ee65760008415612ece5750858301515b600019600386901b1c1916600185901b178555612e7c565b600085815260208120601f198616915b82811015612f1557888601518255948401946001909101908401612ef6565b5085821015612f335787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208083018184528085518083526040925060408601915060408160051b87010184880160005b83811015612fc057888303603f190185528151805163ffffffff1684528781015161ffff16888501528601516060878501819052612fac8186018361227e565b968901969450505090860190600101612f6c565b509098975050505050505050565b600060808284031215612fe057600080fd5b612fe86128e3565b825181526020830151612ffa81612ba5565b602082015261300c8460408501612de8565b60408201529392505050565b634e487b7160e01b600052601160045260246000fd5b60008261304b57634e487b7160e01b600052601260045260246000fd5b500490565b808202811582820484141761093557610935613018565b8035602083101561093557600019602084900360031b1b1692915050565b6001600160c01b031981358181169160088510156130ad5780818660080360031b1b83161692505b505092915050565b6001600160401b0360c01b8560c01b16815263ffffffff60e01b8460e01b16600882015282600c820152600082516130f481602c85016020870161225a565b91909101602c0195945050505050565b8082018082111561093557610935613018565b8481526001600160401b0360c01b8460c01b1660208201528260288201526000825161314a81604885016020870161225a565b9190910160480195945050505050565b60006020828403121561316c57600080fd5b8151610aeb816122bd565b60008251612b5581846020870161225a56fea264697066735822122008dc4c88e3eddb94280e989401d6a6b099e5f5e5344b2c005823c5e07ae104da64736f6c63430008190033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000001a44076050125825900e736c501f859c50fe728c0000000000000000000000000743eb3b57c0ec36a48dc5cec88d13a7dac9203a0000000000000000000000000000000000000000000000000000000000000008446f674c696272650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004444f474c00000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102725760003560e01c8063715018a61161014f578063bb0b6a53116100c1578063d42438851161007a578063d4243885146107c9578063dd62ed3e146107e9578063f2fde38b1461082f578063fc0c546a146104c2578063fca3b5aa1461084f578063ff7bd03d1461086f57600080fd5b8063bb0b6a5314610715578063bc70b35414610742578063bd815db014610762578063c7c7f5b314610775578063ca5eb5e114610796578063d045a0dc146107b657600080fd5b806395d89b411161011357806395d89b4114610658578063963efcaa1461066d5780639f68b964146106a1578063a9059cbb146106b5578063b731ea0a146106d5578063b98bd070146106f557600080fd5b8063715018a6146105b65780637d25a05e146105cb57806382413eac14610606578063857749b0146106265780638da5cb5b1461063a57600080fd5b806323b872dd116101e857806352ae2879116101ac57806352ae2879146104c25780635535d461146104d55780635a0dfe4d146104f55780635e280f111461052c5780636fc1b31e1461056057806370a082311461058057600080fd5b806323b872dd14610413578063313ce567146104335780633400288b146104555780633b6f743b1461047557806340c10f19146104a257600080fd5b806313137d651161023a57806313137d6514610359578063134d4f251461036e578063156a0d0f1461039657806317442b70146103bd57806318160ddd146103df5780631f5e1334146103fe57600080fd5b806306fdde031461027757806307546172146102a2578063095ea7b3146102da5780630d35b4151461030a578063111ecdad14610339575b600080fd5b34801561028357600080fd5b5061028c61088f565b60405161029991906122aa565b60405180910390f35b3480156102ae57600080fd5b50600a546102c2906001600160a01b031681565b6040516001600160a01b039091168152602001610299565b3480156102e657600080fd5b506102fa6102f53660046122d2565b610921565b6040519015158152602001610299565b34801561031657600080fd5b5061032a610325366004612316565b61093b565b6040516102999392919061234a565b34801561034557600080fd5b506004546102c2906001600160a01b031681565b61036c61036736600461243d565b610a0c565b005b34801561037a57600080fd5b50610383600281565b60405161ffff9091168152602001610299565b3480156103a257600080fd5b506040805162b9270b60e21b81526001602082015201610299565b3480156103c957600080fd5b5060408051600181526002602082015201610299565b3480156103eb57600080fd5b506007545b604051908152602001610299565b34801561040a57600080fd5b50610383600181565b34801561041f57600080fd5b506102fa61042e3660046124dc565b610acc565b34801561043f57600080fd5b5060125b60405160ff9091168152602001610299565b34801561046157600080fd5b5061036c610470366004612536565b610af2565b34801561048157600080fd5b50610495610490366004612560565b610b08565b60405161029991906125b1565b3480156104ae57600080fd5b5061036c6104bd3660046122d2565b610b6f565b3480156104ce57600080fd5b50306102c2565b3480156104e157600080fd5b5061028c6104f03660046125da565b610ba4565b34801561050157600080fd5b506102fa610510366004612536565b63ffffffff919091166000908152600160205260409020541490565b34801561053857600080fd5b506102c27f0000000000000000000000001a44076050125825900e736c501f859c50fe728c81565b34801561056c57600080fd5b5061036c61057b36600461260d565b610c49565b34801561058c57600080fd5b506103f061059b36600461260d565b6001600160a01b031660009081526005602052604090205490565b3480156105c257600080fd5b5061036c610ca6565b3480156105d757600080fd5b506105ee6105e6366004612536565b600092915050565b6040516001600160401b039091168152602001610299565b34801561061257600080fd5b506102fa61062136600461262a565b610cba565b34801561063257600080fd5b506006610443565b34801561064657600080fd5b506000546001600160a01b03166102c2565b34801561066457600080fd5b5061028c610ccf565b34801561067957600080fd5b506103f07f000000000000000000000000000000000000000000000000000000e8d4a5100081565b3480156106ad57600080fd5b5060006102fa565b3480156106c157600080fd5b506102fa6106d03660046122d2565b610cde565b3480156106e157600080fd5b506002546102c2906001600160a01b031681565b34801561070157600080fd5b5061036c6107103660046126d4565b610cec565b34801561072157600080fd5b506103f0610730366004612715565b60016020526000908152604090205481565b34801561074e57600080fd5b5061028c61075d366004612730565b610d06565b61036c6107703660046126d4565b610eae565b610788610783366004612790565b611038565b6040516102999291906127fd565b3480156107a257600080fd5b5061036c6107b136600461260d565b611133565b61036c6107c436600461243d565b6111b9565b3480156107d557600080fd5b5061036c6107e436600461260d565b6111e8565b3480156107f557600080fd5b506103f061080436600461284f565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b34801561083b57600080fd5b5061036c61084a36600461260d565b61123e565b34801561085b57600080fd5b5061036c61086a36600461260d565b61127c565b34801561087b57600080fd5b506102fa61088a36600461287d565b6112c9565b60606008805461089e90612899565b80601f01602080910402602001604051908101604052809291908181526020018280546108ca90612899565b80156109175780601f106108ec57610100808354040283529160200191610917565b820191906000526020600020905b8154815290600101906020018083116108fa57829003601f168201915b5050505050905090565b60003361092f8185856112ff565b60019150505b92915050565b6040805180820190915260008082526020820152606061096e604051806040016040528060008152602001600081525090565b60408051808201825260008082526001600160401b036020808401829052845183815290810190945291955091826109c9565b6040805180820190915260008152606060208201528152602001906001900390816109a15790505b5093506000806109ee604089013560608a01356109e960208c018c612715565b611311565b60408051808201909152918252602082015296989597505050505050565b7f0000000000000000000000001a44076050125825900e736c501f859c50fe728c6001600160a01b03163314610a5c576040516391ac5e4f60e01b81523360048201526024015b60405180910390fd5b60208701803590610a7690610a71908a612715565b611355565b14610ab457610a886020880188612715565b60405163309afaf360e21b815263ffffffff909116600482015260208801356024820152604401610a53565b610ac387878787878787611391565b50505050505050565b600033610ada8582856114f8565b610ae5858585611576565b60019150505b9392505050565b610afa6115d5565b610b048282611602565b5050565b60408051808201909152600080825260208201526000610b38604085013560608601356109e96020880188612715565b915050600080610b488684611657565b9092509050610b65610b5d6020880188612715565b83838861177a565b9695505050505050565b600a546001600160a01b03163314610b9a57604051639cdc2ed560e01b815260040160405180910390fd5b610b04828261185b565b600360209081526000928352604080842090915290825290208054610bc890612899565b80601f0160208091040260200160405190810160405280929190818152602001828054610bf490612899565b8015610c415780601f10610c1657610100808354040283529160200191610c41565b820191906000526020600020905b815481529060010190602001808311610c2457829003601f168201915b505050505081565b610c516115d5565b600480546001600160a01b0319166001600160a01b0383169081179091556040519081527ff0be4f1e87349231d80c36b33f9e8639658eeaf474014dee15a3e6a4d4414197906020015b60405180910390a150565b610cae6115d5565b610cb86000611891565b565b6001600160a01b03811630145b949350505050565b60606009805461089e90612899565b60003361092f818585611576565b610cf46115d5565b610b04610d018284612984565b6118e1565b63ffffffff8416600090815260036020908152604080832061ffff87168452909152812080546060929190610d3a90612899565b80601f0160208091040260200160405190810160405280929190818152602001828054610d6690612899565b8015610db35780601f10610d8857610100808354040283529160200191610db3565b820191906000526020600020905b815481529060010190602001808311610d9657829003601f168201915b505050505090508051600003610e035783838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929450610cc79350505050565b6000839003610e13579050610cc7565b60028310610e9157610e5a84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506119e892505050565b80610e688460028188612a99565b604051602001610e7a93929190612ac3565b604051602081830303815290604052915050610cc7565b8383604051639a6d49cd60e01b8152600401610a53929190612b14565b60005b81811015610fb75736838383818110610ecc57610ecc612b28565b9050602002810190610ede9190612b3e565b9050610f11610ef06020830183612715565b602083013563ffffffff919091166000908152600160205260409020541490565b610f1b5750610faf565b3063d045a0dc60c08301358360a0810135610f3a610100830183612b5f565b610f4b610100890160e08a0161260d565b610f596101208a018a612b5f565b6040518963ffffffff1660e01b8152600401610f7b9796959493929190612bba565b6000604051808303818588803b158015610f9457600080fd5b505af1158015610fa8573d6000803e3d6000fd5b5050505050505b600101610eb1565b50336001600160a01b0316638e9e70996040518163ffffffff1660e01b8152600401600060405180830381865afa158015610ff6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261101e9190810190612c40565b604051638351eea760e01b8152600401610a5391906122aa565b611040612213565b604080518082019091526000808252602082015260008061107733604089013560608a013561107260208c018c612715565b611a14565b915091506000806110888984611657565b90925090506110b461109d60208b018b612715565b83836110ae368d90038d018d612cad565b8b611a3a565b60408051808201909152858152602080820186905282519298509096503391907f85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a90611102908d018d612715565b6040805163ffffffff909216825260208201899052810187905260600160405180910390a350505050935093915050565b61113b6115d5565b60405163ca5eb5e160e01b81526001600160a01b0382811660048301527f0000000000000000000000001a44076050125825900e736c501f859c50fe728c169063ca5eb5e190602401600060405180830381600087803b15801561119e57600080fd5b505af11580156111b2573d6000803e3d6000fd5b5050505050565b3330146111d95760405163029a949d60e31b815260040160405180910390fd5b610ac387878787878787610ab4565b6111f06115d5565b600280546001600160a01b0319166001600160a01b0383169081179091556040519081527fd48d879cef83a1c0bdda516f27b13ddb1b3f8bbac1c9e1511bb2a659c242776090602001610c9b565b6112466115d5565b6001600160a01b03811661127057604051631e4fbdf760e01b815260006004820152602401610a53565b61127981611891565b50565b600a546001600160a01b031633146112a757604051639cdc2ed560e01b815260040160405180910390fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b60006020820180359060019083906112e19086612715565b63ffffffff1681526020810191909152604001600020541492915050565b61130c8383836001611b45565b505050565b60008061131d85611c1a565b91508190508381101561134d576040516371c4efed60e01b81526004810182905260248101859052604401610a53565b935093915050565b63ffffffff8116600090815260016020526040812054806109355760405163f6ff4fb760e01b815263ffffffff84166004820152602401610a53565b60006113a36113a08787611c51565b90565b905060006113cf826113bd6113b88a8a611c69565b611c8c565b6113ca60208d018d612715565b611cc1565b9050602886111561149657600061140c6113ef60608c0160408d01612cdf565b6113fc60208d018d612715565b846114078c8c611ce9565b611d34565b604051633e5ac80960e11b81529091506001600160a01b037f0000000000000000000000001a44076050125825900e736c501f859c50fe728c1690637cb59012906114629086908d906000908790600401612cfc565b600060405180830381600087803b15801561147c57600080fd5b505af1158015611490573d6000803e3d6000fd5b50505050505b6001600160a01b038216887fefed6d3500546b29533b128a29e3a94d70788727f0507505ac12eaf2e578fd9c6114cf60208d018d612715565b6040805163ffffffff9092168252602082018690520160405180910390a3505050505050505050565b6001600160a01b038381166000908152600660209081526040808320938616835292905220546000198114611570578181101561156157604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610a53565b61157084848484036000611b45565b50505050565b6001600160a01b0383166115a057604051634b637e8f60e11b815260006004820152602401610a53565b6001600160a01b0382166115ca5760405163ec442f0560e01b815260006004820152602401610a53565b61130c838383611d66565b6000546001600160a01b03163314610cb85760405163118cdaa760e01b8152336004820152602401610a53565b63ffffffff8216600081815260016020908152604091829020849055815192835282018390527f238399d427b947898edb290f5ff0f9109849b1c3ba196a42e35f00c50a54b98b910160405180910390a15050565b60608060006116b4856020013561166d86611e90565b61167a60a0890189612b5f565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611ebc92505050565b90935090506000816116c75760016116ca565b60025b90506116ea6116dc6020880188612715565b8261075d60808a018a612b5f565b6004549093506001600160a01b031680156117705760405163043a78eb60e01b81526001600160a01b0382169063043a78eb9061172d9088908890600401612d2d565b602060405180830381865afa15801561174a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061176e9190612d52565b505b5050509250929050565b60408051808201909152600080825260208201527f0000000000000000000000001a44076050125825900e736c501f859c50fe728c6001600160a01b031663ddc28c586040518060a001604052808863ffffffff1681526020016117dd89611355565b8152602001878152602001868152602001851515815250306040518363ffffffff1660e01b8152600401611812929190612d6f565b6040805180830381865afa15801561182e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118529190612e18565b95945050505050565b6001600160a01b0382166118855760405163ec442f0560e01b815260006004820152602401610a53565b610b0460008383611d66565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60005b81518110156119b85761191382828151811061190257611902612b28565b6020026020010151604001516119e8565b81818151811061192557611925612b28565b6020026020010151604001516003600084848151811061194757611947612b28565b60200260200101516000015163ffffffff1663ffffffff168152602001908152602001600020600084848151811061198157611981612b28565b60200260200101516020015161ffff1661ffff16815260200190815260200160002090816119af9190612e84565b506001016118e4565b507fbe4864a8e820971c0247f5992e2da559595f7bf076a21cb5928d443d2a13b67481604051610c9b9190612f43565b600281015161ffff8116600314610b045781604051639a6d49cd60e01b8152600401610a5391906122aa565b600080611a22858585611311565b9092509050611a318683611f36565b94509492505050565b611a42612213565b6000611a518460000151611f6c565b602085015190915015611a6b57611a6b8460200151611f94565b7f0000000000000000000000001a44076050125825900e736c501f859c50fe728c6001600160a01b0316632637a450826040518060a001604052808b63ffffffff168152602001611abb8c611355565b81526020018a815260200189815260200160008960200151111515815250866040518463ffffffff1660e01b8152600401611af7929190612d6f565b60806040518083038185885af1158015611b15573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611b3a9190612fce565b979650505050505050565b6001600160a01b038416611b6f5760405163e602df0560e01b815260006004820152602401610a53565b6001600160a01b038316611b9957604051634a1406b160e11b815260006004820152602401610a53565b6001600160a01b038085166000908152600660209081526040808320938716835292905220829055801561157057826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051611c0c91815260200190565b60405180910390a350505050565b60007f000000000000000000000000000000000000000000000000000000e8d4a51000611c47818461302e565b6109359190613050565b6000611c606020828486612a99565b610aeb91613067565b6000611c79602860208486612a99565b611c8291613085565b60c01c9392505050565b60006109357f000000000000000000000000000000000000000000000000000000e8d4a510006001600160401b038416613050565b60006001600160a01b038416611cd75761dead93505b611ce1848461185b565b509092915050565b6060611cf88260288186612a99565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929695505050505050565b606084848484604051602001611d4d94939291906130b5565b6040516020818303038152906040529050949350505050565b6001600160a01b038316611d91578060076000828254611d869190613104565b90915550611e039050565b6001600160a01b03831660009081526005602052604090205481811015611de45760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610a53565b6001600160a01b03841660009081526005602052604090209082900390555b6001600160a01b038216611e1f57600780548290039055611e3e565b6001600160a01b03821660009081526005602052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611e8391815260200190565b60405180910390a3505050565b60006109357f000000000000000000000000000000000000000000000000000000e8d4a510008361302e565b8051606090151580611f05578484604051602001611ef192919091825260c01b6001600160c01b031916602082015260280190565b604051602081830303815290604052611f2c565b84843385604051602001611f1c9493929190613117565b6040516020818303038152906040525b9150935093915050565b6001600160a01b038216611f6057604051634b637e8f60e11b815260006004820152602401610a53565b610b0482600083611d66565b6000813414611f90576040516304fb820960e51b8152346004820152602401610a53565b5090565b60007f0000000000000000000000001a44076050125825900e736c501f859c50fe728c6001600160a01b031663e4fe1d946040518163ffffffff1660e01b8152600401602060405180830381865afa158015611ff4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612018919061315a565b90506001600160a01b038116612041576040516329b99a9560e11b815260040160405180910390fd5b6040805133602482018190527f0000000000000000000000001a44076050125825900e736c501f859c50fe728c6001600160a01b03818116604485015260648085018890528551808603909101815260849094019094526020830180516001600160e01b03166323b872dd60e01b179052610b0493851692869061157090859060006120cd838361211b565b905080516000141580156120f25750808060200190518101906120f09190612d52565b155b1561130c57604051635274afe760e01b81526001600160a01b0384166004820152602401610a53565b6060610aeb8383600084600080856001600160a01b031684866040516121419190613177565b60006040518083038185875af1925050503d806000811461217e576040519150601f19603f3d011682016040523d82523d6000602084013e612183565b606091505b5091509150610b658683836060826121a35761219e826121ea565b610aeb565b81511580156121ba57506001600160a01b0384163b155b156121e357604051639996b31560e01b81526001600160a01b0385166004820152602401610a53565b5080610aeb565b8051156121fa5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b60405180606001604052806000801916815260200160006001600160401b03168152602001612255604051806040016040528060008152602001600081525090565b905290565b60005b8381101561227557818101518382015260200161225d565b50506000910152565b6000815180845261229681602086016020860161225a565b601f01601f19169290920160200192915050565b602081526000610aeb602083018461227e565b6001600160a01b038116811461127957600080fd5b600080604083850312156122e557600080fd5b82356122f0816122bd565b946020939093013593505050565b600060e0828403121561231057600080fd5b50919050565b60006020828403121561232857600080fd5b81356001600160401b0381111561233e57600080fd5b610cc7848285016122fe565b8351815260208085015190820152600060a08201604060a0604085015281865180845260c08601915060c08160051b8701019350602080890160005b838110156123c55788870360bf190185528151805188528301518388018790526123b28789018261227e565b9750509382019390820190600101612386565b50508751606088015250505060208501516080850152509050610cc7565b60006060828403121561231057600080fd5b60008083601f84011261240757600080fd5b5081356001600160401b0381111561241e57600080fd5b60208301915083602082850101111561243657600080fd5b9250929050565b600080600080600080600060e0888a03121561245857600080fd5b61246289896123e3565b96506060880135955060808801356001600160401b038082111561248557600080fd5b6124918b838c016123f5565b909750955060a08a013591506124a6826122bd565b90935060c089013590808211156124bc57600080fd5b506124c98a828b016123f5565b989b979a50959850939692959293505050565b6000806000606084860312156124f157600080fd5b83356124fc816122bd565b9250602084013561250c816122bd565b929592945050506040919091013590565b803563ffffffff8116811461253157600080fd5b919050565b6000806040838503121561254957600080fd5b6122f08361251d565b801515811461127957600080fd5b6000806040838503121561257357600080fd5b82356001600160401b0381111561258957600080fd5b612595858286016122fe565b92505060208301356125a681612552565b809150509250929050565b815181526020808301519082015260408101610935565b803561ffff8116811461253157600080fd5b600080604083850312156125ed57600080fd5b6125f68361251d565b9150612604602084016125c8565b90509250929050565b60006020828403121561261f57600080fd5b8135610aeb816122bd565b60008060008060a0858703121561264057600080fd5b61264a86866123e3565b935060608501356001600160401b0381111561266557600080fd5b612671878288016123f5565b9094509250506080850135612685816122bd565b939692955090935050565b60008083601f8401126126a257600080fd5b5081356001600160401b038111156126b957600080fd5b6020830191508360208260051b850101111561243657600080fd5b600080602083850312156126e757600080fd5b82356001600160401b038111156126fd57600080fd5b61270985828601612690565b90969095509350505050565b60006020828403121561272757600080fd5b610aeb8261251d565b6000806000806060858703121561274657600080fd5b61274f8561251d565b935061275d602086016125c8565b925060408501356001600160401b0381111561277857600080fd5b612784878288016123f5565b95989497509550505050565b600080600083850360808112156127a657600080fd5b84356001600160401b038111156127bc57600080fd5b6127c8878288016122fe565b9450506040601f19820112156127dd57600080fd5b5060208401915060608401356127f2816122bd565b809150509250925092565b600060c082019050835182526001600160401b0360208501511660208301526040840151612838604084018280518252602090810151910152565b5082516080830152602083015160a0830152610aeb565b6000806040838503121561286257600080fd5b823561286d816122bd565b915060208301356125a6816122bd565b60006060828403121561288f57600080fd5b610aeb83836123e3565b600181811c908216806128ad57607f821691505b60208210810361231057634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b604051606081016001600160401b0381118282101715612905576129056128cd565b60405290565b604080519081016001600160401b0381118282101715612905576129056128cd565b604051601f8201601f191681016001600160401b0381118282101715612955576129556128cd565b604052919050565b60006001600160401b03821115612976576129766128cd565b50601f01601f191660200190565b60006001600160401b038084111561299e5761299e6128cd565b8360051b60206129af81830161292d565b8681529185019181810190368411156129c757600080fd5b865b84811015612a8d578035868111156129e15760008081fd5b880160603682900312156129f55760008081fd5b6129fd6128e3565b612a068261251d565b8152612a138683016125c8565b8682015260408083013589811115612a2b5760008081fd5b929092019136601f840112612a405760008081fd5b8235612a53612a4e8261295d565b61292d565b8181523689838701011115612a685760008081fd5b818986018a8301376000918101890191909152908201528452509183019183016129c9565b50979650505050505050565b60008085851115612aa957600080fd5b83861115612ab657600080fd5b5050820193919092039150565b60008451612ad581846020890161225a565b8201838582376000930192835250909392505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b602081526000610cc7602083018486612aeb565b634e487b7160e01b600052603260045260246000fd5b6000823561013e19833603018112612b5557600080fd5b9190910192915050565b6000808335601e19843603018112612b7657600080fd5b8301803591506001600160401b03821115612b9057600080fd5b60200191503681900382131561243657600080fd5b6001600160401b038116811461127957600080fd5b63ffffffff612bc88961251d565b1681526020880135602082015260006040890135612be581612ba5565b6001600160401b03811660408401525087606083015260e06080830152612c1060e083018789612aeb565b6001600160a01b03861660a084015282810360c0840152612c32818587612aeb565b9a9950505050505050505050565b600060208284031215612c5257600080fd5b81516001600160401b03811115612c6857600080fd5b8201601f81018413612c7957600080fd5b8051612c87612a4e8261295d565b818152856020838501011115612c9c57600080fd5b61185282602083016020860161225a565b600060408284031215612cbf57600080fd5b612cc761290b565b82358152602083013560208201528091505092915050565b600060208284031215612cf157600080fd5b8135610aeb81612ba5565b60018060a01b038516815283602082015261ffff83166040820152608060608201526000610b65608083018461227e565b604081526000612d40604083018561227e565b8281036020840152611852818561227e565b600060208284031215612d6457600080fd5b8151610aeb81612552565b6040815263ffffffff8351166040820152602083015160608201526000604084015160a06080840152612da560e084018261227e565b90506060850151603f198483030160a0850152612dc2828261227e565b60809690960151151560c08501525050506001600160a01b039190911660209091015290565b600060408284031215612dfa57600080fd5b612e0261290b565b9050815181526020820151602082015292915050565b600060408284031215612e2a57600080fd5b610aeb8383612de8565b601f82111561130c576000816000526020600020601f850160051c81016020861015612e5d5750805b601f850160051c820191505b81811015612e7c57828155600101612e69565b505050505050565b81516001600160401b03811115612e9d57612e9d6128cd565b612eb181612eab8454612899565b84612e34565b602080601f831160018114612ee65760008415612ece5750858301515b600019600386901b1c1916600185901b178555612e7c565b600085815260208120601f198616915b82811015612f1557888601518255948401946001909101908401612ef6565b5085821015612f335787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208083018184528085518083526040925060408601915060408160051b87010184880160005b83811015612fc057888303603f190185528151805163ffffffff1684528781015161ffff16888501528601516060878501819052612fac8186018361227e565b968901969450505090860190600101612f6c565b509098975050505050505050565b600060808284031215612fe057600080fd5b612fe86128e3565b825181526020830151612ffa81612ba5565b602082015261300c8460408501612de8565b60408201529392505050565b634e487b7160e01b600052601160045260246000fd5b60008261304b57634e487b7160e01b600052601260045260246000fd5b500490565b808202811582820484141761093557610935613018565b8035602083101561093557600019602084900360031b1b1692915050565b6001600160c01b031981358181169160088510156130ad5780818660080360031b1b83161692505b505092915050565b6001600160401b0360c01b8560c01b16815263ffffffff60e01b8460e01b16600882015282600c820152600082516130f481602c85016020870161225a565b91909101602c0195945050505050565b8082018082111561093557610935613018565b8481526001600160401b0360c01b8460c01b1660208201528260288201526000825161314a81604885016020870161225a565b9190910160480195945050505050565b60006020828403121561316c57600080fd5b8151610aeb816122bd565b60008251612b5581846020870161225a56fea264697066735822122008dc4c88e3eddb94280e989401d6a6b099e5f5e5344b2c005823c5e07ae104da64736f6c63430008190033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000001a44076050125825900e736c501f859c50fe728c0000000000000000000000000743eb3b57c0ec36a48dc5cec88d13a7dac9203a0000000000000000000000000000000000000000000000000000000000000008446f674c696272650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004444f474c00000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): DogLibre
Arg [1] : symbol (string): DOGL
Arg [2] : _lzEndpoint (address): 0x1a44076050125825900e736c501f859c50fE728c
Arg [3] : _delegate (address): 0x0743eb3b57c0ec36a48dc5CeC88d13A7dAC9203a

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000001a44076050125825900e736c501f859c50fe728c
Arg [3] : 0000000000000000000000000743eb3b57c0ec36a48dc5cec88d13a7dac9203a
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [5] : 446f674c69627265000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [7] : 444f474c00000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

138784:1144:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59345:91;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;139122:21;;;;;;;;;;-1:-1:-1;139122:21:0;;;;-1:-1:-1;;;;;139122:21:0;;;;;;-1:-1:-1;;;;;934:32:1;;;916:51;;904:2;889:18;139122:21:0;770:203:1;61638:190:0;;;;;;;;;;-1:-1:-1;61638:190:0;;;;;:::i;:::-;;:::i;:::-;;;1599:14:1;;1592:22;1574:41;;1562:2;1547:18;61638:190:0;1434:187:1;120899:1283:0;;;;;;;;;;-1:-1:-1;120899:1283:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;:::i;118042:27::-;;;;;;;;;;-1:-1:-1;118042:27:0;;;;-1:-1:-1;;;;;118042:27:0;;;89330:725;;;;;;:::i;:::-;;:::i;:::-;;117913:40;;;;;;;;;;;;117952:1;117913:40;;;;;5389:6:1;5377:19;;;5359:38;;5347:2;5332:18;117913:40:0;5215:188:1;119211:142:0;;;;;;;;;;-1:-1:-1;119211:142:0;;;-1:-1:-1;;;5578:52:1;;119343:1:0;5661:2:1;5646:18;;5639:59;5551:18;119211:142:0;5408:296:1;116114:245:0;;;;;;;;;;-1:-1:-1;116114:245:0;;;92985:1;5916:34:1;;85559:1:0;5981:2:1;5966:18;;5959:43;5852:18;116114:245:0;5709:299:1;60447:99:0;;;;;;;;;;-1:-1:-1;60526:12:0;;60447:99;;;6159:25:1;;;6147:2;6132:18;60447:99:0;6013:177:1;117875:31:0;;;;;;;;;;;;117905:1;117875:31;;62406:249;;;;;;;;;;-1:-1:-1;62406:249:0;;;;;:::i;:::-;;:::i;60298:84::-;;;;;;;;;;-1:-1:-1;60372:2:0;60298:84;;;6828:4:1;6816:17;;;6798:36;;6786:2;6771:18;60298:84:0;6656:184:1;77201:110:0;;;;;;;;;;-1:-1:-1;77201:110:0;;;;;:::i;:::-;;:::i;122645:789::-;;;;;;;;;;-1:-1:-1;122645:789:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;139632:151::-;;;;;;;;;;-1:-1:-1;139632:151:0;;;;;:::i;:::-;;:::i;110383:95::-;;;;;;;;;;-1:-1:-1;110465:4:0;110383:95;;44728:93;;;;;;;;;;-1:-1:-1;44728:93:0;;;;;:::i;:::-;;:::i;131075:134::-;;;;;;;;;;-1:-1:-1;131075:134:0;;;;;:::i;:::-;131181:11;;;;;131157:4;131181:11;;;:5;:11;;;;;;:20;;131075:134;75890:48;;;;;;;;;;;;;;;120418:166;;;;;;;;;;-1:-1:-1;120418:166:0;;;;;:::i;:::-;;:::i;60609:118::-;;;;;;;;;;-1:-1:-1;60609:118:0;;;;;:::i;:::-;-1:-1:-1;;;;;60701:18:0;60674:7;60701:18;;;:9;:18;;;;;;;60609:118;42007:103;;;;;;;;;;;;;:::i;88452:130::-;;;;;;;;;;-1:-1:-1;88452:130:0;;;;;:::i;:::-;88541:12;88452:130;;;;;;;;-1:-1:-1;;;;;9454:31:1;;;9436:50;;9424:2;9409:18;88452:130:0;9292:200:1;86922:224:0;;;;;;;;;;-1:-1:-1;86922:224:0;;;;;:::i;:::-;;:::i;119972:89::-;;;;;;;;;;-1:-1:-1;120052:1:0;119972:89;;41332:87;;;;;;;;;;-1:-1:-1;41378:7:0;41405:6;-1:-1:-1;;;;;41405:6:0;41332:87;;59555:95;;;;;;;;;;;;;:::i;117564:46::-;;;;;;;;;;;;;;;136759:96;;;;;;;;;;-1:-1:-1;136818:4:0;136759:96;;60932:182;;;;;;;;;;-1:-1:-1;60932:182:0;;;;;:::i;:::-;;:::i;110058:23::-;;;;;;;;;;-1:-1:-1;110058:23:0;;;;-1:-1:-1;;;;;110058:23:0;;;45593:158;;;;;;;;;;-1:-1:-1;45593:158:0;;;;;:::i;:::-;;:::i;76018:48::-;;;;;;;;;;-1:-1:-1;76018:48:0;;;;;:::i;:::-;;;;;;;;;;;;;;47747:1003;;;;;;;;;;-1:-1:-1;47747:1003:0;;;;;:::i;:::-;;:::i;111227:1358::-;;;;;;:::i;:::-;;:::i;124139:1368::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;78766:107::-;;;;;;;;;;-1:-1:-1;78766:107:0;;;;;:::i;:::-;;:::i;113247:421::-;;;;;;:::i;:::-;;:::i;110616:142::-;;;;;;;;;;-1:-1:-1;110616:142:0;;;;;:::i;:::-;;:::i;61177:::-;;;;;;;;;;-1:-1:-1;61177:142:0;;;;;:::i;:::-;-1:-1:-1;;;;;61284:18:0;;;61257:7;61284:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;61177:142;42265:220;;;;;;;;;;-1:-1:-1;42265:220:0;;;;;:::i;:::-;;:::i;139791:134::-;;;;;;;;;;-1:-1:-1;139791:134:0;;;;;:::i;:::-;;:::i;87699:153::-;;;;;;;;;;-1:-1:-1;87699:153:0;;;;;:::i;:::-;;:::i;59345:91::-;59390:13;59423:5;59416:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59345:91;:::o;61638:190::-;61711:4;39443:10;61767:31;39443:10;61783:7;61792:5;61767:8;:31::i;:::-;61816:4;61809:11;;;61638:190;;;;;:::o;120899:1283::-;-1:-1:-1;;;;;;;;;;;;;;;;;121057:35:0;121094:28;-1:-1:-1;;;;;;;;;;;;;;;;;;;121094:28:0;121316:34;;;;;;;;-1:-1:-1;121316:34:0;;;-1:-1:-1;;;;;121316:34:0;;;;;;;121470:21;;;;;;;;;;;121316:34;;-1:-1:-1;;;121470:21:0;;;-1:-1:-1;;;;;;;;;;;;;;;;;121470:21:0;;;;;;;;;;;;;;;-1:-1:-1;121454:37:0;-1:-1:-1;121934:20:0;;121984:124;122009:19;;;;122043:22;;;;122080:17;;;;122009:10;122080:17;:::i;:::-;121984:10;:124::i;:::-;122132:42;;;;;;;;;;;;;;;;120899:1283;;;;-1:-1:-1;;;;;;120899:1283:0:o;89330:725::-;89653:8;-1:-1:-1;;;;;89645:31:0;89666:10;89645:31;89641:68;;89685:24;;-1:-1:-1;;;89685:24:0;;89698:10;89685:24;;;916:51:1;889:18;;89685:24:0;;;;;;;;89641:68;89848:14;;;;;;89812:32;;89829:14;;89848:7;89829:14;:::i;:::-;89812:16;:32::i;:::-;:50;89808:103;;89880:14;;;;:7;:14;:::i;:::-;89871:40;;-1:-1:-1;;;89871:40:0;;15155:10:1;15143:23;;;89871:40:0;;;15125:42:1;89896:14:0;;;;15183:18:1;;;15176:34;15098:18;;89871:40:0;14953:263:1;89808:103:0;89988:59;89999:7;90008:5;90015:8;;90025:9;90036:10;;89988;:59::i;:::-;89330:725;;;;;;;:::o;62406:249::-;62493:4;39443:10;62551:37;62567:4;39443:10;62582:5;62551:15;:37::i;:::-;62599:26;62609:4;62615:2;62619:5;62599:9;:26::i;:::-;62643:4;62636:11;;;62406:249;;;;;;:::o;77201:110::-;41218:13;:11;:13::i;:::-;77282:21:::1;77291:4;77297:5;77282:8;:21::i;:::-;77201:110:::0;;:::o;122645:789::-;-1:-1:-1;;;;;;;;;;;;;;;;;122987:24:0;123015:74;123026:19;;;;123047:22;;;;123071:17;;;;123026:10;123071:17;:::i;123015:74::-;122984:105;;;123181:20;123203;123227:49;123247:10;123259:16;123227:19;:49::i;:::-;123180:96;;-1:-1:-1;123180:96:0;-1:-1:-1;123368:58:0;123375:17;;;;:10;:17;:::i;:::-;123394:7;123403;123412:13;123368:6;:58::i;:::-;123361:65;122645:789;-1:-1:-1;;;;;;122645:789:0:o;139632:151::-;139715:6;;-1:-1:-1;;;;;139715:6:0;139701:10;:20;139697:45;;139730:12;;-1:-1:-1;;;139730:12:0;;;;;;;;;;;139697:45;139753:22;139759:7;139768:6;139753:5;:22::i;44728:93::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;120418:166::-;41218:13;:11;:13::i;:::-;120502:12:::1;:28:::0;;-1:-1:-1;;;;;;120502:28:0::1;-1:-1:-1::0;;;;;120502:28:0;::::1;::::0;;::::1;::::0;;;120546:30:::1;::::0;916:51:1;;;120546:30:0::1;::::0;904:2:1;889:18;120546:30:0::1;;;;;;;;120418:166:::0;:::o;42007:103::-;41218:13;:11;:13::i;:::-;42072:30:::1;42099:1;42072:18;:30::i;:::-;42007:103::o:0;86922:224::-;-1:-1:-1;;;;;87114:24:0;;87133:4;87114:24;86922:224;;;;;;;:::o;59555:95::-;59602:13;59635:7;59628:14;;;;;:::i;60932:182::-;61001:4;39443:10;61057:27;39443:10;61074:2;61078:5;61057:9;:27::i;45593:158::-;41218:13;:11;:13::i;:::-;45706:37:::1;;45726:16:::0;;45706:37:::1;:::i;:::-;:19;:37::i;47747:1003::-:0;47943:21;;;47919;47943;;;:15;:21;;;;;;;;:31;;;;;;;;;;47919:55;;47894:12;;47919:21;47943:31;47919:55;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48106:8;:15;48125:1;48106:20;48102:46;;48135:13;;48128:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48128:20:0;;-1:-1:-1;48128:20:0;;-1:-1:-1;;;;48128:20:0;48102:46;48236:1;48212:25;;;48208:46;;48246:8;-1:-1:-1;48239:15:0;;48208:46;48404:1;48380:25;;48376:271;;48422:34;48442:13;;48422:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48422:19:0;;-1:-1:-1;;;48422:34:0:i;:::-;48607:8;48617:17;:13;48631:1;48617:13;;:17;:::i;:::-;48594:41;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;48587:48;;;;;48376:271;48728:13;;48713:29;;-1:-1:-1;;;48713:29:0;;;;;;;;;:::i;111227:1358::-;111329:9;111324:1057;111344:19;;;111324:1057;;;111385:29;111417:8;;111426:1;111417:11;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;111385:43;-1:-1:-1;111514:50:0;111521:20;;;;111385:43;111521:20;:::i;:::-;111543;;;;131181:11;;;;;131157:4;131181:11;;;:5;:11;;;;;;:20;;131075:134;111514:50;111509:65;;111566:8;;;111509:65;112145:4;:22;112176:12;;;;:6;112241:11;;;;112271:14;;;;112176:6;112271:14;:::i;:::-;112304:15;;;;;;;;:::i;:::-;112338:16;;;;:6;:16;:::i;:::-;112145:224;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;111370:1011;111324:1057;111365:3;;111324:1057;;;;112541:10;-1:-1:-1;;;;;112531:43:0;;:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;112531:45:0;;;;;;;;;;;;:::i;:::-;112514:63;;-1:-1:-1;;;112514:63:0;;;;;;;;:::i;124139:1368::-;124306:36;;:::i;:::-;-1:-1:-1;;;;;;;;;;;;;;;;;124710:20:0;;124760:145;124781:10;124806:19;;;;124840:22;;;;124877:17;;;;124806:10;124877:17;:::i;:::-;124760:6;:145::i;:::-;124709:196;;;;124997:20;125019;125043:49;125063:10;125075:16;125043:19;:49::i;:::-;124996:96;;-1:-1:-1;124996:96:0;-1:-1:-1;125218:66:0;125226:17;;;;:10;:17;:::i;:::-;125245:7;125254;125218:66;;;;;;;125263:4;125218:66;:::i;:::-;125269:14;125218:7;:66::i;:::-;125352:42;;;;;;;;;;;;;;;;;;;125420:15;;125205:79;;-1:-1:-1;125352:42:0;;-1:-1:-1;125456:10:0;;125420:15;125412:87;;125437:17;;;;:10;:17;:::i;:::-;125412:87;;;23029:10:1;23017:23;;;22999:42;;23072:2;23057:18;;23050:34;;;23100:18;;23093:34;;;22987:2;22972:18;125412:87:0;;;;;;;124374:1133;;;;124139:1368;;;;;;:::o;78766:107::-;41218:13;:11;:13::i;:::-;78834:31:::1;::::0;-1:-1:-1;;;78834:31:0;;-1:-1:-1;;;;;934:32:1;;;78834:31:0::1;::::0;::::1;916:51:1::0;78834:8:0::1;:20;::::0;::::1;::::0;889:18:1;;78834:31:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;78766:107:::0;:::o;113247:421::-;113536:10;113558:4;113536:27;113532:50;;113572:10;;-1:-1:-1;;;113572:10:0;;;;;;;;;;;113532:50;113593:67;113612:7;113621:5;113628:8;;113638:9;113649:10;;113593:18;:67::i;110616:142::-;41218:13;:11;:13::i;:::-;110692:8:::1;:20:::0;;-1:-1:-1;;;;;;110692:20:0::1;-1:-1:-1::0;;;;;110692:20:0;::::1;::::0;;::::1;::::0;;;110728:22:::1;::::0;916:51:1;;;110728:22:0::1;::::0;904:2:1;889:18;110728:22:0::1;770:203:1::0;42265:220:0;41218:13;:11;:13::i;:::-;-1:-1:-1;;;;;42350:22:0;::::1;42346:93;;42396:31;::::0;-1:-1:-1;;;42396:31:0;;42424:1:::1;42396:31;::::0;::::1;916:51:1::0;889:18;;42396:31:0::1;770:203:1::0;42346:93:0::1;42449:28;42468:8;42449:18;:28::i;:::-;42265:220:::0;:::o;139791:134::-;139863:6;;-1:-1:-1;;;;;139863:6:0;139849:10;:20;139845:45;;139878:12;;-1:-1:-1;;;139878:12:0;;;;;;;;;;;139845:45;139901:6;:16;;-1:-1:-1;;;;;;139901:16:0;-1:-1:-1;;;;;139901:16:0;;;;;;;;;;139791:134::o;87699:153::-;87783:4;87831:13;;;;;;87807:5;;87783:4;;87813:13;;87831:6;87813:13;:::i;:::-;87807:20;;;;;;;;;;;;;-1:-1:-1;87807:20:0;;:37;;87699:153;-1:-1:-1;;87699:153:0:o;66465:130::-;66550:37;66559:5;66566:7;66575:5;66582:4;66550:8;:37::i;:::-;66465:130;;;:::o;133136:682::-;133282:20;133304:24;133480:22;133492:9;133480:11;:22::i;:::-;133465:37;;133630:12;133611:31;;133715:12;133696:16;:31;133692:119;;;133751:48;;-1:-1:-1;;;133751:48:0;;;;;23312:25:1;;;23353:18;;;23346:34;;;23285:18;;133751:48:0;23138:248:1;133692:119:0;133136:682;;;;;;:::o;78219:200::-;78324:11;;;78289:7;78324:11;;;:5;:11;;;;;;;78346:43;;78377:12;;-1:-1:-1;;;78377:12:0;;23565:10:1;23553:23;;78377:12:0;;;23535:42:1;23508:18;;78377:12:0;23391:192:1;127799:1839:0;128287:17;128307:36;:17;:8;;:15;:17::i;:::-;18582:2;18470:125;128307:36;128287:56;;128478:24;128505:62;128513:9;128524:26;128530:19;:8;;:17;:19::i;:::-;128524:5;:26::i;:::-;128552:14;;;;:7;:14;:::i;:::-;128505:7;:62::i;:::-;128478:89;-1:-1:-1;15861:2:0;-1:-1:-1;;128580:970:0;;;128686:23;128712:180;128756:13;;;;;;;;:::i;:::-;128788:14;;;;:7;:14;:::i;:::-;128821:16;128856:21;:8;;:19;:21::i;:::-;128712:25;:180::i;:::-;129446:92;;-1:-1:-1;;;129446:92:0;;128686:206;;-1:-1:-1;;;;;;129446:8:0;:20;;;;:92;;129467:9;;129478:5;;129485:1;;128686:206;;129446:92;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;128607:943;128580:970;-1:-1:-1;;;;;129567:63:0;;129579:5;129567:63;129586:14;;;;:7;:14;:::i;:::-;129567:63;;;15155:10:1;15143:23;;;15125:42;;15198:2;15183:18;;15176:34;;;15098:18;129567:63:0;;;;;;;128110:1528;;127799:1839;;;;;;;:::o;68181:487::-;-1:-1:-1;;;;;61284:18:0;;;68281:24;61284:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;-1:-1:-1;;68348:37:0;;68344:317;;68425:5;68406:16;:24;68402:132;;;68458:60;;-1:-1:-1;;;68458:60:0;;-1:-1:-1;;;;;24810:32:1;;68458:60:0;;;24792:51:1;24859:18;;;24852:34;;;24902:18;;;24895:34;;;24765:18;;68458:60:0;24590:345:1;68402:132:0;68577:57;68586:5;68593:7;68621:5;68602:16;:24;68628:5;68577:8;:57::i;:::-;68270:398;68181:487;;;:::o;63040:308::-;-1:-1:-1;;;;;63124:18:0;;63120:88;;63166:30;;-1:-1:-1;;;63166:30:0;;63193:1;63166:30;;;916:51:1;889:18;;63166:30:0;770:203:1;63120:88:0;-1:-1:-1;;;;;63222:16:0;;63218:88;;63262:32;;-1:-1:-1;;;63262:32:0;;63291:1;63262:32;;;916:51:1;889:18;;63262:32:0;770:203:1;63218:88:0;63316:24;63324:4;63330:2;63334:5;63316:7;:24::i;41497:166::-;41378:7;41405:6;-1:-1:-1;;;;;41405:6:0;39443:10;41557:23;41553:103;;41604:40;;-1:-1:-1;;;41604:40:0;;39443:10;41604:40;;;916:51:1;889:18;;41604:40:0;770:203:1;77776:137:0;77850:11;;;;;;;:5;:11;;;;;;;;;:19;;;77885:20;;15125:42:1;;;15183:18;;15176:34;;;77885:20:0;;15098:18:1;77885:20:0;;;;;;;77776:137;;:::o;125810:1458::-;125945:20;125967;126000:15;126173:330;126206:10;:13;;;126234:16;126240:9;126234:5;:16::i;:::-;126471:21;;;;:10;:21;:::i;:::-;126173:330;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;126173:18:0;;-1:-1:-1;;;126173:330:0:i;:::-;126149:354;;-1:-1:-1;126149:354:0;-1:-1:-1;126585:14:0;126149:354;126602:33;;117905:1;126602:33;;;117952:1;126602:33;126585:50;-1:-1:-1;126759:67:0;126774:17;;;;:10;:17;:::i;:::-;126793:7;126802:23;;;;:10;:23;:::i;126759:67::-;127088:12;;126749:77;;-1:-1:-1;;;;;;127088:12:0;127181:23;;127177:83;;127206:54;;-1:-1:-1;;;127206:54:0;;-1:-1:-1;;;;;127206:36:0;;;;;:54;;127243:7;;127252;;127206:54;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;127177:83;125989:1279;;;125810:1458;;;;;:::o;94205:406::-;-1:-1:-1;;;;;;;;;;;;;;;;;94435:8:0;-1:-1:-1;;;;;94435:14:0;;94468:88;;;;;;;;94486:7;94468:88;;;;;;94495:25;94512:7;94495:16;:25::i;:::-;94468:88;;;;94522:8;94468:88;;;;94532:8;94468:88;;;;94542:13;94468:88;;;;;94583:4;94435:168;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;94415:188;94205:406;-1:-1:-1;;;;;94205:406:0:o;65160:213::-;-1:-1:-1;;;;;65231:21:0;;65227:93;;65276:32;;-1:-1:-1;;;65276:32:0;;65305:1;65276:32;;;916:51:1;889:18;;65276:32:0;770:203:1;65227:93:0;65330:35;65346:1;65350:7;65359:5;65330:7;:35::i;42645:191::-;42719:16;42738:6;;-1:-1:-1;;;;;42755:17:0;;;-1:-1:-1;;;;;;42755:17:0;;;;;;42788:40;;42738:6;;;;;;;42788:40;;42719:16;42788:40;42708:128;42645:191;:::o;46452:522::-;46561:9;46556:358;46580:16;:23;46576:1;:27;46556:358;;;46740:48;46760:16;46777:1;46760:19;;;;;;;;:::i;:::-;;;;;;;:27;;;46740:19;:48::i;:::-;46875:16;46892:1;46875:19;;;;;;;;:::i;:::-;;;;;;;:27;;;46803:15;:40;46819:16;46836:1;46819:19;;;;;;;;:::i;:::-;;;;;;;:23;;;46803:40;;;;;;;;;;;;;;;:69;46844:16;46861:1;46844:19;;;;;;;;:::i;:::-;;;;;;;:27;;;46803:69;;;;;;;;;;;;;;;:99;;;;;;:::i;:::-;-1:-1:-1;46605:3:0;;46556:358;;;;46931:35;46949:16;46931:35;;;;;;:::i;48896:270::-;49069:1;49055:16;;49049:23;49097:28;;;44650:1;49097:28;49093:65;;49149:8;49134:24;;-1:-1:-1;;;49134:24:0;;;;;;;;:::i;137349:580::-;137515:20;137537:24;137609:44;137620:9;137631:12;137645:7;137609:10;:44::i;:::-;137574:79;;-1:-1:-1;137574:79:0;-1:-1:-1;137895:26:0;137901:5;137574:79;137895:5;:26::i;:::-;137349:580;;;;;;;:::o;95386:789::-;95595:33;;:::i;:::-;95764:20;95787:26;95798:4;:14;;;95787:10;:26::i;:::-;95828:15;;;;95764:49;;-1:-1:-1;95828:19:0;95824:53;;95849:28;95861:4;:15;;;95849:11;:28::i;:::-;95970:8;-1:-1:-1;;;;;95970:13:0;;95992:12;96025:94;;;;;;;;96043:7;96025:94;;;;;;96052:25;96069:7;96052:16;:25::i;:::-;96025:94;;;;96079:8;96025:94;;;;96089:8;96025:94;;;;96117:1;96099:4;:15;;;:19;96025:94;;;;;96138:14;95970:197;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;95890:277;95386:789;-1:-1:-1;;;;;;;95386:789:0:o;67446:443::-;-1:-1:-1;;;;;67559:19:0;;67555:91;;67602:32;;-1:-1:-1;;;67602:32:0;;67631:1;67602:32;;;916:51:1;889:18;;67602:32:0;770:203:1;67555:91:0;-1:-1:-1;;;;;67660:21:0;;67656:92;;67705:31;;-1:-1:-1;;;67705:31:0;;67733:1;67705:31;;;916:51:1;889:18;;67705:31:0;770:203:1;67656:92:0;-1:-1:-1;;;;;67758:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;:35;;;67804:78;;;;67855:7;-1:-1:-1;;;;;67839:31:0;67848:5;-1:-1:-1;;;;;67839:31:0;;67864:5;67839:31;;;;6159:25:1;;6147:2;6132:18;;6013:177;67839:31:0;;;;;;;;67446:443;;;;:::o;131613:174::-;131684:16;131758:21;131721:33;131758:21;131721:9;:33;:::i;:::-;131720:59;;;;:::i;17227:125::-;17287:7;17322:21;15805:2;17287:7;17322:4;;:21;:::i;:::-;17314:30;;;:::i;17537:154::-;17599:6;17639:42;15861:2;15805;17639:4;;:42;:::i;:::-;17632:50;;;:::i;:::-;17625:58;;;17537:154;-1:-1:-1;;;17537:154:0:o;132018:141::-;132082:16;132118:33;132130:21;-1:-1:-1;;;;;132118:33:0;;;:::i;138273:472::-;138411:24;-1:-1:-1;;;;;138452:19:0;;138448:46;;138487:6;138473:21;;138448:46;138592:21;138598:3;138603:9;138592:5;:21::i;:::-;-1:-1:-1;138728:9:0;;138273:472;-1:-1:-1;;138273:472:0:o;17858:132::-;17922:12;17954:28;:4;15861:2;17954:4;;:28;:::i;:::-;17947:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;17947:35:0;;17858:132;-1:-1:-1;;;;;;17858:132:0:o;13141:291::-;13330:17;13384:6;13392:7;13401:9;13412:11;13367:57;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;13360:64;;13141:291;;;;;;:::o;63672:1135::-;-1:-1:-1;;;;;63762:18:0;;63758:552;;63916:5;63900:12;;:21;;;;;;;:::i;:::-;;;;-1:-1:-1;63758:552:0;;-1:-1:-1;63758:552:0;;-1:-1:-1;;;;;63976:15:0;;63954:19;63976:15;;;:9;:15;;;;;;64010:19;;;64006:117;;;64057:50;;-1:-1:-1;;;64057:50:0;;-1:-1:-1;;;;;24810:32:1;;64057:50:0;;;24792:51:1;24859:18;;;24852:34;;;24902:18;;;24895:34;;;24765:18;;64057:50:0;24590:345:1;64006:117:0;-1:-1:-1;;;;;64246:15:0;;;;;;:9;:15;;;;;64264:19;;;;64246:37;;63758:552;-1:-1:-1;;;;;64326:16:0;;64322:435;;64492:12;:21;;;;;;;64322:435;;;-1:-1:-1;;;;;64708:13:0;;;;;;:9;:13;;;;;:22;;;;;;64322:435;64789:2;-1:-1:-1;;;;;64774:25:0;64783:4;-1:-1:-1;;;;;64774:25:0;;64793:5;64774:25;;;;6159::1;;6147:2;6132:18;;6013:177;64774:25:0;;;;;;;;63672:1135;;;:::o;132390:149::-;132455:15;132497:33;132509:21;132497:9;:33;:::i;16226:516::-;16424:18;;16364:17;;16424:22;;;16569:165;;16711:7;16720:13;16694:40;;;;;;;;32898:19:1;;;32973:3;32951:16;-1:-1:-1;;;;;;32947:51:1;32942:2;32933:12;;32926:73;33024:2;33015:12;;32743:290;16694:40:0;;;;;;;;;;;;;16569:165;;;16612:7;16621:13;16653:10;16666:11;16595:83;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;16569:165;16562:172;;16226:516;;;;;;:::o;65701:211::-;-1:-1:-1;;;;;65772:21:0;;65768:91;;65817:30;;-1:-1:-1;;;65817:30:0;;65844:1;65817:30;;;916:51:1;889:18;;65817:30:0;770:203:1;65768:91:0;65869:35;65877:7;65894:1;65898:5;65869:7;:35::i;96884:194::-;96950:17;96997:10;96984:9;:23;96980:62;;97016:26;;-1:-1:-1;;;97016:26:0;;97032:9;97016:26;;;6159:25:1;6132:18;;97016:26:0;6013:177:1;96980:62:0;-1:-1:-1;97060:10:0;96884:194::o;97464:417::-;97619:15;97637:8;-1:-1:-1;;;;;97637:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;97619:36;-1:-1:-1;;;;;;97670:21:0;;97666:54;;97700:20;;-1:-1:-1;;;97700:20:0;;;;;;;;;;;97666:54;50907:53;;;97830:10;50907:53;;;34071:34:1;;;97850:8:0;-1:-1:-1;;;;;34141:15:1;;;34121:18;;;34114:43;34173:18;;;;34166:34;;;50907:53:0;;;;;;;;;;34006:18:1;;;;50907:53:0;;;;;;;;-1:-1:-1;;;;;50907:53:0;-1:-1:-1;;;50907:53:0;;;97797:76;;:32;;;97861:11;;50880:81;;97797:32;;-1:-1:-1;53633:33:0;97797:32;50907:53;53633:27;:33::i;:::-;53607:59;;53681:10;:17;53702:1;53681:22;;:57;;;;;53719:10;53708:30;;;;;;;;;;;;:::i;:::-;53707:31;53681:57;53677:137;;;53762:40;;-1:-1:-1;;;53762:40:0;;-1:-1:-1;;;;;934:32:1;;53762:40:0;;;916:51:1;889:18;;53762:40:0;770:203:1;35007:153:0;35082:12;35114:38;35136:6;35144:4;35150:1;35082:12;35740;35754:23;35781:6;-1:-1:-1;;;;;35781:11:0;35800:5;35807:4;35781:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35739:73;;;;35830:55;35857:6;35865:7;35874:10;37119:12;37149:7;37144:417;;37173:19;37181:10;37173:7;:19::i;:::-;37144:417;;;37401:17;;:22;:49;;;;-1:-1:-1;;;;;;37427:18:0;;;:23;37401:49;37397:121;;;37478:24;;-1:-1:-1;;;37478:24:0;;-1:-1:-1;;;;;934:32:1;;37478:24:0;;;916:51:1;889:18;;37478:24:0;770:203:1;37397:121:0;-1:-1:-1;37539:10:0;37532:17;;38121:528;38254:17;;:21;38250:392;;38486:10;38480:17;38543:15;38530:10;38526:2;38522:19;38515:44;38250:392;38613:17;;-1:-1:-1;;;38613:17:0;;;;;;;;;;;-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:271::-;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;:::-;522:2;501:15;-1:-1:-1;;497:29:1;488:39;;;;529:4;484:50;;269:271;-1:-1:-1;;269:271:1:o;545:220::-;694:2;683:9;676:21;657:4;714:45;755:2;744:9;740:18;732:6;714:45;:::i;978:131::-;-1:-1:-1;;;;;1053:31:1;;1043:42;;1033:70;;1099:1;1096;1089:12;1114:315;1182:6;1190;1243:2;1231:9;1222:7;1218:23;1214:32;1211:52;;;1259:1;1256;1249:12;1211:52;1298:9;1285:23;1317:31;1342:5;1317:31;:::i;:::-;1367:5;1419:2;1404:18;;;;1391:32;;-1:-1:-1;;;1114:315:1:o;1626:158::-;1688:5;1733:3;1724:6;1719:3;1715:16;1711:26;1708:46;;;1750:1;1747;1740:12;1708:46;-1:-1:-1;1772:6:1;1626:158;-1:-1:-1;1626:158:1:o;1789:360::-;1877:6;1930:2;1918:9;1909:7;1905:23;1901:32;1898:52;;;1946:1;1943;1936:12;1898:52;1986:9;1973:23;-1:-1:-1;;;;;2011:6:1;2008:30;2005:50;;;2051:1;2048;2041:12;2005:50;2074:69;2135:7;2126:6;2115:9;2111:22;2074:69;:::i;2308:1336::-;2228:12;;2216:25;;2290:4;2279:16;;;2273:23;2257:14;;;2250:47;2674:4;2722:3;2707:19;;2799:2;2837:3;2832:2;2821:9;2817:18;2810:31;2861:6;2896;2890:13;2927:6;2919;2912:22;2965:3;2954:9;2950:19;2943:26;;3028:3;3018:6;3015:1;3011:14;3000:9;2996:30;2992:40;2978:54;;3051:4;3090;3082:6;3078:17;3113:1;3123:429;3137:6;3134:1;3131:13;3123:429;;;3202:22;;;-1:-1:-1;;3198:37:1;3186:50;;3259:13;;3300:9;;3285:25;;3349:11;;3343:18;3381:15;;;3374:27;;;3424:48;3456:15;;;3343:18;3424:48;:::i;:::-;3414:58;-1:-1:-1;;3530:12:1;;;;3495:15;;;;3159:1;3152:9;3123:429;;;-1:-1:-1;;2228:12:1;;3634:2;3619:18;;2216:25;-1:-1:-1;;;2290:4:1;2279:16;;2273:23;2257:14;;;2250:47;-1:-1:-1;3569:6:1;-1:-1:-1;3584:54:1;2154:149;3649:154;3708:5;3753:2;3744:6;3739:3;3735:16;3731:25;3728:45;;;3769:1;3766;3759:12;3808:347;3859:8;3869:6;3923:3;3916:4;3908:6;3904:17;3900:27;3890:55;;3941:1;3938;3931:12;3890:55;-1:-1:-1;3964:20:1;;-1:-1:-1;;;;;3996:30:1;;3993:50;;;4039:1;4036;4029:12;3993:50;4076:4;4068:6;4064:17;4052:29;;4128:3;4121:4;4112:6;4104;4100:19;4096:30;4093:39;4090:59;;;4145:1;4142;4135:12;4090:59;3808:347;;;;;:::o;4160:1050::-;4305:6;4313;4321;4329;4337;4345;4353;4406:3;4394:9;4385:7;4381:23;4377:33;4374:53;;;4423:1;4420;4413:12;4374:53;4446;4491:7;4480:9;4446:53;:::i;:::-;4436:63;;4546:2;4535:9;4531:18;4518:32;4508:42;;4601:3;4590:9;4586:19;4573:33;-1:-1:-1;;;;;4666:2:1;4658:6;4655:14;4652:34;;;4682:1;4679;4672:12;4652:34;4721:58;4771:7;4762:6;4751:9;4747:22;4721:58;:::i;:::-;4798:8;;-1:-1:-1;4695:84:1;-1:-1:-1;4883:3:1;4868:19;;4855:33;;-1:-1:-1;4897:31:1;4855:33;4897:31;:::i;:::-;4947:5;;-1:-1:-1;5005:3:1;4990:19;;4977:33;;5022:16;;;5019:36;;;5051:1;5048;5041:12;5019:36;;5090:60;5142:7;5131:8;5120:9;5116:24;5090:60;:::i;:::-;4160:1050;;;;-1:-1:-1;4160:1050:1;;-1:-1:-1;4160:1050:1;;;;5064:86;;-1:-1:-1;;;4160:1050:1:o;6195:456::-;6272:6;6280;6288;6341:2;6329:9;6320:7;6316:23;6312:32;6309:52;;;6357:1;6354;6347:12;6309:52;6396:9;6383:23;6415:31;6440:5;6415:31;:::i;:::-;6465:5;-1:-1:-1;6522:2:1;6507:18;;6494:32;6535:33;6494:32;6535:33;:::i;:::-;6195:456;;6587:7;;-1:-1:-1;;;6641:2:1;6626:18;;;;6613:32;;6195:456::o;6845:163::-;6912:20;;6972:10;6961:22;;6951:33;;6941:61;;6998:1;6995;6988:12;6941:61;6845:163;;;:::o;7013:252::-;7080:6;7088;7141:2;7129:9;7120:7;7116:23;7112:32;7109:52;;;7157:1;7154;7147:12;7109:52;7180:28;7198:9;7180:28;:::i;7270:118::-;7356:5;7349:13;7342:21;7335:5;7332:32;7322:60;;7378:1;7375;7368:12;7393:489;7487:6;7495;7548:2;7536:9;7527:7;7523:23;7519:32;7516:52;;;7564:1;7561;7554:12;7516:52;7604:9;7591:23;-1:-1:-1;;;;;7629:6:1;7626:30;7623:50;;;7669:1;7666;7659:12;7623:50;7692:69;7753:7;7744:6;7733:9;7729:22;7692:69;:::i;:::-;7682:79;;;7811:2;7800:9;7796:18;7783:32;7824:28;7846:5;7824:28;:::i;:::-;7871:5;7861:15;;;7393:489;;;;;:::o;7887:261::-;2228:12;;2216:25;;2290:4;2279:16;;;2273:23;2257:14;;;2250:47;8085:2;8070:18;;8097:45;2154:149;8153:159;8220:20;;8280:6;8269:18;;8259:29;;8249:57;;8302:1;8299;8292:12;8317:256;8383:6;8391;8444:2;8432:9;8423:7;8419:23;8415:32;8412:52;;;8460:1;8457;8450:12;8412:52;8483:28;8501:9;8483:28;:::i;:::-;8473:38;;8530:37;8563:2;8552:9;8548:18;8530:37;:::i;:::-;8520:47;;8317:256;;;;;:::o;9040:247::-;9099:6;9152:2;9140:9;9131:7;9127:23;9123:32;9120:52;;;9168:1;9165;9158:12;9120:52;9207:9;9194:23;9226:31;9251:5;9226:31;:::i;9497:672::-;9613:6;9621;9629;9637;9690:3;9678:9;9669:7;9665:23;9661:33;9658:53;;;9707:1;9704;9697:12;9658:53;9730;9775:7;9764:9;9730:53;:::i;:::-;9720:63;;9834:2;9823:9;9819:18;9806:32;-1:-1:-1;;;;;9853:6:1;9850:30;9847:50;;;9893:1;9890;9883:12;9847:50;9932:58;9982:7;9973:6;9962:9;9958:22;9932:58;:::i;:::-;10009:8;;-1:-1:-1;9906:84:1;-1:-1:-1;;10094:3:1;10079:19;;10066:33;10108:31;10066:33;10108:31;:::i;:::-;9497:672;;;;-1:-1:-1;9497:672:1;;-1:-1:-1;;9497:672:1:o;10174:395::-;10265:8;10275:6;10329:3;10322:4;10314:6;10310:17;10306:27;10296:55;;10347:1;10344;10337:12;10296:55;-1:-1:-1;10370:20:1;;-1:-1:-1;;;;;10402:30:1;;10399:50;;;10445:1;10442;10435:12;10399:50;10482:4;10474:6;10470:17;10458:29;;10542:3;10535:4;10525:6;10522:1;10518:14;10510:6;10506:27;10502:38;10499:47;10496:67;;;10559:1;10556;10549:12;10574:503;10698:6;10706;10759:2;10747:9;10738:7;10734:23;10730:32;10727:52;;;10775:1;10772;10765:12;10727:52;10815:9;10802:23;-1:-1:-1;;;;;10840:6:1;10837:30;10834:50;;;10880:1;10877;10870:12;10834:50;10919:98;11009:7;11000:6;10989:9;10985:22;10919:98;:::i;:::-;11036:8;;10893:124;;-1:-1:-1;10574:503:1;-1:-1:-1;;;;10574:503:1:o;11082:184::-;11140:6;11193:2;11181:9;11172:7;11168:23;11164:32;11161:52;;;11209:1;11206;11199:12;11161:52;11232:28;11250:9;11232:28;:::i;11453:553::-;11539:6;11547;11555;11563;11616:2;11604:9;11595:7;11591:23;11587:32;11584:52;;;11632:1;11629;11622:12;11584:52;11655:28;11673:9;11655:28;:::i;:::-;11645:38;;11702:37;11735:2;11724:9;11720:18;11702:37;:::i;:::-;11692:47;;11790:2;11779:9;11775:18;11762:32;-1:-1:-1;;;;;11809:6:1;11806:30;11803:50;;;11849:1;11846;11839:12;11803:50;11888:58;11938:7;11929:6;11918:9;11914:22;11888:58;:::i;:::-;11453:553;;;;-1:-1:-1;11965:8:1;-1:-1:-1;;;;11453:553:1:o;12514:659::-;12654:6;12662;12670;12714:9;12705:7;12701:23;12744:3;12740:2;12736:12;12733:32;;;12761:1;12758;12751:12;12733:32;12801:9;12788:23;-1:-1:-1;;;;;12826:6:1;12823:30;12820:50;;;12866:1;12863;12856:12;12820:50;12889:69;12950:7;12941:6;12930:9;12926:22;12889:69;:::i;:::-;12879:79;-1:-1:-1;;12992:2:1;-1:-1:-1;;12974:16:1;;12970:25;12967:45;;;13008:1;13005;12998:12;12967:45;;13046:2;13035:9;13031:18;13021:28;;13099:2;13088:9;13084:18;13071:32;13112:31;13137:5;13112:31;:::i;:::-;13162:5;13152:15;;;12514:659;;;;;:::o;13178:617::-;13426:4;13468:3;13457:9;13453:19;13445:27;;13505:6;13499:13;13488:9;13481:32;-1:-1:-1;;;;;13573:4:1;13565:6;13561:17;13555:24;13551:49;13544:4;13533:9;13529:20;13522:79;13648:4;13640:6;13636:17;13630:24;13663:62;13719:4;13708:9;13704:20;13690:12;2228;;2216:25;;2290:4;2279:16;;;2273:23;2257:14;;2250:47;2154:149;13663:62;-1:-1:-1;2228:12:1;;13784:3;13769:19;;2216:25;2290:4;2279:16;;2273:23;2257:14;;;2250:47;13734:55;2154:149;13800:388;13868:6;13876;13929:2;13917:9;13908:7;13904:23;13900:32;13897:52;;;13945:1;13942;13935:12;13897:52;13984:9;13971:23;14003:31;14028:5;14003:31;:::i;:::-;14053:5;-1:-1:-1;14110:2:1;14095:18;;14082:32;14123:33;14082:32;14123:33;:::i;14193:238::-;14280:6;14333:2;14321:9;14312:7;14308:23;14304:32;14301:52;;;14349:1;14346;14339:12;14301:52;14372:53;14417:7;14406:9;14372:53;:::i;14436:380::-;14515:1;14511:12;;;;14558;;;14579:61;;14633:4;14625:6;14621:17;14611:27;;14579:61;14686:2;14678:6;14675:14;14655:18;14652:38;14649:161;;14732:10;14727:3;14723:20;14720:1;14713:31;14767:4;14764:1;14757:15;14795:4;14792:1;14785:15;14821:127;14882:10;14877:3;14873:20;14870:1;14863:31;14913:4;14910:1;14903:15;14937:4;14934:1;14927:15;15221:253;15293:2;15287:9;15335:4;15323:17;;-1:-1:-1;;;;;15355:34:1;;15391:22;;;15352:62;15349:88;;;15417:18;;:::i;:::-;15453:2;15446:22;15221:253;:::o;15479:251::-;15551:2;15545:9;;;15581:15;;-1:-1:-1;;;;;15611:34:1;;15647:22;;;15608:62;15605:88;;;15673:18;;:::i;15735:275::-;15806:2;15800:9;15871:2;15852:13;;-1:-1:-1;;15848:27:1;15836:40;;-1:-1:-1;;;;;15891:34:1;;15927:22;;;15888:62;15885:88;;;15953:18;;:::i;:::-;15989:2;15982:22;15735:275;;-1:-1:-1;15735:275:1:o;16015:186::-;16063:4;-1:-1:-1;;;;;16088:6:1;16085:30;16082:56;;;16118:18;;:::i;:::-;-1:-1:-1;16184:2:1;16163:15;-1:-1:-1;;16159:29:1;16190:4;16155:40;;16015:186::o;16206:2115::-;16396:9;-1:-1:-1;;;;;16471:2:1;16463:6;16460:14;16457:40;;;16477:18;;:::i;:::-;16523:6;16520:1;16516:14;16549:4;16573:28;16597:2;16593;16589:11;16573:28;:::i;:::-;16635:19;;;16705:14;;;;16670:12;;;;16742:14;16731:26;;16728:46;;;16770:1;16767;16760:12;16728:46;16794:5;16808:1480;16824:6;16819:3;16816:15;16808:1480;;;16910:3;16897:17;16946:2;16933:11;16930:19;16927:109;;;16990:1;17019:2;17015;17008:14;16927:109;17059:23;;17127:4;17106:14;17102:23;;;17098:34;17095:124;;;17173:1;17202:2;17198;17191:14;17095:124;17247:22;;:::i;:::-;17298:21;17316:2;17298:21;:::i;:::-;17289:7;17282:38;17358:30;17384:2;17380;17376:11;17358:30;:::i;:::-;17353:2;17344:7;17340:16;17333:56;17412:2;17462;17458;17454:11;17441:25;17493:2;17485:6;17482:14;17479:104;;;17537:1;17566:2;17562;17555:14;17479:104;17606:15;;;;;17663:14;17656:4;17648:13;;17644:34;17634:135;;17721:1;17751:3;17746;17739:16;17634:135;17806:2;17793:16;17835:49;17851:32;17879:3;17851:32;:::i;:::-;17835:49;:::i;:::-;17911:3;17904:5;17897:18;17957:14;17952:2;17946:3;17942:2;17938:12;17934:21;17931:41;17928:134;;;18014:1;18044:3;18039;18032:16;17928:134;18117:3;18112:2;18108;18104:11;18099:2;18092:5;18088:14;18075:46;18167:1;18145:15;;;18141:24;;18134:35;;;;18189:16;;;18182:31;18226:20;;-1:-1:-1;18266:12:1;;;;16841;;16808:1480;;;-1:-1:-1;18310:5:1;16206:2115;-1:-1:-1;;;;;;;16206:2115:1:o;18326:331::-;18431:9;18442;18484:8;18472:10;18469:24;18466:44;;;18506:1;18503;18496:12;18466:44;18535:6;18525:8;18522:20;18519:40;;;18555:1;18552;18545:12;18519:40;-1:-1:-1;;18581:23:1;;;18626:25;;;;;-1:-1:-1;18326:331:1:o;18662:476::-;18853:3;18891:6;18885:13;18907:66;18966:6;18961:3;18954:4;18946:6;18942:17;18907:66;:::i;:::-;18995:16;;19048:6;19040;18995:16;19020:35;19112:1;19074:18;;19101:13;;;-1:-1:-1;19074:18:1;;18662:476;-1:-1:-1;;;18662:476:1:o;19143:266::-;19231:6;19226:3;19219:19;19283:6;19276:5;19269:4;19264:3;19260:14;19247:43;-1:-1:-1;19335:1:1;19310:16;;;19328:4;19306:27;;;19299:38;;;;19391:2;19370:15;;;-1:-1:-1;;19366:29:1;19357:39;;;19353:50;;19143:266::o;19414:244::-;19571:2;19560:9;19553:21;19534:4;19591:61;19648:2;19637:9;19633:18;19625:6;19617;19591:61;:::i;19663:127::-;19724:10;19719:3;19715:20;19712:1;19705:31;19755:4;19752:1;19745:15;19779:4;19776:1;19769:15;19795:331;19894:4;19952:11;19939:25;20046:3;20042:8;20031;20015:14;20011:29;20007:44;19987:18;19983:69;19973:97;;20066:1;20063;20056:12;19973:97;20087:33;;;;;19795:331;-1:-1:-1;;19795:331:1:o;20131:521::-;20208:4;20214:6;20274:11;20261:25;20368:2;20364:7;20353:8;20337:14;20333:29;20329:43;20309:18;20305:68;20295:96;;20387:1;20384;20377:12;20295:96;20414:33;;20466:20;;;-1:-1:-1;;;;;;20498:30:1;;20495:50;;;20541:1;20538;20531:12;20495:50;20574:4;20562:17;;-1:-1:-1;20605:14:1;20601:27;;;20591:38;;20588:58;;;20642:1;20639;20632:12;20657:129;-1:-1:-1;;;;;20735:5:1;20731:30;20724:5;20721:41;20711:69;;20776:1;20773;20766:12;20791:996;21173:10;21146:25;21164:6;21146:25;:::i;:::-;21142:42;21131:9;21124:61;21248:4;21240:6;21236:17;21223:31;21216:4;21205:9;21201:20;21194:61;21105:4;21302;21294:6;21290:17;21277:31;21317:30;21341:5;21317:30;:::i;:::-;-1:-1:-1;;;;;21389:5:1;21385:30;21378:4;21367:9;21363:20;21356:60;;21452:6;21447:2;21436:9;21432:18;21425:34;21496:3;21490;21479:9;21475:19;21468:32;21523:62;21580:3;21569:9;21565:19;21557:6;21549;21523:62;:::i;:::-;-1:-1:-1;;;;;21622:32:1;;21642:3;21601:19;;21594:61;21692:22;;;21686:3;21671:19;;21664:51;21732:49;21696:6;21766;21758;21732:49;:::i;:::-;21724:57;20791:996;-1:-1:-1;;;;;;;;;;20791:996:1:o;21792:647::-;21871:6;21924:2;21912:9;21903:7;21899:23;21895:32;21892:52;;;21940:1;21937;21930:12;21892:52;21973:9;21967:16;-1:-1:-1;;;;;21998:6:1;21995:30;21992:50;;;22038:1;22035;22028:12;21992:50;22061:22;;22114:4;22106:13;;22102:27;-1:-1:-1;22092:55:1;;22143:1;22140;22133:12;22092:55;22172:2;22166:9;22197:48;22213:31;22241:2;22213:31;:::i;22197:48::-;22268:2;22261:5;22254:17;22308:7;22303:2;22298;22294;22290:11;22286:20;22283:33;22280:53;;;22329:1;22326;22319:12;22280:53;22342:67;22406:2;22401;22394:5;22390:14;22385:2;22381;22377:11;22342:67;:::i;22444:350::-;22535:6;22588:2;22576:9;22567:7;22563:23;22559:32;22556:52;;;22604:1;22601;22594:12;22556:52;22630:22;;:::i;:::-;22688:9;22675:23;22668:5;22661:38;22759:2;22748:9;22744:18;22731:32;22726:2;22719:5;22715:14;22708:56;22783:5;22773:15;;;22444:350;;;;:::o;23588:245::-;23646:6;23699:2;23687:9;23678:7;23674:23;23670:32;23667:52;;;23715:1;23712;23705:12;23667:52;23754:9;23741:23;23773:30;23797:5;23773:30;:::i;23838:479::-;24105:1;24101;24096:3;24092:11;24088:19;24080:6;24076:32;24065:9;24058:51;24145:6;24140:2;24129:9;24125:18;24118:34;24200:6;24192;24188:19;24183:2;24172:9;24168:18;24161:47;24244:3;24239:2;24228:9;24224:18;24217:31;24039:4;24265:46;24306:3;24295:9;24291:19;24283:6;24265:46;:::i;24940:379::-;25133:2;25122:9;25115:21;25096:4;25159:45;25200:2;25189:9;25185:18;25177:6;25159:45;:::i;:::-;25252:9;25244:6;25240:22;25235:2;25224:9;25220:18;25213:50;25280:33;25306:6;25298;25280:33;:::i;25324:245::-;25391:6;25444:2;25432:9;25423:7;25419:23;25415:32;25412:52;;;25460:1;25457;25450:12;25412:52;25492:9;25486:16;25511:28;25533:5;25511:28;:::i;25574:895::-;25801:2;25790:9;25783:21;25859:10;25850:6;25844:13;25840:30;25835:2;25824:9;25820:18;25813:58;25925:4;25917:6;25913:17;25907:24;25902:2;25891:9;25887:18;25880:52;25764:4;25979:2;25971:6;25967:15;25961:22;26020:4;26014:3;26003:9;25999:19;25992:33;26048:52;26095:3;26084:9;26080:19;26066:12;26048:52;:::i;:::-;26034:66;;26149:2;26141:6;26137:15;26131:22;26223:2;26219:7;26207:9;26199:6;26195:22;26191:36;26184:4;26173:9;26169:20;26162:66;26251:41;26285:6;26269:14;26251:41;:::i;:::-;26361:3;26349:16;;;;26343:23;26336:31;26329:39;26323:3;26308:19;;26301:68;-1:-1:-1;;;;;;;;26430:32:1;;;;26423:4;26408:20;;;26401:62;26237:55;25574:895::o;26474:284::-;26544:5;26592:4;26580:9;26575:3;26571:19;26567:30;26564:50;;;26610:1;26607;26600:12;26564:50;26632:22;;:::i;:::-;26623:31;;26683:9;26677:16;26670:5;26663:31;26747:2;26736:9;26732:18;26726:25;26721:2;26714:5;26710:14;26703:49;26474:284;;;;:::o;26763:261::-;26865:6;26918:2;26906:9;26897:7;26893:23;26889:32;26886:52;;;26934:1;26931;26924:12;26886:52;26957:61;27010:7;26999:9;26957:61;:::i;27154:542::-;27255:2;27250:3;27247:11;27244:446;;;27291:1;27315:5;27312:1;27305:16;27359:4;27356:1;27346:18;27429:2;27417:10;27413:19;27410:1;27406:27;27400:4;27396:38;27465:4;27453:10;27450:20;27447:47;;;-1:-1:-1;27488:4:1;27447:47;27543:2;27538:3;27534:12;27531:1;27527:20;27521:4;27517:31;27507:41;;27598:82;27616:2;27609:5;27606:13;27598:82;;;27661:17;;;27642:1;27631:13;27598:82;;;27602:3;;;27154:542;;;:::o;27872:1341::-;27996:3;27990:10;-1:-1:-1;;;;;28015:6:1;28012:30;28009:56;;;28045:18;;:::i;:::-;28074:96;28163:6;28123:38;28155:4;28149:11;28123:38;:::i;:::-;28117:4;28074:96;:::i;:::-;28225:4;;28282:2;28271:14;;28299:1;28294:662;;;;29000:1;29017:6;29014:89;;;-1:-1:-1;29069:19:1;;;29063:26;29014:89;-1:-1:-1;;27829:1:1;27825:11;;;27821:24;27817:29;27807:40;27853:1;27849:11;;;27804:57;29116:81;;28264:943;;28294:662;27101:1;27094:14;;;27138:4;27125:18;;-1:-1:-1;;28330:20:1;;;28447:236;28461:7;28458:1;28455:14;28447:236;;;28550:19;;;28544:26;28529:42;;28642:27;;;;28610:1;28598:14;;;;28477:19;;28447:236;;;28451:3;28711:6;28702:7;28699:19;28696:201;;;28772:19;;;28766:26;-1:-1:-1;;28855:1:1;28851:14;;;28867:3;28847:24;28843:37;28839:42;28824:58;28809:74;;28696:201;-1:-1:-1;;;;;28943:1:1;28927:14;;;28923:22;28910:36;;-1:-1:-1;27872:1341:1:o;29218:1162::-;29432:4;29461:2;29501;29490:9;29486:18;29531:2;29520:9;29513:21;29554:6;29589;29583:13;29620:6;29612;29605:22;29646:2;29636:12;;29679:2;29668:9;29664:18;29657:25;;29741:2;29731:6;29728:1;29724:14;29713:9;29709:30;29705:39;29779:2;29771:6;29767:15;29800:1;29810:541;29824:6;29821:1;29818:13;29810:541;;;29889:22;;;-1:-1:-1;;29885:36:1;29873:49;;29945:13;;30017:9;;30028:10;30013:26;29998:42;;30087:11;;;30081:18;30101:6;30077:31;30060:15;;;30053:56;30148:11;;30142:18;29981:4;30180:15;;;30173:27;;;30223:48;30255:15;;;30142:18;30223:48;:::i;:::-;30329:12;;;;30213:58;-1:-1:-1;;;30294:15:1;;;;29846:1;29839:9;29810:541;;;-1:-1:-1;30368:6:1;;29218:1162;-1:-1:-1;;;;;;;;29218:1162:1:o;30385:527::-;30491:6;30544:3;30532:9;30523:7;30519:23;30515:33;30512:53;;;30561:1;30558;30551:12;30512:53;30587:22;;:::i;:::-;30638:9;30632:16;30625:5;30618:31;30694:2;30683:9;30679:18;30673:25;30707:32;30731:7;30707:32;:::i;:::-;30766:2;30755:14;;30748:31;30811:70;30873:7;30868:2;30853:18;;30811:70;:::i;:::-;30806:2;30795:14;;30788:94;30799:5;30385:527;-1:-1:-1;;;30385:527:1:o;30917:127::-;30978:10;30973:3;30969:20;30966:1;30959:31;31009:4;31006:1;30999:15;31033:4;31030:1;31023:15;31049:217;31089:1;31115;31105:132;;31159:10;31154:3;31150:20;31147:1;31140:31;31194:4;31191:1;31184:15;31222:4;31219:1;31212:15;31105:132;-1:-1:-1;31251:9:1;;31049:217::o;31271:168::-;31344:9;;;31375;;31392:15;;;31386:22;;31372:37;31362:71;;31413:18;;:::i;31444:255::-;31564:19;;31603:2;31595:11;;31592:101;;;-1:-1:-1;;31664:2:1;31660:12;;;31657:1;31653:20;31649:33;31638:45;31444:255;;;;:::o;31704:331::-;-1:-1:-1;;;;;;31824:19:1;;31908:11;;;;31939:1;31931:10;;31928:101;;;32016:2;32010;32003:3;32000:1;31996:11;31993:1;31989:19;31985:28;31981:2;31977:37;31973:46;31964:55;;31928:101;;;31704:331;;;;:::o;32040:568::-;-1:-1:-1;;;;;32305:3:1;32301:28;32292:6;32287:3;32283:16;32279:51;32274:3;32267:64;32391:10;32386:3;32382:20;32373:6;32368:3;32364:16;32360:43;32356:1;32351:3;32347:11;32340:64;32434:6;32429:2;32424:3;32420:12;32413:28;32249:3;32470:6;32464:13;32486:75;32554:6;32549:2;32544:3;32540:12;32533:4;32525:6;32521:17;32486:75;:::i;:::-;32581:16;;;;32599:2;32577:25;;32040:568;-1:-1:-1;;;;;32040:568:1:o;32613:125::-;32678:9;;;32699:10;;;32696:36;;;32712:18;;:::i;33038:532::-;33279:6;33274:3;33267:19;-1:-1:-1;;;;;33342:3:1;33338:28;33329:6;33324:3;33320:16;33316:51;33311:2;33306:3;33302:12;33295:73;33398:6;33393:2;33388:3;33384:12;33377:28;33249:3;33434:6;33428:13;33450:73;33516:6;33511:2;33506:3;33502:12;33497:2;33489:6;33485:15;33450:73;:::i;:::-;33543:16;;;;33561:2;33539:25;;33038:532;-1:-1:-1;;;;;33038:532:1:o;33575:251::-;33645:6;33698:2;33686:9;33677:7;33673:23;33669:32;33666:52;;;33714:1;33711;33704:12;33666:52;33746:9;33740:16;33765:31;33790:5;33765:31;:::i;34211:287::-;34340:3;34378:6;34372:13;34394:66;34453:6;34448:3;34441:4;34433:6;34429:17;34394:66;:::i

Swarm Source

ipfs://08dc4c88e3eddb94280e989401d6a6b099e5f5e5344b2c005823c5e07ae104da
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.