Depix (DPIX)
Overview
TokenID
119
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Deepix
Compiler Version
v0.8.28+commit.7893614a
Contract Source Code (Solidity)
/** *Submitted for verification at curtis.apescan.io on 2024-11-18 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.28; // lib/creator-token-standards/src/interfaces/ICreatorToken.sol interface ICreatorToken { event TransferValidatorUpdated(address oldValidator, address newValidator); function getTransferValidator() external view returns (address validator); function setTransferValidator(address validator) external; function getTransferValidationFunction() external view returns (bytes4 functionSignature, bool isViewFunction); } // lib/creator-token-standards/src/interfaces/ICreatorTokenLegacy.sol interface ICreatorTokenLegacy { event TransferValidatorUpdated(address oldValidator, address newValidator); function getTransferValidator() external view returns (address validator); function setTransferValidator(address validator) external; } // lib/creator-token-standards/src/interfaces/ITransferValidator.sol interface ITransferValidator { function applyCollectionTransferPolicy(address caller, address from, address to) external view; function validateTransfer(address caller, address from, address to) external view; function validateTransfer(address caller, address from, address to, uint256 tokenId) external view; function validateTransfer(address caller, address from, address to, uint256 tokenId, uint256 amount) external; function beforeAuthorizedTransfer(address operator, address token, uint256 tokenId) external; function afterAuthorizedTransfer(address token, uint256 tokenId) external; function beforeAuthorizedTransfer(address operator, address token) external; function afterAuthorizedTransfer(address token) external; function beforeAuthorizedTransfer(address token, uint256 tokenId) external; function beforeAuthorizedTransferWithAmount(address token, uint256 tokenId, uint256 amount) external; function afterAuthorizedTransferWithAmount(address token, uint256 tokenId) external; } // lib/forge-std/src/console.sol 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)); } } // lib/openzeppelin-contracts/contracts/token/ERC721/IERC721Receiver.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // lib/openzeppelin-contracts/contracts/utils/Address.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) /** * @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 * ==== * * [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://diligence.consensys.net/posts/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.5.11/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); } } } // lib/openzeppelin-contracts/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // lib/openzeppelin-contracts/contracts/utils/cryptography/MerkleProof.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) /** * @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 rebuild 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 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 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 for 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) { 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 rebuild 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 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 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 for 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) { 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) } } } // lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // lib/openzeppelin-contracts/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } } // lib/creator-token-standards/src/access/OwnablePermissions.sol abstract contract OwnablePermissions is Context { function _requireCallerIsContractOwner() internal view virtual; } // lib/creator-token-standards/src/utils/TransferValidation.sol /** * @title TransferValidation * @author Limit Break, Inc. * @notice A mix-in that can be combined with ERC-721 contracts to provide more granular hooks. * Openzeppelin's ERC721 contract only provides hooks for before and after transfer. This allows * developers to validate or customize transfers within the context of a mint, a burn, or a transfer. */ abstract contract TransferValidation is Context { /// @dev Thrown when the from and to address are both the zero address. error ShouldNotMintToBurnAddress(); /*************************************************************************/ /* Transfers Without Amounts */ /*************************************************************************/ /// @dev Inheriting contracts should call this function in the _beforeTokenTransfer function to get more granular hooks. function _validateBeforeTransfer(address from, address to, uint256 tokenId) internal virtual { bool fromZeroAddress = from == address(0); bool toZeroAddress = to == address(0); if(fromZeroAddress && toZeroAddress) { revert ShouldNotMintToBurnAddress(); } else if(fromZeroAddress) { _preValidateMint(_msgSender(), to, tokenId, msg.value); } else if(toZeroAddress) { _preValidateBurn(_msgSender(), from, tokenId, msg.value); } else { _preValidateTransfer(_msgSender(), from, to, tokenId, msg.value); } } /// @dev Inheriting contracts should call this function in the _afterTokenTransfer function to get more granular hooks. function _validateAfterTransfer(address from, address to, uint256 tokenId) internal virtual { bool fromZeroAddress = from == address(0); bool toZeroAddress = to == address(0); if(fromZeroAddress && toZeroAddress) { revert ShouldNotMintToBurnAddress(); } else if(fromZeroAddress) { _postValidateMint(_msgSender(), to, tokenId, msg.value); } else if(toZeroAddress) { _postValidateBurn(_msgSender(), from, tokenId, msg.value); } else { _postValidateTransfer(_msgSender(), from, to, tokenId, msg.value); } } /// @dev Optional validation hook that fires before a mint function _preValidateMint(address caller, address to, uint256 tokenId, uint256 value) internal virtual {} /// @dev Optional validation hook that fires after a mint function _postValidateMint(address caller, address to, uint256 tokenId, uint256 value) internal virtual {} /// @dev Optional validation hook that fires before a burn function _preValidateBurn(address caller, address from, uint256 tokenId, uint256 value) internal virtual {} /// @dev Optional validation hook that fires after a burn function _postValidateBurn(address caller, address from, uint256 tokenId, uint256 value) internal virtual {} /// @dev Optional validation hook that fires before a transfer function _preValidateTransfer(address caller, address from, address to, uint256 tokenId, uint256 value) internal virtual {} /// @dev Optional validation hook that fires after a transfer function _postValidateTransfer(address caller, address from, address to, uint256 tokenId, uint256 value) internal virtual {} /*************************************************************************/ /* Transfers With Amounts */ /*************************************************************************/ /// @dev Inheriting contracts should call this function in the _beforeTokenTransfer function to get more granular hooks. function _validateBeforeTransfer(address from, address to, uint256 tokenId, uint256 amount) internal virtual { bool fromZeroAddress = from == address(0); bool toZeroAddress = to == address(0); if(fromZeroAddress && toZeroAddress) { revert ShouldNotMintToBurnAddress(); } else if(fromZeroAddress) { _preValidateMint(_msgSender(), to, tokenId, amount, msg.value); } else if(toZeroAddress) { _preValidateBurn(_msgSender(), from, tokenId, amount, msg.value); } else { _preValidateTransfer(_msgSender(), from, to, tokenId, amount, msg.value); } } /// @dev Inheriting contracts should call this function in the _afterTokenTransfer function to get more granular hooks. function _validateAfterTransfer(address from, address to, uint256 tokenId, uint256 amount) internal virtual { bool fromZeroAddress = from == address(0); bool toZeroAddress = to == address(0); if(fromZeroAddress && toZeroAddress) { revert ShouldNotMintToBurnAddress(); } else if(fromZeroAddress) { _postValidateMint(_msgSender(), to, tokenId, amount, msg.value); } else if(toZeroAddress) { _postValidateBurn(_msgSender(), from, tokenId, amount, msg.value); } else { _postValidateTransfer(_msgSender(), from, to, tokenId, amount, msg.value); } } /// @dev Optional validation hook that fires before a mint function _preValidateMint(address caller, address to, uint256 tokenId, uint256 amount, uint256 value) internal virtual {} /// @dev Optional validation hook that fires after a mint function _postValidateMint(address caller, address to, uint256 tokenId, uint256 amount, uint256 value) internal virtual {} /// @dev Optional validation hook that fires before a burn function _preValidateBurn(address caller, address from, uint256 tokenId, uint256 amount, uint256 value) internal virtual {} /// @dev Optional validation hook that fires after a burn function _postValidateBurn(address caller, address from, uint256 tokenId, uint256 amount, uint256 value) internal virtual {} /// @dev Optional validation hook that fires before a transfer function _preValidateTransfer(address caller, address from, address to, uint256 tokenId, uint256 amount, uint256 value) internal virtual {} /// @dev Optional validation hook that fires after a transfer function _postValidateTransfer(address caller, address from, address to, uint256 tokenId, uint256 amount, uint256 value) internal virtual {} } // lib/openzeppelin-contracts/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * 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 anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing 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); } } // lib/openzeppelin-contracts/contracts/interfaces/IERC2981.sol // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); } // lib/openzeppelin-contracts/contracts/security/Pausable.sol // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.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()); } } // lib/openzeppelin-contracts/contracts/token/ERC721/IERC721.sol // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); } // lib/openzeppelin-contracts/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // lib/openzeppelin-contracts/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // lib/creator-token-standards/src/utils/AutomaticValidatorTransferApproval.sol /** * @title AutomaticValidatorTransferApproval * @author Limit Break, Inc. * @notice Base contract mix-in that provides boilerplate code giving the contract owner the * option to automatically approve a 721-C transfer validator implementation for transfers. */ abstract contract AutomaticValidatorTransferApproval is OwnablePermissions { /// @dev Emitted when the automatic approval flag is modified by the creator. event AutomaticApprovalOfTransferValidatorSet(bool autoApproved); /// @dev If true, the collection's transfer validator is automatically approved to transfer holder's tokens. bool public autoApproveTransfersFromValidator; /** * @notice Sets if the transfer validator is automatically approved as an operator for all token owners. * * @dev Throws when the caller is not the contract owner. * * @param autoApprove If true, the collection's transfer validator will be automatically approved to * transfer holder's tokens. */ function setAutomaticApprovalOfTransfersFromValidator(bool autoApprove) external { _requireCallerIsContractOwner(); autoApproveTransfersFromValidator = autoApprove; emit AutomaticApprovalOfTransferValidatorSet(autoApprove); } } // lib/openzeppelin-contracts/contracts/token/ERC721/extensions/IERC721Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } // lib/creator-token-standards/src/access/OwnableBasic.sol abstract contract OwnableBasic is OwnablePermissions, Ownable { function _requireCallerIsContractOwner() internal view virtual override { _checkOwner(); } } // lib/openzeppelin-contracts/contracts/token/common/ERC2981.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } } // lib/creator-token-standards/src/programmable-royalties/BasicRoyalties.sol /** * @title BasicRoyaltiesBase * @author Limit Break, Inc. * @dev Base functionality of an NFT mix-in contract implementing the most basic form of programmable royalties. */ abstract contract BasicRoyaltiesBase is ERC2981 { event DefaultRoyaltySet(address indexed receiver, uint96 feeNumerator); event TokenRoyaltySet(uint256 indexed tokenId, address indexed receiver, uint96 feeNumerator); function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual override { super._setDefaultRoyalty(receiver, feeNumerator); emit DefaultRoyaltySet(receiver, feeNumerator); } function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual override { super._setTokenRoyalty(tokenId, receiver, feeNumerator); emit TokenRoyaltySet(tokenId, receiver, feeNumerator); } } /** * @title BasicRoyalties * @author Limit Break, Inc. * @notice Constructable BasicRoyalties Contract implementation. */ abstract contract BasicRoyalties is BasicRoyaltiesBase { constructor(address receiver, uint96 feeNumerator) { _setDefaultRoyalty(receiver, feeNumerator); } } /** * @title BasicRoyaltiesInitializable * @author Limit Break, Inc. * @notice Initializable BasicRoyalties Contract implementation to allow for EIP-1167 clones. */ abstract contract BasicRoyaltiesInitializable is BasicRoyaltiesBase {} // lib/creator-token-standards/src/utils/CreatorTokenBase.sol /** * @title CreatorTokenBase * @author Limit Break, Inc. * @notice CreatorTokenBaseV3 is an abstract contract that provides basic functionality for managing token * transfer policies through an implementation of ICreatorTokenTransferValidator/ICreatorTokenTransferValidatorV2/ICreatorTokenTransferValidatorV3. * This contract is intended to be used as a base for creator-specific token contracts, enabling customizable transfer * restrictions and security policies. * * <h4>Features:</h4> * <ul>Ownable: This contract can have an owner who can set and update the transfer validator.</ul> * <ul>TransferValidation: Implements the basic token transfer validation interface.</ul> * * <h4>Benefits:</h4> * <ul>Provides a flexible and modular way to implement custom token transfer restrictions and security policies.</ul> * <ul>Allows creators to enforce policies such as account and codehash blacklists, whitelists, and graylists.</ul> * <ul>Can be easily integrated into other token contracts as a base contract.</ul> * * <h4>Intended Usage:</h4> * <ul>Use as a base contract for creator token implementations that require advanced transfer restrictions and * security policies.</ul> * <ul>Set and update the ICreatorTokenTransferValidator implementation contract to enforce desired policies for the * creator token.</ul> * * <h4>Compatibility:</h4> * <ul>Backward and Forward Compatible - V1/V2/V3 Creator Token Base will work with V1/V2/V3 Transfer Validators.</ul> */ abstract contract CreatorTokenBase is OwnablePermissions, TransferValidation, ICreatorToken { /// @dev Thrown when setting a transfer validator address that has no deployed code. error CreatorTokenBase__InvalidTransferValidatorContract(); /// @dev The default transfer validator that will be used if no transfer validator has been set by the creator. address public constant DEFAULT_TRANSFER_VALIDATOR = address(0x721C00182a990771244d7A71B9FA2ea789A3b433); /// @dev Used to determine if the default transfer validator is applied. /// @dev Set to true when the creator sets a transfer validator address. bool private isValidatorInitialized; /// @dev Address of the transfer validator to apply to transactions. address private transferValidator; /** * @notice Sets the transfer validator for the token contract. * * @dev Throws when provided validator contract is not the zero address and does not have code. * @dev Throws when the caller is not the contract owner. * * @dev <h4>Postconditions:</h4> * 1. The transferValidator address is updated. * 2. The `TransferValidatorUpdated` event is emitted. * * @param transferValidator_ The address of the transfer validator contract. */ function setTransferValidator(address transferValidator_) public { _requireCallerIsContractOwner(); bool isValidTransferValidator = transferValidator_.code.length > 0; if(transferValidator_ != address(0) && !isValidTransferValidator) { revert CreatorTokenBase__InvalidTransferValidatorContract(); } emit TransferValidatorUpdated(address(getTransferValidator()), transferValidator_); isValidatorInitialized = true; transferValidator = transferValidator_; } /** * @notice Returns the transfer validator contract address for this token contract. */ function getTransferValidator() public view override returns (address validator) { validator = transferValidator; if (validator == address(0)) { if (!isValidatorInitialized) { validator = DEFAULT_TRANSFER_VALIDATOR; } } } /** * @dev Pre-validates a token transfer, reverting if the transfer is not allowed by this token's security policy. * Inheriting contracts are responsible for overriding the _beforeTokenTransfer function, or its equivalent * and calling _validateBeforeTransfer so that checks can be properly applied during token transfers. * * @dev Be aware that if the msg.sender is the transfer validator, the transfer is automatically permitted, as the * transfer validator is expected to pre-validate the transfer. * * @dev Throws when the transfer doesn't comply with the collection's transfer policy, if the transferValidator is * set to a non-zero address. * * @param caller The address of the caller. * @param from The address of the sender. * @param to The address of the receiver. * @param tokenId The token id being transferred. */ function _preValidateTransfer( address caller, address from, address to, uint256 tokenId, uint256 /*value*/) internal virtual override { address validator = getTransferValidator(); if (validator != address(0)) { if (msg.sender == validator) { return; } ITransferValidator(validator).validateTransfer(caller, from, to, tokenId); } } /** * @dev Pre-validates a token transfer, reverting if the transfer is not allowed by this token's security policy. * Inheriting contracts are responsible for overriding the _beforeTokenTransfer function, or its equivalent * and calling _validateBeforeTransfer so that checks can be properly applied during token transfers. * * @dev Be aware that if the msg.sender is the transfer validator, the transfer is automatically permitted, as the * transfer validator is expected to pre-validate the transfer. * * @dev Used for ERC20 and ERC1155 token transfers which have an amount value to validate in the transfer validator. * @dev The `tokenId` for ERC20 tokens should be set to `0`. * * @dev Throws when the transfer doesn't comply with the collection's transfer policy, if the transferValidator is * set to a non-zero address. * * @param caller The address of the caller. * @param from The address of the sender. * @param to The address of the receiver. * @param tokenId The token id being transferred. * @param amount The amount of token being transferred. */ function _preValidateTransfer( address caller, address from, address to, uint256 tokenId, uint256 amount, uint256 /*value*/) internal virtual override { address validator = getTransferValidator(); if (validator != address(0)) { if (msg.sender == validator) { return; } ITransferValidator(validator).validateTransfer(caller, from, to, tokenId, amount); } } } // lib/openzeppelin-contracts/contracts/token/ERC721/ERC721.sol // OpenZeppelin Contracts (last updated v4.8.2) (token/ERC721/ERC721.sol) /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _ownerOf(tokenId) != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such * that `ownerOf(tokenId)` is `a`. */ // solhint-disable-next-line func-name-mixedcase function __unsafe_increaseBalance(address account, uint256 amount) internal { _balances[account] += amount; } } // lib/creator-token-standards/src/token/erc721/ERC721OpenZeppelin.sol abstract contract ERC721OpenZeppelinBase is ERC721 { // Token name string internal _contractName; // Token symbol string internal _contractSymbol; function name() public view virtual override returns (string memory) { return _contractName; } function symbol() public view virtual override returns (string memory) { return _contractSymbol; } function _setNameAndSymbol(string memory name_, string memory symbol_) internal { _contractName = name_; _contractSymbol = symbol_; } } abstract contract ERC721OpenZeppelin is ERC721OpenZeppelinBase { constructor(string memory name_, string memory symbol_) ERC721("", "") { _setNameAndSymbol(name_, symbol_); } } abstract contract ERC721OpenZeppelinInitializable is OwnablePermissions, ERC721OpenZeppelinBase { error ERC721OpenZeppelinInitializable__AlreadyInitializedERC721(); /// @notice Specifies whether or not the contract is initialized bool private _erc721Initialized; /// @dev Initializes parameters of ERC721 tokens. /// These cannot be set in the constructor because this contract is optionally compatible with EIP-1167. function initializeERC721(string memory name_, string memory symbol_) public { _requireCallerIsContractOwner(); if(_erc721Initialized) { revert ERC721OpenZeppelinInitializable__AlreadyInitializedERC721(); } _erc721Initialized = true; _setNameAndSymbol(name_, symbol_); } } // lib/creator-token-standards/src/erc721c/ERC721C.sol /** * @title ERC721C * @author Limit Break, Inc. * @notice Extends OpenZeppelin's ERC721 implementation with Creator Token functionality, which * allows the contract owner to update the transfer validation logic by managing a security policy in * an external transfer validation security policy registry. See {CreatorTokenTransferValidator}. */ abstract contract ERC721C is ERC721OpenZeppelin, CreatorTokenBase, AutomaticValidatorTransferApproval { /** * @notice Overrides behavior of isApprovedFor all such that if an operator is not explicitly approved * for all, the contract owner can optionally auto-approve the 721-C transfer validator for transfers. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool isApproved) { isApproved = super.isApprovedForAll(owner, operator); if (!isApproved) { if (autoApproveTransfersFromValidator) { isApproved = operator == address(getTransferValidator()); } } } /** * @notice Indicates whether the contract implements the specified interface. * @dev Overrides supportsInterface in ERC165. * @param interfaceId The interface id * @return true if the contract implements the specified interface, false otherwise */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(ICreatorToken).interfaceId || interfaceId == type(ICreatorTokenLegacy).interfaceId || super.supportsInterface(interfaceId); } /** * @notice Returns the function selector for the transfer validator's validation function to be called * @notice for transaction simulation. */ function getTransferValidationFunction() external pure returns (bytes4 functionSignature, bool isViewFunction) { functionSignature = bytes4(keccak256("validateTransfer(address,address,address,uint256)")); isViewFunction = true; } /// @dev Ties the open-zeppelin _beforeTokenTransfer hook to more granular transfer validation logic function _beforeTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual override { for (uint256 i = 0; i < batchSize;) { _validateBeforeTransfer(from, to, firstTokenId + i); unchecked { ++i; } } } /// @dev Ties the open-zeppelin _afterTokenTransfer hook to more granular transfer validation logic function _afterTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual override { for (uint256 i = 0; i < batchSize;) { _validateAfterTransfer(from, to, firstTokenId + i); unchecked { ++i; } } } } /** * @title ERC721CInitializable * @author Limit Break, Inc. * @notice Initializable implementation of ERC721C to allow for EIP-1167 proxy clones. */ abstract contract ERC721CInitializable is ERC721OpenZeppelinInitializable, CreatorTokenBase, AutomaticValidatorTransferApproval { /** * @notice Overrides behavior of isApprovedFor all such that if an operator is not explicitly approved * for all, the contract owner can optionally auto-approve the 721-C transfer validator for transfers. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool isApproved) { isApproved = super.isApprovedForAll(owner, operator); if (!isApproved) { if (autoApproveTransfersFromValidator) { isApproved = operator == address(getTransferValidator()); } } } /** * @notice Indicates whether the contract implements the specified interface. * @dev Overrides supportsInterface in ERC165. * @param interfaceId The interface id * @return true if the contract implements the specified interface, false otherwise */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(ICreatorToken).interfaceId || interfaceId == type(ICreatorTokenLegacy).interfaceId || super.supportsInterface(interfaceId); } /** * @notice Returns the function selector for the transfer validator's validation function to be called * @notice for transaction simulation. */ function getTransferValidationFunction() external pure returns (bytes4 functionSignature, bool isViewFunction) { functionSignature = bytes4(keccak256("validateTransfer(address,address,address,uint256)")); isViewFunction = true; } /// @dev Ties the open-zeppelin _beforeTokenTransfer hook to more granular transfer validation logic function _beforeTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual override { for (uint256 i = 0; i < batchSize;) { _validateBeforeTransfer(from, to, firstTokenId + i); unchecked { ++i; } } } /// @dev Ties the open-zeppelin _afterTokenTransfer hook to more granular transfer validation logic function _afterTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual override { for (uint256 i = 0; i < batchSize;) { _validateAfterTransfer(from, to, firstTokenId + i); unchecked { ++i; } } } } // src/Deepix.sol // RILLAZ Contract abstract contract RILLAZC { function ownerOf(uint256 tokenId) public view virtual returns (address); } // Custom Errors // @todo check if these are used error IncorrectValue(); error AlreadyMinted(); error NotOwner(); error NoActivePhase(); error WithdrawalFailed(); error TwinSupplyReached(); error MaxSupplyReached(); error MaxPerWalletExceeded(); error MaxPerTxExceeded(); error PhaseIdCannotBeZero(); error InvalidAmount(); error InvalidTimestamps(); error InvalidLimits(); /** * @title Deepix * @author 0xDamp (https://x.com/0xDamp) * @notice Contract to mint DEEPIX tokens */ contract Deepix is ERC721C, BasicRoyalties, OwnableBasic, Pausable { // RILLAZ Contract // Mainnet: 0x8954f7a8Eb01e94EfB10d610837f115Fe95aafb1 // Testnet: TBD // RILLAZC constant RILLAZ = // RILLAZC(0x8954f7a8Eb01e94EfB10d610837f115Fe95aafb1); // Events event TwinClaimed(address indexed _from, uint256[] indexed _tokenIDs); event DeepixMinted(address indexed _from, uint256 _amount); event Withdrawn(address indexed to, uint256 amount); string private _deleteThisLaterYa = "LOREM IPSUM DOLOR SIT AMET"; RILLAZC immutable RILLAZ; // Max supply uint16 constant MAX_SUPPLY = 10000; uint16 constant TWIN_MAX_SUPPLY = 3500; // Phase end ID uint8 constant TWIN_PHASE_END = 2; uint8 constant PUBLIC_PHASE_START = 3; // Counter for current supply uint256 currentSupply; // Counter for public sale uint256 tokenCounter = 10000; // Base URI string private baseTokenURI; // Counter for total phases uint256 totalPhases; // Mapping to track the amount of tokens minted per phase per user (address => phaseId => amount) mapping(address => mapping(uint256 => uint256)) public userMintedPerPhase; // Mapping to track if a user has a twin (tokenId => bool) mapping(uint256 => bool) hasTwinMap; // Mapping to track the phases (id => phase) mapping(uint8 => Phase) public phases; // Struct to track the phase details struct Phase { bytes32 merkleRoot; uint96 price; uint64 start; uint64 end; uint8 phaseId; uint8 maxPerWallet; uint8 maxPerTx; } constructor( address initialOwner_, address royaltyReceiver_, uint96 royaltyFeeNumerator_, string memory name_, string memory symbol_, RILLAZC rillaz_ ) ERC721OpenZeppelin(name_, symbol_) BasicRoyalties(royaltyReceiver_, royaltyFeeNumerator_) OwnableBasic() { // _transferOwnership(initialOwner_); RILLAZ = RILLAZC(rillaz_); } /** * @notice Mint a twin * @param tokenIds The token IDs to mint * @param merkleProof The merkle proof (optional) * @dev The merkle proof is only required for whitelisted users to claim a twin for free, otherwise the user needs to pay the price defined in the current phase. Twins are only available for the first two phases. */ function mintTwin( uint256[] calldata tokenIds, bytes32[] calldata merkleProof ) external payable whenNotPaused { // Cache the length of the tokenIds array uint256 len = tokenIds.length; // Check if the tokenIds array is not empty if (len == 0) revert InvalidAmount(); // Cache the current phase Phase memory phase = currentPhase(); if (phase.phaseId == 0 || phase.phaseId > TWIN_PHASE_END) revert NoActivePhase(); if (len > phase.maxPerTx) revert MaxPerTxExceeded(); if (currentSupply >= TWIN_MAX_SUPPLY) revert TwinSupplyReached(); // Check if the user is whitelisted bool isWhitelisted; if (phase.merkleRoot != bytes32(0)) { bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); isWhitelisted = MerkleProof.verify( merkleProof, phase.merkleRoot, leaf ); } // If not whitelisted, check if the value is correct if (!isWhitelisted && msg.value != phase.price * len) revert IncorrectValue(); // If whitelisted, check if the value is 0 if (isWhitelisted && msg.value != 0) revert IncorrectValue(); // Check if the user has already minted the max amount per wallet if ( userMintedPerPhase[msg.sender][phase.phaseId] + len > phase.maxPerWallet ) revert MaxPerWalletExceeded(); // Update the user's minted amount userMintedPerPhase[msg.sender][phase.phaseId] += len; // Increase the current supply currentSupply += len; // Mint the tokens for (uint256 i = 0; i < len; i++) { if (RILLAZ.ownerOf(tokenIds[i]) != msg.sender) revert NotOwner(); if (hasTwinMap [tokenIds[i]]) revert AlreadyMinted(); hasTwinMap [tokenIds[i]] = true; _mint(msg.sender, tokenIds[i]); } emit TwinClaimed(msg.sender, tokenIds); } /** * @notice Public mint function * @param amount The amount of tokens to mint * @param merkleProof The merkle proof (optional) * @dev The merkle proof is only required for whitelisted users to mint for free, otherwise the user needs to pay the price defined in the current phase. The public sale starts with phase 3 and above. */ function publicMint( uint256 amount, bytes32[] calldata merkleProof ) external payable whenNotPaused { // Check if the amount is greater than 0 if (amount == 0) revert InvalidAmount(); // Cache the current phase Phase memory phase = currentPhase(); if (phase.phaseId < 3) revert NoActivePhase(); if (amount > phase.maxPerTx) revert MaxPerTxExceeded(); if (currentSupply + amount > MAX_SUPPLY) revert MaxSupplyReached(); // Check if the user is whitelisted bool isWhitelisted; if (phase.merkleRoot != bytes32(0)) { bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); isWhitelisted = MerkleProof.verify( merkleProof, phase.merkleRoot, leaf ); } // If not whitelisted, check if the value is correct if (!isWhitelisted && msg.value != phase.price * amount) revert IncorrectValue(); // Check if the user has already minted the max amount per wallet if ( userMintedPerPhase[msg.sender][phase.phaseId] + amount > phase.maxPerWallet ) revert MaxPerWalletExceeded(); // Update the user's minted amount userMintedPerPhase[msg.sender][phase.phaseId] += uint8(amount); // Increase the current supply currentSupply += amount; // Mint the tokens for (uint256 i = 0; i < amount; i++) { _mint(msg.sender, tokenCounter); tokenCounter++; } emit DeepixMinted(msg.sender, amount); } /** * @notice Configure a phase * @param phaseId The phase ID * @param merkleRoot The merkle root (optional) * @param price The price * @param start The start timestamp * @param end The end timestamp * @param maxPerWallet The maximum amount of tokens per wallet * @param maxPerTx The maximum amount of tokens per transaction * @dev phaseId must be greater than 0 */ function configurePhase( uint8 phaseId, bytes32 merkleRoot, uint64 price, uint64 start, uint64 end, uint8 maxPerWallet, uint8 maxPerTx ) external { _requireCallerIsContractOwner(); if (phaseId == 0) revert PhaseIdCannotBeZero(); if (end <= start) revert InvalidTimestamps(); if (maxPerTx > maxPerWallet) revert InvalidLimits(); if (maxPerWallet == 0) revert InvalidLimits(); phases[phaseId] = Phase({ merkleRoot: merkleRoot, price: price, start: start, end: end, phaseId: phaseId, maxPerWallet: maxPerWallet, maxPerTx: maxPerTx }); // Make the total phases the highest phaseId if the phase is new if (phaseId > totalPhases) totalPhases = phaseId; } /** * @notice Withdraw the contract balance */ function withdraw() external { _requireCallerIsContractOwner(); uint256 balance = address(this).balance; (bool success, ) = msg.sender.call{value: balance}(""); if (!success) revert WithdrawalFailed(); emit Withdrawn(msg.sender, balance); } /** * @notice Set the default royalty * @param receiver The receiver address * @param feeNumerator The fee numerator */ function setDefaultRoyalty(address receiver, uint96 feeNumerator) public { _requireCallerIsContractOwner(); _setDefaultRoyalty(receiver, feeNumerator); } /** * @notice Set the royalty for a token * @param tokenId The token ID * @param receiver The receiver address * @param feeNumerator The fee numerator */ function setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) public { _requireCallerIsContractOwner(); _setTokenRoyalty(tokenId, receiver, feeNumerator); } /** * @notice Set the base URI * @param baseURI The base URI */ function setBaseURI(string calldata baseURI) external { _requireCallerIsContractOwner(); baseTokenURI = baseURI; } /** * @notice Pause the contract * @dev Only callable by contract owner */ function pause() external { _requireCallerIsContractOwner(); _pause(); } /** * @notice Unpause the contract * @dev Only callable by contract owner */ function unpause() external { _requireCallerIsContractOwner(); _unpause(); } /** * @notice Get the current phase * @return The current phase */ function currentPhase() public view returns (Phase memory) { uint256 currentTimestamp = block.timestamp; for (uint8 i = 1; i <= totalPhases; i++) { if ( currentTimestamp >= phases[i].start && currentTimestamp <= phases[i].end ) { return phases[i]; } } revert NoActivePhase(); } /** * @notice Get a phase * @param phaseId The phase ID * @return The phase */ function getPhase(uint8 phaseId) public view returns (Phase memory) { return phases[phaseId]; } /** * @notice Check if a user is whitelisted for a phase * @param phaseId The phase ID * @param user The user address * @param merkleProof The merkle proof * @return True if the user is whitelisted, false otherwise */ function isWhitelistedForPhase( uint8 phaseId, address user, bytes32[] calldata merkleProof ) public view returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(user)); return MerkleProof.verify(merkleProof, phases[phaseId].merkleRoot, leaf); } /** * @notice Get the amount of tokens minted per phase per user * @param user The user address * @param phaseId The phase ID * @return The amount of tokens minted */ function amountMintedPerPhase( address user, uint8 phaseId ) public view returns (uint256) { return userMintedPerPhase[user][phaseId]; } /** * @notice Check if a token has a twin * @param tokenId The token ID * @return True if the token has a twin, false otherwise */ function hasTwin(uint256 tokenId) public view returns (bool) { return hasTwinMap[tokenId]; } /** * @notice Get the total supply * @return The total supply */ function totalSupply() public view returns (uint256) { return currentSupply; } /** * @notice Check if the contract supports an interface * @param interfaceId The interface ID * @return True if the contract supports the interface, false otherwise */ function supportsInterface( bytes4 interfaceId ) public view virtual override(ERC721C, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } /** * @notice Get the base URI * @return The base URI */ function _baseURI() internal view override returns (string memory) { return baseTokenURI; } }
[{"inputs":[{"internalType":"address","name":"initialOwner_","type":"address"},{"internalType":"address","name":"royaltyReceiver_","type":"address"},{"internalType":"uint96","name":"royaltyFeeNumerator_","type":"uint96"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"contract RILLAZC","name":"rillaz_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyMinted","type":"error"},{"inputs":[],"name":"CreatorTokenBase__InvalidTransferValidatorContract","type":"error"},{"inputs":[],"name":"IncorrectValue","type":"error"},{"inputs":[],"name":"InvalidAmount","type":"error"},{"inputs":[],"name":"InvalidLimits","type":"error"},{"inputs":[],"name":"InvalidTimestamps","type":"error"},{"inputs":[],"name":"MaxPerTxExceeded","type":"error"},{"inputs":[],"name":"MaxPerWalletExceeded","type":"error"},{"inputs":[],"name":"MaxSupplyReached","type":"error"},{"inputs":[],"name":"NoActivePhase","type":"error"},{"inputs":[],"name":"NotOwner","type":"error"},{"inputs":[],"name":"PhaseIdCannotBeZero","type":"error"},{"inputs":[],"name":"ShouldNotMintToBurnAddress","type":"error"},{"inputs":[],"name":"TwinSupplyReached","type":"error"},{"inputs":[],"name":"WithdrawalFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"autoApproved","type":"bool"}],"name":"AutomaticApprovalOfTransferValidatorSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"DeepixMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"DefaultRoyaltySet","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":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"TokenRoyaltySet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldValidator","type":"address"},{"indexed":false,"internalType":"address","name":"newValidator","type":"address"}],"name":"TransferValidatorUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"uint256[]","name":"_tokenIDs","type":"uint256[]"}],"name":"TwinClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"DEFAULT_TRANSFER_VALIDATOR","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint8","name":"phaseId","type":"uint8"}],"name":"amountMintedPerPhase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"autoApproveTransfersFromValidator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"phaseId","type":"uint8"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"uint64","name":"price","type":"uint64"},{"internalType":"uint64","name":"start","type":"uint64"},{"internalType":"uint64","name":"end","type":"uint64"},{"internalType":"uint8","name":"maxPerWallet","type":"uint8"},{"internalType":"uint8","name":"maxPerTx","type":"uint8"}],"name":"configurePhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentPhase","outputs":[{"components":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"uint96","name":"price","type":"uint96"},{"internalType":"uint64","name":"start","type":"uint64"},{"internalType":"uint64","name":"end","type":"uint64"},{"internalType":"uint8","name":"phaseId","type":"uint8"},{"internalType":"uint8","name":"maxPerWallet","type":"uint8"},{"internalType":"uint8","name":"maxPerTx","type":"uint8"}],"internalType":"struct Deepix.Phase","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"phaseId","type":"uint8"}],"name":"getPhase","outputs":[{"components":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"uint96","name":"price","type":"uint96"},{"internalType":"uint64","name":"start","type":"uint64"},{"internalType":"uint64","name":"end","type":"uint64"},{"internalType":"uint8","name":"phaseId","type":"uint8"},{"internalType":"uint8","name":"maxPerWallet","type":"uint8"},{"internalType":"uint8","name":"maxPerTx","type":"uint8"}],"internalType":"struct Deepix.Phase","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTransferValidationFunction","outputs":[{"internalType":"bytes4","name":"functionSignature","type":"bytes4"},{"internalType":"bool","name":"isViewFunction","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getTransferValidator","outputs":[{"internalType":"address","name":"validator","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"hasTwin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"isApproved","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"phaseId","type":"uint8"},{"internalType":"address","name":"user","type":"address"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"isWhitelistedForPhase","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mintTwin","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","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":"uint8","name":"","type":"uint8"}],"name":"phases","outputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"uint96","name":"price","type":"uint96"},{"internalType":"uint64","name":"start","type":"uint64"},{"internalType":"uint64","name":"end","type":"uint64"},{"internalType":"uint8","name":"phaseId","type":"uint8"},{"internalType":"uint8","name":"maxPerWallet","type":"uint8"},{"internalType":"uint8","name":"maxPerTx","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"autoApprove","type":"bool"}],"name":"setAutomaticApprovalOfTransfersFromValidator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"transferValidator_","type":"address"}],"name":"setTransferValidator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","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":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"userMintedPerPhase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60e0604052601a60a09081527f4c4f52454d20495053554d20444f4c4f522053495420414d455400000000000060c052600c9061003c9082610363565b50612710600e5534801561004f57600080fd5b50604051613abb380380613abb83398101604081905261006e916104dc565b84848484604051806020016040528060008152506040518060200160405280600081525081600090816100a19190610363565b5060016100ae8282610363565b5050506100c182826100fe60201b60201c565b506100ce9050828261011c565b506100da905033610171565b600b805460ff60a01b191690556001600160a01b0316608052506105a19350505050565b600661010a8382610363565b5060076101178282610363565b505050565b61012682826101c3565b6040516001600160601b03821681526001600160a01b038316907f8a8bae378cb731c5c40b632330c6836c2f916f48edb967699c86736f9a6a76ef9060200160405180910390a25050565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b03821611156102365760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b03821661028c5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640161022d565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600955565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806102ef57607f821691505b60208210810361030f57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561011757806000526020600020601f840160051c8101602085101561033c5750805b601f840160051c820191505b8181101561035c5760008155600101610348565b5050505050565b81516001600160401b0381111561037c5761037c6102c5565b6103908161038a84546102db565b84610315565b6020601f8211600181146103c457600083156103ac5750848201515b600019600385901b1c1916600184901b17845561035c565b600084815260208120601f198516915b828110156103f457878501518255602094850194600190920191016103d4565b50848210156104125786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b6001600160a01b038116811461043657600080fd5b50565b600082601f83011261044a57600080fd5b81516001600160401b03811115610463576104636102c5565b604051601f8201601f19908116603f011681016001600160401b0381118282101715610491576104916102c5565b6040528181528382016020018510156104a957600080fd5b60005b828110156104c8576020818601810151838301820152016104ac565b506000918101602001919091529392505050565b60008060008060008060c087890312156104f557600080fd5b865161050081610421565b602088015190965061051181610421565b60408801519095506001600160601b038116811461052e57600080fd5b60608801519094506001600160401b0381111561054a57600080fd5b61055689828a01610439565b608089015190945090506001600160401b0381111561057457600080fd5b61058089828a01610439565b60a0890151909350905061059381610421565b809150509295509295509295565b6080516134ff6105bc60003960006110f701526134ff6000f3fe6080604052600436106102465760003560e01c80636221d13c116101395780639e6cc952116100b6578063e985e9c51161007a578063e985e9c5146107a0578063eef99810146107c0578063f12479ac146107d3578063f2fde38b146108b7578063f31755b7146108d7578063f86d3e8f146108f757600080fd5b80639e6cc952146106d8578063a22cb46514610720578063a9fc664e14610740578063b88d4fde14610760578063c87b56dd1461078057600080fd5b80638456cb59116100fd5780638456cb591461064057806389c02bd0146106555780638da5cb5b1461068557806395d89b41146106a35780639e05d240146106b857600080fd5b80636221d13c146104fd5780636352211e1461051e57806369eee0051461053e57806370a082311461060b578063715018a61461062b57600080fd5b80631bb015b2116101c75780633f4ba83a1161018b5780633f4ba83a1461046957806342842e0e1461047e57806355f804b31461049e5780635944c753146104be5780635c975abb146104de57600080fd5b80631bb015b2146103c25780632157c649146103e257806323b872dd146103f55780632a55205a146104155780633ccfd60b1461045457600080fd5b8063081812fc1161020e578063081812fc14610326578063095ea7b314610346578063098144d4146103665780630d705df61461037b57806318160ddd146103a357600080fd5b8063014635461461024b57806301ffc9a71461029057806304634d8d146102c0578063055ad42e146102e257806306fdde0314610304575b600080fd5b34801561025757600080fd5b5061027373721c00182a990771244d7a71b9fa2ea789a3b43381565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561029c57600080fd5b506102b06102ab366004612a46565b61092f565b6040519015158152602001610287565b3480156102cc57600080fd5b506102e06102db366004612a94565b610940565b005b3480156102ee57600080fd5b506102f7610956565b6040516102879190612ac9565b34801561031057600080fd5b50610319610abc565b6040516102879190612b93565b34801561033257600080fd5b50610273610341366004612ba6565b610b4e565b34801561035257600080fd5b506102e0610361366004612bbf565b610b75565b34801561037257600080fd5b50610273610c8f565b34801561038757600080fd5b506040805163657711f560e11b81526001602082015201610287565b3480156103af57600080fd5b50600d545b604051908152602001610287565b3480156103ce57600080fd5b506102e06103dd366004612c13565b610cc9565b6102e06103f0366004612cd6565b610e92565b34801561040157600080fd5b506102e0610410366004612d45565b6112ce565b34801561042157600080fd5b50610435610430366004612d86565b6112ff565b604080516001600160a01b039093168352602083019190915201610287565b34801561046057600080fd5b506102e06113ad565b34801561047557600080fd5b506102e061145a565b34801561048a57600080fd5b506102e0610499366004612d45565b61146c565b3480156104aa57600080fd5b506102e06104b9366004612da8565b611487565b3480156104ca57600080fd5b506102e06104d9366004612e1a565b61149c565b3480156104ea57600080fd5b50600b54600160a01b900460ff166102b0565b34801561050957600080fd5b506008546102b090600160a81b900460ff1681565b34801561052a57600080fd5b50610273610539366004612ba6565b6114af565b34801561054a57600080fd5b506105b9610559366004612e58565b601360205260009081526040902080546001909101546001600160601b038116906001600160401b03600160601b8204811691600160a01b81049091169060ff600160e01b8204811691600160e81b8104821691600160f01b9091041687565b604080519788526001600160601b0390961660208801526001600160401b039485169587019590955292909116606085015260ff908116608085015290811660a08401521660c082015260e001610287565b34801561061757600080fd5b506103b4610626366004612e73565b61150f565b34801561063757600080fd5b506102e0611595565b34801561064c57600080fd5b506102e06115a7565b34801561066157600080fd5b506102b0610670366004612ba6565b60009081526012602052604090205460ff1690565b34801561069157600080fd5b50600b546001600160a01b0316610273565b3480156106af57600080fd5b506103196115b7565b3480156106c457600080fd5b506102e06106d3366004612ea0565b6115c6565b3480156106e457600080fd5b506103b46106f3366004612ebb565b6001600160a01b038216600090815260116020908152604080832060ff8516845290915290205492915050565b34801561072c57600080fd5b506102e061073b366004612ee7565b611626565b34801561074c57600080fd5b506102e061075b366004612e73565b611631565b34801561076c57600080fd5b506102e061077b366004612f29565b6116e8565b34801561078c57600080fd5b5061031961079b366004612ba6565b611720565b3480156107ac57600080fd5b506102b06107bb36600461300e565b611787565b6102e06107ce366004613047565b6117eb565b3480156107df57600080fd5b506102f76107ee366004612e58565b6040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c08101919091525060ff908116600090815260136020908152604091829020825160e081018452815481526001909101546001600160601b038116928201929092526001600160401b03600160601b8304811693820193909352600160a01b82049092166060830152600160e01b810483166080830152600160e81b8104831660a0830152600160f01b900490911660c082015290565b3480156108c357600080fd5b506102e06108d2366004612e73565b611a83565b3480156108e357600080fd5b506102b06108f2366004613092565b611afc565b34801561090357600080fd5b506103b4610912366004612bbf565b601160209081526000928352604080842090915290825290205481565b600061093a82611b8d565b92915050565b610948611bb2565b6109528282611bba565b5050565b6040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c08101919091524260015b6010548160ff1611610aa25760ff8116600090815260136020526040902060010154600160601b90046001600160401b031682108015906109f9575060ff8116600090815260136020526040902060010154600160a01b90046001600160401b03168211155b15610a905760ff908116600090815260136020908152604091829020825160e081018452815481526001909101546001600160601b038116928201929092526001600160401b03600160601b8304811693820193909352600160a01b82049092166060830152600160e01b810483166080830152600160e81b8104831660a0830152600160f01b900490911660c082015292915050565b80610a9a816130f2565b915050610993565b5060405163a9477e0960e01b815260040160405180910390fd5b606060068054610acb90613111565b80601f0160208091040260200160405190810160405280929190818152602001828054610af790613111565b8015610b445780601f10610b1957610100808354040283529160200191610b44565b820191906000526020600020905b815481529060010190602001808311610b2757829003601f168201915b5050505050905090565b6000610b5982611c08565b506000908152600460205260409020546001600160a01b031690565b6000610b80826114af565b9050806001600160a01b0316836001600160a01b031603610bf25760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610c0e5750610c0e8133611787565b610c805760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610be9565b610c8a8383611c67565b505050565b60085461010090046001600160a01b031680610cc65760085460ff16610cc6575073721c00182a990771244d7a71b9fa2ea789a3b4335b90565b610cd1611bb2565b8660ff16600003610cf557604051636cdfa4bd60e01b815260040160405180910390fd5b836001600160401b0316836001600160401b031611610d275760405163d22806e360e01b815260040160405180910390fd5b8160ff168160ff161115610d4e5760405163e773e0a960e01b815260040160405180910390fd5b8160ff16600003610d725760405163e773e0a960e01b815260040160405180910390fd5b6040805160e0810182528781526001600160401b0380881660208084019182528883168486019081528884166060860190815260ff808f16608088018181528b831660a08a019081528b841660c08b01908152600084815260139098529a90962098518955955160019098018054945193519651955199518316600160f01b0260ff60f01b199a8416600160e81b029a909a1661ffff60e81b1996909316600160e01b0260ff60e01b19978916600160a01b029790971668ffffffffffffffffff60a01b1994909816600160601b026001600160a01b03199095166001600160601b0399909916989098179390931791909116949094179290921716919091179290921790556010541015610e895760ff87166010555b50505050505050565b610e9a611cd5565b826000819003610ebd5760405163162908e360e11b815260040160405180910390fd5b6000610ec7610956565b9050806080015160ff1660001480610ee95750600260ff16816080015160ff16115b15610f075760405163a9477e0960e01b815260040160405180910390fd5b8060c0015160ff16821115610f2f5760405163422e8d1160e11b815260040160405180910390fd5b600d54610dac11610f5357604051637201d58360e01b815260040160405180910390fd5b805160009015610fd5576040516001600160601b03193360601b166020820152600090603401604051602081830303815290604052805190602001209050610fd18686808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505086519150849050611d22565b9150505b80158015610ffb57508282602001516001600160601b0316610ff7919061314b565b3414155b1561101957604051636956f2ab60e11b815260040160405180910390fd5b80801561102557503415155b1561104357604051636956f2ab60e11b815260040160405180910390fd5b60a0820151336000908152601160209081526040808320608087015160ff908116855292529091205491169061107a908590613162565b111561109957604051637ab0312d60e11b815260040160405180910390fd5b336000908152601160209081526040808320608086015160ff168452909152812080548592906110ca908490613162565b9250508190555082600d60008282546110e39190613162565b90915550600090505b8381101561128257337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316636352211e8a8a8581811061113657611136613175565b905060200201356040518263ffffffff1660e01b815260040161115b91815260200190565b602060405180830381865afa158015611178573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119c919061318b565b6001600160a01b0316146111c3576040516330cd747160e01b815260040160405180910390fd5b601260008989848181106111d9576111d9613175565b602090810292909201358352508101919091526040016000205460ff161561121457604051631bbdf5c560e31b815260040160405180910390fd5b6001601260008a8a8581811061122c5761122c613175565b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555061127a3389898481811061126e5761126e613175565b90506020020135611d38565b6001016110ec565b5086866040516112939291906131a8565b6040519081900381209033907f991fffff1d12ad3630afc4304fb7fdf38b044c1cd408609dcda559077b23f5bb90600090a350505050505050565b6112d83382611edb565b6112f45760405162461bcd60e51b8152600401610be9906131d1565b610c8a838383611f39565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916113745750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090611393906001600160601b03168761314b565b61139d919061321e565b91519350909150505b9250929050565b6113b5611bb2565b6040514790600090339083908381818185875af1925050503d80600081146113f9576040519150601f19603f3d011682016040523d82523d6000602084013e6113fe565b606091505b5050905080611420576040516327fcd9d160e01b815260040160405180910390fd5b60405182815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a25050565b611462611bb2565b61146a6120b2565b565b610c8a838383604051806020016040528060008152506116e8565b61148f611bb2565b600f610c8a828483613287565b6114a4611bb2565b610c8a838383612107565b6000818152600260205260408120546001600160a01b03168061093a5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610be9565b60006001600160a01b0382166115795760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610be9565b506001600160a01b031660009081526003602052604090205490565b61159d612161565b61146a60006121bb565b6115af611bb2565b61146a61220d565b606060078054610acb90613111565b6115ce611bb2565b60088054821515600160a81b0260ff60a81b199091161790556040517f6787c7f9a80aa0f5ceddab2c54f1f5169c0b88e75dd5e19d5e858a64144c7dbc9061161b90831515815260200190565b60405180910390a150565b610952338383612250565b611639611bb2565b6001600160a01b038116803b15159015801590611654575080155b15611672576040516332483afb60e01b815260040160405180910390fd5b7fcc5dc080ff977b3c3a211fa63ab74f90f658f5ba9d3236e92c8f59570f442aac61169b610c8f565b604080516001600160a01b03928316815291851660208301520160405180910390a150600880546001600160a01b03909216610100026001600160a81b0319909216919091176001179055565b6116f23383611edb565b61170e5760405162461bcd60e51b8152600401610be9906131d1565b61171a84848484612316565b50505050565b606061172b82611c08565b6000611735612349565b905060008151116117555760405180602001604052806000815250611780565b8061175f84612358565b604051602001611770929190613346565b6040516020818303038152906040525b9392505050565b6001600160a01b0382811660009081526005602090815260408083209385168352929052205460ff168061093a57600854600160a81b900460ff161561093a576117cf610c8f565b6001600160a01b0316826001600160a01b031614905092915050565b6117f3611cd5565b826000036118145760405163162908e360e11b815260040160405180910390fd5b600061181e610956565b90506003816080015160ff1610156118495760405163a9477e0960e01b815260040160405180910390fd5b8060c0015160ff168411156118715760405163422e8d1160e11b815260040160405180910390fd5b600d5461271090611883908690613162565b11156118a25760405163d05cb60960e01b815260040160405180910390fd5b805160009015611924576040516001600160601b03193360601b1660208201526000906034016040516020818303038152906040528051906020012090506119208585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505086519150849050611d22565b9150505b8015801561194a57508482602001516001600160601b0316611946919061314b565b3414155b1561196857604051636956f2ab60e11b815260040160405180910390fd5b60a0820151336000908152601160209081526040808320608087015160ff908116855292529091205491169061199f908790613162565b11156119be57604051637ab0312d60e11b815260040160405180910390fd5b336000908152601160209081526040808320608086015160ff90811685529252822080549188169290916119f3908490613162565b9250508190555084600d6000828254611a0c9190613162565b90915550600090505b85811015611a4657611a2933600e54611d38565b600e8054906000611a3983613375565b9091555050600101611a15565b5060405185815233907fd31a422879d1d9c299fb16d2e391ae2adf9d22a9f6a7f013e3bf0af8d83515699060200160405180910390a25050505050565b611a8b612161565b6001600160a01b038116611af05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610be9565b611af9816121bb565b50565b6040516001600160601b0319606085901b1660208201526000908190603401604051602081830303815290604052805190602001209050611b81848480806020026020016040519081016040528093929190818152602001838360200280828437600092018290525060ff8c168152601360205260409020549250859150611d229050565b9150505b949350505050565b60006001600160e01b0319821663152a902d60e11b148061093a575061093a826123ea565b61146a612161565b611bc4828261242a565b6040516001600160601b03821681526001600160a01b038316907f8a8bae378cb731c5c40b632330c6836c2f916f48edb967699c86736f9a6a76ef9060200161144e565b6000818152600260205260409020546001600160a01b0316611af95760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610be9565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c9c826114af565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600b54600160a01b900460ff161561146a5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610be9565b600082611d2f85846124e4565b14949350505050565b6001600160a01b038216611d8e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610be9565b6000818152600260205260409020546001600160a01b031615611df35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610be9565b611e01600083836001612527565b6000818152600260205260409020546001600160a01b031615611e665760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610be9565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4610952600083836001612555565b600080611ee7836114af565b9050806001600160a01b0316846001600160a01b03161480611f0e5750611f0e8185611787565b80611b855750836001600160a01b0316611f2784610b4e565b6001600160a01b031614949350505050565b826001600160a01b0316611f4c826114af565b6001600160a01b031614611f725760405162461bcd60e51b8152600401610be99061338e565b6001600160a01b038216611fd45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610be9565b611fe18383836001612527565b826001600160a01b0316611ff4826114af565b6001600160a01b03161461201a5760405162461bcd60e51b8152600401610be99061338e565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4610c8a8383836001612555565b6120ba61257c565b600b805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6121128383836125cc565b6040516001600160601b03821681526001600160a01b0383169084907f7f5b076c952c0ec86e5425963c1326dd0f03a3595c19f81d765e8ff559a6e33c906020015b60405180910390a3505050565b600b546001600160a01b0316331461146a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be9565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612215611cd5565b600b805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120ea3390565b816001600160a01b0316836001600160a01b0316036122b15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610be9565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319101612154565b612321848484611f39565b61232d84848484612697565b61171a5760405162461bcd60e51b8152600401610be9906133d3565b6060600f8054610acb90613111565b6060600061236583612795565b60010190506000816001600160401b0381111561238457612384612f13565b6040519080825280601f01601f1916602001820160405280156123ae576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846123b857509392505050565b60006001600160e01b03198216632b435fdb60e21b148061241b57506001600160e01b0319821663503e914d60e11b145b8061093a575061093a8261286d565b6127106001600160601b03821611156124555760405162461bcd60e51b8152600401610be990613425565b6001600160a01b0382166124ab5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610be9565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600955565b600081815b845181101561251f576125158286838151811061250857612508613175565b60200260200101516128bd565b91506001016124e9565b509392505050565b60005b8181101561254e5761254685856125418487613162565b6128e9565b60010161252a565b5050505050565b60005b8181101561254e57612574858561256f8487613162565b61293f565b600101612558565b600b54600160a01b900460ff1661146a5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610be9565b6127106001600160601b03821611156125f75760405162461bcd60e51b8152600401610be990613425565b6001600160a01b03821661264d5760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610be9565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600a90529190942093519051909116600160a01b029116179055565b60006001600160a01b0384163b1561278d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906126db90339089908890889060040161346f565b6020604051808303816000875af1925050508015612716575060408051601f3d908101601f19168201909252612713918101906134ac565b60015b612773573d808015612744576040519150601f19603f3d011682016040523d82523d6000602084013e612749565b606091505b50805160000361276b5760405162461bcd60e51b8152600401610be9906133d3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611b85565b506001611b85565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106127d45772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612800576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061281e57662386f26fc10000830492506010015b6305f5e1008310612836576305f5e100830492506008015b612710831061284a57612710830492506004015b6064831061285c576064830492506002015b600a831061093a5760010192915050565b60006001600160e01b031982166380ac58cd60e01b148061289e57506001600160e01b03198216635b5e139f60e01b145b8061093a57506301ffc9a760e01b6001600160e01b031983161461093a565b60008183106128d9576000828152602084905260409020611780565b5060009182526020526040902090565b6001600160a01b0383811615908316158180156129035750805b1561292157604051635cbd944160e01b815260040160405180910390fd5b811561292d575b61254e565b806129285761254e3386868634612986565b6001600160a01b0383811615908316158180156129595750805b1561297757604051635cbd944160e01b815260040160405180910390fd5b8161292857806129285761254e565b6000612990610c8f565b90506001600160a01b03811615612a28576001600160a01b03811633036129b7575061254e565b60405163657711f560e11b81526001600160a01b038781166004830152868116602483015285811660448301526064820185905282169063caee23ea9060840160006040518083038186803b158015612a0f57600080fd5b505afa158015612a23573d6000803e3d6000fd5b505050505b505050505050565b6001600160e01b031981168114611af957600080fd5b600060208284031215612a5857600080fd5b813561178081612a30565b6001600160a01b0381168114611af957600080fd5b80356001600160601b0381168114612a8f57600080fd5b919050565b60008060408385031215612aa757600080fd5b8235612ab281612a63565b9150612ac060208401612a78565b90509250929050565b600060e082019050825182526001600160601b0360208401511660208301526001600160401b0360408401511660408301526001600160401b03606084015116606083015260ff608084015116608083015260ff60a08401511660a083015260c0830151612b3c60c084018260ff169052565b5092915050565b60005b83811015612b5e578181015183820152602001612b46565b50506000910152565b60008151808452612b7f816020860160208601612b43565b601f01601f19169290920160200192915050565b6020815260006117806020830184612b67565b600060208284031215612bb857600080fd5b5035919050565b60008060408385031215612bd257600080fd5b8235612bdd81612a63565b946020939093013593505050565b803560ff81168114612a8f57600080fd5b80356001600160401b0381168114612a8f57600080fd5b600080600080600080600060e0888a031215612c2e57600080fd5b612c3788612beb565b965060208801359550612c4c60408901612bfc565b9450612c5a60608901612bfc565b9350612c6860808901612bfc565b9250612c7660a08901612beb565b9150612c8460c08901612beb565b905092959891949750929550565b60008083601f840112612ca457600080fd5b5081356001600160401b03811115612cbb57600080fd5b6020830191508360208260051b85010111156113a657600080fd5b60008060008060408587031215612cec57600080fd5b84356001600160401b03811115612d0257600080fd5b612d0e87828801612c92565b90955093505060208501356001600160401b03811115612d2d57600080fd5b612d3987828801612c92565b95989497509550505050565b600080600060608486031215612d5a57600080fd5b8335612d6581612a63565b92506020840135612d7581612a63565b929592945050506040919091013590565b60008060408385031215612d9957600080fd5b50508035926020909101359150565b60008060208385031215612dbb57600080fd5b82356001600160401b03811115612dd157600080fd5b8301601f81018513612de257600080fd5b80356001600160401b03811115612df857600080fd5b856020828401011115612e0a57600080fd5b6020919091019590945092505050565b600080600060608486031215612e2f57600080fd5b833592506020840135612e4181612a63565b9150612e4f60408501612a78565b90509250925092565b600060208284031215612e6a57600080fd5b61178082612beb565b600060208284031215612e8557600080fd5b813561178081612a63565b80358015158114612a8f57600080fd5b600060208284031215612eb257600080fd5b61178082612e90565b60008060408385031215612ece57600080fd5b8235612ed981612a63565b9150612ac060208401612beb565b60008060408385031215612efa57600080fd5b8235612f0581612a63565b9150612ac060208401612e90565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612f3f57600080fd5b8435612f4a81612a63565b93506020850135612f5a81612a63565b92506040850135915060608501356001600160401b03811115612f7c57600080fd5b8501601f81018713612f8d57600080fd5b80356001600160401b03811115612fa657612fa6612f13565b604051601f8201601f19908116603f011681016001600160401b0381118282101715612fd457612fd4612f13565b604052818152828201602001891015612fec57600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b6000806040838503121561302157600080fd5b823561302c81612a63565b9150602083013561303c81612a63565b809150509250929050565b60008060006040848603121561305c57600080fd5b8335925060208401356001600160401b0381111561307957600080fd5b61308586828701612c92565b9497909650939450505050565b600080600080606085870312156130a857600080fd5b6130b185612beb565b935060208501356130c181612a63565b925060408501356001600160401b03811115612d2d57600080fd5b634e487b7160e01b600052601160045260246000fd5b600060ff821660ff8103613108576131086130dc565b60010192915050565b600181811c9082168061312557607f821691505b60208210810361314557634e487b7160e01b600052602260045260246000fd5b50919050565b808202811582820484141761093a5761093a6130dc565b8082018082111561093a5761093a6130dc565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561319d57600080fd5b815161178081612a63565b60006001600160fb1b038311156131be57600080fd5b8260051b80858437919091019392505050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b60008261323b57634e487b7160e01b600052601260045260246000fd5b500490565b601f821115610c8a57806000526020600020601f840160051c810160208510156132675750805b601f840160051c820191505b8181101561254e5760008155600101613273565b6001600160401b0383111561329e5761329e612f13565b6132b2836132ac8354613111565b83613240565b6000601f8411600181146132e657600085156132ce5750838201355b600019600387901b1c1916600186901b17835561254e565b600083815260209020601f19861690835b8281101561331757868501358255602094850194600190920191016132f7565b50868210156133345760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60008351613358818460208801612b43565b83519083019061336c818360208801612b43565b01949350505050565b600060018201613387576133876130dc565b5060010190565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906134a290830184612b67565b9695505050505050565b6000602082840312156134be57600080fd5b815161178081612a3056fea2646970667358221220c6f4e58cd39f0214d25b0823b1c4ebdcb1d9785b4b5f3546d069c7f8d591557e64736f6c634300081c00330000000000000000000000004560000000000000000000000000000000000000000000000000000000000000123000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000b6b062ce38148ee0a34f8b811330fb80ff66d87d0000000000000000000000000000000000000000000000000000000000000005446570697800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044450495800000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102465760003560e01c80636221d13c116101395780639e6cc952116100b6578063e985e9c51161007a578063e985e9c5146107a0578063eef99810146107c0578063f12479ac146107d3578063f2fde38b146108b7578063f31755b7146108d7578063f86d3e8f146108f757600080fd5b80639e6cc952146106d8578063a22cb46514610720578063a9fc664e14610740578063b88d4fde14610760578063c87b56dd1461078057600080fd5b80638456cb59116100fd5780638456cb591461064057806389c02bd0146106555780638da5cb5b1461068557806395d89b41146106a35780639e05d240146106b857600080fd5b80636221d13c146104fd5780636352211e1461051e57806369eee0051461053e57806370a082311461060b578063715018a61461062b57600080fd5b80631bb015b2116101c75780633f4ba83a1161018b5780633f4ba83a1461046957806342842e0e1461047e57806355f804b31461049e5780635944c753146104be5780635c975abb146104de57600080fd5b80631bb015b2146103c25780632157c649146103e257806323b872dd146103f55780632a55205a146104155780633ccfd60b1461045457600080fd5b8063081812fc1161020e578063081812fc14610326578063095ea7b314610346578063098144d4146103665780630d705df61461037b57806318160ddd146103a357600080fd5b8063014635461461024b57806301ffc9a71461029057806304634d8d146102c0578063055ad42e146102e257806306fdde0314610304575b600080fd5b34801561025757600080fd5b5061027373721c00182a990771244d7a71b9fa2ea789a3b43381565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561029c57600080fd5b506102b06102ab366004612a46565b61092f565b6040519015158152602001610287565b3480156102cc57600080fd5b506102e06102db366004612a94565b610940565b005b3480156102ee57600080fd5b506102f7610956565b6040516102879190612ac9565b34801561031057600080fd5b50610319610abc565b6040516102879190612b93565b34801561033257600080fd5b50610273610341366004612ba6565b610b4e565b34801561035257600080fd5b506102e0610361366004612bbf565b610b75565b34801561037257600080fd5b50610273610c8f565b34801561038757600080fd5b506040805163657711f560e11b81526001602082015201610287565b3480156103af57600080fd5b50600d545b604051908152602001610287565b3480156103ce57600080fd5b506102e06103dd366004612c13565b610cc9565b6102e06103f0366004612cd6565b610e92565b34801561040157600080fd5b506102e0610410366004612d45565b6112ce565b34801561042157600080fd5b50610435610430366004612d86565b6112ff565b604080516001600160a01b039093168352602083019190915201610287565b34801561046057600080fd5b506102e06113ad565b34801561047557600080fd5b506102e061145a565b34801561048a57600080fd5b506102e0610499366004612d45565b61146c565b3480156104aa57600080fd5b506102e06104b9366004612da8565b611487565b3480156104ca57600080fd5b506102e06104d9366004612e1a565b61149c565b3480156104ea57600080fd5b50600b54600160a01b900460ff166102b0565b34801561050957600080fd5b506008546102b090600160a81b900460ff1681565b34801561052a57600080fd5b50610273610539366004612ba6565b6114af565b34801561054a57600080fd5b506105b9610559366004612e58565b601360205260009081526040902080546001909101546001600160601b038116906001600160401b03600160601b8204811691600160a01b81049091169060ff600160e01b8204811691600160e81b8104821691600160f01b9091041687565b604080519788526001600160601b0390961660208801526001600160401b039485169587019590955292909116606085015260ff908116608085015290811660a08401521660c082015260e001610287565b34801561061757600080fd5b506103b4610626366004612e73565b61150f565b34801561063757600080fd5b506102e0611595565b34801561064c57600080fd5b506102e06115a7565b34801561066157600080fd5b506102b0610670366004612ba6565b60009081526012602052604090205460ff1690565b34801561069157600080fd5b50600b546001600160a01b0316610273565b3480156106af57600080fd5b506103196115b7565b3480156106c457600080fd5b506102e06106d3366004612ea0565b6115c6565b3480156106e457600080fd5b506103b46106f3366004612ebb565b6001600160a01b038216600090815260116020908152604080832060ff8516845290915290205492915050565b34801561072c57600080fd5b506102e061073b366004612ee7565b611626565b34801561074c57600080fd5b506102e061075b366004612e73565b611631565b34801561076c57600080fd5b506102e061077b366004612f29565b6116e8565b34801561078c57600080fd5b5061031961079b366004612ba6565b611720565b3480156107ac57600080fd5b506102b06107bb36600461300e565b611787565b6102e06107ce366004613047565b6117eb565b3480156107df57600080fd5b506102f76107ee366004612e58565b6040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c08101919091525060ff908116600090815260136020908152604091829020825160e081018452815481526001909101546001600160601b038116928201929092526001600160401b03600160601b8304811693820193909352600160a01b82049092166060830152600160e01b810483166080830152600160e81b8104831660a0830152600160f01b900490911660c082015290565b3480156108c357600080fd5b506102e06108d2366004612e73565b611a83565b3480156108e357600080fd5b506102b06108f2366004613092565b611afc565b34801561090357600080fd5b506103b4610912366004612bbf565b601160209081526000928352604080842090915290825290205481565b600061093a82611b8d565b92915050565b610948611bb2565b6109528282611bba565b5050565b6040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c08101919091524260015b6010548160ff1611610aa25760ff8116600090815260136020526040902060010154600160601b90046001600160401b031682108015906109f9575060ff8116600090815260136020526040902060010154600160a01b90046001600160401b03168211155b15610a905760ff908116600090815260136020908152604091829020825160e081018452815481526001909101546001600160601b038116928201929092526001600160401b03600160601b8304811693820193909352600160a01b82049092166060830152600160e01b810483166080830152600160e81b8104831660a0830152600160f01b900490911660c082015292915050565b80610a9a816130f2565b915050610993565b5060405163a9477e0960e01b815260040160405180910390fd5b606060068054610acb90613111565b80601f0160208091040260200160405190810160405280929190818152602001828054610af790613111565b8015610b445780601f10610b1957610100808354040283529160200191610b44565b820191906000526020600020905b815481529060010190602001808311610b2757829003601f168201915b5050505050905090565b6000610b5982611c08565b506000908152600460205260409020546001600160a01b031690565b6000610b80826114af565b9050806001600160a01b0316836001600160a01b031603610bf25760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610c0e5750610c0e8133611787565b610c805760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610be9565b610c8a8383611c67565b505050565b60085461010090046001600160a01b031680610cc65760085460ff16610cc6575073721c00182a990771244d7a71b9fa2ea789a3b4335b90565b610cd1611bb2565b8660ff16600003610cf557604051636cdfa4bd60e01b815260040160405180910390fd5b836001600160401b0316836001600160401b031611610d275760405163d22806e360e01b815260040160405180910390fd5b8160ff168160ff161115610d4e5760405163e773e0a960e01b815260040160405180910390fd5b8160ff16600003610d725760405163e773e0a960e01b815260040160405180910390fd5b6040805160e0810182528781526001600160401b0380881660208084019182528883168486019081528884166060860190815260ff808f16608088018181528b831660a08a019081528b841660c08b01908152600084815260139098529a90962098518955955160019098018054945193519651955199518316600160f01b0260ff60f01b199a8416600160e81b029a909a1661ffff60e81b1996909316600160e01b0260ff60e01b19978916600160a01b029790971668ffffffffffffffffff60a01b1994909816600160601b026001600160a01b03199095166001600160601b0399909916989098179390931791909116949094179290921716919091179290921790556010541015610e895760ff87166010555b50505050505050565b610e9a611cd5565b826000819003610ebd5760405163162908e360e11b815260040160405180910390fd5b6000610ec7610956565b9050806080015160ff1660001480610ee95750600260ff16816080015160ff16115b15610f075760405163a9477e0960e01b815260040160405180910390fd5b8060c0015160ff16821115610f2f5760405163422e8d1160e11b815260040160405180910390fd5b600d54610dac11610f5357604051637201d58360e01b815260040160405180910390fd5b805160009015610fd5576040516001600160601b03193360601b166020820152600090603401604051602081830303815290604052805190602001209050610fd18686808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505086519150849050611d22565b9150505b80158015610ffb57508282602001516001600160601b0316610ff7919061314b565b3414155b1561101957604051636956f2ab60e11b815260040160405180910390fd5b80801561102557503415155b1561104357604051636956f2ab60e11b815260040160405180910390fd5b60a0820151336000908152601160209081526040808320608087015160ff908116855292529091205491169061107a908590613162565b111561109957604051637ab0312d60e11b815260040160405180910390fd5b336000908152601160209081526040808320608086015160ff168452909152812080548592906110ca908490613162565b9250508190555082600d60008282546110e39190613162565b90915550600090505b8381101561128257337f000000000000000000000000b6b062ce38148ee0a34f8b811330fb80ff66d87d6001600160a01b0316636352211e8a8a8581811061113657611136613175565b905060200201356040518263ffffffff1660e01b815260040161115b91815260200190565b602060405180830381865afa158015611178573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119c919061318b565b6001600160a01b0316146111c3576040516330cd747160e01b815260040160405180910390fd5b601260008989848181106111d9576111d9613175565b602090810292909201358352508101919091526040016000205460ff161561121457604051631bbdf5c560e31b815260040160405180910390fd5b6001601260008a8a8581811061122c5761122c613175565b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555061127a3389898481811061126e5761126e613175565b90506020020135611d38565b6001016110ec565b5086866040516112939291906131a8565b6040519081900381209033907f991fffff1d12ad3630afc4304fb7fdf38b044c1cd408609dcda559077b23f5bb90600090a350505050505050565b6112d83382611edb565b6112f45760405162461bcd60e51b8152600401610be9906131d1565b610c8a838383611f39565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916113745750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090611393906001600160601b03168761314b565b61139d919061321e565b91519350909150505b9250929050565b6113b5611bb2565b6040514790600090339083908381818185875af1925050503d80600081146113f9576040519150601f19603f3d011682016040523d82523d6000602084013e6113fe565b606091505b5050905080611420576040516327fcd9d160e01b815260040160405180910390fd5b60405182815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a25050565b611462611bb2565b61146a6120b2565b565b610c8a838383604051806020016040528060008152506116e8565b61148f611bb2565b600f610c8a828483613287565b6114a4611bb2565b610c8a838383612107565b6000818152600260205260408120546001600160a01b03168061093a5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610be9565b60006001600160a01b0382166115795760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610be9565b506001600160a01b031660009081526003602052604090205490565b61159d612161565b61146a60006121bb565b6115af611bb2565b61146a61220d565b606060078054610acb90613111565b6115ce611bb2565b60088054821515600160a81b0260ff60a81b199091161790556040517f6787c7f9a80aa0f5ceddab2c54f1f5169c0b88e75dd5e19d5e858a64144c7dbc9061161b90831515815260200190565b60405180910390a150565b610952338383612250565b611639611bb2565b6001600160a01b038116803b15159015801590611654575080155b15611672576040516332483afb60e01b815260040160405180910390fd5b7fcc5dc080ff977b3c3a211fa63ab74f90f658f5ba9d3236e92c8f59570f442aac61169b610c8f565b604080516001600160a01b03928316815291851660208301520160405180910390a150600880546001600160a01b03909216610100026001600160a81b0319909216919091176001179055565b6116f23383611edb565b61170e5760405162461bcd60e51b8152600401610be9906131d1565b61171a84848484612316565b50505050565b606061172b82611c08565b6000611735612349565b905060008151116117555760405180602001604052806000815250611780565b8061175f84612358565b604051602001611770929190613346565b6040516020818303038152906040525b9392505050565b6001600160a01b0382811660009081526005602090815260408083209385168352929052205460ff168061093a57600854600160a81b900460ff161561093a576117cf610c8f565b6001600160a01b0316826001600160a01b031614905092915050565b6117f3611cd5565b826000036118145760405163162908e360e11b815260040160405180910390fd5b600061181e610956565b90506003816080015160ff1610156118495760405163a9477e0960e01b815260040160405180910390fd5b8060c0015160ff168411156118715760405163422e8d1160e11b815260040160405180910390fd5b600d5461271090611883908690613162565b11156118a25760405163d05cb60960e01b815260040160405180910390fd5b805160009015611924576040516001600160601b03193360601b1660208201526000906034016040516020818303038152906040528051906020012090506119208585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505086519150849050611d22565b9150505b8015801561194a57508482602001516001600160601b0316611946919061314b565b3414155b1561196857604051636956f2ab60e11b815260040160405180910390fd5b60a0820151336000908152601160209081526040808320608087015160ff908116855292529091205491169061199f908790613162565b11156119be57604051637ab0312d60e11b815260040160405180910390fd5b336000908152601160209081526040808320608086015160ff90811685529252822080549188169290916119f3908490613162565b9250508190555084600d6000828254611a0c9190613162565b90915550600090505b85811015611a4657611a2933600e54611d38565b600e8054906000611a3983613375565b9091555050600101611a15565b5060405185815233907fd31a422879d1d9c299fb16d2e391ae2adf9d22a9f6a7f013e3bf0af8d83515699060200160405180910390a25050505050565b611a8b612161565b6001600160a01b038116611af05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610be9565b611af9816121bb565b50565b6040516001600160601b0319606085901b1660208201526000908190603401604051602081830303815290604052805190602001209050611b81848480806020026020016040519081016040528093929190818152602001838360200280828437600092018290525060ff8c168152601360205260409020549250859150611d229050565b9150505b949350505050565b60006001600160e01b0319821663152a902d60e11b148061093a575061093a826123ea565b61146a612161565b611bc4828261242a565b6040516001600160601b03821681526001600160a01b038316907f8a8bae378cb731c5c40b632330c6836c2f916f48edb967699c86736f9a6a76ef9060200161144e565b6000818152600260205260409020546001600160a01b0316611af95760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610be9565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c9c826114af565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600b54600160a01b900460ff161561146a5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610be9565b600082611d2f85846124e4565b14949350505050565b6001600160a01b038216611d8e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610be9565b6000818152600260205260409020546001600160a01b031615611df35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610be9565b611e01600083836001612527565b6000818152600260205260409020546001600160a01b031615611e665760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610be9565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4610952600083836001612555565b600080611ee7836114af565b9050806001600160a01b0316846001600160a01b03161480611f0e5750611f0e8185611787565b80611b855750836001600160a01b0316611f2784610b4e565b6001600160a01b031614949350505050565b826001600160a01b0316611f4c826114af565b6001600160a01b031614611f725760405162461bcd60e51b8152600401610be99061338e565b6001600160a01b038216611fd45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610be9565b611fe18383836001612527565b826001600160a01b0316611ff4826114af565b6001600160a01b03161461201a5760405162461bcd60e51b8152600401610be99061338e565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4610c8a8383836001612555565b6120ba61257c565b600b805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6121128383836125cc565b6040516001600160601b03821681526001600160a01b0383169084907f7f5b076c952c0ec86e5425963c1326dd0f03a3595c19f81d765e8ff559a6e33c906020015b60405180910390a3505050565b600b546001600160a01b0316331461146a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610be9565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612215611cd5565b600b805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120ea3390565b816001600160a01b0316836001600160a01b0316036122b15760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610be9565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319101612154565b612321848484611f39565b61232d84848484612697565b61171a5760405162461bcd60e51b8152600401610be9906133d3565b6060600f8054610acb90613111565b6060600061236583612795565b60010190506000816001600160401b0381111561238457612384612f13565b6040519080825280601f01601f1916602001820160405280156123ae576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846123b857509392505050565b60006001600160e01b03198216632b435fdb60e21b148061241b57506001600160e01b0319821663503e914d60e11b145b8061093a575061093a8261286d565b6127106001600160601b03821611156124555760405162461bcd60e51b8152600401610be990613425565b6001600160a01b0382166124ab5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610be9565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600955565b600081815b845181101561251f576125158286838151811061250857612508613175565b60200260200101516128bd565b91506001016124e9565b509392505050565b60005b8181101561254e5761254685856125418487613162565b6128e9565b60010161252a565b5050505050565b60005b8181101561254e57612574858561256f8487613162565b61293f565b600101612558565b600b54600160a01b900460ff1661146a5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610be9565b6127106001600160601b03821611156125f75760405162461bcd60e51b8152600401610be990613425565b6001600160a01b03821661264d5760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610be9565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600a90529190942093519051909116600160a01b029116179055565b60006001600160a01b0384163b1561278d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906126db90339089908890889060040161346f565b6020604051808303816000875af1925050508015612716575060408051601f3d908101601f19168201909252612713918101906134ac565b60015b612773573d808015612744576040519150601f19603f3d011682016040523d82523d6000602084013e612749565b606091505b50805160000361276b5760405162461bcd60e51b8152600401610be9906133d3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611b85565b506001611b85565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106127d45772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612800576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061281e57662386f26fc10000830492506010015b6305f5e1008310612836576305f5e100830492506008015b612710831061284a57612710830492506004015b6064831061285c576064830492506002015b600a831061093a5760010192915050565b60006001600160e01b031982166380ac58cd60e01b148061289e57506001600160e01b03198216635b5e139f60e01b145b8061093a57506301ffc9a760e01b6001600160e01b031983161461093a565b60008183106128d9576000828152602084905260409020611780565b5060009182526020526040902090565b6001600160a01b0383811615908316158180156129035750805b1561292157604051635cbd944160e01b815260040160405180910390fd5b811561292d575b61254e565b806129285761254e3386868634612986565b6001600160a01b0383811615908316158180156129595750805b1561297757604051635cbd944160e01b815260040160405180910390fd5b8161292857806129285761254e565b6000612990610c8f565b90506001600160a01b03811615612a28576001600160a01b03811633036129b7575061254e565b60405163657711f560e11b81526001600160a01b038781166004830152868116602483015285811660448301526064820185905282169063caee23ea9060840160006040518083038186803b158015612a0f57600080fd5b505afa158015612a23573d6000803e3d6000fd5b505050505b505050505050565b6001600160e01b031981168114611af957600080fd5b600060208284031215612a5857600080fd5b813561178081612a30565b6001600160a01b0381168114611af957600080fd5b80356001600160601b0381168114612a8f57600080fd5b919050565b60008060408385031215612aa757600080fd5b8235612ab281612a63565b9150612ac060208401612a78565b90509250929050565b600060e082019050825182526001600160601b0360208401511660208301526001600160401b0360408401511660408301526001600160401b03606084015116606083015260ff608084015116608083015260ff60a08401511660a083015260c0830151612b3c60c084018260ff169052565b5092915050565b60005b83811015612b5e578181015183820152602001612b46565b50506000910152565b60008151808452612b7f816020860160208601612b43565b601f01601f19169290920160200192915050565b6020815260006117806020830184612b67565b600060208284031215612bb857600080fd5b5035919050565b60008060408385031215612bd257600080fd5b8235612bdd81612a63565b946020939093013593505050565b803560ff81168114612a8f57600080fd5b80356001600160401b0381168114612a8f57600080fd5b600080600080600080600060e0888a031215612c2e57600080fd5b612c3788612beb565b965060208801359550612c4c60408901612bfc565b9450612c5a60608901612bfc565b9350612c6860808901612bfc565b9250612c7660a08901612beb565b9150612c8460c08901612beb565b905092959891949750929550565b60008083601f840112612ca457600080fd5b5081356001600160401b03811115612cbb57600080fd5b6020830191508360208260051b85010111156113a657600080fd5b60008060008060408587031215612cec57600080fd5b84356001600160401b03811115612d0257600080fd5b612d0e87828801612c92565b90955093505060208501356001600160401b03811115612d2d57600080fd5b612d3987828801612c92565b95989497509550505050565b600080600060608486031215612d5a57600080fd5b8335612d6581612a63565b92506020840135612d7581612a63565b929592945050506040919091013590565b60008060408385031215612d9957600080fd5b50508035926020909101359150565b60008060208385031215612dbb57600080fd5b82356001600160401b03811115612dd157600080fd5b8301601f81018513612de257600080fd5b80356001600160401b03811115612df857600080fd5b856020828401011115612e0a57600080fd5b6020919091019590945092505050565b600080600060608486031215612e2f57600080fd5b833592506020840135612e4181612a63565b9150612e4f60408501612a78565b90509250925092565b600060208284031215612e6a57600080fd5b61178082612beb565b600060208284031215612e8557600080fd5b813561178081612a63565b80358015158114612a8f57600080fd5b600060208284031215612eb257600080fd5b61178082612e90565b60008060408385031215612ece57600080fd5b8235612ed981612a63565b9150612ac060208401612beb565b60008060408385031215612efa57600080fd5b8235612f0581612a63565b9150612ac060208401612e90565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612f3f57600080fd5b8435612f4a81612a63565b93506020850135612f5a81612a63565b92506040850135915060608501356001600160401b03811115612f7c57600080fd5b8501601f81018713612f8d57600080fd5b80356001600160401b03811115612fa657612fa6612f13565b604051601f8201601f19908116603f011681016001600160401b0381118282101715612fd457612fd4612f13565b604052818152828201602001891015612fec57600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b6000806040838503121561302157600080fd5b823561302c81612a63565b9150602083013561303c81612a63565b809150509250929050565b60008060006040848603121561305c57600080fd5b8335925060208401356001600160401b0381111561307957600080fd5b61308586828701612c92565b9497909650939450505050565b600080600080606085870312156130a857600080fd5b6130b185612beb565b935060208501356130c181612a63565b925060408501356001600160401b03811115612d2d57600080fd5b634e487b7160e01b600052601160045260246000fd5b600060ff821660ff8103613108576131086130dc565b60010192915050565b600181811c9082168061312557607f821691505b60208210810361314557634e487b7160e01b600052602260045260246000fd5b50919050565b808202811582820484141761093a5761093a6130dc565b8082018082111561093a5761093a6130dc565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561319d57600080fd5b815161178081612a63565b60006001600160fb1b038311156131be57600080fd5b8260051b80858437919091019392505050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b60008261323b57634e487b7160e01b600052601260045260246000fd5b500490565b601f821115610c8a57806000526020600020601f840160051c810160208510156132675750805b601f840160051c820191505b8181101561254e5760008155600101613273565b6001600160401b0383111561329e5761329e612f13565b6132b2836132ac8354613111565b83613240565b6000601f8411600181146132e657600085156132ce5750838201355b600019600387901b1c1916600186901b17835561254e565b600083815260209020601f19861690835b8281101561331757868501358255602094850194600190920191016132f7565b50868210156133345760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60008351613358818460208801612b43565b83519083019061336c818360208801612b43565b01949350505050565b600060018201613387576133876130dc565b5060010190565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906134a290830184612b67565b9695505050505050565b6000602082840312156134be57600080fd5b815161178081612a3056fea2646970667358221220c6f4e58cd39f0214d25b0823b1c4ebdcb1d9785b4b5f3546d069c7f8d591557e64736f6c634300081c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004560000000000000000000000000000000000000000000000000000000000000123000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000b6b062ce38148ee0a34f8b811330fb80ff66d87d0000000000000000000000000000000000000000000000000000000000000005446570697800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044450495800000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : initialOwner_ (address): 0x4560000000000000000000000000000000000000
Arg [1] : royaltyReceiver_ (address): 0x1230000000000000000000000000000000000000
Arg [2] : royaltyFeeNumerator_ (uint96): 500
Arg [3] : name_ (string): Depix
Arg [4] : symbol_ (string): DPIX
Arg [5] : rillaz_ (address): 0xb6b062cE38148ee0A34f8B811330Fb80FF66d87d
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000004560000000000000000000000000000000000000
Arg [1] : 0000000000000000000000001230000000000000000000000000000000000000
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [5] : 000000000000000000000000b6b062ce38148ee0a34f8b811330fb80ff66d87d
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [7] : 4465706978000000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [9] : 4450495800000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
169649:12488:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;138722:104;;;;;;;;;;;;138783:42;138722:104;;;;;-1:-1:-1;;;;;178:32:1;;;160:51;;148:2;133:18;138722:104:0;;;;;;;;181754:187;;;;;;;;;;-1:-1:-1;181754:187:0;;;;;:::i;:::-;;:::i;:::-;;;773:14:1;;766:22;748:41;;736:2;721:18;181754:187:0;608::1;178141:176:0;;;;;;;;;;-1:-1:-1;178141:176:0;;;;;:::i;:::-;;:::i;:::-;;179484:410;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;161619:108::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;147612:171::-;;;;;;;;;;-1:-1:-1;147612:171:0;;;;;:::i;:::-;;:::i;147130:416::-;;;;;;;;;;-1:-1:-1;147130:416:0;;;;;:::i;:::-;;:::i;140340:298::-;;;;;;;;;;;;;:::i;164937:252::-;;;;;;;;;;-1:-1:-1;164937:252:0;;;-1:-1:-1;;;3821:52:1;;165177:4:0;3904:2:1;3889:18;;3882:50;3794:18;164937:252:0;3655:283:1;181455:92:0;;;;;;;;;;-1:-1:-1;181526:13:0;;181455:92;;;4089:25:1;;;4077:2;4062:18;181455:92:0;3943:177:1;176723:897:0;;;;;;;;;;-1:-1:-1;176723:897:0;;;;;:::i;:::-;;:::i;172142:2086::-;;;;;;:::i;:::-;;:::i;148312:335::-;;;;;;;;;;-1:-1:-1;148312:335:0;;;;;:::i;:::-;;:::i;132715:442::-;;;;;;;;;;-1:-1:-1;132715:442:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;7278:32:1;;;7260:51;;7342:2;7327:18;;7320:34;;;;7233:18;132715:442:0;7086:274:1;177692:292:0;;;;;;;;;;;;;:::i;179287:99::-;;;;;;;;;;;;;:::i;148718:185::-;;;;;;;;;;-1:-1:-1;148718:185:0;;;;;:::i;:::-;;:::i;178841:137::-;;;;;;;;;;-1:-1:-1;178841:137:0;;;;;:::i;:::-;;:::i;178514:232::-;;;;;;;;;;-1:-1:-1;178514:232:0;;;;;:::i;:::-;;:::i;119282:86::-;;;;;;;;;;-1:-1:-1;119353:7:0;;-1:-1:-1;;;119353:7:0;;;;119282:86;;129365:45;;;;;;;;;;-1:-1:-1;129365:45:0;;;;-1:-1:-1;;;129365:45:0;;;;;;145810:223;;;;;;;;;;-1:-1:-1;145810:223:0;;;;;:::i;:::-;;:::i;171042:37::-;;;;;;;;;;-1:-1:-1;171042:37:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;171042:37:0;;;-1:-1:-1;;;;;;;;171042:37:0;;;;;-1:-1:-1;;;171042:37:0;;;;;;;-1:-1:-1;;;171042:37:0;;;;;-1:-1:-1;;;171042:37:0;;;;;-1:-1:-1;;;171042:37:0;;;;;;;;;;8885:25:1;;;-1:-1:-1;;;;;8946:39:1;;;8941:2;8926:18;;8919:67;-1:-1:-1;;;;;9022:31:1;;;9002:18;;;8995:59;;;;9090:31;;;;9085:2;9070:18;;9063:59;9171:4;9159:17;;;9153:3;9138:19;;9131:46;9214:17;;;9208:3;9193:19;;9186:46;9269:17;9263:3;9248:19;;9241:46;8872:3;8857:19;171042:37:0;8588:705:1;145541:207:0;;;;;;;;;;-1:-1:-1;145541:207:0;;;;;:::i;:::-;;:::i;115942:103::-;;;;;;;;;;;;;:::i;179084:95::-;;;;;;;;;;;;;:::i;181253:106::-;;;;;;;;;;-1:-1:-1;181253:106:0;;;;;:::i;:::-;181308:4;181332:19;;;:10;:19;;;;;;;;;181253:106;115294:87;;;;;;;;;;-1:-1:-1;115367:6:0;;-1:-1:-1;;;;;115367:6:0;115294:87;;161735:112;;;;;;;;;;;;;:::i;129790:257::-;;;;;;;;;;-1:-1:-1;129790:257:0;;;;;:::i;:::-;;:::i;180912:173::-;;;;;;;;;;-1:-1:-1;180912:173:0;;;;;:::i;:::-;-1:-1:-1;;;;;181044:24:0;;181017:7;181044:24;;;:18;:24;;;;;;;;:33;;;;;;;;;;;180912:173;;;;;147855:155;;;;;;;;;;-1:-1:-1;147855:155:0;;;;;:::i;:::-;;:::i;139681:544::-;;;;;;;;;;-1:-1:-1;139681:544:0;;;;;:::i;:::-;;:::i;148974:322::-;;;;;;;;;;-1:-1:-1;148974:322:0;;;;;:::i;:::-;;:::i;146444:281::-;;;;;;;;;;-1:-1:-1;146444:281:0;;;;;:::i;:::-;;:::i;163804:370::-;;;;;;;;;;-1:-1:-1;163804:370:0;;;;;:::i;:::-;;:::i;174603:1681::-;;;;;;:::i;:::-;;:::i;180010:109::-;;;;;;;;;;-1:-1:-1;180010:109:0;;;;;:::i;:::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;180096:15:0;;;;;;;;:6;:15;;;;;;;;;180089:22;;;;;;;;;;;;;;;;-1:-1:-1;;;;;180089:22:0;;;;;;;;;-1:-1:-1;;;;;;;;180089:22:0;;;;;;;;;;;-1:-1:-1;;;180089:22:0;;;;;;;;;-1:-1:-1;;;180089:22:0;;;;;;;;-1:-1:-1;;;180089:22:0;;;;;;;;-1:-1:-1;;;180089:22:0;;;;;;;;;;180010:109;116200:201;;;;;;;;;;-1:-1:-1;116200:201:0;;;;;:::i;:::-;;:::i;180386:316::-;;;;;;;;;;-1:-1:-1;180386:316:0;;;;;:::i;:::-;;:::i;170806:73::-;;;;;;;;;;-1:-1:-1;170806:73:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;181754:187;181873:4;181897:36;181921:11;181897:23;:36::i;:::-;181890:43;181754:187;-1:-1:-1;;181754:187:0:o;178141:176::-;178225:31;:29;:31::i;:::-;178267:42;178286:8;178296:12;178267:18;:42::i;:::-;178141:176;;:::o;179484:410::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;179581:15:0;179624:1;179609:245;179632:11;;179627:1;:16;;;179609:245;;179707:9;;;;;;;:6;:9;;;;;:15;;;-1:-1:-1;;;179707:15:0;;-1:-1:-1;;;;;179707:15:0;179687:35;;;;;:89;;-1:-1:-1;179763:9:0;;;;;;;:6;:9;;;;;:13;;;-1:-1:-1;;;179763:13:0;;-1:-1:-1;;;;;179763:13:0;179743:33;;;179687:89;179665:178;;;179818:9;;;;;;;;:6;:9;;;;;;;;;179811:16;;;;;;;;;;;;;;;;-1:-1:-1;;;;;179811:16:0;;;;;;;;;-1:-1:-1;;;;;;;;179811:16:0;;;;;;;;;;;-1:-1:-1;;;179811:16:0;;;;;;;;;-1:-1:-1;;;179811:16:0;;;;;;;;-1:-1:-1;;;179811:16:0;;;;;;;;-1:-1:-1;;;179811:16:0;;;;;;;;;;179484:410;-1:-1:-1;;179484:410:0:o;179665:178::-;179645:3;;;;:::i;:::-;;;;179609:245;;;;179871:15;;-1:-1:-1;;;179871:15:0;;;;;;;;;;;161619:108;161673:13;161706;161699:20;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;161619:108;:::o;147612:171::-;147688:7;147708:23;147723:7;147708:14;:23::i;:::-;-1:-1:-1;147751:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;147751:24:0;;147612:171::o;147130:416::-;147211:13;147227:23;147242:7;147227:14;:23::i;:::-;147211:39;;147275:5;-1:-1:-1;;;;;147269:11:0;:2;-1:-1:-1;;;;;147269:11:0;;147261:57;;;;-1:-1:-1;;;147261:57:0;;14515:2:1;147261:57:0;;;14497:21:1;14554:2;14534:18;;;14527:30;14593:34;14573:18;;;14566:62;-1:-1:-1;;;14644:18:1;;;14637:31;14685:19;;147261:57:0;;;;;;;;;83935:10;-1:-1:-1;;;;;147353:21:0;;;;:62;;-1:-1:-1;147378:37:0;147395:5;83935:10;163804:370;:::i;147378:37::-;147331:173;;;;-1:-1:-1;;;147331:173:0;;14917:2:1;147331:173:0;;;14899:21:1;14956:2;14936:18;;;14929:30;14995:34;14975:18;;;14968:62;15066:31;15046:18;;;15039:59;15115:19;;147331:173:0;14715:425:1;147331:173:0;147517:21;147526:2;147530:7;147517:8;:21::i;:::-;147200:346;147130:416;;:::o;140340:298::-;140444:17;;;;;-1:-1:-1;;;;;140444:17:0;;140474:157;;140523:22;;;;140518:102;;-1:-1:-1;138783:42:0;140518:102;140340:298;:::o;176723:897::-;176948:31;:29;:31::i;:::-;176994:7;:12;;177005:1;176994:12;176990:46;;177015:21;;-1:-1:-1;;;177015:21:0;;;;;;;;;;;176990:46;177058:5;-1:-1:-1;;;;;177051:12:0;:3;-1:-1:-1;;;;;177051:12:0;;177047:44;;177072:19;;-1:-1:-1;;;177072:19:0;;;;;;;;;;;177047:44;177117:12;177106:23;;:8;:23;;;177102:51;;;177138:15;;-1:-1:-1;;;177138:15:0;;;;;;;;;;;177102:51;177168:12;:17;;177184:1;177168:17;177164:45;;177194:15;;-1:-1:-1;;;177194:15:0;;;;;;;;;;;177164:45;177240:237;;;;;;;;;;;-1:-1:-1;;;;;177240:237:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;177222:15:0;;;:6;:15;;;;;;;:255;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;177222:255:0;-1:-1:-1;;;;177222:255:0;;;-1:-1:-1;;;177222:255:0;;;;;-1:-1:-1;;;;177222:255:0;;;;-1:-1:-1;;;177222:255:0;-1:-1:-1;;;;177222:255:0;;;-1:-1:-1;;;177222:255:0;;;;;-1:-1:-1;;;;177222:255:0;;;;-1:-1:-1;;;177222:255:0;-1:-1:-1;;;;;;177222:255:0;;;-1:-1:-1;;;;;177222:255:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;177578:11;;-1:-1:-1;177564:48:0;;;177591:21;;;:11;:21;177564:48;176723:897;;;;;;;:::o;172142:2086::-;118887:19;:17;:19::i;:::-;172353:8;172339:11:::1;172436:8:::0;;;172432:36:::1;;172453:15;;-1:-1:-1::0;;;172453:15:0::1;;;;;;;;;;;172432:36;172515:18;172536:14;:12;:14::i;:::-;172515:35;;172565:5;:13;;;:18;;172582:1;172565:18;:52;;;;170409:1;172587:30;;:5;:13;;;:30;;;172565:52;172561:93;;;172639:15;;-1:-1:-1::0;;;172639:15:0::1;;;;;;;;;;;172561:93;172675:5;:14;;;172669:20;;:3;:20;172665:51;;;172698:18;;-1:-1:-1::0;;;172698:18:0::1;;;;;;;;;;;172665:51;172731:13;::::0;170343:4:::1;-1:-1:-1::0;172727:64:0::1;;172772:19;;-1:-1:-1::0;;;172772:19:0::1;;;;;;;;;;;172727:64;172880:16:::0;;172847:18:::1;::::0;172880:30;172876:269:::1;;172952:28;::::0;-1:-1:-1;;;;;;172969:10:0::1;15294:2:1::0;15290:15;15286:53;172952:28:0::1;::::0;::::1;15274:66:1::0;172927:12:0::1;::::0;15356::1;;172952:28:0::1;;;;;;;;;;;;172942:39;;;;;;172927:54;;173012:121;173049:11;;173012:121;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;;173079:16:0;;;-1:-1:-1;173114:4:0;;-1:-1:-1;173012:18:0::1;:121::i;:::-;172996:137;;172912:233;172876:269;173222:13;173221:14;:48;;;;;173266:3;173252:5;:11;;;-1:-1:-1::0;;;;;173252:17:0::1;;;;;:::i;:::-;173239:9;:30;;173221:48;173217:90;;;173291:16;;-1:-1:-1::0;;;173291:16:0::1;;;;;;;;;;;173217:90;173374:13;:31;;;;-1:-1:-1::0;173391:9:0::1;:14:::0;::::1;173374:31;173370:60;;;173414:16;;-1:-1:-1::0;;;173414:16:0::1;;;;;;;;;;;173370:60;173601:18;::::0;::::1;::::0;173553:10:::1;173534:30;::::0;;;:18:::1;:30;::::0;;;;;;;173565:13:::1;::::0;::::1;::::0;173534:85:::1;:45:::0;;::::1;::::0;;;;;;;;:85;::::1;::::0;:51:::1;::::0;173582:3;;173534:51:::1;:::i;:::-;:85;173516:144;;;173638:22;;-1:-1:-1::0;;;173638:22:0::1;;;;;;;;;;;173516:144;173734:10;173715:30;::::0;;;:18:::1;:30;::::0;;;;;;;173746:13:::1;::::0;::::1;::::0;173715:45:::1;;::::0;;;;;;;:52;;173764:3;;173715:30;:52:::1;::::0;173764:3;;173715:52:::1;:::i;:::-;;;;;;;;173835:3;173818:13;;:20;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;173882:9:0::1;::::0;-1:-1:-1;173877:293:0::1;173901:3;173897:1;:7;173877:293;;;173961:10;173930:6;-1:-1:-1::0;;;;;173930:14:0::1;;173945:8:::0;;173954:1;173945:11;;::::1;;;;;:::i;:::-;;;;;;;173930:27;;;;;;;;;;;;;4089:25:1::0;;4077:2;4062:18;;3943:177;173930:27:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;173930:41:0::1;;173926:64;;173980:10;;-1:-1:-1::0;;;173980:10:0::1;;;;;;;;;;;173926:64;174009:10;:29;174026:8;;174035:1;174026:11;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;::::1;;174009:29:::0;;-1:-1:-1;174009:29:0;::::1;::::0;;;;;;-1:-1:-1;174009:29:0;;::::1;;174005:57;;;174047:15;;-1:-1:-1::0;;;174047:15:0::1;;;;;;;;;;;174005:57;174109:4;174077:10;:29;174094:8;;174103:1;174094:11;;;;;;;:::i;:::-;;;;;;;174077:29;;;;;;;;;;;;:36;;;;;;;;;;;;;;;;;;174128:30;174134:10;174146:8;;174155:1;174146:11;;;;;;;:::i;:::-;;;;;;;174128:5;:30::i;:::-;173906:3;;173877:293;;;;174211:8;;174187:33;;;;;;;:::i;:::-;;::::0;;;;::::1;::::0;;;174199:10:::1;::::0;174187:33:::1;::::0;;;::::1;172277:1951;;;172142:2086:::0;;;;:::o;148312:335::-;148507:41;83935:10;148540:7;148507:18;:41::i;:::-;148499:99;;;;-1:-1:-1;;;148499:99:0;;;;;;;:::i;:::-;148611:28;148621:4;148627:2;148631:7;148611:9;:28::i;132715:442::-;132812:7;132870:27;;;:17;:27;;;;;;;;132841:56;;;;;;;;;-1:-1:-1;;;;;132841:56:0;;;;;-1:-1:-1;;;132841:56:0;;;-1:-1:-1;;;;;132841:56:0;;;;;;;;132812:7;;132910:92;;-1:-1:-1;132961:29:0;;;;;;;;;132971:19;132961:29;-1:-1:-1;;;;;132961:29:0;;;;-1:-1:-1;;;132961:29:0;;-1:-1:-1;;;;;132961:29:0;;;;;132910:92;133052:23;;;;133014:21;;133523:5;;133039:36;;-1:-1:-1;;;;;133039:36:0;:10;:36;:::i;:::-;133038:58;;;;:::i;:::-;133117:16;;;-1:-1:-1;133014:82:0;;-1:-1:-1;;132715:442:0;;;;;;:::o;177692:292::-;177732:31;:29;:31::i;:::-;177843:35;;177792:21;;177774:15;;177843:10;;177792:21;;177774:15;177843:35;177774:15;177843:35;177792:21;177843:10;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;177824:54;;;177894:7;177889:39;;177910:18;;-1:-1:-1;;;177910:18:0;;;;;;;;;;;177889:39;177946:30;;4089:25:1;;;177956:10:0;;177946:30;;4077:2:1;4062:18;177946:30:0;;;;;;;;177721:263;;177692:292::o;179287:99::-;179326:31;:29;:31::i;:::-;179368:10;:8;:10::i;:::-;179287:99::o;148718:185::-;148856:39;148873:4;148879:2;148883:7;148856:39;;;;;;;;;;;;:16;:39::i;178841:137::-;178906:31;:29;:31::i;:::-;178948:12;:22;178963:7;;178948:12;:22;:::i;178514:232::-;178647:31;:29;:31::i;:::-;178689:49;178706:7;178715:8;178725:12;178689:16;:49::i;145810:223::-;145882:7;150697:16;;;:7;:16;;;;;;-1:-1:-1;;;;;150697:16:0;;145946:56;;;;-1:-1:-1;;;145946:56:0;;19643:2:1;145946:56:0;;;19625:21:1;19682:2;19662:18;;;19655:30;-1:-1:-1;;;19701:18:1;;;19694:54;19765:18;;145946:56:0;19441:348:1;145541:207:0;145613:7;-1:-1:-1;;;;;145641:19:0;;145633:73;;;;-1:-1:-1;;;145633:73:0;;19996:2:1;145633:73:0;;;19978:21:1;20035:2;20015:18;;;20008:30;20074:34;20054:18;;;20047:62;-1:-1:-1;;;20125:18:1;;;20118:39;20174:19;;145633:73:0;19794:405:1;145633:73:0;-1:-1:-1;;;;;;145724:16:0;;;;;:9;:16;;;;;;;145541:207::o;115942:103::-;115180:13;:11;:13::i;:::-;116007:30:::1;116034:1;116007:18;:30::i;179084:95::-:0;179121:31;:29;:31::i;:::-;179163:8;:6;:8::i;161735:112::-;161791:13;161824:15;161817:22;;;;;:::i;129790:257::-;129882:31;:29;:31::i;:::-;129924:33;:47;;;;;-1:-1:-1;;;129924:47:0;-1:-1:-1;;;;129924:47:0;;;;;;129987:52;;;;;;129960:11;773:14:1;766:22;748:41;;736:2;721:18;;608:187;129987:52:0;;;;;;;;129790:257;:::o;147855:155::-;147950:52;83935:10;147983:8;147993;147950:18;:52::i;139681:544::-;139757:31;:29;:31::i;:::-;-1:-1:-1;;;;;139833:30:0;;;;:34;;;139883:32;;;;:61;;;139920:24;139919:25;139883:61;139880:152;;;139968:52;;-1:-1:-1;;;139968:52:0;;;;;;;;;;;139880:152;140049:77;140082:22;:20;:22::i;:::-;140049:77;;;-1:-1:-1;;;;;20396:32:1;;;20378:51;;20465:32;;;20460:2;20445:18;;20438:60;20351:18;140049:77:0;;;;;;;-1:-1:-1;140139:22:0;:29;;-1:-1:-1;;;;;140179:38:0;;;140139:29;140179:38;-1:-1:-1;;;;;;140179:38:0;;;;;;;140164:4;140179:38;;;139681:544::o;148974:322::-;149148:41;83935:10;149181:7;149148:18;:41::i;:::-;149140:99;;;;-1:-1:-1;;;149140:99:0;;;;;;;:::i;:::-;149250:38;149264:4;149270:2;149274:7;149283:4;149250:13;:38::i;:::-;148974:322;;;;:::o;146444:281::-;146517:13;146543:23;146558:7;146543:14;:23::i;:::-;146579:21;146603:10;:8;:10::i;:::-;146579:34;;146655:1;146637:7;146631:21;:25;:86;;;;;;;;;;;;;;;;;146683:7;146692:18;:7;:16;:18::i;:::-;146666:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;146631:86;146624:93;146444:281;-1:-1:-1;;;146444:281:0:o;163804:370::-;-1:-1:-1;;;;;148202:25:0;;;163901:15;148202:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;163994:173;;164030:33;;-1:-1:-1;;;164030:33:0;;;;164026:130;;;164117:22;:20;:22::i;:::-;-1:-1:-1;;;;;164097:43:0;:8;-1:-1:-1;;;;;164097:43:0;;164084:56;;163804:370;;;;:::o;174603:1681::-;118887:19;:17;:19::i;:::-;174792:6:::1;174802:1;174792:11:::0;174788:39:::1;;174812:15;;-1:-1:-1::0;;;174812:15:0::1;;;;;;;;;;;174788:39;174874:18;174895:14;:12;:14::i;:::-;174874:35;;174942:1;174926:5;:13;;;:17;;;174922:45;;;174952:15;;-1:-1:-1::0;;;174952:15:0::1;;;;;;;;;;;174922:45;174991:5;:14;;;174982:23;;:6;:23;174978:54;;;175014:18;;-1:-1:-1::0;;;175014:18:0::1;;;;;;;;;;;174978:54;175047:13;::::0;170297:5:::1;::::0;175047:22:::1;::::0;175063:6;;175047:22:::1;:::i;:::-;:35;175043:66;;;175091:18;;-1:-1:-1::0;;;175091:18:0::1;;;;;;;;;;;175043:66;175200:16:::0;;175167:18:::1;::::0;175200:30;175196:269:::1;;175272:28;::::0;-1:-1:-1;;;;;;175289:10:0::1;15294:2:1::0;15290:15;15286:53;175272:28:0::1;::::0;::::1;15274:66:1::0;175247:12:0::1;::::0;15356::1;;175272:28:0::1;;;;;;;;;;;;175262:39;;;;;;175247:54;;175332:121;175369:11;;175332:121;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;;175399:16:0;;;-1:-1:-1;175434:4:0;;-1:-1:-1;175332:18:0::1;:121::i;:::-;175316:137;;175232:233;175196:269;175544:13;175543:14;:51;;;;;175588:6;175574:5;:11;;;-1:-1:-1::0;;;;;175574:20:0::1;;;;;:::i;:::-;175561:9;:33;;175543:51;175539:93;;;175616:16;;-1:-1:-1::0;;;175616:16:0::1;;;;;;;;;;;175539:93;175808:18;::::0;::::1;::::0;175757:10:::1;175738:30;::::0;;;:18:::1;:30;::::0;;;;;;;175769:13:::1;::::0;::::1;::::0;175738:88:::1;:45:::0;;::::1;::::0;;;;;;;;:88;::::1;::::0;:54:::1;::::0;175786:6;;175738:54:::1;:::i;:::-;:88;175720:147;;;175845:22;;-1:-1:-1::0;;;175845:22:0::1;;;;;;;;;;;175720:147;175943:10;175924:30;::::0;;;:18:::1;:30;::::0;;;;;;;175955:13:::1;::::0;::::1;::::0;175924:62:::1;:45:::0;;::::1;::::0;;;;;;:62;;;;::::1;::::0;:45;;:62:::1;::::0;;;::::1;:::i;:::-;;;;;;;;176056:6;176039:13;;:23;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;176108:9:0::1;::::0;-1:-1:-1;176103:124:0::1;176127:6;176123:1;:10;176103:124;;;176155:31;176161:10;176173:12;;176155:5;:31::i;:::-;176201:12;:14:::0;;;:12:::1;:14;::::0;::::1;:::i;:::-;::::0;;;-1:-1:-1;;176135:3:0::1;;176103:124;;;-1:-1:-1::0;176244:32:0::1;::::0;4089:25:1;;;176257:10:0::1;::::0;176244:32:::1;::::0;4077:2:1;4062:18;176244:32:0::1;;;;;;;174727:1557;;174603:1681:::0;;;:::o;116200:201::-;115180:13;:11;:13::i;:::-;-1:-1:-1;;;;;116289:22:0;::::1;116281:73;;;::::0;-1:-1:-1;;;116281:73:0;;21352:2:1;116281:73:0::1;::::0;::::1;21334:21:1::0;21391:2;21371:18;;;21364:30;21430:34;21410:18;;;21403:62;-1:-1:-1;;;21481:18:1;;;21474:36;21527:19;;116281:73:0::1;21150:402:1::0;116281:73:0::1;116365:28;116384:8;116365:18;:28::i;:::-;116200:201:::0;:::o;180386:316::-;180575:22;;-1:-1:-1;;;;;;15294:2:1;15290:15;;;15286:53;180575:22:0;;;15274:66:1;180533:4:0;;;;15356:12:1;;180575:22:0;;;;;;;;;;;;180565:33;;;;;;180550:48;;180629:65;180648:11;;180629:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;180661:15:0;;;;;:6;:15;;;;;:26;;-1:-1:-1;180689:4:0;;-1:-1:-1;180629:18:0;;-1:-1:-1;180629:65:0:i;:::-;180609:85;;;180386:316;;;;;;;:::o;132445:215::-;132547:4;-1:-1:-1;;;;;;132571:41:0;;-1:-1:-1;;;132571:41:0;;:81;;;132616:36;132640:11;132616:23;:36::i;130974:104::-;131057:13;:11;:13::i;135712:217::-;135816:48;135841:8;135851:12;135816:24;:48::i;:::-;135880:41;;-1:-1:-1;;;;;21719:39:1;;21701:58;;-1:-1:-1;;;;;135880:41:0;;;;;21689:2:1;21674:18;135880:41:0;21557:208:1;157431:135:0;151099:4;150697:16;;;:7;:16;;;;;;-1:-1:-1;;;;;150697:16:0;157505:53;;;;-1:-1:-1;;;157505:53:0;;19643:2:1;157505:53:0;;;19625:21:1;19682:2;19662:18;;;19655:30;-1:-1:-1;;;19701:18:1;;;19694:54;19765:18;;157505:53:0;19441:348:1;156710:174:0;156785:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;156785:29:0;-1:-1:-1;;;;;156785:29:0;;;;;;;;:24;;156839:23;156785:24;156839:14;:23::i;:::-;-1:-1:-1;;;;;156830:46:0;;;;;;;;;;;156710:174;;:::o;119441:108::-;119353:7;;-1:-1:-1;;;119353:7:0;;;;119511:9;119503:38;;;;-1:-1:-1;;;119503:38:0;;21972:2:1;119503:38:0;;;21954:21:1;22011:2;21991:18;;;21984:30;-1:-1:-1;;;22030:18:1;;;22023:46;22086:18;;119503:38:0;21770:340:1;85269:190:0;85394:4;85447;85418:25;85431:5;85438:4;85418:12;:25::i;:::-;:33;;85269:190;-1:-1:-1;;;;85269:190:0:o;152927:942::-;-1:-1:-1;;;;;153007:16:0;;152999:61;;;;-1:-1:-1;;;152999:61:0;;22317:2:1;152999:61:0;;;22299:21:1;;;22336:18;;;22329:30;22395:34;22375:18;;;22368:62;22447:18;;152999:61:0;22115:356:1;152999:61:0;151099:4;150697:16;;;:7;:16;;;;;;-1:-1:-1;;;;;150697:16:0;151123:31;153071:58;;;;-1:-1:-1;;;153071:58:0;;22678:2:1;153071:58:0;;;22660:21:1;22717:2;22697:18;;;22690:30;22756;22736:18;;;22729:58;22804:18;;153071:58:0;22476:352:1;153071:58:0;153142:48;153171:1;153175:2;153179:7;153188:1;153142:20;:48::i;:::-;151099:4;150697:16;;;:7;:16;;;;;;-1:-1:-1;;;;;150697:16:0;151123:31;153280:58;;;;-1:-1:-1;;;153280:58:0;;22678:2:1;153280:58:0;;;22660:21:1;22717:2;22697:18;;;22690:30;22756;22736:18;;;22729:58;22804:18;;153280:58:0;22476:352:1;153280:58:0;-1:-1:-1;;;;;153687:13:0;;;;;;:9;:13;;;;;;;;:18;;153704:1;153687:18;;;153729:16;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;153729:21:0;;;;;153768:33;153737:7;;153687:13;;153768:33;;153687:13;;153768:33;153814:47;153842:1;153846:2;153850:7;153859:1;153814:19;:47::i;151329:264::-;151422:4;151439:13;151455:23;151470:7;151455:14;:23::i;:::-;151439:39;;151508:5;-1:-1:-1;;;;;151497:16:0;:7;-1:-1:-1;;;;;151497:16:0;;:52;;;;151517:32;151534:5;151541:7;151517:16;:32::i;:::-;151497:87;;;;151577:7;-1:-1:-1;;;;;151553:31:0;:20;151565:7;151553:11;:20::i;:::-;-1:-1:-1;;;;;151553:31:0;;151489:96;151329:264;-1:-1:-1;;;;151329:264:0:o;155328:1263::-;155487:4;-1:-1:-1;;;;;155460:31:0;:23;155475:7;155460:14;:23::i;:::-;-1:-1:-1;;;;;155460:31:0;;155452:81;;;;-1:-1:-1;;;155452:81:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;155552:16:0;;155544:65;;;;-1:-1:-1;;;155544:65:0;;23441:2:1;155544:65:0;;;23423:21:1;23480:2;23460:18;;;23453:30;23519:34;23499:18;;;23492:62;-1:-1:-1;;;23570:18:1;;;23563:34;23614:19;;155544:65:0;23239:400:1;155544:65:0;155622:42;155643:4;155649:2;155653:7;155662:1;155622:20;:42::i;:::-;155794:4;-1:-1:-1;;;;;155767:31:0;:23;155782:7;155767:14;:23::i;:::-;-1:-1:-1;;;;;155767:31:0;;155759:81;;;;-1:-1:-1;;;155759:81:0;;;;;;;:::i;:::-;155912:24;;;;:15;:24;;;;;;;;155905:31;;-1:-1:-1;;;;;;155905:31:0;;;;;;-1:-1:-1;;;;;156388:15:0;;;;;;:9;:15;;;;;:20;;-1:-1:-1;;156388:20:0;;;156423:13;;;;;;;;;:18;;155905:31;156423:18;;;156463:16;;;:7;:16;;;;;;:21;;;;;;;;;;156502:27;;155928:7;;156502:27;;;156542:41;156562:4;156568:2;156572:7;156581:1;156542:19;:41::i;120137:120::-;119146:16;:14;:16::i;:::-;120196:7:::1;:15:::0;;-1:-1:-1;;;;120196:15:0::1;::::0;;120227:22:::1;83935:10:::0;120236:12:::1;120227:22;::::0;-1:-1:-1;;;;;178:32:1;;;160:51;;148:2;133:18;120227:22:0::1;;;;;;;120137:120::o:0;135937:246::-;136056:55;136079:7;136088:8;136098:12;136056:22;:55::i;:::-;136127:48;;-1:-1:-1;;;;;21719:39:1;;21701:58;;-1:-1:-1;;;;;136127:48:0;;;136143:7;;136127:48;;21689:2:1;21674:18;136127:48:0;;;;;;;;135937:246;;;:::o;115459:132::-;115367:6;;-1:-1:-1;;;;;115367:6:0;83935:10;115523:23;115515:68;;;;-1:-1:-1;;;115515:68:0;;23846:2:1;115515:68:0;;;23828:21:1;;;23865:18;;;23858:30;23924:34;23904:18;;;23897:62;23976:18;;115515:68:0;23644:356:1;116561:191:0;116654:6;;;-1:-1:-1;;;;;116671:17:0;;;-1:-1:-1;;;;;;116671:17:0;;;;;;;116704:40;;116654:6;;;116671:17;116654:6;;116704:40;;116635:16;;116704:40;116624:128;116561:191;:::o;119878:118::-;118887:19;:17;:19::i;:::-;119938:7:::1;:14:::0;;-1:-1:-1;;;;119938:14:0::1;-1:-1:-1::0;;;119938:14:0::1;::::0;;119968:20:::1;119975:12;83935:10:::0;;83855:98;157027:315;157182:8;-1:-1:-1;;;;;157173:17:0;:5;-1:-1:-1;;;;;157173:17:0;;157165:55;;;;-1:-1:-1;;;157165:55:0;;24207:2:1;157165:55:0;;;24189:21:1;24246:2;24226:18;;;24219:30;24285:27;24265:18;;;24258:55;24330:18;;157165:55:0;24005:349:1;157165:55:0;-1:-1:-1;;;;;157231:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;157231:46:0;;;;;;;;;;157293:41;;748::1;;;157293::0;;721:18:1;157293:41:0;608:187:1;150177:313:0;150333:28;150343:4;150349:2;150353:7;150333:9;:28::i;:::-;150380:47;150403:4;150409:2;150413:7;150422:4;150380:22;:47::i;:::-;150372:110;;;;-1:-1:-1;;;150372:110:0;;;;;;;:::i;182029:105::-;182081:13;182114:12;182107:19;;;;;:::i;125748:716::-;125804:13;125855:14;125872:17;125883:5;125872:10;:17::i;:::-;125892:1;125872:21;125855:38;;125908:20;125942:6;-1:-1:-1;;;;;125931:18:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;125931:18:0;-1:-1:-1;125908:41:0;-1:-1:-1;126073:28:0;;;126089:2;126073:28;126130:288;-1:-1:-1;;126162:5:0;-1:-1:-1;;;126299:2:0;126288:14;;126283:30;126162:5;126270:44;126360:2;126351:11;;;-1:-1:-1;126381:21:0;126130:288;126381:21;-1:-1:-1;126439:6:0;125748:716;-1:-1:-1;;;125748:716:0:o;164468:289::-;164553:4;-1:-1:-1;;;;;;164587:46:0;;-1:-1:-1;;;164587:46:0;;:112;;-1:-1:-1;;;;;;;164647:52:0;;-1:-1:-1;;;164647:52:0;164587:112;:162;;;;164713:36;164737:11;164713:23;:36::i;133807:332::-;133523:5;-1:-1:-1;;;;;133910:33:0;;;;133902:88;;;;-1:-1:-1;;;133902:88:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;134009:22:0;;134001:60;;;;-1:-1:-1;;;134001:60:0;;25391:2:1;134001:60:0;;;25373:21:1;25430:2;25410:18;;;25403:30;25469:27;25449:18;;;25442:55;25514:18;;134001:60:0;25189:349:1;134001:60:0;134096:35;;;;;;;;;-1:-1:-1;;;;;134096:35:0;;;;;;-1:-1:-1;;;;;134096:35:0;;;;;;;;;;-1:-1:-1;;;134074:57:0;;;;:19;:57;133807:332::o;86136:296::-;86219:7;86262:4;86219:7;86277:118;86301:5;:12;86297:1;:16;86277:118;;;86350:33;86360:12;86374:5;86380:1;86374:8;;;;;;;;:::i;:::-;;;;;;;86350:9;:33::i;:::-;86335:48;-1:-1:-1;86315:3:0;;86277:118;;;-1:-1:-1;86412:12:0;86136:296;-1:-1:-1;;;86136:296:0:o;165303:354::-;165479:9;165474:176;165498:9;165494:1;:13;165474:176;;;165525:51;165549:4;165555:2;165559:16;165574:1;165559:12;:16;:::i;:::-;165525:23;:51::i;:::-;165620:3;;165474:176;;;;165303:354;;;;:::o;165770:352::-;165945:9;165940:175;165964:9;165960:1;:13;165940:175;;;165991:50;166014:4;166020:2;166024:16;166039:1;166024:12;:16;:::i;:::-;165991:22;:50::i;:::-;166085:3;;165940:175;;119626:108;119353:7;;-1:-1:-1;;;119353:7:0;;;;119685:41;;;;-1:-1:-1;;;119685:41:0;;25745:2:1;119685:41:0;;;25727:21:1;25784:2;25764:18;;;25757:30;-1:-1:-1;;;25803:18:1;;;25796:50;25863:18;;119685:41:0;25543:344:1;134590:390:0;133523:5;-1:-1:-1;;;;;134742:33:0;;;;134734:88;;;;-1:-1:-1;;;134734:88:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;134841:22:0;;134833:62;;;;-1:-1:-1;;;134833:62:0;;26094:2:1;134833:62:0;;;26076:21:1;26133:2;26113:18;;;26106:30;26172:29;26152:18;;;26145:57;26219:18;;134833:62:0;25892:351:1;134833:62:0;134937:35;;;;;;;;-1:-1:-1;;;;;134937:35:0;;;;;-1:-1:-1;;;;;134937:35:0;;;;;;;;;;-1:-1:-1;134908:26:0;;;:17;:26;;;;;;:64;;;;;;;-1:-1:-1;;;134908:64:0;;;;;;134590:390::o;158130:853::-;158284:4;-1:-1:-1;;;;;158305:13:0;;75298:19;:23;158301:675;;158341:71;;-1:-1:-1;;;158341:71:0;;-1:-1:-1;;;;;158341:36:0;;;;;:71;;83935:10;;158392:4;;158398:7;;158407:4;;158341:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;158341:71:0;;;;;;;;-1:-1:-1;;158341:71:0;;;;;;;;;;;;:::i;:::-;;;158337:584;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;158582:6;:13;158599:1;158582:18;158578:328;;158625:60;;-1:-1:-1;;;158625:60:0;;;;;;;:::i;158578:328::-;158856:6;158850:13;158841:6;158837:2;158833:15;158826:38;158337:584;-1:-1:-1;;;;;;158463:51:0;-1:-1:-1;;;158463:51:0;;-1:-1:-1;158456:58:0;;158301:675;-1:-1:-1;158960:4:0;158953:11;;104652:922;104705:7;;-1:-1:-1;;;104783:15:0;;104779:102;;-1:-1:-1;;;104819:15:0;;;-1:-1:-1;104863:2:0;104853:12;104779:102;104908:6;104899:5;:15;104895:102;;104944:6;104935:15;;;-1:-1:-1;104979:2:0;104969:12;104895:102;105024:6;105015:5;:15;105011:102;;105060:6;105051:15;;;-1:-1:-1;105095:2:0;105085:12;105011:102;105140:5;105131;:14;105127:99;;105175:5;105166:14;;;-1:-1:-1;105209:1:0;105199:11;105127:99;105253:5;105244;:14;105240:99;;105288:5;105279:14;;;-1:-1:-1;105322:1:0;105312:11;105240:99;105366:5;105357;:14;105353:99;;105401:5;105392:14;;;-1:-1:-1;105435:1:0;105425:11;105353:99;105479:5;105470;:14;105466:66;;105515:1;105505:11;105560:6;104652:922;-1:-1:-1;;104652:922:0:o;145172:305::-;145274:4;-1:-1:-1;;;;;;145311:40:0;;-1:-1:-1;;;145311:40:0;;:105;;-1:-1:-1;;;;;;;145368:48:0;;-1:-1:-1;;;145368:48:0;145311:105;:158;;;-1:-1:-1;;;;;;;;;;128592:40:0;;;145433:36;128483:157;93176:149;93239:7;93270:1;93266;:5;:51;;93401:13;93495:15;;;93531:4;93524:15;;;93578:4;93562:21;;93266:51;;;-1:-1:-1;93401:13:0;93495:15;;;93531:4;93524:15;93578:4;93562:21;;;93176:149::o;108539:623::-;-1:-1:-1;;;;;108666:18:0;;;;;108716:16;;;108666:18;108748:32;;;;;108767:13;108748:32;108745:410;;;108804:28;;-1:-1:-1;;;108804:28:0;;;;;;;;;;;108745:410;108853:15;108850:305;;;108885:54;108850:305;;;108960:13;108990:56;108957:198;109079:64;83935:10;109114:4;109120:2;109124:7;109133:9;109079:20;:64::i;109295:625::-;-1:-1:-1;;;;;109421:18:0;;;;;109471:16;;;109421:18;109503:32;;;;;109522:13;109503:32;109500:413;;;109559:28;;-1:-1:-1;;;109559:28:0;;;;;;;;;;;109500:413;109608:15;109640:55;109605:308;109716:13;109746:57;109713:200;109836:65;116200:201::o;141598:472::-;141793:17;141813:22;:20;:22::i;:::-;141793:42;-1:-1:-1;;;;;;141852:23:0;;;141848:215;;-1:-1:-1;;;;;141896:23:0;;:10;:23;141892:70;;141940:7;;;141892:70;141978:73;;-1:-1:-1;;;141978:73:0;;-1:-1:-1;;;;;27241:32:1;;;141978:73:0;;;27223:51:1;27310:32;;;27290:18;;;27283:60;27379:32;;;27359:18;;;27352:60;27428:18;;;27421:34;;;141978:46:0;;;;;27195:19:1;;141978:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;141848:215;141782:288;141598:472;;;;;:::o;222:131:1:-;-1:-1:-1;;;;;;296:32:1;;286:43;;276:71;;343:1;340;333:12;358:245;416:6;469:2;457:9;448:7;444:23;440:32;437:52;;;485:1;482;475:12;437:52;524:9;511:23;543:30;567:5;543:30;:::i;800:131::-;-1:-1:-1;;;;;875:31:1;;865:42;;855:70;;921:1;918;911:12;936:179;1003:20;;-1:-1:-1;;;;;1052:38:1;;1042:49;;1032:77;;1105:1;1102;1095:12;1032:77;936:179;;;:::o;1120:319::-;1187:6;1195;1248:2;1236:9;1227:7;1223:23;1219:32;1216:52;;;1264:1;1261;1254:12;1216:52;1303:9;1290:23;1322:31;1347:5;1322:31;:::i;:::-;1372:5;-1:-1:-1;1396:37:1;1429:2;1414:18;;1396:37;:::i;:::-;1386:47;;1120:319;;;;;:::o;1524:767::-;1664:4;1706:3;1695:9;1691:19;1683:27;;1743:6;1737:13;1726:9;1719:32;-1:-1:-1;;;;;1811:4:1;1803:6;1799:17;1793:24;1789:57;1782:4;1771:9;1767:20;1760:87;-1:-1:-1;;;;;1907:4:1;1899:6;1895:17;1889:24;1885:49;1878:4;1867:9;1863:20;1856:79;-1:-1:-1;;;;;1995:4:1;1987:6;1983:17;1977:24;1973:49;1966:4;1955:9;1951:20;1944:79;2091:4;2083;2075:6;2071:17;2065:24;2061:35;2054:4;2043:9;2039:20;2032:65;2165:4;2157;2149:6;2145:17;2139:24;2135:35;2128:4;2117:9;2113:20;2106:65;2218:4;2210:6;2206:17;2200:24;2233:52;2279:4;2268:9;2264:20;2250:12;1511:4;1500:16;1488:29;;1444:75;2233:52;;1524:767;;;;:::o;2296:250::-;2381:1;2391:113;2405:6;2402:1;2399:13;2391:113;;;2481:11;;;2475:18;2462:11;;;2455:39;2427:2;2420:10;2391:113;;;-1:-1:-1;;2538:1:1;2520:16;;2513:27;2296:250::o;2551:271::-;2593:3;2631:5;2625:12;2658:6;2653:3;2646:19;2674:76;2743:6;2736:4;2731:3;2727:14;2720:4;2713:5;2709:16;2674:76;:::i;:::-;2804:2;2783:15;-1:-1:-1;;2779:29:1;2770:39;;;;2811:4;2766:50;;2551:271;-1:-1:-1;;2551:271:1:o;2827:220::-;2976:2;2965:9;2958:21;2939:4;2996:45;3037:2;3026:9;3022:18;3014:6;2996:45;:::i;3052:226::-;3111:6;3164:2;3152:9;3143:7;3139:23;3135:32;3132:52;;;3180:1;3177;3170:12;3132:52;-1:-1:-1;3225:23:1;;3052:226;-1:-1:-1;3052:226:1:o;3283:367::-;3351:6;3359;3412:2;3400:9;3391:7;3387:23;3383:32;3380:52;;;3428:1;3425;3418:12;3380:52;3467:9;3454:23;3486:31;3511:5;3486:31;:::i;:::-;3536:5;3614:2;3599:18;;;;3586:32;;-1:-1:-1;;;3283:367:1:o;4125:156::-;4191:20;;4251:4;4240:16;;4230:27;;4220:55;;4271:1;4268;4261:12;4286:171;4353:20;;-1:-1:-1;;;;;4402:30:1;;4392:41;;4382:69;;4447:1;4444;4437:12;4462:610;4566:6;4574;4582;4590;4598;4606;4614;4667:3;4655:9;4646:7;4642:23;4638:33;4635:53;;;4684:1;4681;4674:12;4635:53;4707:27;4724:9;4707:27;:::i;:::-;4697:37;;4781:2;4770:9;4766:18;4753:32;4743:42;;4804:37;4837:2;4826:9;4822:18;4804:37;:::i;:::-;4794:47;;4860:37;4893:2;4882:9;4878:18;4860:37;:::i;:::-;4850:47;;4916:38;4949:3;4938:9;4934:19;4916:38;:::i;:::-;4906:48;;4973:37;5005:3;4994:9;4990:19;4973:37;:::i;:::-;4963:47;;5029:37;5061:3;5050:9;5046:19;5029:37;:::i;:::-;5019:47;;4462:610;;;;;;;;;;:::o;5077:367::-;5140:8;5150:6;5204:3;5197:4;5189:6;5185:17;5181:27;5171:55;;5222:1;5219;5212:12;5171:55;-1:-1:-1;5245:20:1;;-1:-1:-1;;;;;5277:30:1;;5274:50;;;5320:1;5317;5310:12;5274:50;5357:4;5349:6;5345:17;5333:29;;5417:3;5410:4;5400:6;5397:1;5393:14;5385:6;5381:27;5377:38;5374:47;5371:67;;;5434:1;5431;5424:12;5449:768;5571:6;5579;5587;5595;5648:2;5636:9;5627:7;5623:23;5619:32;5616:52;;;5664:1;5661;5654:12;5616:52;5704:9;5691:23;-1:-1:-1;;;;;5729:6:1;5726:30;5723:50;;;5769:1;5766;5759:12;5723:50;5808:70;5870:7;5861:6;5850:9;5846:22;5808:70;:::i;:::-;5897:8;;-1:-1:-1;5782:96:1;-1:-1:-1;;5985:2:1;5970:18;;5957:32;-1:-1:-1;;;;;6001:32:1;;5998:52;;;6046:1;6043;6036:12;5998:52;6085:72;6149:7;6138:8;6127:9;6123:24;6085:72;:::i;:::-;5449:768;;;;-1:-1:-1;6176:8:1;-1:-1:-1;;;;5449:768:1:o;6222:508::-;6299:6;6307;6315;6368:2;6356:9;6347:7;6343:23;6339:32;6336:52;;;6384:1;6381;6374:12;6336:52;6423:9;6410:23;6442:31;6467:5;6442:31;:::i;:::-;6492:5;-1:-1:-1;6549:2:1;6534:18;;6521:32;6562:33;6521:32;6562:33;:::i;:::-;6222:508;;6614:7;;-1:-1:-1;;;6694:2:1;6679:18;;;;6666:32;;6222:508::o;6735:346::-;6803:6;6811;6864:2;6852:9;6843:7;6839:23;6835:32;6832:52;;;6880:1;6877;6870:12;6832:52;-1:-1:-1;;6925:23:1;;;7045:2;7030:18;;;7017:32;;-1:-1:-1;6735:346:1:o;7365:587::-;7436:6;7444;7497:2;7485:9;7476:7;7472:23;7468:32;7465:52;;;7513:1;7510;7503:12;7465:52;7553:9;7540:23;-1:-1:-1;;;;;7578:6:1;7575:30;7572:50;;;7618:1;7615;7608:12;7572:50;7641:22;;7694:4;7686:13;;7682:27;-1:-1:-1;7672:55:1;;7723:1;7720;7713:12;7672:55;7763:2;7750:16;-1:-1:-1;;;;;7781:6:1;7778:30;7775:50;;;7821:1;7818;7811:12;7775:50;7866:7;7861:2;7852:6;7848:2;7844:15;7840:24;7837:37;7834:57;;;7887:1;7884;7877:12;7834:57;7918:2;7910:11;;;;;7940:6;;-1:-1:-1;7365:587:1;-1:-1:-1;;;7365:587:1:o;7957:439::-;8033:6;8041;8049;8102:2;8090:9;8081:7;8077:23;8073:32;8070:52;;;8118:1;8115;8108:12;8070:52;8163:23;;;-1:-1:-1;8262:2:1;8247:18;;8234:32;8275:33;8234:32;8275:33;:::i;:::-;8327:7;-1:-1:-1;8353:37:1;8386:2;8371:18;;8353:37;:::i;:::-;8343:47;;7957:439;;;;;:::o;8401:182::-;8458:6;8511:2;8499:9;8490:7;8486:23;8482:32;8479:52;;;8527:1;8524;8517:12;8479:52;8550:27;8567:9;8550:27;:::i;9298:247::-;9357:6;9410:2;9398:9;9389:7;9385:23;9381:32;9378:52;;;9426:1;9423;9416:12;9378:52;9465:9;9452:23;9484:31;9509:5;9484:31;:::i;9550:160::-;9615:20;;9671:13;;9664:21;9654:32;;9644:60;;9700:1;9697;9690:12;9715:180;9771:6;9824:2;9812:9;9803:7;9799:23;9795:32;9792:52;;;9840:1;9837;9830:12;9792:52;9863:26;9879:9;9863:26;:::i;9900:317::-;9966:6;9974;10027:2;10015:9;10006:7;10002:23;9998:32;9995:52;;;10043:1;10040;10033:12;9995:52;10082:9;10069:23;10101:31;10126:5;10101:31;:::i;:::-;10151:5;-1:-1:-1;10175:36:1;10207:2;10192:18;;10175:36;:::i;10222:315::-;10287:6;10295;10348:2;10336:9;10327:7;10323:23;10319:32;10316:52;;;10364:1;10361;10354:12;10316:52;10403:9;10390:23;10422:31;10447:5;10422:31;:::i;:::-;10472:5;-1:-1:-1;10496:35:1;10527:2;10512:18;;10496:35;:::i;10542:127::-;10603:10;10598:3;10594:20;10591:1;10584:31;10634:4;10631:1;10624:15;10658:4;10655:1;10648:15;10674:1341;10769:6;10777;10785;10793;10846:3;10834:9;10825:7;10821:23;10817:33;10814:53;;;10863:1;10860;10853:12;10814:53;10902:9;10889:23;10921:31;10946:5;10921:31;:::i;:::-;10971:5;-1:-1:-1;11028:2:1;11013:18;;11000:32;11041:33;11000:32;11041:33;:::i;:::-;11093:7;-1:-1:-1;11173:2:1;11158:18;;11145:32;;-1:-1:-1;11254:2:1;11239:18;;11226:32;-1:-1:-1;;;;;11270:30:1;;11267:50;;;11313:1;11310;11303:12;11267:50;11336:22;;11389:4;11381:13;;11377:27;-1:-1:-1;11367:55:1;;11418:1;11415;11408:12;11367:55;11458:2;11445:16;-1:-1:-1;;;;;11476:6:1;11473:30;11470:56;;;11506:18;;:::i;:::-;11555:2;11549:9;11647:2;11609:17;;-1:-1:-1;;11605:31:1;;;11638:2;11601:40;11597:54;11585:67;;-1:-1:-1;;;;;11667:34:1;;11703:22;;;11664:62;11661:88;;;11729:18;;:::i;:::-;11765:2;11758:22;11789;;;11830:15;;;11847:2;11826:24;11823:37;-1:-1:-1;11820:57:1;;;11873:1;11870;11863:12;11820:57;11929:6;11924:2;11920;11916:11;11911:2;11903:6;11899:15;11886:50;11982:1;11977:2;11968:6;11960;11956:19;11952:28;11945:39;12003:6;11993:16;;;;;10674:1341;;;;;;;:::o;12020:388::-;12088:6;12096;12149:2;12137:9;12128:7;12124:23;12120:32;12117:52;;;12165:1;12162;12155:12;12117:52;12204:9;12191:23;12223:31;12248:5;12223:31;:::i;:::-;12273:5;-1:-1:-1;12330:2:1;12315:18;;12302:32;12343:33;12302:32;12343:33;:::i;:::-;12395:7;12385:17;;;12020:388;;;;;:::o;12413:551::-;12508:6;12516;12524;12577:2;12565:9;12556:7;12552:23;12548:32;12545:52;;;12593:1;12590;12583:12;12545:52;12638:23;;;-1:-1:-1;12736:2:1;12721:18;;12708:32;-1:-1:-1;;;;;12752:30:1;;12749:50;;;12795:1;12792;12785:12;12749:50;12834:70;12896:7;12887:6;12876:9;12872:22;12834:70;:::i;:::-;12413:551;;12923:8;;-1:-1:-1;12808:96:1;;-1:-1:-1;;;;12413:551:1:o;12969:642::-;13071:6;13079;13087;13095;13148:2;13136:9;13127:7;13123:23;13119:32;13116:52;;;13164:1;13161;13154:12;13116:52;13187:27;13204:9;13187:27;:::i;:::-;13177:37;;13264:2;13253:9;13249:18;13236:32;13277:31;13302:5;13277:31;:::i;:::-;13327:5;-1:-1:-1;13383:2:1;13368:18;;13355:32;-1:-1:-1;;;;;13399:30:1;;13396:50;;;13442:1;13439;13432:12;13616:127;13677:10;13672:3;13668:20;13665:1;13658:31;13708:4;13705:1;13698:15;13732:4;13729:1;13722:15;13748:175;13785:3;13829:4;13822:5;13818:16;13858:4;13849:7;13846:17;13843:43;;13866:18;;:::i;:::-;13915:1;13902:15;;13748:175;-1:-1:-1;;13748:175:1:o;13928:380::-;14007:1;14003:12;;;;14050;;;14071:61;;14125:4;14117:6;14113:17;14103:27;;14071:61;14178:2;14170:6;14167:14;14147:18;14144:38;14141:161;;14224:10;14219:3;14215:20;14212:1;14205:31;14259:4;14256:1;14249:15;14287:4;14284:1;14277:15;14141:161;;13928:380;;;:::o;15379:168::-;15452:9;;;15483;;15500:15;;;15494:22;;15480:37;15470:71;;15521:18;;:::i;15552:125::-;15617:9;;;15638:10;;;15635:36;;;15651:18;;:::i;15682:127::-;15743:10;15738:3;15734:20;15731:1;15724:31;15774:4;15771:1;15764:15;15798:4;15795:1;15788:15;15814:251;15884:6;15937:2;15925:9;15916:7;15912:23;15908:32;15905:52;;;15953:1;15950;15943:12;15905:52;15985:9;15979:16;16004:31;16029:5;16004:31;:::i;16070:357::-;16241:3;-1:-1:-1;;;;;16262:31:1;;16259:51;;;16306:1;16303;16296:12;16259:51;16340:6;16337:1;16333:14;16382:6;16374;16369:3;16356:33;16405:16;;;;;16070:357;-1:-1:-1;;;16070:357:1:o;16432:409::-;16634:2;16616:21;;;16673:2;16653:18;;;16646:30;16712:34;16707:2;16692:18;;16685:62;-1:-1:-1;;;16778:2:1;16763:18;;16756:43;16831:3;16816:19;;16432:409::o;16978:217::-;17018:1;17044;17034:132;;17088:10;17083:3;17079:20;17076:1;17069:31;17123:4;17120:1;17113:15;17151:4;17148:1;17141:15;17034:132;-1:-1:-1;17180:9:1;;16978:217::o;17536:518::-;17638:2;17633:3;17630:11;17627:421;;;17674:5;17671:1;17664:16;17718:4;17715:1;17705:18;17788:2;17776:10;17772:19;17769:1;17765:27;17759:4;17755:38;17824:4;17812:10;17809:20;17806:47;;;-1:-1:-1;17847:4:1;17806:47;17902:2;17897:3;17893:12;17890:1;17886:20;17880:4;17876:31;17866:41;;17957:81;17975:2;17968:5;17965:13;17957:81;;;18034:1;18020:16;;18001:1;17990:13;17957:81;;18230:1206;-1:-1:-1;;;;;18349:3:1;18346:27;18343:53;;;18376:18;;:::i;:::-;18405:94;18495:3;18455:38;18487:4;18481:11;18455:38;:::i;:::-;18449:4;18405:94;:::i;:::-;18525:1;18550:2;18545:3;18542:11;18567:1;18562:616;;;;19222:1;19239:3;19236:93;;;-1:-1:-1;19295:19:1;;;19282:33;19236:93;-1:-1:-1;;18187:1:1;18183:11;;;18179:24;18175:29;18165:40;18211:1;18207:11;;;18162:57;19342:78;;18535:895;;18562:616;17483:1;17476:14;;;17520:4;17507:18;;-1:-1:-1;;18598:17:1;;;18699:9;18721:229;18735:7;18732:1;18729:14;18721:229;;;18824:19;;;18811:33;18796:49;;18931:4;18916:20;;;;18884:1;18872:14;;;;18751:12;18721:229;;;18725:3;18978;18969:7;18966:16;18963:159;;;19102:1;19098:6;19092:3;19086;19083:1;19079:11;19075:21;19071:34;19067:39;19054:9;19049:3;19045:19;19032:33;19028:79;19020:6;19013:95;18963:159;;;19165:1;19159:3;19156:1;19152:11;19148:19;19142:4;19135:33;18535:895;;18230:1206;;;:::o;20509:496::-;20688:3;20726:6;20720:13;20742:66;20801:6;20796:3;20789:4;20781:6;20777:17;20742:66;:::i;:::-;20871:13;;20830:16;;;;20893:70;20871:13;20830:16;20940:4;20928:17;;20893:70;:::i;:::-;20979:20;;20509:496;-1:-1:-1;;;;20509:496:1:o;21010:135::-;21049:3;21070:17;;;21067:43;;21090:18;;:::i;:::-;-1:-1:-1;21137:1:1;21126:13;;21010:135::o;22833:401::-;23035:2;23017:21;;;23074:2;23054:18;;;23047:30;23113:34;23108:2;23093:18;;23086:62;-1:-1:-1;;;23179:2:1;23164:18;;23157:35;23224:3;23209:19;;22833:401::o;24359:414::-;24561:2;24543:21;;;24600:2;24580:18;;;24573:30;24639:34;24634:2;24619:18;;24612:62;-1:-1:-1;;;24705:2:1;24690:18;;24683:48;24763:3;24748:19;;24359:414::o;24778:406::-;24980:2;24962:21;;;25019:2;24999:18;;;24992:30;25058:34;25053:2;25038:18;;25031:62;-1:-1:-1;;;25124:2:1;25109:18;;25102:40;25174:3;25159:19;;24778:406::o;26248:485::-;-1:-1:-1;;;;;26479:32:1;;;26461:51;;26548:32;;26543:2;26528:18;;26521:60;26612:2;26597:18;;26590:34;;;26660:3;26655:2;26640:18;;26633:31;;;-1:-1:-1;;26681:46:1;;26707:19;;26699:6;26681:46;:::i;:::-;26673:54;26248:485;-1:-1:-1;;;;;;26248:485:1:o;26738:249::-;26807:6;26860:2;26848:9;26839:7;26835:23;26831:32;26828:52;;;26876:1;26873;26866:12;26828:52;26908:9;26902:16;26927:30;26951:5;26927:30;:::i
Swarm Source
ipfs://c6f4e58cd39f0214d25b0823b1c4ebdcb1d9785b4b5f3546d069c7f8d591557e
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.