ERC-721
Overview
Max Total Supply
187 DSTOCP
Holders
126
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
0 DSTOCPLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DistortionOrdinalClaimPass
Compiler Version
v0.8.9+commit.e5eed63a
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; import {ERC721A} from "erc721a/contracts/ERC721A.sol"; import {ERC721ABurnable} from "erc721a/contracts/extensions/ERC721ABurnable.sol"; import {Ownable} from "openzeppelin-contracts/access/Ownable.sol"; import {IERC2981, ERC2981} from "@openzeppelin/contracts/token/common/ERC2981.sol"; import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import {OperatorFilterer} from "./OperatorFilterer.sol"; interface Distortion { function generateDistortion(uint256 tokenId) external view returns (string memory); } contract DistortionOrdinalClaimPass is ERC721A, ERC721ABurnable, OperatorFilterer, Ownable, ReentrancyGuard, ERC2981 { constructor() ERC721A("Distortion Ordinal Claim Pass", "DSTOCP") { _registerForOperatorFiltering(); operatorFilteringEnabled = true; _setDefaultRoyalty(msg.sender, 500); } event bridgeDistortionEvent(uint256 indexed _tokenId, string _btcAddress, uint256 _number, string _inscription); struct inscriptionDetails { bool enabled; uint256 inscriptionNumber; string inscription; string color; string btcAddress; bool bridged; } event MetadataUpdate(uint256 _tokenId); mapping (uint256 => inscriptionDetails) tokenToInscriptionDetails; bool airdropCompleted; bool bridgeIsOpen; bool public operatorFilteringEnabled; address internal distortionAddress = 0x205A10c241cA38918d3790C89F16675cC46D10a9; bytes32 public root = 0x7b22e66c9205da18f358dd6bea45eda0e9b00fc7e1609040713b5ab33392bedd; function editRoot(bytes32 _root) external onlyOwner { root = _root; } function closeAirdrop() external onlyOwner { airdropCompleted = true; } function bridgeStatus(bool _open) external onlyOwner { bridgeIsOpen = _open; } function airdrop(address[] memory _addresses) public onlyOwner { require(!airdropCompleted, "Can only airdrop once."); for (uint i = 0; i < _addresses.length; i++) { _safeMint(msg.sender, 1); } } function updateMetadata(uint256 _tokenId, uint256 _inscriptionNumber, string memory _inscription, string memory _color, bytes32[] calldata _p) external nonReentrant{ require(msg.sender == ownerOf(_tokenId), "Must be the owner of the token to update it's metadata."); require(!tokenToInscriptionDetails[_tokenId].enabled, "No need to update this token's metadata as it has already been set."); bool validProof = MerkleProof.verify(_p, root, keccak256(abi.encodePacked(_tokenId, _inscriptionNumber, _inscription, _color))); require(validProof, "If you want your pass to display an inscription number, or you want to bridge, you need to update your metadata. This is verified by a merkle root."); tokenToInscriptionDetails[_tokenId].inscriptionNumber = _inscriptionNumber; tokenToInscriptionDetails[_tokenId].inscription = _inscription; tokenToInscriptionDetails[_tokenId].color = _color; tokenToInscriptionDetails[_tokenId].enabled = true; emit MetadataUpdate(_tokenId); } function bridgDistortionToBitcoin(uint256 _tokenId, string memory _btcAddress, uint256 _inscriptionNumber, string memory _inscription, string memory _color, bytes32[] calldata _p) external nonReentrant { require(bridgeIsOpen, "Bridge must be open."); require(ownerOf(_tokenId) == msg.sender, "Must own a Distortion Pass to burn it."); tokenToInscriptionDetails[_tokenId].btcAddress = _btcAddress; tokenToInscriptionDetails[_tokenId].bridged = true; if (tokenToInscriptionDetails[_tokenId].enabled == true) { emit bridgeDistortionEvent(_tokenId, _btcAddress, tokenToInscriptionDetails[_tokenId].inscriptionNumber, tokenToInscriptionDetails[_tokenId].inscription); } else { bool validProof = MerkleProof.verify(_p, root, keccak256(abi.encodePacked(_tokenId, _inscriptionNumber, _inscription, _color))); require(validProof, "Must pass the proof to burn without metadata update."); tokenToInscriptionDetails[_tokenId].inscription = _inscription; emit bridgeDistortionEvent(_tokenId, _btcAddress, _inscriptionNumber, _inscription); } _burn(_tokenId, true); } function isTokenMetadataSet(uint256 _tokenId) public view returns (bool) { return tokenToInscriptionDetails[_tokenId].enabled; } function getTokenBridgingRequest(uint256 _tokenId) public view returns (string[2] memory) { require(tokenToInscriptionDetails[_tokenId].bridged, "Token is not bridged yet."); return [tokenToInscriptionDetails[_tokenId].btcAddress, tokenToInscriptionDetails[_tokenId].inscription]; } 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 inscrNum; string memory inscr; string memory color; if (tokenToInscriptionDetails[tokenId].enabled) { inscrNum = _toString(tokenToInscriptionDetails[tokenId].inscriptionNumber); inscr = tokenToInscriptionDetails[tokenId].inscription; color = tokenToInscriptionDetails[tokenId].color; } else { inscrNum = "Owner must update metadata."; inscr = "Owner must update metadata."; color = "Owner must update metadata."; } string memory dstImage = Base64.encode(bytes(Distortion(distortionAddress).generateDistortion(tokenId))); string memory image = Base64.encode(bytes(string(abi.encodePacked( '<svg width="100%" height="100%" style="background-color:black" version="1.1" viewBox="0 0 1e3 1e3" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <rect x="20%" y="5%" width="60%" height="90%" style="fill:#101010;stroke-width:3;stroke:grey;" /> <image x="22.5%" y="7.5%" width="55%" height="55%" xlink:href="data:image/svg+xml;base64,', dstImage, '"></image> <rect x="20%" y="70%" width="60%" height="15%" style="fill:grey;stroke-width:3;stroke:grey;" /> <text x="50%" y="76%" dominant-baseline="middle" fill="#101010" font-family="Courier" font-size="80px" font-weight="250" text-anchor="middle">DISTORTION</text> <text x="50%" y="81%" dominant-baseline="middle" fill="#101010" font-family="Courier" font-size="43px" font-weight="250" text-anchor="middle">ORDINAL CLAIM PASS</text> <text x="50%" y="90%" dominant-baseline="middle" fill="grey" font-family="Courier" font-size="25px" font-weight="250" text-anchor="middle">', (!tokenToInscriptionDetails[tokenId].enabled) ? inscrNum : string(abi.encodePacked('Inscription #', inscrNum)), '</text></svg>' )))); string memory json = string(abi.encodePacked( '{"name": "Distortion Ordinal Claim Pass #', _toString(tokenId), '", "description": "This pass can be burned to obtain the associated inscription on the Bitcoin blockchain. View an inscription for a specific token ID, update your pass metadata or burn your pass for its corresponding Bitcoin inscription [here](https://distortion.nullish.org).","attributes": [ { "trait_type": "Inscription Number", "value": ', (!tokenToInscriptionDetails[tokenId].enabled) ? string(abi.encodePacked('"', inscrNum, '"')) : inscrNum, ' }, { "trait_type": "Inscription", "value": "', inscr, '"}, { "trait_type": "Color", "value": "', color, '"}],' '"image": "data:application/json;base64,', image, '"}' )); return string(abi.encodePacked('data:application/json;base64,',Base64.encode(bytes(json)))); } 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); } function supportsInterface(bytes4 interfaceId) public view virtual override (ERC721A, ERC2981) returns (bool) { // Supports the following `interfaceId`s: // - IERC165: 0x01ffc9a7 // - IERC721: 0x80ac58cd // - IERC721Metadata: 0x5b5e139f // - IERC2981: 0x2a55205a return ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId); } function setDefaultRoyalty(address receiver, uint96 feeNumerator) public onlyOwner { _setDefaultRoyalty(receiver, feeNumerator); } function setOperatorFilteringEnabled(bool value) public onlyOwner { operatorFilteringEnabled = value; } function _operatorFilteringEnabled() internal view override returns (bool) { return operatorFilteringEnabled; } function _isPriorityOperator(address operator) internal pure override returns (bool) { // OpenSea Seaport Conduit: // https://etherscan.io/address/0x1E0049783F008A0085193E00003D00cd54003c71 // https://goerli.etherscan.io/address/0x1E0049783F008A0085193E00003D00cd54003c71 return operator == address(0x1E0049783F008A0085193E00003D00cd54003c71); } } /// [MIT License] /// @title Base64 /// @notice Provides a function for encoding some bytes in base64 /// @author Brecht Devos <[email protected]> library Base64 { bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /// @notice Encodes some bytes to the base64 representation function encode(bytes memory data) internal pure returns (string memory) { uint256 len = data.length; if (len == 0) return ""; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((len + 2) / 3); // Add some extra buffer at the end bytes memory result = new bytes(encodedLen + 32); bytes memory table = TABLE; assembly { let tablePtr := add(table, 1) let resultPtr := add(result, 32) for { let i := 0 } lt(i, len) { } { i := add(i, 3) let input := and(mload(add(data, i)), 0xffffff) let out := mload(add(tablePtr, and(shr(18, input), 0x3F))) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF)) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF)) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF)) out := shl(224, out) mstore(resultPtr, out) resultPtr := add(resultPtr, 4) } switch mod(len, 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } mstore(result, encodedLen) } return string(result); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /// @notice Optimized and flexible operator filterer to abide to OpenSea's /// mandatory on-chain royalty enforcement in order for new collections to /// receive royalties. /// For more information, see: /// See: https://github.com/ProjectOpenSea/operator-filter-registry abstract contract OperatorFilterer { /// @dev The default OpenSea operator blocklist subscription. address internal constant _DEFAULT_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6; /// @dev The OpenSea operator filter registry. address internal constant _OPERATOR_FILTER_REGISTRY = 0x000000000000AAeB6D7670E522A718067333cd4E; /// @dev Registers the current contract to OpenSea's operator filter, /// and subscribe to the default OpenSea operator blocklist. /// Note: Will not revert nor update existing settings for repeated registration. function _registerForOperatorFiltering() internal virtual { _registerForOperatorFiltering(_DEFAULT_SUBSCRIPTION, true); } /// @dev Registers the current contract to OpenSea's operator filter. /// Note: Will not revert nor update existing settings for repeated registration. function _registerForOperatorFiltering(address subscriptionOrRegistrantToCopy, bool subscribe) internal virtual { /// @solidity memory-safe-assembly assembly { let functionSelector := 0x7d3e3dbe // `registerAndSubscribe(address,address)`. // Clean the upper 96 bits of `subscriptionOrRegistrantToCopy` in case they are dirty. subscriptionOrRegistrantToCopy := shr(96, shl(96, subscriptionOrRegistrantToCopy)) for {} iszero(subscribe) {} { if iszero(subscriptionOrRegistrantToCopy) { functionSelector := 0x4420e486 // `register(address)`. break } functionSelector := 0xa0af2903 // `registerAndCopyEntries(address,address)`. break } // Store the function selector. mstore(0x00, shl(224, functionSelector)) // Store the `address(this)`. mstore(0x04, address()) // Store the `subscriptionOrRegistrantToCopy`. mstore(0x24, subscriptionOrRegistrantToCopy) // Register into the registry. if iszero(call(gas(), _OPERATOR_FILTER_REGISTRY, 0, 0x00, 0x44, 0x00, 0x04)) { // If the function selector has not been overwritten, // it is an out-of-gas error. if eq(shr(224, mload(0x00)), functionSelector) { // To prevent gas under-estimation. revert(0, 0) } } // Restore the part of the free memory pointer that was overwritten, // which is guaranteed to be zero, because of Solidity's memory size limits. mstore(0x24, 0) } } /// @dev Modifier to guard a function and revert if the caller is a blocked operator. modifier onlyAllowedOperator(address from) virtual { if (from != msg.sender) { if (!_isPriorityOperator(msg.sender)) { if (_operatorFilteringEnabled()) _revertIfBlocked(msg.sender); } } _; } /// @dev Modifier to guard a function from approving a blocked operator.. modifier onlyAllowedOperatorApproval(address operator) virtual { if (!_isPriorityOperator(operator)) { if (_operatorFilteringEnabled()) _revertIfBlocked(operator); } _; } /// @dev Helper function that reverts if the `operator` is blocked by the registry. function _revertIfBlocked(address operator) private view { /// @solidity memory-safe-assembly assembly { // Store the function selector of `isOperatorAllowed(address,address)`, // shifted left by 6 bytes, which is enough for 8tb of memory. // We waste 6-3 = 3 bytes to save on 6 runtime gas (PUSH1 0x224 SHL). mstore(0x00, 0xc6171134001122334455) // Store the `address(this)`. mstore(0x1a, address()) // Store the `operator`. mstore(0x3a, operator) // `isOperatorAllowed` always returns true if it does not revert. if iszero(staticcall(gas(), _OPERATOR_FILTER_REGISTRY, 0x16, 0x44, 0x00, 0x00)) { // Bubble up the revert if the staticcall reverts. returndatacopy(0x00, 0x00, returndatasize()) revert(0x00, returndatasize()) } // We'll skip checking if `from` is inside the blacklist. // Even though that can block transferring out of wrapper contracts, // we don't want tokens to be stuck. // Restore the part of the free memory pointer that was overwritten, // which is guaranteed to be zero, if less than 8tb of memory is used. mstore(0x3a, 0) } } /// @dev For deriving contracts to override, so that operator filtering /// can be turned on / off. /// Returns true by default. function _operatorFilteringEnabled() internal view virtual returns (bool) { return true; } /// @dev For deriving contracts to override, so that preferred marketplaces can /// skip operator filtering, helping users save gas. /// Returns false for all inputs by default. function _isPriorityOperator(address) internal view virtual returns (bool) { return false; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../GSN/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721ABurnable.sol'; import '../ERC721A.sol'; /** * @title ERC721ABurnable. * * @dev ERC721A token that can be irreversibly burned (destroyed). */ abstract contract ERC721ABurnable is ERC721A, IERC721ABurnable { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual override { _burn(tokenId, true); } }
// 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.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN 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 memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of ERC721ABurnable. */ interface IERC721ABurnable is IERC721A { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) external; }
// 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 v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "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":[],"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":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"MetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"_btcAddress","type":"string"},{"indexed":false,"internalType":"uint256","name":"_number","type":"uint256"},{"indexed":false,"internalType":"string","name":"_inscription","type":"string"}],"name":"bridgeDistortionEvent","type":"event"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_btcAddress","type":"string"},{"internalType":"uint256","name":"_inscriptionNumber","type":"uint256"},{"internalType":"string","name":"_inscription","type":"string"},{"internalType":"string","name":"_color","type":"string"},{"internalType":"bytes32[]","name":"_p","type":"bytes32[]"}],"name":"bridgDistortionToBitcoin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_open","type":"bool"}],"name":"bridgeStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"closeAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"editRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getTokenBridgingRequest","outputs":[{"internalType":"string[2]","name":"","type":"string[2]"}],"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":"uint256","name":"_tokenId","type":"uint256"}],"name":"isTokenMetadataSet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorFilteringEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"root","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setOperatorFilteringEnabled","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":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_inscriptionNumber","type":"uint256"},{"internalType":"string","name":"_inscription","type":"string"},{"internalType":"string","name":"_color","type":"string"},{"internalType":"bytes32[]","name":"_p","type":"bytes32[]"}],"name":"updateMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405273205a10c241ca38918d3790c89f16675cc46d10a9600d60036101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f7b22e66c9205da18f358dd6bea45eda0e9b00fc7e1609040713b5ab33392bedd60001b600e553480156200008d57600080fd5b506040518060400160405280601d81526020017f446973746f7274696f6e204f7264696e616c20436c61696d20506173730000008152506040518060400160405280600681526020017f4453544f43500000000000000000000000000000000000000000000000000000815250816002908051906020019062000112929190620004a5565b5080600390805190602001906200012b929190620004a5565b506200013c6200024260201b60201c565b60008190555050506000620001566200024b60201b60201c565b905080600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35060016009819055506200020d6200025360201b60201c565b6001600d60026101000a81548160ff0219169083151502179055506200023c336101f46200027c60201b60201c565b620006d5565b60006001905090565b600033905090565b6200027a733cc6cdda760b79bafa08df41ecfa224f810dceb660016200042060201b60201c565b565b6200028c6200049b60201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115620002ed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002e490620005dc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000360576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000357906200064e565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600a60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b637d3e3dbe8260601b60601c9250816200044f57826200044757634420e48690506200044f565b63a0af290390505b8060e01b60005230600452826024526004600060446000806daaeb6d7670e522a718067333cd4e5af162000491578060005160e01c14156200049057600080fd5b5b6000602452505050565b6000612710905090565b828054620004b3906200069f565b90600052602060002090601f016020900481019282620004d7576000855562000523565b82601f10620004f257805160ff191683800117855562000523565b8280016001018555821562000523579182015b828111156200052257825182559160200191906001019062000505565b5b50905062000532919062000536565b5090565b5b808211156200055157600081600090555060010162000537565b5090565b600082825260208201905092915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000620005c4602a8362000555565b9150620005d18262000566565b604082019050919050565b60006020820190508181036000830152620005f781620005b5565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b60006200063660198362000555565b91506200064382620005fe565b602082019050919050565b60006020820190508181036000830152620006698162000627565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620006b857607f821691505b60208210811415620006cf57620006ce62000670565b5b50919050565b615cfc80620006e56000396000f3fe6080604052600436106101d85760003560e01c8063729ad39e11610102578063e985e9c511610095578063f747664911610064578063f747664914610697578063f82a98d5146106c0578063f8355d19146106e9578063fb796e6c14610712576101d8565b8063e985e9c5146105dd578063ebf0c7171461061a578063f2fde38b14610645578063f70c0c6c1461066e576101d8565b8063a22cb465116100d1578063a22cb46514610532578063b7c0b8e81461055b578063b88d4fde14610584578063c87b56dd146105a0576101d8565b8063729ad39e146104765780638da5cb5b1461049f57806395d89b41146104ca578063a19e27b9146104f5576101d8565b806323b872dd1161017a5780635270ea85116101495780635270ea85146103a85780636352211e146103e557806370a0823114610422578063715018a61461045f576101d8565b806323b872dd146103095780632a55205a1461032557806342842e0e1461036357806342966c681461037f576101d8565b8063081812fc116101b6578063081812fc1461026e578063095ea7b3146102ab57806316212265146102c757806318160ddd146102de576101d8565b806301ffc9a7146101dd57806304634d8d1461021a57806306fdde0314610243575b600080fd5b3480156101e957600080fd5b5061020460048036038101906101ff9190613838565b61073d565b6040516102119190613880565b60405180910390f35b34801561022657600080fd5b50610241600480360381019061023c919061393d565b61075f565b005b34801561024f57600080fd5b50610258610804565b6040516102659190613a16565b60405180910390f35b34801561027a57600080fd5b5061029560048036038101906102909190613a6e565b610896565b6040516102a29190613aaa565b60405180910390f35b6102c560048036038101906102c09190613ac5565b610915565b005b3480156102d357600080fd5b506102dc61094a565b005b3480156102ea57600080fd5b506102f36109fe565b6040516103009190613b14565b60405180910390f35b610323600480360381019061031e9190613b2f565b610a15565b005b34801561033157600080fd5b5061034c60048036038101906103479190613b82565b610a80565b60405161035a929190613bc2565b60405180910390f35b61037d60048036038101906103789190613b2f565b610c6b565b005b34801561038b57600080fd5b506103a660048036038101906103a19190613a6e565b610cd6565b005b3480156103b457600080fd5b506103cf60048036038101906103ca9190613a6e565b610ce4565b6040516103dc9190613ceb565b60405180910390f35b3480156103f157600080fd5b5061040c60048036038101906104079190613a6e565b610ea7565b6040516104199190613aaa565b60405180910390f35b34801561042e57600080fd5b5061044960048036038101906104449190613d0d565b610eb9565b6040516104569190613b14565b60405180910390f35b34801561046b57600080fd5b50610474610f72565b005b34801561048257600080fd5b5061049d60048036038101906104989190613e82565b6110ca565b005b3480156104ab57600080fd5b506104b46111df565b6040516104c19190613aaa565b60405180910390f35b3480156104d657600080fd5b506104df611209565b6040516104ec9190613a16565b60405180910390f35b34801561050157600080fd5b5061051c60048036038101906105179190613a6e565b61129b565b6040516105299190613880565b60405180910390f35b34801561053e57600080fd5b5061055960048036038101906105549190613ef7565b6112c8565b005b34801561056757600080fd5b50610582600480360381019061057d9190613f37565b6112fd565b005b61059e60048036038101906105999190614019565b6113b1565b005b3480156105ac57600080fd5b506105c760048036038101906105c29190613a6e565b61141e565b6040516105d49190613a16565b60405180910390f35b3480156105e957600080fd5b5061060460048036038101906105ff919061409c565b611898565b6040516106119190613880565b60405180910390f35b34801561062657600080fd5b5061062f61192c565b60405161063c91906140f5565b60405180910390f35b34801561065157600080fd5b5061066c60048036038101906106679190613d0d565b611932565b005b34801561067a57600080fd5b5061069560048036038101906106909190613f37565b611af9565b005b3480156106a357600080fd5b506106be60048036038101906106b9919061413c565b611bad565b005b3480156106cc57600080fd5b506106e760048036038101906106e29190614265565b611c4e565b005b3480156106f557600080fd5b50610710600480360381019061070b9190614337565b611ed6565b005b34801561071e57600080fd5b506107276121dc565b6040516107349190613880565b60405180910390f35b6000610748826121ef565b80610758575061075782612281565b5b9050919050565b6107676122fb565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146107f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ed90614486565b60405180910390fd5b6108008282612303565b5050565b606060028054610813906144d5565b80601f016020809104026020016040519081016040528092919081815260200182805461083f906144d5565b801561088c5780601f106108615761010080835404028352916020019161088c565b820191906000526020600020905b81548152906001019060200180831161086f57829003601f168201915b5050505050905090565b60006108a182612499565b6108d7576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b8161091f816124f8565b61093b5761092b612544565b1561093a576109398161255b565b5b5b610945838361259f565b505050565b6109526122fb565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146109e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d890614486565b60405180910390fd5b6001600d60006101000a81548160ff021916908315150217905550565b6000610a086126e3565b6001546000540303905090565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610a6f57610a52336124f8565b610a6e57610a5e612544565b15610a6d57610a6c3361255b565b5b5b5b610a7a8484846126ec565b50505050565b6000806000600b60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161415610c1657600a6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610c20612a11565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610c4c9190614536565b610c5691906145bf565b90508160000151819350935050509250929050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610cc557610ca8336124f8565b610cc457610cb4612544565b15610cc357610cc23361255b565b5b5b5b610cd0848484612a1b565b50505050565b610ce1816001612a3b565b50565b610cec613702565b600c600083815260200190815260200160002060050160009054906101000a900460ff16610d4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d469061463c565b60405180910390fd5b6040518060400160405280600c60008581526020019081526020016000206004018054610d7b906144d5565b80601f0160208091040260200160405190810160405280929190818152602001828054610da7906144d5565b8015610df45780601f10610dc957610100808354040283529160200191610df4565b820191906000526020600020905b815481529060010190602001808311610dd757829003601f168201915b50505050508152602001600c60008581526020019081526020016000206002018054610e1f906144d5565b80601f0160208091040260200160405190810160405280929190818152602001828054610e4b906144d5565b8015610e985780601f10610e6d57610100808354040283529160200191610e98565b820191906000526020600020905b815481529060010190602001808311610e7b57829003601f168201915b50505050508152509050919050565b6000610eb282612c8f565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610f21576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b610f7a6122fb565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611009576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100090614486565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6110d26122fb565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611161576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115890614486565b60405180910390fd5b600d60009054906101000a900460ff16156111b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a8906146a8565b60405180910390fd5b60005b81518110156111db576111c8336001612d5d565b80806111d3906146c8565b9150506111b4565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611218906144d5565b80601f0160208091040260200160405190810160405280929190818152602001828054611244906144d5565b80156112915780601f1061126657610100808354040283529160200191611291565b820191906000526020600020905b81548152906001019060200180831161127457829003601f168201915b5050505050905090565b6000600c600083815260200190815260200160002060000160009054906101000a900460ff169050919050565b816112d2816124f8565b6112ee576112de612544565b156112ed576112ec8161255b565b5b5b6112f88383612d7b565b505050565b6113056122fb565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611394576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138b90614486565b60405180910390fd5b80600d60026101000a81548160ff02191690831515021790555050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461140b576113ee336124f8565b61140a576113fa612544565b15611409576114083361255b565b5b5b5b61141785858585612e86565b5050505050565b606061142982612499565b611468576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145f90614783565b60405180910390fd5b6060806060600c600086815260200190815260200160002060000160009054906101000a900460ff16156115fe576114b5600c600087815260200190815260200160002060010154612ef9565b9250600c600086815260200190815260200160002060020180546114d8906144d5565b80601f0160208091040260200160405190810160405280929190818152602001828054611504906144d5565b80156115515780601f1061152657610100808354040283529160200191611551565b820191906000526020600020905b81548152906001019060200180831161153457829003601f168201915b50505050509150600c60008681526020019081526020016000206003018054611579906144d5565b80601f01602080910402602001604051908101604052809291908181526020018280546115a5906144d5565b80156115f25780601f106115c7576101008083540402835291602001916115f2565b820191906000526020600020905b8154815290600101906020018083116115d557829003601f168201915b505050505090506116a7565b6040518060400160405280601b81526020017f4f776e6572206d75737420757064617465206d657461646174612e000000000081525092506040518060400160405280601b81526020017f4f776e6572206d75737420757064617465206d657461646174612e000000000081525091506040518060400160405280601b81526020017f4f776e6572206d75737420757064617465206d657461646174612e000000000081525090505b6000611761600d60039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f49fc50b886040518263ffffffff1660e01b81526004016117079190613b14565b60006040518083038186803b15801561171f57600080fd5b505afa158015611733573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061175c9190614813565b612f52565b905060006117de82600c60008a815260200190815260200160002060000160009054906101000a900460ff16156117b757866040516020016117a391906148e4565b6040516020818303038152906040526117b9565b865b6040516020016117ca929190614e24565b604051602081830303815290604052612f52565b905060006117eb88612ef9565b600c60008a815260200190815260200160002060000160009054906101000a900460ff161561181a578661183b565b8660405160200161182b9190614eb5565b6040516020818303038152906040525b8686856040516020016118529594939291906152c3565b604051602081830303815290604052905061186c81612f52565b60405160200161187c919061539c565b6040516020818303038152906040529650505050505050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600e5481565b61193a6122fb565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146119c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c090614486565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611a39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3090615430565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611b016122fb565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611b90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8790614486565b60405180910390fd5b80600d60016101000a81548160ff02191690831515021790555050565b611bb56122fb565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611c44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3b90614486565b60405180910390fd5b80600e8190555050565b611c566130ea565b611c5f86610ea7565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611ccc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cc3906154c2565b60405180910390fd5b600c600087815260200190815260200160002060000160009054906101000a900460ff1615611d30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d279061557a565b60405180910390fd5b6000611dac838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600e5489898989604051602001611d9194939291906155bb565b6040516020818303038152906040528051906020012061313a565b905080611dee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de5906156e5565b60405180910390fd5b85600c60008981526020019081526020016000206001018190555084600c60008981526020019081526020016000206002019080519060200190611e33929190613729565b5083600c60008981526020019081526020016000206003019080519060200190611e5e929190613729565b506001600c600089815260200190815260200160002060000160006101000a81548160ff0219169083151502179055507ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce787604051611ebd9190613b14565b60405180910390a150611ece613151565b505050505050565b611ede6130ea565b600d60019054906101000a900460ff16611f2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2490615751565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16611f4d88610ea7565b73ffffffffffffffffffffffffffffffffffffffff1614611fa3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9a906157e3565b60405180910390fd5b85600c60008981526020019081526020016000206004019080519060200190611fcd929190613729565b506001600c600089815260200190815260200160002060050160006101000a81548160ff02191690831515021790555060011515600c600089815260200190815260200160002060000160009054906101000a900460ff161515141561209957867f96067b8d7b80913bfd76989e4a18f937787c67a768b8412c1235032afc5eec4087600c60008b815260200190815260200160002060010154600c60008c815260200190815260200160002060020160405161208c93929190615898565b60405180910390a26121c0565b6000612115838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600e548a8989896040516020016120fa94939291906155bb565b6040516020818303038152906040528051906020012061313a565b905080612157576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161214e9061594f565b60405180910390fd5b84600c60008a81526020019081526020016000206002019080519060200190612181929190613729565b50877f96067b8d7b80913bfd76989e4a18f937787c67a768b8412c1235032afc5eec408888886040516121b69392919061596f565b60405180910390a2505b6121cb876001612a3b565b6121d3613151565b50505050505050565b600d60029054906101000a900460ff1681565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061224a57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061227a5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806122f457506122f38261315b565b5b9050919050565b600033905090565b61230b612a11565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612369576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161236090615a26565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156123d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d090615a92565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600a60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000816124a46126e3565b111580156124b3575060005482105b80156124f1575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b6000731e0049783f008a0085193e00003d00cd54003c7173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16149050919050565b6000600d60029054906101000a900460ff16905090565b69c617113400112233445560005230601a5280603a52600080604460166daaeb6d7670e522a718067333cd4e5afa612597573d6000803e3d6000fd5b6000603a5250565b60006125aa82610ea7565b90508073ffffffffffffffffffffffffffffffffffffffff166125cb6131c5565b73ffffffffffffffffffffffffffffffffffffffff161461262e576125f7816125f26131c5565b611898565b61262d576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001905090565b60006126f782612c8f565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461275e576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061276a846131cd565b91509150612780818761277b6131c5565b6131f4565b6127cc57612795866127906131c5565b611898565b6127cb576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415612833576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6128408686866001613238565b801561284b57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550612919856128f588888761323e565b7c020000000000000000000000000000000000000000000000000000000017613266565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841614156129a157600060018501905060006004600083815260200190815260200160002054141561299f57600054811461299e578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612a098686866001613291565b505050505050565b6000612710905090565b612a36838383604051806020016040528060008152506113b1565b505050565b6000612a4683612c8f565b90506000819050600080612a59866131cd565b915091508415612ac257612a758184612a706131c5565b6131f4565b612ac157612a8a83612a856131c5565b611898565b612ac0576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b612ad0836000886001613238565b8015612adb57600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612b8383612b408560008861323e565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717613266565b600460008881526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000085161415612c0b576000600187019050600060046000838152602001908152602001600020541415612c09576000548114612c08578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612c75836000886001613291565b600160008154809291906001019190505550505050505050565b60008082905080612c9e6126e3565b11612d2657600054811015612d255760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612d23575b6000811415612d19576004600083600190039350838152602001908152602001600020549050612cee565b8092505050612d58565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b612d77828260405180602001604052806000815250613297565b5050565b8060076000612d886131c5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612e356131c5565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612e7a9190613880565b60405180910390a35050565b612e91848484610a15565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612ef357612ebc84848484613334565b612ef2576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b606060a060405101806040526020810391506000825281835b600115612f3d57600184039350600a81066030018453600a8104905080612f3857612f3d565b612f12565b50828103602084039350808452505050919050565b60606000825190506000811415612f7b57604051806020016040528060008152509150506130e5565b60006003600283612f8c9190615ab2565b612f9691906145bf565b6004612fa29190614536565b90506000602082612fb39190615ab2565b67ffffffffffffffff811115612fcc57612fcb613d3f565b5b6040519080825280601f01601f191660200182016040528015612ffe5781602001600182028036833780820191505090505b5090506000604051806060016040528060408152602001615c87604091399050600181016020830160005b868110156130a25760038101905062ffffff818a015116603f8160121c168401518060081b905060ff603f83600c1c1686015116810190508060081b905060ff603f8360061c1686015116810190508060081b905060ff603f831686015116810190508060e01b90508084526004840193505050613029565b5060038606600181146130bc57600281146130cc576130d7565b613d3d60f01b60028303526130d7565b603d60f81b60018303525b508484525050819450505050505b919050565b60026009541415613130576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161312790615b54565b60405180910390fd5b6002600981905550565b6000826131478584613494565b1490509392505050565b6001600981905550565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86132558686846134ea565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6132a183836134f3565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461332f57600080549050600083820390505b6132e16000868380600101945086613334565b613317576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106132ce57816000541461332c57600080fd5b50505b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261335a6131c5565b8786866040518563ffffffff1660e01b815260040161337c9493929190615bc9565b602060405180830381600087803b15801561339657600080fd5b505af19250505080156133c757506040513d601f19601f820116820180604052508101906133c49190615c2a565b60015b613441573d80600081146133f7576040519150601f19603f3d011682016040523d82523d6000602084013e6133fc565b606091505b50600081511415613439576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60008082905060005b84518110156134df576134ca828683815181106134bd576134bc615c57565b5b60200260200101516136b0565b915080806134d7906146c8565b91505061349d565b508091505092915050565b60009392505050565b6000805490506000821415613534576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6135416000848385613238565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506135b8836135a9600086600061323e565b6135b2856136db565b17613266565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461365957808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460018101905061361e565b506000821415613695576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506136ab6000848385613291565b505050565b60008183106136c8576136c382846136eb565b6136d3565b6136d283836136eb565b5b905092915050565b60006001821460e11b9050919050565b600082600052816020526040600020905092915050565b60405180604001604052806002905b60608152602001906001900390816137115790505090565b828054613735906144d5565b90600052602060002090601f016020900481019282613757576000855561379e565b82601f1061377057805160ff191683800117855561379e565b8280016001018555821561379e579182015b8281111561379d578251825591602001919060010190613782565b5b5090506137ab91906137af565b5090565b5b808211156137c85760008160009055506001016137b0565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613815816137e0565b811461382057600080fd5b50565b6000813590506138328161380c565b92915050565b60006020828403121561384e5761384d6137d6565b5b600061385c84828501613823565b91505092915050565b60008115159050919050565b61387a81613865565b82525050565b60006020820190506138956000830184613871565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006138c68261389b565b9050919050565b6138d6816138bb565b81146138e157600080fd5b50565b6000813590506138f3816138cd565b92915050565b60006bffffffffffffffffffffffff82169050919050565b61391a816138f9565b811461392557600080fd5b50565b60008135905061393781613911565b92915050565b60008060408385031215613954576139536137d6565b5b6000613962858286016138e4565b925050602061397385828601613928565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b838110156139b757808201518184015260208101905061399c565b838111156139c6576000848401525b50505050565b6000601f19601f8301169050919050565b60006139e88261397d565b6139f28185613988565b9350613a02818560208601613999565b613a0b816139cc565b840191505092915050565b60006020820190508181036000830152613a3081846139dd565b905092915050565b6000819050919050565b613a4b81613a38565b8114613a5657600080fd5b50565b600081359050613a6881613a42565b92915050565b600060208284031215613a8457613a836137d6565b5b6000613a9284828501613a59565b91505092915050565b613aa4816138bb565b82525050565b6000602082019050613abf6000830184613a9b565b92915050565b60008060408385031215613adc57613adb6137d6565b5b6000613aea858286016138e4565b9250506020613afb85828601613a59565b9150509250929050565b613b0e81613a38565b82525050565b6000602082019050613b296000830184613b05565b92915050565b600080600060608486031215613b4857613b476137d6565b5b6000613b56868287016138e4565b9350506020613b67868287016138e4565b9250506040613b7886828701613a59565b9150509250925092565b60008060408385031215613b9957613b986137d6565b5b6000613ba785828601613a59565b9250506020613bb885828601613a59565b9150509250929050565b6000604082019050613bd76000830185613a9b565b613be46020830184613b05565b9392505050565b600060029050919050565b600081905092915050565b6000819050919050565b600082825260208201905092915050565b6000613c278261397d565b613c318185613c0b565b9350613c41818560208601613999565b613c4a816139cc565b840191505092915050565b6000613c618383613c1c565b905092915050565b6000602082019050919050565b6000613c8182613beb565b613c8b8185613bf6565b935083602082028501613c9d85613c01565b8060005b85811015613cd95784840389528151613cba8582613c55565b9450613cc583613c69565b925060208a01995050600181019050613ca1565b50829750879550505050505092915050565b60006020820190508181036000830152613d058184613c76565b905092915050565b600060208284031215613d2357613d226137d6565b5b6000613d31848285016138e4565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613d77826139cc565b810181811067ffffffffffffffff82111715613d9657613d95613d3f565b5b80604052505050565b6000613da96137cc565b9050613db58282613d6e565b919050565b600067ffffffffffffffff821115613dd557613dd4613d3f565b5b602082029050602081019050919050565b600080fd5b6000613dfe613df984613dba565b613d9f565b90508083825260208201905060208402830185811115613e2157613e20613de6565b5b835b81811015613e4a5780613e3688826138e4565b845260208401935050602081019050613e23565b5050509392505050565b600082601f830112613e6957613e68613d3a565b5b8135613e79848260208601613deb565b91505092915050565b600060208284031215613e9857613e976137d6565b5b600082013567ffffffffffffffff811115613eb657613eb56137db565b5b613ec284828501613e54565b91505092915050565b613ed481613865565b8114613edf57600080fd5b50565b600081359050613ef181613ecb565b92915050565b60008060408385031215613f0e57613f0d6137d6565b5b6000613f1c858286016138e4565b9250506020613f2d85828601613ee2565b9150509250929050565b600060208284031215613f4d57613f4c6137d6565b5b6000613f5b84828501613ee2565b91505092915050565b600080fd5b600067ffffffffffffffff821115613f8457613f83613d3f565b5b613f8d826139cc565b9050602081019050919050565b82818337600083830152505050565b6000613fbc613fb784613f69565b613d9f565b905082815260208101848484011115613fd857613fd7613f64565b5b613fe3848285613f9a565b509392505050565b600082601f83011261400057613fff613d3a565b5b8135614010848260208601613fa9565b91505092915050565b60008060008060808587031215614033576140326137d6565b5b6000614041878288016138e4565b9450506020614052878288016138e4565b935050604061406387828801613a59565b925050606085013567ffffffffffffffff811115614084576140836137db565b5b61409087828801613feb565b91505092959194509250565b600080604083850312156140b3576140b26137d6565b5b60006140c1858286016138e4565b92505060206140d2858286016138e4565b9150509250929050565b6000819050919050565b6140ef816140dc565b82525050565b600060208201905061410a60008301846140e6565b92915050565b614119816140dc565b811461412457600080fd5b50565b60008135905061413681614110565b92915050565b600060208284031215614152576141516137d6565b5b600061416084828501614127565b91505092915050565b600067ffffffffffffffff82111561418457614183613d3f565b5b61418d826139cc565b9050602081019050919050565b60006141ad6141a884614169565b613d9f565b9050828152602081018484840111156141c9576141c8613f64565b5b6141d4848285613f9a565b509392505050565b600082601f8301126141f1576141f0613d3a565b5b813561420184826020860161419a565b91505092915050565b600080fd5b60008083601f84011261422557614224613d3a565b5b8235905067ffffffffffffffff8111156142425761424161420a565b5b60208301915083602082028301111561425e5761425d613de6565b5b9250929050565b60008060008060008060a08789031215614282576142816137d6565b5b600061429089828a01613a59565b96505060206142a189828a01613a59565b955050604087013567ffffffffffffffff8111156142c2576142c16137db565b5b6142ce89828a016141dc565b945050606087013567ffffffffffffffff8111156142ef576142ee6137db565b5b6142fb89828a016141dc565b935050608087013567ffffffffffffffff81111561431c5761431b6137db565b5b61432889828a0161420f565b92509250509295509295509295565b600080600080600080600060c0888a031215614356576143556137d6565b5b60006143648a828b01613a59565b975050602088013567ffffffffffffffff811115614385576143846137db565b5b6143918a828b016141dc565b96505060406143a28a828b01613a59565b955050606088013567ffffffffffffffff8111156143c3576143c26137db565b5b6143cf8a828b016141dc565b945050608088013567ffffffffffffffff8111156143f0576143ef6137db565b5b6143fc8a828b016141dc565b93505060a088013567ffffffffffffffff81111561441d5761441c6137db565b5b6144298a828b0161420f565b925092505092959891949750929550565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614470602083613988565b915061447b8261443a565b602082019050919050565b6000602082019050818103600083015261449f81614463565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806144ed57607f821691505b60208210811415614501576145006144a6565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061454182613a38565b915061454c83613a38565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561458557614584614507565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006145ca82613a38565b91506145d583613a38565b9250826145e5576145e4614590565b5b828204905092915050565b7f546f6b656e206973206e6f742062726964676564207965742e00000000000000600082015250565b6000614626601983613988565b9150614631826145f0565b602082019050919050565b6000602082019050818103600083015261465581614619565b9050919050565b7f43616e206f6e6c792061697264726f70206f6e63652e00000000000000000000600082015250565b6000614692601683613988565b915061469d8261465c565b602082019050919050565b600060208201905081810360008301526146c181614685565b9050919050565b60006146d382613a38565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561470657614705614507565b5b600182019050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b600061476d602f83613988565b915061477882614711565b604082019050919050565b6000602082019050818103600083015261479c81614760565b9050919050565b60006147b66147b184614169565b613d9f565b9050828152602081018484840111156147d2576147d1613f64565b5b6147dd848285613999565b509392505050565b600082601f8301126147fa576147f9613d3a565b5b815161480a8482602086016147a3565b91505092915050565b600060208284031215614829576148286137d6565b5b600082015167ffffffffffffffff811115614847576148466137db565b5b614853848285016147e5565b91505092915050565b600081905092915050565b7f496e736372697074696f6e202300000000000000000000000000000000000000600082015250565b600061489d600d8361485c565b91506148a882614867565b600d82019050919050565b60006148be8261397d565b6148c8818561485c565b93506148d8818560208601613999565b80840191505092915050565b60006148ef82614890565b91506148fb82846148b3565b915081905092915050565b7f3c7376672077696474683d223130302522206865696768743d2231303025222060008201527f7374796c653d226261636b67726f756e642d636f6c6f723a626c61636b22207660208201527f657273696f6e3d22312e31222076696577426f783d223020302031653320316560408201527f332220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f3230303060608201527f2f7376672220786d6c6e733a786c696e6b3d22687474703a2f2f7777772e773360808201527f2e6f72672f313939392f786c696e6b223e203c7265637420783d22323025222060a08201527f793d223525222077696474683d2236302522206865696768743d22393025222060c08201527f7374796c653d2266696c6c3a233130313031303b7374726f6b652d776964746860e08201527f3a333b7374726f6b653a677265793b22202f3e203c696d61676520783d2232326101008201527f2e35252220793d22372e3525222077696474683d2235352522206865696768746101208201527f3d223535252220786c696e6b3a687265663d22646174613a696d6167652f73766101408201527f672b786d6c3b6261736536342c0000000000000000000000000000000000000061016082015250565b6000614ae361016d8361485c565b9150614aee82614906565b61016d82019050919050565b7f223e3c2f696d6167653e203c7265637420783d223230252220793d223730252260008201527f2077696474683d2236302522206865696768743d2231352522207374796c653d60208201527f2266696c6c3a677265793b7374726f6b652d77696474683a333b7374726f6b6560408201527f3a677265793b22202f3e203c7465787420783d223530252220793d223736252260608201527f20646f6d696e616e742d626173656c696e653d226d6964646c65222066696c6c60808201527f3d22233130313031302220666f6e742d66616d696c793d22436f75726965722260a08201527f20666f6e742d73697a653d22383070782220666f6e742d7765696768743d223260c08201527f35302220746578742d616e63686f723d226d6964646c65223e444953544f525460e08201527f494f4e3c2f746578743e203c7465787420783d223530252220793d22383125226101008201527f20646f6d696e616e742d626173656c696e653d226d6964646c65222066696c6c6101208201527f3d22233130313031302220666f6e742d66616d696c793d22436f7572696572226101408201527f20666f6e742d73697a653d22343370782220666f6e742d7765696768743d22326101608201527f35302220746578742d616e63686f723d226d6964646c65223e4f5244494e414c6101808201527f20434c41494d20504153533c2f746578743e203c7465787420783d22353025226101a08201527f20793d223930252220646f6d696e616e742d626173656c696e653d226d6964646101c08201527f6c65222066696c6c3d22677265792220666f6e742d66616d696c793d22436f756101e08201527f726965722220666f6e742d73697a653d22323570782220666f6e742d776569676102008201527f68743d223235302220746578742d616e63686f723d226d6964646c65223e000061022082015250565b6000614dc161023e8361485c565b9150614dcc82614afa565b61023e82019050919050565b7f3c2f746578743e3c2f7376673e00000000000000000000000000000000000000600082015250565b6000614e0e600d8361485c565b9150614e1982614dd8565b600d82019050919050565b6000614e2f82614ad5565b9150614e3b82856148b3565b9150614e4682614db3565b9150614e5282846148b3565b9150614e5d82614e01565b91508190509392505050565b7f2200000000000000000000000000000000000000000000000000000000000000600082015250565b6000614e9f60018361485c565b9150614eaa82614e69565b600182019050919050565b6000614ec082614e92565b9150614ecc82846148b3565b9150614ed782614e92565b915081905092915050565b7f7b226e616d65223a2022446973746f7274696f6e204f7264696e616c20436c6160008201527f696d205061737320230000000000000000000000000000000000000000000000602082015250565b6000614f3e60298361485c565b9150614f4982614ee2565b602982019050919050565b7f222c20226465736372697074696f6e223a20225468697320706173732063616e60008201527f206265206275726e656420746f206f627461696e20746865206173736f63696160208201527f74656420696e736372697074696f6e206f6e2074686520426974636f696e206260408201527f6c6f636b636861696e2e205669657720616e20696e736372697074696f6e206660608201527f6f72206120737065636966696320746f6b656e2049442c20757064617465207960808201527f6f75722070617373206d65746164617461206f72206275726e20796f7572207060a08201527f61737320666f722069747320636f72726573706f6e64696e6720426974636f6960c08201527f6e20696e736372697074696f6e205b686572655d2868747470733a2f2f64697360e08201527f746f7274696f6e2e6e756c6c6973682e6f7267292e222c2261747472696275746101008201527f6573223a205b207b202274726169745f74797065223a2022496e7363726970746101208201527f696f6e204e756d626572222c202276616c7565223a200000000000000000000061014082015250565b600061510a6101568361485c565b915061511582614f54565b61015682019050919050565b7f207d2c207b202274726169745f74797065223a2022496e736372697074696f6e60008201527f222c202276616c7565223a202200000000000000000000000000000000000000602082015250565b600061517d602d8361485c565b915061518882615121565b602d82019050919050565b7f227d2c207b202274726169745f74797065223a2022436f6c6f72222c2022766160008201527f6c7565223a202200000000000000000000000000000000000000000000000000602082015250565b60006151ef60278361485c565b91506151fa82615193565b602782019050919050565b7f227d5d2c22696d616765223a2022646174613a6170706c69636174696f6e2f6a60008201527f736f6e3b6261736536342c000000000000000000000000000000000000000000602082015250565b6000615261602b8361485c565b915061526c82615205565b602b82019050919050565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b60006152ad60028361485c565b91506152b882615277565b600282019050919050565b60006152ce82614f31565b91506152da82886148b3565b91506152e5826150fc565b91506152f182876148b3565b91506152fc82615170565b915061530882866148b3565b9150615313826151e2565b915061531f82856148b3565b915061532a82615254565b915061533682846148b3565b9150615341826152a0565b91508190509695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b6000615386601d8361485c565b915061539182615350565b601d82019050919050565b60006153a782615379565b91506153b382846148b3565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061541a602683613988565b9150615425826153be565b604082019050919050565b600060208201905081810360008301526154498161540d565b9050919050565b7f4d75737420626520746865206f776e6572206f662074686520746f6b656e207460008201527f6f207570646174652069742773206d657461646174612e000000000000000000602082015250565b60006154ac603783613988565b91506154b782615450565b604082019050919050565b600060208201905081810360008301526154db8161549f565b9050919050565b7f4e6f206e65656420746f20757064617465207468697320746f6b656e2773206d60008201527f657461646174612061732069742068617320616c7265616479206265656e207360208201527f65742e0000000000000000000000000000000000000000000000000000000000604082015250565b6000615564604383613988565b915061556f826154e2565b606082019050919050565b6000602082019050818103600083015261559381615557565b9050919050565b6000819050919050565b6155b56155b082613a38565b61559a565b82525050565b60006155c782876155a4565b6020820191506155d782866155a4565b6020820191506155e782856148b3565b91506155f382846148b3565b915081905095945050505050565b7f496620796f752077616e7420796f7572207061737320746f20646973706c617960008201527f20616e20696e736372697074696f6e206e756d6265722c206f7220796f75207760208201527f616e7420746f206272696467652c20796f75206e65656420746f20757064617460408201527f6520796f7572206d657461646174612e2054686973206973207665726966696560608201527f642062792061206d65726b6c6520726f6f742e00000000000000000000000000608082015250565b60006156cf609383613988565b91506156da82615601565b60a082019050919050565b600060208201905081810360008301526156fe816156c2565b9050919050565b7f427269646765206d757374206265206f70656e2e000000000000000000000000600082015250565b600061573b601483613988565b915061574682615705565b602082019050919050565b6000602082019050818103600083015261576a8161572e565b9050919050565b7f4d757374206f776e206120446973746f7274696f6e205061737320746f20627560008201527f726e2069742e0000000000000000000000000000000000000000000000000000602082015250565b60006157cd602683613988565b91506157d882615771565b604082019050919050565b600060208201905081810360008301526157fc816157c0565b9050919050565b60008190508160005260206000209050919050565b60008154615825816144d5565b61582f8186613988565b9450600182166000811461584a576001811461585c5761588f565b60ff198316865260208601935061588f565b61586585615803565b60005b8381101561588757815481890152600182019150602081019050615868565b808801955050505b50505092915050565b600060608201905081810360008301526158b281866139dd565b90506158c16020830185613b05565b81810360408301526158d38184615818565b9050949350505050565b7f4d7573742070617373207468652070726f6f6620746f206275726e207769746860008201527f6f7574206d65746164617461207570646174652e000000000000000000000000602082015250565b6000615939603483613988565b9150615944826158dd565b604082019050919050565b600060208201905081810360008301526159688161592c565b9050919050565b6000606082019050818103600083015261598981866139dd565b90506159986020830185613b05565b81810360408301526159aa81846139dd565b9050949350505050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000615a10602a83613988565b9150615a1b826159b4565b604082019050919050565b60006020820190508181036000830152615a3f81615a03565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000615a7c601983613988565b9150615a8782615a46565b602082019050919050565b60006020820190508181036000830152615aab81615a6f565b9050919050565b6000615abd82613a38565b9150615ac883613a38565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115615afd57615afc614507565b5b828201905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000615b3e601f83613988565b9150615b4982615b08565b602082019050919050565b60006020820190508181036000830152615b6d81615b31565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615b9b82615b74565b615ba58185615b7f565b9350615bb5818560208601613999565b615bbe816139cc565b840191505092915050565b6000608082019050615bde6000830187613a9b565b615beb6020830186613a9b565b615bf86040830185613b05565b8181036060830152615c0a8184615b90565b905095945050505050565b600081519050615c248161380c565b92915050565b600060208284031215615c4057615c3f6137d6565b5b6000615c4e84828501615c15565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220836e275328e370e0a4909f6489df9798d988bfdd88c380dc161331c67941e0bf64736f6c63430008090033
Deployed Bytecode
0x6080604052600436106101d85760003560e01c8063729ad39e11610102578063e985e9c511610095578063f747664911610064578063f747664914610697578063f82a98d5146106c0578063f8355d19146106e9578063fb796e6c14610712576101d8565b8063e985e9c5146105dd578063ebf0c7171461061a578063f2fde38b14610645578063f70c0c6c1461066e576101d8565b8063a22cb465116100d1578063a22cb46514610532578063b7c0b8e81461055b578063b88d4fde14610584578063c87b56dd146105a0576101d8565b8063729ad39e146104765780638da5cb5b1461049f57806395d89b41146104ca578063a19e27b9146104f5576101d8565b806323b872dd1161017a5780635270ea85116101495780635270ea85146103a85780636352211e146103e557806370a0823114610422578063715018a61461045f576101d8565b806323b872dd146103095780632a55205a1461032557806342842e0e1461036357806342966c681461037f576101d8565b8063081812fc116101b6578063081812fc1461026e578063095ea7b3146102ab57806316212265146102c757806318160ddd146102de576101d8565b806301ffc9a7146101dd57806304634d8d1461021a57806306fdde0314610243575b600080fd5b3480156101e957600080fd5b5061020460048036038101906101ff9190613838565b61073d565b6040516102119190613880565b60405180910390f35b34801561022657600080fd5b50610241600480360381019061023c919061393d565b61075f565b005b34801561024f57600080fd5b50610258610804565b6040516102659190613a16565b60405180910390f35b34801561027a57600080fd5b5061029560048036038101906102909190613a6e565b610896565b6040516102a29190613aaa565b60405180910390f35b6102c560048036038101906102c09190613ac5565b610915565b005b3480156102d357600080fd5b506102dc61094a565b005b3480156102ea57600080fd5b506102f36109fe565b6040516103009190613b14565b60405180910390f35b610323600480360381019061031e9190613b2f565b610a15565b005b34801561033157600080fd5b5061034c60048036038101906103479190613b82565b610a80565b60405161035a929190613bc2565b60405180910390f35b61037d60048036038101906103789190613b2f565b610c6b565b005b34801561038b57600080fd5b506103a660048036038101906103a19190613a6e565b610cd6565b005b3480156103b457600080fd5b506103cf60048036038101906103ca9190613a6e565b610ce4565b6040516103dc9190613ceb565b60405180910390f35b3480156103f157600080fd5b5061040c60048036038101906104079190613a6e565b610ea7565b6040516104199190613aaa565b60405180910390f35b34801561042e57600080fd5b5061044960048036038101906104449190613d0d565b610eb9565b6040516104569190613b14565b60405180910390f35b34801561046b57600080fd5b50610474610f72565b005b34801561048257600080fd5b5061049d60048036038101906104989190613e82565b6110ca565b005b3480156104ab57600080fd5b506104b46111df565b6040516104c19190613aaa565b60405180910390f35b3480156104d657600080fd5b506104df611209565b6040516104ec9190613a16565b60405180910390f35b34801561050157600080fd5b5061051c60048036038101906105179190613a6e565b61129b565b6040516105299190613880565b60405180910390f35b34801561053e57600080fd5b5061055960048036038101906105549190613ef7565b6112c8565b005b34801561056757600080fd5b50610582600480360381019061057d9190613f37565b6112fd565b005b61059e60048036038101906105999190614019565b6113b1565b005b3480156105ac57600080fd5b506105c760048036038101906105c29190613a6e565b61141e565b6040516105d49190613a16565b60405180910390f35b3480156105e957600080fd5b5061060460048036038101906105ff919061409c565b611898565b6040516106119190613880565b60405180910390f35b34801561062657600080fd5b5061062f61192c565b60405161063c91906140f5565b60405180910390f35b34801561065157600080fd5b5061066c60048036038101906106679190613d0d565b611932565b005b34801561067a57600080fd5b5061069560048036038101906106909190613f37565b611af9565b005b3480156106a357600080fd5b506106be60048036038101906106b9919061413c565b611bad565b005b3480156106cc57600080fd5b506106e760048036038101906106e29190614265565b611c4e565b005b3480156106f557600080fd5b50610710600480360381019061070b9190614337565b611ed6565b005b34801561071e57600080fd5b506107276121dc565b6040516107349190613880565b60405180910390f35b6000610748826121ef565b80610758575061075782612281565b5b9050919050565b6107676122fb565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146107f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ed90614486565b60405180910390fd5b6108008282612303565b5050565b606060028054610813906144d5565b80601f016020809104026020016040519081016040528092919081815260200182805461083f906144d5565b801561088c5780601f106108615761010080835404028352916020019161088c565b820191906000526020600020905b81548152906001019060200180831161086f57829003601f168201915b5050505050905090565b60006108a182612499565b6108d7576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b8161091f816124f8565b61093b5761092b612544565b1561093a576109398161255b565b5b5b610945838361259f565b505050565b6109526122fb565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146109e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d890614486565b60405180910390fd5b6001600d60006101000a81548160ff021916908315150217905550565b6000610a086126e3565b6001546000540303905090565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610a6f57610a52336124f8565b610a6e57610a5e612544565b15610a6d57610a6c3361255b565b5b5b5b610a7a8484846126ec565b50505050565b6000806000600b60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161415610c1657600a6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610c20612a11565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610c4c9190614536565b610c5691906145bf565b90508160000151819350935050509250929050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610cc557610ca8336124f8565b610cc457610cb4612544565b15610cc357610cc23361255b565b5b5b5b610cd0848484612a1b565b50505050565b610ce1816001612a3b565b50565b610cec613702565b600c600083815260200190815260200160002060050160009054906101000a900460ff16610d4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d469061463c565b60405180910390fd5b6040518060400160405280600c60008581526020019081526020016000206004018054610d7b906144d5565b80601f0160208091040260200160405190810160405280929190818152602001828054610da7906144d5565b8015610df45780601f10610dc957610100808354040283529160200191610df4565b820191906000526020600020905b815481529060010190602001808311610dd757829003601f168201915b50505050508152602001600c60008581526020019081526020016000206002018054610e1f906144d5565b80601f0160208091040260200160405190810160405280929190818152602001828054610e4b906144d5565b8015610e985780601f10610e6d57610100808354040283529160200191610e98565b820191906000526020600020905b815481529060010190602001808311610e7b57829003601f168201915b50505050508152509050919050565b6000610eb282612c8f565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610f21576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b610f7a6122fb565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611009576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100090614486565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6110d26122fb565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611161576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115890614486565b60405180910390fd5b600d60009054906101000a900460ff16156111b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a8906146a8565b60405180910390fd5b60005b81518110156111db576111c8336001612d5d565b80806111d3906146c8565b9150506111b4565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611218906144d5565b80601f0160208091040260200160405190810160405280929190818152602001828054611244906144d5565b80156112915780601f1061126657610100808354040283529160200191611291565b820191906000526020600020905b81548152906001019060200180831161127457829003601f168201915b5050505050905090565b6000600c600083815260200190815260200160002060000160009054906101000a900460ff169050919050565b816112d2816124f8565b6112ee576112de612544565b156112ed576112ec8161255b565b5b5b6112f88383612d7b565b505050565b6113056122fb565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611394576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138b90614486565b60405180910390fd5b80600d60026101000a81548160ff02191690831515021790555050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461140b576113ee336124f8565b61140a576113fa612544565b15611409576114083361255b565b5b5b5b61141785858585612e86565b5050505050565b606061142982612499565b611468576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145f90614783565b60405180910390fd5b6060806060600c600086815260200190815260200160002060000160009054906101000a900460ff16156115fe576114b5600c600087815260200190815260200160002060010154612ef9565b9250600c600086815260200190815260200160002060020180546114d8906144d5565b80601f0160208091040260200160405190810160405280929190818152602001828054611504906144d5565b80156115515780601f1061152657610100808354040283529160200191611551565b820191906000526020600020905b81548152906001019060200180831161153457829003601f168201915b50505050509150600c60008681526020019081526020016000206003018054611579906144d5565b80601f01602080910402602001604051908101604052809291908181526020018280546115a5906144d5565b80156115f25780601f106115c7576101008083540402835291602001916115f2565b820191906000526020600020905b8154815290600101906020018083116115d557829003601f168201915b505050505090506116a7565b6040518060400160405280601b81526020017f4f776e6572206d75737420757064617465206d657461646174612e000000000081525092506040518060400160405280601b81526020017f4f776e6572206d75737420757064617465206d657461646174612e000000000081525091506040518060400160405280601b81526020017f4f776e6572206d75737420757064617465206d657461646174612e000000000081525090505b6000611761600d60039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f49fc50b886040518263ffffffff1660e01b81526004016117079190613b14565b60006040518083038186803b15801561171f57600080fd5b505afa158015611733573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061175c9190614813565b612f52565b905060006117de82600c60008a815260200190815260200160002060000160009054906101000a900460ff16156117b757866040516020016117a391906148e4565b6040516020818303038152906040526117b9565b865b6040516020016117ca929190614e24565b604051602081830303815290604052612f52565b905060006117eb88612ef9565b600c60008a815260200190815260200160002060000160009054906101000a900460ff161561181a578661183b565b8660405160200161182b9190614eb5565b6040516020818303038152906040525b8686856040516020016118529594939291906152c3565b604051602081830303815290604052905061186c81612f52565b60405160200161187c919061539c565b6040516020818303038152906040529650505050505050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600e5481565b61193a6122fb565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146119c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c090614486565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611a39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3090615430565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611b016122fb565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611b90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8790614486565b60405180910390fd5b80600d60016101000a81548160ff02191690831515021790555050565b611bb56122fb565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611c44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3b90614486565b60405180910390fd5b80600e8190555050565b611c566130ea565b611c5f86610ea7565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611ccc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cc3906154c2565b60405180910390fd5b600c600087815260200190815260200160002060000160009054906101000a900460ff1615611d30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d279061557a565b60405180910390fd5b6000611dac838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600e5489898989604051602001611d9194939291906155bb565b6040516020818303038152906040528051906020012061313a565b905080611dee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de5906156e5565b60405180910390fd5b85600c60008981526020019081526020016000206001018190555084600c60008981526020019081526020016000206002019080519060200190611e33929190613729565b5083600c60008981526020019081526020016000206003019080519060200190611e5e929190613729565b506001600c600089815260200190815260200160002060000160006101000a81548160ff0219169083151502179055507ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce787604051611ebd9190613b14565b60405180910390a150611ece613151565b505050505050565b611ede6130ea565b600d60019054906101000a900460ff16611f2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2490615751565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16611f4d88610ea7565b73ffffffffffffffffffffffffffffffffffffffff1614611fa3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9a906157e3565b60405180910390fd5b85600c60008981526020019081526020016000206004019080519060200190611fcd929190613729565b506001600c600089815260200190815260200160002060050160006101000a81548160ff02191690831515021790555060011515600c600089815260200190815260200160002060000160009054906101000a900460ff161515141561209957867f96067b8d7b80913bfd76989e4a18f937787c67a768b8412c1235032afc5eec4087600c60008b815260200190815260200160002060010154600c60008c815260200190815260200160002060020160405161208c93929190615898565b60405180910390a26121c0565b6000612115838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600e548a8989896040516020016120fa94939291906155bb565b6040516020818303038152906040528051906020012061313a565b905080612157576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161214e9061594f565b60405180910390fd5b84600c60008a81526020019081526020016000206002019080519060200190612181929190613729565b50877f96067b8d7b80913bfd76989e4a18f937787c67a768b8412c1235032afc5eec408888886040516121b69392919061596f565b60405180910390a2505b6121cb876001612a3b565b6121d3613151565b50505050505050565b600d60029054906101000a900460ff1681565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061224a57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061227a5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806122f457506122f38261315b565b5b9050919050565b600033905090565b61230b612a11565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612369576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161236090615a26565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156123d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d090615a92565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600a60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000816124a46126e3565b111580156124b3575060005482105b80156124f1575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b6000731e0049783f008a0085193e00003d00cd54003c7173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16149050919050565b6000600d60029054906101000a900460ff16905090565b69c617113400112233445560005230601a5280603a52600080604460166daaeb6d7670e522a718067333cd4e5afa612597573d6000803e3d6000fd5b6000603a5250565b60006125aa82610ea7565b90508073ffffffffffffffffffffffffffffffffffffffff166125cb6131c5565b73ffffffffffffffffffffffffffffffffffffffff161461262e576125f7816125f26131c5565b611898565b61262d576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001905090565b60006126f782612c8f565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461275e576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061276a846131cd565b91509150612780818761277b6131c5565b6131f4565b6127cc57612795866127906131c5565b611898565b6127cb576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415612833576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6128408686866001613238565b801561284b57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550612919856128f588888761323e565b7c020000000000000000000000000000000000000000000000000000000017613266565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841614156129a157600060018501905060006004600083815260200190815260200160002054141561299f57600054811461299e578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612a098686866001613291565b505050505050565b6000612710905090565b612a36838383604051806020016040528060008152506113b1565b505050565b6000612a4683612c8f565b90506000819050600080612a59866131cd565b915091508415612ac257612a758184612a706131c5565b6131f4565b612ac157612a8a83612a856131c5565b611898565b612ac0576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b612ad0836000886001613238565b8015612adb57600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612b8383612b408560008861323e565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717613266565b600460008881526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000085161415612c0b576000600187019050600060046000838152602001908152602001600020541415612c09576000548114612c08578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612c75836000886001613291565b600160008154809291906001019190505550505050505050565b60008082905080612c9e6126e3565b11612d2657600054811015612d255760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612d23575b6000811415612d19576004600083600190039350838152602001908152602001600020549050612cee565b8092505050612d58565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b612d77828260405180602001604052806000815250613297565b5050565b8060076000612d886131c5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612e356131c5565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612e7a9190613880565b60405180910390a35050565b612e91848484610a15565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612ef357612ebc84848484613334565b612ef2576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b606060a060405101806040526020810391506000825281835b600115612f3d57600184039350600a81066030018453600a8104905080612f3857612f3d565b612f12565b50828103602084039350808452505050919050565b60606000825190506000811415612f7b57604051806020016040528060008152509150506130e5565b60006003600283612f8c9190615ab2565b612f9691906145bf565b6004612fa29190614536565b90506000602082612fb39190615ab2565b67ffffffffffffffff811115612fcc57612fcb613d3f565b5b6040519080825280601f01601f191660200182016040528015612ffe5781602001600182028036833780820191505090505b5090506000604051806060016040528060408152602001615c87604091399050600181016020830160005b868110156130a25760038101905062ffffff818a015116603f8160121c168401518060081b905060ff603f83600c1c1686015116810190508060081b905060ff603f8360061c1686015116810190508060081b905060ff603f831686015116810190508060e01b90508084526004840193505050613029565b5060038606600181146130bc57600281146130cc576130d7565b613d3d60f01b60028303526130d7565b603d60f81b60018303525b508484525050819450505050505b919050565b60026009541415613130576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161312790615b54565b60405180910390fd5b6002600981905550565b6000826131478584613494565b1490509392505050565b6001600981905550565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86132558686846134ea565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6132a183836134f3565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461332f57600080549050600083820390505b6132e16000868380600101945086613334565b613317576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106132ce57816000541461332c57600080fd5b50505b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261335a6131c5565b8786866040518563ffffffff1660e01b815260040161337c9493929190615bc9565b602060405180830381600087803b15801561339657600080fd5b505af19250505080156133c757506040513d601f19601f820116820180604052508101906133c49190615c2a565b60015b613441573d80600081146133f7576040519150601f19603f3d011682016040523d82523d6000602084013e6133fc565b606091505b50600081511415613439576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60008082905060005b84518110156134df576134ca828683815181106134bd576134bc615c57565b5b60200260200101516136b0565b915080806134d7906146c8565b91505061349d565b508091505092915050565b60009392505050565b6000805490506000821415613534576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6135416000848385613238565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506135b8836135a9600086600061323e565b6135b2856136db565b17613266565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461365957808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460018101905061361e565b506000821415613695576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506136ab6000848385613291565b505050565b60008183106136c8576136c382846136eb565b6136d3565b6136d283836136eb565b5b905092915050565b60006001821460e11b9050919050565b600082600052816020526040600020905092915050565b60405180604001604052806002905b60608152602001906001900390816137115790505090565b828054613735906144d5565b90600052602060002090601f016020900481019282613757576000855561379e565b82601f1061377057805160ff191683800117855561379e565b8280016001018555821561379e579182015b8281111561379d578251825591602001919060010190613782565b5b5090506137ab91906137af565b5090565b5b808211156137c85760008160009055506001016137b0565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613815816137e0565b811461382057600080fd5b50565b6000813590506138328161380c565b92915050565b60006020828403121561384e5761384d6137d6565b5b600061385c84828501613823565b91505092915050565b60008115159050919050565b61387a81613865565b82525050565b60006020820190506138956000830184613871565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006138c68261389b565b9050919050565b6138d6816138bb565b81146138e157600080fd5b50565b6000813590506138f3816138cd565b92915050565b60006bffffffffffffffffffffffff82169050919050565b61391a816138f9565b811461392557600080fd5b50565b60008135905061393781613911565b92915050565b60008060408385031215613954576139536137d6565b5b6000613962858286016138e4565b925050602061397385828601613928565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b838110156139b757808201518184015260208101905061399c565b838111156139c6576000848401525b50505050565b6000601f19601f8301169050919050565b60006139e88261397d565b6139f28185613988565b9350613a02818560208601613999565b613a0b816139cc565b840191505092915050565b60006020820190508181036000830152613a3081846139dd565b905092915050565b6000819050919050565b613a4b81613a38565b8114613a5657600080fd5b50565b600081359050613a6881613a42565b92915050565b600060208284031215613a8457613a836137d6565b5b6000613a9284828501613a59565b91505092915050565b613aa4816138bb565b82525050565b6000602082019050613abf6000830184613a9b565b92915050565b60008060408385031215613adc57613adb6137d6565b5b6000613aea858286016138e4565b9250506020613afb85828601613a59565b9150509250929050565b613b0e81613a38565b82525050565b6000602082019050613b296000830184613b05565b92915050565b600080600060608486031215613b4857613b476137d6565b5b6000613b56868287016138e4565b9350506020613b67868287016138e4565b9250506040613b7886828701613a59565b9150509250925092565b60008060408385031215613b9957613b986137d6565b5b6000613ba785828601613a59565b9250506020613bb885828601613a59565b9150509250929050565b6000604082019050613bd76000830185613a9b565b613be46020830184613b05565b9392505050565b600060029050919050565b600081905092915050565b6000819050919050565b600082825260208201905092915050565b6000613c278261397d565b613c318185613c0b565b9350613c41818560208601613999565b613c4a816139cc565b840191505092915050565b6000613c618383613c1c565b905092915050565b6000602082019050919050565b6000613c8182613beb565b613c8b8185613bf6565b935083602082028501613c9d85613c01565b8060005b85811015613cd95784840389528151613cba8582613c55565b9450613cc583613c69565b925060208a01995050600181019050613ca1565b50829750879550505050505092915050565b60006020820190508181036000830152613d058184613c76565b905092915050565b600060208284031215613d2357613d226137d6565b5b6000613d31848285016138e4565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613d77826139cc565b810181811067ffffffffffffffff82111715613d9657613d95613d3f565b5b80604052505050565b6000613da96137cc565b9050613db58282613d6e565b919050565b600067ffffffffffffffff821115613dd557613dd4613d3f565b5b602082029050602081019050919050565b600080fd5b6000613dfe613df984613dba565b613d9f565b90508083825260208201905060208402830185811115613e2157613e20613de6565b5b835b81811015613e4a5780613e3688826138e4565b845260208401935050602081019050613e23565b5050509392505050565b600082601f830112613e6957613e68613d3a565b5b8135613e79848260208601613deb565b91505092915050565b600060208284031215613e9857613e976137d6565b5b600082013567ffffffffffffffff811115613eb657613eb56137db565b5b613ec284828501613e54565b91505092915050565b613ed481613865565b8114613edf57600080fd5b50565b600081359050613ef181613ecb565b92915050565b60008060408385031215613f0e57613f0d6137d6565b5b6000613f1c858286016138e4565b9250506020613f2d85828601613ee2565b9150509250929050565b600060208284031215613f4d57613f4c6137d6565b5b6000613f5b84828501613ee2565b91505092915050565b600080fd5b600067ffffffffffffffff821115613f8457613f83613d3f565b5b613f8d826139cc565b9050602081019050919050565b82818337600083830152505050565b6000613fbc613fb784613f69565b613d9f565b905082815260208101848484011115613fd857613fd7613f64565b5b613fe3848285613f9a565b509392505050565b600082601f83011261400057613fff613d3a565b5b8135614010848260208601613fa9565b91505092915050565b60008060008060808587031215614033576140326137d6565b5b6000614041878288016138e4565b9450506020614052878288016138e4565b935050604061406387828801613a59565b925050606085013567ffffffffffffffff811115614084576140836137db565b5b61409087828801613feb565b91505092959194509250565b600080604083850312156140b3576140b26137d6565b5b60006140c1858286016138e4565b92505060206140d2858286016138e4565b9150509250929050565b6000819050919050565b6140ef816140dc565b82525050565b600060208201905061410a60008301846140e6565b92915050565b614119816140dc565b811461412457600080fd5b50565b60008135905061413681614110565b92915050565b600060208284031215614152576141516137d6565b5b600061416084828501614127565b91505092915050565b600067ffffffffffffffff82111561418457614183613d3f565b5b61418d826139cc565b9050602081019050919050565b60006141ad6141a884614169565b613d9f565b9050828152602081018484840111156141c9576141c8613f64565b5b6141d4848285613f9a565b509392505050565b600082601f8301126141f1576141f0613d3a565b5b813561420184826020860161419a565b91505092915050565b600080fd5b60008083601f84011261422557614224613d3a565b5b8235905067ffffffffffffffff8111156142425761424161420a565b5b60208301915083602082028301111561425e5761425d613de6565b5b9250929050565b60008060008060008060a08789031215614282576142816137d6565b5b600061429089828a01613a59565b96505060206142a189828a01613a59565b955050604087013567ffffffffffffffff8111156142c2576142c16137db565b5b6142ce89828a016141dc565b945050606087013567ffffffffffffffff8111156142ef576142ee6137db565b5b6142fb89828a016141dc565b935050608087013567ffffffffffffffff81111561431c5761431b6137db565b5b61432889828a0161420f565b92509250509295509295509295565b600080600080600080600060c0888a031215614356576143556137d6565b5b60006143648a828b01613a59565b975050602088013567ffffffffffffffff811115614385576143846137db565b5b6143918a828b016141dc565b96505060406143a28a828b01613a59565b955050606088013567ffffffffffffffff8111156143c3576143c26137db565b5b6143cf8a828b016141dc565b945050608088013567ffffffffffffffff8111156143f0576143ef6137db565b5b6143fc8a828b016141dc565b93505060a088013567ffffffffffffffff81111561441d5761441c6137db565b5b6144298a828b0161420f565b925092505092959891949750929550565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614470602083613988565b915061447b8261443a565b602082019050919050565b6000602082019050818103600083015261449f81614463565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806144ed57607f821691505b60208210811415614501576145006144a6565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061454182613a38565b915061454c83613a38565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561458557614584614507565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006145ca82613a38565b91506145d583613a38565b9250826145e5576145e4614590565b5b828204905092915050565b7f546f6b656e206973206e6f742062726964676564207965742e00000000000000600082015250565b6000614626601983613988565b9150614631826145f0565b602082019050919050565b6000602082019050818103600083015261465581614619565b9050919050565b7f43616e206f6e6c792061697264726f70206f6e63652e00000000000000000000600082015250565b6000614692601683613988565b915061469d8261465c565b602082019050919050565b600060208201905081810360008301526146c181614685565b9050919050565b60006146d382613a38565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561470657614705614507565b5b600182019050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b600061476d602f83613988565b915061477882614711565b604082019050919050565b6000602082019050818103600083015261479c81614760565b9050919050565b60006147b66147b184614169565b613d9f565b9050828152602081018484840111156147d2576147d1613f64565b5b6147dd848285613999565b509392505050565b600082601f8301126147fa576147f9613d3a565b5b815161480a8482602086016147a3565b91505092915050565b600060208284031215614829576148286137d6565b5b600082015167ffffffffffffffff811115614847576148466137db565b5b614853848285016147e5565b91505092915050565b600081905092915050565b7f496e736372697074696f6e202300000000000000000000000000000000000000600082015250565b600061489d600d8361485c565b91506148a882614867565b600d82019050919050565b60006148be8261397d565b6148c8818561485c565b93506148d8818560208601613999565b80840191505092915050565b60006148ef82614890565b91506148fb82846148b3565b915081905092915050565b7f3c7376672077696474683d223130302522206865696768743d2231303025222060008201527f7374796c653d226261636b67726f756e642d636f6c6f723a626c61636b22207660208201527f657273696f6e3d22312e31222076696577426f783d223020302031653320316560408201527f332220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f3230303060608201527f2f7376672220786d6c6e733a786c696e6b3d22687474703a2f2f7777772e773360808201527f2e6f72672f313939392f786c696e6b223e203c7265637420783d22323025222060a08201527f793d223525222077696474683d2236302522206865696768743d22393025222060c08201527f7374796c653d2266696c6c3a233130313031303b7374726f6b652d776964746860e08201527f3a333b7374726f6b653a677265793b22202f3e203c696d61676520783d2232326101008201527f2e35252220793d22372e3525222077696474683d2235352522206865696768746101208201527f3d223535252220786c696e6b3a687265663d22646174613a696d6167652f73766101408201527f672b786d6c3b6261736536342c0000000000000000000000000000000000000061016082015250565b6000614ae361016d8361485c565b9150614aee82614906565b61016d82019050919050565b7f223e3c2f696d6167653e203c7265637420783d223230252220793d223730252260008201527f2077696474683d2236302522206865696768743d2231352522207374796c653d60208201527f2266696c6c3a677265793b7374726f6b652d77696474683a333b7374726f6b6560408201527f3a677265793b22202f3e203c7465787420783d223530252220793d223736252260608201527f20646f6d696e616e742d626173656c696e653d226d6964646c65222066696c6c60808201527f3d22233130313031302220666f6e742d66616d696c793d22436f75726965722260a08201527f20666f6e742d73697a653d22383070782220666f6e742d7765696768743d223260c08201527f35302220746578742d616e63686f723d226d6964646c65223e444953544f525460e08201527f494f4e3c2f746578743e203c7465787420783d223530252220793d22383125226101008201527f20646f6d696e616e742d626173656c696e653d226d6964646c65222066696c6c6101208201527f3d22233130313031302220666f6e742d66616d696c793d22436f7572696572226101408201527f20666f6e742d73697a653d22343370782220666f6e742d7765696768743d22326101608201527f35302220746578742d616e63686f723d226d6964646c65223e4f5244494e414c6101808201527f20434c41494d20504153533c2f746578743e203c7465787420783d22353025226101a08201527f20793d223930252220646f6d696e616e742d626173656c696e653d226d6964646101c08201527f6c65222066696c6c3d22677265792220666f6e742d66616d696c793d22436f756101e08201527f726965722220666f6e742d73697a653d22323570782220666f6e742d776569676102008201527f68743d223235302220746578742d616e63686f723d226d6964646c65223e000061022082015250565b6000614dc161023e8361485c565b9150614dcc82614afa565b61023e82019050919050565b7f3c2f746578743e3c2f7376673e00000000000000000000000000000000000000600082015250565b6000614e0e600d8361485c565b9150614e1982614dd8565b600d82019050919050565b6000614e2f82614ad5565b9150614e3b82856148b3565b9150614e4682614db3565b9150614e5282846148b3565b9150614e5d82614e01565b91508190509392505050565b7f2200000000000000000000000000000000000000000000000000000000000000600082015250565b6000614e9f60018361485c565b9150614eaa82614e69565b600182019050919050565b6000614ec082614e92565b9150614ecc82846148b3565b9150614ed782614e92565b915081905092915050565b7f7b226e616d65223a2022446973746f7274696f6e204f7264696e616c20436c6160008201527f696d205061737320230000000000000000000000000000000000000000000000602082015250565b6000614f3e60298361485c565b9150614f4982614ee2565b602982019050919050565b7f222c20226465736372697074696f6e223a20225468697320706173732063616e60008201527f206265206275726e656420746f206f627461696e20746865206173736f63696160208201527f74656420696e736372697074696f6e206f6e2074686520426974636f696e206260408201527f6c6f636b636861696e2e205669657720616e20696e736372697074696f6e206660608201527f6f72206120737065636966696320746f6b656e2049442c20757064617465207960808201527f6f75722070617373206d65746164617461206f72206275726e20796f7572207060a08201527f61737320666f722069747320636f72726573706f6e64696e6720426974636f6960c08201527f6e20696e736372697074696f6e205b686572655d2868747470733a2f2f64697360e08201527f746f7274696f6e2e6e756c6c6973682e6f7267292e222c2261747472696275746101008201527f6573223a205b207b202274726169745f74797065223a2022496e7363726970746101208201527f696f6e204e756d626572222c202276616c7565223a200000000000000000000061014082015250565b600061510a6101568361485c565b915061511582614f54565b61015682019050919050565b7f207d2c207b202274726169745f74797065223a2022496e736372697074696f6e60008201527f222c202276616c7565223a202200000000000000000000000000000000000000602082015250565b600061517d602d8361485c565b915061518882615121565b602d82019050919050565b7f227d2c207b202274726169745f74797065223a2022436f6c6f72222c2022766160008201527f6c7565223a202200000000000000000000000000000000000000000000000000602082015250565b60006151ef60278361485c565b91506151fa82615193565b602782019050919050565b7f227d5d2c22696d616765223a2022646174613a6170706c69636174696f6e2f6a60008201527f736f6e3b6261736536342c000000000000000000000000000000000000000000602082015250565b6000615261602b8361485c565b915061526c82615205565b602b82019050919050565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b60006152ad60028361485c565b91506152b882615277565b600282019050919050565b60006152ce82614f31565b91506152da82886148b3565b91506152e5826150fc565b91506152f182876148b3565b91506152fc82615170565b915061530882866148b3565b9150615313826151e2565b915061531f82856148b3565b915061532a82615254565b915061533682846148b3565b9150615341826152a0565b91508190509695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b6000615386601d8361485c565b915061539182615350565b601d82019050919050565b60006153a782615379565b91506153b382846148b3565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061541a602683613988565b9150615425826153be565b604082019050919050565b600060208201905081810360008301526154498161540d565b9050919050565b7f4d75737420626520746865206f776e6572206f662074686520746f6b656e207460008201527f6f207570646174652069742773206d657461646174612e000000000000000000602082015250565b60006154ac603783613988565b91506154b782615450565b604082019050919050565b600060208201905081810360008301526154db8161549f565b9050919050565b7f4e6f206e65656420746f20757064617465207468697320746f6b656e2773206d60008201527f657461646174612061732069742068617320616c7265616479206265656e207360208201527f65742e0000000000000000000000000000000000000000000000000000000000604082015250565b6000615564604383613988565b915061556f826154e2565b606082019050919050565b6000602082019050818103600083015261559381615557565b9050919050565b6000819050919050565b6155b56155b082613a38565b61559a565b82525050565b60006155c782876155a4565b6020820191506155d782866155a4565b6020820191506155e782856148b3565b91506155f382846148b3565b915081905095945050505050565b7f496620796f752077616e7420796f7572207061737320746f20646973706c617960008201527f20616e20696e736372697074696f6e206e756d6265722c206f7220796f75207760208201527f616e7420746f206272696467652c20796f75206e65656420746f20757064617460408201527f6520796f7572206d657461646174612e2054686973206973207665726966696560608201527f642062792061206d65726b6c6520726f6f742e00000000000000000000000000608082015250565b60006156cf609383613988565b91506156da82615601565b60a082019050919050565b600060208201905081810360008301526156fe816156c2565b9050919050565b7f427269646765206d757374206265206f70656e2e000000000000000000000000600082015250565b600061573b601483613988565b915061574682615705565b602082019050919050565b6000602082019050818103600083015261576a8161572e565b9050919050565b7f4d757374206f776e206120446973746f7274696f6e205061737320746f20627560008201527f726e2069742e0000000000000000000000000000000000000000000000000000602082015250565b60006157cd602683613988565b91506157d882615771565b604082019050919050565b600060208201905081810360008301526157fc816157c0565b9050919050565b60008190508160005260206000209050919050565b60008154615825816144d5565b61582f8186613988565b9450600182166000811461584a576001811461585c5761588f565b60ff198316865260208601935061588f565b61586585615803565b60005b8381101561588757815481890152600182019150602081019050615868565b808801955050505b50505092915050565b600060608201905081810360008301526158b281866139dd565b90506158c16020830185613b05565b81810360408301526158d38184615818565b9050949350505050565b7f4d7573742070617373207468652070726f6f6620746f206275726e207769746860008201527f6f7574206d65746164617461207570646174652e000000000000000000000000602082015250565b6000615939603483613988565b9150615944826158dd565b604082019050919050565b600060208201905081810360008301526159688161592c565b9050919050565b6000606082019050818103600083015261598981866139dd565b90506159986020830185613b05565b81810360408301526159aa81846139dd565b9050949350505050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000615a10602a83613988565b9150615a1b826159b4565b604082019050919050565b60006020820190508181036000830152615a3f81615a03565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000615a7c601983613988565b9150615a8782615a46565b602082019050919050565b60006020820190508181036000830152615aab81615a6f565b9050919050565b6000615abd82613a38565b9150615ac883613a38565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115615afd57615afc614507565b5b828201905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000615b3e601f83613988565b9150615b4982615b08565b602082019050919050565b60006020820190508181036000830152615b6d81615b31565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615b9b82615b74565b615ba58185615b7f565b9350615bb5818560208601613999565b615bbe816139cc565b840191505092915050565b6000608082019050615bde6000830187613a9b565b615beb6020830186613a9b565b615bf86040830185613b05565b8181036060830152615c0a8184615b90565b905095945050505050565b600081519050615c248161380c565b92915050565b600060208284031215615c4057615c3f6137d6565b5b6000615c4e84828501615c15565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220836e275328e370e0a4909f6489df9798d988bfdd88c380dc161331c67941e0bf64736f6c63430008090033
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.