Source Code
Overview
ETH Balance
0 ETH
Token Holdings
More Info
ContractCreator
Multichain Info
N/A
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Update | 5047567 | 31 hrs ago | IN | 0 ETH | 0.00000348 |
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xA56efC89...2a77317Ea The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
LinearVestingOApp
Compiler Version
v0.8.23+commit.f704f362
ZkSolc Version
v1.5.10
Optimization Enabled:
Yes with Mode 3
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.23; import {IERC20} from "openzeppelin-contracts/token/ERC20/IERC20.sol"; import {SafeERC20} from "openzeppelin-contracts/token/ERC20/utils/SafeERC20.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 SafeERC20 for IERC20; using AddressMessageCodec for bytes; using TimePeriodMessageCodec for bytes; constructor( address _token, address _srcEndpoint ) OAppConfigurator(_srcEndpoint, msg.sender) LinearVesting(_token, address(0)) { LinearVestingStorage.layout().isCrosschainIDO = true; LinearVestingOAppStorage.layout().endpoint = ILayerZeroEndpointV2( _srcEndpoint ); } /// @inheritdoc ILinearVestingOApp function updateLzConfig(OAppSetUp calldata _setUp) external onlyOwner { 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; } // be able to receive ether receive() external payable virtual {} fallback() external payable {} }
// 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 { constructor( address _token, address _ido ) LinearVestingWritable(_token, _ido) {} function getClaimableAmount( UserAllocation calldata alloc ) public view override(LinearVestingWritable, ILinearVestingReadable) returns (uint256 claimableAmount) { return LinearVestingWritable.getClaimableAmount(alloc); } }
// 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 _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(); } } }
// 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 } } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.23; import {IOAppConfigurator} from "../../common/oapp/IOAppConfigurator.sol"; interface ILinearVestingOApp { /// @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); }
// 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 } } }
// 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])); } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.23; abstract contract LinearVestingOAppTypes { event RenouncedClaimAndSentCrosschainRefund( address indexed user, uint32 dstEID, bytes32 indexed guid, uint256 fee ); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.23; import {IERC20} from "openzeppelin-contracts/token/ERC20/IERC20.sol"; import {SafeERC20} from "openzeppelin-contracts/token/ERC20/utils/SafeERC20.sol"; import {ReentrancyGuard} from "openzeppelin-contracts/security/ReentrancyGuard.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, ReentrancyGuard { using SafeERC20 for IERC20; constructor( address _token, address _ido ) LinearVestingWritableRestricted(_token, _ido) {} /// @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; IERC20(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; } }
// 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); }
// 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)); } }
// 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; }
// 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; }
// 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; } }
// 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; } }
// 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); }
// 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); }
// 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); }
// 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); }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.23; interface IIDOWritableRestricted { 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; }
// 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); } } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.23; import {IERC20} from "openzeppelin-contracts/token/ERC20/IERC20.sol"; import {SafeERC20} from "openzeppelin-contracts/token/ERC20/utils/SafeERC20.sol"; import {Ownable} from "openzeppelin-contracts/access/Ownable.sol"; import {Pausable} from "openzeppelin-contracts/security/Pausable.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 ILinearVestingWritableRestricted, LinearVestingTypes, Ownable, Pausable { using SafeERC20 for IERC20; constructor(address _token, address _ido) { if (_token == address(0)) { revert ZeroTokenAddress(); } SetUp storage setUp = LinearVestingStorage.layout().setUp; setUp.vestedToken = _token; setUp.ido = _ido; emit LinearVestingSetUp(setUp); } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } /// @inheritdoc ILinearVestingWritableRestricted function update( bytes32 merkleRoot_, uint32 startTime_, uint32 endTime_, uint256 toClaim ) external override onlyOwner 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) { IERC20(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); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.9.0; import {console as console2} from "./console.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @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 ReentrancyGuard { // 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; constructor() { _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; } }
// 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) } } }
// 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); } }
// 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); }
// 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); }
// 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); }
// 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; }
// 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); }
// 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); }
// 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 } } }
// 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; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.23; import {UserAllocation} from "../../LinearVestingStruct.sol"; interface ILinearVestingWritableRestricted { /** * @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; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.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 Pausable is Context { /** * @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. */ constructor() { _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()); } }
// 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); } }
// 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)); } }
// 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); }
// 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); }
// 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; }
// 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); } }
// 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); } }
// 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; } }
// 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); }
// 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; }
// 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; }
{ "optimizer": { "enabled": true, "mode": "3" }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "abi" ] } }, "detectMissingLibraries": false, "forceEVMLA": false, "enableEraVMExtensions": true, "libraries": {} }
[{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"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":[{"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":"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":[{"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":[],"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":"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":[],"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"}]
Deployed Bytecode
0x00010000000000020007000000000002000000000801034f0000000000010355000000600110027000000343011001970000000100200190000000360000c13d0000008006000039000000400060043f000000040010008c0000049f0000413d000000000208043b000000e0022002700000035b0020009c000000800000a13d0000035c0020009c000000be0000a13d0000035d0020009c000000e20000a13d0000035e0020009c0000013f0000a13d0000035f0020009c000003300000613d000003600020009c000002050000613d000003610020009c0000049f0000c13d000000640010008c000008db0000413d0000000001000416000000000001004b000008db0000c13d0000000401800370000000000101043b000003430010009c000008db0000213d000000000010043f0000000301000039000000200010043f0000004002000039000000000100001900070000000803530d070ce80000040f000000070200035f0000002402200370000000000202043b000000000101041a000000000021004b00000000010000390000000101006039000000800010043f0000038b0100004100000d080001042e0000000002000416000000000002004b000008db0000c13d0000001f0210003900000344022001970000008002200039000000400020043f0000001f0310018f00000345041001980000008002400039000000470000613d0000008005000039000000000608034f000000006706043c0000000005750436000000000025004b000000430000c13d000000000003004b000000540000613d000000000448034f0000000303300210000000000502043300000000053501cf000000000535022f000000000404043b0000010003300089000000000434022f00000000033401cf000000000353019f0000000000320435000000400010008c000008db0000413d000000800300043d000003460030009c000008db0000213d000000a00100043d000700000001001d000003460010009c000008db0000213d000000400100043d000400000001001d000000000200041a0000000001000414000003430010009c0000034301008041000000c00110021000000347011001c7000500000002001d00000346052001970000800d02000039000600000003001d0000000303000039000000000600041100000348040000410d070cfd0000040f00000006030000290000000100200190000008db0000613d0000000501000029000003490110019700000000020004110000034a02200197000000000112019f000000000010041b000000000003004b000001d70000c13d0000035a0100004100000004020000290000000000120435000003430020009c0000034302008041000000400120021000000359011001c700000d0900010430000003740020009c000000920000213d000003800020009c000001130000213d000003860020009c0000015f0000213d000003890020009c000002460000613d0000038a0020009c0000049f0000c13d0000000001000416000000000001004b000008db0000c13d0000000101000039000000800010043f000000a00010043f000003d60100004100000d080001042e000003750020009c0000011a0000213d0000037b0020009c0000016f0000213d0000037e0020009c000002940000613d0000037f0020009c0000049f0000c13d000000840010008c000008db0000413d0000000002000416000000000002004b000008db0000c13d0000006402800370000000000202043b000003540020009c000008db0000213d0000002303200039000000000013004b000008db0000813d0000000403200039000000000338034f000000000303043b000003540030009c000008db0000213d000000050330021000000000023200190000002402200039000000000012004b000008db0000213d0000000102000039000000000102041a000000020010008c000004ba0000c13d0000039e01000041000000800010043f0000002001000039000000840010043f0000001f01000039000000a40010043f000003ce01000041000000c40010043f000003c30100004100000d0900010430000003690020009c000001290000213d0000036f0020009c000001790000213d000003720020009c000003d20000613d000003730020009c0000049f0000c13d000000840010008c000008db0000413d0000000001000416000000000001004b000008db0000c13d0000000401800370000000000101043b0000002402800370000000000702043b000003430070009c000008db0000213d0000004402800370000000000302043b000003430030009c000008db0000213d0000006402800370000000000402043b000000000200041a00000346052001970000000002000411000000000025004b000004310000c13d000000000001004b0000054a0000c13d000003be01000041000000800010043f000003bd0100004100000d0900010430000003640020009c000001340000213d000003670020009c000002a80000613d000003680020009c0000049f0000c13d000000840010008c000008db0000413d0000000001000416000000000001004b000008db0000c13d000000000100041a00000346011001970000000002000411000000000021004b000004310000c13d0000035601000041000000000101041a000600000001001d0000010001000039000000400010043f0000000401800370000000000101043b000700000001001d000003430010009c000008db0000213d0000000701000029000000800010043f0000002401800370000000000101043b000003460010009c000008db0000213d000000a00010043f0000004402800370000000000202043b000003460020009c000008db0000213d000000c00020043f0000006403800370000000000303043b000003460030009c000008db0000213d000000e00030043f000000070000006b000005bf0000c13d000003b301000041000001000010043f000003b00100004100000d0900010430000003810020009c000001820000213d000003840020009c000002ad0000613d000003850020009c000001200000613d0000049f0000013d000003760020009c000001b10000213d000003790020009c000002b20000613d0000037a0020009c0000049f0000c13d0000000001000416000000000001004b000008db0000c13d000003b701000041000000000101041a0000034301100197000000800010043f0000038b0100004100000d080001042e0000036a0020009c000001cc0000213d0000036d0020009c000003da0000613d0000036e0020009c0000049f0000c13d0000000001000416000000000001004b000008db0000c13d0000038e01000041000003e90000013d000003650020009c000002c60000613d000003660020009c0000049f0000c13d0000000001000416000000000001004b000008db0000c13d0000035501000041000000000101041a000000ff00100190000002eb0000013d000003620020009c000002cf0000613d000003630020009c0000049f0000c13d000000240010008c000008db0000413d0000000001000416000000000001004b000008db0000c13d0000000401800370000000000601043b000003460060009c000008db0000213d000000000100041a00000346021001970000000005000411000000000052004b000004310000c13d000000000006004b000004a10000c13d0000039e01000041000000800010043f0000002001000039000000840010043f0000002601000039000000a40010043f0000039f01000041000000c40010043f000003a001000041000000e40010043f000003a10100004100000d0900010430000003870020009c000002e10000613d000003880020009c0000049f0000c13d0000038d01000041000000000101041a000000000001004b0000016b0000613d0000038e01000041000000000101041a000000000001004b000004670000c13d0000039b01000041000000800010043f000003bd0100004100000d09000104300000037c0020009c000002e60000613d0000037d0020009c0000049f0000c13d0000000001000416000000000001004b000008db0000c13d0000000201000039000000000101041a000003d60000013d000003700020009c000003ed0000613d000003710020009c0000049f0000c13d0000000001000416000000000001004b000008db0000c13d0000038d01000041000003e90000013d000003820020009c000002f00000613d000003830020009c0000049f0000c13d0000000001000416000000000001004b000008db0000c13d0000010001000039000000400010043f000000800000043f000000a00000043f000000c00000043f000000e00000043f0d070abf0000040f0000039101000041000000000101041a0000034302100197000001000020043f00000020011002700000034601100197000001200010043f000003aa01000041000000000101041a0000034601100197000001400010043f000003ab01000041000000000101041a0000034601100197000001600010043f000000400100043d0000000002210436000001200300043d00000346033001970000000000320435000001400200043d000003460220019700000040031000390000000000230435000001600200043d000003460220019700000060031000390000000000230435000003430010009c00000343010080410000004001100210000003d1011001c700000d080001042e000003770020009c000003240000613d000003780020009c0000049f0000c13d0000000001000416000000000001004b000008db0000c13d000000000200041a00000346032001970000000001000411000000000013004b000004310000c13d000003bf00200198000005400000c13d0000034a0220019700000395022001c7000000000020041b000000800010043f0000000001000414000003430010009c0000034301008041000000c001100210000003c0011001c70000800d020000390000000103000039000003c1040000410000049c0000013d0000036b0020009c000003f40000613d0000036c0020009c0000049f0000c13d000000640010008c000008db0000413d0000000001000416000000000001004b000008db0000c13d0d070baa0000040f000002da0000013d0000034b01000041000000000201041a0000034c02200197000000000232019f000000000021041b0000034d01000041000000000201041a0000034c02200197000000000021041b000000400100043d00000000023104360000000000020435000003430010009c000003430100804100000040011002100000000002000414000003430020009c0000034302008041000000c002200210000000000112019f0000034e011001c70000800d0200003900000001030000390000034f040000410d070cfd0000040f0000000100200190000008db0000613d0000000101000039000000000011041b0000000201000039000000000201041a0000034c022001970000000703000029000000000232019f000000000021041b0000000001000411000000000001004b0000043a0000c13d000000400100043d00000358020000410000000000210435000003430010009c0000034301008041000000400110021000000359011001c700000d0900010430000000240010008c000008db0000413d0000000402800370000000000302043b000003540030009c000008db0000213d0000002302300039000000000012004b000008db0000813d0000000404300039000000000248034f000000000202043b000003540020009c000004610000213d0000001f05200039000003dd055001970000003f05500039000003dd055001970000038c0050009c000004610000213d00000024033000390000008005500039000000400050043f000000800020043f0000000003320019000000000013004b000008db0000213d0000002001400039000000000318034f000003dd042001980000001f0520018f000000a0014000390000022c0000613d000000a006000039000000000703034f000000007807043c0000000006860436000000000016004b000002280000c13d000000000005004b000002390000613d000000000343034f0000000304500210000000000501043300000000054501cf000000000545022f000000000303043b0000010004400089000000000343022f00000000034301cf000000000353019f0000000000310435000000a00120003900000000000104350000038d01000041000000000101041a000000000001004b000002430000613d0000038e01000041000000000101041a000000000001004b000005c50000c13d000000400100043d0000039b02000041000001ff0000013d000000e40010008c000008db0000413d0000008402800370000000000202043b000003540020009c000008db0000213d0000002303200039000000000013004b000008db0000813d000600040020003d0000000603800360000000000303043b000700000003001d000003540030009c000008db0000213d00000007022000290000002402200039000000000012004b000008db0000213d000000a402800370000000000202043b000003460020009c000008db0000213d000000c402800370000000000202043b000003540020009c000008db0000213d0000002303200039000000000013004b000008db0000813d0000000403200039000000000338034f000000000303043b000003540030009c000008db0000213d00000000023200190000002402200039000000000012004b000008db0000213d0000000201000039000000000101041a00000346021001970000000001000411000000000012004b000006860000c13d0000000401800370000000000101043b000500000001001d000003430010009c000008db0000213d0000000501000029000000000010043f0000000301000039000000200010043f0000000001000414000003430010009c0000034301008041000000c0011002100000034e011001c700008010020000390d070d020000040f0000000100200190000008db0000613d000000000101043b000000000301041a000000000003004b000008070000c13d000000400100043d0000039a020000410000000000210435000000040210003900000005030000290000000000320435000003430010009c0000034301008041000000400110021000000353011001c700000d09000104300000000001000416000000000001004b000008db0000c13d000000000100041a00000346031001970000000002000411000000000023004b000004310000c13d000003bf00100198000004910000c13d0000039e01000041000000800010043f0000002001000039000000840010043f0000001401000039000000a40010043f000003d001000041000000c40010043f000003c30100004100000d09000104300000000001000416000000000001004b000008db0000c13d000003b401000041000003e90000013d0000000001000416000000000001004b000008db0000c13d000003b501000041000003e90000013d0000000001000416000000000001004b000008db0000c13d000000000100041a00000346021001970000000005000411000000000052004b000004310000c13d0000034c01100197000000000010041b0000000001000414000003430010009c0000034301008041000000c00110021000000347011001c70000800d020000390000000303000039000003480400004100000000060000190000049c0000013d000000440010008c000008db0000413d0000000001000416000000000001004b000008db0000c13d000003c401000041000000800010043f000003bd0100004100000d0900010430000000240010008c000008db0000413d0000000001000416000000000001004b000008db0000c13d0000000401800370000000000101043b000003460010009c000008db0000213d0d070aca0000040f000000000101041a000000400200043d0000000000120435000003430020009c00000343020080410000004001200210000003a2011001c700000d080001042e0000000001000416000000000001004b000008db0000c13d000003b901000041000003e90000013d0000000001000416000000000001004b000008db0000c13d000000000100041a000003bf001001980000000001000039000000010100c039000000800010043f0000038b0100004100000d080001042e000000440010008c000008db0000413d0000000001000416000000000001004b000008db0000c13d0000000401800370000000000101043b000700000001001d000003430010009c000008db0000213d0000002401800370000000000301043b000000000100041a00000346011001970000000002000411000000000021004b000004310000c13d000600000003001d0000000701000029000000000010043f0000000301000039000000200010043f0000000001000414000003430010009c0000034301008041000000c0011002100000034e011001c700008010020000390d070d020000040f0000000100200190000008db0000613d000000000101043b0000000603000029000000000031041b000000400100043d0000002002100039000000000032043500000007020000290000000000210435000003430010009c000003430100804100000040011002100000000002000414000003430020009c0000034302008041000000c002200210000000000112019f0000034e011001c70000800d020000390000000103000039000003a3040000410000049c0000013d000000440010008c000008db0000413d0000000001000416000000000001004b000008db0000c13d0000000401800370000000000101043b000003430010009c000008db0000213d000000800000043f0000038b0100004100000d080001042e000000640010008c000008db0000413d0000000002000416000000000002004b000008db0000c13d0000000402800370000000000202043b000700000002001d000003430020009c000008db0000213d0000002402800370000000000202043b000003540020009c000008db0000213d0000002303200039000000000013004b000008db0000813d0000000405200039000000000358034f000000000303043b000003540030009c000008db0000213d00000000023200190000002402200039000000000012004b000008db0000213d0000004402800370000000000602043b000003540060009c000008db0000213d0000002302600039000000000012004b000008db0000813d0000000404600039000000000248034f000000000202043b000003540020009c000008db0000213d00000000062600190000002406600039000000000016004b000008db0000213d0000001f01300039000003dd011001970000003f01100039000003dd011001970000038c0010009c000004610000213d0000008001100039000000400010043f0000002001500039000000000b08034f000000000518034f000000800030043f000003dd063001980000001f0730018f000000a001600039000003700000613d000000a008000039000000000905034f000000009a09043c0000000008a80436000000000018004b0000036c0000c13d000000000007004b0000037d0000613d000000000565034f0000000306700210000000000701043300000000076701cf000000000767022f000000000505043b0000010006600089000000000565022f00000000056501cf000000000575019f0000000000510435000000a00130003900000000000104350000001f01200039000003dd011001970000003f01100039000003dd01100197000000400300043d0000000001130019000600000003001d000000000031004b00000000030000390000000103004039000003540010009c000004610000213d0000000100300190000004610000c13d000000400010043f000000200140003900000000041b034f00000006010000290000000001210436000003dd052001980000001f0620018f00000000035100190000039c0000613d000000000704034f0000000008010019000000007907043c0000000008980436000000000038004b000003980000c13d000000000006004b000003a90000613d000000000454034f0000000305600210000000000603043300000000065601cf000000000656022f000000000404043b0000010005500089000000000454022f00000000045401cf000000000464019f000000000043043500000000012100190000000000010435000000400100043d000003900010009c000004610000213d0000004002100039000000400020043f0000002002100039000000000002043500000000000104350000000201000039000000000101041a000500000001001d0000000701000029000000000010043f0000000301000039000000200010043f0000000001000414000003430010009c0000034301008041000000c0011002100000034e011001c700008010020000390d070d020000040f0000000100200190000008db0000613d000000400200043d000000000101043b000000000101041a000000000001004b000008330000c13d0000039a010000410000000000120435000000040120003900000007030000290000000000310435000003430020009c0000034302008041000000400120021000000353011001c700000d09000104300000000001000416000000000001004b000008db0000c13d000000000100041a0000034601100197000000800010043f0000038b0100004100000d080001042e000000240010008c000008db0000413d0000000001000416000000000001004b000008db0000c13d0000000401800370000000000101043b000003430010009c000008db0000213d000000000010043f0000000301000039000000200010043f000000400200003900000000010000190d070ce80000040f000000000101041a000000800010043f0000038b0100004100000d080001042e0000000001000416000000000001004b000008db0000c13d0000000001000410000000800010043f0000038b0100004100000d080001042e000000240010008c000008db0000413d0000000001000416000000000001004b000008db0000c13d0000000401800370000000000101043b000700000001001d000003460010009c000008db0000213d000000000100041a00000346011001970000000002000411000000000021004b000004310000c13d0000000201000039000000000101041a000003500200004100000000002004430000034601100197000600000001001d00000004001004430000000001000414000003430010009c0000034301008041000000c00110021000000351011001c700008002020000390d070d020000040f0000000100200190000008060000613d000000000101043b000000000001004b000008db0000613d000000400300043d00000352010000410000000000130435000000040130003900000007020000290000000000210435000003430030009c000700000003001d0000034301000041000000000103401900000040011002100000000002000414000003430020009c0000034302008041000000c002200210000000000112019f00000353011001c700000006020000290d070cfd0000040f0000000100200190000005620000613d0000000701000029000003540010009c000004610000213d000000400010043f000000000100001900000d080001042e0000039e01000041000000800010043f0000002001000039000000840010043f000000a40010043f000003d201000041000000c40010043f000003c30100004100000d09000104300000035001000041000000000010044300000004003004430000000001000414000003430010009c0000034301008041000000c00110021000000351011001c700008002020000390d070d020000040f0000000100200190000008060000613d000000000101043b000000000001004b000008db0000613d000000400300043d00000352010000410000000000130435000000040130003900000000020004110000000000210435000003430030009c000600000003001d0000034301000041000000000103401900000040011002100000000002000414000003430020009c0000034302008041000000c002200210000000000112019f00000353011001c700000007020000290d070cfd0000040f0000000100200190000004ad0000613d0000000601000029000003540010009c000005520000a13d000003cc01000041000000000010043f0000004101000039000000040010043f000003530100004100000d090001043000000000010004110000034601100197000700000001001d000000000010043f0000038f01000041000000200010043f0000000001000414000003430010009c0000034301008041000000c0011002100000034e011001c700008010020000390d070d020000040f0000000100200190000008db0000613d000000000101043b000000000101041a000000000001004b000006550000c13d0000000701000029000000000010043f0000038f01000041000000200010043f0000000001000414000003430010009c0000034301008041000000c0011002100000034e011001c700008010020000390d070d020000040f0000000100200190000008db0000613d000000000101043b000000010200008a000000000021041b0000034d01000041000000000101041a0000034602100198000005820000c13d000000400100043d000003d502000041000001ff0000013d0000034a01100197000000000010041b000000800020043f0000000001000414000003430010009c0000034301008041000000c001100210000003c0011001c70000800d020000390000000103000039000003cf040000410d070cfd0000040f0000000100200190000008db0000613d000000000100001900000d080001042e0000034c01100197000000000161019f000000000010041b0000000001000414000003430010009c0000034301008041000000c00110021000000347011001c70000800d02000039000000030300003900000348040000410000049c0000013d00000060061002700000001f0460018f0000034505600198000000400200043d00000000035200190000056e0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000038004b000004b50000c13d0000056e0000013d0000000201000039000000000012041b000000000100041a000003bf00100198000005400000c13d0000000401800370000000000101043b000003460010009c000008db0000213d0000000003000411000000000031004b000002cb0000c13d0000034d01000041000000000101041a00000346021001980000068b0000c13d0000008001000039000003460030009c000008db0000213d0000002002100039000003b504000041000000000404041a000400000004001d00000000003204350000002403800370000000000303043b000000400410003900000000003404350000004403800370000000000303043b00000060041000390000000000340435000000600300003900000000003104350000038c0010009c000004610000213d0000008003100039000000400030043f000003430020009c000003430200804100000040022002100000000001010433000003430010009c00000343010080410000006001100210000000000121019f0000000002000414000003430020009c0000034302008041000000c002200210000000000112019f00000347011001c700008010020000390d070d020000040f0000000100200190000008db0000613d00000000020003670000006403200370000000000403043b0000000403400039000000000332034f000000000303043b00000005053002100000003f07500039000003dd07700197000000000101043b000000400600043d000600000006001d0000000006670019000000000076004b00000000070000390000000107004039000003540060009c000004610000213d0000000100700190000004610000c13d000000400060043f00000006060000290000000006360436000500000006001d00000024044000390000000005450019000000000054004b000005180000813d0000000603000029000000000642034f000000000606043b000000200330003900000000006304350000002004400039000000000054004b0000050f0000413d00000006020000290000000003020433000000000003004b000005370000613d0000000003000019000700000003001d000000050230021000000005022000290000000002020433000000000021004b000005250000813d000000000010043f000000200020043f0000000001000414000005280000013d000000000020043f000000200010043f0000000001000414000003430010009c0000034301008041000000c0011002100000034e011001c700008010020000390d070d020000040f0000000100200190000008db0000613d000000000101043b0000000703000029000000010330003900000006020000290000000002020433000000000023004b0000051b0000413d000000040010006c000008e40000c13d0d070baa0000040f000700000001001d000000000001004b0000090c0000c13d000000400100043d000003cd02000041000001ff0000013d0000039e01000041000000800010043f0000002001000039000000840010043f0000001001000039000000a40010043f000003c201000041000000c40010043f000003c30100004100000d090001043000000343057001970000034307300197000000000057004b000005ae0000813d000003bc01000041000000800010043f000003bd0100004100000d0900010430000000400010043f0000035501000041000000000201041a000003de0220019700000001022001bf000000000021041b0000035601000041000000000201041a0000034c0220019700000007022001af000000000021041b000000200100003900000100001004430000012000000443000003570100004100000d080001042e00000060061002700000001f0460018f0000034505600198000000400200043d00000000035200190000056e0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000038004b0000056a0000c13d0000034306600197000000000004004b0000057c0000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f00000000001304350000006001600210000003430020009c00000343020080410000004002200210000000000112019f00000d090001043000000350010000410000000000100443000700000002001d00000004002004430000000001000414000003430010009c0000034301008041000000c00110021000000351011001c700008002020000390d070d020000040f0000000100200190000008060000613d000000000101043b000000000001004b000008db0000613d000000400300043d000003d4010000410000000000130435000000040130003900000000020004110000000000210435000003430030009c000600000003001d0000034301000041000000000103401900000040011002100000000002000414000003430020009c0000034302008041000000c002200210000000000112019f00000353011001c700000007020000290d070cfd0000040f0000000100200190000006d30000613d0000000601000029000003540010009c000004610000213d0000000601000029000000400010043f000000000100001900000d080001042e000600000007001d000003b507000041000000000017041b0000002001300210000003b601100197000003b703000041000000000703041a000003b807700197000000000171019f000700000005001d000000000151019f000000000013041b000000000004004b000006580000c13d000003b901000041000000000101041a000006660000013d000503460010019c000006800000c13d000003b201000041000001000010043f000003b00100004100000d090001043000000000010004110000034601100197000700000001001d000000000010043f0000038f01000041000000200010043f0000000001000414000003430010009c0000034301008041000000c0011002100000034e011001c700008010020000390d070d020000040f0000000100200190000008db0000613d000000000101043b000000000101041a000000000001004b000006550000c13d0000000701000029000000000010043f0000038f01000041000000200010043f0000000001000414000003430010009c0000034301008041000000c0011002100000034e011001c700008010020000390d070d020000040f0000000100200190000008db0000613d000000000101043b000000010200008a000000000021041b0000001402000039000000400100043d0000000002210436000000000300041100000060033002100000000000320435000003900010009c000004610000213d0000004003100039000600000003001d000000400030043f0000006003100039000000000003043500000061041000390000000003010433000000000003004b000006010000613d000000000500001900000000064500190000000007250019000000000707043300000000007604350000002005500039000000000035004b000005fa0000413d00000000024300190000000000020435000000010230003900000006040000290000000000240435000003dd0230019700000000012100190000008001100039000003540010009c000004610000213d000000060010006c000004610000413d000000400010043f000003900010009c000004610000213d0000039102000041000000000202041a000400000002001d0000004002100039000000400020043f00000000020004160000000002210436000500000002001d0000000000020435000000400200043d000003920020009c000004610000213d0000006003200039000000400030043f000000200320003900000000000304350000000000020435000000400300043d000003900030009c000004610000213d0000004004300039000000400040043f0000002004300039000000000004043500000000000304350000004002200039000000000032043500000000010104330000000002000416000000000012004b000009340000c13d00000005010000290000000001010433000300000001001d000000000001004b0000093a0000c13d000000040100002900000343021001970000000201000039000000000101041a000300000001001d000400000002001d000000000020043f0000000301000039000000200010043f0000000001000414000003430010009c0000034301008041000000c0011002100000034e011001c700008010020000390d070d020000040f0000000100200190000008db0000613d000000400300043d000000000101043b000000000401041a000000000004004b000009c40000c13d0000039a010000410000000000130435000000040130003900000004020000290000000000210435000003430030009c0000034303008041000000400130021000000353011001c700000d0900010430000000400100043d000003d302000041000001ff0000013d0000034b01000041000000000101041a00000346011001970000000003000410000500000004001d0d070adb0000040f000003b902000041000000000102041a0000000504000029000000000041001a0000092e0000413d0000000001410019000000000012041b000000400600043d0000000000160435000003430060009c000003430600804100000040016002100000000002000414000003430020009c0000034302008041000000c002200210000000000112019f000003ba011001c70000800d020000390000000303000039000003bb04000041000000070500002900000006060000290d070cfd0000040f0000000100200190000008db0000613d000000400100043d00000001020000390000000000210435000003430010009c00000343010080410000004001100210000003a2011001c700000d080001042e000403460020019c000006e00000c13d000003b101000041000001000010043f000003b00100004100000d0900010430000003d702000041000000800020043f000000840010043f000003c60100004100000d0900010430000003c501000041000000800010043f000000840030043f0000000001000414000003430010009c0000034301008041000000c001100210000003c6011001c70d070d020000040f00000060031002700000034303300197000000600030008c000000600400003900000000040340190000001f0640018f000000600740019000000080057001bf000006a30000613d0000008008000039000000000901034f000000009a09043c0000000008a80436000000000058004b0000069f0000c13d000000000006004b000006b00000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f00000000006504350000000100200190000006e60000613d0000001f01400039000000e00110018f0000008002100039000000400020043f000000600030008c000008db0000413d000000e003100039000000400030043f000000800300043d0000000000320435000000a00200043d000003c70020009c000008db0000213d000000a0031000390000000000230435000000c00200043d000000000002004b0000000003000039000000010300c039000000000032004b000008db0000c13d000000c0011000390000000000210435000000400100043d000000000002004b000008dd0000c13d0000000002000367000000000802034f0000000402200370000000000302043b000003460030009c000004cd0000a13d000008db0000013d00000060061002700000001f0460018f0000034505600198000000400200043d00000000035200190000056e0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000038004b000006db0000c13d0000056e0000013d000303460030019c000007000000c13d000003af01000041000001000010043f000003b00100004100000d09000104300000001f0530018f0000034506300198000000400200043d0000000004620019000006f10000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000006ed0000c13d000000000005004b000006fe0000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f000000000014043500000060013002100000057d0000013d0000000501000029000001200010043f0000002001000039000001000010043f0000014001000039000000400010043f0000000701000029000000000010043f0000000301000039000000200010043f0000000001000414000003430010009c0000034301008041000000c0011002100000034e011001c700008010020000390d070d020000040f0000000100200190000008db0000613d000000000101043b0000000503000029000000000031041b000000400100043d0000002002100039000000000032043500000007020000290000000000210435000003430010009c000003430100804100000040011002100000000002000414000003430020009c0000034302008041000000c002200210000000000112019f0000034e011001c70000800d020000390000000103000039000003a3040000410d070cfd0000040f0000000100200190000008db0000613d00000006010000290000034602100197000000800100043d000600000001001d000000c00100043d000500000001001d00000350010000410000000000100443000700000002001d00000004002004430000000001000414000003430010009c0000034301008041000000c00110021000000351011001c700008002020000390d070d020000040f0000000100200190000008060000613d000000000101043b000000000001004b000008db0000613d0000000501000029000003460110019700000006020000290000034302200197000000400400043d0000004403400039000000000013043500000024014000390000000000210435000003a4010000410000000000140435000000040140003900000000020004100000000000210435000003430040009c000600000004001d0000034301000041000000000104401900000040011002100000000002000414000003430020009c0000034302008041000000c002200210000000000112019f000003a5011001c700000007020000290d070cfd0000040f0000000100200190000008f30000613d0000000601000029000003540010009c000004610000213d0000000601000029000000400010043f000000800100043d000600000001001d000000e00100043d000500000001001d00000350010000410000000000100443000000070100002900000004001004430000000001000414000003430010009c0000034301008041000000c00110021000000351011001c700008002020000390d070d020000040f0000000100200190000008060000613d000000000101043b000000000001004b000008db0000613d0000000501000029000003460110019700000006020000290000034302200197000000400400043d0000004403400039000000000013043500000024014000390000000000210435000003a601000041000000000014043500000004014000390000000002000410000000000021043500000064014000390000000000010435000003430040009c000600000004001d0000034301000041000000000104401900050040001002180000000001000414000003430010009c0000034301008041000000c00110021000000005011001af000003a7011001c700000007020000290d070cfd0000040f000000010020019000000a340000613d0000000601000029000003540010009c000004610000213d0000000601000029000000400010043f00000000020003670000000401200370000000000101043b000003430010009c000008db0000213d0000002402200370000000000202043b000700000002001d000003460020009c000008db0000213d0000039102000041000000000302041a000003a80330019700000007040000290000002004400210000003a904400197000000000334019f000000000113019f000000000012041b000003aa01000041000000000201041a0000034c0220019700000004022001af000000000021041b000003ab01000041000000000201041a0000034c0220019700000003022001af000000000021041b0000035601000041000000000201041a000003ac01000041000000060300002900000000001304350000000001000414000003430010009c0000034301008041000000c00110021000000005011001af00000359011001c70000034602200197000500000002001d0d070d020000040f00000060031002700000034303300197000000200030008c000000200400003900000000040340190000001f0640018f00000020074001900000000605700029000007d40000613d000000000801034f0000000609000029000000008a08043c0000000009a90436000000000059004b000007d00000c13d000000000006004b000007e10000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000000010020019000000ab30000613d0000001f01400039000000600110018f0000000601100029000003540010009c000004610000213d000000400010043f000000200030008c000008db0000413d00000006020000290000000002020433000003ad0020009c000008db0000813d00000004030000390000000003300367000000000303043b000003430030009c000008db0000213d000000200410003900000000003404350000000000210435000003430010009c000003430100804100000040011002100000000002000414000003430020009c0000034302008041000000c002200210000000000112019f0000034e011001c70000800d020000390000000303000039000003ae04000041000000050500002900000007060000290000049c0000013d000000000001042f00000000020003670000000401200370000000000101043b0000002404200370000000000404043b000000000043004b000008d90000c13d000003430010009c000008db0000213d00000346033001970000039104000041000000000404041a000000000514013f0000034300500198000008e70000c13d00000020044002700000034604400197000000000043004b000008e70000c13d0000000701000029000000080010008c000009800000c13d00000006030000290000002001300039000000000112034f0000002403300039000000000232034f000000000202043b000000000101043b000000e0051002700000038d01000041000000000051041b000000e0062002700000038e01000041000000000061041b0000000001000414000003430010009c0000034301008041000000c00110021000000347011001c70000800d020000390000000303000039000003dc040000410000049c0000013d000003970020009c0000008005000039000004610000213d000000a003200039000000400030043f000000600320003900000006040000290000000000430435000000400420003900000000005404350000002005200039000000000015043500000007010000290000000000120435000000800120003900000000000104350000039c06000041000000400800043d0000000006680436000600000006001d000000040680003900000040070000390000000000760435000000000202043300000343022001970000004406800039000000000026043500000000020504330000006405800039000000000025043500000000020404330000008404800039000000a0050000390000000000540435000000e40480003900000000260204340000000000640435000700000008001d0000010405800039000000000006004b000008640000613d000000000400001900000000075400190000000008420019000000000808043300000000008704350000002004400039000000000064004b0000085d0000413d000000050200002900000346022001970000000004000410000000000756001900000000000704350000001f06600039000003dd0660019700000000030304330000000707000029000000a407700039000000c0086000390000000000870435000000000756001900000000650304340000000003570436000000000005004b0000087d0000613d000000000700001900000000083700190000000009760019000000000909043300000000009804350000002007700039000000000057004b000008760000413d0000000006350019000000000006043500000000010104330000034604400197000000070700002900000024067000390000000000460435000000000001004b0000000001000039000000010100c039000000c40470003900000000001404350000001f01500039000003dd0110019700000000037300490000000001130019000003430010009c00000343010080410000006001100210000003430070009c000003430300004100000000030740190000004003300210000000000131019f0000000003000414000003430030009c0000034303008041000000c003300210000000000113019f0d070d020000040f00000060031002700000034303300197000000400030008c000000400400003900000000040340190000001f0640018f00000060074001900000000705700029000008aa0000613d000000000801034f0000000709000029000000008a08043c0000000009a90436000000000059004b000008a60000c13d000000000006004b000008b70000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f00000000006504350000000100200190000009000000613d0000001f01400039000000e00210018f0000000701200029000000000021004b00000000020000390000000102004039000003540010009c000004610000213d0000000100200190000004610000c13d000000400010043f000000400030008c000008db0000413d000003900010009c000004610000213d0000004002100039000000400020043f000000070200002900000000020204330000000001210436000000060300002900000000030304330000000000310435000000400100043d000000200410003900000000003404350000000000210435000003430010009c000003430100804100000040011002100000039d011001c700000d080001042e000003430010009c000008df0000a13d000000000100001900000d0900010430000003c802000041000001ff0000013d000000400200043d00000024032000390000000000430435000003d803000041000008eb0000013d000000400100043d000003c902000041000001ff0000013d000000400200043d00000024042000390000000000340435000003da03000041000000000032043500000004032000390000000000130435000003430020009c00000343020080410000004001200210000003d9011001c700000d090001043000000060061002700000001f0460018f0000034505600198000000400200043d00000000035200190000056e0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000038004b000008fb0000c13d0000056e0000013d0000001f0530018f0000034506300198000000400200043d0000000004620019000006f10000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000009070000c13d000006f10000013d0000034b01000041000000000101041a000600000001001d00000004010000390000000001100367000000000101043b000003460010009c000008db0000213d000000000010043f0000038f01000041000000200010043f0000000001000414000003430010009c0000034301008041000000c0011002100000034e011001c700008010020000390d070d020000040f0000000100200190000008db0000613d000000000101043b000000000201041a000000070020002a0000092e0000413d0000000702200029000000000021041b000003b401000041000000000301041a0000000702300029000000000032004b00000000030000390000000103004039000000010030008c0000098f0000c13d000003cc01000041000000000010043f0000001101000039000000040010043f000003530100004100000d0900010430000000400100043d00000393020000410000000000210435000000040210003900000000030004160000028e0000013d0000000201000039000000000201041a000000400300043d000200000003001d00000394010000410000000000130435000003430030009c0000034301000041000000000103401900000040011002100000000003000414000003430030009c0000034303008041000000c003300210000000000113019f00000359011001c70000034602200197000100000002001d0d070d020000040f00000060031002700000034303300197000000200030008c000000200400003900000000040340190000001f0640018f0000002007400190000000020b00002900000002057000290000095d0000613d000000000801034f00000000090b0019000000008a08043c0000000009a90436000000000059004b000009590000c13d000000000006004b0000096a0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f00000000006504350000000100200190000009830000613d0000001f01400039000000600110018f0000000002b10019000000000012004b00000000010000390000000101004039000003540020009c000004610000213d0000000100100190000004610000c13d000000400020043f000000200030008c000008db0000413d00000000010b0433000003950010009c000008db0000813d000000000001004b00000aae0000c13d00000396010000410000007a0000013d000000400100043d000003db02000041000001ff0000013d0000001f0530018f0000034506300198000000400200043d0000000004620019000006f10000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b0000098a0000c13d000006f10000013d000000000021041b00000004010000390000000001100367000000000101043b000003460010009c000008db0000213d000000400200043d0000002003200039000003ca04000041000000000043043500000044032000390000000704000029000000000043043500000024032000390000000000130435000000440100003900000000001204350000038c0020009c000004610000213d000000060100002900000346011001970000008003200039000000400030043f000600000001001d0d070c280000040f00000004010000390000000001100367000000000601043b000003460060009c000008db0000213d000000400100043d00000007020000290000000000210435000003430010009c000003430100804100000040011002100000000002000414000003430020009c0000034302008041000000c002200210000000000112019f000003ba011001c70000800d020000390000000303000039000003cb0400004100000006050000290d070cfd0000040f0000000100200190000008db0000613d0000000102000039000000000022041b000000400100043d0000067a0000013d000003970030009c0000008005000039000004610000213d00000005010000290000000001010433000000a002300039000000400020043f000000000001004b0000000002000039000000010200c039000000800130003900000000002104350000006002300039000000000052043500000040053000390000000606000029000000000065043500000020063000390000000000460435000000040400002900000000004304350000039804000041000000400800043d0000000004480436000500000004001d000000040480003900000040070000390000000000740435000000000303043300000343033001970000004404800039000000000034043500000000030604330000006404800039000000000034043500000000030504330000008404800039000000a0050000390000000000540435000000e40680003900000000540304340000000000460435000600000008001d0000010403800039000000000004004b000009fa0000613d000000000600001900000000073600190000000008650019000000000808043300000000008704350000002006600039000000000046004b000009f30000413d000000000534001900000000000504350000001f04400039000003dd0440019700000000020204330000000605000029000000a405500039000000c0064000390000000000650435000000000534001900000000430204340000000002350436000000000003004b00000a100000613d000000000500001900000000062500190000000007540019000000000707043300000000007604350000002005500039000000000035004b00000a090000413d000000030400002900000346044001970000000005230019000000000005043500000000010104330000000607000029000000240570003900000007060000290000000000650435000000000001004b0000000001000039000000010100c039000000c40570003900000000001504350000001f01300039000003dd0110019700000000027200490000000001120019000003430010009c00000343010080410000006001100210000003430070009c000003430200004100000000020740190000004002200210000000000121019f0000000002000414000003430020009c0000034302008041000000c002200210000000000112019f0000000002000416000000000002004b00000a410000c13d000000000204001900000a450000013d00000060061002700000001f0460018f0000034505600198000000400200043d00000000035200190000056e0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000038004b00000a3c0000c13d0000056e0000013d00000347011001c70000800902000039000000000300041600000000050000190d070cfd0000040f00000060031002700000034303300197000000800030008c000000800400003900000000040340190000001f0640018f000000e007400190000000060570002900000a550000613d000000000801034f0000000609000029000000008a08043c0000000009a90436000000000059004b00000a510000c13d000000000006004b00000a620000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000000010020019000000aa20000613d0000001f01400039000001e00210018f0000000601200029000000000021004b00000000020000390000000102004039000003540010009c000004610000213d0000000100200190000004610000c13d000000400010043f000000800030008c000008db0000413d000003920010009c000004610000213d0000006002100039000000400020043f00000006020000290000000002020433000000000221043600000005030000290000000003030433000003540030009c000008db0000213d0000000000320435000000400200043d000003900020009c000004610000213d0000004003200039000000400030043f00000006040000290000004003400039000000000303043300000000033204360000006004400039000000000404043300000000004304350000004003100039000000000023043500000000060104330000039101000041000000000101041a0000000002020433000000400300043d0000002004300039000000000024043500000343011001970000000000130435000003430030009c000003430300804100000040013002100000000002000414000003430020009c0000034302008041000000c002200210000000000112019f0000034e011001c70000800d020000390000000303000039000003990400004100000000050004110000049c0000013d0000001f0530018f0000034506300198000000400200043d0000000004620019000006f10000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000aa90000c13d000006f10000013d0000000002000411000000010300002900000003040000290d070adb0000040f000006340000013d0000001f0530018f0000034506300198000000400200043d0000000004620019000006f10000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000aba0000c13d000006f10000013d000003df0010009c00000ac40000813d0000008001100039000000400010043f000000000001042d000003cc01000041000000000010043f0000004101000039000000040010043f000003530100004100000d09000104300000034601100197000000000010043f0000038f01000041000000200010043f0000000001000414000003430010009c0000034301008041000000c0011002100000034e011001c700008010020000390d070d020000040f000000010020019000000ad90000613d000000000101043b000000000001042d000000000100001900000d09000104300003000000000002000000400500043d000000640650003900000000004604350000034603300197000000440450003900000000003404350000002003500039000003e004000041000000000043043500000346022001970000002404500039000000000024043500000064020000390000000000250435000003e10050009c00000b5e0000813d000000a002500039000300000002001d000000400020043f000003e20050009c00000b5e0000213d000203460010019b000000e001500039000000400010043f000000200100003900000003020000290000000000120435000000c001500039000003e3020000410000000000210435000003430030009c000003430300804100000040013002100000000002050433000003430020009c00000343020080410000006002200210000000000112019f0000000002000414000003430020009c0000034302008041000000c002200210000000000121019f00000002020000290d070cfd0000040f0000006003100270000003430330019800000b330000613d0000001f0430003900000344044001970000003f04400039000003e404400197000000400a00043d00000000044a00190000000000a4004b00000000050000390000000105004039000003540040009c00000b5e0000213d000000010050019000000b5e0000c13d000000400040043f0000001f0430018f00000000093a04360000034505300198000000000359001900000b250000613d000000000601034f0000000007090019000000006806043c0000000007870436000000000037004b00000b210000c13d000000000004004b00000b350000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f000000000013043500000b350000013d000000600a000039000000800900003900000000010a0433000000010020019000000b660000613d000000000001004b00000b510000c13d00030000000a001d000100000009001d00000350010000410000000000100443000000020100002900000004001004430000000001000414000003430010009c0000034301008041000000c00110021000000351011001c700008002020000390d070d020000040f000000010020019000000b980000613d000000000101043b000000000001004b000000030100002900000b990000613d0000000001010433000000000001004b000000010900002900000b5d0000613d000003e50010009c00000b640000213d000000200010008c00000b640000413d0000000001090433000000000001004b0000000002000039000000010200c039000000000021004b00000b640000c13d000000000001004b00000b7c0000613d000000000001042d000003cc01000041000000000010043f0000004101000039000000040010043f000003530100004100000d0900010430000000000100001900000d0900010430000000000001004b00000b900000c13d000000400300043d000200000003001d0000039e010000410000000000130435000000040130003900000020020000390000000000210435000000240230003900000003010000290d070c160000040f00000002020000290000000001210049000003430010009c0000034301008041000003430020009c000003430200804100000060011002100000004002200210000000000121019f00000d0900010430000000400100043d0000006402100039000003e60300004100000000003204350000004402100039000003e703000041000000000032043500000024021000390000002a0300003900000000003204350000039e020000410000000000210435000000040210003900000020030000390000000000320435000003430010009c00000343010080410000004001100210000003a7011001c700000d0900010430000003430090009c00000343090080410000004002900210000003430010009c00000343010080410000006001100210000000000121019f00000d0900010430000000000001042f000000400100043d0000004402100039000003e803000041000000000032043500000024021000390000001d0300003900000000003204350000039e020000410000000000210435000000040210003900000020030000390000000000320435000003430010009c00000343010080410000004001100210000003a5011001c700000d09000104300001000000000002000003b701000041000000000101041a000100000001001d000003e90100004100000000001004430000000001000414000003430010009c0000034301008041000000c001100210000003ea011001c70000800b020000390d070d020000040f000000010020019000000c0d0000613d00000001060000290000034303600197000000000501043b000000000435004b000000000100001900000c060000413d00000000010003670000002402100370000000000a02043b00000020026002700000034306200197000000000065004b00000bf10000813d0000004402100370000000000202043b000000400700043d000003e10070009c00000c100000813d000000a008700039000000400080043f000000200870003900000000006804350000000000370435000003b908000041000000000808041a00000040097000390000000000890435000003b408000041000000000808041a000000600970003900000000008904350000008007700039000003b508000041000000000808041a00000000008704350000000006360049000003ad0060009c00000c070000813d000003eb074000d1000000000035004b00000be50000613d00000000034700d9000003eb0030009c00000c070000c13d00000000042a004b00000c070000413d00000000056700d900000000034500a900000bed0000613d00000000044300d9000000000045004b00000c070000c13d000003eb0330012a000000000023001a00000c070000413d000000000a23001900010000000a001d0000000401100370000000000101043b000003950010009c00000c0e0000813d000000000010043f0000038f01000041000000200010043f0000000001000414000003430010009c0000034301008041000000c0011002100000034e011001c700008010020000390d070d020000040f000000010020019000000c0e0000613d000000000101043b000000000101041a000000010110006b00000c070000413d000000000001042d000003cc01000041000000000010043f0000001101000039000000040010043f000003530100004100000d0900010430000000000001042f000000000100001900000d0900010430000003cc01000041000000000010043f0000004101000039000000040010043f000003530100004100000d090001043000000000430104340000000001320436000000000003004b00000c220000613d000000000200001900000000051200190000000006240019000000000606043300000000006504350000002002200039000000000032004b00000c1b0000413d000000000213001900000000000204350000001f02300039000003dd022001970000000001210019000000000001042d0003000000000002000000400300043d000300000003001d000003ec0030009c00000c9d0000813d000203460010019b00000003040000290000004001400039000000400010043f0000002001400039000003e3030000410000000000310435000000200100003900000000001404350000002001200039000003430010009c000003430100804100000040011002100000000002020433000003430020009c00000343020080410000006002200210000000000112019f0000000002000414000003430020009c0000034302008041000000c002200210000000000121019f00000002020000290d070cfd0000040f0000006003100270000003430330019800000c700000613d0000001f0430003900000344044001970000003f04400039000003e404400197000000400a00043d00000000044a00190000000000a4004b00000000050000390000000105004039000003540040009c00000c9d0000213d000000010050019000000c9d0000c13d000000400040043f0000001f0430018f00000000093a04360000034505300198000000000359001900000c620000613d000000000601034f0000000007090019000000006806043c0000000007870436000000000037004b00000c5e0000c13d000000000004004b00000c720000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f000000000013043500000c720000013d000000600a000039000000800900003900000000010a0433000000010020019000000ca30000613d000000000001004b00000c8e0000c13d00030000000a001d000100000009001d00000350010000410000000000100443000000020100002900000004001004430000000001000414000003430010009c0000034301008041000000c00110021000000351011001c700008002020000390d070d020000040f000000010020019000000cd50000613d000000000101043b000000000001004b000000030100002900000cd60000613d0000000001010433000000000001004b000000010900002900000c9a0000613d000003e50010009c00000c9b0000213d000000200010008c00000c9b0000413d0000000001090433000000000001004b0000000002000039000000010200c039000000000021004b00000c9b0000c13d000000000001004b00000cb90000613d000000000001042d000000000100001900000d0900010430000003cc01000041000000000010043f0000004101000039000000040010043f000003530100004100000d0900010430000000000001004b00000ccd0000c13d000000400300043d000200000003001d0000039e010000410000000000130435000000040130003900000020020000390000000000210435000000240230003900000003010000290d070c160000040f00000002020000290000000001210049000003430010009c0000034301008041000003430020009c000003430200804100000060011002100000004002200210000000000121019f00000d0900010430000000400100043d0000006402100039000003e60300004100000000003204350000004402100039000003e703000041000000000032043500000024021000390000002a0300003900000000003204350000039e020000410000000000210435000000040210003900000020030000390000000000320435000003430010009c00000343010080410000004001100210000003a7011001c700000d0900010430000003430090009c00000343090080410000004002900210000003430010009c00000343010080410000006001100210000000000121019f00000d0900010430000000000001042f000000400100043d0000004402100039000003e803000041000000000032043500000024021000390000001d0300003900000000003204350000039e020000410000000000210435000000040210003900000020030000390000000000320435000003430010009c00000343010080410000004001100210000003a5011001c700000d0900010430000000000001042f000003430010009c00000343010080410000004001100210000003430020009c00000343020080410000006002200210000000000112019f0000000002000414000003430020009c0000034302008041000000c002200210000000000112019f00000347011001c700008010020000390d070d020000040f000000010020019000000cfb0000613d000000000101043b000000000001042d000000000100001900000d090001043000000d00002104210000000102000039000000000001042d0000000002000019000000000001042d00000d05002104230000000102000039000000000001042d0000000002000019000000000001042d00000d070000043200000d080001042e00000d09000104300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffff00000000000000000000000000000000000000000000000000000001ffffffe000000000000000000000000000000000000000000000000000000000ffffffe0000000000000000000000000ffffffffffffffffffffffffffffffffffffffff02000000000000000000000000000000000000000000000000000000000000008be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0ffffffffffffffffffffff000000000000000000000000000000000000000000ffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff7a484458a208f16dc0b6696974cbddcd82c1024d6f7d8afdd2beace9a2142802ffffffffffffffffffffffff00000000000000000000000000000000000000007a484458a208f16dc0b6696974cbddcd82c1024d6f7d8afdd2beace9a214280302000000000000000000000000000000000000400000000000000000000000001a7a85f3e38923e23ce6f75f5dc8d9c48333575b8275c1d125a6d1138f29e7cd1806aa1896bbf26568e884a7374b41e002500962caba6a15023a8d90e8508b830200000200000000000000000000000000000024000000000000000000000000ca5eb5e1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffff7a484458a208f16dc0b6696974cbddcd82c1024d6f7d8afdd2beace9a2142809039cd6ec633c119ed0580932fe97933bd3101a89823dd336b8d8d3a53eaf34490000000200000000000000000000000000000040000001000000000000000000b58636040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000006b093aad00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008da5cb5a00000000000000000000000000000000000000000000000000000000d54ad2a000000000000000000000000000000000000000000000000000000000f0a3563b00000000000000000000000000000000000000000000000000000000fccbe21f00000000000000000000000000000000000000000000000000000000fccbe22000000000000000000000000000000000000000000000000000000000fd8ce2a600000000000000000000000000000000000000000000000000000000ff7bd03d00000000000000000000000000000000000000000000000000000000f0a3563c00000000000000000000000000000000000000000000000000000000f2fde38b00000000000000000000000000000000000000000000000000000000dafc4c2900000000000000000000000000000000000000000000000000000000dafc4c2a00000000000000000000000000000000000000000000000000000000de5b182a00000000000000000000000000000000000000000000000000000000d54ad2a100000000000000000000000000000000000000000000000000000000d6d8e46b00000000000000000000000000000000000000000000000000000000bb0b6a5200000000000000000000000000000000000000000000000000000000ca5eb5e000000000000000000000000000000000000000000000000000000000ca5eb5e100000000000000000000000000000000000000000000000000000000cb93bca000000000000000000000000000000000000000000000000000000000bb0b6a5300000000000000000000000000000000000000000000000000000000c8fb6c6b00000000000000000000000000000000000000000000000000000000b92d0efe00000000000000000000000000000000000000000000000000000000b92d0eff00000000000000000000000000000000000000000000000000000000b9f4b5c2000000000000000000000000000000000000000000000000000000008da5cb5b00000000000000000000000000000000000000000000000000000000a9976998000000000000000000000000000000000000000000000000000000003f4ba83900000000000000000000000000000000000000000000000000000000715018a5000000000000000000000000000000000000000000000000000000007d25a05d000000000000000000000000000000000000000000000000000000007d25a05e000000000000000000000000000000000000000000000000000000008456cb5900000000000000000000000000000000000000000000000000000000715018a60000000000000000000000000000000000000000000000000000000078e97925000000000000000000000000000000000000000000000000000000005c975aba000000000000000000000000000000000000000000000000000000005c975abb000000000000000000000000000000000000000000000000000000005e280f11000000000000000000000000000000000000000000000000000000003f4ba83a0000000000000000000000000000000000000000000000000000000045534704000000000000000000000000000000000000000000000000000000002eb4a7aa000000000000000000000000000000000000000000000000000000003400288a000000000000000000000000000000000000000000000000000000003400288b0000000000000000000000000000000000000000000000000000000036b6bca7000000000000000000000000000000000000000000000000000000002eb4a7ab000000000000000000000000000000000000000000000000000000003197cbb600000000000000000000000000000000000000000000000000000000199cbc5300000000000000000000000000000000000000000000000000000000199cbc540000000000000000000000000000000000000000000000000000000024b6fa6b0000000000000000000000000000000000000000000000000000000013137d650000000000000000000000000000000000000000000000000000000017442b700000000000000000000000000000000000000020000000800000000000000000000000000000000000000000000000000000000000000000ffffffffffffff7f7a484458a208f16dc0b6696974cbddcd82c1024d6f7d8afdd2beace9a214280a7a484458a208f16dc0b6696974cbddcd82c1024d6f7d8afdd2beace9a214280b7a484458a208f16dc0b6696974cbddcd82c1024d6f7d8afdd2beace9a2142808000000000000000000000000000000000000000000000000ffffffffffffffbf039cd6ec633c119ed0580932fe97933bd3101a89823dd336b8d8d3a53eaf3446000000000000000000000000000000000000000000000000ffffffffffffff9f9f70412000000000000000000000000000000000000000000000000000000000e4fe1d940000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000005373352a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff5f2637a450000000000000000000000000000000000000000000000000000000000400395bc3edc4291e04d8b7e29aed1fa3af07f8da71246aa25accaabb80a7b6f6ff4fb70000000000000000000000000000000000000000000000000000000044dddc9700000000000000000000000000000000000000000000000000000000ddc28c5800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000008c379a0000000000000000000000000000000000000000000000000000000004f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000840000008000000000000000000000000000000000000000000000000000000020000000000000000000000000238399d427b947898edb290f5ff0f9109849b1c3ba196a42e35f00c50a54b98b9535ff300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000640000000000000000000000006a14d715000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084000000000000000000000000ffffffffffffffff0000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffff00000000039cd6ec633c119ed0580932fe97933bd3101a89823dd336b8d8d3a53eaf3447039cd6ec633c119ed0580932fe97933bd3101a89823dd336b8d8d3a53eaf3448416ecebf00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000051f937e292f244a177e1e09d1c4e7a617d80a2bd7f2b2efb7783fce5a92ccf6aadd83960000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000001000000000000000000741d58fe00000000000000000000000000000000000000000000000000000000437e4d47000000000000000000000000000000000000000000000000000000006ed946e5000000000000000000000000000000000000000000000000000000007a484458a208f16dc0b6696974cbddcd82c1024d6f7d8afdd2beace9a21428067a484458a208f16dc0b6696974cbddcd82c1024d6f7d8afdd2beace9a2142807000000000000000000000000000000000000000000000000ffffffff000000007a484458a208f16dc0b6696974cbddcd82c1024d6f7d8afdd2beace9a2142804ffffffffffffffffffffffffffffffffffffffffffffffff00000000000000007a484458a208f16dc0b6696974cbddcd82c1024d6f7d8afdd2beace9a21428050200000000000000000000000000000000000020000000000000000000000000cd29d44a9f2978409ce75cbccc36196562241eec543ea5c2d2336ff73f0349adc6e369f90000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000008000000000000000009dd854d3000000000000000000000000000000000000000000000000000000000000000000000000000000ff0000000000000000000000000000000000000000020000000000000000000000000000000000002000000080000000000000000062e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2585061757361626c653a20706175736564000000000000000000000000000000000000000000000000000000000000000000000064000000800000000000000000ea8e4eb500000000000000000000000000000000000000000000000000000000cc3d967b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002400000080000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffb98d458e000000000000000000000000000000000000000000000000000000001c61a78800000000000000000000000000000000000000000000000000000000a9059cbb00000000000000000000000000000000000000000000000000000000f7a40077ff7a04c7e61f6f26fb13774259ddf1b6bce9ecf26a8276cdd39926834e487b71000000000000000000000000000000000000000000000000000000000f3f8610000000000000000000000000000000000000000000000000000000005265656e7472616e637947756172643a207265656e7472616e742063616c6c005db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa5061757361626c653a206e6f742070617573656400000000000000000000000000000000000000000000000000000000000000800000000000000000000000004f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65720edc89fe00000000000000000000000000000000000000000000000000000000fa92ceca00000000000000000000000000000000000000000000000000000000fbde7c1200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000080000000000000000091ac5e4f00000000000000000000000000000000000000000000000000000000c26bebcc0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000440000000000000000000000009aa9a49c000000000000000000000000000000000000000000000000000000008d0242c90000000000000000000000000000000000000000000000000000000075f673491d39cd1102d1e8da50b4e04666820e74b28924e84e72c7d1e1e65de0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000000000000000000000000000000000000000000000ffffffffffffff8023b872dd00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff60000000000000000000000000000000000000000000000000ffffffffffffff1f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656400000000000000000000000000000000000000000000000000000003ffffffe07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6f742073756363656564000000000000000000000000000000000000000000005361666545524332303a204552433230206f7065726174696f6e20646964206e416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000796b89b91644bc98cd93958e4c9038275d622183e25ac5af08cc6b5d9553913202000002000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000c097ce7bc90715b34b9f1000000000000000000000000000000000000000000000000000000000ffffffffffffffc0000000000000000000000000000000000000000000000000000000000000000081311b02effed04ef7e2220dca11d1a37fb752b8763432fac2d162f162c34bad
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.