Abstract Testnet

Contract

0xB34FF804Ff4A27cbA293548d01dc4B02Be910a23

Overview

ETH Balance

0 ETH

Multichain Info

N/A
Transaction Hash
Method
Block
From
To

There are no matching entries

4 Internal Transactions found.

Latest 4 internal transactions

Parent Transaction Hash Block From To
49429652025-01-23 12:12:5311 days ago1737634373
0xB34FF804...2Be910a23
0 ETH
49429652025-01-23 12:12:5311 days ago1737634373
0xB34FF804...2Be910a23
0 ETH
49429652025-01-23 12:12:5311 days ago1737634373
0xB34FF804...2Be910a23
0 ETH
49429652025-01-23 12:12:5311 days ago1737634373  Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LinearVestingOApp

Compiler Version
v0.8.23+commit.f704f362

ZkSolc Version
v1.5.7

Optimization Enabled:
Yes with Mode 3

Other Settings:
paris EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 63 : LinearVestingOApp.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.23;

import {IERC20Upgradeable} from "openzeppelin-contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import {SafeERC20Upgradeable} from "openzeppelin-contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol";
import {ContextUpgradeable} from "openzeppelin-contracts-upgradeable/utils/ContextUpgradeable.sol";
import {Context} from "openzeppelin-contracts/utils/Context.sol";

import {ILayerZeroEndpointV2, MessagingFee, MessagingReceipt, Origin} from "@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol";

import {LinearVesting} from "../LinearVesting.sol";
import {LinearVestingWritable} from "../writable/LinearVestingWritable.sol";
import {LinearVestingStorage} from "../LinearVestingStorage.sol";
import {LinearVestingOAppTypes} from "./LinearVestingOAppTypes.sol";
import {LinearVestingOAppStorage} from "./LinearVestingOAppStorage.sol";
import {ILinearVestingOApp} from "./ILinearVestingOApp.sol";

import {AddressMessageCodec, TimePeriodMessageCodec} from "../../common/oapp/MessageCodec.sol";
import {OAppConfigurator} from "../../common/oapp/OAppConfigurator.sol";

contract LinearVestingOApp is
    LinearVesting,
    LinearVestingOAppTypes,
    ILinearVestingOApp,
    OAppConfigurator
{
    using SafeERC20Upgradeable for IERC20Upgradeable;
    using AddressMessageCodec for bytes;
    using TimePeriodMessageCodec for bytes;

    constructor(
        address _srcEndpoint
    ) OAppConfigurator(_srcEndpoint, msg.sender) {}

    function initialize(
        address _owner,
        address _token,
        address _srcEndpoint
    ) public override {
        super.initialize(_token, address(0));
        _initializeOApp(_srcEndpoint, _owner);

        LinearVestingStorage.layout().isCrosschainIDO = true;
        LinearVestingOAppStorage.layout().endpoint = ILayerZeroEndpointV2(
            _srcEndpoint
        );
    }

    /// @inheritdoc ILinearVestingOApp
    function updateLzConfig(
        OAppSetUp calldata _setUp
    ) external onlyRole(DEFAULT_ADMIN_ROLE) {
        LinearVestingOAppStorage.LinearVestingOAppStruct
            storage _strg = LinearVestingOAppStorage.layout();

        _lzConfig(_strg.endpoint, _setUp);
        _strg.setUp = _setUp;

        emit OnOAppSetUp(
            address(_strg.endpoint),
            _setUp.dstAddress,
            _strg.endpoint.eid(),
            _setUp.dstEID
        );
    }

    /// @inheritdoc ILinearVestingOApp
    function renounceClaimAndRefund(
        bytes memory _options
    ) external payable override(ILinearVestingOApp) {
        _renounceClaim();

        LinearVestingOAppStorage.LinearVestingOAppStruct
            storage _strg = LinearVestingOAppStorage.layout();

        bytes memory payload = AddressMessageCodec.encode(msg.sender);

        MessagingReceipt memory receipt = _lzSend(
            _strg.setUp.dstEID,
            payload,
            _options,
            MessagingFee(msg.value, 0),
            payable(msg.sender)
        );

        emit RenouncedClaimAndSentCrosschainRefund(
            msg.sender,
            _strg.setUp.dstEID,
            receipt.guid,
            receipt.fee.nativeFee
        );
    }

    function _lzReceive(
        Origin calldata _origin,
        bytes32,
        bytes calldata _message,
        address,
        bytes calldata
    ) internal override {
        LinearVestingOAppStorage.LinearVestingOAppStruct
            storage _strg = LinearVestingOAppStorage.layout();

        address senderAddress = address(uint160(uint256(_origin.sender)));

        if (
            _origin.srcEid != _strg.setUp.dstEID ||
            senderAddress != _strg.setUp.dstAddress
        ) {
            revert InvalidOrigin(_origin.srcEid, senderAddress);
        }

        (uint32 start, uint32 end) = TimePeriodMessageCodec.decode(_message);

        _setRefundPeriod(LinearVestingStorage.layout(), start, end);
    }

    /// @dev This function is not allowed to be called in cross-chain config
    function setRefundPeriod(uint256, uint256) external pure override {
        revert NotAuthorized();
    }

    /// @inheritdoc ILinearVestingOApp
    function getOAppSetUp() external view override returns (OAppSetUp memory) {
        return LinearVestingOAppStorage.layout().setUp;
    }

    function _contextSuffixLength()
        internal
        pure
        override(Context, ContextUpgradeable)
        returns (uint256)
    {
        return 0;
    }

    function _msgSender()
        internal
        view
        override(Context, ContextUpgradeable)
        returns (address)
    {
        return msg.sender;
    }

    function _msgData()
        internal
        pure
        override(Context, ContextUpgradeable)
        returns (bytes calldata)
    {
        return msg.data;
    }

    // be able to receive ether
    receive() external payable virtual {}

    fallback() external payable {}
}

File 2 of 63 : LinearVesting.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.23;

import {ILinearVestingReadable} from "./readable/ILinearVestingReadable.sol";

import {LinearVestingWritable} from "./writable/LinearVestingWritable.sol";
import {LinearVestingReadable} from "./readable/LinearVestingReadable.sol";

import {UserAllocation} from "./LinearVestingStruct.sol";

/// @dev ONLY cloneable w/ minimal proxy (ERC-1167) - NOT UPGRADABLE.
contract LinearVesting is LinearVestingWritable, LinearVestingReadable {
    function getClaimableAmount(
        UserAllocation calldata alloc
    )
        public
        view
        override(LinearVestingWritable, ILinearVestingReadable)
        returns (uint256 claimableAmount)
    {
        return LinearVestingWritable.getClaimableAmount(alloc);
    }
}

File 3 of 63 : LinearVestingStorage.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.23;

import {LinearVestingTypes} from "./LinearVestingTypes.sol";

library LinearVestingStorage {
    bytes32 public constant STORAGE_SLOT = keccak256("linearvesting.storage");

    struct Storage {
        LinearVestingTypes.SetUp setUp;
        LinearVestingTypes.Ledger ledger;
        mapping(address => uint256) userClaims;
        bool isCrosschainIDO;
        uint256 refundStart;
        uint256 refundEnd;
    }

    function layout() internal pure returns (Storage storage strg) {
        bytes32 slot = STORAGE_SLOT;
        assembly {
            strg.slot := slot
        }
    }
}

File 4 of 63 : LinearVestingWritable.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

import {IERC20Upgradeable} from "openzeppelin-contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import {SafeERC20Upgradeable} from "openzeppelin-contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol";
import {MerkleProof} from "openzeppelin-contracts/utils/cryptography/MerkleProof.sol";

import {ILinearVestingWritable} from "./ILinearVestingWritable.sol";
import {IIDOReadable} from "../../ido/readable/IIDOReadable.sol";
import {IIDOWritableRestricted} from "../../ido/writable/restricted/IIDOWritableRestricted.sol";

import {LinearVestingWritableRestricted} from "./restricted/LinearVestingWritableRestricted.sol";
import {LinearVestingTypes} from "../LinearVestingTypes.sol";
import {LinearVestingStorage} from "../LinearVestingStorage.sol";

import {UserAllocation} from "../LinearVestingStruct.sol";

/**
 * @title LinearVesting contract
 * @notice A contract to handle linear vesting of tokens.
 * @dev This contract is NOT MADE to be used:
 *           - for a crosschain linear vesting. A vesting of a token will always happen on one and single chain,
 *           - to claim deflationary tokens.
 */
abstract contract LinearVestingWritable is
    ILinearVestingWritable,
    LinearVestingWritableRestricted
{
    using SafeERC20Upgradeable for IERC20Upgradeable;

    /// @inheritdoc ILinearVestingWritable
    function claim(
        UserAllocation calldata alloc,
        bytes32[] calldata proof
    ) external override nonReentrant whenNotPaused returns (bool) {
        if (alloc.user != msg.sender) {
            revert NotAuthorized();
        }

        if (
            LinearVestingStorage.layout().setUp.ido != address(0) &&
            IIDOReadable(LinearVestingStorage.layout().setUp.ido)
                .getUserDetails(alloc.user)
                .hasRefunded
        ) {
            revert HasRefunded();
        }

        LinearVestingStorage.Storage storage strg = LinearVestingStorage
            .layout();

        if (
            !MerkleProof.verify(
                proof,
                strg.ledger.merkleRoot,
                keccak256(abi.encode(alloc))
            )
        ) {
            revert AllocNotFound();
        }

        uint256 tokens = getClaimableAmount(alloc);
        if (tokens == 0) {
            revert NoTokensToClaim();
        }

        address token = strg.setUp.vestedToken;

        strg.userClaims[alloc.user] += tokens;
        strg.ledger.totalClaimed += tokens;
        IERC20Upgradeable(token).safeTransfer(alloc.user, tokens);

        emit Claimed(token, alloc.user, tokens);

        return true;
    }

    /// @inheritdoc ILinearVestingWritable
    function getClaimableAmount(
        UserAllocation calldata alloc
    ) public view virtual override returns (uint256 claimableAmount) {
        LinearVestingStorage.Storage storage strg = LinearVestingStorage
            .layout();

        if (strg.ledger.startTime > block.timestamp) return 0;

        uint256 amount = alloc.amount;

        if (block.timestamp < strg.ledger.endTime) {
            claimableAmount = _claimableAmount(
                amount,
                alloc.startAmount,
                1e36
            );
        } else {
            claimableAmount = amount;
        }

        claimableAmount -= strg.userClaims[alloc.user];
    }

    /**
     * @dev Internal function to allow test on precision.
     * @param amount Total amount of tokens a user will claim.
     * @param startAmount Initial amount of tokens a user had unlocked before vesting starts.
     * @param precision Precision to use for the calculation - set a 1e36 by default.
     */
    function _claimableAmount(
        uint256 amount,
        uint256 startAmount,
        uint256 precision
    ) internal view returns (uint256) {
        Ledger memory ledger = LinearVestingStorage.layout().ledger;

        uint256 timePassed = block.timestamp - ledger.startTime;
        uint256 totalTime = ledger.endTime - ledger.startTime; // endTime < startTime, 0 is impossible
        uint256 timePassedRatio = (timePassed * precision) / totalTime; // result on 10^36

        /**
         * @dev with 1e36 precision, calculation safe with tokens up to 10^40,
         *      max uint256 is 2^256-1 = 1.15e77
         */
        return
            (((amount - startAmount) * timePassedRatio) / precision) +
            startAmount;
    }

    function renounceClaimAndRefund() external payable virtual {
        _renounceClaim();

        SetUp storage setUp = LinearVestingStorage.layout().setUp;

        if (setUp.ido == address(0)) {
            revert NoIDO();
        }

        IIDOWritableRestricted(setUp.ido).autoRefund(msg.sender);
    }

    function _renounceClaim() internal {
        LinearVestingStorage.Storage storage strg = LinearVestingStorage
            .layout();

        if (strg.refundStart == 0 || strg.refundEnd == 0) {
            revert RefundNotEnabled();
        }
        if (strg.userClaims[msg.sender] > 0) {
            revert AlreadyClaimedOrRenounced();
        }

        strg.userClaims[msg.sender] = type(uint256).max;
    }
}

File 5 of 63 : LinearVestingOAppTypes.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.23;

abstract contract LinearVestingOAppTypes {
    event RenouncedClaimAndSentCrosschainRefund(
        address indexed user,
        uint32 dstEID,
        bytes32 indexed guid,
        uint256 fee
    );
}

File 6 of 63 : LinearVestingOAppStorage.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.23;

import {OAppConfigurator} from "../../common/oapp/OAppConfigurator.sol";
import {ILayerZeroEndpointV2} from "@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol";

library LinearVestingOAppStorage {
    struct LinearVestingOAppStruct {
        OAppConfigurator.OAppSetUp setUp;
        ILayerZeroEndpointV2 endpoint;
        uint32 srcEID;
    }

    bytes32 public constant LINEARVESTING_OAPP_STORAGE =
        keccak256("linearvesting.oapp.storage");

    function layout()
        internal
        pure
        returns (LinearVestingOAppStruct storage lvOAppStruct)
    {
        bytes32 position = LINEARVESTING_OAPP_STORAGE;
        assembly {
            lvOAppStruct.slot := position
        }
    }
}

File 7 of 63 : ILinearVestingOApp.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.23;

import {IOAppConfigurator} from "../../common/oapp/IOAppConfigurator.sol";

interface ILinearVestingOApp {
    function initialize(
        address _owner,
        address _token,
        address _srcEndpoint
    ) external;

    /// @notice Renounces the ability to claim and refund tokens
    /// @param _options Additional options for the LayerZero message
    /// @dev This function is payable to cover LayerZero fees
    function renounceClaimAndRefund(bytes memory _options) external payable;

    /// @notice Updates the LayerZero configuration
    /// @param _setUp The new OApp setup configuration
    function updateLzConfig(
        IOAppConfigurator.OAppSetUp calldata _setUp
    ) external;

    /// @notice Retrieves the current OApp setup configuration
    /// @return The current OAppSetUp struct
    function getOAppSetUp()
        external
        view
        returns (IOAppConfigurator.OAppSetUp memory);
}

File 8 of 63 : MessageCodec.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.23;

import {console2} from "forge-std/console2.sol";

/// @title AddressMessageCodec
/// @notice A library for encoding and decoding address messages across different blockchain types
/// @dev Supports EVM and non-EVM address types
library AddressMessageCodec {
    /// @notice Thrown when trying to decode a non-EVM address as EVM
    error NotEVMAddress();
    /// @notice Thrown when trying to decode an EVM address as non-EVM
    error NotNonEVMAddress();

    /// @notice Thrown when trying to decode a message with an invalid length
    error InvalidMessageLength();

    /// @dev Constant representing EVM address type
    uint8 internal constant EVM_ADDRESS_TYPE = 0;
    /// @dev Constant representing non-EVM address type
    uint8 internal constant NON_EVM_ADDRESS_TYPE = 1;

    /// @dev Offset for the address type in the encoded message
    uint8 internal constant TYPE_OFFSET = 0;
    /// @dev Offset for the address data in the encoded message
    uint8 internal constant ADDRESS_OFFSET = 1;

    /// @notice Encodes an address with its type
    /// @param _type The type of the address (EVM or non-EVM)
    /// @param _address The address bytes
    /// @return The encoded address message
    function encode(
        uint8 _type,
        bytes memory _address
    ) internal pure returns (bytes memory) {
        return abi.encodePacked(_type, _address);
    }

    /// @notice Encodes an EVM address
    /// @param _address The EVM address to encode
    /// @return The encoded EVM address message
    function encode(address _address) internal pure returns (bytes memory) {
        return encode(EVM_ADDRESS_TYPE, abi.encodePacked(_address));
    }

    /// @notice Encodes a non-EVM address
    /// @param _address The non-EVM address bytes32 to encode
    /// @return The encoded non-EVM address message
    function encodeNonEVM(
        bytes32 _address
    ) internal pure returns (bytes memory) {
        return encode(NON_EVM_ADDRESS_TYPE, abi.encodePacked(_address));
    }

    /// @notice Decodes the address type from an encoded message
    /// @param _message The encoded address message
    /// @return The decoded address type
    function decodeType(
        bytes calldata _message
    ) internal pure returns (uint8) {
        return uint8(bytes1(_message[TYPE_OFFSET:ADDRESS_OFFSET]));
    }

    /// @notice Decodes the address data from an encoded message
    /// @param _message The encoded address message
    /// @return The decoded address bytes
    function decodeAddress(
        bytes calldata _message
    ) internal pure returns (bytes memory) {
        return _message[ADDRESS_OFFSET:];
    }

    /// @notice Decodes an EVM address from an encoded message
    /// @param _message The encoded address message
    /// @return The decoded EVM address
    /// @dev Reverts if the message is not an EVM address type
    function decodeEVM(
        bytes calldata _message
    ) internal pure returns (address) {
        if (!isEVM(_message)) {
            revert NotEVMAddress();
        }

        if (decodeAddress(_message).length != 20) {
            revert InvalidMessageLength();
        }

        return address(bytes20(bytes32(decodeAddress(_message))));
    }

    /// @notice Decodes a non-EVM address from an encoded message
    /// @param _message The encoded address message
    /// @return The decoded non-EVM address bytes32
    /// @dev Reverts if the message is not a non-EVM address type
    function decodeNonEVM(
        bytes calldata _message
    ) internal pure returns (bytes32) {
        if (!isNonEVM(_message)) {
            revert NotNonEVMAddress();
        }
        return bytes32(decodeAddress(_message));
    }

    /// @notice Checks if the encoded message is an EVM address
    /// @param _message The encoded address message
    /// @return True if the message is an EVM address, false otherwise
    function isEVM(bytes calldata _message) internal pure returns (bool) {
        return decodeType(_message) == EVM_ADDRESS_TYPE;
    }

    /// @notice Checks if the encoded message is a non-EVM address
    /// @param _message The encoded address message
    /// @return True if the message is a non-EVM address, false otherwise
    function isNonEVM(bytes calldata _message) internal pure returns (bool) {
        return decodeType(_message) == NON_EVM_ADDRESS_TYPE;
    }
}

/// @title TimePeriodMessageCodec
/// @notice A library for encoding and decoding start and end period messages
library TimePeriodMessageCodec {
    /// @notice Thrown when the message length is not exactly 8 bytes
    error InvalidMessageLength();

    /// @notice Encodes start and end periods into a byte message
    /// @param _start The start period (uint32)
    /// @param _end The end period (uint32)
    /// @return The encoded message containing start and end periods
    function encode(
        uint32 _start,
        uint32 _end
    ) internal pure returns (bytes memory) {
        return abi.encodePacked(_start, _end);
    }

    /// @notice Decodes a byte message into start and end periods
    /// @param _message The encoded message containing start and end periods
    /// @return start The decoded start period (uint32)
    /// @return end The decoded end period (uint32)
    /// @dev Reverts if the message length is not exactly 8 bytes
    function decode(
        bytes calldata _message
    ) internal pure returns (uint32 start, uint32 end) {
        if (_message.length != 8) revert InvalidMessageLength();
        start = uint32(bytes4(_message[0:4]));
        end = uint32(bytes4(_message[4:8]));
    }
}

File 9 of 63 : OAppConfigurator.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.23;

import {OApp} from "layerzero/oapp/OApp.sol";
import {ILayerZeroEndpointV2, MessagingFee, MessagingReceipt, Origin} from "@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol";
import {IExecutor} from "layerzero/messagelib/interfaces/IExecutor.sol";

import {IOAppConfigurator} from "./IOAppConfigurator.sol";

abstract contract OAppConfigurator is OApp, IOAppConfigurator {
    constructor(
        address _srcEndpoint,
        address _owner
    ) OApp(_srcEndpoint, _owner) {}

    /// @inheritdoc IOAppConfigurator
    function quote(
        uint32 _eid,
        bytes calldata _payload,
        bytes calldata _options
    ) public view returns (uint256 nativeFee, uint256 lzTokenFee) {
        MessagingFee memory fee = _quote(_eid, _payload, _options, false);
        return (fee.nativeFee, fee.lzTokenFee);
    }

    function _initializeOApp(address _srcEndpoint, address _owner) internal {
        endpoint = ILayerZeroEndpointV2(_srcEndpoint);
        if (_owner == address(0)) revert InvalidDelegate();
        endpoint.setDelegate(_owner);
        _transferOwnership(_owner);
    }

    function _lzConfig(
        ILayerZeroEndpointV2 endpoint,
        OAppSetUp memory setUp
    ) internal {
        _validateOAppSetUp(setUp);

        setPeer(setUp.dstEID, bytes32(abi.encode(setUp.dstAddress)));

        endpoint.setSendLibrary(
            address(this),
            setUp.dstEID,
            setUp.sendLibrary
        );

        endpoint.setReceiveLibrary(
            address(this),
            setUp.dstEID,
            setUp.receiveLibrary,
            0
        );
    }

    function _validateOAppSetUp(OAppSetUp memory setUp) private pure {
        if (setUp.dstEID == 0) {
            revert InvalidSetUpDstEID();
        }
        if (setUp.dstAddress == address(0)) {
            revert InvalidSetUpDstAddress();
        }
        if (setUp.sendLibrary == address(0)) {
            revert InvalidSetUpSendLibrary();
        }
        if (setUp.receiveLibrary == address(0)) {
            revert InvalidSetUpReceiveLibrary();
        }
    }
}

File 10 of 63 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }

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

File 11 of 63 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)

pragma solidity ^0.8.0;
import {Initializable} from "../proxy/utils/Initializable.sol";

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    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;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 12 of 63 : IERC20Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 13 of 63 : SafeERC20Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20Upgradeable.sol";
import "../extensions/IERC20PermitUpgradeable.sol";
import "../../../utils/AddressUpgradeable.sol";

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

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

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

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20Upgradeable token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20Upgradeable token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

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

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20PermitUpgradeable token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20Upgradeable token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20Upgradeable token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

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

File 14 of 63 : ILayerZeroEndpointV2.sol
// 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;
}

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

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

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

    event PacketDelivered(Origin origin, address receiver);

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

    event LzTokenSet(address token);

    event DelegateSet(address sender, address delegate);

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

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

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

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

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

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

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

    function setLzToken(address _lzToken) external;

    function lzToken() external view returns (address);

    function nativeToken() external view returns (address);

    function setDelegate(address _delegate) external;
}

File 15 of 63 : LinearVestingStruct.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

/** @title UserAllocation is used to claim the user's allocation
 * @param user is the address of the user
 * @param amount is the total amount of tokens to claim
 * @param startAmount is the amount of tokens available at TGE
 */
struct UserAllocation {
    address user;
    uint256 amount;
    uint256 startAmount;
}

File 16 of 63 : LinearVestingTypes.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.23;

abstract contract LinearVestingTypes {
    event LinearVestingSetUp(SetUp setUp);

    event SettingsUpdated(
        uint32 indexed start,
        uint32 indexed end,
        uint256 totalVested
    );
    event Claimed(address indexed token, address indexed user, uint256 amount);

    event RefundPeriodUpdated(uint256 indexed start, uint256 indexed end);

    error InvalidTimings();
    error AllocNotFound();
    error NoTokensToClaim();
    error InvalidMerkleRoot();
    error ZeroTokenAddress();
    error NotAuthorized();
    error HasRefunded();
    error NoIDO();
    error RefundNotEnabled();
    error AlreadyClaimedOrRenounced();
    error isCrosschainIDO();

    /**
     * @notice Struct reprensenting the main setup of LinearVesting.
     *
     * @param vestedToken Address of the token to be claimed.
     * @param ido Address of the IDO contract, the vesting is linked to.
     */
    struct SetUp {
        address vestedToken;
        address ido;
    }

    /**
     * @dev Struct representing the ledger/main storage of LinearVesting.
     *
     * @param startTime Start time of the vesting.
     * @param endTime End time of the vesting.
     * @param totalVested amount of vested tokens over the whole existence of the contract (to be claimed by users)
     * @param totalClaimed amount of claimed tokens over the whole existence of the contract.
     * @param merkleRoot Merkle root of user allocations.
     */
    struct Ledger {
        uint32 startTime;
        uint32 endTime;
        uint256 totalVested;
        uint256 totalClaimed;
        bytes32 merkleRoot;
    }
}

abstract contract LinearVestingOAppTypes {
    event RenouncedClaimAndSentCrosschainRefund(
        address indexed user,
        uint32 dstEID,
        bytes32 indexed guid,
        uint256 fee
    );

    event LinearVestingOAppSetUp(
        address indexed token,
        address srcEndpoint,
        uint32 srcEID,
        uint32 dstEID,
        address indexed dstAddress
    );

    error InvalidOrigin(uint32 eid, address sender);

    /**
     * @notice Struct representing the setup parameters for LinearVestingOApp.
     * @param srcEndpoint Address of the source endpoint for LayerZero communication.
     * @param dstEID Destination chain's endpoint ID.
     * @param dstAddress Address of the destination contract on the other chain.
     * @param executor Address of the executor contract.
     * @param nativeCap Maximum amount of native tokens that can be sent in a single transaction.
     * @param sendLibrary Address of the send library for LayerZero.
     * @param receiveLibrary Address of the receive library for LayerZero.
     * @param receiveTimeout Timeout period for receiving messages.
     */
    struct OAppSetUp {
        address srcEndpoint;
        uint32 dstEID;
        address dstAddress;
        address executor;
        uint256 nativeCap;
        address sendLibrary;
        address receiveLibrary;
        uint32 receiveTimeout;
    }
}

File 17 of 63 : ILinearVestingReadable.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

import {UserAllocation} from "../LinearVestingStruct.sol";

interface ILinearVestingReadable {
    /**
     * @notice Get the claimable amount for a user.
     * @param alloc User allocation.
     */
    function getClaimableAmount(
        UserAllocation calldata alloc
    ) external view returns (uint256 claimableAmount);

    function totalVested() external view returns (uint256);

    function totalClaimed() external view returns (uint256);

    function merkleRoot() external view returns (bytes32);

    function startTime() external view returns (uint32);

    function endTime() external view returns (uint32);

    function userClaims(address) external view returns (uint256);

    function refundStart() external view returns (uint256);

    function refundEnd() external view returns (uint256);

    function isCrosschainIDO() external view returns (bool);
}

File 18 of 63 : LinearVestingReadable.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

import {ILinearVestingReadable} from "./ILinearVestingReadable.sol";

import {LinearVestingStorage} from "../LinearVestingStorage.sol";

abstract contract LinearVestingReadable is ILinearVestingReadable {
    function startTime() external view returns (uint32) {
        return LinearVestingStorage.layout().ledger.startTime;
    }

    function endTime() external view returns (uint32) {
        return LinearVestingStorage.layout().ledger.startTime;
    }

    function totalVested() external view returns (uint256) {
        return LinearVestingStorage.layout().ledger.totalVested;
    }

    function totalClaimed() external view returns (uint256) {
        return LinearVestingStorage.layout().ledger.totalClaimed;
    }

    function merkleRoot() external view returns (bytes32) {
        return LinearVestingStorage.layout().ledger.merkleRoot;
    }

    function userClaims(address user) external view returns (uint256) {
        return LinearVestingStorage.layout().userClaims[user];
    }

    function refundStart() external view returns (uint256) {
        return LinearVestingStorage.layout().refundStart;
    }

    function refundEnd() external view returns (uint256) {
        return LinearVestingStorage.layout().refundEnd;
    }

    function isCrosschainIDO() external view returns (bool) {
        return LinearVestingStorage.layout().isCrosschainIDO;
    }
}

File 19 of 63 : ILinearVestingWritable.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

import {UserAllocation} from "../LinearVestingStruct.sol";

interface ILinearVestingWritable {
    /**
     * @notice Claim tokens for a user.
     * @param alloc User allocation.
     * @param proof Merkle proof.
     */
    function claim(
        UserAllocation calldata alloc,
        bytes32[] calldata proof
    ) external returns (bool);

    /**
     * @notice Get the claimable amount for a user.
     * @param alloc User allocation.
     */
    function getClaimableAmount(
        UserAllocation calldata alloc
    ) external view returns (uint256 claimableAmount);
}

File 20 of 63 : IIDOReadable.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.23;

import {IDOStorage} from "../IDOStorage.sol";
import {IDOTypes} from "../IDOTypes.sol";

interface IIDOReadable {
    function getSetUp() external view returns (IDOTypes.SetUp memory);

    function getTotalBUSDReceivedInAllTier() external view returns (uint256);

    function getRefundPeriod()
        external
        view
        returns (uint256 start, uint256 end);

    function isCrosschainIDO()
        external
        view
        returns (bool, address refundCaller);

    function rootHash() external view returns (bytes32);

    function getTierDetails(
        uint256 tier
    ) external view returns (IDOTypes.Tier memory);

    function getUserDetails(
        address user
    ) external view returns (IDOTypes.User memory);

    function getUserRefundEligibility(
        address user
    ) external view returns (bool);
}

File 21 of 63 : IOAppConfigurator.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.23;

interface IOAppConfigurator {
    /// @notice Thrown when the origin of a message is invalid
    /// @param eid The endpoint ID of the origin
    /// @param sender The address of the sender
    error InvalidOrigin(uint32 eid, address sender);

    /// @notice Thrown when the source endpoint in the setup is invalid
    error InvalidSetUpSrcEndpoint();

    /// @notice Thrown when the destination endpoint ID in the setup is invalid
    error InvalidSetUpDstEID();

    /// @notice Thrown when the destination address in the setup is invalid
    error InvalidSetUpDstAddress();

    /// @notice Thrown when the executor in the setup is invalid
    error InvalidSetUpExecutor();

    /// @notice Thrown when the send library in the setup is invalid
    error InvalidSetUpSendLibrary();

    /// @notice Thrown when the receive library in the setup is invalid
    error InvalidSetUpReceiveLibrary();

    /// @notice Thrown when the receive timeout in the setup is invalid
    error InvalidSetUpReceiveTimeout();

    /// @notice Emitted when the OApp is set up
    /// @param srcEndpoint The address of the source endpoint
    /// @param dstAddress The address of the destination
    /// @param srcEID The endpoint ID of the source
    /// @param dstEID The endpoint ID of the destination
    event OnOAppSetUp(
        address indexed srcEndpoint,
        address indexed dstAddress,
        uint32 srcEID,
        uint32 dstEID
    );

    /// @notice Structure for OApp setup configuration
    /// @param dstEID The endpoint ID of the destination
    /// @param dstAddress The address of the destination
    /// @param sendLibrary The address of the send library
    /// @param receiveLibrary The address of the receive library
    struct OAppSetUp {
        uint32 dstEID;
        address dstAddress;
        address sendLibrary;
        address receiveLibrary;
    }

    /// @notice Quotes the fee for sending a message
    /// @param _eid The endpoint ID of the destination
    /// @param _payload The payload of the message
    /// @param _options LayerZero options for the message
    /// @return nativeFee The fee in native tokens
    /// @return lzTokenFee The fee in LZ tokens
    function quote(
        uint32 _eid,
        bytes calldata _payload,
        bytes calldata _options
    ) external view returns (uint256 nativeFee, uint256 lzTokenFee);
}

File 22 of 63 : IIDOWritableRestricted.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.23;

import {IDOTypes} from "../../IDOTypes.sol";

interface IIDOWritableRestricted {
    function initialize(IDOTypes.SetUp memory setUp_) external;

    function updateMaxCap(uint256 _maxCap) external;

    function updateStartTime(uint256 newsaleStart) external;

    function updateEndTime(uint256 newSaleEnd) external;

    function updateTiers(
        uint256[] memory _tier,
        uint256[] memory _maxTierCap,
        uint256[] memory _minUserCap,
        uint256[] memory _maxUserCap,
        uint256[] memory _tierUsers
    ) external;

    function updateHash(bytes32 _hash) external;

    /**
     * @dev Function to verify the user's eligibility to participate in the sale using merkle tree
     * @dev Merkle leaf should be keccak256(abi.encode(wallet, tier, chainId, saleContractAddress))
     * @param _wallet Address of the user
     * @param _tier Tier of the user
     * @param proof Merkle proof of the user
     * @param _rootHash Root hash of the merkle tree
     */
    function verify(
        address _wallet,
        uint256 _tier,
        bytes32[] calldata proof,
        bytes32 _rootHash
    ) external view returns (bool);

    /**
     * @dev Function to set the refund period
     * @param _refundStart Start time of the refund period
     * @param _refundEnd End time of the refund period
     */
    function setRefundPeriod(
        uint256 _refundStart,
        uint256 _refundEnd
    ) external payable;

    /**
     * @dev Function to set the refund caller address which differs depdning on crosschain compatibility:
                    - LayerZero endpoint address : when IDO happened on a chain BUT LinearVesting deployed on another chain.
                    - LinearVesting address : when IDO & LinearVesting are on the same network.
     * @param _setRefundCaller Address of the linear vesting contract
     */
    function setRefundCaller(address _setRefundCaller) external;

    /**
     * @dev Function which can only be called by the `refundCaller` or lzEndpoint which refunds the user.
     * @param user Address of the user to refund
     */
    function autoRefund(address user) external;

    function withdrawFunds(address token, address to, uint256 amount) external;
}

File 23 of 63 : LinearVestingWritableRestricted.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

import {IERC20Upgradeable} from "openzeppelin-contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import {SafeERC20Upgradeable} from "openzeppelin-contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol";
import {Initializable} from "openzeppelin-contracts-upgradeable/proxy/utils/Initializable.sol";
import {PausableUpgradeable} from "openzeppelin-contracts-upgradeable/security/PausableUpgradeable.sol";
import {ReentrancyGuardUpgradeable} from "openzeppelin-contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import {AccessControlEnumerableUpgradeable} from "openzeppelin-contracts-upgradeable/access/AccessControlEnumerableUpgradeable.sol";

import {ILinearVestingWritableRestricted} from "./ILinearVestingWritableRestricted.sol";

import {LinearVestingTypes} from "../../LinearVestingTypes.sol";
import {LinearVestingStorage} from "../../LinearVestingStorage.sol";

/**
 * @title LinearVesting contract
 * @notice A contract to handle linear vesting of tokens.
 * @dev This contract is NOT MADE to be used:
 *           - for a crosschain linear vesting. A vesting of a token will always happen on one and single chain,
 *           - to claim deflationary tokens.
 */
abstract contract LinearVestingWritableRestricted is
    Initializable,
    PausableUpgradeable,
    ReentrancyGuardUpgradeable,
    AccessControlEnumerableUpgradeable,
    LinearVestingTypes,
    ILinearVestingWritableRestricted
{
    using SafeERC20Upgradeable for IERC20Upgradeable;

    function initialize(
        address _token,
        address _ido
    ) public virtual initializer {
        __Pausable_init();
        __ReentrancyGuard_init();

        if (_token == address(0)) {
            revert ZeroTokenAddress();
        }

        SetUp storage setUp = LinearVestingStorage.layout().setUp;

        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);

        setUp.vestedToken = _token;
        setUp.ido = _ido;

        emit LinearVestingSetUp(setUp);
    }

    function pause() public onlyRole(DEFAULT_ADMIN_ROLE) {
        _pause();
    }

    function unpause() public onlyRole(DEFAULT_ADMIN_ROLE) {
        _unpause();
    }

    /// @inheritdoc ILinearVestingWritableRestricted
    function update(
        bytes32 merkleRoot_,
        uint32 startTime_,
        uint32 endTime_,
        uint256 toClaim
    ) external override onlyRole(DEFAULT_ADMIN_ROLE) returns (bool) {
        if (merkleRoot_ == bytes32(0)) {
            revert InvalidMerkleRoot();
        }

        if (endTime_ < startTime_) {
            revert InvalidTimings();
        }

        Ledger storage ledger = LinearVestingStorage.layout().ledger;

        ledger.merkleRoot = merkleRoot_;
        ledger.startTime = startTime_;
        ledger.endTime = endTime_;

        if (toClaim > 0) {
            IERC20Upgradeable(LinearVestingStorage.layout().setUp.vestedToken)
                .safeTransferFrom(msg.sender, address(this), toClaim);
            ledger.totalVested += toClaim;
        }

        emit SettingsUpdated(startTime_, endTime_, ledger.totalVested);

        return true;
    }

    /// @notice Only IDO is allowed to call this function in a non-crosschain config.
    /// Otherwise LayerZero will call _setRefundPeriod.
    function setRefundPeriod(
        uint256 _refundStart,
        uint256 _refundEnd
    ) external virtual {
        LinearVestingStorage.Storage storage strg = LinearVestingStorage
            .layout();

        if (strg.isCrosschainIDO) {
            revert isCrosschainIDO();
        }

        if (strg.setUp.ido != msg.sender) {
            revert NotAuthorized();
        }

        _setRefundPeriod(strg, _refundStart, _refundEnd);
    }

    /// @dev Only called by LayerZero endpoint call
    function _setRefundPeriod(
        LinearVestingStorage.Storage storage strg,
        uint256 _refundStart,
        uint256 _refundEnd
    ) internal {
        strg.refundStart = _refundStart;
        strg.refundEnd = _refundEnd;

        emit RefundPeriodUpdated(_refundStart, _refundEnd);
    }
}

File 24 of 63 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

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

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

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

File 25 of 63 : console2.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;

import {console as console2} from "./console.sol";

File 26 of 63 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.2) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 proofLen = proof.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proofLen - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            require(proofPos == proofLen, "MerkleProof: invalid multiproof");
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 proofLen = proof.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proofLen - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            require(proofPos == proofLen, "MerkleProof: invalid multiproof");
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 27 of 63 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.2;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```solidity
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 *
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     * @custom:oz-retyped-from bool
     */
    uint8 private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint8 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts.
     *
     * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a
     * constructor.
     *
     * Emits an {Initialized} event.
     */
    modifier initializer() {
        bool isTopLevelCall = !_initializing;
        require(
            (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),
            "Initializable: contract is already initialized"
        );
        _initialized = 1;
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * A reinitializer may be used after the original initialization step. This is essential to configure modules that
     * are added through upgrades and that require initialization.
     *
     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
     * cannot be nested. If one is invoked in the context of another, execution will revert.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     *
     * WARNING: setting the version to 255 will prevent any future reinitialization.
     *
     * Emits an {Initialized} event.
     */
    modifier reinitializer(uint8 version) {
        require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
        _initialized = version;
        _initializing = true;
        _;
        _initializing = false;
        emit Initialized(version);
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     *
     * Emits an {Initialized} event the first time it is successfully executed.
     */
    function _disableInitializers() internal virtual {
        require(!_initializing, "Initializable: contract is initializing");
        if (_initialized != type(uint8).max) {
            _initialized = type(uint8).max;
            emit Initialized(type(uint8).max);
        }
    }

    /**
     * @dev Returns the highest version that has been initialized. See {reinitializer}.
     */
    function _getInitializedVersion() internal view returns (uint8) {
        return _initialized;
    }

    /**
     * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
     */
    function _isInitializing() internal view returns (bool) {
        return _initializing;
    }
}

File 28 of 63 : OApp.sol
// 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.
     * @return senderVersion The version of the OAppSender.sol implementation.
     * @return receiverVersion The version of the OAppReceiver.sol implementation.
     */
    function oAppVersion()
        public
        pure
        virtual
        override(OAppSender, OAppReceiver)
        returns (uint64 senderVersion, uint64 receiverVersion)
    {
        return (SENDER_VERSION, RECEIVER_VERSION);
    }
}

File 29 of 63 : IExecutor.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0;

import { Origin } from "@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol";

import { IWorker } from "./IWorker.sol";
import { ILayerZeroExecutor } from "./ILayerZeroExecutor.sol";

interface IExecutor is IWorker, ILayerZeroExecutor {
    struct DstConfigParam {
        uint32 dstEid;
        uint64 baseGas;
        uint16 multiplierBps;
        uint128 floorMarginUSD;
        uint128 nativeCap;
    }

    struct DstConfig {
        uint64 baseGas; // for verifying / fixed calldata overhead
        uint16 multiplierBps;
        uint128 floorMarginUSD; // uses priceFeed PRICE_RATIO_DENOMINATOR
        uint128 nativeCap;
    }

    struct ExecutionParams {
        address receiver;
        Origin origin;
        bytes32 guid;
        bytes message;
        bytes extraData;
        uint256 gasLimit;
    }

    struct NativeDropParams {
        address receiver;
        uint256 amount;
    }

    event DstConfigSet(DstConfigParam[] params);
    event NativeDropApplied(Origin origin, uint32 dstEid, address oapp, NativeDropParams[] params, bool[] success);

    function dstConfig(uint32 _dstEid) external view returns (uint64, uint16, uint128, uint128);
}

File 30 of 63 : IERC20PermitUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

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

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

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

File 31 of 63 : IDOTypes.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.23;

abstract contract IDOTypes {
    bytes32 public constant DEFAULT_WITHDRAW_ROLE =
        keccak256("DEFAULT_WITHDRAW_ROLE");

    event DestinationChainUpdated(
        uint16 indexed oldChainId,
        uint16 indexed newChainId
    );
    event UserInvestment(
        address indexed user,
        uint256 amount,
        uint8 indexed phase
    );
    event UserRefund(address indexed user, uint256 amount);
    event RefundPeriodSet(uint256 start, uint256 end);
    event RefundEnabled(bool enabled);
    event LinearVestingSet(address indexed linearVesting);
    event FundsWithdrawn(address token, address to, uint256 amount);

    error ZeroMaxCap();
    error InvalidTimings();
    error ZeroTiers();
    error ZeroTokenAddress();
    error ZeroUsers();
    error ZeroOwnerAddress();
    error ZeroWithdrawerAddress();
    error SaleAlreadyStarted();
    error InvalidSaleEnd();
    error LengthsMismatch();
    error InvalidTierNumber();
    error InvalidMaxTierCap();
    error InvalidMaxUserCap();
    error ZeroUsersInTier();
    error UserNotAuthenticated();
    error UnknownRefundCaller(address caller);
    error SaleNotStarted();
    error SaleEnded();
    error ExceedsPoolMaxCap();
    error UserNotWhitelisted();
    error AmountLessThanUserMinCap();
    error AmountGreaterThanUserMaxCap();
    error AmountGreaterThanTierMaxCap();
    error InsufficientAllowance();
    error InvalidRefundPeriod();
    error ZeroLinearVesting();
    error RefundPeriodNotActive();
    error LinearVestingNotSet();
    error NoInvestmentFound();
    error AlreadyRefunded();
    error TokensAlreadyClaimed();
    error AmountMustBeGreaterThanZero();
    error InsufficientFunds();
    error CrosschainIDO();

    struct Tier {
        uint256 maxTierCap;
        uint256 minUserCap;
        uint256 maxUserCap;
        uint256 amountRaised;
        uint256 users;
    }

    struct User {
        uint256 investedAmount;
        uint248 tier;
        bool hasRefunded;
    }

    /**
     * @notice Struct reprensenting the main setup of the IDO.
     */
    struct SetUp {
        address owner;
        uint32 saleStart;
        uint32 saleEnd;
        uint32 totalUsers;
        uint8 noOfTiers;
        uint8 phaseNo;
        address withdrawer;
        address paymentToken;
        uint256 maxCap;
        string name;
    }
}

File 32 of 63 : IDOStorage.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.23;

import {IERC20} from "openzeppelin-contracts/token/ERC20/IERC20.sol";

import {IDOTypes} from "./IDOTypes.sol";

/**
 * @title IDOStorage
 * @notice Mapps the storage layout of the {IDO} contract.
 * @dev Diamond proxy (ERC-2535) storage style.
 */
library IDOStorage {
    /**
     * @notice Struct reprensenting the whole storage layout of the IDO contract.
     *
     * @param setUp Main setup of the IDO.
     * @param isCrosschainIDO Boolean to check if the IDO is crosschain or on same network as the LinearVesting.
     *                      It's only set to true by LzIDO constructor.
     * @param refundCaller 
                    - LinearVesting address : when IDO & LinearVesting are on the same network.
                    - LayerZero endpoint address : when IDO happened on a chain BUT LinearVesting deployed on another chain.
     * @param totalBUSDReceivedInAllTier Total BUSD received in all tiers.
     * @param refundStart Start time of the refund period.
     * @param refundEnd End time of the refund period.
     * @param phaseNo Phase number of the IDO.
     * @param rootHash Root hash of the Merkle tree.
     * @param tierDetails Mapping of tier number to its details.
     * @param userDetails Mapping of user address to its details.
     */
    struct IDOStruct {
        IDOTypes.SetUp setUp;
        bool isCrosschainIDO;
        address refundCaller;
        uint256 totalBUSDReceivedInAllTier;
        uint32 refundStart;
        uint32 refundEnd;
        bytes32 rootHash;
        mapping(uint256 => IDOTypes.Tier) tierDetails;
        mapping(address => IDOTypes.User) userDetails;
    }

    /// @notice Storage position of {IDOStruct} in {IDO} contract.
    bytes32 public constant IDO_STORAGE = keccak256("ido.storage");

    /**
     * @return idoStruct Whole storage of {IDO} contract.
     */
    function layout() internal pure returns (IDOStruct storage idoStruct) {
        bytes32 position = IDO_STORAGE;
        assembly {
            idoStruct.slot := position
        }
    }
}

File 33 of 63 : IMessageLibManager.sol
// 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;

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

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

    function setDefaultSendLibrary(uint32 _eid, address _newLib) external;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 34 of 63 : IMessagingComposer.sol
// 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);

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

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

File 35 of 63 : IMessagingContext.sol
// 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);
}

File 36 of 63 : IMessagingChannel.sol
// 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(
        address _receiver,
        uint32 _srcEid,
        bytes32 _sender,
        uint64 _nonce
    ) external view returns (bytes32);

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

File 37 of 63 : console.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;

library console {
    address constant CONSOLE_ADDRESS =
        0x000000000000000000636F6e736F6c652e6c6f67;

    function _sendLogPayloadImplementation(bytes memory payload) internal view {
        address consoleAddress = CONSOLE_ADDRESS;
        /// @solidity memory-safe-assembly
        assembly {
            pop(
                staticcall(
                    gas(),
                    consoleAddress,
                    add(payload, 32),
                    mload(payload),
                    0,
                    0
                )
            )
        }
    }

    function _castToPure(
      function(bytes memory) internal view fnIn
    ) internal pure returns (function(bytes memory) pure fnOut) {
        assembly {
            fnOut := fnIn
        }
    }

    function _sendLogPayload(bytes memory payload) internal pure {
        _castToPure(_sendLogPayloadImplementation)(payload);
    }

    function log() internal pure {
        _sendLogPayload(abi.encodeWithSignature("log()"));
    }

    function logInt(int256 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(int256)", p0));
    }

    function logUint(uint256 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256)", p0));
    }

    function logString(string memory p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string)", p0));
    }

    function logBool(bool p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
    }

    function logAddress(address p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address)", p0));
    }

    function logBytes(bytes memory p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes)", p0));
    }

    function logBytes1(bytes1 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0));
    }

    function logBytes2(bytes2 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0));
    }

    function logBytes3(bytes3 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0));
    }

    function logBytes4(bytes4 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0));
    }

    function logBytes5(bytes5 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0));
    }

    function logBytes6(bytes6 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0));
    }

    function logBytes7(bytes7 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0));
    }

    function logBytes8(bytes8 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0));
    }

    function logBytes9(bytes9 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0));
    }

    function logBytes10(bytes10 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0));
    }

    function logBytes11(bytes11 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0));
    }

    function logBytes12(bytes12 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0));
    }

    function logBytes13(bytes13 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0));
    }

    function logBytes14(bytes14 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0));
    }

    function logBytes15(bytes15 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0));
    }

    function logBytes16(bytes16 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0));
    }

    function logBytes17(bytes17 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0));
    }

    function logBytes18(bytes18 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0));
    }

    function logBytes19(bytes19 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0));
    }

    function logBytes20(bytes20 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0));
    }

    function logBytes21(bytes21 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0));
    }

    function logBytes22(bytes22 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0));
    }

    function logBytes23(bytes23 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0));
    }

    function logBytes24(bytes24 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0));
    }

    function logBytes25(bytes25 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0));
    }

    function logBytes26(bytes26 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0));
    }

    function logBytes27(bytes27 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0));
    }

    function logBytes28(bytes28 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0));
    }

    function logBytes29(bytes29 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0));
    }

    function logBytes30(bytes30 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0));
    }

    function logBytes31(bytes31 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0));
    }

    function logBytes32(bytes32 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0));
    }

    function log(uint256 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256)", p0));
    }

    function log(int256 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(int256)", p0));
    }

    function log(string memory p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string)", p0));
    }

    function log(bool p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
    }

    function log(address p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address)", p0));
    }

    function log(uint256 p0, uint256 p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256)", p0, p1));
    }

    function log(uint256 p0, string memory p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string)", p0, p1));
    }

    function log(uint256 p0, bool p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool)", p0, p1));
    }

    function log(uint256 p0, address p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address)", p0, p1));
    }

    function log(string memory p0, uint256 p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256)", p0, p1));
    }

    function log(string memory p0, int256 p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,int256)", p0, p1));
    }

    function log(string memory p0, string memory p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1));
    }

    function log(string memory p0, bool p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1));
    }

    function log(string memory p0, address p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1));
    }

    function log(bool p0, uint256 p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256)", p0, p1));
    }

    function log(bool p0, string memory p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1));
    }

    function log(bool p0, bool p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1));
    }

    function log(bool p0, address p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1));
    }

    function log(address p0, uint256 p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256)", p0, p1));
    }

    function log(address p0, string memory p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1));
    }

    function log(address p0, bool p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1));
    }

    function log(address p0, address p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1));
    }

    function log(uint256 p0, uint256 p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256)", p0, p1, p2));
    }

    function log(uint256 p0, uint256 p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string)", p0, p1, p2));
    }

    function log(uint256 p0, uint256 p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool)", p0, p1, p2));
    }

    function log(uint256 p0, uint256 p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address)", p0, p1, p2));
    }

    function log(uint256 p0, string memory p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256)", p0, p1, p2));
    }

    function log(uint256 p0, string memory p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string)", p0, p1, p2));
    }

    function log(uint256 p0, string memory p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool)", p0, p1, p2));
    }

    function log(uint256 p0, string memory p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address)", p0, p1, p2));
    }

    function log(uint256 p0, bool p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256)", p0, p1, p2));
    }

    function log(uint256 p0, bool p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string)", p0, p1, p2));
    }

    function log(uint256 p0, bool p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool)", p0, p1, p2));
    }

    function log(uint256 p0, bool p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address)", p0, p1, p2));
    }

    function log(uint256 p0, address p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256)", p0, p1, p2));
    }

    function log(uint256 p0, address p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string)", p0, p1, p2));
    }

    function log(uint256 p0, address p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool)", p0, p1, p2));
    }

    function log(uint256 p0, address p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address)", p0, p1, p2));
    }

    function log(string memory p0, uint256 p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256)", p0, p1, p2));
    }

    function log(string memory p0, uint256 p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string)", p0, p1, p2));
    }

    function log(string memory p0, uint256 p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool)", p0, p1, p2));
    }

    function log(string memory p0, uint256 p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address)", p0, p1, p2));
    }

    function log(string memory p0, string memory p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256)", p0, p1, p2));
    }

    function log(string memory p0, string memory p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2));
    }

    function log(string memory p0, string memory p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2));
    }

    function log(string memory p0, string memory p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2));
    }

    function log(string memory p0, bool p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256)", p0, p1, p2));
    }

    function log(string memory p0, bool p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2));
    }

    function log(string memory p0, bool p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2));
    }

    function log(string memory p0, bool p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2));
    }

    function log(string memory p0, address p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256)", p0, p1, p2));
    }

    function log(string memory p0, address p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2));
    }

    function log(string memory p0, address p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2));
    }

    function log(string memory p0, address p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2));
    }

    function log(bool p0, uint256 p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256)", p0, p1, p2));
    }

    function log(bool p0, uint256 p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string)", p0, p1, p2));
    }

    function log(bool p0, uint256 p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool)", p0, p1, p2));
    }

    function log(bool p0, uint256 p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address)", p0, p1, p2));
    }

    function log(bool p0, string memory p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256)", p0, p1, p2));
    }

    function log(bool p0, string memory p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2));
    }

    function log(bool p0, string memory p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2));
    }

    function log(bool p0, string memory p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2));
    }

    function log(bool p0, bool p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256)", p0, p1, p2));
    }

    function log(bool p0, bool p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2));
    }

    function log(bool p0, bool p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2));
    }

    function log(bool p0, bool p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2));
    }

    function log(bool p0, address p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256)", p0, p1, p2));
    }

    function log(bool p0, address p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2));
    }

    function log(bool p0, address p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2));
    }

    function log(bool p0, address p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2));
    }

    function log(address p0, uint256 p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256)", p0, p1, p2));
    }

    function log(address p0, uint256 p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string)", p0, p1, p2));
    }

    function log(address p0, uint256 p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool)", p0, p1, p2));
    }

    function log(address p0, uint256 p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address)", p0, p1, p2));
    }

    function log(address p0, string memory p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256)", p0, p1, p2));
    }

    function log(address p0, string memory p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2));
    }

    function log(address p0, string memory p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2));
    }

    function log(address p0, string memory p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2));
    }

    function log(address p0, bool p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256)", p0, p1, p2));
    }

    function log(address p0, bool p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2));
    }

    function log(address p0, bool p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2));
    }

    function log(address p0, bool p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2));
    }

    function log(address p0, address p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256)", p0, p1, p2));
    }

    function log(address p0, address p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2));
    }

    function log(address p0, address p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2));
    }

    function log(address p0, address p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2));
    }

    function log(uint256 p0, uint256 p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, uint256 p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, uint256 p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, uint256 p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,address)", p0, p1, p2, p3));
    }

    function log(uint256 p0, uint256 p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, uint256 p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, uint256 p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, uint256 p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,address)", p0, p1, p2, p3));
    }

    function log(uint256 p0, uint256 p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, uint256 p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, uint256 p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, uint256 p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,address)", p0, p1, p2, p3));
    }

    function log(uint256 p0, uint256 p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, uint256 p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, uint256 p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, uint256 p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,address)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,address)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,address)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,address)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,address)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,address)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,address)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,address)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,address)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,address)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,address)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,address)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,string)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,address)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,string)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,address)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,string)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,address)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,string)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,address)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,string)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,address)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,string)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,address)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,string)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,address)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,string)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,bool)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,address)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,string)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,bool)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,address)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,string)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,bool)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,address)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,string)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,bool)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,address)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,string)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,bool)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,address)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,string)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,bool)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,address)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,string)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,bool)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,address)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3));
    }
}

File 38 of 63 : ILinearVestingWritableRestricted.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

import {UserAllocation} from "../../LinearVestingStruct.sol";

interface ILinearVestingWritableRestricted {
    function initialize(address _token, address _ido) external;

    /**
     * @notice Update the merkle root and vesting period.
     * @param merkleRoot_ New merkle root.
     * @param startTime_ New start time. Can be set in past as we need such purpose, e.g. contract is
     *                   NOT deployed whereas the vesting period should have already started.
     * @param endTime_ New end time.
     * @param toClaim Amount of tokens to lock for claiming. If it's zero, tokens won't be transferred to the contract.
     */
    function update(
        bytes32 merkleRoot_,
        uint32 startTime_,
        uint32 endTime_,
        uint256 toClaim
    ) external returns (bool);

    function setRefundPeriod(
        uint256 _refundStart,
        uint256 _refundEnd
    ) external;
}

File 39 of 63 : PausableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import {Initializable} from "../proxy/utils/Initializable.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract PausableUpgradeable is Initializable, ContextUpgradeable {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    function __Pausable_init() internal onlyInitializing {
        __Pausable_init_unchained();
    }

    function __Pausable_init_unchained() internal onlyInitializing {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 40 of 63 : ReentrancyGuardUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;
import {Initializable} from "../proxy/utils/Initializable.sol";

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuardUpgradeable is Initializable {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    function __ReentrancyGuard_init() internal onlyInitializing {
        __ReentrancyGuard_init_unchained();
    }

    function __ReentrancyGuard_init_unchained() internal onlyInitializing {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 41 of 63 : AccessControlEnumerableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControlEnumerableUpgradeable.sol";
import "./AccessControlUpgradeable.sol";
import "../utils/structs/EnumerableSetUpgradeable.sol";
import {Initializable} from "../proxy/utils/Initializable.sol";

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerableUpgradeable is Initializable, IAccessControlEnumerableUpgradeable, AccessControlUpgradeable {
    using EnumerableSetUpgradeable for EnumerableSetUpgradeable.AddressSet;

    mapping(bytes32 => EnumerableSetUpgradeable.AddressSet) private _roleMembers;

    function __AccessControlEnumerable_init() internal onlyInitializing {
    }

    function __AccessControlEnumerable_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControlEnumerableUpgradeable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {_grantRole} to track enumerable memberships
     */
    function _grantRole(bytes32 role, address account) internal virtual override {
        super._grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {_revokeRole} to track enumerable memberships
     */
    function _revokeRole(bytes32 role, address account) internal virtual override {
        super._revokeRole(role, account);
        _roleMembers[role].remove(account);
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 42 of 63 : OAppReceiver.sol
// 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 = 1;

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

    /**
     * @notice Retrieves the address responsible for 'sending' composeMsg's to the Endpoint.
     * @return sender The address responsible for 'sending' composeMsg's to the Endpoint.
     *
     * @dev Applications can optionally choose to implement a separate composeMsg sender that is NOT the bridging layer.
     * @dev The default sender IS the OApp implementer.
     */
    function composeMsgSender() public view virtual returns (address sender) {
        return address(this);
    }

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

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

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

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

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

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

File 43 of 63 : OAppSender.sol
// 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.
     * @return receiverVersion The version of the OAppReceiver.sol contract.
     *
     * @dev Providing 0 as the default for OAppReceiver version. Indicates that the OAppReceiver is not implemented.
     * ie. this is a SEND only OApp.
     * @dev If the OApp uses both OAppSender and OAppReceiver, then this needs to be override returning the correct versions
     */
    function oAppVersion() public view virtual returns (uint64 senderVersion, uint64 receiverVersion) {
        return (SENDER_VERSION, 0);
    }

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

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

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

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

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

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

File 44 of 63 : OAppCore.sol
// 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 endpoint;

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

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

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

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

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

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

File 45 of 63 : IWorker.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0;

interface IWorker {
    event SetWorkerLib(address workerLib);
    event SetPriceFeed(address priceFeed);
    event SetDefaultMultiplierBps(uint16 multiplierBps);
    event SetSupportedOptionTypes(uint32 dstEid, uint8[] optionTypes);
    event Withdraw(address lib, address to, uint256 amount);

    error Worker_NotAllowed();
    error Worker_OnlyMessageLib();
    error Worker_RoleRenouncingDisabled();

    function setPriceFeed(address _priceFeed) external;

    function priceFeed() external view returns (address);

    function setDefaultMultiplierBps(uint16 _multiplierBps) external;

    function defaultMultiplierBps() external view returns (uint16);

    function withdrawFee(address _lib, address _to, uint256 _amount) external;

    function setSupportedOptionTypes(uint32 _eid, uint8[] calldata _optionTypes) external;

    function getSupportedOptionTypes(uint32 _eid) external view returns (uint8[] memory);
}

File 46 of 63 : ILayerZeroExecutor.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0;

interface ILayerZeroExecutor {
    // @notice query price and assign jobs at the same time
    // @param _dstEid - the destination endpoint identifier
    // @param _sender - the source sending contract address. executors may apply price discrimination to senders
    // @param _calldataSize - dynamic data size of message + caller params
    // @param _options - optional parameters for extra service plugins, e.g. sending dust tokens at the destination chain
    function assignJob(
        uint32 _dstEid,
        address _sender,
        uint256 _calldataSize,
        bytes calldata _options
    ) external returns (uint256 price);

    // @notice query the executor price for relaying the payload and its proof to the destination chain
    // @param _dstEid - the destination endpoint identifier
    // @param _sender - the source sending contract address. executors may apply price discrimination to senders
    // @param _calldataSize - dynamic data size of message + caller params
    // @param _options - optional parameters for extra service plugins, e.g. sending dust tokens at the destination chain
    function getFee(
        uint32 _dstEid,
        address _sender,
        uint256 _calldataSize,
        bytes calldata _options
    ) external view returns (uint256 price);
}

File 47 of 63 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 48 of 63 : IAccessControlEnumerableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControlUpgradeable.sol";

/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerableUpgradeable is IAccessControlUpgradeable {
    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

File 49 of 63 : AccessControlUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControlUpgradeable.sol";
import "../utils/ContextUpgradeable.sol";
import "../utils/StringsUpgradeable.sol";
import "../utils/introspection/ERC165Upgradeable.sol";
import {Initializable} from "../proxy/utils/Initializable.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```solidity
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```solidity
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}
 * to enforce additional security measures for this role.
 */
abstract contract AccessControlUpgradeable is Initializable, ContextUpgradeable, IAccessControlUpgradeable, ERC165Upgradeable {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

    function __AccessControl_init() internal onlyInitializing {
    }

    function __AccessControl_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControlUpgradeable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        StringsUpgradeable.toHexString(account),
                        " is missing role ",
                        StringsUpgradeable.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 50 of 63 : EnumerableSetUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```solidity
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
 * unusable.
 * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
 * array of EnumerableSet.
 * ====
 */
library EnumerableSetUpgradeable {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        bytes32[] memory store = _values(set._inner);
        bytes32[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}

File 51 of 63 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 52 of 63 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/Address.sol";

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

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

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

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

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

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

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

File 53 of 63 : IOAppReceiver.sol
// 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 Retrieves the address responsible for 'sending' composeMsg's to the Endpoint.
     * @return sender The address responsible for 'sending' composeMsg's to the Endpoint.
     *
     * @dev Applications can optionally choose to implement a separate composeMsg sender that is NOT the bridging layer.
     * @dev The default sender IS the OApp implementer.
     */
    function composeMsgSender() external view returns (address sender);
}

File 54 of 63 : IOAppCore.sol
// 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);

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

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

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

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

File 55 of 63 : IAccessControlUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControlUpgradeable {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 56 of 63 : StringsUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/MathUpgradeable.sol";
import "./math/SignedMathUpgradeable.sol";

/**
 * @dev String operations.
 */
library StringsUpgradeable {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = MathUpgradeable.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMathUpgradeable.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, MathUpgradeable.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

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

pragma solidity ^0.8.0;

import "./IERC165Upgradeable.sol";
import {Initializable} from "../../proxy/utils/Initializable.sol";

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

    function __ERC165_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165Upgradeable).interfaceId;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 58 of 63 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

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

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

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

File 59 of 63 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

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

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

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

File 60 of 63 : MathUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library MathUpgradeable {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

File 61 of 63 : SignedMathUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMathUpgradeable {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 62 of 63 : ILayerZeroReceiver.sol
// 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;
}

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

pragma solidity ^0.8.0;

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

Settings
{
  "optimizer": {
    "enabled": true,
    "mode": "3"
  },
  "evmVersion": "paris",
  "outputSelection": {
    "*": {
      "*": [
        "abi",
        "metadata"
      ],
      "": [
        "ast"
      ]
    }
  },
  "detectMissingLibraries": false,
  "forceEVMLA": false,
  "enableEraVMExtensions": false,
  "libraries": {}
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_srcEndpoint","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AllocNotFound","type":"error"},{"inputs":[],"name":"AlreadyClaimedOrRenounced","type":"error"},{"inputs":[],"name":"HasRefunded","type":"error"},{"inputs":[],"name":"InvalidDelegate","type":"error"},{"inputs":[],"name":"InvalidEndpointCall","type":"error"},{"inputs":[],"name":"InvalidMerkleRoot","type":"error"},{"inputs":[],"name":"InvalidMessageLength","type":"error"},{"inputs":[{"internalType":"uint32","name":"eid","type":"uint32"},{"internalType":"address","name":"sender","type":"address"}],"name":"InvalidOrigin","type":"error"},{"inputs":[],"name":"InvalidSetUpDstAddress","type":"error"},{"inputs":[],"name":"InvalidSetUpDstEID","type":"error"},{"inputs":[],"name":"InvalidSetUpExecutor","type":"error"},{"inputs":[],"name":"InvalidSetUpReceiveLibrary","type":"error"},{"inputs":[],"name":"InvalidSetUpReceiveTimeout","type":"error"},{"inputs":[],"name":"InvalidSetUpSendLibrary","type":"error"},{"inputs":[],"name":"InvalidSetUpSrcEndpoint","type":"error"},{"inputs":[],"name":"InvalidTimings","type":"error"},{"inputs":[],"name":"LzTokenUnavailable","type":"error"},{"inputs":[],"name":"NoIDO","type":"error"},{"inputs":[{"internalType":"uint32","name":"eid","type":"uint32"}],"name":"NoPeer","type":"error"},{"inputs":[],"name":"NoTokensToClaim","type":"error"},{"inputs":[],"name":"NotAuthorized","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":"RefundNotEnabled","type":"error"},{"inputs":[],"name":"ZeroTokenAddress","type":"error"},{"inputs":[],"name":"isCrosschainIDO","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"address","name":"vestedToken","type":"address"},{"internalType":"address","name":"ido","type":"address"}],"indexed":false,"internalType":"struct LinearVestingTypes.SetUp","name":"setUp","type":"tuple"}],"name":"LinearVestingSetUp","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"srcEndpoint","type":"address"},{"indexed":true,"internalType":"address","name":"dstAddress","type":"address"},{"indexed":false,"internalType":"uint32","name":"srcEID","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"dstEID","type":"uint32"}],"name":"OnOAppSetUp","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint32","name":"eid","type":"uint32"},{"indexed":false,"internalType":"bytes32","name":"peer","type":"bytes32"}],"name":"PeerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"start","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"end","type":"uint256"}],"name":"RefundPeriodUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint32","name":"dstEID","type":"uint32"},{"indexed":true,"internalType":"bytes32","name":"guid","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"RenouncedClaimAndSentCrosschainRefund","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint32","name":"start","type":"uint32"},{"indexed":true,"internalType":"uint32","name":"end","type":"uint32"},{"indexed":false,"internalType":"uint256","name":"totalVested","type":"uint256"}],"name":"SettingsUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":[{"components":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"}],"internalType":"struct UserAllocation","name":"alloc","type":"tuple"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"claim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"composeMsgSender","outputs":[{"internalType":"address","name":"sender","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endpoint","outputs":[{"internalType":"contract ILayerZeroEndpointV2","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"}],"internalType":"struct UserAllocation","name":"alloc","type":"tuple"}],"name":"getClaimableAmount","outputs":[{"internalType":"uint256","name":"claimableAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOAppSetUp","outputs":[{"components":[{"internalType":"uint32","name":"dstEID","type":"uint32"},{"internalType":"address","name":"dstAddress","type":"address"},{"internalType":"address","name":"sendLibrary","type":"address"},{"internalType":"address","name":"receiveLibrary","type":"address"}],"internalType":"struct IOAppConfigurator.OAppSetUp","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_ido","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_srcEndpoint","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isCrosschainIDO","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":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"oAppVersion","outputs":[{"internalType":"uint64","name":"senderVersion","type":"uint64"},{"internalType":"uint64","name":"receiverVersion","type":"uint64"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"eid","type":"uint32"}],"name":"peers","outputs":[{"internalType":"bytes32","name":"peer","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_eid","type":"uint32"},{"internalType":"bytes","name":"_payload","type":"bytes"},{"internalType":"bytes","name":"_options","type":"bytes"}],"name":"quote","outputs":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"lzTokenFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refundEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refundStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceClaimAndRefund","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"_options","type":"bytes"}],"name":"renounceClaimAndRefund","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_delegate","type":"address"}],"name":"setDelegate","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":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"setRefundPeriod","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalVested","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot_","type":"bytes32"},{"internalType":"uint32","name":"startTime_","type":"uint32"},{"internalType":"uint32","name":"endTime_","type":"uint32"},{"internalType":"uint256","name":"toClaim","type":"uint256"}],"name":"update","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"dstEID","type":"uint32"},{"internalType":"address","name":"dstAddress","type":"address"},{"internalType":"address","name":"sendLibrary","type":"address"},{"internalType":"address","name":"receiveLibrary","type":"address"}],"internalType":"struct IOAppConfigurator.OAppSetUp","name":"_setUp","type":"tuple"}],"name":"updateLzConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"userClaims","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

9c4d535b0000000000000000000000000000000000000000000000000000000000000000010005bbc7935efed599d96a851c4b4f8b2b847b2a41151eb62b0816ae141dc30000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000002000000000000000000000000016c693a3924b947298f7227792953cd6bbb21ac8

Deployed Bytecode

0x0004000000000002000c000000000002000000000801034f0000006003100270000004ec0130019700030000001803550002000000080355000004ec0030019d0000000100200190000000920000c13d0000008009000039000000400090043f000000040010008c000005eb0000413d000000000208043b000000e002200270000004fb0020009c000000dc0000213d000005190020009c000001540000213d000005280020009c000001860000a13d000005290020009c000001ca0000213d0000052d0020009c000004bb0000613d0000052e0020009c000003320000613d0000052f0020009c000005eb0000c13d000000440010008c00000b1f0000413d0000000001000416000000000001004b00000b1f0000c13d0000000401800370000000000101043b000800000001001d0000002401800370000000000101043b000700000001001d000004ef0010009c00000b1f0000213d0000000801000029000000000010043f000000c901000039000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f000000010020019000000b1f0000613d000000000101043b0000000101100039000000000101041a13ac0f5c0000040f0000000801000029000000000010043f000000c901000039000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f000000010020019000000b1f0000613d000000000101043b0000000702000029000000000020043f000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f000000010020019000000b1f0000613d000000000101043b000000000101041a000000ff00100190000000870000c13d0000000801000029000000000010043f000000c901000039000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f000000010020019000000b1f0000613d000000000101043b0000000702000029000000000020043f000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f000000010020019000000b1f0000613d000000000101043b000000000201041a000005a10220019700000001022001bf000000000021041b0000000001000414000004ec0010009c000004ec01008041000000c001100210000004f1011001c70000800d020000390000000403000039000000000700041100000592040000410000000805000029000000070600002913ac13a20000040f000000010020019000000b1f0000613d0000000801000029000000000010043f000000fb01000039000000200010043f0000004002000039000000000100001913ac138d0000040f000000070200002913ac13470000040f0000000001000019000013ad0001042e0000000002000416000000000002004b00000b1f0000c13d0000001f02100039000004ed022001970000008002200039000000400020043f0000001f0310018f000004ee041001980000008002400039000000a30000613d0000008005000039000000000608034f000000006706043c0000000005750436000000000025004b0000009f0000c13d000000000003004b000000b00000613d000000000448034f0000000303300210000000000502043300000000053501cf000000000535022f000000000404043b0000010003300089000000000434022f00000000033401cf000000000353019f0000000000320435000000200010008c00000b1f0000413d000000800100043d000800000001001d000004ef0010009c00000b1f0000213d0000012d01000039000000000201041a000004f0032001970000000006000411000000000363019f000000000031041b000000400100043d000700000001001d0000000001000414000004ef05200197000004ec0010009c000004ec01008041000000c001100210000004f1011001c70000800d020000390000000303000039000004f20400004113ac13a20000040f000000010020019000000b1f0000613d0000000801000029000004ef031001970000012e01000039000000000201041a000004f002200197000000000232019f000000000021041b0000000001000411000000000001004b000002550000c13d000004f90100004100000007020000290000000000120435000004ec0020009c000004ec020080410000004001200210000004fa011001c7000013ae00010430000004fc0020009c0000015f0000213d0000050b0020009c0000019d0000a13d0000050c0020009c000001e10000213d000005100020009c000004c70000613d000005110020009c000003370000613d000005120020009c000005eb0000c13d000000640010008c00000b1f0000413d0000000001000416000000000001004b00000b1f0000c13d0000000401800370000000000101043b000800000001001d000004ef0010009c00000b1f0000213d0000002401800370000000000101043b000700000001001d000004ef0010009c00000b1f0000213d0000004401800370000000000101043b000500000001001d000004ef0010009c00000b1f0000213d00000000010004150000000a0110008a0000000501100210000000000200041a0004ff0000200194000006c00000c13d0000000001000415000000090110008a0000000501100210000000ff00200190000006c00000c13d0000056a0120019700000101011001bf000600000000001d000000000010041b0000ff0000100190000004440000613d0000003301000039000000000201041a000005a102200197000000000021041b00000001010000390000006502000039000000000012041b000000070000006b000006b10000613d000000000100041113ac10240000040f0000056b01000041000000000201041a000004f0022001970000000703000029000000000232019f000000000021041b0000056c01000041000000000201041a000004f002200197000000000021041b000000400100043d00000000023104360000000000020435000004ec0010009c000004ec0100804100000040011002100000000002000414000004ec0020009c000004ec02008041000000c002200210000000000112019f0000053b011001c70000800d0200003900000001030000390000056d0400004113ac13a20000040f000000010020019000000b1f0000613d000000060000006b0000014a0000c13d000000000200041a000005a201200197000000000010041b000000400100043d00000001030000390000000000310435000004ec0010009c000004ec0100804100000040011002100000000002000414000004ec0020009c000004ec02008041000000c002200210000000000112019f0000056e011001c70000800d020000390000056f0400004113ac13a20000040f000000010020019000000b1f0000613d0000012e01000039000000000201041a000004f00220019700000005022001af000000000021041b000000080000006b000008fd0000c13d000000400100043d000004f902000041000008db0000013d0000051a0020009c000001ac0000a13d0000051b0020009c0000022a0000213d0000051f0020009c000004cc0000613d000005200020009c000003430000613d000005210020009c000003290000613d000005eb0000013d000004fd0020009c000001b90000a13d000004fe0020009c000002350000213d000005020020009c000004d50000613d000005030020009c000003580000613d000005040020009c000005eb0000c13d000000240010008c00000b1f0000413d0000000001000416000000000001004b00000b1f0000c13d0000000401800370000000000101043b000004ef0010009c00000b1f0000213d0000012d02000039000000000202041a000004ef022001970000000003000411000000000032004b000005cf0000c13d000000000001004b000006b40000c13d0000054901000041000000800010043f0000002001000039000000840010043f0000002601000039000000a40010043f0000055401000041000000c40010043f0000055501000041000000e40010043f0000055601000041000013ae00010430000005300020009c000002880000a13d000005310020009c000005910000613d000005320020009c000004030000613d000005330020009c000005eb0000c13d000000240010008c00000b1f0000413d0000000001000416000000000001004b00000b1f0000c13d0000000401800370000000000101043b000000000010043f000000c901000039000000200010043f0000004002000039000000000100001913ac138d0000040f0000000101100039000005cb0000013d000005130020009c000002da0000a13d000005140020009c000005990000613d000005150020009c000004080000613d000005160020009c000005eb0000c13d0000000001000416000000000001004b00000b1f0000c13d0000000001000410000000800010043f0000053601000041000013ad0001042e000005220020009c000002f70000a13d000005230020009c0000059f0000613d000005240020009c000004240000613d000005250020009c000005eb0000c13d0000000001000416000000000001004b00000b1f0000c13d0000003301000039000004d90000013d000005050020009c0000030a0000a13d000005060020009c000005c70000613d000005070020009c0000044e0000613d000005080020009c000005eb0000c13d000000440010008c00000b1f0000413d0000000001000416000000000001004b00000b1f0000c13d0000058001000041000000800010043f0000058101000041000013ae000104300000052a0020009c000003290000613d0000052b0020009c000003640000613d0000052c0020009c000005eb0000c13d000000440010008c00000b1f0000413d0000000001000416000000000001004b00000b1f0000c13d0000002401800370000000000101043b000004ef0010009c00000b1f0000213d0000000002000411000000000021004b0000066f0000c13d0000000401800370000000000101043b13ac10990000040f0000000001000019000013ad0001042e0000050d0020009c000004e00000613d0000050e0020009c000003990000613d0000050f0020009c000005eb0000c13d000000240010008c00000b1f0000413d0000000001000416000000000001004b00000b1f0000c13d0000000401800370000000000101043b000800000001001d000004ef0010009c00000b1f0000213d0000012d01000039000000000101041a000004ef011001970000000002000411000000000021004b000005cf0000c13d0000012e01000039000000000101041a000004f3020000410000000000200443000004ef01100197000700000001001d00000004001004430000000001000414000004ec0010009c000004ec01008041000000c001100210000004f4011001c7000080020200003913ac13a70000040f000000010020019000000e4d0000613d000000000101043b000000000001004b00000b1f0000613d000000400400043d000004f501000041000000000014043500000004014000390000000802000029000000000021043500000000010004140000000702000029000000040020008c000002250000613d000004ec0040009c000004ec0300004100000000030440190000004003300210000004ec0010009c000004ec01008041000000c001100210000000000131019f000004f6011001c7000800000004001d13ac13a20000040f00000008040000290000006003100270000104ec0030019d000300000001035500000001002001900000083b0000613d000004f70040009c000004570000213d000000400040043f0000000001000019000013ad0001042e0000051c0020009c000004e50000613d0000051d0020009c000003a70000613d0000051e0020009c000005eb0000c13d0000000001000416000000000001004b00000b1f0000c13d0000012d01000039000004d00000013d000004ff0020009c000004ef0000613d000005000020009c000003c20000613d000005010020009c000005eb0000c13d000000640010008c00000b1f0000413d0000000001000416000000000001004b00000b1f0000c13d0000000401800370000000000101043b000004ec0010009c00000b1f0000213d000000000010043f0000012f01000039000000200010043f00000040020000390000000001000019000800000008035313ac138d0000040f000000080200035f0000002402200370000000000202043b000000000101041a000000000021004b00000000010000390000000101006039000000800010043f0000053601000041000013ad0001042e000004f3010000410000000000100443000800000003001d00000004003004430000000001000414000004ec0010009c000004ec01008041000000c001100210000004f4011001c7000080020200003913ac13a70000040f000000010020019000000e4d0000613d000000000101043b000000000001004b000000000200041100000b1f0000613d000000400400043d000004f50100004100000000001404350000000401400039000000000021043500000000010004140000000802000029000000040020008c000002800000613d000004ec0040009c000004ec0300004100000000030440190000004003300210000004ec0010009c000004ec01008041000000c001100210000000000131019f000004f6011001c7000800000004001d13ac13a20000040f00000008040000290000006003100270000104ec0030019d00030000000103550000000100200190000006500000613d000004f70040009c000004570000213d000000400040043f000000200100003900000100001004430000012000000443000004f801000041000013ad0001042e000005340020009c0000045d0000613d000005350020009c000005eb0000c13d000000e40010008c00000b1f0000413d0000008402800370000000000202043b000004f70020009c00000b1f0000213d0000002303200039000000000013004b00000b1f0000813d000700040020003d0000000703800360000000000303043b000800000003001d000004f70030009c00000b1f0000213d00000008022000290000002402200039000000000012004b00000b1f0000213d000000a402800370000000000202043b000004ef0020009c00000b1f0000213d000000c402800370000000000202043b000004f70020009c00000b1f0000213d0000002303200039000000000013004b00000b1f0000813d0000000403200039000000000338034f000000000303043b000004f70030009c00000b1f0000213d00000000023200190000002402200039000000000012004b00000b1f0000213d0000012e01000039000000000101041a000004ef021001970000000001000411000000000012004b000008e90000c13d0000000401800370000000000101043b000600000001001d000004ec0010009c00000b1f0000213d0000000601000029000000000010043f0000012f01000039000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f000000010020019000000b1f0000613d000000000101043b000000000301041a000000000003004b00000a850000c13d000000400100043d00000550020000410000000000210435000000040210003900000006030000290000000000320435000004ec0010009c000004ec010080410000004001100210000004f6011001c7000013ae00010430000005170020009c0000046a0000613d000005180020009c000005eb0000c13d000000440010008c00000b1f0000413d0000000001000416000000000001004b00000b1f0000c13d0000002401800370000000000101043b000800000001001d000004ef0010009c00000b1f0000213d0000000401800370000000000101043b000000000010043f000000c901000039000000200010043f0000004002000039000000000100001913ac138d0000040f0000000802000029000000000020043f000000200010043f0000000001000019000000400200003913ac138d0000040f000004d90000013d000005260020009c000004830000613d000005270020009c000005eb0000c13d0000000001000416000000000001004b00000b1f0000c13d13ac0eac0000040f000000400100043d0000003302000039000000000302041a000000ff00300190000005d80000c13d00000044021000390000058e03000041000000000032043500000024021000390000001403000039000005f20000013d000005090020009c000004ae0000613d0000050a0020009c000005eb0000c13d000000440010008c00000b1f0000413d0000000001000416000000000001004b00000b1f0000c13d0000002401800370000000000101043b000800000001001d000004ef0010009c00000b1f0000213d0000000401800370000000000101043b000700000001001d000000000010043f000000c901000039000000200010043f0000004002000039000000000100001913ac138d0000040f0000000101100039000000000101041a13ac0f5c0000040f0000000701000029000000080200002913ac10990000040f0000000001000019000013ad0001042e0000000001000416000000000001004b00000b1f0000c13d0000057201000041000000000101041a000004ec01100197000000800010043f0000053601000041000013ad0001042e0000000001000416000000000001004b00000b1f0000c13d0000057001000041000005cb0000013d000000240010008c00000b1f0000413d0000000001000416000000000001004b00000b1f0000c13d0000000401800370000000000101043b000004ec0010009c00000b1f0000213d000000000010043f0000012f01000039000003a20000013d0000000001000416000000000001004b00000b1f0000c13d0000012d01000039000000000201041a000004ef032001970000000005000411000000000053004b000005cf0000c13d000004f002200197000000000021041b0000000001000414000004ec0010009c000004ec01008041000000c001100210000004f1011001c70000800d020000390000000303000039000004f2040000410000000006000019000005e80000013d000000240010008c00000b1f0000413d0000000001000416000000000001004b00000b1f0000c13d0000000401800370000000000101043b000004ef0010009c00000b1f0000213d13ac0e9b0000040f000000000101041a000004b40000013d000000440010008c00000b1f0000413d0000000001000416000000000001004b00000b1f0000c13d0000000401800370000000000101043b000800000001001d000004ec0010009c00000b1f0000213d0000002401800370000000000301043b0000012d01000039000000000101041a000004ef011001970000000002000411000000000021004b000005cf0000c13d000700000003001d0000000801000029000000000010043f0000012f01000039000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f000000010020019000000b1f0000613d000000000101043b0000000703000029000000000031041b000000400100043d0000002002100039000000000032043500000008020000290000000000210435000004ec0010009c000004ec0100804100000040011002100000000002000414000004ec0020009c000004ec02008041000000c002200210000000000112019f0000053b011001c70000800d0200003900000001030000390000055b04000041000005e80000013d000000240010008c00000b1f0000413d0000000001000416000000000001004b00000b1f0000c13d0000000401800370000000000101043b000000000010043f000000fb01000039000000200010043f0000004002000039000000000100001913ac138d0000040f000005cb0000013d0000000001000416000000000001004b00000b1f0000c13d13ac0eac0000040f000000400100043d0000003302000039000000000302041a000000ff00300190000005ed0000c13d000005a10330019700000001033001bf000000000032041b00000000020004110000000000210435000004ec0010009c000004ec0100804100000040011002100000000002000414000004ec0020009c000004ec02008041000000c002200210000000000112019f0000056e011001c70000800d0200003900000001030000390000057904000041000005e80000013d000000240010008c00000b1f0000413d0000000402800370000000000302043b000004f70030009c00000b1f0000213d0000002302300039000000000012004b00000b1f0000813d0000000404300039000000000248034f000000000202043b000004f70020009c000004570000213d0000001f05200039000005a3055001970000003f05500039000005a305500197000005370050009c000004570000213d00000024033000390000008005500039000000400050043f000000800020043f0000000003320019000000000013004b00000b1f0000213d0000002001400039000000000318034f000005a3042001980000001f0520018f000000a001400039000003e90000613d000000a006000039000000000703034f000000007807043c0000000006860436000000000016004b000003e50000c13d000000000005004b000003f60000613d000000000343034f0000000304500210000000000501043300000000054501cf000000000545022f000000000303043b0000010004400089000000000343022f00000000034301cf000000000353019f0000000000310435000000a00120003900000000000104350000053801000041000000000101041a000000000001004b000004000000613d0000053901000041000000000101041a000000000001004b000008480000c13d000000400100043d0000055102000041000008db0000013d0000000001000416000000000001004b00000b1f0000c13d0000057401000041000005cb0000013d000000840010008c00000b1f0000413d0000000001000416000000000001004b00000b1f0000c13d0000000401800370000000000101043b000800000001001d0000002401800370000000000101043b000700000001001d000004ec0010009c00000b1f0000213d0000004401800370000000000101043b000600000001001d000004ec0010009c00000b1f0000213d0000006401800370000000000101043b000500000001001d13ac0eac0000040f0000000802000029000000000002004b000006b70000c13d000000400100043d0000057702000041000008db0000013d000000440010008c00000b1f0000413d0000000001000416000000000001004b00000b1f0000c13d0000000401800370000000000101043b000800000001001d000004ef0010009c00000b1f0000213d0000002401800370000000000101043b000700000001001d000004ef0010009c00000b1f0000213d00000000010004150000000c0110008a0000000501100210000000000200041a0000ff0003200190000006840000c13d00000000010004150000000b0110008a0000000501100210000000ff00200190000006840000c13d0000056a0120019700000101011001bf0000000002000019000000000010041b0000ff0000100190000006a70000c13d000000400100043d00000064021000390000057d03000041000000000032043500000044021000390000057e03000041000000000032043500000024021000390000002b03000039000006f00000013d000000840010008c00000b1f0000413d0000000001000416000000000001004b00000b1f0000c13d13ac0eac0000040f000000400200043d000005370020009c000005fd0000a13d0000058a01000041000000000010043f0000004101000039000000040010043f000004f601000041000013ae00010430000000240010008c00000b1f0000413d0000000001000416000000000001004b00000b1f0000c13d0000000401800370000000000101043b0000059d0010019800000b1f0000c13d0000059e0010009c0000067b0000c13d0000000102000039000006800000013d000000440010008c00000b1f0000413d0000000001000416000000000001004b00000b1f0000c13d0000000401800370000000000101043b000000000010043f000000fb01000039000000200010043f0000002401800370000000000101043b000800000001001d0000004002000039000000000100001913ac138d0000040f000000080200002913ac132c0000040f0000000302200210000000000101041a000000000121022f000004ef01100197000000ff0020008c0000000001002019000004b40000013d0000000001000416000000000001004b00000b1f0000c13d0000010001000039000000400010043f000000800000043f000000a00000043f000000c00000043f000000e00000043f13ac0e7e0000040f0000053d01000041000000000101041a000004ec02100197000001000020043f0000002001100270000004ef01100197000001200010043f0000056001000041000000000101041a000004ef01100197000001400010043f0000056101000041000000000101041a000004ef01100197000001600010043f000000400100043d0000000002210436000001200300043d000004ef033001970000000000320435000001400200043d000004ef0220019700000040031000390000000000230435000001600200043d000004ef0220019700000060031000390000000000230435000004ec0010009c000004ec0100804100000040011002100000058f011001c7000013ad0001042e000000640010008c00000b1f0000413d0000000001000416000000000001004b00000b1f0000c13d13ac11920000040f000000400200043d0000000000120435000004ec0020009c000004ec02008041000000400120021000000557011001c7000013ad0001042e0000053801000041000000000101041a000000000001004b000004c30000613d0000053901000041000000000101041a000000000001004b000006260000c13d0000055101000041000000800010043f0000058101000041000013ae000104300000000001000416000000000001004b00000b1f0000c13d0000053801000041000005cb0000013d0000000001000416000000000001004b00000b1f0000c13d0000012e01000039000000000101041a000004ef01100197000000800010043f0000053601000041000013ad0001042e0000000001000416000000000001004b00000b1f0000c13d0000055801000041000000000101041a000000ff001001900000000001000039000000010100c039000000800010043f0000053601000041000013ad0001042e0000000001000416000000000001004b00000b1f0000c13d0000053901000041000005cb0000013d000000440010008c00000b1f0000413d0000000001000416000000000001004b00000b1f0000c13d0000000401800370000000000101043b000004ec0010009c0000059c0000a13d00000b1f0000013d000000640010008c00000b1f0000413d0000000002000416000000000002004b00000b1f0000c13d0000000402800370000000000202043b000800000002001d000004ec0020009c00000b1f0000213d0000002402800370000000000202043b000004f70020009c00000b1f0000213d0000002303200039000000000013004b00000b1f0000813d0000000405200039000000000358034f000000000303043b000004f70030009c00000b1f0000213d00000000023200190000002402200039000000000012004b00000b1f0000213d0000004402800370000000000602043b000004f70060009c00000b1f0000213d0000002302600039000000000012004b00000b1f0000813d0000000404600039000000000248034f000000000202043b000004f70020009c00000b1f0000213d00000000062600190000002406600039000000000016004b00000b1f0000213d0000001f01300039000005a3011001970000003f01100039000005a301100197000005370010009c000004570000213d0000008001100039000000400010043f0000002001500039000000000b08034f000000000518034f000000800030043f000005a3063001980000001f0730018f000000a0016000390000052f0000613d000000a008000039000000000905034f000000009a09043c0000000008a80436000000000018004b0000052b0000c13d000000000007004b0000053c0000613d000000000565034f0000000306700210000000000701043300000000076701cf000000000767022f000000000505043b0000010006600089000000000565022f00000000056501cf000000000575019f0000000000510435000000a00130003900000000000104350000001f01200039000005a3011001970000003f01100039000005a301100197000000400300043d0000000001130019000700000003001d000000000031004b00000000030000390000000103004039000004f70010009c000004570000213d0000000100300190000004570000c13d000000400010043f000000200140003900000000041b034f00000007010000290000000001210436000005a3052001980000001f0620018f00000000035100190000055b0000613d000000000704034f0000000008010019000000007907043c0000000008980436000000000038004b000005570000c13d000000000006004b000005680000613d000000000454034f0000000305600210000000000603043300000000065601cf000000000656022f000000000404043b0000010005500089000000000454022f00000000045401cf000000000464019f000000000043043500000000012100190000000000010435000000400100043d0000053c0010009c000004570000213d0000004002100039000000400020043f0000002002100039000000000002043500000000000104350000012e01000039000000000101041a000600000001001d0000000801000029000000000010043f0000012f01000039000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f000000010020019000000b1f0000613d000000400200043d000000000101043b000000000101041a000000000001004b00000abf0000c13d00000550010000410000000000120435000000040120003900000008030000290000000000310435000004ec0020009c000004ec020080410000004001200210000004f6011001c7000013ae000104300000000001000416000000000001004b00000b1f0000c13d0000000101000039000000800010043f000000a00010043f0000059601000041000013ad0001042e0000000001000416000000000001004b00000b1f0000c13d000000800000043f0000053601000041000013ad0001042e000000840010008c00000b1f0000413d0000000002000416000000000002004b00000b1f0000c13d0000006402800370000000000202043b000004f70020009c00000b1f0000213d0000002303200039000000000013004b00000b1f0000813d000500040020003d0000000503800360000000000303043b000800000003001d000004f70030009c00000b1f0000213d000000240220003900000008030000290000000503300210000400000002001d000700000003001d000300000023001d000000030010006b00000b1f0000213d0000006502000039000000000102041a000000020010008c000006fb0000c13d0000054901000041000000800010043f0000002001000039000000840010043f0000001f01000039000000a40010043f0000058c01000041000000c40010043f0000057f01000041000013ae000104300000000001000416000000000001004b00000b1f0000c13d0000056901000041000000000101041a000000800010043f0000053601000041000013ad0001042e0000054901000041000000800010043f0000002001000039000000840010043f000000a40010043f0000055a01000041000000c40010043f0000057f01000041000013ae00010430000005a103300197000000000032041b00000000020004110000000000210435000004ec0010009c000004ec0100804100000040011002100000000002000414000004ec0020009c000004ec02008041000000c002200210000000000112019f0000056e011001c70000800d0200003900000001030000390000058d0400004113ac13a20000040f000000010020019000000b1f0000613d0000000001000019000013ad0001042e00000044021000390000057803000041000000000032043500000024021000390000001003000039000000000032043500000549020000410000000000210435000000040210003900000020030000390000000000320435000004ec0010009c000004ec0100804100000040011002100000054c011001c7000013ae000104300000055901000041000000000101041a000600000001001d000800000002001d0000008001200039000000400010043f00000002010003670000000402100370000000000202043b000700000002001d000004ec0020009c00000b1f0000213d0000000802000029000000070300002900000000023204360000002403100370000000000303043b000004ef0030009c00000b1f0000213d00000000003204350000004402100370000000000202043b000004ef0020009c00000b1f0000213d00000008040000290000004004400039000500000004001d00000000002404350000006401100370000000000401043b000004ef0040009c00000b1f0000213d00000008010000290000006001100039000400000001001d0000000000410435000000400100043d000000070000006b000008e10000c13d0000056802000041000008db0000013d0000000001000411000004ef01100197000800000001001d000000000010043f0000053a01000041000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f000000010020019000000b1f0000613d000000000101043b000000000101041a000000000001004b000008d90000c13d0000000801000029000000000010043f0000053a01000041000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f000000010020019000000b1f0000613d000000000101043b000000010200008a000000000021041b0000056c01000041000000000101041a000004ef021001980000078f0000c13d000000400100043d0000059502000041000008db0000013d000004ec033001970000001f0530018f000004ee06300198000000400200043d00000000046200190000065c0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000006580000c13d000000000005004b000006690000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001300210000004ec0020009c000004ec020080410000004002200210000000000112019f000013ae000104300000054901000041000000800010043f0000002001000039000000840010043f0000002f01000039000000a40010043f0000059001000041000000c40010043f0000059101000041000000e40010043f0000055601000041000013ae000104300000059f0010009c00000000020000390000000102006039000005a00010009c00000001022061bf000000010120018f000000800010043f0000053601000041000013ad0001042e000400000003001d000500000002001d000600000001001d000004f3010000410000000000100443000000000100041000000004001004430000000001000414000004ec0010009c000004ec01008041000000c001100210000004f4011001c7000080020200003913ac13a70000040f000000010020019000000e4d0000613d000000000101043b000000000001004b000006e40000c13d0000000502000029000000ff0120018f000000010010008c00000006010000290000000501100270000000000100003f000000010100603f000006e70000c13d000000040000006b0000043e0000613d000005a101200197000000010200003900000001011001bf000000000010041b0000ff0000100190000004440000613d000600000002001d0000003301000039000000000201041a000005a102200197000000000021041b00000001010000390000006502000039000000000012041b000000080000006b000008060000c13d000000400100043d0000057c02000041000008db0000013d13ac117d0000040f0000000001000019000013ad0001042e0000000701000029000004ec051001970000000603000029000004ec06300197000000000056004b0000077f0000813d000000400100043d0000057602000041000008db0000013d000300000002001d000600000001001d000004f3010000410000000000100443000000000100041000000004001004430000000001000414000004ec0010009c000004ec01008041000000c001100210000004f4011001c7000080020200003913ac13a70000040f000000010020019000000e4d0000613d000000000101043b000000000001004b000006e40000c13d0000000301000029000000ff0110018f000000010010008c00000006010000290000000501100270000000000100003f000000010100603f000006e70000c13d000000040000006b0000000302000029000001070000613d000005a101200197000600010000003d00000001011001bf000000000010041b0000ff00001001900000010d0000c13d000004440000013d00000006010000290000000501100270000000000100003f000000400100043d00000064021000390000057a03000041000000000032043500000044021000390000057b03000041000000000032043500000024021000390000002e03000039000000000032043500000549020000410000000000210435000000040210003900000020030000390000000000320435000004ec0010009c000004ec0100804100000040011002100000054a011001c7000013ae000104300000000201000039000000000012041b0000003301000039000000000101041a000000ff00100190000007c10000c13d0000000401800370000000000101043b000004ef0010009c00000b1f0000213d0000000003000411000000000031004b000001c60000c13d0000056c01000041000000000101041a000004ef02100198000008ee0000c13d0000008001000039000004ef0030009c00000b1f0000213d00000020021000390000057004000041000000000404041a000200000004001d00000000003204350000002403800370000000000303043b000000400410003900000000003404350000004403800370000000000303043b0000006004100039000000000034043500000060030000390000000000310435000005370010009c000004570000213d0000008003100039000000400030043f000004ec0020009c000004ec0200804100000040022002100000000001010433000004ec0010009c000004ec010080410000006001100210000000000121019f0000000002000414000004ec0020009c000004ec02008041000000c002200210000000000112019f000004f1011001c7000080100200003913ac13a70000040f000000010020019000000b1f0000613d000000000101043b00000007020000290000003f022000390000058602200197000000400300043d0000000002230019000700000003001d000000000032004b00000000030000390000000103004039000004f70020009c000004570000213d0000000100300190000004570000c13d000000400020043f000000080200002900000007030000290000000003230436000600000003001d000000000002004b000007760000613d0000000502000029000000200220003900000002022003670000000703000029000000040500002900000003060000290000002003300039000000002402043c00000000004304350000002005500039000000000065004b0000074f0000413d00000007020000290000000002020433000000000002004b000007760000613d0000000003000019000800000003001d000000050230021000000006022000290000000002020433000000000021004b000007640000813d000000000010043f000000200020043f0000000001000414000007670000013d000000000020043f000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f000000010020019000000b1f0000613d000000000101043b0000000803000029000000010330003900000007020000290000000002020433000000000023004b0000075a0000413d000000020010006c00000b350000c13d13ac11920000040f000800000001001d000000000001004b00000b960000c13d000000400100043d0000058b02000041000008db0000013d0000057001000041000000000021041b000000200130021000000571011001970000057202000041000000000302041a0000057303300197000000000131019f000000000151019f000000000012041b0000000507000029000000000007004b000007cb0000c13d0000057401000041000000000101041a000007ed0000013d000004f3010000410000000000100443000800000002001d00000004002004430000000001000414000004ec0010009c000004ec01008041000000c001100210000004f4011001c7000080020200003913ac13a70000040f000000010020019000000e4d0000613d000000000101043b000000000001004b00000b1f0000613d000000400200043d00000594010000410000000000120435000700000002001d00000004012000390000000002000411000000000021043500000000010004140000000802000029000000040020008c000007ba0000613d0000000702000029000004ec0020009c000004ec020080410000004002200210000004ec0010009c000004ec01008041000000c001100210000000000121019f000004f6011001c7000000080200002913ac13a20000040f0000006003100270000104ec0030019d000300000001035500000001002001900000093b0000613d0000000701000029000004f70010009c000004570000213d0000000701000029000000400010043f0000000001000019000013ad0001042e0000054901000041000000800010043f0000002001000039000000840010043f0000001001000039000000a40010043f0000057801000041000000c40010043f0000057f01000041000013ae00010430000700000006001d000800000005001d0000056b01000041000000000101041a000000400200043d000000200320003900000542040000410000000000430435000000640320003900000000007304350000000003000410000004ef03300197000000440420003900000000003404350000000003000411000004ef033001970000002404200039000000000034043500000064030000390000000000320435000005430020009c000004570000213d000000a003200039000000400030043f000004ef0110019713ac121d0000040f0000057402000041000000000102041a000000050010002a00000bb80000413d0000000501100029000000000012041b00000008050000290000000706000029000000400200043d0000000000120435000004ec0020009c000004ec0200804100000040012002100000000002000414000004ec0020009c000004ec02008041000000c002200210000000000112019f0000056e011001c70000800d020000390000000303000039000005750400004113ac13a20000040f000000010020019000000b1f0000613d000000400100043d00000001020000390000000000210435000004ec0010009c000004ec01008041000000400110021000000557011001c7000013ad0001042e000000000100041113ac10240000040f0000056b01000041000000000201041a000004f0022001970000000804000029000000000242019f000000000021041b0000056c01000041000000000201041a000004f0022001970000000703000029000000000232019f000000000021041b000000400100043d000000200210003900000000003204350000000000410435000004ec0010009c000004ec0100804100000040011002100000000002000414000004ec0020009c000004ec02008041000000c002200210000000000112019f0000053b011001c70000800d0200003900000001030000390000056d0400004113ac13a20000040f000000010020019000000b1f0000613d000000060000006b000005eb0000c13d000000000200041a000005a201200197000000000010041b000000400100043d00000001030000390000000000310435000004ec0010009c000004ec0100804100000040011002100000000002000414000004ec0020009c000004ec02008041000000c002200210000000000112019f0000056e011001c70000800d020000390000056f04000041000005e80000013d000004ec033001970000001f0530018f000004ee06300198000000400200043d00000000046200190000065c0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000008430000c13d0000065c0000013d0000000001000411000004ef01100197000800000001001d000000000010043f0000053a01000041000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c70000801002000039000700000009001d13ac13a70000040f000000010020019000000b1f0000613d000000000101043b000000000101041a000000000001004b000008d90000c13d0000000801000029000000000010043f0000053a01000041000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f000000010020019000000b1f0000613d000000000101043b000000010200008a000000000021041b0000001402000039000000400100043d00000000022104360000000003000411000000600330021000000000003204350000053c0010009c000004570000213d0000004003100039000600000003001d000000400030043f0000006003100039000000000003043500000061041000390000000003010433000000000003004b000008850000613d000000000500001900000000064500190000000007250019000000000707043300000000007604350000002005500039000000000035004b0000087e0000413d00000000024300190000000000020435000000010230003900000006040000290000000000240435000005a30230019700000000012100190000008001100039000004f70010009c000004570000213d000000060010006c000004570000413d000000400010043f0000053c0010009c000004570000213d0000053d02000041000000000202041a000400000002001d0000004002100039000000400020043f00000000020004160000000002210436000500000002001d0000000000020435000000400200043d0000053e0020009c000004570000213d0000006003200039000000400030043f000000200320003900000000000304350000000000020435000000400300043d0000053c0030009c000004570000213d0000004004300039000000400040043f0000002004300039000000000004043500000000000304350000004002200039000000000032043500000000010104330000000002000416000000000012004b00000bbe0000c13d00000005010000290000000001010433000200000001001d000000000001004b00000bd00000c13d0000000401000029000004ec021001970000012e01000039000000000101041a000400000001001d000700000002001d000000000020043f0000012f01000039000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f000000010020019000000b1f0000613d000000400300043d000000000101043b000000000401041a000000000004004b00000c660000c13d00000550010000410000000000130435000000040130003900000007020000290000000000210435000004ec0030009c000004ec030080410000004001300210000004f6011001c7000013ae00010430000000400100043d00000593020000410000000000210435000004ec0010009c000004ec010080410000004001100210000004fa011001c7000013ae00010430000000000003004b000008e50000c13d0000056702000041000008db0000013d000000000002004b000008f90000c13d0000056602000041000008db0000013d0000059702000041000000800020043f000000840010043f0000058301000041000013ae000104300000058201000041000000800010043f000000840030043f0000000001000414000000040020008c000009480000c13d0000000103000031000000600030008c000000600400003900000000040340190000096d0000013d000304ef0040019c0000098e0000c13d0000056502000041000008db0000013d000004f3010000410000000000100443000000050100002900000004001004430000000001000414000004ec0010009c000004ec01008041000000c001100210000004f4011001c7000080020200003913ac13a70000040f000000010020019000000e4d0000613d000000000101043b000000000001004b00000b1f0000613d000000400200043d000004f5010000410000000000120435000700000002001d00000004012000390000000802000029000000000021043500000000010004140000000502000029000000040020008c000009280000613d0000000702000029000004ec0020009c000004ec020080410000004002200210000004ec0010009c000004ec01008041000000c001100210000000000121019f000004f6011001c7000000050200002913ac13a20000040f0000006003100270000104ec0030019d0003000000010355000000010020019000000b230000613d0000000701000029000004f70010009c000004570000213d0000000701000029000000400010043f000000080100002913ac117d0000040f0000055801000041000000000201041a000005a10220019700000001022001bf000000000021041b0000055901000041000000000201041a000004f00220019700000005022001af000000000021041b0000000001000019000013ad0001042e000004ec033001970000001f0530018f000004ee06300198000000400200043d00000000046200190000065c0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000009430000c13d0000065c0000013d000004ec0010009c000004ec01008041000000c00110021000000583011001c713ac13a70000040f0000006003100270000004ec03300197000000600030008c000000600400003900000000040340190000001f0640018f000000600740019000000080057001bf0000095c0000613d0000008008000039000000000901034f000000009a09043c0000000008a80436000000000058004b000009580000c13d000000000006004b000009690000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f0003000000010355000000010020019000000a790000613d0000001f01400039000000e00110018f0000008002100039000000400020043f000000600030008c00000b1f0000413d000000e003100039000000400030043f000000800300043d0000000000320435000000a00200043d000005840020009c00000b1f0000213d000000a0031000390000000000230435000000c00200043d000000000002004b0000000003000039000000010300c039000000000032004b00000b1f0000c13d000000c0011000390000000000210435000000400100043d000000000002004b00000b210000c13d0000000202000367000000000802034f0000000402200370000000000302043b000004ef0030009c0000070f0000a13d00000b1f0000013d0000002002000039000000000421043600000000003404350000053c0010009c000004570000213d0000004003100039000000400030043f0000000004040433000200000004001d00000000040104330000001f0040008c000009a00000213d00000003054002100000010005500089000005a40550021f000000000004004b000000000500601900020002005001830000012d04000039000000000404041a000004ef044001970000000005000411000000000054004b00000ab10000c13d0000000701000029000000000010043f0000012f01000039000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f000000010020019000000b1f0000613d000000000101043b0000000203000029000000000031041b000000400100043d0000002002100039000000000032043500000007020000290000000000210435000004ec0010009c000004ec0100804100000040011002100000000002000414000004ec0020009c000004ec02008041000000c002200210000000000112019f0000053b011001c70000800d0200003900000001030000390000055b0400004113ac13a20000040f000000010020019000000b1f0000613d0000000601000029000004ef0210019700000008010000290000000001010433000600000001001d00000005010000290000000001010433000500000001001d000004f3010000410000000000100443000700000002001d00000004002004430000000001000414000004ec0010009c000004ec01008041000000c001100210000004f4011001c7000080020200003913ac13a70000040f000000010020019000000e4d0000613d000000000101043b000000000001004b00000b1f0000613d0000000501000029000004ef011001970000000602000029000004ec02200197000000400400043d00000044034000390000000000130435000000240140003900000000002104350000055c010000410000000000140435000600000004001d00000004014000390000000002000410000000000021043500000000010004140000000702000029000000040020008c00000a050000613d0000000602000029000004ec0020009c000004ec020080410000004002200210000004ec0010009c000004ec01008041000000c001100210000000000121019f0000054c011001c7000000070200002913ac13a20000040f0000006003100270000104ec0030019d0003000000010355000000010020019000000be30000613d0000000601000029000004f70010009c0000000801000029000004570000213d0000000602000029000000400020043f0000000001010433000800000001001d00000004010000290000000001010433000600000001001d000004f3010000410000000000100443000000070100002900000004001004430000000001000414000004ec0010009c000004ec01008041000000c001100210000004f4011001c7000080020200003913ac13a70000040f000000010020019000000e4d0000613d000000000101043b000000000001004b00000b1f0000613d0000000601000029000004ef011001970000000802000029000004ec02200197000000400400043d00000044034000390000000000130435000000240140003900000000002104350000055d010000410000000000140435000000040140003900000000020004100000000000210435000800000004001d0000006401400039000000000001043500000000010004140000000702000029000000040020008c00000a450000613d0000000802000029000004ec0020009c000004ec020080410000004002200210000004ec0010009c000004ec01008041000000c001100210000000000121019f0000054a011001c7000000070200002913ac13a20000040f0000006003100270000104ec0030019d0003000000010355000000010020019000000cea0000613d0000000801000029000004f70010009c000004570000213d0000000801000029000000400010043f00000002010003670000000402100370000000000202043b000004ec0020009c00000b1f0000213d0000002403100370000000000303043b000700000003001d000004ef0030009c00000b1f0000213d0000053d03000041000000000403041a0000055e04400197000000070500002900000020055002100000055f05500197000000000445019f000000000224019f000000000023041b0000004401100370000000000101043b000004ef0010009c00000b1f0000213d0000056002000041000000000302041a000004f003300197000000000113019f000000000012041b0000056101000041000000000201041a000004f00220019700000003022001af000000000021041b0000055901000041000000000201041a0000056201000041000000080300002900000000001304350000000001000414000004ef02200197000600000002001d000000040020008c00000de60000c13d0000000104000031000000200040008c000000200400803900000e110000013d0000001f0530018f000004ee06300198000000400200043d00000000046200190000065c0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000a800000c13d0000065c0000013d00000002020003670000000401200370000000000101043b0000002404200370000000000404043b000000000043004b00000b1d0000c13d000004ec0010009c00000b1f0000213d000004ef033001970000053d04000041000000000404041a000000000514013f000004ec0050019800000b380000c13d0000002004400270000004ef04400197000000000043004b00000b380000c13d0000000801000029000000080010008c00000be00000c13d00000007030000290000002001300039000000000112034f0000002403300039000000000232034f000000000202043b000000000101043b000000e0051002700000053801000041000000000051041b000000e0062002700000053901000041000000000061041b0000000001000414000004ec0010009c000004ec01008041000000c001100210000004f1011001c70000800d0200003900000003030000390000059c04000041000005e80000013d0000054904000041000000000043043500000084041000390000055a0500004100000000005404350000006404100039000000000024043500000044011000390000000000210435000004ec0030009c000004ec0300804100000040013002100000054c011001c7000013ae00010430000005430020009c000004570000213d000000a003200039000000400030043f0000006003200039000000070400002900000000004304350000004004200039000000800500003900000000005404350000002005200039000000000015043500000008010000290000000000120435000000800120003900000000000104350000055206000041000000400800043d0000000006680436000700000006001d0000000406800039000000400700003900000000007604350000000002020433000004ec022001970000004406800039000000000026043500000000020504330000006405800039000000000025043500000000020404330000008404800039000000a0050000390000000000540435000000e40480003900000000260204340000000000640435000800000008001d0000010404800039000000000006004b00000af00000613d000000000500001900000000074500190000000008520019000000000808043300000000008704350000002005500039000000000065004b00000ae90000413d0000000602000029000004ef022001970000000005000410000000000746001900000000000704350000001f06600039000005a30660019700000000030304330000000807000029000000a407700039000000c0086000390000000000870435000000000746001900000000640304340000000003470436000000000004004b00000b090000613d000000000700001900000000083700190000000009760019000000000909043300000000009804350000002007700039000000000047004b00000b020000413d000000000634001900000000000604350000000001010433000004ef05500197000000080700002900000024067000390000000000560435000000c405700039000000000001004b0000000001000039000000010100c03900000000001504350000000001000414000000040020008c00000b440000c13d0000000103000031000000400030008c0000004004000039000000000403401900000b760000013d000004ec0010009c00000b300000a13d0000000001000019000013ae000104300000058502000041000008db0000013d000004ec033001970000001f0530018f000004ee06300198000000400200043d00000000046200190000065c0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000b2b0000c13d0000065c0000013d000000400200043d00000024032000390000000000430435000005980300004100000b3c0000013d000000400100043d0000058702000041000008db0000013d000000400200043d000000240420003900000000003404350000059a03000041000000000032043500000004032000390000000000130435000004ec0020009c000004ec02008041000000400120021000000599011001c7000013ae000104300000001f04400039000005a304400197000000080500002900000000035300490000000003430019000004ec0030009c000004ec030080410000006003300210000004ec0050009c000004ec0400004100000000040540190000004004400210000000000343019f000004ec0010009c000004ec01008041000000c001100210000000000131019f13ac13a70000040f0000006003100270000004ec03300197000000400030008c000000400400003900000000040340190000001f0640018f0000006007400190000000080570002900000b650000613d000000000801034f0000000809000029000000008a08043c0000000009a90436000000000059004b00000b610000c13d000000000006004b00000b720000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f0003000000010355000000010020019000000bc40000613d0000001f01400039000000e00210018f0000000801200029000000000021004b00000000020000390000000102004039000004f70010009c000004570000213d0000000100200190000004570000c13d000000400010043f000000400030008c00000b1f0000413d0000053c0010009c000004570000213d0000004002100039000000400020043f000000080200002900000000020204330000000001210436000000070300002900000000030304330000000000310435000000400100043d000000200410003900000000003404350000000000210435000004ec0010009c000004ec01008041000000400110021000000553011001c7000013ad0001042e0000056b01000041000000000101041a000700000001001d00000004010000390000000201100367000000000101043b000004ef0010009c00000b1f0000213d000000000010043f0000053a01000041000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f000000010020019000000b1f0000613d000000000101043b000000000201041a000000080020002a00000bb80000413d0000000802200029000000000021041b0000056901000041000000000301041a0000000802300029000000000032004b00000000030000390000000103004039000000010030008c00000c310000c13d0000058a01000041000000000010043f0000001101000039000000040010043f000004f601000041000013ae00010430000000400100043d0000053f02000041000000000021043500000004021000390000000003000416000002d40000013d0000001f0530018f000004ee06300198000000400200043d00000000046200190000065c0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000bcb0000c13d0000065c0000013d0000012e01000039000000000201041a000000400300043d0000054001000041000300000003001d00000000001304350000000001000414000004ef02200197000100000002001d000000040020008c00000bf00000c13d0000000103000031000000200030008c0000002004000039000000000403401900000c1b0000013d000000400100043d0000059b02000041000008db0000013d000004ec033001970000001f0530018f000004ee06300198000000400200043d00000000046200190000065c0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000beb0000c13d0000065c0000013d0000000302000029000004ec0020009c000004ec020080410000004002200210000004ec0010009c000004ec01008041000000c001100210000000000121019f000004fa011001c7000000010200002913ac13a70000040f0000006003100270000004ec03300197000000200030008c000000200400003900000000040340190000001f0640018f0000002007400190000000030570002900000c0a0000613d000000000801034f0000000309000029000000008a08043c0000000009a90436000000000059004b00000c060000c13d000000000006004b00000c170000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f0003000000010355000000010020019000000cc80000613d0000001f01400039000000600210018f0000000301200029000000000021004b00000000020000390000000102004039000004f70010009c000004570000213d0000000100200190000004570000c13d000000400010043f000000200040008c00000b1f0000413d00000003020000290000000002020433000300000002001d000005410020009c00000b1f0000813d000000030000006b00000cf70000c13d0000054d02000041000008db0000013d000000000021041b00000004010000390000000201100367000000000101043b000004ef0010009c00000b1f0000213d000000400200043d0000002003200039000005880400004100000000004304350000004403200039000000080400002900000000004304350000002403200039000000000013043500000044010000390000000000120435000005370020009c000004570000213d0000000701000029000004ef011001970000008003200039000000400030043f000700000001001d13ac121d0000040f00000004010000390000000201100367000000000601043b000004ef0060009c00000b1f0000213d000000400100043d00000008020000290000000000210435000004ec0010009c000004ec0100804100000040011002100000000002000414000004ec0020009c000004ec02008041000000c002200210000000000112019f0000056e011001c70000800d0200003900000003030000390000058904000041000000070500002913ac13a20000040f000000010020019000000b1f0000613d00000001010000390000006502000039000000000012041b000004b40000013d000005430030009c000004570000213d00000005010000290000000001010433000000a002300039000000400020043f000000000001004b0000000002000039000000010200c0390000008001300039000000000021043500000060023000390000008005000039000000000052043500000040053000390000000606000029000000000065043500000020063000390000000000460435000000070400002900000000004304350000054e04000041000000400800043d0000000004480436000600000004001d0000000404800039000000400700003900000000007404350000000003030433000004ec033001970000004404800039000000000034043500000000030604330000006404800039000000000034043500000000030504330000008404800039000000a0050000390000000000540435000000e40680003900000000450304340000000000560435000700000008001d0000010403800039000000000005004b00000c9c0000613d000000000600001900000000073600190000000008640019000000000808043300000000008704350000002006600039000000000056004b00000c950000413d0000000404000029000004ef04400197000000000635001900000000000604350000001f05500039000005a30550019700000000020204330000000706000029000000a406600039000000c0075000390000000000760435000000000635001900000000530204340000000002360436000000000003004b00000cb40000613d000000000600001900000000072600190000000008650019000000000808043300000000008704350000002006600039000000000036004b00000cad0000413d0000000005230019000000000005043500000000010104330000000707000029000000240570003900000008060000290000000000650435000000c405700039000000000001004b0000000001000039000000010100c03900000000001504350000000001000414000000040040008c00000cd40000c13d0000000103000031000000800030008c0000008004000039000000000403401900000d400000013d0000001f0530018f000004ee06300198000000400200043d00000000046200190000065c0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000ccf0000c13d0000065c0000013d0000001f03300039000005a303300197000000070500002900000000025200490000000002320019000004ec0020009c000004ec020080410000006002200210000004ec0050009c000004ec0300004100000000030540190000004003300210000000000232019f000004ec0010009c000004ec01008041000000c001100210000000000121019f0000000002000416000000000002004b00000d1b0000c13d000000000204001900000d1f0000013d000004ec033001970000001f0530018f000004ee06300198000000400200043d00000000046200190000065c0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000cf20000c13d0000065c0000013d00000064021000390000000204000029000000000042043500000044021000390000000104000029000000000042043500000020021000390000054204000041000000000042043500000024041000390000000805000029000000000054043500000064040000390000000000410435000005430010009c000004570000213d000000a004100039000200000004001d000000400040043f000005440010009c000004570000213d000000e004100039000000400040043f000000200400003900000002050000290000000000450435000000c00410003900000545050000410000000000540435000000000401043300000000010004140000000305000029000000040050008c00000d8a0000c13d000000010200003900000d9c0000013d000004f1011001c700008009020000390000000003000416000000000500001913ac13a20000040f0000006003100270000004ec03300197000000800030008c000000800400003900000000040340190000001f0640018f000000e007400190000000070570002900000d2f0000613d000000000801034f0000000709000029000000008a08043c0000000009a90436000000000059004b00000d2b0000c13d000000000006004b00000d3c0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f0003000000010355000000010020019000000d7e0000613d0000001f01400039000001e00210018f0000000701200029000000000021004b00000000020000390000000102004039000004f70010009c000004570000213d0000000100200190000004570000c13d000000400010043f000000800030008c00000b1f0000413d0000053e0010009c000004570000213d0000006002100039000000400020043f00000007020000290000000002020433000000000221043600000006030000290000000003030433000004f70030009c00000b1f0000213d0000000000320435000000400200043d0000053c0020009c000004570000213d0000004003200039000000400030043f00000007040000290000004003400039000000000303043300000000033204360000006004400039000000000404043300000000004304350000004003100039000000000023043500000000060104330000053d01000041000000000101041a0000000002020433000000400300043d00000020043000390000000000240435000004ec011001970000000000130435000004ec0030009c000004ec0300804100000040013002100000000002000414000004ec0020009c000004ec02008041000000c002200210000000000112019f0000053b011001c70000800d0200003900000003030000390000054f040000410000000005000411000005e80000013d0000001f0530018f000004ee06300198000000400200043d00000000046200190000065c0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000d850000c13d0000065c0000013d000004ec0020009c000004ec020080410000004002200210000004ec0040009c000004ec040080410000006003400210000000000223019f000004ec0010009c000004ec01008041000000c001100210000000000121019f000000030200002913ac13a20000040f000000010220018f00030000000103550000006001100270000104ec0010019d000004ec03100197000000000003004b00000db90000c13d000100600000003d00000001010000290000000001010433000000000002004b00000e340000c13d000000000001004b00000e5a0000c13d000000400300043d000800000003001d000005490100004100000000001304350000000401300039000000200200003900000000002104350000002402300039000000020100002913ac120b0000040f00000008020000290000000001210049000004ec0010009c000004ec01008041000004ec0020009c000004ec0200804100000060011002100000004002200210000000000121019f000013ae00010430000004f70030009c000004570000213d0000001f01300039000005a3011001970000003f01100039000005a301100197000000400400043d0000000001140019000100000004001d000000000041004b00000000040000390000000104004039000004f70010009c000004570000213d0000000100400190000004570000c13d000000400010043f00000001010000290000000001310436000005a3043001980000001f0330018f000700000001001d0000000001410019000000030500036700000dd80000613d000000000605034f0000000707000029000000006806043c0000000007870436000000000017004b00000dd40000c13d000000000003004b00000d9f0000613d000000000445034f0000000303300210000000000501043300000000053501cf000000000535022f000000000404043b0000010003300089000000000434022f00000000033401cf000000000353019f000000000031043500000d9f0000013d0000000802000029000004ec0020009c000004ec020080410000004002200210000004ec0010009c000004ec01008041000000c001100210000000000121019f000004fa011001c7000000060200002913ac13a70000040f0000006003100270000004ec03300197000000200030008c000000200400003900000000040340190000001f0640018f0000002007400190000000080570002900000e000000613d000000000801034f0000000809000029000000008a08043c0000000009a90436000000000059004b00000dfc0000c13d000000000006004b00000e0d0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f0003000000010355000000010020019000000e4e0000613d0000001f01400039000000600110018f0000000801100029000004f70010009c000004570000213d000000400010043f000000200040008c00000b1f0000413d00000008020000290000000002020433000005630020009c00000b1f0000813d00000004030000390000000203300367000000000303043b000004ec0030009c00000b1f0000213d000000200410003900000000003404350000000000210435000004ec0010009c000004ec0100804100000040011002100000000002000414000004ec0020009c000004ec02008041000000c002200210000000000112019f0000053b011001c70000800d020000390000000303000039000005640400004100000006050000290000000706000029000005e80000013d000000000001004b00000e670000c13d000004f3010000410000000000100443000000030100002900000004001004430000000001000414000004ec0010009c000004ec01008041000000c001100210000004f4011001c7000080020200003913ac13a70000040f000000010020019000000e4d0000613d000000000101043b000000000001004b00000e630000c13d000000400100043d00000044021000390000054b03000041000000000032043500000024021000390000001d03000039000005f20000013d000000000001042f0000001f0530018f000004ee06300198000000400200043d00000000046200190000065c0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000e550000c13d0000065c0000013d0000000702000029000004ec0020009c000004ec020080410000004002200210000004ec0010009c000004ec010080410000006001100210000000000121019f000013ae0001043000000001010000290000000001010433000000000001004b000008b80000613d000005460010009c000000070200002900000b1f0000213d000000200010008c00000b1f0000413d0000000001020433000000000001004b0000000002000039000000010200c039000000000021004b00000b1f0000c13d000000000001004b000008b80000c13d000000400100043d00000064021000390000054703000041000000000032043500000044021000390000054803000041000000000032043500000024021000390000002a03000039000006f00000013d000005a50010009c00000e830000813d0000008001100039000000400010043f000000000001042d0000058a01000041000000000010043f0000004101000039000000040010043f000004f601000041000013ae000104300000001f02200039000005a3022001970000000001120019000000000021004b00000000020000390000000102004039000004f70010009c00000e950000213d000000010020019000000e950000c13d000000400010043f000000000001042d0000058a01000041000000000010043f0000004101000039000000040010043f000004f601000041000013ae00010430000004ef01100197000000000010043f0000053a01000041000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f000000010020019000000eaa0000613d000000000101043b000000000001042d0000000001000019000013ae0001043000040000000000020000000001000411000000000010043f000005a601000041000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f000000010020019000000ebf0000613d000000000101043b000000000101041a000000ff0010019000000ec10000613d000000000001042d0000000001000019000013ae00010430000000400200043d000005a70020009c00000eca0000413d0000058a01000041000000000010043f0000004101000039000000040010043f000004f601000041000013ae000104300000006004200039000000400040043f0000002a01000039000000000112043600000000030000310000000203300367000000000503034f0000000006010019000000005705043c0000000006760436000000000046004b00000ed20000c13d00000000040104330000058404400197000005a8044001c70000000000410435000000210420003900000000050404330000058405500197000005a9055001c700000000005404350000002904000039000000000600041100000000050600190000000006020433000000000046004b00000f470000a13d0000000006140019000000000706043300000584077001970000000308500210000000780880018f000005aa0880021f000005ab08800197000000000787019f00000000007604350000000406500270000000010440008a000000010040008c00000ee10000213d000000400700043d000000100050008c00000f4d0000813d000005370070009c00000ec40000213d0000008004700039000000400040043f000000420500003900000000055704360000000008050019000000003603043c0000000005650436000000000045004b00000efc0000c13d00000000030804330000058403300197000005a8033001c700000000003804350000000006070019000000210370003900000000040304330000058404400197000005a9044001c7000000000043043500000041030000390000000004060433000000000034004b00000f470000a13d000000000483001900000000050404330000058405500197000005a8055001c70000000000540435000000010330008a000000010030008c00000f0b0000213d000000400500043d000400000005001d0000002003500039000005ad0400004100000000004304350000000003020433000300000003001d0000003702500039000100000006001d000200000008001d13ac11fe0000040f000000030200002900000004012000290000003702100039000005ae030000410000000000320435000000480210003900000001010000290000000003010433000100000003001d000000020100002913ac11fe0000040f00000001020000290000000303200029000000280230003900000004010000290000000000210435000000480230003913ac0e890000040f0000054901000041000000400300043d000300000003001d00000000001304350000002001000039000000040230003900000000001204350000002402300039000000040100002913ac120b0000040f00000003020000290000000001210049000004ec0010009c000004ec01008041000004ec0020009c000004ec0200804100000060011002100000004002200210000000000121019f000013ae000104300000058a01000041000000000010043f0000003201000039000000040010043f000004f601000041000013ae000104300000004401700039000005ac0200004100000000002104350000054901000041000000000017043500000024017000390000002002000039000000000021043500000004017000390000000000210435000004ec0070009c000004ec0700804100000040017002100000054c011001c7000013ae000104300004000000000002000400000001001d000000000010043f000000c901000039000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f000000010020019000000f7c0000613d000000000101043b0000000002000411000000000020043f000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f000000010020019000000f7c0000613d000000000101043b000000000101041a000000ff0010019000000f7e0000613d000000000001042d0000000001000019000013ae00010430000000400200043d000005a70020009c00000f870000413d0000058a01000041000000000010043f0000004101000039000000040010043f000004f601000041000013ae000104300000006004200039000000400040043f0000002a01000039000000000112043600000000030000310000000203300367000000000503034f0000000006010019000000005705043c0000000006760436000000000046004b00000f8f0000c13d00000000040104330000058404400197000005a8044001c70000000000410435000000210420003900000000050404330000058405500197000005a9055001c700000000005404350000002904000039000000000600041100000000050600190000000006020433000000000046004b0000100e0000a13d0000000006140019000000000706043300000584077001970000000308500210000000780880018f000005aa0880021f000005ab08800197000000000787019f00000000007604350000000406500270000000010440008a000000010040008c00000f9e0000213d000000100050008c000010140000813d000000400400043d000300000004001d000005370040009c00000f810000213d00000003060000290000008004600039000000400040043f00000042050000390000000005560436000200000005001d000000003603043c0000000005650436000000000045004b00000fbb0000c13d000000020900002900000000030904330000058403300197000005a8033001c700000000003904350000000308000029000000210380003900000000040304330000058404400197000005a9044001c700000000004304350000004103000039000000040500002900000000040500190000000005080433000000000035004b0000100e0000a13d0000000005930019000000000605043300000584066001970000000307400210000000780770018f000005aa0770021f000005ab07700197000000000667019f00000000006504350000000405400270000000010330008a000000010030008c00000fcc0000213d000000100040008c000010140000813d000000400500043d000400000005001d0000002003500039000005ad0400004100000000004304350000000003020433000100000003001d000000370250003913ac11fe0000040f000000010200002900000004012000290000003702100039000005ae030000410000000000320435000000480210003900000003010000290000000003010433000300000003001d000000020100002913ac11fe0000040f00000003020000290000000103200029000000280230003900000004010000290000000000210435000000480230003913ac0e890000040f0000054901000041000000400300043d000300000003001d00000000001304350000002001000039000000040230003900000000001204350000002402300039000000040100002913ac120b0000040f00000003020000290000000001210049000004ec0010009c000004ec01008041000004ec0020009c000004ec0200804100000060011002100000004002200210000000000121019f000013ae000104300000058a01000041000000000010043f0000003201000039000000040010043f000004f601000041000013ae00010430000000400100043d0000004402100039000005ac0300004100000000003204350000054902000041000000000021043500000024021000390000002003000039000000000032043500000004021000390000000000320435000004ec0010009c000004ec0100804100000040011002100000054c011001c7000013ae000104300002000000000002000004ef01100197000200000001001d000000000010043f000005a601000041000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f0000000100200190000010910000613d000000000101043b000000000101041a000000ff00100190000010570000c13d0000000201000029000000000010043f000005a601000041000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f0000000100200190000010910000613d000000000101043b000000000201041a000005a10220019700000001022001bf000000000021041b0000000001000414000004ec0010009c000004ec01008041000000c001100210000004f1011001c70000800d020000390000000403000039000000000700041100000592040000410000000005000019000000020600002913ac13a20000040f0000000100200190000010910000613d0000000201000029000000000010043f000005af01000041000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f0000000100200190000010910000613d000000000101043b000000000101041a000000000001004b000010690000613d000000000001042d000005b001000041000000000201041a000005b10020009c000010930000813d000100000002001d0000000102200039000000000021041b000000000010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000056e011001c7000080100200003913ac13a70000040f0000000100200190000010910000613d000000000101043b00000001011000290000000202000029000000000021041b000005b001000041000000000101041a000100000001001d000000000020043f000005af01000041000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f0000000100200190000010910000613d000000000101043b0000000102000029000000000021041b000000000001042d0000000001000019000013ae000104300000058a01000041000000000010043f0000004101000039000000040010043f000004f601000041000013ae000104300006000000000002000600000002001d000500000001001d000000000010043f000000c901000039000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f0000000100200190000011690000613d000000000101043b0000000602000029000004ef02200197000600000002001d000000000020043f000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f0000000100200190000011690000613d000000000101043b000000000101041a000000ff00100190000010e70000613d0000000501000029000000000010043f000000c901000039000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f0000000100200190000011690000613d000000000101043b0000000602000029000000000020043f000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f0000000100200190000011690000613d000000000101043b000000000201041a000005a102200197000000000021041b0000000001000414000004ec0010009c000004ec01008041000000c001100210000004f1011001c70000800d0200003900000004030000390000000007000411000005b2040000410000000505000029000000060600002913ac13a20000040f0000000100200190000011690000613d0000000501000029000000000010043f000000fb01000039000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f0000000100200190000011690000613d000000000201043b0000000601000029000000000010043f000500000002001d0000000101200039000300000001001d000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f0000000100200190000011690000613d0000000503000029000000000101043b000000000101041a000000000001004b000011680000613d000000000203041a000000000002004b0000116b0000613d000000000012004b000400000001001d000011480000613d000200000002001d000000000030043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000056e011001c7000080100200003913ac13a70000040f0000000100200190000011690000613d00000004020000290001000100200092000000000101043b0000000504000029000000000204041a000000010020006c000011710000a13d0000000202000029000000010220008a0000000001120019000000000101041a000200000001001d000000000040043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000056e011001c7000080100200003913ac13a70000040f0000000100200190000011690000613d000000000101043b00000001011000290000000202000029000000000021041b000000000020043f0000000301000029000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f0000000100200190000011690000613d000000000101043b0000000402000029000000000021041b0000000503000029000000000103041a000400000001001d000000000001004b000011770000613d000000000030043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000056e011001c7000080100200003913ac13a70000040f0000000100200190000011690000613d0000000402000029000000010220008a000000000101043b0000000001210019000000000001041b0000000501000029000000000021041b0000000601000029000000000010043f0000000301000029000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f0000000100200190000011690000613d000000000101043b000000000001041b000000000001042d0000000001000019000013ae000104300000058a01000041000000000010043f0000001101000039000000040010043f000004f601000041000013ae000104300000058a01000041000000000010043f0000003201000039000000040010043f000004f601000041000013ae000104300000058a01000041000000000010043f0000003101000039000000040010043f000004f601000041000013ae00010430000004ef061001970000012d01000039000000000201041a000004f003200197000000000363019f000000000031041b0000000001000414000004ef05200197000004ec0010009c000004ec01008041000000c001100210000004f1011001c70000800d020000390000000303000039000004f20400004113ac13a20000040f0000000100200190000011900000613d000000000001042d0000000001000019000013ae0001043000010000000000020000057201000041000000000101041a000100000001001d000005b30100004100000000001004430000000001000414000004ec0010009c000004ec01008041000000c001100210000005b4011001c70000800b0200003913ac13a70000040f0000000100200190000011f50000613d0000000106000029000004ec03600197000000000501043b000000000435004b0000000001000019000011ee0000413d00000002010003670000002402100370000000000a02043b0000002002600270000004ec06200197000000000065004b000011d90000813d0000004402100370000000000202043b000000400700043d000005b50070009c000011f80000813d000000a008700039000000400080043f0000002008700039000000000068043500000000003704350000057408000041000000000808041a000000400970003900000000008904350000056908000041000000000808041a0000006009700039000000000089043500000080077000390000057008000041000000000808041a00000000008704350000000006360049000005630060009c000011ef0000813d000005b6074000d1000000000035004b000011cd0000613d00000000034700d9000005b60030009c000011ef0000c13d00000000042a004b000011ef0000413d00000000056700d900000000034500a9000011d50000613d00000000044300d9000000000045004b000011ef0000c13d000005b60330012a000000000023001a000011ef0000413d000000000a23001900010000000a001d0000000401100370000000000101043b000005410010009c000011f60000813d000000000010043f0000053a01000041000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f0000000100200190000011f60000613d000000000101043b000000000101041a000000010110006b000011ef0000413d000000000001042d0000058a01000041000000000010043f0000001101000039000000040010043f000004f601000041000013ae00010430000000000001042f0000000001000019000013ae000104300000058a01000041000000000010043f0000004101000039000000040010043f000004f601000041000013ae00010430000000000003004b000012080000613d000000000400001900000000052400190000000006140019000000000606043300000000006504350000002004400039000000000034004b000012010000413d00000000012300190000000000010435000000000001042d00000000430104340000000001320436000000000003004b000012170000613d000000000200001900000000051200190000000006240019000000000606043300000000006504350000002002200039000000000032004b000012100000413d000000000213001900000000000204350000001f02300039000005a3022001970000000001210019000000000001042d0004000000000002000000400400043d000005b70040009c000012e00000813d000004ef051001970000004001400039000000400010043f0000002001400039000005450300004100000000003104350000002001000039000000000014043500000000230204340000000001000414000000040050008c000012580000c13d0000000101000032000012930000613d000004f70010009c000012e00000213d0000001f03100039000005a3033001970000003f03300039000005a303300197000000400a00043d00000000033a00190000000000a3004b00000000040000390000000104004039000004f70030009c000012e00000213d0000000100400190000012e00000c13d000000400030043f00000000051a0436000005a3021001980000001f0310018f000000000125001900000003040003670000124a0000613d000000000604034f000000006706043c0000000005750436000000000015004b000012460000c13d000000000003004b000012940000613d000000000224034f0000000303300210000000000401043300000000043401cf000000000434022f000000000202043b0000010003300089000000000232022f00000000023201cf000000000242019f0000000000210435000012940000013d000200000004001d000004ec0030009c000004ec030080410000006003300210000004ec0020009c000004ec020080410000004002200210000000000223019f000004ec0010009c000004ec01008041000000c001100210000000000112019f000100000005001d000000000205001913ac13a20000040f00030000000103550000006003100270000104ec0030019d000004ec04300198000012ab0000613d0000001f03400039000004ed033001970000003f03300039000005b803300197000000400a00043d00000000033a00190000000000a3004b00000000050000390000000105004039000004f70030009c000012e00000213d0000000100500190000012e00000c13d000000400030043f0000001f0540018f00000000034a0436000004ee064001980000000004630019000012850000613d000000000701034f0000000008030019000000007907043c0000000008980436000000000048004b000012810000c13d000000000005004b000012ad0000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f0000000000140435000012ad0000013d000000600a0000390000000002000415000000040220008a000000050220021000000000010a0433000000000001004b000012b50000c13d00020000000a001d000004f3010000410000000000100443000000040100003900000004001004430000000001000414000004ec0010009c000004ec01008041000000c001100210000004f4011001c7000080020200003913ac13a70000040f0000000100200190000013120000613d0000000002000415000000040220008a000012c80000013d000000600a000039000000800300003900000000010a04330000000100200190000012fc0000613d0000000002000415000000030220008a0000000502200210000000000001004b000012b80000613d000000050220027000000000020a001f000012d20000013d00020000000a001d000004f3010000410000000000100443000000010100002900000004001004430000000001000414000004ec0010009c000004ec01008041000000c001100210000004f4011001c7000080020200003913ac13a70000040f0000000100200190000013120000613d0000000002000415000000030220008a0000000502200210000000000101043b000000000001004b000000020a000029000013130000613d00000000010a0433000000050220027000000000020a001f000000000001004b000012df0000613d000005460010009c000012e60000213d000000200010008c000012e60000413d0000002001a000390000000001010433000000000001004b0000000002000039000000010200c039000000000021004b000012e60000c13d000000000001004b000012e80000613d000000000001042d0000058a01000041000000000010043f0000004101000039000000040010043f000004f601000041000013ae000104300000000001000019000013ae00010430000000400100043d00000064021000390000054703000041000000000032043500000044021000390000054803000041000000000032043500000024021000390000002a03000039000000000032043500000549020000410000000000210435000000040210003900000020030000390000000000320435000004ec0010009c000004ec0100804100000040011002100000054a011001c7000013ae00010430000000000001004b000013240000c13d000000400300043d000100000003001d000005490100004100000000001304350000000401300039000000200200003900000000002104350000002402300039000000020100002913ac120b0000040f00000001020000290000000001210049000004ec0010009c000004ec01008041000004ec0020009c000004ec0200804100000060011002100000004002200210000000000121019f000013ae00010430000000000001042f000000400100043d00000044021000390000054b03000041000000000032043500000024021000390000001d03000039000000000032043500000549020000410000000000210435000000040210003900000020030000390000000000320435000004ec0010009c000004ec0100804100000040011002100000054c011001c7000013ae00010430000004ec0030009c000004ec030080410000004002300210000004ec0010009c000004ec010080410000006001100210000000000121019f000013ae000104300001000000000002000000000301041a000100000002001d000000000023004b0000133f0000a13d000000000010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000056e011001c7000080100200003913ac13a70000040f0000000100200190000013450000613d000000000101043b00000001011000290000000002000019000000000001042d0000058a01000041000000000010043f0000003201000039000000040010043f000004f601000041000013ae000104300000000001000019000013ae000104300004000000000002000300000002001d000000000020043f000400000001001d0000000101100039000200000001001d000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f0000000100200190000013840000613d000000000101043b000000000101041a000000000001004b0000135c0000613d000000000001042d0000000402000029000000000102041a000005b10010009c000013860000813d000100000001001d0000000101100039000000000012041b000000000020043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000056e011001c7000080100200003913ac13a70000040f0000000100200190000013840000613d000000000101043b00000001011000290000000302000029000000000021041b0000000401000029000000000101041a000400000001001d000000000020043f0000000201000029000000200010043f0000000001000414000004ec0010009c000004ec01008041000000c0011002100000053b011001c7000080100200003913ac13a70000040f0000000100200190000013840000613d000000000101043b0000000402000029000000000021041b000000000001042d0000000001000019000013ae000104300000058a01000041000000000010043f0000004101000039000000040010043f000004f601000041000013ae00010430000000000001042f000004ec0010009c000004ec010080410000004001100210000004ec0020009c000004ec020080410000006002200210000000000112019f0000000002000414000004ec0020009c000004ec02008041000000c002200210000000000112019f000004f1011001c7000080100200003913ac13a70000040f0000000100200190000013a00000613d000000000101043b000000000001042d0000000001000019000013ae00010430000013a5002104210000000102000039000000000001042d0000000002000019000000000001042d000013aa002104230000000102000039000000000001042d0000000002000019000000000001042d000013ac00000432000013ad0001042e000013ae00010430000000000000000000000000000000000000000000000000000000000000000000000000ffffffff00000000000000000000000000000000000000000000000000000001ffffffe000000000000000000000000000000000000000000000000000000000ffffffe0000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000008be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e01806aa1896bbf26568e884a7374b41e002500962caba6a15023a8d90e8508b830200000200000000000000000000000000000024000000000000000000000000ca5eb5e1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffff0000000200000000000000000000000000000040000001000000000000000000b5863604000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000009010d07b00000000000000000000000000000000000000000000000000000000cb93bc9f00000000000000000000000000000000000000000000000000000000de5b182900000000000000000000000000000000000000000000000000000000fccbe21f00000000000000000000000000000000000000000000000000000000fccbe22000000000000000000000000000000000000000000000000000000000fd8ce2a600000000000000000000000000000000000000000000000000000000ff7bd03d00000000000000000000000000000000000000000000000000000000de5b182a00000000000000000000000000000000000000000000000000000000f0a3563c00000000000000000000000000000000000000000000000000000000f2fde38b00000000000000000000000000000000000000000000000000000000d54ad2a000000000000000000000000000000000000000000000000000000000d54ad2a100000000000000000000000000000000000000000000000000000000d6d8e46b00000000000000000000000000000000000000000000000000000000dafc4c2a00000000000000000000000000000000000000000000000000000000cb93bca000000000000000000000000000000000000000000000000000000000d547741f00000000000000000000000000000000000000000000000000000000b9f4b5c100000000000000000000000000000000000000000000000000000000c8fb6c6a00000000000000000000000000000000000000000000000000000000c8fb6c6b00000000000000000000000000000000000000000000000000000000ca15c87300000000000000000000000000000000000000000000000000000000ca5eb5e100000000000000000000000000000000000000000000000000000000b9f4b5c200000000000000000000000000000000000000000000000000000000bb0b6a5300000000000000000000000000000000000000000000000000000000c0c53b8b00000000000000000000000000000000000000000000000000000000a217fdde00000000000000000000000000000000000000000000000000000000a217fddf00000000000000000000000000000000000000000000000000000000a997699800000000000000000000000000000000000000000000000000000000b92d0eff000000000000000000000000000000000000000000000000000000009010d07c0000000000000000000000000000000000000000000000000000000091d148540000000000000000000000000000000000000000000000000000000036b6bca6000000000000000000000000000000000000000000000000000000005e280f10000000000000000000000000000000000000000000000000000000007d25a05d000000000000000000000000000000000000000000000000000000007d25a05e000000000000000000000000000000000000000000000000000000008456cb59000000000000000000000000000000000000000000000000000000008da5cb5b000000000000000000000000000000000000000000000000000000005e280f1100000000000000000000000000000000000000000000000000000000715018a60000000000000000000000000000000000000000000000000000000078e979250000000000000000000000000000000000000000000000000000000045534703000000000000000000000000000000000000000000000000000000004553470400000000000000000000000000000000000000000000000000000000485cc955000000000000000000000000000000000000000000000000000000005c975abb0000000000000000000000000000000000000000000000000000000036b6bca7000000000000000000000000000000000000000000000000000000003f4ba83a0000000000000000000000000000000000000000000000000000000024b6fa6a000000000000000000000000000000000000000000000000000000003197cbb5000000000000000000000000000000000000000000000000000000003197cbb6000000000000000000000000000000000000000000000000000000003400288b0000000000000000000000000000000000000000000000000000000036568abe0000000000000000000000000000000000000000000000000000000024b6fa6b000000000000000000000000000000000000000000000000000000002eb4a7ab000000000000000000000000000000000000000000000000000000002f2ff15d0000000000000000000000000000000000000000000000000000000017442b6f0000000000000000000000000000000000000000000000000000000017442b7000000000000000000000000000000000000000000000000000000000199cbc5400000000000000000000000000000000000000000000000000000000248a9ca30000000000000000000000000000000000000000000000000000000001ffc9a70000000000000000000000000000000000000000000000000000000013137d650000000000000000000000000000000000000020000000800000000000000000000000000000000000000000000000000000000000000000ffffffffffffff7f7a484458a208f16dc0b6696974cbddcd82c1024d6f7d8afdd2beace9a214280a7a484458a208f16dc0b6696974cbddcd82c1024d6f7d8afdd2beace9a214280b7a484458a208f16dc0b6696974cbddcd82c1024d6f7d8afdd2beace9a21428080200000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffbf039cd6ec633c119ed0580932fe97933bd3101a89823dd336b8d8d3a53eaf3446000000000000000000000000000000000000000000000000ffffffffffffff9f9f70412000000000000000000000000000000000000000000000000000000000e4fe1d9400000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000023b872dd00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff5f000000000000000000000000000000000000000000000000ffffffffffffff1f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65647fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6f742073756363656564000000000000000000000000000000000000000000005361666545524332303a204552433230206f7065726174696f6e20646964206e08c379a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084000000000000000000000000416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000000000000000000000000000000000000000000640000000000000000000000005373352a000000000000000000000000000000000000000000000000000000002637a450000000000000000000000000000000000000000000000000000000000400395bc3edc4291e04d8b7e29aed1fa3af07f8da71246aa25accaabb80a7b6f6ff4fb70000000000000000000000000000000000000000000000000000000044dddc9700000000000000000000000000000000000000000000000000000000ddc28c580000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000004f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008400000080000000000000000000000000000000000000000000000000000000200000000000000000000000007a484458a208f16dc0b6696974cbddcd82c1024d6f7d8afdd2beace9a2142809039cd6ec633c119ed0580932fe97933bd3101a89823dd336b8d8d3a53eaf34494f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572238399d427b947898edb290f5ff0f9109849b1c3ba196a42e35f00c50a54b98b9535ff30000000000000000000000000000000000000000000000000000000006a14d71500000000000000000000000000000000000000000000000000000000ffffffffffffffff0000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffff00000000039cd6ec633c119ed0580932fe97933bd3101a89823dd336b8d8d3a53eaf3447039cd6ec633c119ed0580932fe97933bd3101a89823dd336b8d8d3a53eaf3448416ecebf00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000051f937e292f244a177e1e09d1c4e7a617d80a2bd7f2b2efb7783fce5a92ccf6aadd8396000000000000000000000000000000000000000000000000000000000741d58fe00000000000000000000000000000000000000000000000000000000437e4d47000000000000000000000000000000000000000000000000000000006ed946e5000000000000000000000000000000000000000000000000000000007a484458a208f16dc0b6696974cbddcd82c1024d6f7d8afdd2beace9a2142806ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00007a484458a208f16dc0b6696974cbddcd82c1024d6f7d8afdd2beace9a21428027a484458a208f16dc0b6696974cbddcd82c1024d6f7d8afdd2beace9a21428031a7a85f3e38923e23ce6f75f5dc8d9c48333575b8275c1d125a6d1138f29e7cd02000000000000000000000000000000000000200000000000000000000000007f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024987a484458a208f16dc0b6696974cbddcd82c1024d6f7d8afdd2beace9a2142807000000000000000000000000000000000000000000000000ffffffff000000007a484458a208f16dc0b6696974cbddcd82c1024d6f7d8afdd2beace9a2142804ffffffffffffffffffffffffffffffffffffffffffffffff00000000000000007a484458a208f16dc0b6696974cbddcd82c1024d6f7d8afdd2beace9a2142805cd29d44a9f2978409ce75cbccc36196562241eec543ea5c2d2336ff73f0349adc6e369f9000000000000000000000000000000000000000000000000000000009dd854d3000000000000000000000000000000000000000000000000000000005061757361626c653a207061757365640000000000000000000000000000000062e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258647920696e697469616c697a6564000000000000000000000000000000000000496e697469616c697a61626c653a20636f6e747261637420697320616c7265616b093aad000000000000000000000000000000000000000000000000000000006e697469616c697a696e67000000000000000000000000000000000000000000496e697469616c697a61626c653a20636f6e7472616374206973206e6f7420690000000000000000000000000000000000000064000000800000000000000000ea8e4eb5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000800000000000000000cc3d967b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002400000080000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffb98d458e000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01c61a78800000000000000000000000000000000000000000000000000000000a9059cbb00000000000000000000000000000000000000000000000000000000f7a40077ff7a04c7e61f6f26fb13774259ddf1b6bce9ecf26a8276cdd39926834e487b71000000000000000000000000000000000000000000000000000000000f3f8610000000000000000000000000000000000000000000000000000000005265656e7472616e637947756172643a207265656e7472616e742063616c6c005db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa5061757361626c653a206e6f74207061757365640000000000000000000000000000000000000000000000000000000000000080000000000000000000000000416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c6600000000000000000000000000000000002f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d0edc89fe00000000000000000000000000000000000000000000000000000000fa92ceca00000000000000000000000000000000000000000000000000000000fbde7c1200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000080000000000000000091ac5e4f00000000000000000000000000000000000000000000000000000000c26bebcc0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000440000000000000000000000009aa9a49c000000000000000000000000000000000000000000000000000000008d0242c90000000000000000000000000000000000000000000000000000000075f673491d39cd1102d1e8da50b4e04666820e74b28924e84e72c7d1e1e65de000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff5a05180f0000000000000000000000000000000000000000000000000000000001ffc9a7000000000000000000000000000000000000000000000000000000007965db0b00000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000ffffffffffffff8081fe90a866a48a634a12852c1be675b683a22307409932a7443b8029347be756000000000000000000000000000000000000000000000000ffffffffffffffa03000000000000000000000000000000000000000000000000000000000000000780000000000000000000000000000000000000000000000000000000000000030313233343536373839616263646566000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000537472696e67733a20686578206c656e67746820696e73756666696369656e74416363657373436f6e74726f6c3a206163636f756e7420000000000000000000206973206d697373696e6720726f6c6520000000000000000000000000000000c88390e7e62175be0932452175b6a7222b6b094ab0ef984a5153c620345d8976c88390e7e62175be0932452175b6a7222b6b094ab0ef984a5153c620345d89750000000000000000000000000000000000000000000000010000000000000000f6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b796b89b91644bc98cd93958e4c9038275d622183e25ac5af08cc6b5d955391320200000200000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff600000000000000000000000000000000000c097ce7bc90715b34b9f1000000000000000000000000000000000000000000000000000000000ffffffffffffffc000000000000000000000000000000000000000000000000000000003ffffffe00000000000000000000000000000000000000000000000000000000000000000814b43445e77d98b4227e23d623ad51e7998da40d3c646e853433016006866f9

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

00000000000000000000000016c693a3924b947298f7227792953cd6bbb21ac8

-----Decoded View---------------
Arg [0] : _srcEndpoint (address): 0x16c693A3924B947298F7227792953Cd6BBb21Ac8

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000016c693a3924b947298f7227792953cd6bbb21ac8


Block Transaction Gas Used Reward
view all blocks produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.