ERC-721
Overview
Max Total Supply
33 CRC
Holders
7
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
3 CRCLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CryptoRobotsCity
Compiler Version
v0.8.22+commit.4fc1097e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/* ██████╗██████╗ ██╗ ██╗██████╗ ████████╗ ██████╗ ██████╗ ██████╗ ██████╗ ██████╗ ████████╗███████╗ ██████╗██╗████████╗██╗ ██╗ ██╔════╝██╔══██╗╚██╗ ██╔╝██╔══██╗╚══██╔══╝██╔═══██╗ ██╔══██╗██╔═══██╗██╔══██╗██╔═══██╗╚══██╔══╝██╔════╝ ██╔════╝██║╚══██╔══╝╚██╗ ██╔╝ ██║ ██████╔╝ ╚████╔╝ ██████╔╝ ██║ ██║ ██║ ██████╔╝██║ ██║██████╔╝██║ ██║ ██║ ███████╗ ██║ ██║ ██║ ╚████╔╝ ██║ ██╔══██╗ ╚██╔╝ ██╔═══╝ ██║ ██║ ██║ ██╔══██╗██║ ██║██╔══██╗██║ ██║ ██║ ╚════██║ ██║ ██║ ██║ ╚██╔╝ ╚██████╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝ ██║ ██║╚██████╔╝██████╔╝╚██████╔╝ ██║ ███████║ ╚██████╗██║ ██║ ██║ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚══════╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ */ // SPDX-License-Identifier: MIT pragma solidity >=0.8.9 <0.9.0; import 'erc721a/contracts/ERC721A.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import 'operator-filter-registry/src/DefaultOperatorFilterer.sol'; contract CryptoRobotsCity is ERC721A, Ownable(msg.sender), ReentrancyGuard, DefaultOperatorFilterer { using Strings for uint256; string public baseURI = "ipfs://bafybeidgafdretvzqvaynfphf273rr7owdofjxdx7vi3towq7zq5e5t7mu/"; string public baseExtension = ".json"; uint256 public costOG = 0.01 ether; uint256 public costWL = 0.015 ether; uint256 public cost = 0.02 ether; uint256 public maxSupply = 1565; uint256 public maxMintAmountOG = 2; uint256 public maxMintAmountWL = 3; uint256 public maxMintAmountPublic = 10; mapping(address => uint256) public addressMintedBalanceOG; mapping(address => uint256) public addressMintedBalanceWL; mapping(address => uint256) public addressMintedBalance; uint256 public currentState = 0; mapping(address => bool) public whitelistedAddresses; bytes32 public merkleRootOG; bytes32 public merkleRootWhitelist; constructor() ERC721A("Crypto Robots City", "CRC") {} function mint(uint256 _mintAmount, bytes32[] calldata _merkleProof) public payable { uint256 supply = totalSupply(); require(_mintAmount > 0, "need to mint at least 1 NFT"); require(supply + _mintAmount <= maxSupply, "max NFT limit exceeded"); if (msg.sender != owner()) { require(currentState > 0, "the contract is paused"); if (currentState == 1) { uint256 ownerMintedCount = addressMintedBalanceWL[msg.sender]; require( isWhitelisted(msg.sender, _merkleProof), "user is not whitelisted" ); require( _mintAmount <= maxMintAmountWL, "max mint amount per session exceeded" ); require( ownerMintedCount + _mintAmount <= maxMintAmountWL, "max NFT per address exceeded" ); require( msg.value >= costWL * _mintAmount, "insufficient funds" ); } else if (currentState == 2) { uint256 ownerMintedCount = addressMintedBalanceOG[msg.sender]; require( isOG(msg.sender, _merkleProof), "user is not OG" ); require( _mintAmount <= maxMintAmountOG, "max mint amount per session exceeded" ); require( ownerMintedCount + _mintAmount <= maxMintAmountOG, "max NFT per address exceeded" ); require( msg.value >= costOG * _mintAmount, "insufficient funds" ); } else if (currentState == 3) { uint256 ownerMintedCount = addressMintedBalance[msg.sender]; require( _mintAmount <= maxMintAmountPublic, "max mint amount per session exceeded" ); require( ownerMintedCount + _mintAmount <= maxMintAmountPublic, "max NFT per address exceeded" ); require(msg.value >= cost * _mintAmount, "insufficient funds"); } } _safeMint(msg.sender, _mintAmount); if (currentState == 1) { addressMintedBalanceWL[msg.sender] += _mintAmount; } else if (currentState == 2) { addressMintedBalanceOG[msg.sender] += _mintAmount; } else if (currentState == 3) { addressMintedBalance[msg.sender] += _mintAmount; } } function Airdrop(uint256 _mintAmount, address _receiver) public onlyOwner { require(_mintAmount > 0, "need to mint at least 1 NFT"); require(totalSupply() + _mintAmount <= maxSupply, "max NFT limit exceeded"); _safeMint(_receiver, _mintAmount); } function isWhitelisted(address _user, bytes32[] calldata _merkleProof) public view returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(_user)); return MerkleProof.verify(_merkleProof, merkleRootWhitelist, leaf); } function isOG(address _user, bytes32[] calldata _merkleProof) public view returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(_user)); return MerkleProof.verify(_merkleProof, merkleRootOG, leaf); } function mintableAmountForUser(address _user) public view returns (uint256) { if (currentState == 1) { return maxMintAmountWL - addressMintedBalanceWL[_user]; } else if (currentState == 2) { return maxMintAmountOG - addressMintedBalanceOG[_user]; } else if (currentState == 3) { return maxMintAmountPublic - addressMintedBalance[_user]; } return 0; } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string( abi.encodePacked( currentBaseURI, tokenId.toString(), baseExtension ) ) : ""; } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } function setBaseExtension(string memory _newBaseExtension) public onlyOwner { baseExtension = _newBaseExtension; } function setmaxMintAmountPublic(uint256 _newmaxMintAmount) public onlyOwner{ maxMintAmountPublic = _newmaxMintAmount; } function setmaxMintAmountWL(uint256 _newmaxMintAmount) public onlyOwner { maxMintAmountWL = _newmaxMintAmount; } function setmaxMintAmountOG(uint256 _newmaxMintAmount) public onlyOwner { maxMintAmountOG = _newmaxMintAmount; } function pause() public onlyOwner { currentState = 0; } function setOnlyWhitelisted() public onlyOwner { currentState = 1; } function setOnlyOG() public onlyOwner { currentState = 2; } function setPublic() public onlyOwner { currentState = 3; } function setWhitelistMerkleRoot(bytes32 _merkleRoot) public onlyOwner { merkleRootWhitelist = _merkleRoot; } function setOGMerkleRoot(bytes32 _merkleRoot) public onlyOwner { merkleRootOG = _merkleRoot; } function setPublicCost(uint256 _price) public onlyOwner { cost = _price; } function setWLCost(uint256 _price) public onlyOwner { costWL = _price; } function setOGCost(uint256 _price) public onlyOwner { costOG = _price; } function withdraw() public onlyOwner nonReentrant { (bool os, ) = payable(owner()).call{value: address(this).balance}(''); require(os); } ///////////////////////////// // OPENSEA FILTER REGISTRY ///////////////////////////// function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public payable override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {OperatorFilterer} from "./OperatorFilterer.sol"; import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol"; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. * @dev Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { /// @dev The constructor that is called when the contract is being deployed. constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol) pragma solidity ^0.8.20; import {Math} from "./math/Math.sol"; import {SignedMath} from "./math/SignedMath.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant HEX_DIGITS = "0123456789abcdef"; uint8 private constant ADDRESS_LENGTH = 20; /** * @dev The `value` string doesn't fit in the specified `length`. */ error StringsInsufficientHexLength(uint256 value, uint256 length); /** * @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), HEX_DIGITS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toStringSigned(int256 value) internal pure returns (string memory) { return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, 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) { uint256 localValue = value; 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] = HEX_DIGITS[localValue & 0xf]; localValue >>= 4; } if (localValue != 0) { revert StringsInsufficientHexLength(value, length); } return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal * representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.20; /** * @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 The multiproof provided is not valid. */ error MerkleProofInvalidMultiproof(); /** * @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} */ 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. */ 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} */ 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. */ 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. */ 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). */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the Merkle tree. uint256 leavesLen = leaves.length; uint256 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. if (leavesLen + proofLen != totalHashes + 1) { revert MerkleProofInvalidMultiproof(); } // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]) : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { if (proofPos != proofLen) { revert MerkleProofInvalidMultiproof(); } unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details. */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the Merkle tree. uint256 leavesLen = leaves.length; uint256 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. if (leavesLen + proofLen != totalHashes + 1) { revert MerkleProofInvalidMultiproof(); } // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]) : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { if (proofPos != proofLen) { revert MerkleProofInvalidMultiproof(); } unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Sorts the pair (a, b) and hashes the result. */ function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } /** * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory. */ 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 (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @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 { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _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 // 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 pragma solidity ^0.8.13; address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E; address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol"; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. * Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract OperatorFilterer { /// @dev Emitted when an operator is not allowed. error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS); /// @dev The constructor that is called when the contract is being deployed. constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } /** * @dev A helper function to check if an operator is allowed. */ modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } /** * @dev A helper function to check if an operator approval is allowed. */ modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @dev A helper function to check if an operator is allowed. */ function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // under normal circumstances, this function will revert rather than return false, but inheriting contracts // may specify their own OperatorFilterRegistry implementations, which may behave differently if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
// 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.20; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol) pragma solidity ^0.8.20; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Muldiv operation overflow. */ error MathOverflowedMulDiv(); enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an overflow flag. */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @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 towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. return a / b; } // (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 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. if (denominator <= prod1) { revert MathOverflowedMulDiv(); } /////////////////////////////////////////////// // 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. uint256 twos = denominator & (0 - denominator); 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 (unsignedRoundsUp(rounding) && 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 * towards zero. * * 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 + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * 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 + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * 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 + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { /** * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns * true if supplied registrant address is not registered. */ function isOperatorAllowed(address registrant, address operator) external view returns (bool); /** * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner. */ function register(address registrant) external; /** * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes. */ function registerAndSubscribe(address registrant, address subscription) external; /** * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another * address without subscribing. */ function registerAndCopyEntries(address registrant, address registrantToCopy) external; /** * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner. * Note that this does not remove any filtered addresses or codeHashes. * Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes. */ function unregister(address addr) external; /** * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered. */ function updateOperator(address registrant, address operator, bool filtered) external; /** * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates. */ function updateOperators(address registrant, address[] calldata operators, bool filtered) external; /** * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered. */ function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; /** * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates. */ function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; /** * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous * subscription if present. * Note that accounts with subscriptions may go on to subscribe to other accounts - in this case, * subscriptions will not be forwarded. Instead the former subscription's existing entries will still be * used. */ function subscribe(address registrant, address registrantToSubscribe) external; /** * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes. */ function unsubscribe(address registrant, bool copyExistingEntries) external; /** * @notice Get the subscription address of a given registrant, if any. */ function subscriptionOf(address addr) external returns (address registrant); /** * @notice Get the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscribers(address registrant) external returns (address[] memory); /** * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscriberAt(address registrant, uint256 index) external returns (address); /** * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr. */ function copyEntriesOf(address registrant, address registrantToCopy) external; /** * @notice Returns true if operator is filtered by a given address or its subscription. */ function isOperatorFiltered(address registrant, address operator) external returns (bool); /** * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription. */ function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); /** * @notice Returns true if a codeHash is filtered by a given address or its subscription. */ function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); /** * @notice Returns a list of filtered operators for a given address or its subscription. */ function filteredOperators(address addr) external returns (address[] memory); /** * @notice Returns the set of filtered codeHashes for a given address or its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashes(address addr) external returns (bytes32[] memory); /** * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredOperatorAt(address registrant, uint256 index) external returns (address); /** * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); /** * @notice Returns true if an address has registered */ function isRegistered(address addr) external returns (bool); /** * @dev Convenience method to compute the code hash of an arbitrary contract */ function codeHashOf(address addr) external returns (bytes32); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","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":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":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"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"Airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressMintedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressMintedBalanceOG","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressMintedBalanceWL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"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":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"costOG","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"costWL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentState","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"isOG","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountOG","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountWL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootOG","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootWhitelist","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"mintableAmountForUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","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":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setOGCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setOGMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setOnlyOG","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setOnlyWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPublicCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setWLCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setWhitelistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newmaxMintAmount","type":"uint256"}],"name":"setmaxMintAmountOG","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newmaxMintAmount","type":"uint256"}],"name":"setmaxMintAmountPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newmaxMintAmount","type":"uint256"}],"name":"setmaxMintAmountWL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistedAddresses","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405260405180608001604052806043815260200162004d1a60439139600a90816200002e919062000724565b506040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600b908162000075919062000724565b50662386f26fc10000600c5566354a6ba7a18000600d5566470de4df820000600e5561061d600f5560026010556003601155600a6012555f601655348015620000bc575f80fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb66001336040518060400160405280601281526020017f43727970746f20526f626f7473204369747900000000000000000000000000008152506040518060400160405280600381526020017f4352430000000000000000000000000000000000000000000000000000000000815250816002908162000152919062000724565b50806003908162000164919062000724565b5062000175620003f560201b60201c565b5f8190555050505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620001ef575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620001e691906200084b565b60405180910390fd5b6200020081620003fd60201b60201c565b5060016009819055505f6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115620003ed578015620002be576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b81526004016200028992919062000866565b5f604051808303815f87803b158015620002a1575f80fd5b505af1158015620002b4573d5f803e3d5ffd5b50505050620003ec565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161462000372576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b81526004016200033d92919062000866565b5f604051808303815f87803b15801562000355575f80fd5b505af115801562000368573d5f803e3d5ffd5b50505050620003eb565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b8152600401620003bb91906200084b565b5f604051808303815f87803b158015620003d3575f80fd5b505af1158015620003e6573d5f803e3d5ffd5b505050505b5b5b505062000891565b5f6001905090565b5f60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160085f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806200053c57607f821691505b602082108103620005525762000551620004f7565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302620005b67fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000579565b620005c2868362000579565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f6200060c620006066200060084620005da565b620005e3565b620005da565b9050919050565b5f819050919050565b6200062783620005ec565b6200063f620006368262000613565b84845462000585565b825550505050565b5f90565b6200065562000647565b620006628184846200061c565b505050565b5b8181101562000689576200067d5f826200064b565b60018101905062000668565b5050565b601f821115620006d857620006a28162000558565b620006ad846200056a565b81016020851015620006bd578190505b620006d5620006cc856200056a565b83018262000667565b50505b505050565b5f82821c905092915050565b5f620006fa5f1984600802620006dd565b1980831691505092915050565b5f620007148383620006e9565b9150826002028217905092915050565b6200072f82620004c0565b67ffffffffffffffff8111156200074b576200074a620004ca565b5b62000757825462000524565b620007648282856200068d565b5f60209050601f8311600181146200079a575f841562000785578287015190505b62000791858262000707565b86555062000800565b601f198416620007aa8662000558565b5f5b82811015620007d357848901518255600182019150602085019450602081019050620007ac565b86831015620007f35784890151620007ef601f891682620006e9565b8355505b6001600288020188555050505b505050505050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f620008338262000808565b9050919050565b620008458162000827565b82525050565b5f602082019050620008605f8301846200083a565b92915050565b5f6040820190506200087b5f8301856200083a565b6200088a60208301846200083a565b9392505050565b61447b806200089f5f395ff3fe608060405260043610610334575f3560e01c80636eddb9e3116101aa5780639970ff15116100f6578063c668286211610094578063d5abeb011161006e578063d5abeb0114610b70578063da3ef23f14610b9a578063e985e9c514610bc2578063f2fde38b14610bfe57610334565b8063c668286214610ae2578063c87b56dd14610b0c578063d1d1921314610b4857610334565b8063b88d4fde116100d0578063b88d4fde14610a6c578063ba41b0c614610a88578063bd32fb6614610aa4578063bee1f2b914610acc57610334565b80639970ff15146109de578063a22cb46514610a1a578063ad6cb31914610a4257610334565b8063811d2437116101635780638da5cb5b1161013d5780638da5cb5b146109385780638e1f9cfe1461096257806395d89b411461098c57806397549a46146109b657610334565b8063811d2437146108d25780638456cb59146108fa578063863b026f1461091057610334565b80636eddb9e3146107de57806370a0823114610806578063715018a61461084257806375a41dba1461085857806377e56357146108945780637871e154146108aa57610334565b806318cae269116102845780633ccfd60b1161022257806355f804b3116101fc57806355f804b3146107145780635a23dd991461073c5780636352211e146107785780636c0360eb146107b457610334565b80633ccfd60b146106b857806341f43434146106ce57806342842e0e146106f857610334565b806323b872dd1161025e57806323b872dd1461062257806325c2c0201461063e578063295e4c331461066657806337546c671461067c57610334565b806318cae269146105945780631f398c75146105d0578063231878d1146105fa57610334565b8063085ebf77116102f157806313093b1d116102cb57806313093b1d146104ec57806313faede61461051657806317f7bece1461054057806318160ddd1461056a57610334565b8063085ebf771461047c578063095ea7b3146104a65780630c3f6acf146104c257610334565b806301ffc9a71461033857806306afd5921461037457806306c933d81461039e57806306fdde03146103da57806307656e3314610404578063081812fc14610440575b5f80fd5b348015610343575f80fd5b5061035e600480360381019061035991906130e1565b610c26565b60405161036b9190613126565b60405180910390f35b34801561037f575f80fd5b50610388610cb7565b6040516103959190613157565b60405180910390f35b3480156103a9575f80fd5b506103c460048036038101906103bf91906131ca565b610cbd565b6040516103d19190613126565b60405180910390f35b3480156103e5575f80fd5b506103ee610cda565b6040516103fb919061327f565b60405180910390f35b34801561040f575f80fd5b5061042a600480360381019061042591906131ca565b610d6a565b6040516104379190613157565b60405180910390f35b34801561044b575f80fd5b50610466600480360381019061046191906132c9565b610e88565b6040516104739190613303565b60405180910390f35b348015610487575f80fd5b50610490610f02565b60405161049d9190613157565b60405180910390f35b6104c060048036038101906104bb919061331c565b610f08565b005b3480156104cd575f80fd5b506104d6610f21565b6040516104e39190613157565b60405180910390f35b3480156104f7575f80fd5b50610500610f27565b60405161050d9190613157565b60405180910390f35b348015610521575f80fd5b5061052a610f2d565b6040516105379190613157565b60405180910390f35b34801561054b575f80fd5b50610554610f33565b6040516105619190613157565b60405180910390f35b348015610575575f80fd5b5061057e610f39565b60405161058b9190613157565b60405180910390f35b34801561059f575f80fd5b506105ba60048036038101906105b591906131ca565b610f4e565b6040516105c79190613157565b60405180910390f35b3480156105db575f80fd5b506105e4610f63565b6040516105f19190613157565b60405180910390f35b348015610605575f80fd5b50610620600480360381019061061b91906132c9565b610f69565b005b61063c6004803603810190610637919061335a565b610f7b565b005b348015610649575f80fd5b50610664600480360381019061065f91906133dd565b610fca565b005b348015610671575f80fd5b5061067a610fdc565b005b348015610687575f80fd5b506106a2600480360381019061069d91906131ca565b610fee565b6040516106af9190613157565b60405180910390f35b3480156106c3575f80fd5b506106cc611003565b005b3480156106d9575f80fd5b506106e2611096565b6040516106ef9190613463565b60405180910390f35b610712600480360381019061070d919061335a565b6110a8565b005b34801561071f575f80fd5b5061073a600480360381019061073591906135a8565b6110f7565b005b348015610747575f80fd5b50610762600480360381019061075d919061364c565b611112565b60405161076f9190613126565b60405180910390f35b348015610783575f80fd5b5061079e600480360381019061079991906132c9565b611194565b6040516107ab9190613303565b60405180910390f35b3480156107bf575f80fd5b506107c86111a5565b6040516107d5919061327f565b60405180910390f35b3480156107e9575f80fd5b5061080460048036038101906107ff91906132c9565b611231565b005b348015610811575f80fd5b5061082c600480360381019061082791906131ca565b611243565b6040516108399190613157565b60405180910390f35b34801561084d575f80fd5b506108566112f8565b005b348015610863575f80fd5b5061087e600480360381019061087991906131ca565b61130b565b60405161088b9190613157565b60405180910390f35b34801561089f575f80fd5b506108a8611320565b005b3480156108b5575f80fd5b506108d060048036038101906108cb91906136a9565b611332565b005b3480156108dd575f80fd5b506108f860048036038101906108f391906132c9565b6113e1565b005b348015610905575f80fd5b5061090e6113f3565b005b34801561091b575f80fd5b50610936600480360381019061093191906132c9565b611404565b005b348015610943575f80fd5b5061094c611416565b6040516109599190613303565b60405180910390f35b34801561096d575f80fd5b5061097661143e565b60405161098391906136f6565b60405180910390f35b348015610997575f80fd5b506109a0611444565b6040516109ad919061327f565b60405180910390f35b3480156109c1575f80fd5b506109dc60048036038101906109d791906132c9565b6114d4565b005b3480156109e9575f80fd5b50610a0460048036038101906109ff919061364c565b6114e6565b604051610a119190613126565b60405180910390f35b348015610a25575f80fd5b50610a406004803603810190610a3b9190613739565b611568565b005b348015610a4d575f80fd5b50610a56611581565b604051610a6391906136f6565b60405180910390f35b610a866004803603810190610a819190613815565b611587565b005b610aa26004803603810190610a9d9190613895565b6115d8565b005b348015610aaf575f80fd5b50610aca6004803603810190610ac591906133dd565b611c5c565b005b348015610ad7575f80fd5b50610ae0611c6e565b005b348015610aed575f80fd5b50610af6611c80565b604051610b03919061327f565b60405180910390f35b348015610b17575f80fd5b50610b326004803603810190610b2d91906132c9565b611d0c565b604051610b3f919061327f565b60405180910390f35b348015610b53575f80fd5b50610b6e6004803603810190610b6991906132c9565b611db3565b005b348015610b7b575f80fd5b50610b84611dc5565b604051610b919190613157565b60405180910390f35b348015610ba5575f80fd5b50610bc06004803603810190610bbb91906135a8565b611dcb565b005b348015610bcd575f80fd5b50610be86004803603810190610be391906138f2565b611de6565b604051610bf59190613126565b60405180910390f35b348015610c09575f80fd5b50610c246004803603810190610c1f91906131ca565b611e74565b005b5f6301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c8057506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610cb05750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600d5481565b6017602052805f5260405f205f915054906101000a900460ff1681565b606060028054610ce99061395d565b80601f0160208091040260200160405190810160405280929190818152602001828054610d159061395d565b8015610d605780601f10610d3757610100808354040283529160200191610d60565b820191905f5260205f20905b815481529060010190602001808311610d4357829003601f168201915b5050505050905090565b5f600160165403610dc75760145f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054601154610dc091906139ba565b9050610e83565b600260165403610e235760135f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054601054610e1c91906139ba565b9050610e83565b600360165403610e7f5760155f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054601254610e7891906139ba565b9050610e83565b5f90505b919050565b5f610e9282611ef8565b610ec8576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60065f8381526020019081526020015f205f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600c5481565b81610f1281611f52565b610f1c838361204c565b505050565b60165481565b60115481565b600e5481565b60125481565b5f610f4261218b565b6001545f540303905090565b6015602052805f5260405f205f915090505481565b60105481565b610f71612193565b8060128190555050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610fb957610fb833611f52565b5b610fc484848461221a565b50505050565b610fd2612193565b8060188190555050565b610fe4612193565b6001601681905550565b6014602052805f5260405f205f915090505481565b61100b612193565b611013612528565b5f61101c611416565b73ffffffffffffffffffffffffffffffffffffffff164760405161103f90613a1a565b5f6040518083038185875af1925050503d805f8114611079576040519150601f19603f3d011682016040523d82523d5f602084013e61107e565b606091505b505090508061108b575f80fd5b50611094612577565b565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146110e6576110e533611f52565b5b6110f1848484612581565b50505050565b6110ff612193565b80600a908161110e9190613bc2565b5050565b5f80846040516020016111259190613cd6565b60405160208183030381529060405280519060200120905061118a8484808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f82011690508083019250505050505050601954836125a0565b9150509392505050565b5f61119e826125b6565b9050919050565b600a80546111b29061395d565b80601f01602080910402602001604051908101604052809291908181526020018280546111de9061395d565b80156112295780601f1061120057610100808354040283529160200191611229565b820191905f5260205f20905b81548152906001019060200180831161120c57829003601f168201915b505050505081565b611239612193565b8060118190555050565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036112a9576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054169050919050565b611300612193565b6113095f612679565b565b6013602052805f5260405f205f915090505481565b611328612193565b6003601681905550565b61133a612193565b5f821161137c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137390613d3a565b60405180910390fd5b600f5482611388610f39565b6113929190613d58565b11156113d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ca90613dd5565b60405180910390fd5b6113dd818361273c565b5050565b6113e9612193565b80600e8190555050565b6113fb612193565b5f601681905550565b61140c612193565b8060108190555050565b5f60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60195481565b6060600380546114539061395d565b80601f016020809104026020016040519081016040528092919081815260200182805461147f9061395d565b80156114ca5780601f106114a1576101008083540402835291602001916114ca565b820191905f5260205f20905b8154815290600101906020018083116114ad57829003601f168201915b5050505050905090565b6114dc612193565b80600c8190555050565b5f80846040516020016114f99190613cd6565b60405160208183030381529060405280519060200120905061155e8484808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f82011690508083019250505050505050601854836125a0565b9150509392505050565b8161157281611f52565b61157c8383612759565b505050565b60185481565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146115c5576115c433611f52565b5b6115d18585858561285f565b5050505050565b5f6115e1610f39565b90505f8411611625576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161c90613d3a565b60405180910390fd5b600f5484826116349190613d58565b1115611675576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166c90613dd5565b60405180910390fd5b61167d611416565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611b28575f601654116116f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ea90613e3d565b60405180910390fd5b600160165403611873575f60145f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050611749338585611112565b611788576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177f90613ea5565b60405180910390fd5b6011548511156117cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c490613f33565b60405180910390fd5b60115485826117dc9190613d58565b111561181d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181490613f9b565b60405180910390fd5b84600d5461182b9190613fb9565b34101561186d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186490614044565b60405180910390fd5b50611b27565b6002601654036119f3575f60135f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490506118c93385856114e6565b611908576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ff906140ac565b60405180910390fd5b60105485111561194d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194490613f33565b60405180910390fd5b601054858261195c9190613d58565b111561199d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199490613f9b565b60405180910390fd5b84600c546119ab9190613fb9565b3410156119ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119e490614044565b60405180910390fd5b50611b26565b600360165403611b25575f60155f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050601254851115611a83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7a90613f33565b60405180910390fd5b6012548582611a929190613d58565b1115611ad3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aca90613f9b565b60405180910390fd5b84600e54611ae19190613fb9565b341015611b23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1a90614044565b60405180910390fd5b505b5b5b5b611b32338561273c565b600160165403611b94578360145f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254611b889190613d58565b92505081905550611c56565b600260165403611bf6578360135f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254611bea9190613d58565b92505081905550611c55565b600360165403611c54578360155f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254611c4c9190613d58565b925050819055505b5b5b50505050565b611c64612193565b8060198190555050565b611c76612193565b6002601681905550565b600b8054611c8d9061395d565b80601f0160208091040260200160405190810160405280929190818152602001828054611cb99061395d565b8015611d045780601f10611cdb57610100808354040283529160200191611d04565b820191905f5260205f20905b815481529060010190602001808311611ce757829003601f168201915b505050505081565b6060611d1782611ef8565b611d56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4d9061413a565b60405180910390fd5b5f611d5f6128d1565b90505f815111611d7d5760405180602001604052805f815250611dab565b80611d8784612961565b600b604051602001611d9b93929190614212565b6040516020818303038152906040525b915050919050565b611dbb612193565b80600d8190555050565b600f5481565b611dd3612193565b80600b9081611de29190613bc2565b5050565b5f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b611e7c612193565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611eec575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401611ee39190613303565b60405180910390fd5b611ef581612679565b50565b5f81611f0261218b565b11158015611f1057505f5482105b8015611f4b57505f7c010000000000000000000000000000000000000000000000000000000060045f8581526020019081526020015f205416145b9050919050565b5f6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115612049576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401611fc8929190614242565b602060405180830381865afa158015611fe3573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612007919061427d565b61204857806040517fede71dcc00000000000000000000000000000000000000000000000000000000815260040161203f9190613303565b60405180910390fd5b5b50565b5f61205682611194565b90508073ffffffffffffffffffffffffffffffffffffffff16612077612a2b565b73ffffffffffffffffffffffffffffffffffffffff16146120da576120a38161209e612a2b565b611de6565b6120d9576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b8260065f8481526020019081526020015f205f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b5f6001905090565b61219b612a32565b73ffffffffffffffffffffffffffffffffffffffff166121b9611416565b73ffffffffffffffffffffffffffffffffffffffff1614612218576121dc612a32565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161220f9190613303565b60405180910390fd5b565b5f612224826125b6565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461228b576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8061229684612a39565b915091506122ac81876122a7612a2b565b612a5c565b6122f8576122c1866122bc612a2b565b611de6565b6122f7576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361235d576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61236a8686866001612a9f565b8015612374575f82555b60055f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600190039190508190555060055f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f81546001019190508190555061243c85612418888887612aa5565b7c020000000000000000000000000000000000000000000000000000000017612acc565b60045f8681526020019081526020015f20819055505f7c02000000000000000000000000000000000000000000000000000000008416036124b8575f6001850190505f60045f8381526020019081526020015f2054036124b6575f5481146124b5578360045f8381526020019081526020015f20819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46125208686866001612af6565b505050505050565b60026009540361256d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612564906142f2565b60405180910390fd5b6002600981905550565b6001600981905550565b61259b83838360405180602001604052805f815250611587565b505050565b5f826125ac8584612afc565b1490509392505050565b5f80829050806125c461218b565b11612642575f54811015612641575f60045f8381526020019081526020015f205490505f7c010000000000000000000000000000000000000000000000000000000082160361263f575b5f81036126355760045f836001900393508381526020019081526020015f2054905061260e565b8092505050612674565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b5f60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160085f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612755828260405180602001604052805f815250612b4a565b5050565b8060075f612765612a2b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661280e612a2b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516128539190613126565b60405180910390a35050565b61286a848484610f7b565b5f8373ffffffffffffffffffffffffffffffffffffffff163b146128cb5761289484848484612be1565b6128ca576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060600a80546128e09061395d565b80601f016020809104026020016040519081016040528092919081815260200182805461290c9061395d565b80156129575780601f1061292e57610100808354040283529160200191612957565b820191905f5260205f20905b81548152906001019060200180831161293a57829003601f168201915b5050505050905090565b60605f600161296f84612d2c565b0190505f8167ffffffffffffffff81111561298d5761298c613484565b5b6040519080825280601f01601f1916602001820160405280156129bf5781602001600182028036833780820191505090505b5090505f82602001820190505b600115612a20578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612a1557612a14614310565b5b0494505f85036129cc575b819350505050919050565b5f33905090565b5f33905090565b5f805f60065f8581526020019081526020015f2090508092508254915050915091565b5f73ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b5f8060e883901c905060e8612abb868684612e7d565b62ffffff16901b9150509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b5f808290505f5b8451811015612b3f57612b3082868381518110612b2357612b2261433d565b5b6020026020010151612e85565b91508080600101915050612b03565b508091505092915050565b612b548383612eaf565b5f8373ffffffffffffffffffffffffffffffffffffffff163b14612bdc575f805490505f83820390505b612b905f868380600101945086612be1565b612bc6576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612b7e57815f5414612bd9575f80fd5b50505b505050565b5f8373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612c06612a2b565b8786866040518563ffffffff1660e01b8152600401612c2894939291906143bc565b6020604051808303815f875af1925050508015612c6357506040513d601f19601f82011682018060405250810190612c60919061441a565b60015b612cd9573d805f8114612c91576040519150601f19603f3d011682016040523d82523d5f602084013e612c96565b606091505b505f815103612cd1576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b5f805f90507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612d88577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612d7e57612d7d614310565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612dc5576d04ee2d6d415b85acef81000000008381612dbb57612dba614310565b5b0492506020810190505b662386f26fc100008310612df457662386f26fc100008381612dea57612de9614310565b5b0492506010810190505b6305f5e1008310612e1d576305f5e1008381612e1357612e12614310565b5b0492506008810190505b6127108310612e42576127108381612e3857612e37614310565b5b0492506004810190505b60648310612e655760648381612e5b57612e5a614310565b5b0492506002810190505b600a8310612e74576001810190505b80915050919050565b5f9392505050565b5f818310612e9c57612e978284613058565b612ea7565b612ea68383613058565b5b905092915050565b5f805490505f8203612eed576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612ef95f848385612a9f565b600160406001901b17820260055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282540192505081905550612f6b83612f5c5f865f612aa5565b612f658561306c565b17612acc565b60045f8381526020019081526020015f20819055505f80838301905073ffffffffffffffffffffffffffffffffffffffff8516915082825f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4600183015b8181146130055780835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4600181019050612fcc565b505f820361303f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805f8190555050506130535f848385612af6565b505050565b5f825f528160205260405f20905092915050565b5f6001821460e11b9050919050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6130c08161308c565b81146130ca575f80fd5b50565b5f813590506130db816130b7565b92915050565b5f602082840312156130f6576130f5613084565b5b5f613103848285016130cd565b91505092915050565b5f8115159050919050565b6131208161310c565b82525050565b5f6020820190506131395f830184613117565b92915050565b5f819050919050565b6131518161313f565b82525050565b5f60208201905061316a5f830184613148565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61319982613170565b9050919050565b6131a98161318f565b81146131b3575f80fd5b50565b5f813590506131c4816131a0565b92915050565b5f602082840312156131df576131de613084565b5b5f6131ec848285016131b6565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b8381101561322c578082015181840152602081019050613211565b5f8484015250505050565b5f601f19601f8301169050919050565b5f613251826131f5565b61325b81856131ff565b935061326b81856020860161320f565b61327481613237565b840191505092915050565b5f6020820190508181035f8301526132978184613247565b905092915050565b6132a88161313f565b81146132b2575f80fd5b50565b5f813590506132c38161329f565b92915050565b5f602082840312156132de576132dd613084565b5b5f6132eb848285016132b5565b91505092915050565b6132fd8161318f565b82525050565b5f6020820190506133165f8301846132f4565b92915050565b5f806040838503121561333257613331613084565b5b5f61333f858286016131b6565b9250506020613350858286016132b5565b9150509250929050565b5f805f6060848603121561337157613370613084565b5b5f61337e868287016131b6565b935050602061338f868287016131b6565b92505060406133a0868287016132b5565b9150509250925092565b5f819050919050565b6133bc816133aa565b81146133c6575f80fd5b50565b5f813590506133d7816133b3565b92915050565b5f602082840312156133f2576133f1613084565b5b5f6133ff848285016133c9565b91505092915050565b5f819050919050565b5f61342b61342661342184613170565b613408565b613170565b9050919050565b5f61343c82613411565b9050919050565b5f61344d82613432565b9050919050565b61345d81613443565b82525050565b5f6020820190506134765f830184613454565b92915050565b5f80fd5b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6134ba82613237565b810181811067ffffffffffffffff821117156134d9576134d8613484565b5b80604052505050565b5f6134eb61307b565b90506134f782826134b1565b919050565b5f67ffffffffffffffff82111561351657613515613484565b5b61351f82613237565b9050602081019050919050565b828183375f83830152505050565b5f61354c613547846134fc565b6134e2565b90508281526020810184848401111561356857613567613480565b5b61357384828561352c565b509392505050565b5f82601f83011261358f5761358e61347c565b5b813561359f84826020860161353a565b91505092915050565b5f602082840312156135bd576135bc613084565b5b5f82013567ffffffffffffffff8111156135da576135d9613088565b5b6135e68482850161357b565b91505092915050565b5f80fd5b5f80fd5b5f8083601f84011261360c5761360b61347c565b5b8235905067ffffffffffffffff811115613629576136286135ef565b5b602083019150836020820283011115613645576136446135f3565b5b9250929050565b5f805f6040848603121561366357613662613084565b5b5f613670868287016131b6565b935050602084013567ffffffffffffffff81111561369157613690613088565b5b61369d868287016135f7565b92509250509250925092565b5f80604083850312156136bf576136be613084565b5b5f6136cc858286016132b5565b92505060206136dd858286016131b6565b9150509250929050565b6136f0816133aa565b82525050565b5f6020820190506137095f8301846136e7565b92915050565b6137188161310c565b8114613722575f80fd5b50565b5f813590506137338161370f565b92915050565b5f806040838503121561374f5761374e613084565b5b5f61375c858286016131b6565b925050602061376d85828601613725565b9150509250929050565b5f67ffffffffffffffff82111561379157613790613484565b5b61379a82613237565b9050602081019050919050565b5f6137b96137b484613777565b6134e2565b9050828152602081018484840111156137d5576137d4613480565b5b6137e084828561352c565b509392505050565b5f82601f8301126137fc576137fb61347c565b5b813561380c8482602086016137a7565b91505092915050565b5f805f806080858703121561382d5761382c613084565b5b5f61383a878288016131b6565b945050602061384b878288016131b6565b935050604061385c878288016132b5565b925050606085013567ffffffffffffffff81111561387d5761387c613088565b5b613889878288016137e8565b91505092959194509250565b5f805f604084860312156138ac576138ab613084565b5b5f6138b9868287016132b5565b935050602084013567ffffffffffffffff8111156138da576138d9613088565b5b6138e6868287016135f7565b92509250509250925092565b5f806040838503121561390857613907613084565b5b5f613915858286016131b6565b9250506020613926858286016131b6565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061397457607f821691505b60208210810361398757613986613930565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6139c48261313f565b91506139cf8361313f565b92508282039050818111156139e7576139e661398d565b5b92915050565b5f81905092915050565b50565b5f613a055f836139ed565b9150613a10826139f7565b5f82019050919050565b5f613a24826139fa565b9150819050919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302613a8a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613a4f565b613a948683613a4f565b95508019841693508086168417925050509392505050565b5f613ac6613ac1613abc8461313f565b613408565b61313f565b9050919050565b5f819050919050565b613adf83613aac565b613af3613aeb82613acd565b848454613a5b565b825550505050565b5f90565b613b07613afb565b613b12818484613ad6565b505050565b5b81811015613b3557613b2a5f82613aff565b600181019050613b18565b5050565b601f821115613b7a57613b4b81613a2e565b613b5484613a40565b81016020851015613b63578190505b613b77613b6f85613a40565b830182613b17565b50505b505050565b5f82821c905092915050565b5f613b9a5f1984600802613b7f565b1980831691505092915050565b5f613bb28383613b8b565b9150826002028217905092915050565b613bcb826131f5565b67ffffffffffffffff811115613be457613be3613484565b5b613bee825461395d565b613bf9828285613b39565b5f60209050601f831160018114613c2a575f8415613c18578287015190505b613c228582613ba7565b865550613c89565b601f198416613c3886613a2e565b5f5b82811015613c5f57848901518255600182019150602085019450602081019050613c3a565b86831015613c7c5784890151613c78601f891682613b8b565b8355505b6001600288020188555050505b505050505050565b5f8160601b9050919050565b5f613ca782613c91565b9050919050565b5f613cb882613c9d565b9050919050565b613cd0613ccb8261318f565b613cae565b82525050565b5f613ce18284613cbf565b60148201915081905092915050565b7f6e65656420746f206d696e74206174206c656173742031204e465400000000005f82015250565b5f613d24601b836131ff565b9150613d2f82613cf0565b602082019050919050565b5f6020820190508181035f830152613d5181613d18565b9050919050565b5f613d628261313f565b9150613d6d8361313f565b9250828201905080821115613d8557613d8461398d565b5b92915050565b7f6d6178204e4654206c696d6974206578636565646564000000000000000000005f82015250565b5f613dbf6016836131ff565b9150613dca82613d8b565b602082019050919050565b5f6020820190508181035f830152613dec81613db3565b9050919050565b7f74686520636f6e747261637420697320706175736564000000000000000000005f82015250565b5f613e276016836131ff565b9150613e3282613df3565b602082019050919050565b5f6020820190508181035f830152613e5481613e1b565b9050919050565b7f75736572206973206e6f742077686974656c69737465640000000000000000005f82015250565b5f613e8f6017836131ff565b9150613e9a82613e5b565b602082019050919050565b5f6020820190508181035f830152613ebc81613e83565b9050919050565b7f6d6178206d696e7420616d6f756e74207065722073657373696f6e20657863655f8201527f6564656400000000000000000000000000000000000000000000000000000000602082015250565b5f613f1d6024836131ff565b9150613f2882613ec3565b604082019050919050565b5f6020820190508181035f830152613f4a81613f11565b9050919050565b7f6d6178204e4654207065722061646472657373206578636565646564000000005f82015250565b5f613f85601c836131ff565b9150613f9082613f51565b602082019050919050565b5f6020820190508181035f830152613fb281613f79565b9050919050565b5f613fc38261313f565b9150613fce8361313f565b9250828202613fdc8161313f565b91508282048414831517613ff357613ff261398d565b5b5092915050565b7f696e73756666696369656e742066756e647300000000000000000000000000005f82015250565b5f61402e6012836131ff565b915061403982613ffa565b602082019050919050565b5f6020820190508181035f83015261405b81614022565b9050919050565b7f75736572206973206e6f74204f470000000000000000000000000000000000005f82015250565b5f614096600e836131ff565b91506140a182614062565b602082019050919050565b5f6020820190508181035f8301526140c38161408a565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f5f8201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b5f614124602f836131ff565b915061412f826140ca565b604082019050919050565b5f6020820190508181035f83015261415181614118565b9050919050565b5f81905092915050565b5f61416c826131f5565b6141768185614158565b935061418681856020860161320f565b80840191505092915050565b5f815461419e8161395d565b6141a88186614158565b9450600182165f81146141c257600181146141d757614209565b60ff1983168652811515820286019350614209565b6141e085613a2e565b5f5b83811015614201578154818901526001820191506020810190506141e2565b838801955050505b50505092915050565b5f61421d8286614162565b91506142298285614162565b91506142358284614192565b9150819050949350505050565b5f6040820190506142555f8301856132f4565b61426260208301846132f4565b9392505050565b5f815190506142778161370f565b92915050565b5f6020828403121561429257614291613084565b5b5f61429f84828501614269565b91505092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f6142dc601f836131ff565b91506142e7826142a8565b602082019050919050565b5f6020820190508181035f830152614309816142d0565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81519050919050565b5f82825260208201905092915050565b5f61438e8261436a565b6143988185614374565b93506143a881856020860161320f565b6143b181613237565b840191505092915050565b5f6080820190506143cf5f8301876132f4565b6143dc60208301866132f4565b6143e96040830185613148565b81810360608301526143fb8184614384565b905095945050505050565b5f81519050614414816130b7565b92915050565b5f6020828403121561442f5761442e613084565b5b5f61443c84828501614406565b9150509291505056fea26469706673582212201940b35f14a218ff7571322cfbb9fd4a4cfdf243ae97f1f8050a20ed7e7f652a64736f6c63430008160033697066733a2f2f626166796265696467616664726574767a717661796e667068663237337272376f77646f666a78647837766933746f7771377a7135653574376d752f
Deployed Bytecode
0x608060405260043610610334575f3560e01c80636eddb9e3116101aa5780639970ff15116100f6578063c668286211610094578063d5abeb011161006e578063d5abeb0114610b70578063da3ef23f14610b9a578063e985e9c514610bc2578063f2fde38b14610bfe57610334565b8063c668286214610ae2578063c87b56dd14610b0c578063d1d1921314610b4857610334565b8063b88d4fde116100d0578063b88d4fde14610a6c578063ba41b0c614610a88578063bd32fb6614610aa4578063bee1f2b914610acc57610334565b80639970ff15146109de578063a22cb46514610a1a578063ad6cb31914610a4257610334565b8063811d2437116101635780638da5cb5b1161013d5780638da5cb5b146109385780638e1f9cfe1461096257806395d89b411461098c57806397549a46146109b657610334565b8063811d2437146108d25780638456cb59146108fa578063863b026f1461091057610334565b80636eddb9e3146107de57806370a0823114610806578063715018a61461084257806375a41dba1461085857806377e56357146108945780637871e154146108aa57610334565b806318cae269116102845780633ccfd60b1161022257806355f804b3116101fc57806355f804b3146107145780635a23dd991461073c5780636352211e146107785780636c0360eb146107b457610334565b80633ccfd60b146106b857806341f43434146106ce57806342842e0e146106f857610334565b806323b872dd1161025e57806323b872dd1461062257806325c2c0201461063e578063295e4c331461066657806337546c671461067c57610334565b806318cae269146105945780631f398c75146105d0578063231878d1146105fa57610334565b8063085ebf77116102f157806313093b1d116102cb57806313093b1d146104ec57806313faede61461051657806317f7bece1461054057806318160ddd1461056a57610334565b8063085ebf771461047c578063095ea7b3146104a65780630c3f6acf146104c257610334565b806301ffc9a71461033857806306afd5921461037457806306c933d81461039e57806306fdde03146103da57806307656e3314610404578063081812fc14610440575b5f80fd5b348015610343575f80fd5b5061035e600480360381019061035991906130e1565b610c26565b60405161036b9190613126565b60405180910390f35b34801561037f575f80fd5b50610388610cb7565b6040516103959190613157565b60405180910390f35b3480156103a9575f80fd5b506103c460048036038101906103bf91906131ca565b610cbd565b6040516103d19190613126565b60405180910390f35b3480156103e5575f80fd5b506103ee610cda565b6040516103fb919061327f565b60405180910390f35b34801561040f575f80fd5b5061042a600480360381019061042591906131ca565b610d6a565b6040516104379190613157565b60405180910390f35b34801561044b575f80fd5b50610466600480360381019061046191906132c9565b610e88565b6040516104739190613303565b60405180910390f35b348015610487575f80fd5b50610490610f02565b60405161049d9190613157565b60405180910390f35b6104c060048036038101906104bb919061331c565b610f08565b005b3480156104cd575f80fd5b506104d6610f21565b6040516104e39190613157565b60405180910390f35b3480156104f7575f80fd5b50610500610f27565b60405161050d9190613157565b60405180910390f35b348015610521575f80fd5b5061052a610f2d565b6040516105379190613157565b60405180910390f35b34801561054b575f80fd5b50610554610f33565b6040516105619190613157565b60405180910390f35b348015610575575f80fd5b5061057e610f39565b60405161058b9190613157565b60405180910390f35b34801561059f575f80fd5b506105ba60048036038101906105b591906131ca565b610f4e565b6040516105c79190613157565b60405180910390f35b3480156105db575f80fd5b506105e4610f63565b6040516105f19190613157565b60405180910390f35b348015610605575f80fd5b50610620600480360381019061061b91906132c9565b610f69565b005b61063c6004803603810190610637919061335a565b610f7b565b005b348015610649575f80fd5b50610664600480360381019061065f91906133dd565b610fca565b005b348015610671575f80fd5b5061067a610fdc565b005b348015610687575f80fd5b506106a2600480360381019061069d91906131ca565b610fee565b6040516106af9190613157565b60405180910390f35b3480156106c3575f80fd5b506106cc611003565b005b3480156106d9575f80fd5b506106e2611096565b6040516106ef9190613463565b60405180910390f35b610712600480360381019061070d919061335a565b6110a8565b005b34801561071f575f80fd5b5061073a600480360381019061073591906135a8565b6110f7565b005b348015610747575f80fd5b50610762600480360381019061075d919061364c565b611112565b60405161076f9190613126565b60405180910390f35b348015610783575f80fd5b5061079e600480360381019061079991906132c9565b611194565b6040516107ab9190613303565b60405180910390f35b3480156107bf575f80fd5b506107c86111a5565b6040516107d5919061327f565b60405180910390f35b3480156107e9575f80fd5b5061080460048036038101906107ff91906132c9565b611231565b005b348015610811575f80fd5b5061082c600480360381019061082791906131ca565b611243565b6040516108399190613157565b60405180910390f35b34801561084d575f80fd5b506108566112f8565b005b348015610863575f80fd5b5061087e600480360381019061087991906131ca565b61130b565b60405161088b9190613157565b60405180910390f35b34801561089f575f80fd5b506108a8611320565b005b3480156108b5575f80fd5b506108d060048036038101906108cb91906136a9565b611332565b005b3480156108dd575f80fd5b506108f860048036038101906108f391906132c9565b6113e1565b005b348015610905575f80fd5b5061090e6113f3565b005b34801561091b575f80fd5b50610936600480360381019061093191906132c9565b611404565b005b348015610943575f80fd5b5061094c611416565b6040516109599190613303565b60405180910390f35b34801561096d575f80fd5b5061097661143e565b60405161098391906136f6565b60405180910390f35b348015610997575f80fd5b506109a0611444565b6040516109ad919061327f565b60405180910390f35b3480156109c1575f80fd5b506109dc60048036038101906109d791906132c9565b6114d4565b005b3480156109e9575f80fd5b50610a0460048036038101906109ff919061364c565b6114e6565b604051610a119190613126565b60405180910390f35b348015610a25575f80fd5b50610a406004803603810190610a3b9190613739565b611568565b005b348015610a4d575f80fd5b50610a56611581565b604051610a6391906136f6565b60405180910390f35b610a866004803603810190610a819190613815565b611587565b005b610aa26004803603810190610a9d9190613895565b6115d8565b005b348015610aaf575f80fd5b50610aca6004803603810190610ac591906133dd565b611c5c565b005b348015610ad7575f80fd5b50610ae0611c6e565b005b348015610aed575f80fd5b50610af6611c80565b604051610b03919061327f565b60405180910390f35b348015610b17575f80fd5b50610b326004803603810190610b2d91906132c9565b611d0c565b604051610b3f919061327f565b60405180910390f35b348015610b53575f80fd5b50610b6e6004803603810190610b6991906132c9565b611db3565b005b348015610b7b575f80fd5b50610b84611dc5565b604051610b919190613157565b60405180910390f35b348015610ba5575f80fd5b50610bc06004803603810190610bbb91906135a8565b611dcb565b005b348015610bcd575f80fd5b50610be86004803603810190610be391906138f2565b611de6565b604051610bf59190613126565b60405180910390f35b348015610c09575f80fd5b50610c246004803603810190610c1f91906131ca565b611e74565b005b5f6301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c8057506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610cb05750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600d5481565b6017602052805f5260405f205f915054906101000a900460ff1681565b606060028054610ce99061395d565b80601f0160208091040260200160405190810160405280929190818152602001828054610d159061395d565b8015610d605780601f10610d3757610100808354040283529160200191610d60565b820191905f5260205f20905b815481529060010190602001808311610d4357829003601f168201915b5050505050905090565b5f600160165403610dc75760145f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054601154610dc091906139ba565b9050610e83565b600260165403610e235760135f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054601054610e1c91906139ba565b9050610e83565b600360165403610e7f5760155f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054601254610e7891906139ba565b9050610e83565b5f90505b919050565b5f610e9282611ef8565b610ec8576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60065f8381526020019081526020015f205f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600c5481565b81610f1281611f52565b610f1c838361204c565b505050565b60165481565b60115481565b600e5481565b60125481565b5f610f4261218b565b6001545f540303905090565b6015602052805f5260405f205f915090505481565b60105481565b610f71612193565b8060128190555050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610fb957610fb833611f52565b5b610fc484848461221a565b50505050565b610fd2612193565b8060188190555050565b610fe4612193565b6001601681905550565b6014602052805f5260405f205f915090505481565b61100b612193565b611013612528565b5f61101c611416565b73ffffffffffffffffffffffffffffffffffffffff164760405161103f90613a1a565b5f6040518083038185875af1925050503d805f8114611079576040519150601f19603f3d011682016040523d82523d5f602084013e61107e565b606091505b505090508061108b575f80fd5b50611094612577565b565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146110e6576110e533611f52565b5b6110f1848484612581565b50505050565b6110ff612193565b80600a908161110e9190613bc2565b5050565b5f80846040516020016111259190613cd6565b60405160208183030381529060405280519060200120905061118a8484808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f82011690508083019250505050505050601954836125a0565b9150509392505050565b5f61119e826125b6565b9050919050565b600a80546111b29061395d565b80601f01602080910402602001604051908101604052809291908181526020018280546111de9061395d565b80156112295780601f1061120057610100808354040283529160200191611229565b820191905f5260205f20905b81548152906001019060200180831161120c57829003601f168201915b505050505081565b611239612193565b8060118190555050565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036112a9576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054169050919050565b611300612193565b6113095f612679565b565b6013602052805f5260405f205f915090505481565b611328612193565b6003601681905550565b61133a612193565b5f821161137c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137390613d3a565b60405180910390fd5b600f5482611388610f39565b6113929190613d58565b11156113d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ca90613dd5565b60405180910390fd5b6113dd818361273c565b5050565b6113e9612193565b80600e8190555050565b6113fb612193565b5f601681905550565b61140c612193565b8060108190555050565b5f60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60195481565b6060600380546114539061395d565b80601f016020809104026020016040519081016040528092919081815260200182805461147f9061395d565b80156114ca5780601f106114a1576101008083540402835291602001916114ca565b820191905f5260205f20905b8154815290600101906020018083116114ad57829003601f168201915b5050505050905090565b6114dc612193565b80600c8190555050565b5f80846040516020016114f99190613cd6565b60405160208183030381529060405280519060200120905061155e8484808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f82011690508083019250505050505050601854836125a0565b9150509392505050565b8161157281611f52565b61157c8383612759565b505050565b60185481565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146115c5576115c433611f52565b5b6115d18585858561285f565b5050505050565b5f6115e1610f39565b90505f8411611625576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161c90613d3a565b60405180910390fd5b600f5484826116349190613d58565b1115611675576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166c90613dd5565b60405180910390fd5b61167d611416565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611b28575f601654116116f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ea90613e3d565b60405180910390fd5b600160165403611873575f60145f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050611749338585611112565b611788576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177f90613ea5565b60405180910390fd5b6011548511156117cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c490613f33565b60405180910390fd5b60115485826117dc9190613d58565b111561181d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181490613f9b565b60405180910390fd5b84600d5461182b9190613fb9565b34101561186d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186490614044565b60405180910390fd5b50611b27565b6002601654036119f3575f60135f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490506118c93385856114e6565b611908576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ff906140ac565b60405180910390fd5b60105485111561194d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194490613f33565b60405180910390fd5b601054858261195c9190613d58565b111561199d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199490613f9b565b60405180910390fd5b84600c546119ab9190613fb9565b3410156119ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119e490614044565b60405180910390fd5b50611b26565b600360165403611b25575f60155f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050601254851115611a83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7a90613f33565b60405180910390fd5b6012548582611a929190613d58565b1115611ad3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aca90613f9b565b60405180910390fd5b84600e54611ae19190613fb9565b341015611b23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1a90614044565b60405180910390fd5b505b5b5b5b611b32338561273c565b600160165403611b94578360145f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254611b889190613d58565b92505081905550611c56565b600260165403611bf6578360135f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254611bea9190613d58565b92505081905550611c55565b600360165403611c54578360155f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254611c4c9190613d58565b925050819055505b5b5b50505050565b611c64612193565b8060198190555050565b611c76612193565b6002601681905550565b600b8054611c8d9061395d565b80601f0160208091040260200160405190810160405280929190818152602001828054611cb99061395d565b8015611d045780601f10611cdb57610100808354040283529160200191611d04565b820191905f5260205f20905b815481529060010190602001808311611ce757829003601f168201915b505050505081565b6060611d1782611ef8565b611d56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4d9061413a565b60405180910390fd5b5f611d5f6128d1565b90505f815111611d7d5760405180602001604052805f815250611dab565b80611d8784612961565b600b604051602001611d9b93929190614212565b6040516020818303038152906040525b915050919050565b611dbb612193565b80600d8190555050565b600f5481565b611dd3612193565b80600b9081611de29190613bc2565b5050565b5f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b611e7c612193565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611eec575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401611ee39190613303565b60405180910390fd5b611ef581612679565b50565b5f81611f0261218b565b11158015611f1057505f5482105b8015611f4b57505f7c010000000000000000000000000000000000000000000000000000000060045f8581526020019081526020015f205416145b9050919050565b5f6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115612049576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401611fc8929190614242565b602060405180830381865afa158015611fe3573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612007919061427d565b61204857806040517fede71dcc00000000000000000000000000000000000000000000000000000000815260040161203f9190613303565b60405180910390fd5b5b50565b5f61205682611194565b90508073ffffffffffffffffffffffffffffffffffffffff16612077612a2b565b73ffffffffffffffffffffffffffffffffffffffff16146120da576120a38161209e612a2b565b611de6565b6120d9576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b8260065f8481526020019081526020015f205f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b5f6001905090565b61219b612a32565b73ffffffffffffffffffffffffffffffffffffffff166121b9611416565b73ffffffffffffffffffffffffffffffffffffffff1614612218576121dc612a32565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161220f9190613303565b60405180910390fd5b565b5f612224826125b6565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461228b576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8061229684612a39565b915091506122ac81876122a7612a2b565b612a5c565b6122f8576122c1866122bc612a2b565b611de6565b6122f7576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361235d576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61236a8686866001612a9f565b8015612374575f82555b60055f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600190039190508190555060055f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f81546001019190508190555061243c85612418888887612aa5565b7c020000000000000000000000000000000000000000000000000000000017612acc565b60045f8681526020019081526020015f20819055505f7c02000000000000000000000000000000000000000000000000000000008416036124b8575f6001850190505f60045f8381526020019081526020015f2054036124b6575f5481146124b5578360045f8381526020019081526020015f20819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46125208686866001612af6565b505050505050565b60026009540361256d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612564906142f2565b60405180910390fd5b6002600981905550565b6001600981905550565b61259b83838360405180602001604052805f815250611587565b505050565b5f826125ac8584612afc565b1490509392505050565b5f80829050806125c461218b565b11612642575f54811015612641575f60045f8381526020019081526020015f205490505f7c010000000000000000000000000000000000000000000000000000000082160361263f575b5f81036126355760045f836001900393508381526020019081526020015f2054905061260e565b8092505050612674565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b5f60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160085f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612755828260405180602001604052805f815250612b4a565b5050565b8060075f612765612a2b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661280e612a2b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516128539190613126565b60405180910390a35050565b61286a848484610f7b565b5f8373ffffffffffffffffffffffffffffffffffffffff163b146128cb5761289484848484612be1565b6128ca576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060600a80546128e09061395d565b80601f016020809104026020016040519081016040528092919081815260200182805461290c9061395d565b80156129575780601f1061292e57610100808354040283529160200191612957565b820191905f5260205f20905b81548152906001019060200180831161293a57829003601f168201915b5050505050905090565b60605f600161296f84612d2c565b0190505f8167ffffffffffffffff81111561298d5761298c613484565b5b6040519080825280601f01601f1916602001820160405280156129bf5781602001600182028036833780820191505090505b5090505f82602001820190505b600115612a20578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612a1557612a14614310565b5b0494505f85036129cc575b819350505050919050565b5f33905090565b5f33905090565b5f805f60065f8581526020019081526020015f2090508092508254915050915091565b5f73ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b5f8060e883901c905060e8612abb868684612e7d565b62ffffff16901b9150509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b5f808290505f5b8451811015612b3f57612b3082868381518110612b2357612b2261433d565b5b6020026020010151612e85565b91508080600101915050612b03565b508091505092915050565b612b548383612eaf565b5f8373ffffffffffffffffffffffffffffffffffffffff163b14612bdc575f805490505f83820390505b612b905f868380600101945086612be1565b612bc6576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612b7e57815f5414612bd9575f80fd5b50505b505050565b5f8373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612c06612a2b565b8786866040518563ffffffff1660e01b8152600401612c2894939291906143bc565b6020604051808303815f875af1925050508015612c6357506040513d601f19601f82011682018060405250810190612c60919061441a565b60015b612cd9573d805f8114612c91576040519150601f19603f3d011682016040523d82523d5f602084013e612c96565b606091505b505f815103612cd1576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b5f805f90507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612d88577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612d7e57612d7d614310565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612dc5576d04ee2d6d415b85acef81000000008381612dbb57612dba614310565b5b0492506020810190505b662386f26fc100008310612df457662386f26fc100008381612dea57612de9614310565b5b0492506010810190505b6305f5e1008310612e1d576305f5e1008381612e1357612e12614310565b5b0492506008810190505b6127108310612e42576127108381612e3857612e37614310565b5b0492506004810190505b60648310612e655760648381612e5b57612e5a614310565b5b0492506002810190505b600a8310612e74576001810190505b80915050919050565b5f9392505050565b5f818310612e9c57612e978284613058565b612ea7565b612ea68383613058565b5b905092915050565b5f805490505f8203612eed576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612ef95f848385612a9f565b600160406001901b17820260055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282540192505081905550612f6b83612f5c5f865f612aa5565b612f658561306c565b17612acc565b60045f8381526020019081526020015f20819055505f80838301905073ffffffffffffffffffffffffffffffffffffffff8516915082825f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4600183015b8181146130055780835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4600181019050612fcc565b505f820361303f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805f8190555050506130535f848385612af6565b505050565b5f825f528160205260405f20905092915050565b5f6001821460e11b9050919050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6130c08161308c565b81146130ca575f80fd5b50565b5f813590506130db816130b7565b92915050565b5f602082840312156130f6576130f5613084565b5b5f613103848285016130cd565b91505092915050565b5f8115159050919050565b6131208161310c565b82525050565b5f6020820190506131395f830184613117565b92915050565b5f819050919050565b6131518161313f565b82525050565b5f60208201905061316a5f830184613148565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61319982613170565b9050919050565b6131a98161318f565b81146131b3575f80fd5b50565b5f813590506131c4816131a0565b92915050565b5f602082840312156131df576131de613084565b5b5f6131ec848285016131b6565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b8381101561322c578082015181840152602081019050613211565b5f8484015250505050565b5f601f19601f8301169050919050565b5f613251826131f5565b61325b81856131ff565b935061326b81856020860161320f565b61327481613237565b840191505092915050565b5f6020820190508181035f8301526132978184613247565b905092915050565b6132a88161313f565b81146132b2575f80fd5b50565b5f813590506132c38161329f565b92915050565b5f602082840312156132de576132dd613084565b5b5f6132eb848285016132b5565b91505092915050565b6132fd8161318f565b82525050565b5f6020820190506133165f8301846132f4565b92915050565b5f806040838503121561333257613331613084565b5b5f61333f858286016131b6565b9250506020613350858286016132b5565b9150509250929050565b5f805f6060848603121561337157613370613084565b5b5f61337e868287016131b6565b935050602061338f868287016131b6565b92505060406133a0868287016132b5565b9150509250925092565b5f819050919050565b6133bc816133aa565b81146133c6575f80fd5b50565b5f813590506133d7816133b3565b92915050565b5f602082840312156133f2576133f1613084565b5b5f6133ff848285016133c9565b91505092915050565b5f819050919050565b5f61342b61342661342184613170565b613408565b613170565b9050919050565b5f61343c82613411565b9050919050565b5f61344d82613432565b9050919050565b61345d81613443565b82525050565b5f6020820190506134765f830184613454565b92915050565b5f80fd5b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6134ba82613237565b810181811067ffffffffffffffff821117156134d9576134d8613484565b5b80604052505050565b5f6134eb61307b565b90506134f782826134b1565b919050565b5f67ffffffffffffffff82111561351657613515613484565b5b61351f82613237565b9050602081019050919050565b828183375f83830152505050565b5f61354c613547846134fc565b6134e2565b90508281526020810184848401111561356857613567613480565b5b61357384828561352c565b509392505050565b5f82601f83011261358f5761358e61347c565b5b813561359f84826020860161353a565b91505092915050565b5f602082840312156135bd576135bc613084565b5b5f82013567ffffffffffffffff8111156135da576135d9613088565b5b6135e68482850161357b565b91505092915050565b5f80fd5b5f80fd5b5f8083601f84011261360c5761360b61347c565b5b8235905067ffffffffffffffff811115613629576136286135ef565b5b602083019150836020820283011115613645576136446135f3565b5b9250929050565b5f805f6040848603121561366357613662613084565b5b5f613670868287016131b6565b935050602084013567ffffffffffffffff81111561369157613690613088565b5b61369d868287016135f7565b92509250509250925092565b5f80604083850312156136bf576136be613084565b5b5f6136cc858286016132b5565b92505060206136dd858286016131b6565b9150509250929050565b6136f0816133aa565b82525050565b5f6020820190506137095f8301846136e7565b92915050565b6137188161310c565b8114613722575f80fd5b50565b5f813590506137338161370f565b92915050565b5f806040838503121561374f5761374e613084565b5b5f61375c858286016131b6565b925050602061376d85828601613725565b9150509250929050565b5f67ffffffffffffffff82111561379157613790613484565b5b61379a82613237565b9050602081019050919050565b5f6137b96137b484613777565b6134e2565b9050828152602081018484840111156137d5576137d4613480565b5b6137e084828561352c565b509392505050565b5f82601f8301126137fc576137fb61347c565b5b813561380c8482602086016137a7565b91505092915050565b5f805f806080858703121561382d5761382c613084565b5b5f61383a878288016131b6565b945050602061384b878288016131b6565b935050604061385c878288016132b5565b925050606085013567ffffffffffffffff81111561387d5761387c613088565b5b613889878288016137e8565b91505092959194509250565b5f805f604084860312156138ac576138ab613084565b5b5f6138b9868287016132b5565b935050602084013567ffffffffffffffff8111156138da576138d9613088565b5b6138e6868287016135f7565b92509250509250925092565b5f806040838503121561390857613907613084565b5b5f613915858286016131b6565b9250506020613926858286016131b6565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061397457607f821691505b60208210810361398757613986613930565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6139c48261313f565b91506139cf8361313f565b92508282039050818111156139e7576139e661398d565b5b92915050565b5f81905092915050565b50565b5f613a055f836139ed565b9150613a10826139f7565b5f82019050919050565b5f613a24826139fa565b9150819050919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302613a8a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613a4f565b613a948683613a4f565b95508019841693508086168417925050509392505050565b5f613ac6613ac1613abc8461313f565b613408565b61313f565b9050919050565b5f819050919050565b613adf83613aac565b613af3613aeb82613acd565b848454613a5b565b825550505050565b5f90565b613b07613afb565b613b12818484613ad6565b505050565b5b81811015613b3557613b2a5f82613aff565b600181019050613b18565b5050565b601f821115613b7a57613b4b81613a2e565b613b5484613a40565b81016020851015613b63578190505b613b77613b6f85613a40565b830182613b17565b50505b505050565b5f82821c905092915050565b5f613b9a5f1984600802613b7f565b1980831691505092915050565b5f613bb28383613b8b565b9150826002028217905092915050565b613bcb826131f5565b67ffffffffffffffff811115613be457613be3613484565b5b613bee825461395d565b613bf9828285613b39565b5f60209050601f831160018114613c2a575f8415613c18578287015190505b613c228582613ba7565b865550613c89565b601f198416613c3886613a2e565b5f5b82811015613c5f57848901518255600182019150602085019450602081019050613c3a565b86831015613c7c5784890151613c78601f891682613b8b565b8355505b6001600288020188555050505b505050505050565b5f8160601b9050919050565b5f613ca782613c91565b9050919050565b5f613cb882613c9d565b9050919050565b613cd0613ccb8261318f565b613cae565b82525050565b5f613ce18284613cbf565b60148201915081905092915050565b7f6e65656420746f206d696e74206174206c656173742031204e465400000000005f82015250565b5f613d24601b836131ff565b9150613d2f82613cf0565b602082019050919050565b5f6020820190508181035f830152613d5181613d18565b9050919050565b5f613d628261313f565b9150613d6d8361313f565b9250828201905080821115613d8557613d8461398d565b5b92915050565b7f6d6178204e4654206c696d6974206578636565646564000000000000000000005f82015250565b5f613dbf6016836131ff565b9150613dca82613d8b565b602082019050919050565b5f6020820190508181035f830152613dec81613db3565b9050919050565b7f74686520636f6e747261637420697320706175736564000000000000000000005f82015250565b5f613e276016836131ff565b9150613e3282613df3565b602082019050919050565b5f6020820190508181035f830152613e5481613e1b565b9050919050565b7f75736572206973206e6f742077686974656c69737465640000000000000000005f82015250565b5f613e8f6017836131ff565b9150613e9a82613e5b565b602082019050919050565b5f6020820190508181035f830152613ebc81613e83565b9050919050565b7f6d6178206d696e7420616d6f756e74207065722073657373696f6e20657863655f8201527f6564656400000000000000000000000000000000000000000000000000000000602082015250565b5f613f1d6024836131ff565b9150613f2882613ec3565b604082019050919050565b5f6020820190508181035f830152613f4a81613f11565b9050919050565b7f6d6178204e4654207065722061646472657373206578636565646564000000005f82015250565b5f613f85601c836131ff565b9150613f9082613f51565b602082019050919050565b5f6020820190508181035f830152613fb281613f79565b9050919050565b5f613fc38261313f565b9150613fce8361313f565b9250828202613fdc8161313f565b91508282048414831517613ff357613ff261398d565b5b5092915050565b7f696e73756666696369656e742066756e647300000000000000000000000000005f82015250565b5f61402e6012836131ff565b915061403982613ffa565b602082019050919050565b5f6020820190508181035f83015261405b81614022565b9050919050565b7f75736572206973206e6f74204f470000000000000000000000000000000000005f82015250565b5f614096600e836131ff565b91506140a182614062565b602082019050919050565b5f6020820190508181035f8301526140c38161408a565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f5f8201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b5f614124602f836131ff565b915061412f826140ca565b604082019050919050565b5f6020820190508181035f83015261415181614118565b9050919050565b5f81905092915050565b5f61416c826131f5565b6141768185614158565b935061418681856020860161320f565b80840191505092915050565b5f815461419e8161395d565b6141a88186614158565b9450600182165f81146141c257600181146141d757614209565b60ff1983168652811515820286019350614209565b6141e085613a2e565b5f5b83811015614201578154818901526001820191506020810190506141e2565b838801955050505b50505092915050565b5f61421d8286614162565b91506142298285614162565b91506142358284614192565b9150819050949350505050565b5f6040820190506142555f8301856132f4565b61426260208301846132f4565b9392505050565b5f815190506142778161370f565b92915050565b5f6020828403121561429257614291613084565b5b5f61429f84828501614269565b91505092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f6142dc601f836131ff565b91506142e7826142a8565b602082019050919050565b5f6020820190508181035f830152614309816142d0565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81519050919050565b5f82825260208201905092915050565b5f61438e8261436a565b6143988185614374565b93506143a881856020860161320f565b6143b181613237565b840191505092915050565b5f6080820190506143cf5f8301876132f4565b6143dc60208301866132f4565b6143e96040830185613148565b81810360608301526143fb8184614384565b905095945050505050565b5f81519050614414816130b7565b92915050565b5f6020828403121561442f5761442e613084565b5b5f61443c84828501614406565b9150509291505056fea26469706673582212201940b35f14a218ff7571322cfbb9fd4a4cfdf243ae97f1f8050a20ed7e7f652a64736f6c63430008160033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.