Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 3,614 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 21438954 | 8 days ago | IN | 0 ETH | 0.00383164 | ||||
Set Approval For... | 21257117 | 34 days ago | IN | 0 ETH | 0.00060265 | ||||
Set Approval For... | 20782175 | 100 days ago | IN | 0 ETH | 0.00042984 | ||||
Set Approval For... | 20602839 | 125 days ago | IN | 0 ETH | 0.0000452 | ||||
Set Approval For... | 20581610 | 128 days ago | IN | 0 ETH | 0.00007063 | ||||
Set Approval For... | 20388663 | 155 days ago | IN | 0 ETH | 0.00012076 | ||||
Safe Transfer Fr... | 20347264 | 161 days ago | IN | 0 ETH | 0.00026489 | ||||
Set Approval For... | 20322965 | 164 days ago | IN | 0 ETH | 0.00032402 | ||||
Set Approval For... | 20180828 | 184 days ago | IN | 0 ETH | 0.00038524 | ||||
Set Approval For... | 20053204 | 202 days ago | IN | 0 ETH | 0.00028524 | ||||
Set Approval For... | 19952488 | 216 days ago | IN | 0 ETH | 0.00019691 | ||||
Set Approval For... | 19894057 | 224 days ago | IN | 0 ETH | 0.00020533 | ||||
Set Approval For... | 19803096 | 237 days ago | IN | 0 ETH | 0.0003642 | ||||
Set Approval For... | 19779581 | 240 days ago | IN | 0 ETH | 0.00020124 | ||||
Set Approval For... | 19771692 | 241 days ago | IN | 0 ETH | 0.0004062 | ||||
Set Approval For... | 19763548 | 242 days ago | IN | 0 ETH | 0.00029757 | ||||
Set Approval For... | 19597073 | 266 days ago | IN | 0 ETH | 0.00086988 | ||||
Set Approval For... | 19537627 | 274 days ago | IN | 0 ETH | 0.00083217 | ||||
Set Approval For... | 19474658 | 283 days ago | IN | 0 ETH | 0.00178558 | ||||
Set Approval For... | 19367900 | 298 days ago | IN | 0 ETH | 0.00398764 | ||||
Set Approval For... | 19330866 | 303 days ago | IN | 0 ETH | 0.00270437 | ||||
Set Approval For... | 19297994 | 308 days ago | IN | 0 ETH | 0.00180327 | ||||
Set Approval For... | 19270095 | 312 days ago | IN | 0 ETH | 0.00228579 | ||||
Safe Transfer Fr... | 19159898 | 327 days ago | IN | 0 ETH | 0.00057916 | ||||
Safe Transfer Fr... | 19159854 | 327 days ago | IN | 0 ETH | 0.0007741 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
17247643 | 595 days ago | 32.84 ETH |
Loading...
Loading
Contract Name:
BLBERC721A
Compiler Version
v0.8.18+commit.87f61d96
Optimization Enabled:
Yes with 1 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "./MGYERC721A.sol"; contract BLBERC721A is MGYERC721A{ constructor ( string memory _name, string memory _symbol ) MGYERC721A (_name,_symbol) { _extension = ".json"; operatorFilteringEnabled = true; } //disabled function setSBTMode(bool) external virtual override onlyOwner { } //widraw ETH from this contract.only owner. function withdraw() external payable override virtual onlyOwner nonReentrant { // This will payout the owner 100% of the contract balance. // Do not remove this otherwise you will not be able to withdraw the funds. // ============================================================================= address wallet = payable(0xE99073F2BA37B44f5CCCf4758b179485F3984d7f); bool os; (os, ) = payable(wallet).call{value: address(this).balance}(""); require(os); // ============================================================================= } //disabled for max code size exceeded function burnAndMint(uint256 _amount,uint256[] calldata _tokenids) external payable virtual override nonReentrant { } function burnAndMintWithGenesis(uint256 _amount,uint256[] calldata _tokenids,uint256[] calldata _tokenidGenesis) external payable virtual override nonReentrant { } function holdAndMint(uint256 _amount,uint256[] calldata _tokenids) external payable virtual override nonReentrant { } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions 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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.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]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol) pragma solidity ^0.8.0; /** * @dev Provides a set of functions to operate with Base64 strings. * * _Available since v4.5._ */ library Base64 { /** * @dev Base64 Encoding/Decoding Table */ string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /** * @dev Converts a `bytes` to its Bytes64 `string` representation. */ function encode(bytes memory data) internal pure returns (string memory) { /** * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol */ if (data.length == 0) return ""; // Loads the table into memory string memory table = _TABLE; // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter // and split into 4 numbers of 6 bits. // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up // - `data.length + 2` -> Round up // - `/ 3` -> Number of 3-bytes chunks // - `4 *` -> 4 characters for each chunk string memory result = new string(4 * ((data.length + 2) / 3)); /// @solidity memory-safe-assembly assembly { // Prepare the lookup table (skip the first "length" byte) let tablePtr := add(table, 1) // Prepare result pointer, jump over length let resultPtr := add(result, 32) // Run over the input, 3 bytes at a time for { let dataPtr := data let endPtr := add(data, mload(data)) } lt(dataPtr, endPtr) { } { // Advance 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // To write each character, shift the 3 bytes (18 bits) chunk // 4 times in blocks of 6 bits for each character (18, 12, 6, 0) // and apply logical AND with 0x3F which is the number of // the previous character in the ASCII table prior to the Base64 Table // The result is then added to the table to get the character to write, // and finally write it in the result pointer but with a left shift // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F)))) resultPtr := add(resultPtr, 1) // Advance } // When data `bytes` is not exactly 3 bytes long // it is padded with `=` characters at the end switch mod(mload(data), 3) case 1 { mstore8(sub(resultPtr, 1), 0x3d) mstore8(sub(resultPtr, 2), 0x3d) } case 2 { mstore8(sub(resultPtr, 1), 0x3d) } } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function 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) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @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); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.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); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /// @notice Optimized and flexible operator filterer to abide to OpenSea's /// mandatory on-chain royalty enforcement in order for new collections to /// receive royalties. /// For more information, see: /// See: https://github.com/ProjectOpenSea/operator-filter-registry abstract contract OperatorFilterer { /// @dev The default OpenSea operator blocklist subscription. address internal constant _DEFAULT_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6; /// @dev The OpenSea operator filter registry. address internal constant _OPERATOR_FILTER_REGISTRY = 0x000000000000AAeB6D7670E522A718067333cd4E; /// @dev Registers the current contract to OpenSea's operator filter, /// and subscribe to the default OpenSea operator blocklist. /// Note: Will not revert nor update existing settings for repeated registration. function _registerForOperatorFiltering() internal virtual { _registerForOperatorFiltering(_DEFAULT_SUBSCRIPTION, true); } /// @dev Registers the current contract to OpenSea's operator filter. /// Note: Will not revert nor update existing settings for repeated registration. function _registerForOperatorFiltering(address subscriptionOrRegistrantToCopy, bool subscribe) internal virtual { /// @solidity memory-safe-assembly assembly { let functionSelector := 0x7d3e3dbe // `registerAndSubscribe(address,address)`. // Clean the upper 96 bits of `subscriptionOrRegistrantToCopy` in case they are dirty. subscriptionOrRegistrantToCopy := shr(96, shl(96, subscriptionOrRegistrantToCopy)) for {} iszero(subscribe) {} { if iszero(subscriptionOrRegistrantToCopy) { functionSelector := 0x4420e486 // `register(address)`. break } functionSelector := 0xa0af2903 // `registerAndCopyEntries(address,address)`. break } // Store the function selector. mstore(0x00, shl(224, functionSelector)) // Store the `address(this)`. mstore(0x04, address()) // Store the `subscriptionOrRegistrantToCopy`. mstore(0x24, subscriptionOrRegistrantToCopy) // Register into the registry. if iszero(call(gas(), _OPERATOR_FILTER_REGISTRY, 0, 0x00, 0x44, 0x00, 0x04)) { // If the function selector has not been overwritten, // it is an out-of-gas error. if eq(shr(224, mload(0x00)), functionSelector) { // To prevent gas under-estimation. revert(0, 0) } } // Restore the part of the free memory pointer that was overwritten, // which is guaranteed to be zero, because of Solidity's memory size limits. mstore(0x24, 0) } } /// @dev Modifier to guard a function and revert if the caller is a blocked operator. modifier onlyAllowedOperator(address from) virtual { if (from != msg.sender) { if (!_isPriorityOperator(msg.sender)) { if (_operatorFilteringEnabled()) _revertIfBlocked(msg.sender); } } _; } /// @dev Modifier to guard a function from approving a blocked operator.. modifier onlyAllowedOperatorApproval(address operator) virtual { if (!_isPriorityOperator(operator)) { if (_operatorFilteringEnabled()) _revertIfBlocked(operator); } _; } /// @dev Helper function that reverts if the `operator` is blocked by the registry. function _revertIfBlocked(address operator) private view { /// @solidity memory-safe-assembly assembly { // Store the function selector of `isOperatorAllowed(address,address)`, // shifted left by 6 bytes, which is enough for 8tb of memory. // We waste 6-3 = 3 bytes to save on 6 runtime gas (PUSH1 0x224 SHL). mstore(0x00, 0xc6171134001122334455) // Store the `address(this)`. mstore(0x1a, address()) // Store the `operator`. mstore(0x3a, operator) // `isOperatorAllowed` always returns true if it does not revert. if iszero(staticcall(gas(), _OPERATOR_FILTER_REGISTRY, 0x16, 0x44, 0x00, 0x00)) { // Bubble up the revert if the staticcall reverts. returndatacopy(0x00, 0x00, returndatasize()) revert(0x00, returndatasize()) } // We'll skip checking if `from` is inside the blacklist. // Even though that can block transferring out of wrapper contracts, // we don't want tokens to be stuck. // Restore the part of the free memory pointer that was overwritten, // which is guaranteed to be zero, if less than 8tb of memory is used. mstore(0x3a, 0) } } /// @dev For deriving contracts to override, so that operator filtering /// can be turned on / off. /// Returns true by default. function _operatorFilteringEnabled() internal view virtual returns (bool) { return true; } /// @dev For deriving contracts to override, so that preferred marketplaces can /// skip operator filtering, helping users save gas. /// Returns false for all inputs by default. function _isPriorityOperator(address) internal view virtual returns (bool) { return false; } }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "./IERC4906.sol"; contract ERC4906 is ERC165, IERC4906 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return( interfaceId == bytes4(0x49064906) || super.supportsInterface(interfaceId) ); } }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.18; interface IERC4906 { /// @dev This event emits when the metadata of a token is changed. /// So that the third-party platforms such as NFT market could /// timely update the images and related attributes of the NFT. event MetadataUpdate(uint256 _tokenId); /// @dev This event emits when the metadata of a range of tokens is changed. /// So that the third-party platforms such as NFT market could /// timely update the images and related attributes of the NFTs. event BatchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId); }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "@openzeppelin/contracts/utils/Base64.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "erc721a/contracts/extensions/ERC4907A.sol"; import "closedsea/src/OperatorFilterer.sol"; import "./MGYREWARD.sol"; import "./ERC4906.sol"; contract MGYERC721A is Ownable,ERC4907A, ReentrancyGuard, ERC2981,OperatorFilterer,ERC4906{ //Project Settings uint256 public wlMintPrice;//wl.price. uint256 public wlMintPrice1;//wl1.price. uint256 public wlMintPrice2;//wl2.price. uint256 public psMintPrice;//publicSale. price. uint256 public bmMintPrice;//Burn&MintSale. price. uint256 public hmMintPrice;//Hold&MintSale. price. uint256 public maxMintsCapPerWL;//WhitelistSale.max mint cap per wallet. uint256 public maxMintsPerPS;//publicSale.max mint num per wallet. uint256 public maxMintsPerBM;//Burn&MintSale.max mint num per wallet. uint256 public maxMintsPerHM;//Hold&MintSale.max mint num per wallet. uint256 public otherContractCount;//Hold(burn)&MintSale must hold otherContract count. uint256 public otherContractCountGenesis;//burn&MintSale must hold otherContractGenesis count. uint256 public maxSupply;//max supply address payable internal _withdrawWallet;//withdraw wallet bool public isSBTEnabled;//SBT(can not transfer.only owner) mode enable. //URI mapping(uint256 => string) internal _revealUri;//by Season mapping(uint256 => string) internal _baseTokenURI;//by Season //flags bool public isWlEnabled;//WL enable. mapping(uint256 => bool) public isWlNumDisabled;//WL,1,2 disable. bool public isPsEnabled;//PublicSale enable. bool public isBmEnabled;//Burn&MintSale enable. bool public isHmEnabled;//Hold&MintSale enable. bool public isStakingEnabled;//Staking enable. mapping(uint256 => bool) internal _isRevealed;//reveal enable.by Season. //mint records. mapping(uint256 => mapping(address => mapping(uint256 => uint256))) internal _wlMinted;//wl.minted num by wallet.by Season.by reset index mapping(uint256 => mapping(address => mapping(uint256 => uint256))) internal _wlMinted1;//wl1.minted num by wallet.by Season.by reset index mapping(uint256 => mapping(address => mapping(uint256 => uint256))) internal _wlMinted2;//wl2.minted num by wallet.by Season.by reset index mapping(uint256 => mapping(address => uint256)) internal _psMinted;//PublicSale.mint num by wallet.by Season. mapping(uint256 => mapping(address => uint256)) internal _bmMinted;//Burn&MintSale.mint num by wallet.by Season. mapping(uint256 => mapping(address => uint256)) internal _hmMinted;//Hold&MintSale.mint num by wallet.by Season. mapping(uint256 => mapping(uint256 => bool)) internal _otherTokenidUsed;//Hold&MintSale.otherCOntract's tokenid used .by Season. uint256 internal _wlResetIndex; //_wlMinted value reset index. //Season value. uint256 internal _seasonCounter; //Season Counter. mapping(uint256 => uint256) public seasonStartTokenId;//Start tokenid by Season. //contract status.for UI/UX frontend. uint256 internal _contractStatus; //merkleRoot bytes32 internal _merkleRoot;//whitelist bytes32 internal _merkleRoot1;//whitelist1 bytes32 internal _merkleRoot2;//whitelist2 //custom token uri mapping(uint256 => string) internal _customTokenURI;//custom tokenURI by tokenid //metadata file extention string internal _extension; //otherContract address public otherContract;//with Burn&MintSale or Hold&Mint. MGYERC721A internal _otherContractFactory;//otherContract's factory address public otherContractGenesis;//with Burn&MintSaleWithGenesis. MGYERC721A internal _otherContractGenesisFactory;//otherContractGenesis's factory //staking mapping(uint256 => uint256) internal _stakingStartedTimestamp; // tokenId -> staking start time (0 = not staking). mapping(uint256 => uint256) internal _stakingTotalTime; // tokenId -> cumulative staking time, does not include current time if staking mapping(uint256 => uint256) internal _claimedLastTimestamp; // tokenId -> last claimed timestamp uint256 internal constant NULL_STAKED = 0; address public rewardContract;//reward contract address MGYREWARD internal _rewardContractFactory;//reward Contract's factory uint256 public stakingStartTimestamp;//staking start timestamp uint256 public stakingEndTimestamp;//staking end timestamp //Opensea Filter bool public operatorFilteringEnabled; constructor ( string memory _name, string memory _symbol ) ERC721A (_name,_symbol) { seasonStartTokenId[_seasonCounter] = _startTokenId(); _extension = ""; _registerForOperatorFiltering(); } //start from 1.adjust for bueno. function _startTokenId() internal view virtual override returns (uint256) { return 1; } //set Default Royalty._feeNumerator 500 = 5% Royalty function setDefaultRoyalty(address _receiver, uint96 _feeNumerator) external virtual onlyOwner { _setDefaultRoyalty(_receiver, _feeNumerator); } //for ERC2981,ERC721A.ERC4907A,ERC4906 function supportsInterface(bytes4 interfaceId) public view virtual override(ERC4907A, ERC2981, ERC4906) returns (bool) { return( ERC721A.supportsInterface(interfaceId) || ERC4907A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId) || ERC4906.supportsInterface(interfaceId) ); } //for ERC2981 Opensea function contractURI() external view virtual returns (string memory) { return _formatContractURI(); } //make contractURI function _formatContractURI() internal view returns (string memory) { (address receiver, uint256 royaltyFraction) = royaltyInfo(0,_feeDenominator());//tokenid=0 return string( abi.encodePacked( "data:application/json;base64,", Base64.encode( bytes( abi.encodePacked( '{"seller_fee_basis_points":', Strings.toString(royaltyFraction), ', "fee_recipient":"', Strings.toHexString(uint256(uint160(receiver)), 20), '"}' ) ) ) ) ); } //set owner's wallet.withdraw to this wallet.only owner. function setWithdrawWallet(address _owner) external virtual onlyOwner { _withdrawWallet = payable(_owner); } //set maxSupply.only owner. function setMaxSupply(uint256 _maxSupply) external virtual onlyOwner { require(totalSupply() <= _maxSupply, "Lower than _currentIndex."); maxSupply = _maxSupply; } //set wl price.only owner. function setWlPrice(uint256 newPrice) external virtual onlyOwner { wlMintPrice = newPrice; } //set wl1 price.only owner. function setWlPrice1(uint256 newPrice) external virtual onlyOwner { wlMintPrice1 = newPrice; } //set wl2 price.only owner. function setWlPrice2(uint256 newPrice) external virtual onlyOwner { wlMintPrice2 = newPrice; } //set public Sale price.only owner. function setPsPrice(uint256 newPrice) external virtual onlyOwner { psMintPrice = newPrice; } //set Burn&MintSale price.only owner. function setBmPrice(uint256 newPrice) external virtual onlyOwner { bmMintPrice = newPrice; } //set Hold&MintSale price.only owner. function setHmPrice(uint256 newPrice) external virtual onlyOwner { hmMintPrice = newPrice; } //set reveal.only owner.current season. function setReveal(bool bool_) external virtual onlyOwner { _isRevealed[_seasonCounter] = bool_; } //set reveal.only owner.by season. function setRevealBySeason(bool bool_,uint256 _season) external virtual onlyOwner { _isRevealed[_season] = bool_; } //return _isRevealed.current season. function isRevealed() external view virtual returns (bool){ return _isRevealed[_seasonCounter]; } //return _isRevealed.by season. function isRevealedBySeason(uint256 _season) external view virtual returns (bool){ return _isRevealed[_season]; } //return _wlMinted.current season. function wlMinted(address _address) external view virtual returns (uint256){ return _wlMinted[_seasonCounter][_address][_wlResetIndex]; } //return _wlMinted.by season. function wlMintedBySeason(address _address,uint256 _season) external view virtual returns (uint256){ return _wlMinted[_season][_address][_wlResetIndex]; } //return _wlMinted.current season. function wlMinted1(address _address) external view virtual returns (uint256){ return _wlMinted1[_seasonCounter][_address][_wlResetIndex]; } //return _wlMinted.by season. function wlMintedBySeason1(address _address,uint256 _season) external view virtual returns (uint256){ return _wlMinted1[_season][_address][_wlResetIndex]; } //return _wlMinted.current season. function wlMinted2(address _address) external view virtual returns (uint256){ return _wlMinted2[_seasonCounter][_address][_wlResetIndex]; } //return _wlMinted.by season. function wlMintedBySeason2(address _address,uint256 _season) external view virtual returns (uint256){ return _wlMinted2[_season][_address][_wlResetIndex]; } //return _psMinted.current season. function psMinted(address _address) external view virtual returns (uint256){ return _psMinted[_seasonCounter][_address]; } //return _psMinted.by season. function psMintedBySeason(address _address,uint256 _season) external view virtual returns (uint256){ return _psMinted[_season][_address]; } //return _bmMinted.current season. function bmMinted(address _address) external view virtual returns (uint256){ return _bmMinted[_seasonCounter][_address]; } //return _bmMinted.by season. function bmMintedBySeason(address _address,uint256 _season) external view virtual returns (uint256){ return _bmMinted[_season][_address]; } //return _hmMinted.current season. function hmMinted(address _address) external view virtual returns (uint256){ return _hmMinted[_seasonCounter][_address]; } //return _hmMinted.by season. function hmMintedBySeason(address _address,uint256 _season) external view virtual returns (uint256){ return _hmMinted[_season][_address]; } //set WhitelistSale's max mint Cap num.only owner. function setWlMaxMintsCap(uint256 _max) external virtual onlyOwner { maxMintsCapPerWL = _max; } //set PublicSale's max mint num.only owner. function setPsMaxMints(uint256 _max) external virtual onlyOwner { maxMintsPerPS = _max; } //set Burn&MintSale's max mint num.only owner. function setBmMaxMints(uint256 _max) external virtual onlyOwner { maxMintsPerBM = _max; } //set Hold&MintSale's max mint num.only owner. function setHmMaxMints(uint256 _max) external virtual onlyOwner { maxMintsPerHM = _max; } //set otherContract count with Hold(burn)&Mint.only owner. function setOtherContractCount(uint256 _count) external virtual onlyOwner { otherContractCount = _count; } //set _otherTokenidUsed with Hold&Mint.only owner. function setOtherTokenidUsed(uint256 _tokenId,bool bool_) external virtual onlyOwner { require(_otherContractFactory.ownerOf(_tokenId) != address(0), "nonexistent token"); _otherTokenidUsed[_seasonCounter][_tokenId] = bool_; } //set _otherTokenidUsed with Hold&Mint by season .only owner. function setOtherTokenidUsedBySeason(uint256 _tokenId,bool bool_,uint256 _season) external virtual onlyOwner { require(_otherContractFactory.ownerOf(_tokenId) != address(0), "nonexistent token"); _otherTokenidUsed[_season][_tokenId] = bool_; } //return _otherTokenidUsed function getOtherTokenidUsed(uint256 _tokenId) external view virtual returns (bool){ return _otherTokenidUsed[_seasonCounter][_tokenId]; } //return _otherTokenidUsed.by Season function getOtherTokenidUsedBySeason(uint256 _tokenId,uint256 _season) external view virtual returns (bool){ return _otherTokenidUsed[_season][_tokenId]; } //set WLsale.only owner. function setWhitelistSale(bool bool_) external virtual onlyOwner { isWlEnabled = bool_; } //set disable WLsale.only owner. function setDisabledPartWhitelistSale(uint256 _wlNum,bool bool_) external virtual onlyOwner { isWlNumDisabled[_wlNum] = bool_; } //set Publicsale.only owner. function setPublicSale(bool bool_) external virtual onlyOwner { isPsEnabled = bool_; } //set Burn&MintSale.only owner. function setBurnAndMintSale(bool bool_) external virtual onlyOwner { isBmEnabled = bool_; } //set Hold&MintSale.only owner. function setHoldAndMintSale(bool bool_) external virtual onlyOwner { isHmEnabled = bool_; } //set MerkleRoot.only owner. function setMerkleRoot(bytes32 merkleRoot_) external virtual onlyOwner { _merkleRoot = merkleRoot_; } //set MerkleRoot.only owner. function setMerkleRoot1(bytes32 merkleRoot_) external virtual onlyOwner { _merkleRoot1 = merkleRoot_; } //set MerkleRoot.only owner. function setMerkleRoot2(bytes32 merkleRoot_) external virtual onlyOwner { _merkleRoot2 = merkleRoot_; } //isWhitelisted function isWhitelisted(address address_, uint256 maxmint_, bytes32[] calldata proof_, bytes32[] calldata proof1_, bytes32[] calldata proof2_) external view virtual returns (bool) { (bool ret,) = _isWhitelisted(address_,maxmint_,proof_,proof1_,proof2_); return(ret); } function _isWhitelisted(address address_,uint256 maxmint_, bytes32[] calldata proof_, bytes32[] calldata proof1_, bytes32[] calldata proof2_) internal view returns (bool,uint256) { if(_hasWhitelistedOneWL(address_,maxmint_,_merkleRoot,proof_)) return(true,0); if(_hasWhitelistedOneWL(address_,maxmint_,_merkleRoot1,proof1_)) return(true,1); if(_hasWhitelistedOneWL(address_,maxmint_,_merkleRoot2,proof2_)) return(true,2); return(false,9999); } //get WL maxMints. function getWhitelistedMaxMints(address address_, uint256 maxmint_, bytes32[] calldata proof_, bytes32[] calldata proof1_, bytes32[] calldata proof2_) external view virtual returns (uint256) { return(_getWhitelistedMaxMints(address_, maxmint_, proof_, proof1_, proof2_)); } function _getWhitelistedMaxMints(address address_, uint256 maxmint_, bytes32[] calldata proof_, bytes32[] calldata proof1_, bytes32[] calldata proof2_) internal view returns (uint256) { if(_hasWhitelistedOneWL(address_,maxmint_,_merkleRoot,proof_)) return maxmint_; if(_hasWhitelistedOneWL(address_,maxmint_,_merkleRoot1,proof1_)) return maxmint_; if(_hasWhitelistedOneWL(address_,maxmint_,_merkleRoot2,proof2_)) return maxmint_; return 0; } //have you WL? function hasWhitelistedOneWL(address address_,uint256 maxmint_, bytes32[] calldata proof_) external view virtual returns (bool) { return(_hasWhitelistedOneWL(address_,maxmint_,_merkleRoot,proof_)); } function _hasWhitelistedOneWL(address address_,uint256 maxmint_,bytes32 root_, bytes32[] calldata proof_) internal view returns (bool) { if(maxmint_ > maxMintsCapPerWL)return false;//check exceed maxmint cap bytes32 _leaf = keccak256(abi.encodePacked(address_,maxmint_)); return(root_ != 0x0 && MerkleProof.verifyCalldata(proof_,root_,_leaf)); } //have you WL1? function hasWhitelistedOneWL1(address address_,uint256 maxmint_,bytes32[] calldata proof_) external view virtual returns (bool) { return(_hasWhitelistedOneWL(address_,maxmint_,_merkleRoot1,proof_)); } //have you WL2? function hasWhitelistedOneWL2(address address_,uint256 maxmint_,bytes32[] calldata proof_) external view virtual returns (bool) { return(_hasWhitelistedOneWL(address_,maxmint_,_merkleRoot2,proof_)); } //get WL price. function getWhitelistedPrice(address address_, uint256 maxmint_, bytes32[] calldata proof_, bytes32[] calldata proof1_, bytes32[] calldata proof2_) external view virtual returns (uint256) { return(_getWhitelistedPrice(address_, maxmint_, proof_, proof1_, proof2_)); } function _getWhitelistedPrice(address address_, uint256 maxmint_, bytes32[] calldata proof_, bytes32[] calldata proof1_, bytes32[] calldata proof2_) internal view returns (uint256) { if(_hasWhitelistedOneWL(address_,maxmint_,_merkleRoot,proof_)) return wlMintPrice; if(_hasWhitelistedOneWL(address_,maxmint_,_merkleRoot1,proof1_)) return wlMintPrice1; if(_hasWhitelistedOneWL(address_,maxmint_,_merkleRoot2,proof2_)) return wlMintPrice2; return 9999 ether; } //get WL all status function getWhitelistedStatus(uint256 wlNum_,address address_, uint256 maxmint_,bytes32[] calldata proof_) external view returns (bool,uint256,uint256,bool,uint256) { if(wlNum_ == 0){ if(_hasWhitelistedOneWL(address_,maxmint_,_merkleRoot,proof_)) return(isWlNumDisabled[0],wlMintPrice,_wlMinted[_seasonCounter][address_][_wlResetIndex],true,maxmint_); else return(isWlNumDisabled[0],wlMintPrice,_wlMinted[_seasonCounter][address_][_wlResetIndex],false,0); }else if(wlNum_ == 1){ if(_hasWhitelistedOneWL(address_,maxmint_,_merkleRoot1,proof_)) return(isWlNumDisabled[1],wlMintPrice1,_wlMinted1[_seasonCounter][address_][_wlResetIndex],true,maxmint_); else return(isWlNumDisabled[1],wlMintPrice1,_wlMinted1[_seasonCounter][address_][_wlResetIndex],false,0); }else if(wlNum_ == 2){ if(_hasWhitelistedOneWL(address_,maxmint_,_merkleRoot2,proof_))return(isWlNumDisabled[2],wlMintPrice2,_wlMinted2[_seasonCounter][address_][_wlResetIndex],true,maxmint_); else return(isWlNumDisabled[2],wlMintPrice2,_wlMinted2[_seasonCounter][address_][_wlResetIndex],false,0); } return (false, 0, 0, false, 0); } //set SBT mode Enable. only owner.Noone can transfer. only contract owner can transfer. function setSBTMode(bool bool_) external virtual onlyOwner { isSBTEnabled = bool_; } //override for SBT mode.only owner can transfer. or mint or burn. function _beforeTokenTransfers(address from_,address to_,uint256 startTokenId_,uint256 quantity_) internal virtual override { require(!isSBTEnabled || msg.sender == owner() || from_ == address(0) || to_ == address(0) ,"SBT mode Enabled: token transfer while paused."); //check tokenid transfer for (uint256 tokenId = startTokenId_; tokenId < startTokenId_ + quantity_; tokenId++) { //check staking require(!isStakingEnabled || _stakingStartedTimestamp[tokenId] == NULL_STAKED,"Staking now.: token transfer while paused."); //unstake if staking if (_stakingStartedTimestamp[tokenId] != NULL_STAKED) { //accum current time uint256 deltaTime = block.timestamp - _stakingStartedTimestamp[tokenId]; _stakingTotalTime[tokenId] += deltaTime; //no longer staking _stakingStartedTimestamp[tokenId] = NULL_STAKED; _claimedLastTimestamp[tokenId] = NULL_STAKED; } } super._beforeTokenTransfers(from_, to_, startTokenId_, quantity_); } //set HiddenBaseURI.only owner.current season. function setHiddenBaseURI(string memory uri_) external virtual onlyOwner { _revealUri[_seasonCounter] = uri_; } //set HiddenBaseURI.only owner.by season. function setHiddenBaseURIBySeason(string memory uri_,uint256 _season) external virtual onlyOwner { _revealUri[_season] = uri_; } //return _nextTokenId function getCurrentIndex() external view virtual returns (uint256){ return _nextTokenId(); } //return status. function getContractStatus() external view virtual returns (uint256){ return _contractStatus; } //set status.only owner. function setContractStatus(uint256 status_) external virtual onlyOwner { _contractStatus = status_; } //return wlResetIndex. function getWlResetIndex() external view virtual returns (uint256){ return _wlResetIndex; } //reset _wlMinted.only owner. function resetWlMinted() external virtual onlyOwner { _wlResetIndex++; } //return Season. function getSeason() external view virtual returns (uint256){ return _seasonCounter; } //increment next Season.only owner. function incrementSeason() external virtual onlyOwner { //pause all sale isWlEnabled = false; isPsEnabled = false; isBmEnabled = false; isHmEnabled = false; //reset tree _merkleRoot = 0x0; _merkleRoot1 = 0x0; _merkleRoot2 = 0x0; //increment season _seasonCounter++; seasonStartTokenId[_seasonCounter] = _nextTokenId();//set start tonkenid for next Season. } //return season by tokenid. function getSeasonByTokenId(uint256 _tokenId) external view virtual returns(uint256){ return _getSeasonByTokenId(_tokenId); } //return season by tokenid. function _getSeasonByTokenId(uint256 _tokenId) internal view returns(uint256){ require(_exists(_tokenId), "Season query for nonexistent token"); uint256 nextStartTokenId = 10000000000;//start tokenid for next season.set big tokenid. for (uint256 i = _seasonCounter; i >= 0; i--) { if(seasonStartTokenId[i] <= _tokenId && _tokenId < nextStartTokenId) return i; nextStartTokenId = seasonStartTokenId[i]; } return 0;//can not reach here. } //set BaseURI at after reveal. only owner.current season. function setBaseURI(string memory uri_) external virtual onlyOwner { _baseTokenURI[_seasonCounter] = uri_; } //set BaseURI at after reveal. only owner.by season. function setBaseURIBySeason(string memory uri_,uint256 _season) external virtual onlyOwner { _baseTokenURI[_season] = uri_; } //set custom tokenURI at after reveal. only owner. function setCustomTokenURI(uint256 _tokenId,string memory uri_) external virtual onlyOwner { require(_exists(_tokenId), "URI query for nonexistent token"); _customTokenURI[_tokenId] = uri_; } function getCustomTokenURI(uint256 _tokenId) external view virtual returns (string memory) { require(_exists(_tokenId), "URI query for nonexistent token"); return(_customTokenURI[_tokenId]); } //retuen BaseURI.internal.current season. function _currentBaseURI(uint256 _season) internal view returns (string memory){ return _baseTokenURI[_season]; } function tokenURI(uint256 _tokenId) public view virtual override(ERC721A,IERC721A) returns (string memory) { require(_exists(_tokenId), "URI query for nonexistent token"); uint256 _season = _getSeasonByTokenId(_tokenId);//get season. if(_isRevealed[_season] == false) return _revealUri[_season]; if(bytes(_customTokenURI[_tokenId]).length != 0) return _customTokenURI[_tokenId];//custom URI return string(abi.encodePacked(_currentBaseURI(_season), Strings.toString(_tokenId), _extension)); } //common mint.transfer to _address. function _commonMint(address _address,uint256 _amount) internal virtual { require((_amount + totalSupply()) <= (maxSupply), "No more NFTs"); _safeMint(_address, _amount); } //owner mint.transfer to _address.only owner. function ownerMint(uint256 _amount, address _address) external virtual onlyOwner { _commonMint(_address, _amount); } //WL mint. function whitelistMint(uint256 _amount, uint256 maxmint_, bytes32[] calldata proof_, bytes32[] calldata proof1_, bytes32[] calldata proof2_) external payable virtual nonReentrant { uint256 wlNum = _whitelistMintCheck(_amount, maxmint_, proof_, proof1_, proof2_); _whitelistMintCheckValue(_amount, maxmint_, proof_, proof1_, proof2_); unchecked{ if(wlNum == 0) _wlMinted[_seasonCounter][msg.sender][_wlResetIndex] += _amount; else if(wlNum == 1) _wlMinted1[_seasonCounter][msg.sender][_wlResetIndex] += _amount; else _wlMinted2[_seasonCounter][msg.sender][_wlResetIndex] += _amount; } _commonMint(msg.sender, _amount); } //WL check.except value. function _whitelistMintCheck(uint256 _amount, uint256 maxmint_, bytes32[] calldata proof_, bytes32[] calldata proof1_, bytes32[] calldata proof2_) internal virtual returns(uint256) { require(isWlEnabled, "whitelistMint is Paused"); (bool isWL,uint256 wlNum) = _isWhitelisted(msg.sender, maxmint_,proof_, proof1_, proof2_); require(isWL, "You are not whitelisted!"); require(!isWlNumDisabled[wlNum],"Now part of whitelist disabled."); uint256 maxMints = _getWhitelistedMaxMints(msg.sender, maxmint_, proof_, proof1_, proof2_); require(maxMints >= _amount, "whitelistMint: Over max mints per wallet"); if(wlNum == 0) require(maxMints >= _wlMinted[_seasonCounter][msg.sender][_wlResetIndex] + _amount, "You have no whitelistMint left"); else if(wlNum == 1) require(maxMints >= _wlMinted1[_seasonCounter][msg.sender][_wlResetIndex] + _amount, "You have no whitelistMint1 left"); else require(maxMints >= _wlMinted2[_seasonCounter][msg.sender][_wlResetIndex] + _amount, "You have no whitelistMint2 left"); return (wlNum); } //WL check.Only Value.for optional free mint. function _whitelistMintCheckValue(uint256 _amount, uint256 maxmint_, bytes32[] calldata proof_, bytes32[] calldata proof1_, bytes32[] calldata proof2_) internal virtual { uint256 price = _getWhitelistedPrice(msg.sender, maxmint_, proof_, proof1_, proof2_); require(msg.value == price * _amount, "ETH value is not correct"); } //Public mint. function publicMint(uint256 _amount) external payable virtual nonReentrant { require(isPsEnabled, "publicMint is Paused"); require(maxMintsPerPS >= _amount, "publicMint: Over max mints per wallet"); require(maxMintsPerPS >= _psMinted[_seasonCounter][msg.sender] + _amount, "You have no publicMint left"); _publicMintCheckValue(_amount); require(tx.origin == msg.sender,"publicMint: Caller is contract."); unchecked{ _psMinted[_seasonCounter][msg.sender] += _amount; } _commonMint(msg.sender, _amount); } //Public check.Only Value.for optional free mint. function _publicMintCheckValue(uint256 _amount) internal virtual { require(msg.value == psMintPrice * _amount, "ETH value is not correct"); } //set otherContract.only owner function setOtherContract(address _addr) external virtual onlyOwner { otherContract = _addr; _otherContractFactory = MGYERC721A(otherContract); } //Burn&MintSale mint. function _burnAndMint(uint256 _amount,uint256[] calldata _tokenids) internal virtual { require(isBmEnabled, "Burn&MintSale is Paused"); require(maxMintsPerBM >= _amount, "Burn&MintSale: Over max mints per wallet"); require(maxMintsPerBM >= _bmMinted[_seasonCounter][msg.sender] + _amount, "You have no Burn&MintSale left"); _burnAndMintCheckValue(_amount); require(otherContract != address(0),"not set otherContract."); require(otherContractCount != 0 ,"not set otherContractCount."); require( _tokenids.length == (otherContractCount * _amount),"amount must be multiple of other contract count."); //check tokens owner , used. for (uint256 i = 0; i < _tokenids.length; i++) { require(_otherContractFactory.ownerOf(_tokenids[i]) == msg.sender,"You are not owner of this tokenid."); _otherContractFactory.burn(_tokenids[i]);//must approval. } unchecked{ _bmMinted[_seasonCounter][msg.sender] += _amount; } _commonMint(msg.sender, _amount); } //BM check.Only Value.for optional free mint. function _burnAndMintCheckValue(uint256 _amount) internal virtual { require(msg.value == bmMintPrice * _amount, "ETH value is not correct"); } //Burn&MintSale mint. external function burnAndMint(uint256 _amount,uint256[] calldata _tokenids) external payable virtual nonReentrant { require(otherContractGenesis == address(0),"can not set otherContractGenesis."); require(otherContractCountGenesis == 0 ,"can not set otherContractCountGenesis."); _burnAndMint(_amount,_tokenids); } //set otherContractGenesis.only owner function setOtherContractGenesis(address _addr) external virtual onlyOwner { otherContractGenesis = _addr; _otherContractGenesisFactory = MGYERC721A(otherContractGenesis); } //set otherContractGenesis count with burn&Mint.only owner. function setOtherContractCountGenesis(uint256 _count) external virtual onlyOwner { otherContractCountGenesis = _count; } //Burn&MintSale with GenesisNFT mint. function burnAndMintWithGenesis(uint256 _amount,uint256[] calldata _tokenids,uint256[] calldata _tokenidGenesis) external payable virtual nonReentrant { require(otherContractGenesis != address(0),"not set otherContractGenesis."); require(otherContractCountGenesis > 0 ,"not set otherContractCountGenesis."); require(_tokenidGenesis.length >= otherContractCountGenesis,"You have not enough Genesis."); for (uint256 i = 0; i < _tokenidGenesis.length; i++) { require(_otherContractGenesisFactory.ownerOf(_tokenidGenesis[i]) == msg.sender,"You are not owner of this tokenidGenesis."); } _burnAndMint(_amount,_tokenids); } //Hold&MintSale mint. function holdAndMint(uint256 _amount,uint256[] calldata _tokenids) external payable virtual nonReentrant { require(isHmEnabled, "Hold&MintSale is Paused"); require(maxMintsPerHM >= _amount, "Hold&MintSale: Over max mints per wallet"); require(maxMintsPerHM >= _hmMinted[_seasonCounter][msg.sender] + _amount, "You have no Hold&MintSale left"); _holdAndMintCheckValue(_amount); require(otherContract != address(0),"not set otherContract."); require(otherContractCount != 0 ,"not set otherContractCount."); require( _tokenids.length == (otherContractCount * _amount),"amount must be multiple of other contract count."); //check tokens owner , used. for (uint256 i = 0; i < _tokenids.length; i++) { require(_otherContractFactory.ownerOf(_tokenids[i]) == msg.sender,"You are not owner of this tokenid."); require(!_otherTokenidUsed[_seasonCounter][_tokenids[i]] ,"This other tokenid is Used."); _otherTokenidUsed[_seasonCounter][_tokenids[i]] = true; } unchecked{ _hmMinted[_seasonCounter][msg.sender] += _amount; } _commonMint(msg.sender, _amount); } //HM check.Only Value.for optional free mint. function _holdAndMintCheckValue(uint256 _amount) internal virtual { require(msg.value == hmMintPrice * _amount, "ETH value is not correct"); } //burn function burn(uint256 tokenId) external virtual { _burn(tokenId, true); } //widraw ETH from this contract.only owner. function withdraw() external payable virtual onlyOwner nonReentrant{ // This will payout the owner 100% of the contract balance. // Do not remove this otherwise you will not be able to withdraw the funds. // ============================================================================= bool os; if(_withdrawWallet != address(0)){//if _withdrawWallet has. (os, ) = payable(_withdrawWallet).call{value: address(this).balance}(""); }else{ (os, ) = payable(owner()).call{value: address(this).balance}(""); } require(os); // ============================================================================= } //return wallet owned tokenids.it used high gas and running time. function walletOfOwner(address owner) external view virtual returns (uint256[] memory) { //copy from tokensOfOwner in ERC721AQueryable.sol unchecked { uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; i++) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } //set Staking enable.only owner. function setStakingEnable(bool bool_) external virtual onlyOwner { isStakingEnabled = bool_; if(bool_){ stakingStartTimestamp = block.timestamp; stakingEndTimestamp = NULL_STAKED; }else{ stakingEndTimestamp = block.timestamp; } } //get staking information. function _getStakingInfo(uint256 _tokenId) internal view virtual returns (uint256 startTimestamp, uint256 currentStakingTime, uint256 totalStakingTime, bool isStaking,uint256 claimedLastTimestamp ){ require(_exists(_tokenId), "nonexistent token"); currentStakingTime = 0; startTimestamp = _stakingStartedTimestamp[_tokenId]; if (startTimestamp != NULL_STAKED) { // is staking currentStakingTime = block.timestamp - startTimestamp; } totalStakingTime = currentStakingTime + _stakingTotalTime[_tokenId]; isStaking = startTimestamp != NULL_STAKED; claimedLastTimestamp = _claimedLastTimestamp[_tokenId]; } //get staking information. function getStakingInfo(uint256 _tokenId) external view virtual returns (uint256 startTimestamp, uint256 currentStakingTime, uint256 totalStakingTime, bool isStaking,uint256 claimedLastTimestamp ){ (startTimestamp, currentStakingTime, totalStakingTime, isStaking, claimedLastTimestamp) = _getStakingInfo(_tokenId); } //toggle staking status function _toggleStaking(uint256 _tokenId) internal virtual { require(ownerOf(_tokenId) == msg.sender,"You are not owner of this tokenid."); require(_exists(_tokenId), "nonexistent token"); uint256 startTimestamp = _stakingStartedTimestamp[_tokenId]; if (startTimestamp == NULL_STAKED) { //start staking require(isStakingEnabled, "Staking closed"); _stakingStartedTimestamp[_tokenId] = block.timestamp; } else { //start unstaking _stakingTotalTime[_tokenId] += block.timestamp - startTimestamp; _stakingStartedTimestamp[_tokenId] = NULL_STAKED; _claimedLastTimestamp[_tokenId] = NULL_STAKED; } } //toggle staking status function toggleStaking(uint256[] calldata _tokenIds) external virtual { uint256 num = _tokenIds.length; for (uint256 i = 0; i < num; i++) { uint256 tokenId = _tokenIds[i]; _toggleStaking(tokenId); } } //set rewardContract.only owner function setRewardContract(address _addr) external virtual onlyOwner { rewardContract = _addr; _rewardContractFactory = MGYREWARD(rewardContract); } //claim reward function _claimReward(uint256 _tokenId) internal virtual { require(ownerOf(_tokenId) == msg.sender,"You are not owner of this tokenid."); require(_exists(_tokenId), "nonexistent token"); //get staking infomation (uint256 startTimestamp, uint256 currentStakingTime, uint256 totalStakingTime, bool isStaking,uint256 claimedLastTimestamp ) = _getStakingInfo(_tokenId); uint256 _lastTimestamp = block.timestamp; _claimedLastTimestamp[_tokenId] = _lastTimestamp; //execute before claimReward().Warning for slither. //call reword. other contract _rewardContractFactory.claimReward(stakingStartTimestamp, stakingEndTimestamp, _tokenId, startTimestamp, currentStakingTime, totalStakingTime, isStaking, claimedLastTimestamp, _lastTimestamp); } //claim reward function claimReward(uint256[] calldata _tokenIds) external virtual nonReentrant{ require(isStakingEnabled, "Staking closed");//only staking period uint256 num = _tokenIds.length; for (uint256 i = 0; i < num; i++) { uint256 tokenId = _tokenIds[i]; _claimReward(tokenId); } } //Opensea filter function setApprovalForAll(address operator, bool approved) public override(ERC721A,IERC721A) onlyAllowedOperatorApproval(operator){ super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public payable override(ERC721A,IERC721A) onlyAllowedOperatorApproval(operator){ super.approve(operator, tokenId); } function transferFrom(address from, address to, uint256 tokenId) public payable override(ERC721A,IERC721A) onlyAllowedOperator(from){ super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public payable override(ERC721A,IERC721A) onlyAllowedOperator(from){ super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public payable override(ERC721A,IERC721A) onlyAllowedOperator(from){ super.safeTransferFrom(from, to, tokenId, data); } function setOperatorFilteringEnabled(bool value) public onlyOwner { operatorFilteringEnabled = value; } function _operatorFilteringEnabled() internal view override returns (bool) { return operatorFilteringEnabled; } //ERC4906 function metadataUpdate(uint256 _tokenId) external virtual onlyOwner { emit MetadataUpdate(_tokenId); } function batchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId) external virtual onlyOwner { emit BatchMetadataUpdate( _fromTokenId, _toTokenId); } }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./MGYERC721A.sol"; contract MGYREWARD is Ownable,ReentrancyGuard{ address public callContract;//callable MGYERC721A address MGYERC721A internal _callContractFactory;//callable Contract's factory //set callContract.only owner function setCallContract(address _callAddr) external virtual onlyOwner{ callContract = _callAddr; _callContractFactory = MGYERC721A(callContract); } //execute reward function _claimReward(uint256 _stakingStartTimestamp, uint256 _stakingEndTimestamp, uint256 _tokenId,uint256 _startTimestamp, uint256 _currentStakingTime, uint256 _totalStakingTime, bool _isStaking, uint256 _claimedLastTimestamp, uint256 _currentClaimedLastTimestamp) internal virtual{ //do reword something todo } //execute reward function claimReward(uint256 _stakingStartTimestamp, uint256 _stakingEndTimestamp, uint256 _tokenId,uint256 _startTimestamp, uint256 _currentStakingTime, uint256 _totalStakingTime, bool _isStaking, uint256 _claimedLastTimestamp, uint256 _currentClaimedLastTimestamp) external virtual nonReentrant{ require(callContract != address(0),"not set callContract."); require(msg.sender == callContract,"only callContract can call this function."); _claimReward(_stakingStartTimestamp, _stakingEndTimestamp, _tokenId, _startTimestamp, _currentStakingTime, _totalStakingTime, _isStaking, _claimedLastTimestamp, _currentClaimedLastTimestamp); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @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, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @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) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @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) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @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. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @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 memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC4907A.sol'; import '../ERC721A.sol'; /** * @title ERC4907A * * @dev [ERC4907](https://eips.ethereum.org/EIPS/eip-4907) compliant * extension of ERC721A, which allows owners and authorized addresses * to add a time-limited role with restricted permissions to ERC721 tokens. */ abstract contract ERC4907A is ERC721A, IERC4907A { // The bit position of `expires` in packed user info. uint256 private constant _BITPOS_EXPIRES = 160; // Mapping from token ID to user info. // // Bits Layout: // - [0..159] `user` // - [160..223] `expires` mapping(uint256 => uint256) private _packedUserInfo; /** * @dev Sets the `user` and `expires` for `tokenId`. * The zero address indicates there is no user. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function setUser( uint256 tokenId, address user, uint64 expires ) public virtual override { // Require the caller to be either the token owner or an approved operator. address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) if (getApproved(tokenId) != _msgSenderERC721A()) revert SetUserCallerNotOwnerNorApproved(); _packedUserInfo[tokenId] = (uint256(expires) << _BITPOS_EXPIRES) | uint256(uint160(user)); emit UpdateUser(tokenId, user, expires); } /** * @dev Returns the user address for `tokenId`. * The zero address indicates that there is no user or if the user is expired. */ function userOf(uint256 tokenId) public view virtual override returns (address) { uint256 packed = _packedUserInfo[tokenId]; assembly { // Branchless `packed *= (block.timestamp <= expires ? 1 : 0)`. // If the `block.timestamp == expires`, the `lt` clause will be true // if there is a non-zero user address in the lower 160 bits of `packed`. packed := mul( packed, // `block.timestamp <= expires ? 1 : 0`. lt(shl(_BITPOS_EXPIRES, timestamp()), packed) ) } return address(uint160(packed)); } /** * @dev Returns the user's expires of `tokenId`. */ function userExpires(uint256 tokenId) public view virtual override returns (uint256) { return _packedUserInfo[tokenId] >> _BITPOS_EXPIRES; } /** * @dev Override of {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, IERC721A) returns (bool) { // The interface ID for ERC4907 is `0xad092b5c`, // as defined in [ERC4907](https://eips.ethereum.org/EIPS/eip-4907). return super.supportsInterface(interfaceId) || interfaceId == 0xad092b5c; } /** * @dev Returns the user address for `tokenId`, ignoring the expiry status. */ function _explicitUserOf(uint256 tokenId) internal view virtual returns (address) { return address(uint160(_packedUserInfo[tokenId])); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of ERC4907A. */ interface IERC4907A is IERC721A { /** * The caller must own the token or be an approved operator. */ error SetUserCallerNotOwnerNorApproved(); /** * @dev Emitted when the `user` of an NFT or the `expires` of the `user` is changed. * The zero address for user indicates that there is no user address. */ event UpdateUser(uint256 indexed tokenId, address indexed user, uint64 expires); /** * @dev Sets the `user` and `expires` for `tokenId`. * The zero address indicates there is no user. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function setUser( uint256 tokenId, address user, uint64 expires ) external; /** * @dev Returns the user address for `tokenId`. * The zero address indicates that there is no user or if the user is expired. */ function userOf(uint256 tokenId) external view returns (address); /** * @dev Returns the user's expires of `tokenId`. */ function userExpires(uint256 tokenId) external view returns (uint256); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @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`, * 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 be 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, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * 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 payable; /** * @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 payable; /** * @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); // ============================================================= // IERC721Metadata // ============================================================= /** * @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); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
{ "optimizer": { "enabled": true, "runs": 1 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"SetUserCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","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":"uint256","name":"_fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_toTokenId","type":"uint256"}],"name":"BatchMetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"MetadataUpdate","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":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":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint64","name":"expires","type":"uint64"}],"name":"UpdateUser","type":"event"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"internalType":"uint256","name":"_toTokenId","type":"uint256"}],"name":"batchMetadataUpdate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bmMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"bmMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_season","type":"uint256"}],"name":"bmMintedBySeason","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256[]","name":"_tokenids","type":"uint256[]"}],"name":"burnAndMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256[]","name":"_tokenids","type":"uint256[]"},{"internalType":"uint256[]","name":"_tokenidGenesis","type":"uint256[]"}],"name":"burnAndMintWithGenesis","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getContractStatus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getCustomTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getOtherTokenidUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_season","type":"uint256"}],"name":"getOtherTokenidUsedBySeason","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSeason","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getSeasonByTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getStakingInfo","outputs":[{"internalType":"uint256","name":"startTimestamp","type":"uint256"},{"internalType":"uint256","name":"currentStakingTime","type":"uint256"},{"internalType":"uint256","name":"totalStakingTime","type":"uint256"},{"internalType":"bool","name":"isStaking","type":"bool"},{"internalType":"uint256","name":"claimedLastTimestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"address_","type":"address"},{"internalType":"uint256","name":"maxmint_","type":"uint256"},{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"},{"internalType":"bytes32[]","name":"proof1_","type":"bytes32[]"},{"internalType":"bytes32[]","name":"proof2_","type":"bytes32[]"}],"name":"getWhitelistedMaxMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"address_","type":"address"},{"internalType":"uint256","name":"maxmint_","type":"uint256"},{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"},{"internalType":"bytes32[]","name":"proof1_","type":"bytes32[]"},{"internalType":"bytes32[]","name":"proof2_","type":"bytes32[]"}],"name":"getWhitelistedPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"wlNum_","type":"uint256"},{"internalType":"address","name":"address_","type":"address"},{"internalType":"uint256","name":"maxmint_","type":"uint256"},{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"}],"name":"getWhitelistedStatus","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWlResetIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"address_","type":"address"},{"internalType":"uint256","name":"maxmint_","type":"uint256"},{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"}],"name":"hasWhitelistedOneWL","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"address_","type":"address"},{"internalType":"uint256","name":"maxmint_","type":"uint256"},{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"}],"name":"hasWhitelistedOneWL1","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"address_","type":"address"},{"internalType":"uint256","name":"maxmint_","type":"uint256"},{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"}],"name":"hasWhitelistedOneWL2","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hmMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"hmMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_season","type":"uint256"}],"name":"hmMintedBySeason","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256[]","name":"_tokenids","type":"uint256[]"}],"name":"holdAndMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"incrementSeason","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isBmEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isHmEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPsEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_season","type":"uint256"}],"name":"isRevealedBySeason","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSBTEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isStakingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"address_","type":"address"},{"internalType":"uint256","name":"maxmint_","type":"uint256"},{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"},{"internalType":"bytes32[]","name":"proof1_","type":"bytes32[]"},{"internalType":"bytes32[]","name":"proof2_","type":"bytes32[]"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWlEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"isWlNumDisabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintsCapPerWL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintsPerBM","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintsPerHM","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintsPerPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"metadataUpdate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorFilteringEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"otherContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"otherContractCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"otherContractCountGenesis","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"otherContractGenesis","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_address","type":"address"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"psMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"psMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_season","type":"uint256"}],"name":"psMintedBySeason","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resetWlMinted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"seasonStartTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri_","type":"string"},{"internalType":"uint256","name":"_season","type":"uint256"}],"name":"setBaseURIBySeason","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setBmMaxMints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setBmPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"bool_","type":"bool"}],"name":"setBurnAndMintSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"status_","type":"uint256"}],"name":"setContractStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"uri_","type":"string"}],"name":"setCustomTokenURI","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":"_wlNum","type":"uint256"},{"internalType":"bool","name":"bool_","type":"bool"}],"name":"setDisabledPartWhitelistSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri_","type":"string"}],"name":"setHiddenBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri_","type":"string"},{"internalType":"uint256","name":"_season","type":"uint256"}],"name":"setHiddenBaseURIBySeason","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setHmMaxMints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setHmPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"bool_","type":"bool"}],"name":"setHoldAndMintSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot_","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot_","type":"bytes32"}],"name":"setMerkleRoot1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot_","type":"bytes32"}],"name":"setMerkleRoot2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setOperatorFilteringEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setOtherContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"setOtherContractCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"setOtherContractCountGenesis","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setOtherContractGenesis","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bool","name":"bool_","type":"bool"}],"name":"setOtherTokenidUsed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bool","name":"bool_","type":"bool"},{"internalType":"uint256","name":"_season","type":"uint256"}],"name":"setOtherTokenidUsedBySeason","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setPsMaxMints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPsPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"bool_","type":"bool"}],"name":"setPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"bool_","type":"bool"}],"name":"setReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"bool_","type":"bool"},{"internalType":"uint256","name":"_season","type":"uint256"}],"name":"setRevealBySeason","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setRewardContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"","type":"bool"}],"name":"setSBTMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"bool_","type":"bool"}],"name":"setStakingEnable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"user","type":"address"},{"internalType":"uint64","name":"expires","type":"uint64"}],"name":"setUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"bool_","type":"bool"}],"name":"setWhitelistSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"setWithdrawWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setWlMaxMintsCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setWlPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setWlPrice1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setWlPrice2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingEndTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingStartTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"toggleStaking","outputs":[],"stateMutability":"nonpayable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"userExpires","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"userOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"maxmint_","type":"uint256"},{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"},{"internalType":"bytes32[]","name":"proof1_","type":"bytes32[]"},{"internalType":"bytes32[]","name":"proof2_","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"wlMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wlMintPrice1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wlMintPrice2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"wlMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"wlMinted1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"wlMinted2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_season","type":"uint256"}],"name":"wlMintedBySeason","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_season","type":"uint256"}],"name":"wlMintedBySeason1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_season","type":"uint256"}],"name":"wlMintedBySeason2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162005bf638038062005bf68339810160408190526200003491620002a6565b818181816200004333620000f4565b60036200005183826200039f565b5060046200006082826200039f565b506001808155600a5550620000759050600190565b6029546000908152602a602090815260408083209390935582519081019092528152603090620000a690826200039f565b50620000b162000144565b5050604080518082019091526005815264173539b7b760d91b6020820152603090620000de90826200039f565b5050603c805460ff19166001179055506200046b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b62000165733cc6cdda760b79bafa08df41ecfa224f810dceb6600162000167565b565b6001600160a01b0390911690637d3e3dbe81620001975782620001905750634420e48662000197565b5063a0af29035b8060e01b60005230600452826024526004600060446000806daaeb6d7670e522a718067333cd4e5af1620001d7578060005160e01c03620001d757600080fd5b5060006024525050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200020957600080fd5b81516001600160401b0380821115620002265762000226620001e1565b604051601f8301601f19908116603f01168101908282118183101715620002515762000251620001e1565b816040528381526020925086838588010111156200026e57600080fd5b600091505b8382101562000292578582018301518183018401529082019062000273565b600093810190920192909252949350505050565b60008060408385031215620002ba57600080fd5b82516001600160401b0380821115620002d257600080fd5b620002e086838701620001f7565b93506020850151915080821115620002f757600080fd5b506200030685828601620001f7565b9150509250929050565b600181811c908216806200032557607f821691505b6020821081036200034657634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200039a57600081815260208120601f850160051c81016020861015620003755750805b601f850160051c820191505b81811015620003965782815560010162000381565b5050505b505050565b81516001600160401b03811115620003bb57620003bb620001e1565b620003d381620003cc845462000310565b846200034c565b602080601f8311600181146200040b5760008415620003f25750858301515b600019600386901b1c1916600185901b17855562000396565b600085815260208120601f198616915b828110156200043c578886015182559484019460019091019084016200041b565b50858210156200045b5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61577b806200047b6000396000f3fe6080604052600436106105ca5760003560e01c806301ffc9a7146105cf57806304634d8d14610604578063062cb3011461062657806306fdde031461067657806307aaef3814610698578063081812fc146106b8578063083e1669146106f0578063095ea7b3146107065780630bc324b9146107195780630c2254e31461072f5780630d9005ae1461074f5780630f9eef09146107645780631429577414610785578063155fc3af146107a55780631632eb1b146107c557806318160ddd146107e55780631a09cfe2146107fa57806320ac68501461081057806323b872dd146108305780632908e710146108435780632a3f300c1461087d5780632a55205a1461089d5780632c4e9fc6146108dc5780632db11544146108f25780633048987f1461090557806330d616f41461095357806331e2d9591461097357806335a28f3e1461098857806335febafa146109a85780633615a4ef146109be5780633ccfd60b146109d45780633d9f0ae5146109dc57806340f14130146109fc57806342454db914610a0f57806342842e0e14610a2557806342966c6814610a38578063438b630014610a585780634b71b11214610a8557806351508f0a14610ad157806353c12e9f14610af157806354214f6914610b1157806354c9d27314610b3757806355f804b314610b4c578063591500cd14610b6c57806359b89ca714610bae5780635aca1bb614610bdb5780635fd57c1b14610bfb5780636352211e14610c1b5780636361bc5114610c3b5780636425926c14610c7d578063659542b014610c9d57806367da203214610cbd57806367fbb9ef14610cdd5780636a1c34fb14610cfd5780636bb67a6b14610d1d5780636bb89d8a14610d335780636e2fcff314610d7f5780636ea69d6214610d955780636ef4f9b514610db55780636f5fae8014610dd55780636f8b44b014610df557806370a0823114610e15578063715018a614610e355780637402a85d14610e4a57806376a42bf214610e6057806378a9238014610e805780637974135714610ece57806379a5952614610ee45780637a8efb9214610f045780637cb6475914610f505780637de5d94014610f705780637ebe707614610f83578063813779ef14610fa357806383bedeb514610fc357806383f0e6a314610ff2578063851fc4b6146110125780638a5645fd146110325780638c5bbca21461106f5780638da5cb5b1461109f5780638dd07d0f146110b45780638e5888c2146110d45780638fc88c48146110ea57806390a667be1461111a5780639373f4321461113a578063942958f41461115a57806395d89b411461119e5780639a0f3100146111b35780639c9a9430146111d3578063a22cb465146111ed578063a8b9e6461461120d578063a91a86f914611222578063b1d3864d14611266578063b2cd3c6e146112b2578063b7c0b8e8146112d2578063b88d4fde146112f2578063ba60a91c14611305578063ba76e24e14611325578063bb7a83d014611345578063bd45f0f51461135b578063bd57e5e91461137b578063bd9ebe8b1461139b578063bf08c6df146113bb578063c032846b146113db578063c2f1f14a146113f0578063c6ccf54214611424578063c758f6001461143a578063c87b56dd1461145a578063c94c7ff41461147a578063ca7c8c061461149a578063ca7ce3ec146114ba578063cbfcf96f146114da578063d21486ce146114fa578063d52c57e014611519578063d5abeb0114611539578063d78be71c1461154f578063e030565e1461156f578063e29a93701461158f578063e2b8d8c0146115b0578063e4cc15ee146115d0578063e8a3d485146115f0578063e8fa494e14611605578063e9186bce1461161a578063e985e9c514611634578063e98d36e11461167d578063e9bf827e1461169d578063e9c4aa6a146116b0578063ec5566b3146116fa578063f2fde38b1461171a578063f78e1bdb1461173a578063f91441551461177e578063fb796e6c146117cc578063fc304abb146117e6578063fc5abdb31461169d575b600080fd5b3480156105db57600080fd5b506105ef6105ea366004614981565b611806565b60405190151581526020015b60405180910390f35b34801561061057600080fd5b5061062461061f3660046149b3565b611844565b005b34801561063257600080fd5b506106686106413660046149f8565b60009081526024602090815260408083206001600160a01b03949094168352929052205490565b6040519081526020016105fb565b34801561068257600080fd5b5061068b61185a565b6040516105fb9190614a74565b3480156106a457600080fd5b506106246106b3366004614a87565b6118ec565b3480156106c457600080fd5b506106d86106d3366004614a87565b6118f9565b6040516001600160a01b0390911681526020016105fb565b3480156106fc57600080fd5b5061066860185481565b6106246107143660046149f8565b61193d565b34801561072557600080fd5b5061066860135481565b34801561073b57600080fd5b5061062461074a366004614b4b565b611961565b34801561075b57600080fd5b50610668611981565b34801561077057600080fd5b50601a546105ef90600160a01b900460ff1681565b34801561079157600080fd5b506106246107a0366004614a87565b611991565b3480156107b157600080fd5b506106246107c0366004614ba4565b61199e565b3480156107d157600080fd5b506105ef6107e0366004614c1d565b611a6f565b3480156107f157600080fd5b50610668611a93565b34801561080657600080fd5b5061066860145481565b34801561081c57600080fd5b5061062461082b366004614cd2565b611aa1565b61062461083e366004614d06565b611ac4565b34801561084f57600080fd5b506105ef61085e366004614d47565b6000908152602760209081526040808320938352929052205460ff1690565b34801561088957600080fd5b50610624610898366004614d69565b611afa565b3480156108a957600080fd5b506108bd6108b8366004614d47565b611b23565b604080516001600160a01b0390931683526020830191909152016105fb565b3480156108e857600080fd5b50610668600d5481565b610624610900366004614a87565b611bd1565b34801561091157600080fd5b50610668610920366004614d84565b60295460009081526023602090815260408083206001600160a01b03909416835292815282822060285483529052205490565b34801561095f57600080fd5b5061062461096e366004614d69565b611d8b565b34801561097f57600080fd5b50602854610668565b34801561099457600080fd5b506106246109a3366004614d84565b611dc8565b3480156109b457600080fd5b5061066860155481565b3480156109ca57600080fd5b5061066860165481565b610624611dfc565b3480156109e857600080fd5b506106246109f7366004614a87565b611e87565b610624610a0a366004614da1565b611e94565b348015610a1b57600080fd5b5061066860105481565b610624610a33366004614d06565b611f7e565b348015610a4457600080fd5b50610624610a53366004614a87565b611fae565b348015610a6457600080fd5b50610a78610a73366004614d84565b611fb9565b6040516105fb9190614de2565b348015610a9157600080fd5b50610668610aa03660046149f8565b60009081526023602090815260408083206001600160a01b0394909416835292815282822060285483529052205490565b348015610add57600080fd5b50610624610aec366004614d84565b61209f565b348015610afd57600080fd5b50610624610b0c366004614e1a565b6120d3565b348015610b1d57600080fd5b50602954600090815260208052604090205460ff166105ef565b348015610b4357600080fd5b50602954610668565b348015610b5857600080fd5b50610624610b67366004614cd2565b6120f9565b348015610b7857600080fd5b50610668610b873660046149f8565b60009081526026602090815260408083206001600160a01b03949094168352929052205490565b348015610bba57600080fd5b50610668610bc9366004614a87565b602a6020526000908152604090205481565b348015610be757600080fd5b50610624610bf6366004614d69565b61211c565b348015610c0757600080fd5b50610624610c16366004614a87565b612137565b348015610c2757600080fd5b506106d8610c36366004614a87565b612144565b348015610c4757600080fd5b50610668610c563660046149f8565b60009081526025602090815260408083206001600160a01b03949094168352929052205490565b348015610c8957600080fd5b50610624610c98366004614a87565b61214f565b348015610ca957600080fd5b50610624610cb8366004614d69565b61215c565b348015610cc957600080fd5b50601f546105ef9062010000900460ff1681565b348015610ce957600080fd5b50610624610cf8366004614a87565b612180565b348015610d0957600080fd5b50610624610d18366004614a87565b61218d565b348015610d2957600080fd5b5061066860115481565b348015610d3f57600080fd5b50610668610d4e3660046149f8565b60009081526022602090815260408083206001600160a01b0394909416835292815282822060285483529052205490565b348015610d8b57600080fd5b5061066860175481565b348015610da157600080fd5b506038546106d8906001600160a01b031681565b348015610dc157600080fd5b50610624610dd0366004614e36565b6121cb565b348015610de157600080fd5b50610624610df0366004614d69565b612210565b348015610e0157600080fd5b50610624610e10366004614a87565b612232565b348015610e2157600080fd5b50610668610e30366004614d84565b612292565b348015610e4157600080fd5b506106246122e0565b348015610e5657600080fd5b50610668603a5481565b348015610e6c57600080fd5b50610624610e7b366004614e77565b6122f2565b348015610e8c57600080fd5b50610668610e9b366004614d84565b60295460009081526021602090815260408083206001600160a01b03909416835292815282822060285483529052205490565b348015610eda57600080fd5b50610668600f5481565b348015610ef057600080fd5b50610624610eff366004614a87565b6123bd565b348015610f1057600080fd5b50610f24610f1f366004614ea3565b6123ca565b60408051951515865260208601949094529284019190915215156060830152608082015260a0016105fb565b348015610f5c57600080fd5b50610624610f6b366004614a87565b612653565b610624610f7e366004614f0c565b612660565b348015610f8f57600080fd5b50610624610f9e366004614a87565b612679565b348015610faf57600080fd5b50610624610fbe366004614a87565b612686565b348015610fcf57600080fd5b506105ef610fde366004614a87565b600090815260208052604090205460ff1690565b348015610ffe57600080fd5b5061062461100d366004614a87565b612693565b34801561101e57600080fd5b5061062461102d366004614f74565b6126a0565b34801561103e57600080fd5b506105ef61104d366004614a87565b6029546000908152602760209081526040808320938352929052205460ff1690565b34801561107b57600080fd5b506105ef61108a366004614a87565b601e6020526000908152604090205460ff1681565b3480156110ab57600080fd5b506106d86126e5565b3480156110c057600080fd5b506106246110cf366004614a87565b6126f4565b3480156110e057600080fd5b5061066860125481565b3480156110f657600080fd5b50610668611105366004614a87565b60009081526009602052604090205460a01c90565b34801561112657600080fd5b50610624611135366004614b4b565b612701565b34801561114657600080fd5b50610624611155366004614d84565b612721565b34801561116657600080fd5b50610668611175366004614d84565b60295460009081526024602090815260408083206001600160a01b039094168352929052205490565b3480156111aa57600080fd5b5061068b61274b565b3480156111bf57600080fd5b506106246111ce366004614d69565b61275a565b3480156111df57600080fd5b50601d546105ef9060ff1681565b3480156111f957600080fd5b50610624611208366004614fba565b612762565b34801561121957600080fd5b50610624612781565b34801561122e57600080fd5b5061066861123d366004614d84565b60295460009081526025602090815260408083206001600160a01b039094168352929052205490565b34801561127257600080fd5b506106686112813660046149f8565b60009081526021602090815260408083206001600160a01b0394909416835292815282822060285483529052205490565b3480156112be57600080fd5b506106686112cd366004614c1d565b6127a0565b3480156112de57600080fd5b506106246112ed366004614d69565b6127bf565b610624611300366004614fe6565b6127da565b34801561131157600080fd5b506033546106d8906001600160a01b031681565b34801561133157600080fd5b50610624611340366004614e77565b61280b565b34801561135157600080fd5b50610668600e5481565b34801561136757600080fd5b5061068b611376366004614a87565b612833565b34801561138757600080fd5b50610668611396366004614a87565b6128f8565b3480156113a757600080fd5b506106246113b6366004614a87565b612903565b3480156113c757600080fd5b506105ef6113d6366004615065565b612910565b3480156113e757600080fd5b50602b54610668565b3480156113fc57600080fd5b506106d861140b366004614a87565b6000908152600960205260409020544260a01b81110290565b34801561143057600080fd5b50610668603b5481565b34801561144657600080fd5b50610624611455366004614d47565b61292c565b34801561146657600080fd5b5061068b611475366004614a87565b612971565b34801561148657600080fd5b50610624611495366004614e36565b612ad6565b3480156114a657600080fd5b506106246114b5366004614a87565b612b58565b3480156114c657600080fd5b506106246114d5366004614d69565b612b65565b3480156114e657600080fd5b506105ef6114f5366004615065565b612b80565b34801561150657600080fd5b50601f546105ef90610100900460ff1681565b34801561152557600080fd5b506106246115343660046150c0565b612b91565b34801561154557600080fd5b5061066860195481565b34801561155b57600080fd5b5061062461156a366004614a87565b612ba3565b34801561157b57600080fd5b5061062461158a3660046150e5565b612bb0565b34801561159b57600080fd5b50601f546105ef906301000000900460ff1681565b3480156115bc57600080fd5b506106246115cb366004614d84565b612c7f565b3480156115dc57600080fd5b506106686115eb366004614c1d565b612cb3565b3480156115fc57600080fd5b5061068b612cc5565b34801561161157600080fd5b50610624612ccf565b34801561162657600080fd5b50601f546105ef9060ff1681565b34801561164057600080fd5b506105ef61164f366004615133565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b34801561168957600080fd5b506031546106d8906001600160a01b031681565b6106246116ab366004615161565b612d28565b3480156116bc57600080fd5b506116d06116cb366004614a87565b612d3a565b6040805195865260208601949094529284019190915215156060830152608082015260a0016105fb565b34801561170657600080fd5b50610624611715366004614a87565b612d5d565b34801561172657600080fd5b50610624611735366004614d84565b612d6a565b34801561174657600080fd5b50610668611755366004614d84565b60295460009081526026602090815260408083206001600160a01b039094168352929052205490565b34801561178a57600080fd5b50610668611799366004614d84565b60295460009081526022602090815260408083206001600160a01b03909416835292815282822060285483529052205490565b3480156117d857600080fd5b50603c546105ef9060ff1681565b3480156117f257600080fd5b506105ef611801366004615065565b612de0565b600061181182612df1565b80611820575061182082612e3f565b8061182f575061182f82612e67565b8061183e575061183e82612e9c565b92915050565b61184c612ec1565b6118568282612f20565b5050565b606060038054611869906151ac565b80601f0160208091040260200160405190810160405280929190818152602001828054611895906151ac565b80156118e25780601f106118b7576101008083540402835291602001916118e2565b820191906000526020600020905b8154815290600101906020018083116118c557829003601f168201915b5050505050905090565b6118f4612ec1565b601755565b600061190482613019565b611921576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b81603c5460ff1615611952576119528161304e565b61195c8383613092565b505050565b611969612ec1565b6000818152601c6020526040902061195c838261522c565b600061198c60015490565b905090565b611999612ec1565b602e55565b6119a6612ec1565b6032546040516331a9108f60e11b8152600481018590526000916001600160a01b031690636352211e90602401602060405180830381865afa1580156119f0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a1491906152eb565b6001600160a01b031603611a435760405162461bcd60e51b8152600401611a3a90615308565b60405180910390fd5b600090815260276020908152604080832094835293905291909120805460ff1916911515919091179055565b600080611a828a8a8a8a8a8a8a8a613132565b509150505b98975050505050505050565b600254600154036000190190565b611aa9612ec1565b6029546000908152601b60205260409020611856828261522c565b826001600160a01b0381163314611ae957603c5460ff1615611ae957611ae93361304e565b611af48484846131aa565b50505050565b611b02612ec1565b60295460009081526020805260409020805460ff1916911515919091179055565b6000828152600c602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291611b98575060408051808201909152600b546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090611bb7906001600160601b031687615349565b611bc19190615360565b91519350909150505b9250929050565b611bd9613348565b601f5460ff16611c225760405162461bcd60e51b81526020600482015260146024820152731c1d589b1a58d35a5b9d081a5cc814185d5cd95960621b6044820152606401611a3a565b806014541015611c825760405162461bcd60e51b815260206004820152602560248201527f7075626c69634d696e743a204f766572206d6178206d696e7473207065722077604482015264185b1b195d60da1b6064820152608401611a3a565b6029546000908152602460209081526040808320338452909152902054611caa908290615382565b6014541015611cf95760405162461bcd60e51b815260206004820152601b60248201527a165bdd481a185d99481b9bc81c1d589b1a58d35a5b9d081b19599d602a1b6044820152606401611a3a565b611d02816133a1565b323314611d515760405162461bcd60e51b815260206004820152601f60248201527f7075626c69634d696e743a2043616c6c657220697320636f6e74726163742e006044820152606401611a3a565b6029546000908152602460209081526040808320338085529252909120805483019055611d7e90826133cd565b611d886001600a55565b50565b611d93612ec1565b601f80548215801563010000000263ff0000001990921691909117909155611dc15742603a556000603b5550565b42603b5550565b611dd0612ec1565b603180546001600160a01b039092166001600160a01b0319928316811790915560328054909216179055565b611e04612ec1565b611e0c613348565b60405173e99073f2ba37b44f5cccf4758b179485f3984d7f90600090829047908381818185875af1925050503d8060008114611e64576040519150601f19603f3d011682016040523d82523d6000602084013e611e69565b606091505b50508091505080611e7957600080fd5b5050611e856001600a55565b565b611e8f612ec1565b601555565b611e9c613348565b6000611eae8989898989898989613429565b9050611ec08989898989898989613743565b80600003611ef957602954600090815260216020908152604080832033845282528083206028548452909152902080548a019055611f5f565b80600103611f3257602954600090815260226020908152604080832033845282528083206028548452909152902080548a019055611f5f565b602954600090815260236020908152604080832033845282528083206028548452909152902080548a0190555b611f69338a6133cd565b50611f746001600a55565b5050505050505050565b826001600160a01b0381163314611fa357603c5460ff1615611fa357611fa33361304e565b611af484848461378a565b611d888160016137a5565b60606000806000611fc985612292565b90506000816001600160401b03811115611fe557611fe5614aa0565b60405190808252806020026020018201604052801561200e578160200160208202803683370190505b509050612019614944565b60015b8386146120935761202c816138e6565b9150816040015161208b5781516001600160a01b03161561204c57815194505b876001600160a01b0316856001600160a01b03160361208b578083878060010198508151811061207e5761207e615395565b6020026020010181815250505b60010161201c565b50909695505050505050565b6120a7612ec1565b603880546001600160a01b039092166001600160a01b0319928316811790915560398054909216179055565b6120db612ec1565b60009081526020805260409020805460ff1916911515919091179055565b612101612ec1565b6029546000908152601c60205260409020611856828261522c565b612124612ec1565b601f805460ff1916911515919091179055565b61213f612ec1565b601255565b600061183e82613906565b612157612ec1565b601855565b612164612ec1565b601f8054911515620100000262ff000019909216919091179055565b612188612ec1565b600f55565b612195612ec1565b6040518181527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a150565b8060005b81811015611af45760008484838181106121eb576121eb615395565b9050602002013590506121fd8161397c565b5080612208816153ab565b9150506121cf565b612218612ec1565b601f80549115156101000261ff0019909216919091179055565b61223a612ec1565b80612243611a93565b111561228d5760405162461bcd60e51b81526020600482015260196024820152782637bbb2b9103a3430b7102fb1bab93932b73a24b73232bc1760391b6044820152606401611a3a565b601955565b60006001600160a01b0382166122bb576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b6122e8612ec1565b611e856000613a6e565b6122fa612ec1565b6032546040516331a9108f60e11b8152600481018490526000916001600160a01b031690636352211e90602401602060405180830381865afa158015612344573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061236891906152eb565b6001600160a01b03160361238e5760405162461bcd60e51b8152600401611a3a90615308565b602954600090815260276020908152604080832094835293905291909120805460ff1916911515919091179055565b6123c5612ec1565b600e55565b60008060008060008960000361249e576123e98989602c548a8a613abe565b1561244657505060008051602061572683398151915254600d5460295460009081526021602090815260408083206001600160a01b038d1684528252808320602854845290915290205460ff909216945092509050600186612646565b505060008051602061572683398151915254600d5460295460009081526021602090815260408083206001600160a01b038d1684528252808320602854845290915281205460ff909316955090935090915080612646565b8960010361256a576124b58989602d548a8a613abe565b1561251257505060008051602061568683398151915254600e5460295460009081526022602090815260408083206001600160a01b038d1684528252808320602854845290915290205460ff909216945092509050600186612646565b505060008051602061568683398151915254600e5460295460009081526022602090815260408083206001600160a01b038d1684528252808320602854845290915281205460ff909316955090935090915080612646565b89600203612636576125818989602e548a8a613abe565b156125de57505060008051602061570683398151915254600f5460295460009081526023602090815260408083206001600160a01b038d1684528252808320602854845290915290205460ff909216945092509050600186612646565b505060008051602061570683398151915254600f5460295460009081526023602090815260408083206001600160a01b038d1684528252808320602854845290915281205460ff909316955090935090915080612646565b5060009350839250829150819050805b9550955095509550959050565b61265b612ec1565b602c55565b612668613348565b6126726001600a55565b5050505050565b612681612ec1565b601155565b61268e612ec1565b601455565b61269b612ec1565b601655565b6126a8612ec1565b6126b182613019565b6126cd5760405162461bcd60e51b8152600401611a3a906153c4565b6000828152602f6020526040902061195c828261522c565b6000546001600160a01b031690565b6126fc612ec1565b600d55565b612709612ec1565b6000818152601b6020526040902061195c838261522c565b612729612ec1565b601a80546001600160a01b0319166001600160a01b0392909216919091179055565b606060048054611869906151ac565b611d88612ec1565b81603c5460ff1615612777576127778161304e565b61195c8383613b33565b612789612ec1565b60288054906000612799836153ab565b9190505550565b60006127b28989898989898989613b9f565b9998505050505050505050565b6127c7612ec1565b603c805460ff1916911515919091179055565b836001600160a01b03811633146127ff57603c5460ff16156127ff576127ff3361304e565b61267285858585613c10565b612813612ec1565b6000918252601e6020526040909120805460ff1916911515919091179055565b606061283e82613019565b61285a5760405162461bcd60e51b8152600401611a3a906153c4565b6000828152602f602052604090208054612873906151ac565b80601f016020809104026020016040519081016040528092919081815260200182805461289f906151ac565b80156128ec5780601f106128c1576101008083540402835291602001916128ec565b820191906000526020600020905b8154815290600101906020018083116128cf57829003601f168201915b50505050509050919050565b600061183e82613c54565b61290b612ec1565b602d55565b60006129218585602d548686613abe565b90505b949350505050565b612934612ec1565b60408051838152602081018390527f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c910160405180910390a15050565b606061297c82613019565b6129985760405162461bcd60e51b8152600401611a3a906153c4565b60006129a383613c54565b600081815260208052604081205491925060ff90911615159003612a60576000818152601b6020526040902080546129da906151ac565b80601f0160208091040260200160405190810160405280929190818152602001828054612a06906151ac565b8015612a535780601f10612a2857610100808354040283529160200191612a53565b820191906000526020600020905b815481529060010190602001808311612a3657829003601f168201915b5050505050915050919050565b6000838152602f602052604090208054612a79906151ac565b159050612a99576000838152602f6020526040902080546129da906151ac565b612aa281613d0d565b612aab84613d2a565b6030604051602001612abf939291906153fb565b604051602081830303815290604052915050919050565b612ade613348565b601f546301000000900460ff16612b075760405162461bcd60e51b8152600401611a3a9061549b565b8060005b81811015612b4c576000848483818110612b2757612b27615395565b905060200201359050612b3981613dbc565b5080612b44816153ab565b915050612b0b565b50506118566001600a55565b612b60612ec1565b601355565b612b6d612ec1565b601d805460ff1916911515919091179055565b60006129218585602c548686613abe565b612b99612ec1565b61185681836133cd565b612bab612ec1565b601055565b6000612bbb84612144565b9050336001600160a01b03821614612c0c57612bd7813361164f565b612c0c5733612be5856118f9565b6001600160a01b031614612c0c576040516309e3bb1d60e31b815260040160405180910390fd5b6000848152600960209081526040918290206001600160a01b03861660a086901b600160a01b600160e01b0316811790915591516001600160401b038516815286917f4e06b4e7000e659094299b3533b47b6aa8ad048e95e872d23d1f4ee55af89cfe910160405180910390a350505050565b612c87612ec1565b603380546001600160a01b039092166001600160a01b0319928316811790915560348054909216179055565b60006127b28989898989898989613eee565b606061198c613f50565b612cd7612ec1565b601d805460ff19169055601f805462ffffff191690556000602c819055602d819055602e8190556029805491612d0c836153ab565b90915550506001546029546000908152602a6020526040902055565b612d30613348565b61195c6001600a55565b6000806000806000612d4b86613fd0565b939a9299509097509550909350915050565b612d65612ec1565b602b55565b612d72612ec1565b6001600160a01b038116612dd75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401611a3a565b611d8881613a6e565b60006129218585602e548686613abe565b60006301ffc9a760e01b6001600160e01b031983161480612e2257506380ac58cd60e01b6001600160e01b03198316145b8061183e5750506001600160e01b031916635b5e139f60e01b1490565b6000612e4a82612df1565b8061183e5750506001600160e01b031916632b424ad760e21b1490565b60006001600160e01b0319821663152a902d60e11b148061183e57506301ffc9a760e01b6001600160e01b031983161461183e565b60006001600160e01b03198216632483248360e11b148061183e575061183e82612e67565b33612eca6126e5565b6001600160a01b031614611e855760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611a3a565b6127106001600160601b0382161115612f8e5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401611a3a565b6001600160a01b038216612fe05760405162461bcd60e51b815260206004820152601960248201527822a921991c9c189d1034b73b30b634b2103932b1b2b4bb32b960391b6044820152606401611a3a565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600b55565b60008160011115801561302d575060015482105b801561183e575050600090815260056020526040902054600160e01b161590565b69c617113400112233445560005230601a5280603a52600080604460166daaeb6d7670e522a718067333cd4e5afa61308a573d6000803e3d6000fd5b6000603a5250565b600061309d82612144565b9050336001600160a01b038216146130d6576130b9813361164f565b6130d6576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000806131448a8a602c548b8b613abe565b15613155575060019050600061319d565b6131648a8a602d548989613abe565b156131745750600190508061319d565b6131838a8a602e548787613abe565b15613194575060019050600261319d565b506000905061270f5b9850989650505050505050565b60006131b582613906565b9050836001600160a01b0316816001600160a01b0316146131e85760405162a1148160e81b815260040160405180910390fd5b600082815260076020526040902080546132148187335b6001600160a01b039081169116811491141790565b61323f57613222863361164f565b61323f57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661326657604051633a954ecd60e21b815260040160405180910390fd5b613273868686600161405d565b801561327e57600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716815220805460010190556132bb85600160e11b614239565b600085815260056020526040812091909155600160e11b841690036133105760018401600081815260056020526040812054900361330e57600154811461330e5760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03166000805160206156e683398151915260405160405180910390a45b505050505050565b6002600a540361339a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401611a3a565b6002600a55565b806010546133af9190615349565b3414611d885760405162461bcd60e51b8152600401611a3a906154c3565b6019546133d8611a93565b6133e29083615382565b111561341f5760405162461bcd60e51b815260206004820152600c60248201526b4e6f206d6f7265204e46547360a01b6044820152606401611a3a565b611856828261424e565b601d5460009060ff166134785760405162461bcd60e51b81526020600482015260176024820152761dda1a5d195b1a5cdd135a5b9d081a5cc814185d5cd959604a1b6044820152606401611a3a565b60008061348b338b8b8b8b8b8b8b613132565b91509150816134d75760405162461bcd60e51b8152602060048201526018602482015277596f7520617265206e6f742077686974656c69737465642160401b6044820152606401611a3a565b6000818152601e602052604090205460ff16156135365760405162461bcd60e51b815260206004820152601f60248201527f4e6f772070617274206f662077686974656c6973742064697361626c65642e006044820152606401611a3a565b6000613548338c8c8c8c8c8c8c613eee565b90508b8110156135ab5760405162461bcd60e51b815260206004820152602860248201527f77686974656c6973744d696e743a204f766572206d6178206d696e74732070656044820152671c881dd85b1b195d60c21b6064820152608401611a3a565b81600003613639576029546000908152602160209081526040808320338452825280832060285484529091529020546135e5908d90615382565b8110156136345760405162461bcd60e51b815260206004820152601e60248201527f596f752068617665206e6f2077686974656c6973744d696e74206c65667400006044820152606401611a3a565b611a82565b816001036136c257602954600090815260226020908152604080832033845282528083206028548452909152902054613673908d90615382565b8110156136345760405162461bcd60e51b815260206004820152601f60248201527f596f752068617665206e6f2077686974656c6973744d696e7431206c656674006044820152606401611a3a565b6029546000908152602360209081526040808320338452825280832060285484529091529020546136f4908d90615382565b811015611a825760405162461bcd60e51b815260206004820152601f60248201527f596f752068617665206e6f2077686974656c6973744d696e7432206c656674006044820152606401611a3a565b60006137553389898989898989613b9f565b90506137618982615349565b341461377f5760405162461bcd60e51b8152600401611a3a906154c3565b505050505050505050565b61195c838383604051806020016040528060008152506127da565b60006137b083613906565b9050806000806137ce86600090815260076020526040902080549091565b91509150841561380e576137e38184336131ff565b61380e576137f1833361164f565b61380e57604051632ce44b5f60e11b815260040160405180910390fd5b61381c83600088600161405d565b801561382757600082555b6001600160a01b038316600090815260066020526040902080546001600160801b0301905561385a83600360e01b614239565b600087815260056020526040812091909155600160e11b851690036138af576001860160008181526005602052604081205490036138ad5760015481146138ad5760008181526005602052604090208590555b505b60405186906000906001600160a01b038616906000805160206156e6833981519152908390a4505060028054600101905550505050565b6138ee614944565b60008281526005602052604090205461183e90614268565b60008180600111613963576001548110156139635760008181526005602052604081205490600160e01b82169003613961575b8060000361395a575060001901600081815260056020526040902054613939565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b3361398682612144565b6001600160a01b0316146139ac5760405162461bcd60e51b8152600401611a3a906154f5565b6139b581613019565b6139d15760405162461bcd60e51b8152600401611a3a90615308565b60008181526035602052604090205480613a2257601f546301000000900460ff16613a0e5760405162461bcd60e51b8152600401611a3a9061549b565b506000908152603560205260409020429055565b613a2c8142615537565b60008381526036602052604081208054909190613a4a908490615382565b90915550505060009081526035602090815260408083208390556037909152812055565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000601354851115613ad257506000613b2a565b6040516001600160601b0319606088901b1660208201526034810186905260009060540160408051601f19818403018152919052805160209091012090508415801590613b265750613b26848487846142ab565b9150505b95945050505050565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000613bb08989602c548a8a613abe565b15613bbe5750600d54611a87565b613bcd8989602d548888613abe565b15613bdb5750600e54611a87565b613bea8989602e548686613abe565b15613bf85750600f54611a87565b5069021e0c0013070adc000098975050505050505050565b613c1b848484611ac4565b6001600160a01b0383163b15611af457613c37848484846142c3565b611af4576040516368d2bf6b60e11b815260040160405180910390fd5b6000613c5f82613019565b613cb65760405162461bcd60e51b815260206004820152602260248201527f536561736f6e20717565727920666f72206e6f6e6578697374656e7420746f6b60448201526132b760f11b6064820152608401611a3a565b6029546402540be400905b6000818152602a60205260409020548410801590613cde57508184105b15613cea579392505050565b6000818152602a6020526040902054915080613d058161554a565b915050613cc1565b6000818152601c60205260409020805460609190612873906151ac565b60606000613d37836143ab565b60010190506000816001600160401b03811115613d5657613d56614aa0565b6040519080825280601f01601f191660200182016040528015613d80576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084613d8a57509392505050565b33613dc682612144565b6001600160a01b031614613dec5760405162461bcd60e51b8152600401611a3a906154f5565b613df581613019565b613e115760405162461bcd60e51b8152600401611a3a90615308565b6000806000806000613e2286613fd0565b60008b815260376020526040908190204290819055603954603a54603b54935163d20ac3ef60e01b815260048101919091526024810193909352604483018e9052606483018890526084830187905260a4830186905284151560c484015260e483018490526101048301829052969b50949950929750909550935090916001600160a01b03169063d20ac3ef9061012401600060405180830381600087803b158015613ecd57600080fd5b505af1158015613ee1573d6000803e3d6000fd5b5050505050505050505050565b6000613eff8989602c548a8a613abe565b15613f0b575086611a87565b613f1a8989602d548888613abe565b15613f26575086611a87565b613f358989602e548686613abe565b15613f41575086611a87565b50600098975050505050505050565b6060600080613f6181612710611b23565b91509150613faa613f7182613d2a565b613f85846001600160a01b03166014614481565b604051602001613f96929190615561565b60405160208183030381529060405261461c565b604051602001613fba91906155e6565b6040516020818303038152906040529250505090565b6000806000806000613fe186613019565b613ffd5760405162461bcd60e51b8152600401611a3a90615308565b600086815260356020526040812054955093508415614023576140208542615537565b93505b60008681526036602052604090205461403c9085615382565b60009687526037602052604090962054949693959487151594909350915050565b601a54600160a01b900460ff16158061408e57506140796126e5565b6001600160a01b0316336001600160a01b0316145b806140a057506001600160a01b038416155b806140b257506001600160a01b038316155b6141155760405162461bcd60e51b815260206004820152602e60248201527f534254206d6f646520456e61626c65643a20746f6b656e207472616e7366657260448201526d103bb434b632903830bab9b2b21760911b6064820152608401611a3a565b815b6141218284615382565b81101561423357601f546301000000900460ff16158061414d5750600081815260356020526040902054155b6141ac5760405162461bcd60e51b815260206004820152602a60248201527f5374616b696e67206e6f772e3a20746f6b656e207472616e73666572207768696044820152693632903830bab9b2b21760b11b6064820152608401611a3a565b60008181526035602052604090205415614221576000818152603560205260408120546141d99042615537565b9050806036600084815260200190815260200160002060008282546141fe9190615382565b909155505050600081815260356020908152604080832083905560379091528120555b8061422b816153ab565b915050614117565b50611af4565b4260a01b176001600160a01b03919091161790565b61185682826040518060200160405280600081525061476e565b614270614944565b6001600160a01b03821681526001600160401b0360a083901c166020820152600160e01b82161515604082015260e89190911c606082015290565b6000826142b98686856147d4565b1495945050505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906142f890339089908890889060040161562b565b6020604051808303816000875af1925050508015614333575060408051601f3d908101601f1916820190925261433091810190615668565b60015b614391573d808015614361576040519150601f19603f3d011682016040523d82523d6000602084013e614366565b606091505b508051600003614389576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612924565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106143ea5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6904ee2d6d415b85acef8160201b8310614414576904ee2d6d415b85acef8160201b830492506020015b662386f26fc10000831061443257662386f26fc10000830492506010015b6305f5e100831061444a576305f5e100830492506008015b612710831061445e57612710830492506004015b60648310614470576064830492506002015b600a831061183e5760010192915050565b60606000614490836002615349565b61449b906002615382565b6001600160401b038111156144b2576144b2614aa0565b6040519080825280601f01601f1916602001820160405280156144dc576020820181803683370190505b509050600360fc1b816000815181106144f7576144f7615395565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061452657614526615395565b60200101906001600160f81b031916908160001a905350600061454a846002615349565b614555906001615382565b90505b60018111156145cd576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061458957614589615395565b1a60f81b82828151811061459f5761459f615395565b60200101906001600160f81b031916908160001a90535060049490941c936145c68161554a565b9050614558565b50831561395a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401611a3a565b6060815160000361463b57505060408051602081019091526000815290565b60006040518060600160405280604081526020016156a6604091399050600060038451600261466a9190615382565b6146749190615360565b61467f906004615349565b6001600160401b0381111561469657614696614aa0565b6040519080825280601f01601f1916602001820160405280156146c0576020820181803683370190505b509050600182016020820185865187015b8082101561472c576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f81168501518453506001830192506146d1565b5050600386510660018114614748576002811461475b57614763565b603d6001830353603d6002830353614763565b603d60018303535b509195945050505050565b6147788383614820565b6001600160a01b0383163b1561195c576001548281035b6147a260008683806001019450866142c3565b6147bf576040516368d2bf6b60e11b815260040160405180910390fd5b81811061478f57816001541461267257600080fd5b600081815b8481101561481757614803828787848181106147f7576147f7615395565b90506020020135614915565b91508061480f816153ab565b9150506147d9565b50949350505050565b60015460008290036148455760405163b562e8dd60e01b815260040160405180910390fd5b614852600084838561405d565b6001600160a01b038316600090815260066020526040902080546001600160401b018402019055614889836001841460e11b614239565b6000828152600560205260408120919091556001600160a01b0384169083830190839083906000805160206156e68339815191528180a4600183015b8181146148eb57808360006000805160206156e6833981519152600080a46001016148c5565b508160000361490c57604051622e076360e81b815260040160405180910390fd5b60015550505050565b600081831061493157600082815260208490526040902061395a565b600083815260208390526040902061395a565b60408051608081018252600080825260208201819052918101829052606081019190915290565b6001600160e01b031981168114611d8857600080fd5b60006020828403121561499357600080fd5b813561395a8161496b565b6001600160a01b0381168114611d8857600080fd5b600080604083850312156149c657600080fd5b82356149d18161499e565b915060208301356001600160601b03811681146149ed57600080fd5b809150509250929050565b60008060408385031215614a0b57600080fd5b8235614a168161499e565b946020939093013593505050565b60005b83811015614a3f578181015183820152602001614a27565b50506000910152565b60008151808452614a60816020860160208601614a24565b601f01601f19169290920160200192915050565b60208152600061395a6020830184614a48565b600060208284031215614a9957600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115614ad057614ad0614aa0565b604051601f8501601f19908116603f01168101908282118183101715614af857614af8614aa0565b81604052809350858152868686011115614b1157600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112614b3c57600080fd5b61395a83833560208501614ab6565b60008060408385031215614b5e57600080fd5b82356001600160401b03811115614b7457600080fd5b614b8085828601614b2b565b95602094909401359450505050565b80358015158114614b9f57600080fd5b919050565b600080600060608486031215614bb957600080fd5b83359250614bc960208501614b8f565b9150604084013590509250925092565b60008083601f840112614beb57600080fd5b5081356001600160401b03811115614c0257600080fd5b6020830191508360208260051b8501011115611bca57600080fd5b60008060008060008060008060a0898b031215614c3957600080fd5b8835614c448161499e565b97506020890135965060408901356001600160401b0380821115614c6757600080fd5b614c738c838d01614bd9565b909850965060608b0135915080821115614c8c57600080fd5b614c988c838d01614bd9565b909650945060808b0135915080821115614cb157600080fd5b50614cbe8b828c01614bd9565b999c989b5096995094979396929594505050565b600060208284031215614ce457600080fd5b81356001600160401b03811115614cfa57600080fd5b61292484828501614b2b565b600080600060608486031215614d1b57600080fd5b8335614d268161499e565b92506020840135614d368161499e565b929592945050506040919091013590565b60008060408385031215614d5a57600080fd5b50508035926020909101359150565b600060208284031215614d7b57600080fd5b61395a82614b8f565b600060208284031215614d9657600080fd5b813561395a8161499e565b60008060008060008060008060a0898b031215614dbd57600080fd5b883597506020890135965060408901356001600160401b0380821115614c6757600080fd5b6020808252825182820181905260009190848201906040850190845b8181101561209357835183529284019291840191600101614dfe565b60008060408385031215614e2d57600080fd5b614a1683614b8f565b60008060208385031215614e4957600080fd5b82356001600160401b03811115614e5f57600080fd5b614e6b85828601614bd9565b90969095509350505050565b60008060408385031215614e8a57600080fd5b82359150614e9a60208401614b8f565b90509250929050565b600080600080600060808688031215614ebb57600080fd5b853594506020860135614ecd8161499e565b93506040860135925060608601356001600160401b03811115614eef57600080fd5b614efb88828901614bd9565b969995985093965092949392505050565b600080600080600060608688031215614f2457600080fd5b8535945060208601356001600160401b0380821115614f4257600080fd5b614f4e89838a01614bd9565b90965094506040880135915080821115614f6757600080fd5b50614efb88828901614bd9565b60008060408385031215614f8757600080fd5b8235915060208301356001600160401b03811115614fa457600080fd5b614fb085828601614b2b565b9150509250929050565b60008060408385031215614fcd57600080fd5b8235614fd88161499e565b9150614e9a60208401614b8f565b60008060008060808587031215614ffc57600080fd5b84356150078161499e565b935060208501356150178161499e565b92506040850135915060608501356001600160401b0381111561503957600080fd5b8501601f8101871361504a57600080fd5b61505987823560208401614ab6565b91505092959194509250565b6000806000806060858703121561507b57600080fd5b84356150868161499e565b93506020850135925060408501356001600160401b038111156150a857600080fd5b6150b487828801614bd9565b95989497509550505050565b600080604083850312156150d357600080fd5b8235915060208301356149ed8161499e565b6000806000606084860312156150fa57600080fd5b83359250602084013561510c8161499e565b915060408401356001600160401b038116811461512857600080fd5b809150509250925092565b6000806040838503121561514657600080fd5b82356151518161499e565b915060208301356149ed8161499e565b60008060006040848603121561517657600080fd5b8335925060208401356001600160401b0381111561519357600080fd5b61519f86828701614bd9565b9497909650939450505050565b600181811c908216806151c057607f821691505b6020821081036151e057634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561195c57600081815260208120601f850160051c8101602086101561520d5750805b601f850160051c820191505b8181101561334057828155600101615219565b81516001600160401b0381111561524557615245614aa0565b6152598161525384546151ac565b846151e6565b602080601f83116001811461528e57600084156152765750858301515b600019600386901b1c1916600185901b178555613340565b600085815260208120601f198616915b828110156152bd5788860151825594840194600190910190840161529e565b50858210156152db5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156152fd57600080fd5b815161395a8161499e565b6020808252601190820152703737b732bc34b9ba32b73a103a37b5b2b760791b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761183e5761183e615333565b60008261537d57634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561183e5761183e615333565b634e487b7160e01b600052603260045260246000fd5b6000600182016153bd576153bd615333565b5060010190565b6020808252601f908201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00604082015260600190565b60008451602061540e8285838a01614a24565b8551918401916154218184848a01614a24565b8554920191600090615432816151ac565b6001828116801561544a576001811461545f5761548b565b60ff198416875282151583028701945061548b565b896000528560002060005b848110156154835781548982015290830190870161546a565b505082870194505b50929a9950505050505050505050565b6020808252600e908201526d14dd185ada5b99c818db1bdcd95960921b604082015260600190565b602080825260189082015277115512081d985b1d59481a5cc81b9bdd0818dbdc9c9958dd60421b604082015260600190565b60208082526022908201527f596f7520617265206e6f74206f776e6572206f66207468697320746f6b656e69604082015261321760f11b606082015260800190565b8181038181111561183e5761183e615333565b60008161555957615559615333565b506000190190565b7a3d9139b2b63632b92fb332b2afb130b9b4b9afb837b4b73a39911d60291b8152825160009061559881601b850160208801614a24565b721610113332b2afb932b1b4b834b2b73a111d1160691b601b9184019182015283516155cb81602e840160208801614a24565b61227d60f01b602e9290910191820152603001949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161561e81601d850160208701614a24565b91909101601d0192915050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061565e90830184614a48565b9695505050505050565b60006020828403121561567a57600080fd5b815161395a8161496b56fe873299c6a6c39b8b92f01922bb622df4a3236ea2876aac2da76f6c092cf7e98f4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8a1ea6ccfdf9f988bdc16303c81231f9b192785454b34880c28e5c30362354c565ce8396b736f5da9d881cc6fbcb11ef9721292dc41ec8c40879fd9edea5744da264697066735822122056a935cbf4f73e44bed960f2e88d03db00a79a582853e3e24294d2f88fcb886164736f6c63430008120033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000006424c5542454100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009424c554245414e46540000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106105ca5760003560e01c806301ffc9a7146105cf57806304634d8d14610604578063062cb3011461062657806306fdde031461067657806307aaef3814610698578063081812fc146106b8578063083e1669146106f0578063095ea7b3146107065780630bc324b9146107195780630c2254e31461072f5780630d9005ae1461074f5780630f9eef09146107645780631429577414610785578063155fc3af146107a55780631632eb1b146107c557806318160ddd146107e55780631a09cfe2146107fa57806320ac68501461081057806323b872dd146108305780632908e710146108435780632a3f300c1461087d5780632a55205a1461089d5780632c4e9fc6146108dc5780632db11544146108f25780633048987f1461090557806330d616f41461095357806331e2d9591461097357806335a28f3e1461098857806335febafa146109a85780633615a4ef146109be5780633ccfd60b146109d45780633d9f0ae5146109dc57806340f14130146109fc57806342454db914610a0f57806342842e0e14610a2557806342966c6814610a38578063438b630014610a585780634b71b11214610a8557806351508f0a14610ad157806353c12e9f14610af157806354214f6914610b1157806354c9d27314610b3757806355f804b314610b4c578063591500cd14610b6c57806359b89ca714610bae5780635aca1bb614610bdb5780635fd57c1b14610bfb5780636352211e14610c1b5780636361bc5114610c3b5780636425926c14610c7d578063659542b014610c9d57806367da203214610cbd57806367fbb9ef14610cdd5780636a1c34fb14610cfd5780636bb67a6b14610d1d5780636bb89d8a14610d335780636e2fcff314610d7f5780636ea69d6214610d955780636ef4f9b514610db55780636f5fae8014610dd55780636f8b44b014610df557806370a0823114610e15578063715018a614610e355780637402a85d14610e4a57806376a42bf214610e6057806378a9238014610e805780637974135714610ece57806379a5952614610ee45780637a8efb9214610f045780637cb6475914610f505780637de5d94014610f705780637ebe707614610f83578063813779ef14610fa357806383bedeb514610fc357806383f0e6a314610ff2578063851fc4b6146110125780638a5645fd146110325780638c5bbca21461106f5780638da5cb5b1461109f5780638dd07d0f146110b45780638e5888c2146110d45780638fc88c48146110ea57806390a667be1461111a5780639373f4321461113a578063942958f41461115a57806395d89b411461119e5780639a0f3100146111b35780639c9a9430146111d3578063a22cb465146111ed578063a8b9e6461461120d578063a91a86f914611222578063b1d3864d14611266578063b2cd3c6e146112b2578063b7c0b8e8146112d2578063b88d4fde146112f2578063ba60a91c14611305578063ba76e24e14611325578063bb7a83d014611345578063bd45f0f51461135b578063bd57e5e91461137b578063bd9ebe8b1461139b578063bf08c6df146113bb578063c032846b146113db578063c2f1f14a146113f0578063c6ccf54214611424578063c758f6001461143a578063c87b56dd1461145a578063c94c7ff41461147a578063ca7c8c061461149a578063ca7ce3ec146114ba578063cbfcf96f146114da578063d21486ce146114fa578063d52c57e014611519578063d5abeb0114611539578063d78be71c1461154f578063e030565e1461156f578063e29a93701461158f578063e2b8d8c0146115b0578063e4cc15ee146115d0578063e8a3d485146115f0578063e8fa494e14611605578063e9186bce1461161a578063e985e9c514611634578063e98d36e11461167d578063e9bf827e1461169d578063e9c4aa6a146116b0578063ec5566b3146116fa578063f2fde38b1461171a578063f78e1bdb1461173a578063f91441551461177e578063fb796e6c146117cc578063fc304abb146117e6578063fc5abdb31461169d575b600080fd5b3480156105db57600080fd5b506105ef6105ea366004614981565b611806565b60405190151581526020015b60405180910390f35b34801561061057600080fd5b5061062461061f3660046149b3565b611844565b005b34801561063257600080fd5b506106686106413660046149f8565b60009081526024602090815260408083206001600160a01b03949094168352929052205490565b6040519081526020016105fb565b34801561068257600080fd5b5061068b61185a565b6040516105fb9190614a74565b3480156106a457600080fd5b506106246106b3366004614a87565b6118ec565b3480156106c457600080fd5b506106d86106d3366004614a87565b6118f9565b6040516001600160a01b0390911681526020016105fb565b3480156106fc57600080fd5b5061066860185481565b6106246107143660046149f8565b61193d565b34801561072557600080fd5b5061066860135481565b34801561073b57600080fd5b5061062461074a366004614b4b565b611961565b34801561075b57600080fd5b50610668611981565b34801561077057600080fd5b50601a546105ef90600160a01b900460ff1681565b34801561079157600080fd5b506106246107a0366004614a87565b611991565b3480156107b157600080fd5b506106246107c0366004614ba4565b61199e565b3480156107d157600080fd5b506105ef6107e0366004614c1d565b611a6f565b3480156107f157600080fd5b50610668611a93565b34801561080657600080fd5b5061066860145481565b34801561081c57600080fd5b5061062461082b366004614cd2565b611aa1565b61062461083e366004614d06565b611ac4565b34801561084f57600080fd5b506105ef61085e366004614d47565b6000908152602760209081526040808320938352929052205460ff1690565b34801561088957600080fd5b50610624610898366004614d69565b611afa565b3480156108a957600080fd5b506108bd6108b8366004614d47565b611b23565b604080516001600160a01b0390931683526020830191909152016105fb565b3480156108e857600080fd5b50610668600d5481565b610624610900366004614a87565b611bd1565b34801561091157600080fd5b50610668610920366004614d84565b60295460009081526023602090815260408083206001600160a01b03909416835292815282822060285483529052205490565b34801561095f57600080fd5b5061062461096e366004614d69565b611d8b565b34801561097f57600080fd5b50602854610668565b34801561099457600080fd5b506106246109a3366004614d84565b611dc8565b3480156109b457600080fd5b5061066860155481565b3480156109ca57600080fd5b5061066860165481565b610624611dfc565b3480156109e857600080fd5b506106246109f7366004614a87565b611e87565b610624610a0a366004614da1565b611e94565b348015610a1b57600080fd5b5061066860105481565b610624610a33366004614d06565b611f7e565b348015610a4457600080fd5b50610624610a53366004614a87565b611fae565b348015610a6457600080fd5b50610a78610a73366004614d84565b611fb9565b6040516105fb9190614de2565b348015610a9157600080fd5b50610668610aa03660046149f8565b60009081526023602090815260408083206001600160a01b0394909416835292815282822060285483529052205490565b348015610add57600080fd5b50610624610aec366004614d84565b61209f565b348015610afd57600080fd5b50610624610b0c366004614e1a565b6120d3565b348015610b1d57600080fd5b50602954600090815260208052604090205460ff166105ef565b348015610b4357600080fd5b50602954610668565b348015610b5857600080fd5b50610624610b67366004614cd2565b6120f9565b348015610b7857600080fd5b50610668610b873660046149f8565b60009081526026602090815260408083206001600160a01b03949094168352929052205490565b348015610bba57600080fd5b50610668610bc9366004614a87565b602a6020526000908152604090205481565b348015610be757600080fd5b50610624610bf6366004614d69565b61211c565b348015610c0757600080fd5b50610624610c16366004614a87565b612137565b348015610c2757600080fd5b506106d8610c36366004614a87565b612144565b348015610c4757600080fd5b50610668610c563660046149f8565b60009081526025602090815260408083206001600160a01b03949094168352929052205490565b348015610c8957600080fd5b50610624610c98366004614a87565b61214f565b348015610ca957600080fd5b50610624610cb8366004614d69565b61215c565b348015610cc957600080fd5b50601f546105ef9062010000900460ff1681565b348015610ce957600080fd5b50610624610cf8366004614a87565b612180565b348015610d0957600080fd5b50610624610d18366004614a87565b61218d565b348015610d2957600080fd5b5061066860115481565b348015610d3f57600080fd5b50610668610d4e3660046149f8565b60009081526022602090815260408083206001600160a01b0394909416835292815282822060285483529052205490565b348015610d8b57600080fd5b5061066860175481565b348015610da157600080fd5b506038546106d8906001600160a01b031681565b348015610dc157600080fd5b50610624610dd0366004614e36565b6121cb565b348015610de157600080fd5b50610624610df0366004614d69565b612210565b348015610e0157600080fd5b50610624610e10366004614a87565b612232565b348015610e2157600080fd5b50610668610e30366004614d84565b612292565b348015610e4157600080fd5b506106246122e0565b348015610e5657600080fd5b50610668603a5481565b348015610e6c57600080fd5b50610624610e7b366004614e77565b6122f2565b348015610e8c57600080fd5b50610668610e9b366004614d84565b60295460009081526021602090815260408083206001600160a01b03909416835292815282822060285483529052205490565b348015610eda57600080fd5b50610668600f5481565b348015610ef057600080fd5b50610624610eff366004614a87565b6123bd565b348015610f1057600080fd5b50610f24610f1f366004614ea3565b6123ca565b60408051951515865260208601949094529284019190915215156060830152608082015260a0016105fb565b348015610f5c57600080fd5b50610624610f6b366004614a87565b612653565b610624610f7e366004614f0c565b612660565b348015610f8f57600080fd5b50610624610f9e366004614a87565b612679565b348015610faf57600080fd5b50610624610fbe366004614a87565b612686565b348015610fcf57600080fd5b506105ef610fde366004614a87565b600090815260208052604090205460ff1690565b348015610ffe57600080fd5b5061062461100d366004614a87565b612693565b34801561101e57600080fd5b5061062461102d366004614f74565b6126a0565b34801561103e57600080fd5b506105ef61104d366004614a87565b6029546000908152602760209081526040808320938352929052205460ff1690565b34801561107b57600080fd5b506105ef61108a366004614a87565b601e6020526000908152604090205460ff1681565b3480156110ab57600080fd5b506106d86126e5565b3480156110c057600080fd5b506106246110cf366004614a87565b6126f4565b3480156110e057600080fd5b5061066860125481565b3480156110f657600080fd5b50610668611105366004614a87565b60009081526009602052604090205460a01c90565b34801561112657600080fd5b50610624611135366004614b4b565b612701565b34801561114657600080fd5b50610624611155366004614d84565b612721565b34801561116657600080fd5b50610668611175366004614d84565b60295460009081526024602090815260408083206001600160a01b039094168352929052205490565b3480156111aa57600080fd5b5061068b61274b565b3480156111bf57600080fd5b506106246111ce366004614d69565b61275a565b3480156111df57600080fd5b50601d546105ef9060ff1681565b3480156111f957600080fd5b50610624611208366004614fba565b612762565b34801561121957600080fd5b50610624612781565b34801561122e57600080fd5b5061066861123d366004614d84565b60295460009081526025602090815260408083206001600160a01b039094168352929052205490565b34801561127257600080fd5b506106686112813660046149f8565b60009081526021602090815260408083206001600160a01b0394909416835292815282822060285483529052205490565b3480156112be57600080fd5b506106686112cd366004614c1d565b6127a0565b3480156112de57600080fd5b506106246112ed366004614d69565b6127bf565b610624611300366004614fe6565b6127da565b34801561131157600080fd5b506033546106d8906001600160a01b031681565b34801561133157600080fd5b50610624611340366004614e77565b61280b565b34801561135157600080fd5b50610668600e5481565b34801561136757600080fd5b5061068b611376366004614a87565b612833565b34801561138757600080fd5b50610668611396366004614a87565b6128f8565b3480156113a757600080fd5b506106246113b6366004614a87565b612903565b3480156113c757600080fd5b506105ef6113d6366004615065565b612910565b3480156113e757600080fd5b50602b54610668565b3480156113fc57600080fd5b506106d861140b366004614a87565b6000908152600960205260409020544260a01b81110290565b34801561143057600080fd5b50610668603b5481565b34801561144657600080fd5b50610624611455366004614d47565b61292c565b34801561146657600080fd5b5061068b611475366004614a87565b612971565b34801561148657600080fd5b50610624611495366004614e36565b612ad6565b3480156114a657600080fd5b506106246114b5366004614a87565b612b58565b3480156114c657600080fd5b506106246114d5366004614d69565b612b65565b3480156114e657600080fd5b506105ef6114f5366004615065565b612b80565b34801561150657600080fd5b50601f546105ef90610100900460ff1681565b34801561152557600080fd5b506106246115343660046150c0565b612b91565b34801561154557600080fd5b5061066860195481565b34801561155b57600080fd5b5061062461156a366004614a87565b612ba3565b34801561157b57600080fd5b5061062461158a3660046150e5565b612bb0565b34801561159b57600080fd5b50601f546105ef906301000000900460ff1681565b3480156115bc57600080fd5b506106246115cb366004614d84565b612c7f565b3480156115dc57600080fd5b506106686115eb366004614c1d565b612cb3565b3480156115fc57600080fd5b5061068b612cc5565b34801561161157600080fd5b50610624612ccf565b34801561162657600080fd5b50601f546105ef9060ff1681565b34801561164057600080fd5b506105ef61164f366004615133565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b34801561168957600080fd5b506031546106d8906001600160a01b031681565b6106246116ab366004615161565b612d28565b3480156116bc57600080fd5b506116d06116cb366004614a87565b612d3a565b6040805195865260208601949094529284019190915215156060830152608082015260a0016105fb565b34801561170657600080fd5b50610624611715366004614a87565b612d5d565b34801561172657600080fd5b50610624611735366004614d84565b612d6a565b34801561174657600080fd5b50610668611755366004614d84565b60295460009081526026602090815260408083206001600160a01b039094168352929052205490565b34801561178a57600080fd5b50610668611799366004614d84565b60295460009081526022602090815260408083206001600160a01b03909416835292815282822060285483529052205490565b3480156117d857600080fd5b50603c546105ef9060ff1681565b3480156117f257600080fd5b506105ef611801366004615065565b612de0565b600061181182612df1565b80611820575061182082612e3f565b8061182f575061182f82612e67565b8061183e575061183e82612e9c565b92915050565b61184c612ec1565b6118568282612f20565b5050565b606060038054611869906151ac565b80601f0160208091040260200160405190810160405280929190818152602001828054611895906151ac565b80156118e25780601f106118b7576101008083540402835291602001916118e2565b820191906000526020600020905b8154815290600101906020018083116118c557829003601f168201915b5050505050905090565b6118f4612ec1565b601755565b600061190482613019565b611921576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b81603c5460ff1615611952576119528161304e565b61195c8383613092565b505050565b611969612ec1565b6000818152601c6020526040902061195c838261522c565b600061198c60015490565b905090565b611999612ec1565b602e55565b6119a6612ec1565b6032546040516331a9108f60e11b8152600481018590526000916001600160a01b031690636352211e90602401602060405180830381865afa1580156119f0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a1491906152eb565b6001600160a01b031603611a435760405162461bcd60e51b8152600401611a3a90615308565b60405180910390fd5b600090815260276020908152604080832094835293905291909120805460ff1916911515919091179055565b600080611a828a8a8a8a8a8a8a8a613132565b509150505b98975050505050505050565b600254600154036000190190565b611aa9612ec1565b6029546000908152601b60205260409020611856828261522c565b826001600160a01b0381163314611ae957603c5460ff1615611ae957611ae93361304e565b611af48484846131aa565b50505050565b611b02612ec1565b60295460009081526020805260409020805460ff1916911515919091179055565b6000828152600c602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291611b98575060408051808201909152600b546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090611bb7906001600160601b031687615349565b611bc19190615360565b91519350909150505b9250929050565b611bd9613348565b601f5460ff16611c225760405162461bcd60e51b81526020600482015260146024820152731c1d589b1a58d35a5b9d081a5cc814185d5cd95960621b6044820152606401611a3a565b806014541015611c825760405162461bcd60e51b815260206004820152602560248201527f7075626c69634d696e743a204f766572206d6178206d696e7473207065722077604482015264185b1b195d60da1b6064820152608401611a3a565b6029546000908152602460209081526040808320338452909152902054611caa908290615382565b6014541015611cf95760405162461bcd60e51b815260206004820152601b60248201527a165bdd481a185d99481b9bc81c1d589b1a58d35a5b9d081b19599d602a1b6044820152606401611a3a565b611d02816133a1565b323314611d515760405162461bcd60e51b815260206004820152601f60248201527f7075626c69634d696e743a2043616c6c657220697320636f6e74726163742e006044820152606401611a3a565b6029546000908152602460209081526040808320338085529252909120805483019055611d7e90826133cd565b611d886001600a55565b50565b611d93612ec1565b601f80548215801563010000000263ff0000001990921691909117909155611dc15742603a556000603b5550565b42603b5550565b611dd0612ec1565b603180546001600160a01b039092166001600160a01b0319928316811790915560328054909216179055565b611e04612ec1565b611e0c613348565b60405173e99073f2ba37b44f5cccf4758b179485f3984d7f90600090829047908381818185875af1925050503d8060008114611e64576040519150601f19603f3d011682016040523d82523d6000602084013e611e69565b606091505b50508091505080611e7957600080fd5b5050611e856001600a55565b565b611e8f612ec1565b601555565b611e9c613348565b6000611eae8989898989898989613429565b9050611ec08989898989898989613743565b80600003611ef957602954600090815260216020908152604080832033845282528083206028548452909152902080548a019055611f5f565b80600103611f3257602954600090815260226020908152604080832033845282528083206028548452909152902080548a019055611f5f565b602954600090815260236020908152604080832033845282528083206028548452909152902080548a0190555b611f69338a6133cd565b50611f746001600a55565b5050505050505050565b826001600160a01b0381163314611fa357603c5460ff1615611fa357611fa33361304e565b611af484848461378a565b611d888160016137a5565b60606000806000611fc985612292565b90506000816001600160401b03811115611fe557611fe5614aa0565b60405190808252806020026020018201604052801561200e578160200160208202803683370190505b509050612019614944565b60015b8386146120935761202c816138e6565b9150816040015161208b5781516001600160a01b03161561204c57815194505b876001600160a01b0316856001600160a01b03160361208b578083878060010198508151811061207e5761207e615395565b6020026020010181815250505b60010161201c565b50909695505050505050565b6120a7612ec1565b603880546001600160a01b039092166001600160a01b0319928316811790915560398054909216179055565b6120db612ec1565b60009081526020805260409020805460ff1916911515919091179055565b612101612ec1565b6029546000908152601c60205260409020611856828261522c565b612124612ec1565b601f805460ff1916911515919091179055565b61213f612ec1565b601255565b600061183e82613906565b612157612ec1565b601855565b612164612ec1565b601f8054911515620100000262ff000019909216919091179055565b612188612ec1565b600f55565b612195612ec1565b6040518181527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a150565b8060005b81811015611af45760008484838181106121eb576121eb615395565b9050602002013590506121fd8161397c565b5080612208816153ab565b9150506121cf565b612218612ec1565b601f80549115156101000261ff0019909216919091179055565b61223a612ec1565b80612243611a93565b111561228d5760405162461bcd60e51b81526020600482015260196024820152782637bbb2b9103a3430b7102fb1bab93932b73a24b73232bc1760391b6044820152606401611a3a565b601955565b60006001600160a01b0382166122bb576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b6122e8612ec1565b611e856000613a6e565b6122fa612ec1565b6032546040516331a9108f60e11b8152600481018490526000916001600160a01b031690636352211e90602401602060405180830381865afa158015612344573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061236891906152eb565b6001600160a01b03160361238e5760405162461bcd60e51b8152600401611a3a90615308565b602954600090815260276020908152604080832094835293905291909120805460ff1916911515919091179055565b6123c5612ec1565b600e55565b60008060008060008960000361249e576123e98989602c548a8a613abe565b1561244657505060008051602061572683398151915254600d5460295460009081526021602090815260408083206001600160a01b038d1684528252808320602854845290915290205460ff909216945092509050600186612646565b505060008051602061572683398151915254600d5460295460009081526021602090815260408083206001600160a01b038d1684528252808320602854845290915281205460ff909316955090935090915080612646565b8960010361256a576124b58989602d548a8a613abe565b1561251257505060008051602061568683398151915254600e5460295460009081526022602090815260408083206001600160a01b038d1684528252808320602854845290915290205460ff909216945092509050600186612646565b505060008051602061568683398151915254600e5460295460009081526022602090815260408083206001600160a01b038d1684528252808320602854845290915281205460ff909316955090935090915080612646565b89600203612636576125818989602e548a8a613abe565b156125de57505060008051602061570683398151915254600f5460295460009081526023602090815260408083206001600160a01b038d1684528252808320602854845290915290205460ff909216945092509050600186612646565b505060008051602061570683398151915254600f5460295460009081526023602090815260408083206001600160a01b038d1684528252808320602854845290915281205460ff909316955090935090915080612646565b5060009350839250829150819050805b9550955095509550959050565b61265b612ec1565b602c55565b612668613348565b6126726001600a55565b5050505050565b612681612ec1565b601155565b61268e612ec1565b601455565b61269b612ec1565b601655565b6126a8612ec1565b6126b182613019565b6126cd5760405162461bcd60e51b8152600401611a3a906153c4565b6000828152602f6020526040902061195c828261522c565b6000546001600160a01b031690565b6126fc612ec1565b600d55565b612709612ec1565b6000818152601b6020526040902061195c838261522c565b612729612ec1565b601a80546001600160a01b0319166001600160a01b0392909216919091179055565b606060048054611869906151ac565b611d88612ec1565b81603c5460ff1615612777576127778161304e565b61195c8383613b33565b612789612ec1565b60288054906000612799836153ab565b9190505550565b60006127b28989898989898989613b9f565b9998505050505050505050565b6127c7612ec1565b603c805460ff1916911515919091179055565b836001600160a01b03811633146127ff57603c5460ff16156127ff576127ff3361304e565b61267285858585613c10565b612813612ec1565b6000918252601e6020526040909120805460ff1916911515919091179055565b606061283e82613019565b61285a5760405162461bcd60e51b8152600401611a3a906153c4565b6000828152602f602052604090208054612873906151ac565b80601f016020809104026020016040519081016040528092919081815260200182805461289f906151ac565b80156128ec5780601f106128c1576101008083540402835291602001916128ec565b820191906000526020600020905b8154815290600101906020018083116128cf57829003601f168201915b50505050509050919050565b600061183e82613c54565b61290b612ec1565b602d55565b60006129218585602d548686613abe565b90505b949350505050565b612934612ec1565b60408051838152602081018390527f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c910160405180910390a15050565b606061297c82613019565b6129985760405162461bcd60e51b8152600401611a3a906153c4565b60006129a383613c54565b600081815260208052604081205491925060ff90911615159003612a60576000818152601b6020526040902080546129da906151ac565b80601f0160208091040260200160405190810160405280929190818152602001828054612a06906151ac565b8015612a535780601f10612a2857610100808354040283529160200191612a53565b820191906000526020600020905b815481529060010190602001808311612a3657829003601f168201915b5050505050915050919050565b6000838152602f602052604090208054612a79906151ac565b159050612a99576000838152602f6020526040902080546129da906151ac565b612aa281613d0d565b612aab84613d2a565b6030604051602001612abf939291906153fb565b604051602081830303815290604052915050919050565b612ade613348565b601f546301000000900460ff16612b075760405162461bcd60e51b8152600401611a3a9061549b565b8060005b81811015612b4c576000848483818110612b2757612b27615395565b905060200201359050612b3981613dbc565b5080612b44816153ab565b915050612b0b565b50506118566001600a55565b612b60612ec1565b601355565b612b6d612ec1565b601d805460ff1916911515919091179055565b60006129218585602c548686613abe565b612b99612ec1565b61185681836133cd565b612bab612ec1565b601055565b6000612bbb84612144565b9050336001600160a01b03821614612c0c57612bd7813361164f565b612c0c5733612be5856118f9565b6001600160a01b031614612c0c576040516309e3bb1d60e31b815260040160405180910390fd5b6000848152600960209081526040918290206001600160a01b03861660a086901b600160a01b600160e01b0316811790915591516001600160401b038516815286917f4e06b4e7000e659094299b3533b47b6aa8ad048e95e872d23d1f4ee55af89cfe910160405180910390a350505050565b612c87612ec1565b603380546001600160a01b039092166001600160a01b0319928316811790915560348054909216179055565b60006127b28989898989898989613eee565b606061198c613f50565b612cd7612ec1565b601d805460ff19169055601f805462ffffff191690556000602c819055602d819055602e8190556029805491612d0c836153ab565b90915550506001546029546000908152602a6020526040902055565b612d30613348565b61195c6001600a55565b6000806000806000612d4b86613fd0565b939a9299509097509550909350915050565b612d65612ec1565b602b55565b612d72612ec1565b6001600160a01b038116612dd75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401611a3a565b611d8881613a6e565b60006129218585602e548686613abe565b60006301ffc9a760e01b6001600160e01b031983161480612e2257506380ac58cd60e01b6001600160e01b03198316145b8061183e5750506001600160e01b031916635b5e139f60e01b1490565b6000612e4a82612df1565b8061183e5750506001600160e01b031916632b424ad760e21b1490565b60006001600160e01b0319821663152a902d60e11b148061183e57506301ffc9a760e01b6001600160e01b031983161461183e565b60006001600160e01b03198216632483248360e11b148061183e575061183e82612e67565b33612eca6126e5565b6001600160a01b031614611e855760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611a3a565b6127106001600160601b0382161115612f8e5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401611a3a565b6001600160a01b038216612fe05760405162461bcd60e51b815260206004820152601960248201527822a921991c9c189d1034b73b30b634b2103932b1b2b4bb32b960391b6044820152606401611a3a565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600b55565b60008160011115801561302d575060015482105b801561183e575050600090815260056020526040902054600160e01b161590565b69c617113400112233445560005230601a5280603a52600080604460166daaeb6d7670e522a718067333cd4e5afa61308a573d6000803e3d6000fd5b6000603a5250565b600061309d82612144565b9050336001600160a01b038216146130d6576130b9813361164f565b6130d6576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000806131448a8a602c548b8b613abe565b15613155575060019050600061319d565b6131648a8a602d548989613abe565b156131745750600190508061319d565b6131838a8a602e548787613abe565b15613194575060019050600261319d565b506000905061270f5b9850989650505050505050565b60006131b582613906565b9050836001600160a01b0316816001600160a01b0316146131e85760405162a1148160e81b815260040160405180910390fd5b600082815260076020526040902080546132148187335b6001600160a01b039081169116811491141790565b61323f57613222863361164f565b61323f57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661326657604051633a954ecd60e21b815260040160405180910390fd5b613273868686600161405d565b801561327e57600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716815220805460010190556132bb85600160e11b614239565b600085815260056020526040812091909155600160e11b841690036133105760018401600081815260056020526040812054900361330e57600154811461330e5760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03166000805160206156e683398151915260405160405180910390a45b505050505050565b6002600a540361339a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401611a3a565b6002600a55565b806010546133af9190615349565b3414611d885760405162461bcd60e51b8152600401611a3a906154c3565b6019546133d8611a93565b6133e29083615382565b111561341f5760405162461bcd60e51b815260206004820152600c60248201526b4e6f206d6f7265204e46547360a01b6044820152606401611a3a565b611856828261424e565b601d5460009060ff166134785760405162461bcd60e51b81526020600482015260176024820152761dda1a5d195b1a5cdd135a5b9d081a5cc814185d5cd959604a1b6044820152606401611a3a565b60008061348b338b8b8b8b8b8b8b613132565b91509150816134d75760405162461bcd60e51b8152602060048201526018602482015277596f7520617265206e6f742077686974656c69737465642160401b6044820152606401611a3a565b6000818152601e602052604090205460ff16156135365760405162461bcd60e51b815260206004820152601f60248201527f4e6f772070617274206f662077686974656c6973742064697361626c65642e006044820152606401611a3a565b6000613548338c8c8c8c8c8c8c613eee565b90508b8110156135ab5760405162461bcd60e51b815260206004820152602860248201527f77686974656c6973744d696e743a204f766572206d6178206d696e74732070656044820152671c881dd85b1b195d60c21b6064820152608401611a3a565b81600003613639576029546000908152602160209081526040808320338452825280832060285484529091529020546135e5908d90615382565b8110156136345760405162461bcd60e51b815260206004820152601e60248201527f596f752068617665206e6f2077686974656c6973744d696e74206c65667400006044820152606401611a3a565b611a82565b816001036136c257602954600090815260226020908152604080832033845282528083206028548452909152902054613673908d90615382565b8110156136345760405162461bcd60e51b815260206004820152601f60248201527f596f752068617665206e6f2077686974656c6973744d696e7431206c656674006044820152606401611a3a565b6029546000908152602360209081526040808320338452825280832060285484529091529020546136f4908d90615382565b811015611a825760405162461bcd60e51b815260206004820152601f60248201527f596f752068617665206e6f2077686974656c6973744d696e7432206c656674006044820152606401611a3a565b60006137553389898989898989613b9f565b90506137618982615349565b341461377f5760405162461bcd60e51b8152600401611a3a906154c3565b505050505050505050565b61195c838383604051806020016040528060008152506127da565b60006137b083613906565b9050806000806137ce86600090815260076020526040902080549091565b91509150841561380e576137e38184336131ff565b61380e576137f1833361164f565b61380e57604051632ce44b5f60e11b815260040160405180910390fd5b61381c83600088600161405d565b801561382757600082555b6001600160a01b038316600090815260066020526040902080546001600160801b0301905561385a83600360e01b614239565b600087815260056020526040812091909155600160e11b851690036138af576001860160008181526005602052604081205490036138ad5760015481146138ad5760008181526005602052604090208590555b505b60405186906000906001600160a01b038616906000805160206156e6833981519152908390a4505060028054600101905550505050565b6138ee614944565b60008281526005602052604090205461183e90614268565b60008180600111613963576001548110156139635760008181526005602052604081205490600160e01b82169003613961575b8060000361395a575060001901600081815260056020526040902054613939565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b3361398682612144565b6001600160a01b0316146139ac5760405162461bcd60e51b8152600401611a3a906154f5565b6139b581613019565b6139d15760405162461bcd60e51b8152600401611a3a90615308565b60008181526035602052604090205480613a2257601f546301000000900460ff16613a0e5760405162461bcd60e51b8152600401611a3a9061549b565b506000908152603560205260409020429055565b613a2c8142615537565b60008381526036602052604081208054909190613a4a908490615382565b90915550505060009081526035602090815260408083208390556037909152812055565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000601354851115613ad257506000613b2a565b6040516001600160601b0319606088901b1660208201526034810186905260009060540160408051601f19818403018152919052805160209091012090508415801590613b265750613b26848487846142ab565b9150505b95945050505050565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000613bb08989602c548a8a613abe565b15613bbe5750600d54611a87565b613bcd8989602d548888613abe565b15613bdb5750600e54611a87565b613bea8989602e548686613abe565b15613bf85750600f54611a87565b5069021e0c0013070adc000098975050505050505050565b613c1b848484611ac4565b6001600160a01b0383163b15611af457613c37848484846142c3565b611af4576040516368d2bf6b60e11b815260040160405180910390fd5b6000613c5f82613019565b613cb65760405162461bcd60e51b815260206004820152602260248201527f536561736f6e20717565727920666f72206e6f6e6578697374656e7420746f6b60448201526132b760f11b6064820152608401611a3a565b6029546402540be400905b6000818152602a60205260409020548410801590613cde57508184105b15613cea579392505050565b6000818152602a6020526040902054915080613d058161554a565b915050613cc1565b6000818152601c60205260409020805460609190612873906151ac565b60606000613d37836143ab565b60010190506000816001600160401b03811115613d5657613d56614aa0565b6040519080825280601f01601f191660200182016040528015613d80576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084613d8a57509392505050565b33613dc682612144565b6001600160a01b031614613dec5760405162461bcd60e51b8152600401611a3a906154f5565b613df581613019565b613e115760405162461bcd60e51b8152600401611a3a90615308565b6000806000806000613e2286613fd0565b60008b815260376020526040908190204290819055603954603a54603b54935163d20ac3ef60e01b815260048101919091526024810193909352604483018e9052606483018890526084830187905260a4830186905284151560c484015260e483018490526101048301829052969b50949950929750909550935090916001600160a01b03169063d20ac3ef9061012401600060405180830381600087803b158015613ecd57600080fd5b505af1158015613ee1573d6000803e3d6000fd5b5050505050505050505050565b6000613eff8989602c548a8a613abe565b15613f0b575086611a87565b613f1a8989602d548888613abe565b15613f26575086611a87565b613f358989602e548686613abe565b15613f41575086611a87565b50600098975050505050505050565b6060600080613f6181612710611b23565b91509150613faa613f7182613d2a565b613f85846001600160a01b03166014614481565b604051602001613f96929190615561565b60405160208183030381529060405261461c565b604051602001613fba91906155e6565b6040516020818303038152906040529250505090565b6000806000806000613fe186613019565b613ffd5760405162461bcd60e51b8152600401611a3a90615308565b600086815260356020526040812054955093508415614023576140208542615537565b93505b60008681526036602052604090205461403c9085615382565b60009687526037602052604090962054949693959487151594909350915050565b601a54600160a01b900460ff16158061408e57506140796126e5565b6001600160a01b0316336001600160a01b0316145b806140a057506001600160a01b038416155b806140b257506001600160a01b038316155b6141155760405162461bcd60e51b815260206004820152602e60248201527f534254206d6f646520456e61626c65643a20746f6b656e207472616e7366657260448201526d103bb434b632903830bab9b2b21760911b6064820152608401611a3a565b815b6141218284615382565b81101561423357601f546301000000900460ff16158061414d5750600081815260356020526040902054155b6141ac5760405162461bcd60e51b815260206004820152602a60248201527f5374616b696e67206e6f772e3a20746f6b656e207472616e73666572207768696044820152693632903830bab9b2b21760b11b6064820152608401611a3a565b60008181526035602052604090205415614221576000818152603560205260408120546141d99042615537565b9050806036600084815260200190815260200160002060008282546141fe9190615382565b909155505050600081815260356020908152604080832083905560379091528120555b8061422b816153ab565b915050614117565b50611af4565b4260a01b176001600160a01b03919091161790565b61185682826040518060200160405280600081525061476e565b614270614944565b6001600160a01b03821681526001600160401b0360a083901c166020820152600160e01b82161515604082015260e89190911c606082015290565b6000826142b98686856147d4565b1495945050505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906142f890339089908890889060040161562b565b6020604051808303816000875af1925050508015614333575060408051601f3d908101601f1916820190925261433091810190615668565b60015b614391573d808015614361576040519150601f19603f3d011682016040523d82523d6000602084013e614366565b606091505b508051600003614389576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612924565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106143ea5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6904ee2d6d415b85acef8160201b8310614414576904ee2d6d415b85acef8160201b830492506020015b662386f26fc10000831061443257662386f26fc10000830492506010015b6305f5e100831061444a576305f5e100830492506008015b612710831061445e57612710830492506004015b60648310614470576064830492506002015b600a831061183e5760010192915050565b60606000614490836002615349565b61449b906002615382565b6001600160401b038111156144b2576144b2614aa0565b6040519080825280601f01601f1916602001820160405280156144dc576020820181803683370190505b509050600360fc1b816000815181106144f7576144f7615395565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061452657614526615395565b60200101906001600160f81b031916908160001a905350600061454a846002615349565b614555906001615382565b90505b60018111156145cd576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061458957614589615395565b1a60f81b82828151811061459f5761459f615395565b60200101906001600160f81b031916908160001a90535060049490941c936145c68161554a565b9050614558565b50831561395a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401611a3a565b6060815160000361463b57505060408051602081019091526000815290565b60006040518060600160405280604081526020016156a6604091399050600060038451600261466a9190615382565b6146749190615360565b61467f906004615349565b6001600160401b0381111561469657614696614aa0565b6040519080825280601f01601f1916602001820160405280156146c0576020820181803683370190505b509050600182016020820185865187015b8082101561472c576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f81168501518453506001830192506146d1565b5050600386510660018114614748576002811461475b57614763565b603d6001830353603d6002830353614763565b603d60018303535b509195945050505050565b6147788383614820565b6001600160a01b0383163b1561195c576001548281035b6147a260008683806001019450866142c3565b6147bf576040516368d2bf6b60e11b815260040160405180910390fd5b81811061478f57816001541461267257600080fd5b600081815b8481101561481757614803828787848181106147f7576147f7615395565b90506020020135614915565b91508061480f816153ab565b9150506147d9565b50949350505050565b60015460008290036148455760405163b562e8dd60e01b815260040160405180910390fd5b614852600084838561405d565b6001600160a01b038316600090815260066020526040902080546001600160401b018402019055614889836001841460e11b614239565b6000828152600560205260408120919091556001600160a01b0384169083830190839083906000805160206156e68339815191528180a4600183015b8181146148eb57808360006000805160206156e6833981519152600080a46001016148c5565b508160000361490c57604051622e076360e81b815260040160405180910390fd5b60015550505050565b600081831061493157600082815260208490526040902061395a565b600083815260208390526040902061395a565b60408051608081018252600080825260208201819052918101829052606081019190915290565b6001600160e01b031981168114611d8857600080fd5b60006020828403121561499357600080fd5b813561395a8161496b565b6001600160a01b0381168114611d8857600080fd5b600080604083850312156149c657600080fd5b82356149d18161499e565b915060208301356001600160601b03811681146149ed57600080fd5b809150509250929050565b60008060408385031215614a0b57600080fd5b8235614a168161499e565b946020939093013593505050565b60005b83811015614a3f578181015183820152602001614a27565b50506000910152565b60008151808452614a60816020860160208601614a24565b601f01601f19169290920160200192915050565b60208152600061395a6020830184614a48565b600060208284031215614a9957600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115614ad057614ad0614aa0565b604051601f8501601f19908116603f01168101908282118183101715614af857614af8614aa0565b81604052809350858152868686011115614b1157600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112614b3c57600080fd5b61395a83833560208501614ab6565b60008060408385031215614b5e57600080fd5b82356001600160401b03811115614b7457600080fd5b614b8085828601614b2b565b95602094909401359450505050565b80358015158114614b9f57600080fd5b919050565b600080600060608486031215614bb957600080fd5b83359250614bc960208501614b8f565b9150604084013590509250925092565b60008083601f840112614beb57600080fd5b5081356001600160401b03811115614c0257600080fd5b6020830191508360208260051b8501011115611bca57600080fd5b60008060008060008060008060a0898b031215614c3957600080fd5b8835614c448161499e565b97506020890135965060408901356001600160401b0380821115614c6757600080fd5b614c738c838d01614bd9565b909850965060608b0135915080821115614c8c57600080fd5b614c988c838d01614bd9565b909650945060808b0135915080821115614cb157600080fd5b50614cbe8b828c01614bd9565b999c989b5096995094979396929594505050565b600060208284031215614ce457600080fd5b81356001600160401b03811115614cfa57600080fd5b61292484828501614b2b565b600080600060608486031215614d1b57600080fd5b8335614d268161499e565b92506020840135614d368161499e565b929592945050506040919091013590565b60008060408385031215614d5a57600080fd5b50508035926020909101359150565b600060208284031215614d7b57600080fd5b61395a82614b8f565b600060208284031215614d9657600080fd5b813561395a8161499e565b60008060008060008060008060a0898b031215614dbd57600080fd5b883597506020890135965060408901356001600160401b0380821115614c6757600080fd5b6020808252825182820181905260009190848201906040850190845b8181101561209357835183529284019291840191600101614dfe565b60008060408385031215614e2d57600080fd5b614a1683614b8f565b60008060208385031215614e4957600080fd5b82356001600160401b03811115614e5f57600080fd5b614e6b85828601614bd9565b90969095509350505050565b60008060408385031215614e8a57600080fd5b82359150614e9a60208401614b8f565b90509250929050565b600080600080600060808688031215614ebb57600080fd5b853594506020860135614ecd8161499e565b93506040860135925060608601356001600160401b03811115614eef57600080fd5b614efb88828901614bd9565b969995985093965092949392505050565b600080600080600060608688031215614f2457600080fd5b8535945060208601356001600160401b0380821115614f4257600080fd5b614f4e89838a01614bd9565b90965094506040880135915080821115614f6757600080fd5b50614efb88828901614bd9565b60008060408385031215614f8757600080fd5b8235915060208301356001600160401b03811115614fa457600080fd5b614fb085828601614b2b565b9150509250929050565b60008060408385031215614fcd57600080fd5b8235614fd88161499e565b9150614e9a60208401614b8f565b60008060008060808587031215614ffc57600080fd5b84356150078161499e565b935060208501356150178161499e565b92506040850135915060608501356001600160401b0381111561503957600080fd5b8501601f8101871361504a57600080fd5b61505987823560208401614ab6565b91505092959194509250565b6000806000806060858703121561507b57600080fd5b84356150868161499e565b93506020850135925060408501356001600160401b038111156150a857600080fd5b6150b487828801614bd9565b95989497509550505050565b600080604083850312156150d357600080fd5b8235915060208301356149ed8161499e565b6000806000606084860312156150fa57600080fd5b83359250602084013561510c8161499e565b915060408401356001600160401b038116811461512857600080fd5b809150509250925092565b6000806040838503121561514657600080fd5b82356151518161499e565b915060208301356149ed8161499e565b60008060006040848603121561517657600080fd5b8335925060208401356001600160401b0381111561519357600080fd5b61519f86828701614bd9565b9497909650939450505050565b600181811c908216806151c057607f821691505b6020821081036151e057634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561195c57600081815260208120601f850160051c8101602086101561520d5750805b601f850160051c820191505b8181101561334057828155600101615219565b81516001600160401b0381111561524557615245614aa0565b6152598161525384546151ac565b846151e6565b602080601f83116001811461528e57600084156152765750858301515b600019600386901b1c1916600185901b178555613340565b600085815260208120601f198616915b828110156152bd5788860151825594840194600190910190840161529e565b50858210156152db5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156152fd57600080fd5b815161395a8161499e565b6020808252601190820152703737b732bc34b9ba32b73a103a37b5b2b760791b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761183e5761183e615333565b60008261537d57634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561183e5761183e615333565b634e487b7160e01b600052603260045260246000fd5b6000600182016153bd576153bd615333565b5060010190565b6020808252601f908201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00604082015260600190565b60008451602061540e8285838a01614a24565b8551918401916154218184848a01614a24565b8554920191600090615432816151ac565b6001828116801561544a576001811461545f5761548b565b60ff198416875282151583028701945061548b565b896000528560002060005b848110156154835781548982015290830190870161546a565b505082870194505b50929a9950505050505050505050565b6020808252600e908201526d14dd185ada5b99c818db1bdcd95960921b604082015260600190565b602080825260189082015277115512081d985b1d59481a5cc81b9bdd0818dbdc9c9958dd60421b604082015260600190565b60208082526022908201527f596f7520617265206e6f74206f776e6572206f66207468697320746f6b656e69604082015261321760f11b606082015260800190565b8181038181111561183e5761183e615333565b60008161555957615559615333565b506000190190565b7a3d9139b2b63632b92fb332b2afb130b9b4b9afb837b4b73a39911d60291b8152825160009061559881601b850160208801614a24565b721610113332b2afb932b1b4b834b2b73a111d1160691b601b9184019182015283516155cb81602e840160208801614a24565b61227d60f01b602e9290910191820152603001949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161561e81601d850160208701614a24565b91909101601d0192915050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061565e90830184614a48565b9695505050505050565b60006020828403121561567a57600080fd5b815161395a8161496b56fe873299c6a6c39b8b92f01922bb622df4a3236ea2876aac2da76f6c092cf7e98f4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8a1ea6ccfdf9f988bdc16303c81231f9b192785454b34880c28e5c30362354c565ce8396b736f5da9d881cc6fbcb11ef9721292dc41ec8c40879fd9edea5744da264697066735822122056a935cbf4f73e44bed960f2e88d03db00a79a582853e3e24294d2f88fcb886164736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000006424c5542454100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009424c554245414e46540000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): BLUBEA
Arg [1] : _symbol (string): BLUBEANFT
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [3] : 424c554245410000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [5] : 424c554245414e46540000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
OVERVIEW
ブルベアは「ブブブ星」から地球に落ちてきた。BLUBEA dropped to Earth from the "BUBUBU SEI".Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.