S Price: $0.496605 (+1.89%)
    /

    Token

    Paladin Token (PAL)

    Overview

    Max Total Supply

    3,576,700.300991 PAL

    Holders

    487 ( -0.411%)
    Created with Highcharts 10.2.1

    Market

    Price

    $0.00 @ 0.000000 S

    Onchain Market Cap

    $987,226.51

    Circulating Supply Market Cap

    $5,110,881.00

    Other Info

    Token Contract (WITH 18 Decimals)

    Balance
    0.263226831687935253 PAL

    Value
    $0.07 ( ~0.140957099524327 S) [0.0000%]
    0x2179Dd91Dc7339d3A24C5fc490690677cDC46a65
    Loading...
    Loading
    Loading...
    Loading
    Loading...
    Loading

    OVERVIEW

    Empower tokenholders with vote markets. Paladin unlocks DeFi value through governance power and marketplaces.

    Contract Source Code Verified (Exact Match)

    Contract Name:
    PalOFT

    Compiler Version
    v0.8.28+commit.7893614a

    Optimization Enabled:
    Yes with 200 runs

    Other Settings:
    cancun EvmVersion
    File 1 of 40 : PalOFT.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    // SPDX-License-Identifier: GPL-3.0
    pragma solidity 0.8.28;
    import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
    import { OFT } from "@layerzerolabs/oft-evm/contracts/OFT.sol";
    /// @notice OFT is an ERC-20 token that extends the OFTCore contract.
    contract PalOFT is OFT {
    constructor(
    string memory _name,
    string memory _symbol,
    address _lzEndpoint,
    address _delegate
    ) OFT(_name, _symbol, _lzEndpoint, _delegate) Ownable(_delegate) {}
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 2 of 40 : Ownable.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
    pragma solidity ^0.8.20;
    import {Context} from "../utils/Context.sol";
    /**
    * @dev Contract module which provides a basic access control mechanism, where
    * there is an account (an owner) that can be granted exclusive access to
    * specific functions.
    *
    * 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);
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 3 of 40 : OFT.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.20;
    import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
    import { IOFT, OFTCore } from "./OFTCore.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) {}
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 4 of 40 : Context.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
    pragma solidity ^0.8.20;
    /**
    * @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;
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 5 of 40 : ERC20.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v5.2.0) (token/ERC20/ERC20.sol)
    pragma solidity ^0.8.20;
    import {IERC20} from "./IERC20.sol";
    import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
    import {Context} from "../../utils/Context.sol";
    import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";
    /**
    * @dev Implementation of the {IERC20} interface.
    *
    * This implementation is agnostic to the way tokens are created. This means
    * that a supply mechanism has to be added in a derived contract using {_mint}.
    *
    * TIP: For a detailed writeup see our guide
    * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
    * to implement supply mechanisms].
    *
    * The default value of {decimals} is 18. To change this, you should override
    * this function so it returns a different value.
    *
    * We have followed general OpenZeppelin Contracts guidelines: functions revert
    * instead returning `false` on failure. This behavior is nonetheless
    * conventional and does not conflict with the expectations of ERC-20
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 6 of 40 : OFTCore.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.20;
    import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
    import { OApp, Origin } from "@layerzerolabs/oapp-evm/contracts/oapp/OApp.sol";
    import { OAppOptionsType3 } from "@layerzerolabs/oapp-evm/contracts/oapp/libs/OAppOptionsType3.sol";
    import { IOAppMsgInspector } from "@layerzerolabs/oapp-evm/contracts/oapp/interfaces/IOAppMsgInspector.sol";
    import { OAppPreCrimeSimulator } from "@layerzerolabs/oapp-evm/contracts/precrime/OAppPreCrimeSimulator.sol";
    import { IOFT, SendParam, OFTLimit, OFTReceipt, OFTFeeDetail, MessagingReceipt, MessagingFee } from "./interfaces/IOFT.sol";
    import { OFTMsgCodec } from "./libs/OFTMsgCodec.sol";
    import { OFTComposeMsgCodec } from "./libs/OFTComposeMsgCodec.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
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 7 of 40 : IERC20.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)
    pragma solidity ^0.8.20;
    /**
    * @dev Interface of the ERC-20 standard as defined in the ERC.
    */
    interface IERC20 {
    /**
    * @dev Emitted when `value` tokens are moved from one account (`from`) to
    * another (`to`).
    *
    * Note that `value` may be zero.
    */
    event Transfer(address indexed from, address indexed to, uint256 value);
    /**
    * @dev Emitted when the allowance of a `spender` for an `owner` is set by
    * a call to {approve}. `value` is the new allowance.
    */
    event Approval(address indexed owner, address indexed spender, uint256 value);
    /**
    * @dev Returns the value of tokens in existence.
    */
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 8 of 40 : IERC20Metadata.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol)
    pragma solidity ^0.8.20;
    import {IERC20} from "../IERC20.sol";
    /**
    * @dev Interface for the optional metadata functions from the ERC-20 standard.
    */
    interface IERC20Metadata is IERC20 {
    /**
    * @dev Returns the name of the token.
    */
    function name() external view returns (string memory);
    /**
    * @dev Returns the symbol of the token.
    */
    function symbol() external view returns (string memory);
    /**
    * @dev Returns the decimals places of the token.
    */
    function decimals() external view returns (uint8);
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 9 of 40 : draft-IERC6093.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol)
    pragma solidity ^0.8.20;
    /**
    * @dev Standard ERC-20 Errors
    * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.
    */
    interface IERC20Errors {
    /**
    * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
    * @param sender Address whose tokens are being transferred.
    * @param balance Current balance for the interacting account.
    * @param needed Minimum amount required to perform a transfer.
    */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
    /**
    * @dev Indicates a failure with the token `sender`. Used in transfers.
    * @param sender Address whose tokens are being transferred.
    */
    error ERC20InvalidSender(address sender);
    /**
    * @dev Indicates a failure with the token `receiver`. Used in transfers.
    * @param receiver Address to which tokens are being transferred.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 10 of 40 : OApp.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.20;
    // @dev Import the 'MessagingFee' and 'MessagingReceipt' so it's exposed to OApp implementers
    // solhint-disable-next-line no-unused-import
    import { OAppSender, MessagingFee, MessagingReceipt } from "./OAppSender.sol";
    // @dev Import the 'Origin' so it's exposed to OApp implementers
    // solhint-disable-next-line no-unused-import
    import { OAppReceiver, Origin } from "./OAppReceiver.sol";
    import { OAppCore } from "./OAppCore.sol";
    /**
    * @title OApp
    * @dev Abstract contract serving as the base for OApp implementation, combining OAppSender and OAppReceiver functionality.
    */
    abstract contract OApp is OAppSender, OAppReceiver {
    /**
    * @dev Constructor to initialize the OApp with the provided endpoint and owner.
    * @param _endpoint The address of the LOCAL LayerZero endpoint.
    * @param _delegate The delegate capable of making OApp configurations inside of the endpoint.
    */
    constructor(address _endpoint, address _delegate) OAppCore(_endpoint, _delegate) {}
    /**
    * @notice Retrieves the OApp version information.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 11 of 40 : OAppOptionsType3.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.20;
    import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
    import { IOAppOptionsType3, EnforcedOptionParam } from "../interfaces/IOAppOptionsType3.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().
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 12 of 40 : IOAppMsgInspector.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.20;
    /**
    * @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);
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 13 of 40 : OAppPreCrimeSimulator.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.20;
    import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
    import { IPreCrime } from "./interfaces/IPreCrime.sol";
    import { IOAppPreCrimeSimulator, InboundPacket, Origin } from "./interfaces/IOAppPreCrimeSimulator.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);
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 14 of 40 : IOFT.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.20;
    import { MessagingReceipt, MessagingFee } from "@layerzerolabs/oapp-evm/contracts/oapp/OAppSender.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.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 15 of 40 : OFTMsgCodec.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.20;
    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)
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 16 of 40 : OFTComposeMsgCodec.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.20;
    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);
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 17 of 40 : OAppSender.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.20;
    import { SafeERC20, IERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
    import { MessagingParams, MessagingFee, MessagingReceipt } from "@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol";
    import { OAppCore } from "./OAppCore.sol";
    /**
    * @title OAppSender
    * @dev Abstract contract implementing the OAppSender functionality for sending messages to a LayerZero endpoint.
    */
    abstract contract OAppSender is OAppCore {
    using SafeERC20 for IERC20;
    // Custom error messages
    error NotEnoughNative(uint256 msgValue);
    error LzTokenUnavailable();
    // @dev The version of the OAppSender implementation.
    // @dev Version is bumped when changes are made to this contract.
    uint64 internal constant SENDER_VERSION = 1;
    /**
    * @notice Retrieves the OApp version information.
    * @return senderVersion The version of the OAppSender.sol contract.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 18 of 40 : OAppReceiver.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.20;
    import { IOAppReceiver, Origin } from "./interfaces/IOAppReceiver.sol";
    import { OAppCore } from "./OAppCore.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.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 19 of 40 : OAppCore.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.20;
    import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
    import { IOAppCore, ILayerZeroEndpointV2 } from "./interfaces/IOAppCore.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 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) {
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 20 of 40 : IOAppOptionsType3.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.20;
    /**
    * @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.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 21 of 40 : IPreCrime.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.20;
    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(
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 22 of 40 : IOAppPreCrimeSimulator.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.20;
    // @dev Import the Origin so it's exposed to OAppPreCrimeSimulator implementers.
    // solhint-disable-next-line no-unused-import
    import { InboundPacket, Origin } from "../libs/Packet.sol";
    /**
    * @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.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 23 of 40 : SafeERC20.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v5.2.0) (token/ERC20/utils/SafeERC20.sol)
    pragma solidity ^0.8.20;
    import {IERC20} from "../IERC20.sol";
    import {IERC1363} from "../../../interfaces/IERC1363.sol";
    /**
    * @title SafeERC20
    * @dev Wrappers around ERC-20 operations that throw on failure (when the token
    * contract returns false). Tokens that return no value (and instead revert or
    * throw on failure) are also supported, non-reverting calls are assumed to be
    * successful.
    * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
    * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
    */
    library SafeERC20 {
    /**
    * @dev An operation with an ERC-20 token failed.
    */
    error SafeERC20FailedOperation(address token);
    /**
    * @dev Indicates a failed `decreaseAllowance` request.
    */
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 24 of 40 : ILayerZeroEndpointV2.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity >=0.8.0;
    import { IMessageLibManager } from "./IMessageLibManager.sol";
    import { IMessagingComposer } from "./IMessagingComposer.sol";
    import { IMessagingChannel } from "./IMessagingChannel.sol";
    import { IMessagingContext } from "./IMessagingContext.sol";
    struct MessagingParams {
    uint32 dstEid;
    bytes32 receiver;
    bytes message;
    bytes options;
    bool payInLzToken;
    }
    struct MessagingReceipt {
    bytes32 guid;
    uint64 nonce;
    MessagingFee fee;
    }
    struct MessagingFee {
    uint256 nativeFee;
    uint256 lzTokenFee;
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 25 of 40 : IOAppReceiver.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.20;
    import { ILayerZeroReceiver, Origin } from "@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroReceiver.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 calldata _origin,
    bytes calldata _message,
    address _sender
    ) external view returns (bool isSender);
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 26 of 40 : IOAppCore.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.20;
    import { ILayerZeroEndpointV2 } from "@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.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);
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 27 of 40 : Packet.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.20;
    import { Origin } from "@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol";
    import { PacketV1Codec } from "@layerzerolabs/lz-evm-protocol-v2/contracts/messagelib/libs/PacketV1Codec.sol";
    /**
    * @title InboundPacket
    * @dev Structure representing an inbound packet received by the contract.
    */
    struct InboundPacket {
    Origin origin; // Origin information of the packet.
    uint32 dstEid; // Destination endpointId of the packet.
    address receiver; // Receiver address for the packet.
    bytes32 guid; // Unique identifier of the packet.
    uint256 value; // msg.value of the packet.
    address executor; // Executor address for the packet.
    bytes message; // Message payload of the packet.
    bytes extraData; // Additional arbitrary data for the packet.
    }
    /**
    * @title PacketDecoder
    * @dev Library for decoding LayerZero packets.
    */
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 28 of 40 : IERC1363.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol)
    pragma solidity ^0.8.20;
    import {IERC20} from "./IERC20.sol";
    import {IERC165} from "./IERC165.sol";
    /**
    * @title IERC1363
    * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
    *
    * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
    * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
    */
    interface IERC1363 is IERC20, IERC165 {
    /*
    * Note: the ERC-165 identifier for this interface is 0xb0202a11.
    * 0xb0202a11 ===
    * bytes4(keccak256('transferAndCall(address,uint256)')) ^
    * bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
    * bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
    * bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
    * bytes4(keccak256('approveAndCall(address,uint256)')) ^
    * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
    */
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 29 of 40 : IMessageLibManager.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity >=0.8.0;
    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;
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 30 of 40 : IMessagingComposer.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity >=0.8.0;
    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);
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 31 of 40 : IMessagingChannel.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity >=0.8.0;
    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(
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 32 of 40 : IMessagingContext.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    // SPDX-License-Identifier: MIT
    pragma solidity >=0.8.0;
    interface IMessagingContext {
    function isSendingMessage() external view returns (bool);
    function getSendContext() external view returns (uint32 dstEid, address sender);
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 33 of 40 : ILayerZeroReceiver.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    // SPDX-License-Identifier: MIT
    pragma solidity >=0.8.0;
    import { Origin } from "./ILayerZeroEndpointV2.sol";
    interface ILayerZeroReceiver {
    function allowInitializePath(Origin calldata _origin) external view returns (bool);
    function nextNonce(uint32 _eid, bytes32 _sender) external view returns (uint64);
    function lzReceive(
    Origin calldata _origin,
    bytes32 _guid,
    bytes calldata _message,
    address _executor,
    bytes calldata _extraData
    ) external payable;
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 34 of 40 : PacketV1Codec.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: LZBL-1.2
    pragma solidity ^0.8.20;
    import { Packet } from "../../interfaces/ISendLib.sol";
    import { AddressCast } from "../../libs/AddressCast.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;
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 35 of 40 : IERC20.sol
    1
    2
    3
    4
    5
    6
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)
    pragma solidity ^0.8.20;
    import {IERC20} from "../token/ERC20/IERC20.sol";
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 36 of 40 : IERC165.sol
    1
    2
    3
    4
    5
    6
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)
    pragma solidity ^0.8.20;
    import {IERC165} from "../utils/introspection/IERC165.sol";
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 37 of 40 : ISendLib.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity >=0.8.0;
    import { MessagingFee } from "./ILayerZeroEndpointV2.sol";
    import { IMessageLib } from "./IMessageLib.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 memory, bytes memory encodedPacket);
    function quote(
    Packet calldata _packet,
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 38 of 40 : AddressCast.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: LZBL-1.2
    pragma solidity ^0.8.20;
    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;
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 39 of 40 : IERC165.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)
    pragma solidity ^0.8.20;
    /**
    * @dev Interface of the ERC-165 standard, as defined in the
    * https://eips.ethereum.org/EIPS/eip-165[ERC].
    *
    * Implementers can declare support of contract interfaces, which can then be
    * queried by others ({ERC165Checker}).
    *
    * For an implementation, see {ERC165}.
    */
    interface IERC165 {
    /**
    * @dev Returns true if this contract implements the interface defined by
    * `interfaceId`. See the corresponding
    * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
    * to learn more about how these ids are created.
    *
    * This function call must use less than 30 000 gas.
    */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 40 of 40 : IMessageLib.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity >=0.8.0;
    import { IERC165 } from "@openzeppelin/contracts/utils/introspection/IERC165.sol";
    import { SetConfigParam } from "./IMessageLibManager.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);
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Settings
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    {
    "remappings": [
    "@layerzerolabs/oft-evm/=lib/devtools/packages/oft-evm/",
    "@layerzerolabs/oapp-evm/=lib/devtools/packages/oapp-evm/",
    "@layerzerolabs/lz-evm-protocol-v2/=lib/layerzero-v2/packages/layerzero-v2/evm/protocol/",
    "@openzeppelin/=lib/openzeppelin-contracts/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "devtools/=lib/devtools/packages/toolbox-foundry/src/",
    "ds-test/=lib/layerzero-v2/lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
    "layerzero-v2/=lib/layerzero-v2/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/"
    ],
    "optimizer": {
    "enabled": true,
    "runs": 200
    },
    "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
    },
    "outputSelection": {
    "*": {
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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

    60c08060405234610465575f90612eed803803809161001e828561047c565b83398101916080828403126104655781516001600160401b03811161046557836100499184016104b3565b602083015190936001600160401b038211610465576100699184016104b3565b9161007660408201610508565b906001600160a01b039061008c90606001610508565b168015610469575f80546001600160a01b0319811683178255604051939183916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a36001600160a01b03166080819052803b15610465576024835f8193819563ca5eb5e160e01b845260048401525af1801561045a57610447575b5064e8d4a5100060a05282516001600160401b03811161043357600854600181811c91168015610429575b602082101461041557601f81116103b2575b506020601f821160011461035057829394829392610345575b50508160011b915f199060031b1c1916176008555b8151906001600160401b03821161033157600954600181811c91168015610327575b602082101461031357601f81116102b0575b50602090601f831160011461025057919283610245575b50508160011b915f199060031b1c1916176009555b6040516129d0908161051d8239608051818181610785015281816108a501528181610c9801528181610f700152818161179b015281816127ed015261288c015260a051818181610be80152818161122301528181611dc001528181611fbb01526124ed0152f35b015190505f806101c9565b90601f1983169360098352818320925b85811061029857508360019510610280575b505050811b016009556101de565b01515f1960f88460031b161c191690555f8080610272565b91926020600181928685015181550194019201610260565b600982527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af601f840160051c81019160208510610309575b601f0160051c01905b8181106102fe57506101b2565b8281556001016102f1565b90915081906102e8565b634e487b7160e01b82526022600452602482fd5b90607f16906101a0565b634e487b7160e01b81526041600452602490fd5b015190505f80610169565b6008835280832090601f198316845b81811061039a57509583600195969710610382575b505050811b0160085561017e565b01515f1960f88460031b161c191690555f8080610374565b9192602060018192868b01518155019401920161035f565b600883527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3601f830160051c8101916020841061040b575b601f0160051c01905b8181106104005750610150565b8381556001016103f3565b90915081906103ea565b634e487b7160e01b83526022600452602483fd5b90607f169061013e565b634e487b7160e01b82526041600452602482fd5b61045391505f9061047c565b5f5f610113565b6040513d5f823e3d90fd5b5f80fd5b631e4fbdf760e01b5f525f60045260245ffd5b601f909101601f19168101906001600160401b0382119082101761049f57604052565b634e487b7160e01b5f52604160045260245ffd5b81601f82011215610465578051906001600160401b03821161049f57604051926104e7601f8401601f19166020018561047c565b8284526020838301011161046557815f9260208093018386015e8301015290565b51906001600160a01b03821682036104655756fe60806040526004361015610011575f80fd5b5f3560e01c806306fdde03146102af578063095ea7b3146102aa5780630d35b415146102a5578063111ecdad146102a057806313137d651461029b578063134d4f2514610296578063156a0d0f1461029157806317442b701461028c57806318160ddd146102875780631f5e13341461028257806323b872dd1461027d578063313ce567146102785780633400288b146102735780633b6f743b1461026e57806352ae2879146101ec5780635535d461146102695780635a0dfe4d146102645780635e280f111461025f5780636fc1b31e1461025a57806370a0823114610255578063715018a6146102505780637d25a05e1461024b57806382413eac14610246578063857749b0146102415780638da5cb5b1461023c57806395d89b4114610237578063963efcaa146102325780639f68b9641461022d578063a9059cbb14610228578063b731ea0a14610223578063b98bd0701461021e578063bb0b6a5314610219578063bc70b35414610214578063bd815db01461020f578063c7c7f5b31461020a578063ca5eb5e114610205578063d045a0dc14610200578063d4243885146101fb578063dd62ed3e146101f6578063f2fde38b146101f1578063fc0c546a146101ec5763ff7bd03d146101e7575f80fd5b611999565b610d37565b611910565b6118b1565b611841565b611810565b611773565b611626565b611481565b61142d565b6113f4565b61130f565b611295565b611260565b611246565b61120c565b611167565b611140565b611125565b6110c7565b6110a1565b61104a565b61100f565b610f9f565b610f5b565b610f15565b610e9a565b610b84565b610af5565b610acc565b610a24565b610a09565b6109ec565b6109cb565b6109a5565b61098a565b610772565b61069f565b610550565b6103e5565b6102fa565b5f9103126102be57565b5f80fd5b805180835260209291819084018484015e5f828201840152601f01601f1916010190565b9060206102f79281815201906102c2565b90565b346102be575f3660031901126102be576040515f60085461031a81610d71565b80845290600181169081156103b05750600114610352575b61034e8361034281850382610e79565b604051918291826102e6565b0390f35b60085f9081527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3939250905b80821061039657509091508101602001610342610332565b91926001816020925483858801015201910190929161037e565b60ff191660208086019190915291151560051b840190910191506103429050610332565b6001600160a01b038116036102be57565b346102be5760403660031901126102be57600435610402816103d4565b602435331561048f576001600160a01b03821691821561047c576104428291335f52600660205260405f209060018060a01b03165f5260205260405f2090565b5560405190815233907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590602090a3602060405160018152f35b634a1406b160e11b5f525f60045260245ffd5b63e602df0560e01b5f525f60045260245ffd5b908160e09103126102be5790565b939291906104cc8560a081019260208091805184520151910152565b60a06040860152815180915260c0850190602060c08260051b8801019301915f905b82821061051457505050509060606105129294019060208091805184520151910152565b565b9091929360208061054260019360bf198c82030186526040838a5180518452015191818582015201906102c2565b9601920192019092916104ee565b346102be5760203660031901126102be576004356001600160401b0381116102be576105809036906004016104a2565b6105886119fc565b506105916119fc565b50604051637e062a3560e11b8152602081600481305afa90811561066d576004916020915f91610672575b506040516318160ddd60e01b815292839182906001600160a01b03165afa90811561066d575f9161063e575b506105f16119de565b905f8252602082015261034e610622610608611a5a565b93604081013561061c606083013592611aa0565b50611db7565b61062a6119de565b9182526020820152604051938493846104b0565b610660915060203d602011610666575b6106588183610e79565b810190611a34565b5f6105e8565b503d61064e565b611a29565b6106929150823d8411610698575b61068a8183610e79565b810190611a14565b5f6105bc565b503d610680565b346102be575f3660031901126102be576004546040516001600160a01b039091168152602090f35b60609060031901126102be57600490565b9181601f840112156102be578235916001600160401b0383116102be57602083818601950101116102be57565b90600319820160e081126102be576060136102be57600491606435916084356001600160401b0381116102be578261073f916004016106d8565b9290929160a43561074f816103d4565b9160c435906001600160401b0382116102be5761076e916004016106d8565b9091565b61077b36610705565b50919492915050337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316036109775781356107bd81610ae7565b6107c681611e09565b9060208401358092036109525750506107ee6107e285836124c1565b6001600160a01b031690565b936108146108046107ff83856124cd565b6124df565b61080d85611aa0565b5086612513565b9161081f8260281090565b610877575b50506108507fefed6d3500546b29533b128a29e3a94d70788727f0507505ac12eaf2e578fd9c92611aa0565b6040805163ffffffff92909216825260208201929092526001600160a01b039490941693a3005b90826108a29261089c61088c60408801611e39565b9361089688611aa0565b92612588565b926125a4565b917f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316803b156102be57604051633e5ac80960e11b8152935f9185918290849082906108fb908b8d60048501611e43565b03925af190811561066d577fefed6d3500546b29533b128a29e3a94d70788727f0507505ac12eaf2e578fd9c9361085092610938575b5092610824565b806109465f61094c93610e79565b806102b4565b5f610931565b8061096163ffffffff92610ae7565b63309afaf360e21b5f521660045260245260445ffd5b6391ac5e4f60e01b5f523360045260245ffd5b346102be575f3660031901126102be57602060405160028152f35b346102be575f3660031901126102be576040805162b9270b60e21b815260016020820152f35b346102be575f3660031901126102be57604080516001815260026020820152f35b346102be575f3660031901126102be576020600754604051908152f35b346102be575f3660031901126102be57602060405160018152f35b346102be5760603660031901126102be57600435610a41816103d4565b602435610a4d816103d4565b6001600160a01b0382165f9081526006602090815260408083203384529091529020549160443591905f198410610a95575b610a899350611e6d565b60405160018152602090f35b828410610ab157610aac83610a8995033383612431565b610a7f565b8284637dc7a0d960e11b5f523360045260245260445260645ffd5b346102be575f3660031901126102be57602060405160128152f35b63ffffffff8116036102be57565b346102be5760403660031901126102be577f238399d427b947898edb290f5ff0f9109849b1c3ba196a42e35f00c50a54b98b600435610b3381610ae7565b60243590610b3f611f44565b63ffffffff81165f5260016020528160405f2055610b75604051928392836020909392919363ffffffff60408201951681520152565b0390a1005b801515036102be57565b346102be5760403660031901126102be576004356001600160401b0381116102be57610bb49036906004016104a2565b602435610bc081610b7a565b610bc86119fc565b50813591606081013590610c136040820135610be386610ae7565b610c0e7f0000000000000000000000000000000000000000000000000000000000000000809261248b565b6124a9565b91808310610d2157610c94604086610c7987610c2f8888611fa4565b90610c3985610ae7565b610c416119fc565b50610c4b85611e09565b610c62610c566119ed565b63ffffffff9097168752565b602086015285850152606084015215156080830152565b815180938192631bb8518b60e31b83523090600484016120ef565b03817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa801561066d5761034e915f91610cf2575b5060405191829182815181526020918201519181019190915260400190565b610d14915060403d604011610d1a575b610d0c8183610e79565b8101906120db565b82610cd3565b503d610d02565b826371c4efed60e01b5f5260045260245260445ffd5b346102be575f3660031901126102be576020604051308152f35b6024359061ffff821682036102be57565b359061ffff821682036102be57565b90600182811c92168015610d9f575b6020831014610d8b57565b634e487b7160e01b5f52602260045260245ffd5b91607f1691610d80565b5f9291815491610db883610d71565b8083529260018116908115610e0d5750600114610dd457505050565b5f9081526020812093945091925b838310610df3575060209250010190565b600181602092949394548385870101520191019190610de2565b915050602093945060ff929192191683830152151560051b010190565b634e487b7160e01b5f52604160045260245ffd5b606081019081106001600160401b03821117610e5957604052565b610e2a565b604081019081106001600160401b03821117610e5957604052565b90601f801991011681019081106001600160401b03821117610e5957604052565b346102be5760403660031901126102be5761034e610efa610f01610eee600435610ec381610ae7565b63ffffffff610ed0610d51565b91165f52600360205260405f209061ffff165f5260205260405f2090565b60405192838092610da9565b0382610e79565b6040519182916020835260208301906102c2565b346102be5760403660031901126102be576020610f51600435610f3781610ae7565b6024359063ffffffff165f52600160205260405f20541490565b6040519015158152f35b346102be575f3660031901126102be576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b346102be5760203660031901126102be577ff0be4f1e87349231d80c36b33f9e8639658eeaf474014dee15a3e6a4d44141976020600435610fdf816103d4565b610fe7611f44565b600480546001600160a01b0319166001600160a01b03929092169182179055604051908152a1005b346102be5760203660031901126102be5760043561102c816103d4565b60018060a01b03165f526005602052602060405f2054604051908152f35b346102be575f3660031901126102be57611062611f44565b5f80546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b346102be5760403660031901126102be576110bd600435610ae7565b60206040515f8152f35b346102be5760a03660031901126102be576110e1366106c7565b506064356001600160401b0381116102be576111019036906004016106d8565b50506020608435611111816103d4565b6040516001600160a01b0390911630148152f35b346102be575f3660031901126102be57602060405160068152f35b346102be575f3660031901126102be575f546040516001600160a01b039091168152602090f35b346102be575f3660031901126102be576040515f60095461118781610d71565b80845290600181169081156103b057506001146111ae5761034e8361034281850382610e79565b60095f9081527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af939250905b8082106111f257509091508101602001610342610332565b9192600181602092548385880101520191019092916111da565b346102be575f3660031901126102be5760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b346102be575f3660031901126102be5760206040515f8152f35b346102be5760403660031901126102be5761128a600435611280816103d4565b6024359033611e6d565b602060405160018152f35b346102be575f3660031901126102be576002546040516001600160a01b039091168152602090f35b9060206003198301126102be576004356001600160401b0381116102be5760040182601f820112156102be578035926001600160401b0384116102be576020808301928560051b0101116102be579190565b346102be5761131d366112bd565b90611326611f44565b61132f82611a43565b9061133d6040519283610e79565b828252602082019260051b8101903682116102be5780935b828510611367576113658461230f565b005b84356001600160401b0381116102be578201906060823603126102be576040519161139183610e3e565b803561139c81610ae7565b83526113aa60208201610d62565b60208401526040810135906001600160401b0382116102be57019036601f830112156102be576020926113e4849336908581359101611ac5565b6040820152815201940193611355565b346102be5760203660031901126102be5763ffffffff60043561141681610ae7565b165f526001602052602060405f2054604051908152f35b346102be5760603660031901126102be5760043561144a81610ae7565b611452610d51565b604435906001600160401b0382116102be5761034e92611479610f019336906004016106d8565b929091611b8a565b61148a366112bd565b5f5b8181106114f957604051638e9e709960e01b81525f81600481335afa801561066d576114d3915f916114d7575b50604051638351eea760e01b8152918291600483016102e6565b0390fd5b6114f391503d805f833e6114eb8183610e79565b810190611d2f565b826114b9565b611504818385611c40565b9061153461153061151484611aa0565b60208501359063ffffffff165f52600160205260405f20541490565b1590565b6115cc5760c08201359160a0810135611551610100830183611c68565b94909161156060e08501611c9a565b9361156f610120820182611c68565b959095303b156102be575f9661159c926040519a8b9889978897633411683760e21b895260048901611cb5565b0391305af191821561066d576001926115b8575b505b0161148c565b806109465f6115c693610e79565b5f6115b0565b600191506115b2565b916080610512929493611615604060c0830197805184526001600160401b0360208201511660208501520151604083019060208091805184520151910152565b019060208091805184520151910152565b60803660031901126102be576004356001600160401b0381116102be576116519036906004016104a2565b60403660231901126102be57606435611669816103d4565b611671611d91565b5061167a6119fc565b50611683611d91565b5061168c6119fc565b506060820135906116a56040840135610be38535610ae7565b91808310610d2157503315611760576116e5906116c283336125f8565b6116cc8385611fa4565b6116d586611aa0565b916116df36612409565b92612770565b906116ee6119de565b928184528160208501527f85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a61174e611727855193611aa0565b936040519181839233978460409194939263ffffffff606083019616825260208201520152565b0390a361034e604051928392836115d5565b634b637e8f60e11b5f525f60045260245ffd5b346102be575f60203660031901126102be57600435611791816103d4565b611799611f44565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690813b156102be5760405163ca5eb5e160e01b81526001600160a01b039091166004820152905f908290602490829084905af1801561066d57611804575080f35b61136591505f90610e79565b61181936610705565b5050509290303303611832576107ee6107e285836124c1565b63029a949d60e31b5f5260045ffd5b346102be5760203660031901126102be577fd48d879cef83a1c0bdda516f27b13ddb1b3f8bbac1c9e1511bb2a659c24277606020600435611881816103d4565b611889611f44565b600280546001600160a01b0319166001600160a01b03929092169182179055604051908152a1005b346102be5760403660031901126102be5760206119076004356118d3816103d4565b602435906118e0826103d4565b60018060a01b03165f526006835260405f209060018060a01b03165f5260205260405f2090565b54604051908152f35b346102be5760203660031901126102be5760043561192d816103d4565b611935611f44565b6001600160a01b03168015611986575f80546001600160a01b03198116831782556001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3005b631e4fbdf760e01b5f525f60045260245ffd5b346102be5760603660031901126102be5760206119b5366106c7565b63ffffffff81356119c581610ae7565b165f52600182528160405f205491013560405191148152f35b60405190610512604083610e79565b6040519061051260a083610e79565b60405190611a0982610e5e565b5f6020838281520152565b908160209103126102be57516102f7816103d4565b6040513d5f823e3d90fd5b908160209103126102be575190565b6001600160401b038111610e595760051b60200190565b60405190611a69602083610e79565b5f80835282815b828110611a7c57505050565b602090604051611a8b81610e5e565b5f815260608382015282828501015201611a70565b356102f781610ae7565b6001600160401b038111610e5957601f01601f191660200190565b929192611ad182611aaa565b91611adf6040519384610e79565b8294818452818301116102be578281602093845f960137010152565b90929192836002116102be5783116102be57600201916001190190565b805191908290602001825e015f815290565b611b44939261051292816040519687946020860190611b18565b918237015f815203601f198101845283610e79565b908060209392818452848401375f828201840152601f01601f1916010190565b9160206102f7938181520191611b59565b610eee610efa9263ffffffff611bbb9397959697165f52600360205260405f209061ffff165f5260205260405f2090565b805115611c1e578315611c18576002841015611bef5750506114d3604051928392639a6d49cd60e01b845260048401611b79565b909280611c12916102f794611c0d611c08368484611ac5565b6123d1565b611afb565b91611b2a565b92509050565b5091906102f7913691611ac5565b634e487b7160e01b5f52603260045260245ffd5b9190811015611c635760051b8101359061013e19813603018212156102be570190565b611c2c565b903590601e19813603018212156102be57018035906001600160401b0382116102be576020019181360383136102be57565b356102f7816103d4565b6001600160401b038116036102be57565b929093611d11926001600160401b0360406102f79a98999763ffffffff8135611cdd81610ae7565b168852602081013560208901520135611cf581611ca4565b166040860152606085015260e0608085015260e0840191611b59565b6001600160a01b0390941660a082015280840360c090910152611b59565b6020818303126102be578051906001600160401b0382116102be570181601f820112156102be57805190611d6282611aaa565b92611d706040519485610e79565b828452602083830101116102be57815f9260208093018386015e8301015290565b60405190611d9e82610e3e565b815f81525f60208201526040611db26119fc565b910152565b611de690610c0e7f0000000000000000000000000000000000000000000000000000000000000000809261248b565b918291808410611df35750565b836371c4efed60e01b5f5260045260245260445ffd5b63ffffffff16805f52600160205260405f2054908115611e27575090565b63f6ff4fb760e01b5f5260045260245ffd5b356102f781611ca4565b6102f7939260809260018060a01b0316825260208201525f604082015281606082015201906102c2565b916001600160a01b038316918215611760576001600160a01b038116938415611f31576001600160a01b0381165f90815260056020526040902054838110611f0c5791611efa91611ee0855f51602061297b5f395f51905f529695039160018060a01b03165f52600560205260405f2090565b556001600160a01b03165f90815260056020526040902090565b805482019055604051908152602090a3565b63391434e360e21b5f526001600160a01b03909116600452602452604482905260645ffd5b63ec442f0560e01b5f525f60045260245ffd5b5f546001600160a01b03163303611f5757565b63118cdaa760e01b5f523360045260245ffd5b908160209103126102be57516102f781610b7a565b9091611f966102f7936040845260408401906102c2565b9160208184039101526102c2565b909161200961202f93611fec611fe06020860135927f00000000000000000000000000000000000000000000000000000000000000009061248b565b6001600160401b031690565b612003611ffc60a0870187611c68565b3691611ac5565b916126b9565b93909283945f146120ab576002905b61147961202482611aa0565b916080810190611c68565b60045490926001600160a01b0390911690838261204b57505050565b60405163043a78eb60e01b81529260209284928391829161206f9160048401611f7f565b03915afa801561066d576120805750565b6120a19060203d6020116120a4575b6120998183610e79565b810190611f6a565b50565b503d61208f565b600190612018565b91908260409103126102be576040516120cb81610e5e565b6020808294805184520151910152565b906040828203126102be576102f7916120b3565b906020909392936040835263ffffffff8151166040840152818101516060840152608061214361212d604084015160a08488015260e08701906102c2565b6060840151868203603f190160a08801526102c2565b910151151560c08401526001600160a01b03909416910152565b8051821015611c635760209160051b010190565b601f821161217e57505050565b5f5260205f20906020601f840160051c830193106121b6575b601f0160051c01905b8181106121ab575050565b5f81556001016121a0565b9091508190612197565b91909182516001600160401b038111610e59576121e7816121e18454610d71565b84612171565b6020601f82116001146122265781906122179394955f9261221b575b50508160011b915f199060031b1c19161790565b9055565b015190505f80612203565b601f19821690612239845f5260205f2090565b915f5b8181106122735750958360019596971061225b575b505050811b019055565b01515f1960f88460031b161c191690555f8080612251565b9192602060018192868b01518155019401920161223c565b602081016020825282518091526040820191602060408360051b8301019401925f915b8383106122bd57505050505090565b9091929394602080612300600193603f19868203018752606060408b5163ffffffff815116845261ffff86820151168685015201519181604082015201906102c2565b970193019301919392906122ae565b5f5b815181101561239a5780612334604061232c6001948661215d565b5101516123d1565b6123946040612343838661215d565b51015163ffffffff612355848761215d565b5151165f52600360205261238f60405f2061237f6020612375878a61215d565b51015161ffff1690565b61ffff165f5260205260405f2090565b6121c0565b01612311565b506123cc7fbe4864a8e820971c0247f5992e2da559595f7bf076a21cb5928d443d2a13b674916040519182918261228b565b0390a1565b600361ffff600283015116036123e45750565b604051639a6d49cd60e01b8152602060048201529081906114d39060248301906102c2565b60409060231901126102be576040519061242282610e5e565b60243582526044356020830152565b6001600160a01b031690811561048f576001600160a01b0381161561047c57612474915f52600660205260405f209060018060a01b03165f5260205260405f2090565b55565b634e487b7160e01b5f52601160045260245ffd5b8115612495570490565b634e487b7160e01b5f52601260045260245ffd5b818102929181159184041417156124bc57565b612477565b906020116102be573590565b906028116102be576020013560c01c90565b6102f7906001600160401b037f000000000000000000000000000000000000000000000000000000000000000091166124a9565b6001600160a01b0381161561257f575b6001600160a01b038116908115611f3157600754908382018092116124bc576007919091556001600160a01b03165f9081526005602052604090208281540190555f5f51602061297b5f395f51905f526020604051858152a390565b5061dead612523565b90806028116102be576102f79136916027190190602801611ac5565b90926125ea906102f7936040519586946001600160401b0360c01b9060c01b16602086015263ffffffff60e01b9060e01b166028850152602c840152604c830190611b18565b03601f198101835282610e79565b6001600160a01b0381169190826126425750906007548281018091116124bc575f925f51602061297b5f395f51905f52916007555b600780548290039055604051908152602090a3565b6001600160a01b0381165f9081526005602052604090205482811061269657915f51602061297b5f395f51905f5291612690825f9695039160018060a01b03165f52600560205260405f2090565b5561262d565b63391434e360e21b5f526001600160a01b0390911660045260245260445260645ffd5b825115801593906126ff57906125ea6126fc9260405194859360208501526001600160401b0360c01b9060c01b1660408401523360488401526068830190611b18565b91565b50906040519160208301526001600160401b0360c01b9060c01b166040820152602881526126fc604882610e79565b906080828203126102be5761276890604080519361274b85610e3e565b80518552602081015161275d81611ca4565b6020860152016120b3565b604082015290565b6127cd608094926127e99694612784611d91565b5060206127918651612860565b950191825180612851575b506127a685611e09565b92511515926127b6610c566119ed565b602086015260408501526060840152151585830152565b6040518095819482936302637a4560e41b8452600484016120ef565b03917f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165af190811561066d575f91612828575090565b6102f7915060803d60801161284a575b6128428183610e79565b81019061272e565b503d612838565b61285a9061287d565b5f61279c565b80340361286a5790565b6304fb820960e51b5f523460045260245ffd5b60405163393f876560e21b81527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690602081600481855afa90811561066d575f9161295b575b506001600160a01b031691821561294c576020915f9160405190848201926323b872dd60e01b84523360248401526044830152606482015260648152612913608482610e79565b519082855af115611a29575f513d6129435750803b155b6129315750565b635274afe760e01b5f5260045260245ffd5b6001141561292a565b6329b99a9560e11b5f5260045ffd5b612974915060203d6020116106985761068a8183610e79565b5f6128cc56feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122088bab3510eec297f19b995a1a002fc19cde81eb0f644bb5b0754657f050845ae64736f6c634300081c0033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000006f475642a6e85809b1c36fa62763669b1b48dd5b0000000000000000000000002a9bf3d9e94198148bb5295bc4e812eadabb3c15000000000000000000000000000000000000000000000000000000000000000d50616c6164696e20546f6b656e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000350414c0000000000000000000000000000000000000000000000000000000000

    Deployed Bytecode

    0x60806040526004361015610011575f80fd5b5f3560e01c806306fdde03146102af578063095ea7b3146102aa5780630d35b415146102a5578063111ecdad146102a057806313137d651461029b578063134d4f2514610296578063156a0d0f1461029157806317442b701461028c57806318160ddd146102875780631f5e13341461028257806323b872dd1461027d578063313ce567146102785780633400288b146102735780633b6f743b1461026e57806352ae2879146101ec5780635535d461146102695780635a0dfe4d146102645780635e280f111461025f5780636fc1b31e1461025a57806370a0823114610255578063715018a6146102505780637d25a05e1461024b57806382413eac14610246578063857749b0146102415780638da5cb5b1461023c57806395d89b4114610237578063963efcaa146102325780639f68b9641461022d578063a9059cbb14610228578063b731ea0a14610223578063b98bd0701461021e578063bb0b6a5314610219578063bc70b35414610214578063bd815db01461020f578063c7c7f5b31461020a578063ca5eb5e114610205578063d045a0dc14610200578063d4243885146101fb578063dd62ed3e146101f6578063f2fde38b146101f1578063fc0c546a146101ec5763ff7bd03d146101e7575f80fd5b611999565b610d37565b611910565b6118b1565b611841565b611810565b611773565b611626565b611481565b61142d565b6113f4565b61130f565b611295565b611260565b611246565b61120c565b611167565b611140565b611125565b6110c7565b6110a1565b61104a565b61100f565b610f9f565b610f5b565b610f15565b610e9a565b610b84565b610af5565b610acc565b610a24565b610a09565b6109ec565b6109cb565b6109a5565b61098a565b610772565b61069f565b610550565b6103e5565b6102fa565b5f9103126102be57565b5f80fd5b805180835260209291819084018484015e5f828201840152601f01601f1916010190565b9060206102f79281815201906102c2565b90565b346102be575f3660031901126102be576040515f60085461031a81610d71565b80845290600181169081156103b05750600114610352575b61034e8361034281850382610e79565b604051918291826102e6565b0390f35b60085f9081527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3939250905b80821061039657509091508101602001610342610332565b91926001816020925483858801015201910190929161037e565b60ff191660208086019190915291151560051b840190910191506103429050610332565b6001600160a01b038116036102be57565b346102be5760403660031901126102be57600435610402816103d4565b602435331561048f576001600160a01b03821691821561047c576104428291335f52600660205260405f209060018060a01b03165f5260205260405f2090565b5560405190815233907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590602090a3602060405160018152f35b634a1406b160e11b5f525f60045260245ffd5b63e602df0560e01b5f525f60045260245ffd5b908160e09103126102be5790565b939291906104cc8560a081019260208091805184520151910152565b60a06040860152815180915260c0850190602060c08260051b8801019301915f905b82821061051457505050509060606105129294019060208091805184520151910152565b565b9091929360208061054260019360bf198c82030186526040838a5180518452015191818582015201906102c2565b9601920192019092916104ee565b346102be5760203660031901126102be576004356001600160401b0381116102be576105809036906004016104a2565b6105886119fc565b506105916119fc565b50604051637e062a3560e11b8152602081600481305afa90811561066d576004916020915f91610672575b506040516318160ddd60e01b815292839182906001600160a01b03165afa90811561066d575f9161063e575b506105f16119de565b905f8252602082015261034e610622610608611a5a565b93604081013561061c606083013592611aa0565b50611db7565b61062a6119de565b9182526020820152604051938493846104b0565b610660915060203d602011610666575b6106588183610e79565b810190611a34565b5f6105e8565b503d61064e565b611a29565b6106929150823d8411610698575b61068a8183610e79565b810190611a14565b5f6105bc565b503d610680565b346102be575f3660031901126102be576004546040516001600160a01b039091168152602090f35b60609060031901126102be57600490565b9181601f840112156102be578235916001600160401b0383116102be57602083818601950101116102be57565b90600319820160e081126102be576060136102be57600491606435916084356001600160401b0381116102be578261073f916004016106d8565b9290929160a43561074f816103d4565b9160c435906001600160401b0382116102be5761076e916004016106d8565b9091565b61077b36610705565b50919492915050337f0000000000000000000000006f475642a6e85809b1c36fa62763669b1b48dd5b6001600160a01b0316036109775781356107bd81610ae7565b6107c681611e09565b9060208401358092036109525750506107ee6107e285836124c1565b6001600160a01b031690565b936108146108046107ff83856124cd565b6124df565b61080d85611aa0565b5086612513565b9161081f8260281090565b610877575b50506108507fefed6d3500546b29533b128a29e3a94d70788727f0507505ac12eaf2e578fd9c92611aa0565b6040805163ffffffff92909216825260208201929092526001600160a01b039490941693a3005b90826108a29261089c61088c60408801611e39565b9361089688611aa0565b92612588565b926125a4565b917f0000000000000000000000006f475642a6e85809b1c36fa62763669b1b48dd5b6001600160a01b0316803b156102be57604051633e5ac80960e11b8152935f9185918290849082906108fb908b8d60048501611e43565b03925af190811561066d577fefed6d3500546b29533b128a29e3a94d70788727f0507505ac12eaf2e578fd9c9361085092610938575b5092610824565b806109465f61094c93610e79565b806102b4565b5f610931565b8061096163ffffffff92610ae7565b63309afaf360e21b5f521660045260245260445ffd5b6391ac5e4f60e01b5f523360045260245ffd5b346102be575f3660031901126102be57602060405160028152f35b346102be575f3660031901126102be576040805162b9270b60e21b815260016020820152f35b346102be575f3660031901126102be57604080516001815260026020820152f35b346102be575f3660031901126102be576020600754604051908152f35b346102be575f3660031901126102be57602060405160018152f35b346102be5760603660031901126102be57600435610a41816103d4565b602435610a4d816103d4565b6001600160a01b0382165f9081526006602090815260408083203384529091529020549160443591905f198410610a95575b610a899350611e6d565b60405160018152602090f35b828410610ab157610aac83610a8995033383612431565b610a7f565b8284637dc7a0d960e11b5f523360045260245260445260645ffd5b346102be575f3660031901126102be57602060405160128152f35b63ffffffff8116036102be57565b346102be5760403660031901126102be577f238399d427b947898edb290f5ff0f9109849b1c3ba196a42e35f00c50a54b98b600435610b3381610ae7565b60243590610b3f611f44565b63ffffffff81165f5260016020528160405f2055610b75604051928392836020909392919363ffffffff60408201951681520152565b0390a1005b801515036102be57565b346102be5760403660031901126102be576004356001600160401b0381116102be57610bb49036906004016104a2565b602435610bc081610b7a565b610bc86119fc565b50813591606081013590610c136040820135610be386610ae7565b610c0e7f000000000000000000000000000000000000000000000000000000e8d4a51000809261248b565b6124a9565b91808310610d2157610c94604086610c7987610c2f8888611fa4565b90610c3985610ae7565b610c416119fc565b50610c4b85611e09565b610c62610c566119ed565b63ffffffff9097168752565b602086015285850152606084015215156080830152565b815180938192631bb8518b60e31b83523090600484016120ef565b03817f0000000000000000000000006f475642a6e85809b1c36fa62763669b1b48dd5b6001600160a01b03165afa801561066d5761034e915f91610cf2575b5060405191829182815181526020918201519181019190915260400190565b610d14915060403d604011610d1a575b610d0c8183610e79565b8101906120db565b82610cd3565b503d610d02565b826371c4efed60e01b5f5260045260245260445ffd5b346102be575f3660031901126102be576020604051308152f35b6024359061ffff821682036102be57565b359061ffff821682036102be57565b90600182811c92168015610d9f575b6020831014610d8b57565b634e487b7160e01b5f52602260045260245ffd5b91607f1691610d80565b5f9291815491610db883610d71565b8083529260018116908115610e0d5750600114610dd457505050565b5f9081526020812093945091925b838310610df3575060209250010190565b600181602092949394548385870101520191019190610de2565b915050602093945060ff929192191683830152151560051b010190565b634e487b7160e01b5f52604160045260245ffd5b606081019081106001600160401b03821117610e5957604052565b610e2a565b604081019081106001600160401b03821117610e5957604052565b90601f801991011681019081106001600160401b03821117610e5957604052565b346102be5760403660031901126102be5761034e610efa610f01610eee600435610ec381610ae7565b63ffffffff610ed0610d51565b91165f52600360205260405f209061ffff165f5260205260405f2090565b60405192838092610da9565b0382610e79565b6040519182916020835260208301906102c2565b346102be5760403660031901126102be576020610f51600435610f3781610ae7565b6024359063ffffffff165f52600160205260405f20541490565b6040519015158152f35b346102be575f3660031901126102be576040517f0000000000000000000000006f475642a6e85809b1c36fa62763669b1b48dd5b6001600160a01b03168152602090f35b346102be5760203660031901126102be577ff0be4f1e87349231d80c36b33f9e8639658eeaf474014dee15a3e6a4d44141976020600435610fdf816103d4565b610fe7611f44565b600480546001600160a01b0319166001600160a01b03929092169182179055604051908152a1005b346102be5760203660031901126102be5760043561102c816103d4565b60018060a01b03165f526005602052602060405f2054604051908152f35b346102be575f3660031901126102be57611062611f44565b5f80546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b346102be5760403660031901126102be576110bd600435610ae7565b60206040515f8152f35b346102be5760a03660031901126102be576110e1366106c7565b506064356001600160401b0381116102be576111019036906004016106d8565b50506020608435611111816103d4565b6040516001600160a01b0390911630148152f35b346102be575f3660031901126102be57602060405160068152f35b346102be575f3660031901126102be575f546040516001600160a01b039091168152602090f35b346102be575f3660031901126102be576040515f60095461118781610d71565b80845290600181169081156103b057506001146111ae5761034e8361034281850382610e79565b60095f9081527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af939250905b8082106111f257509091508101602001610342610332565b9192600181602092548385880101520191019092916111da565b346102be575f3660031901126102be5760206040517f000000000000000000000000000000000000000000000000000000e8d4a510008152f35b346102be575f3660031901126102be5760206040515f8152f35b346102be5760403660031901126102be5761128a600435611280816103d4565b6024359033611e6d565b602060405160018152f35b346102be575f3660031901126102be576002546040516001600160a01b039091168152602090f35b9060206003198301126102be576004356001600160401b0381116102be5760040182601f820112156102be578035926001600160401b0384116102be576020808301928560051b0101116102be579190565b346102be5761131d366112bd565b90611326611f44565b61132f82611a43565b9061133d6040519283610e79565b828252602082019260051b8101903682116102be5780935b828510611367576113658461230f565b005b84356001600160401b0381116102be578201906060823603126102be576040519161139183610e3e565b803561139c81610ae7565b83526113aa60208201610d62565b60208401526040810135906001600160401b0382116102be57019036601f830112156102be576020926113e4849336908581359101611ac5565b6040820152815201940193611355565b346102be5760203660031901126102be5763ffffffff60043561141681610ae7565b165f526001602052602060405f2054604051908152f35b346102be5760603660031901126102be5760043561144a81610ae7565b611452610d51565b604435906001600160401b0382116102be5761034e92611479610f019336906004016106d8565b929091611b8a565b61148a366112bd565b5f5b8181106114f957604051638e9e709960e01b81525f81600481335afa801561066d576114d3915f916114d7575b50604051638351eea760e01b8152918291600483016102e6565b0390fd5b6114f391503d805f833e6114eb8183610e79565b810190611d2f565b826114b9565b611504818385611c40565b9061153461153061151484611aa0565b60208501359063ffffffff165f52600160205260405f20541490565b1590565b6115cc5760c08201359160a0810135611551610100830183611c68565b94909161156060e08501611c9a565b9361156f610120820182611c68565b959095303b156102be575f9661159c926040519a8b9889978897633411683760e21b895260048901611cb5565b0391305af191821561066d576001926115b8575b505b0161148c565b806109465f6115c693610e79565b5f6115b0565b600191506115b2565b916080610512929493611615604060c0830197805184526001600160401b0360208201511660208501520151604083019060208091805184520151910152565b019060208091805184520151910152565b60803660031901126102be576004356001600160401b0381116102be576116519036906004016104a2565b60403660231901126102be57606435611669816103d4565b611671611d91565b5061167a6119fc565b50611683611d91565b5061168c6119fc565b506060820135906116a56040840135610be38535610ae7565b91808310610d2157503315611760576116e5906116c283336125f8565b6116cc8385611fa4565b6116d586611aa0565b916116df36612409565b92612770565b906116ee6119de565b928184528160208501527f85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a61174e611727855193611aa0565b936040519181839233978460409194939263ffffffff606083019616825260208201520152565b0390a361034e604051928392836115d5565b634b637e8f60e11b5f525f60045260245ffd5b346102be575f60203660031901126102be57600435611791816103d4565b611799611f44565b7f0000000000000000000000006f475642a6e85809b1c36fa62763669b1b48dd5b6001600160a01b031690813b156102be5760405163ca5eb5e160e01b81526001600160a01b039091166004820152905f908290602490829084905af1801561066d57611804575080f35b61136591505f90610e79565b61181936610705565b5050509290303303611832576107ee6107e285836124c1565b63029a949d60e31b5f5260045ffd5b346102be5760203660031901126102be577fd48d879cef83a1c0bdda516f27b13ddb1b3f8bbac1c9e1511bb2a659c24277606020600435611881816103d4565b611889611f44565b600280546001600160a01b0319166001600160a01b03929092169182179055604051908152a1005b346102be5760403660031901126102be5760206119076004356118d3816103d4565b602435906118e0826103d4565b60018060a01b03165f526006835260405f209060018060a01b03165f5260205260405f2090565b54604051908152f35b346102be5760203660031901126102be5760043561192d816103d4565b611935611f44565b6001600160a01b03168015611986575f80546001600160a01b03198116831782556001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3005b631e4fbdf760e01b5f525f60045260245ffd5b346102be5760603660031901126102be5760206119b5366106c7565b63ffffffff81356119c581610ae7565b165f52600182528160405f205491013560405191148152f35b60405190610512604083610e79565b6040519061051260a083610e79565b60405190611a0982610e5e565b5f6020838281520152565b908160209103126102be57516102f7816103d4565b6040513d5f823e3d90fd5b908160209103126102be575190565b6001600160401b038111610e595760051b60200190565b60405190611a69602083610e79565b5f80835282815b828110611a7c57505050565b602090604051611a8b81610e5e565b5f815260608382015282828501015201611a70565b356102f781610ae7565b6001600160401b038111610e5957601f01601f191660200190565b929192611ad182611aaa565b91611adf6040519384610e79565b8294818452818301116102be578281602093845f960137010152565b90929192836002116102be5783116102be57600201916001190190565b805191908290602001825e015f815290565b611b44939261051292816040519687946020860190611b18565b918237015f815203601f198101845283610e79565b908060209392818452848401375f828201840152601f01601f1916010190565b9160206102f7938181520191611b59565b610eee610efa9263ffffffff611bbb9397959697165f52600360205260405f209061ffff165f5260205260405f2090565b805115611c1e578315611c18576002841015611bef5750506114d3604051928392639a6d49cd60e01b845260048401611b79565b909280611c12916102f794611c0d611c08368484611ac5565b6123d1565b611afb565b91611b2a565b92509050565b5091906102f7913691611ac5565b634e487b7160e01b5f52603260045260245ffd5b9190811015611c635760051b8101359061013e19813603018212156102be570190565b611c2c565b903590601e19813603018212156102be57018035906001600160401b0382116102be576020019181360383136102be57565b356102f7816103d4565b6001600160401b038116036102be57565b929093611d11926001600160401b0360406102f79a98999763ffffffff8135611cdd81610ae7565b168852602081013560208901520135611cf581611ca4565b166040860152606085015260e0608085015260e0840191611b59565b6001600160a01b0390941660a082015280840360c090910152611b59565b6020818303126102be578051906001600160401b0382116102be570181601f820112156102be57805190611d6282611aaa565b92611d706040519485610e79565b828452602083830101116102be57815f9260208093018386015e8301015290565b60405190611d9e82610e3e565b815f81525f60208201526040611db26119fc565b910152565b611de690610c0e7f000000000000000000000000000000000000000000000000000000e8d4a51000809261248b565b918291808410611df35750565b836371c4efed60e01b5f5260045260245260445ffd5b63ffffffff16805f52600160205260405f2054908115611e27575090565b63f6ff4fb760e01b5f5260045260245ffd5b356102f781611ca4565b6102f7939260809260018060a01b0316825260208201525f604082015281606082015201906102c2565b916001600160a01b038316918215611760576001600160a01b038116938415611f31576001600160a01b0381165f90815260056020526040902054838110611f0c5791611efa91611ee0855f51602061297b5f395f51905f529695039160018060a01b03165f52600560205260405f2090565b556001600160a01b03165f90815260056020526040902090565b805482019055604051908152602090a3565b63391434e360e21b5f526001600160a01b03909116600452602452604482905260645ffd5b63ec442f0560e01b5f525f60045260245ffd5b5f546001600160a01b03163303611f5757565b63118cdaa760e01b5f523360045260245ffd5b908160209103126102be57516102f781610b7a565b9091611f966102f7936040845260408401906102c2565b9160208184039101526102c2565b909161200961202f93611fec611fe06020860135927f000000000000000000000000000000000000000000000000000000e8d4a510009061248b565b6001600160401b031690565b612003611ffc60a0870187611c68565b3691611ac5565b916126b9565b93909283945f146120ab576002905b61147961202482611aa0565b916080810190611c68565b60045490926001600160a01b0390911690838261204b57505050565b60405163043a78eb60e01b81529260209284928391829161206f9160048401611f7f565b03915afa801561066d576120805750565b6120a19060203d6020116120a4575b6120998183610e79565b810190611f6a565b50565b503d61208f565b600190612018565b91908260409103126102be576040516120cb81610e5e565b6020808294805184520151910152565b906040828203126102be576102f7916120b3565b906020909392936040835263ffffffff8151166040840152818101516060840152608061214361212d604084015160a08488015260e08701906102c2565b6060840151868203603f190160a08801526102c2565b910151151560c08401526001600160a01b03909416910152565b8051821015611c635760209160051b010190565b601f821161217e57505050565b5f5260205f20906020601f840160051c830193106121b6575b601f0160051c01905b8181106121ab575050565b5f81556001016121a0565b9091508190612197565b91909182516001600160401b038111610e59576121e7816121e18454610d71565b84612171565b6020601f82116001146122265781906122179394955f9261221b575b50508160011b915f199060031b1c19161790565b9055565b015190505f80612203565b601f19821690612239845f5260205f2090565b915f5b8181106122735750958360019596971061225b575b505050811b019055565b01515f1960f88460031b161c191690555f8080612251565b9192602060018192868b01518155019401920161223c565b602081016020825282518091526040820191602060408360051b8301019401925f915b8383106122bd57505050505090565b9091929394602080612300600193603f19868203018752606060408b5163ffffffff815116845261ffff86820151168685015201519181604082015201906102c2565b970193019301919392906122ae565b5f5b815181101561239a5780612334604061232c6001948661215d565b5101516123d1565b6123946040612343838661215d565b51015163ffffffff612355848761215d565b5151165f52600360205261238f60405f2061237f6020612375878a61215d565b51015161ffff1690565b61ffff165f5260205260405f2090565b6121c0565b01612311565b506123cc7fbe4864a8e820971c0247f5992e2da559595f7bf076a21cb5928d443d2a13b674916040519182918261228b565b0390a1565b600361ffff600283015116036123e45750565b604051639a6d49cd60e01b8152602060048201529081906114d39060248301906102c2565b60409060231901126102be576040519061242282610e5e565b60243582526044356020830152565b6001600160a01b031690811561048f576001600160a01b0381161561047c57612474915f52600660205260405f209060018060a01b03165f5260205260405f2090565b55565b634e487b7160e01b5f52601160045260245ffd5b8115612495570490565b634e487b7160e01b5f52601260045260245ffd5b818102929181159184041417156124bc57565b612477565b906020116102be573590565b906028116102be576020013560c01c90565b6102f7906001600160401b037f000000000000000000000000000000000000000000000000000000e8d4a5100091166124a9565b6001600160a01b0381161561257f575b6001600160a01b038116908115611f3157600754908382018092116124bc576007919091556001600160a01b03165f9081526005602052604090208281540190555f5f51602061297b5f395f51905f526020604051858152a390565b5061dead612523565b90806028116102be576102f79136916027190190602801611ac5565b90926125ea906102f7936040519586946001600160401b0360c01b9060c01b16602086015263ffffffff60e01b9060e01b166028850152602c840152604c830190611b18565b03601f198101835282610e79565b6001600160a01b0381169190826126425750906007548281018091116124bc575f925f51602061297b5f395f51905f52916007555b600780548290039055604051908152602090a3565b6001600160a01b0381165f9081526005602052604090205482811061269657915f51602061297b5f395f51905f5291612690825f9695039160018060a01b03165f52600560205260405f2090565b5561262d565b63391434e360e21b5f526001600160a01b0390911660045260245260445260645ffd5b825115801593906126ff57906125ea6126fc9260405194859360208501526001600160401b0360c01b9060c01b1660408401523360488401526068830190611b18565b91565b50906040519160208301526001600160401b0360c01b9060c01b166040820152602881526126fc604882610e79565b906080828203126102be5761276890604080519361274b85610e3e565b80518552602081015161275d81611ca4565b6020860152016120b3565b604082015290565b6127cd608094926127e99694612784611d91565b5060206127918651612860565b950191825180612851575b506127a685611e09565b92511515926127b6610c566119ed565b602086015260408501526060840152151585830152565b6040518095819482936302637a4560e41b8452600484016120ef565b03917f0000000000000000000000006f475642a6e85809b1c36fa62763669b1b48dd5b6001600160a01b03165af190811561066d575f91612828575090565b6102f7915060803d60801161284a575b6128428183610e79565b81019061272e565b503d612838565b61285a9061287d565b5f61279c565b80340361286a5790565b6304fb820960e51b5f523460045260245ffd5b60405163393f876560e21b81527f0000000000000000000000006f475642a6e85809b1c36fa62763669b1b48dd5b6001600160a01b031690602081600481855afa90811561066d575f9161295b575b506001600160a01b031691821561294c576020915f9160405190848201926323b872dd60e01b84523360248401526044830152606482015260648152612913608482610e79565b519082855af115611a29575f513d6129435750803b155b6129315750565b635274afe760e01b5f5260045260245ffd5b6001141561292a565b6329b99a9560e11b5f5260045ffd5b612974915060203d6020116106985761068a8183610e79565b5f6128cc56feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122088bab3510eec297f19b995a1a002fc19cde81eb0f644bb5b0754657f050845ae64736f6c634300081c0033

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

    000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000006f475642a6e85809b1c36fa62763669b1b48dd5b0000000000000000000000002a9bf3d9e94198148bb5295bc4e812eadabb3c15000000000000000000000000000000000000000000000000000000000000000d50616c6164696e20546f6b656e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000350414c0000000000000000000000000000000000000000000000000000000000

    -----Decoded View---------------
    Arg [0] : _name (string): Paladin Token
    Arg [1] : _symbol (string): PAL
    Arg [2] : _lzEndpoint (address): 0x6F475642a6e85809B1c36Fa62763669b1b48DD5B
    Arg [3] : _delegate (address): 0x2a9Bf3D9e94198148BB5295bC4E812eAdAbb3c15

    -----Encoded View---------------
    8 Constructor Arguments found :
    Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
    Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
    Arg [2] : 0000000000000000000000006f475642a6e85809b1c36fa62763669b1b48dd5b
    Arg [3] : 0000000000000000000000002a9bf3d9e94198148bb5295bc4e812eadabb3c15
    Arg [4] : 000000000000000000000000000000000000000000000000000000000000000d
    Arg [5] : 50616c6164696e20546f6b656e00000000000000000000000000000000000000
    Arg [6] : 0000000000000000000000000000000000000000000000000000000000000003
    Arg [7] : 50414c0000000000000000000000000000000000000000000000000000000000


    [ 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.