ERC-721
NFT
Overview
Max Total Supply
555 EDGE
Holders
37
Total Transfers
-
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
OnTheEdgeOfOblivion
Compiler Version
v0.8.11+commit.d7f03943
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.4; import {ERC721A} from "erc721a/contracts/ERC721A.sol"; import {Ownable} from "openzeppelin-contracts/access/Ownable.sol"; import {IERC2981, ERC2981} from "@openzeppelin/contracts/token/common/ERC2981.sol"; import {Address} from "@openzeppelin/contracts/utils/Address.sol"; import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import {OperatorFilterer} from "../OperatorFilterer.sol"; contract OnTheEdgeOfOblivion is ERC721A, OperatorFilterer, Ownable, ReentrancyGuard, ERC2981 { constructor() ERC721A("On the Edge of Oblivion", "EDGE") { _registerForOperatorFiltering(); operatorFilteringEnabled = true; _setDefaultRoyalty(msg.sender, 750); _safeMint(msg.sender, 1); } uint256 public price = 0.025 ether; uint256 public maxSupply = 555; bool public operatorFilteringEnabled; mapping(address => bool) internal w; address internal verifier; bytes32 internal root; uint256 internal mintPhase; string internal renderURI; bool internal isPreviewOnChain = true; /*////////////////////////////////////////// ___ ________ _ _ _____ _____ _ _ _____ | \/ |_ _| \ | |_ _|_ _| \ | | __ \ | . . | | | | \| | | | | | | \| | | \/ | |\/| | | | | . ` | | | | | | . ` | | __ | | | |_| |_| |\ | | | _| |_| |\ | |_\ \ \_| |_/\___/\_| \_/ \_/ \___/\_| \_/\____/ /*////////////////////////////////////////// function publicMint(uint256 _amount, uint256 _phase, uint160 _hash, bytes32[] calldata _p) external payable nonReentrant checks() { bool validProof = MerkleProof.verify(_p, root, keccak256(abi.encodePacked(msg.sender, _amount, _phase))); if (mintPhase < 2) { require(validProof, "If phase is not 2, valid proof is required."); require(_phase == mintPhase, "Your phase must be equal to the current phase."); } else { require(_hash == requestHash(msg.sender), "Make sure you are minting on the website."); } uint256 qty = validProof ? _amount : 1; require(msg.value == price, "Please send the exact amount of Ether."); w[msg.sender] = true; _safeMint(msg.sender, qty); if (validProof) executeFreeMint(msg.sender, price); } /*/////////////////////////////////////////////// ______ ___________ _ _______ _____________ | _ \ ___| ___ \ | | _ \ \ / / ___| ___ \ | | | | |__ | |_/ / | | | | |\ V /| |__ | |_/ / | | | | __|| __/| | | | | | \ / | __|| / | |/ /| |___| | | |___\ \_/ / | | | |___| |\ \ |___/ \____/\_| \_____/\___/ \_/ \____/\_| \_| /*/////////////////////////////////////////////// function setVerifier(address _address) external onlyOwner { verifier = _address; } function changeMintPhase(uint256 _currentPhase) external onlyOwner { mintPhase = _currentPhase; } function changePreviewImage(bool _isPreviewOnChain, string memory _renderURI) external onlyOwner { renderURI = _renderURI; isPreviewOnChain = _isPreviewOnChain; } function editPrice(uint256 _price) external onlyOwner { price = _price; } function editList(bytes32 _root) external onlyOwner { root = _root; } function withdraw() public onlyOwner { uint256 b = address(this).balance; Address.sendValue(payable(owner()), b); } /*/////////////////////////////////////////////// _____ _____ _ _ ___________ ___ _____ _____ / __ \ _ | \ | |_ _| ___ \/ _ \/ __ \_ _| | / \/ | | | \| | | | | |_/ / /_\ \ / \/ | | | | | | | | . ` | | | | /| _ | | | | | \__/\ \_/ / |\ | | | | |\ \| | | | \__/\ | | \____/\___/\_| \_/ \_/ \_| \_\_| |_/\____/ \_/ /*/////////////////////////////////////////////// function _startTokenId() internal view virtual override returns (uint256) { return 1; } function getAttributes(uint256 _tokenId) internal view returns (uint256[3] memory) { return [ nb(1, 10, "power", _tokenId), nb(1, 10, "eventHorizon", _tokenId), nb(1, 10, "radiation", _tokenId) ]; } function nb(uint low, uint high, string memory n, uint256 t) internal view returns (uint) { uint d = high - low; uint rn = uint(keccak256(abi.encodePacked(n, t))) % d + 1; rn = rn + low; return rn; } modifier checks() { require(mintPhase > 0, "Mint is not live."); require(_totalMinted() + 1 <= maxSupply, "Max supply cap is 555 tokens."); require(!w[msg.sender], "One claim transaction per wallet."); require(msg.sender == tx.origin, "EOAs only"); _; } function requestHash(address _addr) internal view returns (uint160) { return mintParameters(verifier).request(_addr); } function getCurrentPhase() external view returns (uint256) { return mintPhase; } function executeFreeMint(address _a, uint256 _r) internal { payable(_a).transfer(_r); } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory html = string(abi.encodePacked( '<html> <head> <style> body { margin:0; background: #000; overflow: hidden; } canvas { bottom: 0; height: 100vw; left: 0; margin: auto; max-height: 100vh; max-width: 100vh; position: absolute; right: 0; top: 0; width: 100vw; } .text { color:white; position: absolute; top: 0; left: 0; font-family:Consolas; padding:2vw; font-size:1vw; } </style> </head> <body> <canvas id="canvas"></canvas> </body> </html> <script> var power = 19+2*', _toString(getAttributes(tokenId)[0]), ';var eventHorizon = ', _toString(getAttributes(tokenId)[1]), ';var radiation = 19 +3*', _toString(getAttributes(tokenId)[2]), ';function onTheEdgeOfOblivion(p,q,r){function j(a,b){return b=a,a=-2500/(1024/h),Math.floor(Math.random()*(b-a+1))+a;}var f=document.querySelector("canvas"),g=f.getContext("2d"),h=f.width=1250,n=f.height=1250,i=[],k=0,l=4000+p*1000;var c=document.createElement("canvas"),d=c.getContext("2d");c.width=1500,c.height=1500;var a=c.width/2;var e=d.createRadialGradient(a,a,0,a,a,a);e.addColorStop(0.1/100,"#fff"),e.addColorStop(0.5/100,"hsl(25, 60%, 15%)"),e.addColorStop(35/100,"hsl(25,65%,1%)"),e.addColorStop(0.9,"transparent"),d.fillStyle=e,d.beginPath(),d.arc(a,a,a,1,Math.PI*2),d.fill();var m=function(){this.oR=j(-h/(16-q)),this.radius=j(100,this.oR)/5,this.oX=h/2,this.oY=n/2,this.matter=j(0,l),this.paramZ=0.2/100*r+7.5/100,k++,i[k]=this;};m.prototype.draw=function(){var a=Math.sin(this.matter)*this.oR+this.oX,b=Math.cos(this.matter)*this.oR/1+this.oY;g.globalAlpha=this.paramZ,g.drawImage(c,a-this.radius/2,b-this.radius/2,this.radius,this.radius);};for(var b=0;b<l;b++)new m();for(var b=1,o=i.length;b<o;b++)g.globalCompositeOperation="lighter",i[b].draw();};onTheEdgeOfOblivion(power, eventHorizon, radiation);</script>' )); string memory thumbnail = (isPreviewOnChain) ? string(abi.encodePacked('data:image/svg+xml;base64,', Base64.encode(bytes('<svg style="background-color:#000" preserveAspectRatio="xMinYMin meet" viewBox="0 0 750 750" xmlns="http://www.w3.org/2000/svg"> <filter id="b"> <feTurbulence baseFrequency="0.2"/> <feColorMatrix values="0 0 0 9 -5 0 0 0 9 -5 0 0 0 9 -5 0 0 0 0 1"/> </filter> <rect width="100%" height="100%" filter="url(#b)" opacity=".5"/> <circle cx="50%" cy="50%" r="20%"/> <defs xmlns="http://www.w3.org/2000/svg"> <filter id="a" x="0%" y="0%" xmlns="http://www.w3.org/2000/svg"> <feTurbulence baseFrequency="0.0005 1.5" numOctaves="10" result="turbulence" seed="4545"> <animate attributeName="seed" calcMode="discrete" dur="0.25s" repeatCount="indefinite" values="1;2;3;4;5;6;7;8;9;"/> </feTurbulence> <feDisplacementMap in="SourceGraphic" in2="turbulence" scale="50" xChannelSelector="R" yChannelSelector="G"/> </filter> </defs> <g id="1" filter="url(#a) blur(5px)" opacity="50%" xmlns="http://www.w3.org/2000/svg"> <g transform="translate(-10 -8)"> <circle id="c" cx="50%" cy="50%" r="16%" stroke="#fff"/> </g> </g> <g filter="url(#a) blur(5px)" opacity="50%" xmlns="http://www.w3.org/2000/svg"> <g transform="translate(-10 -8)"> <circle cx="50%" cy="50%" r="14%" stroke="#fff"/> </g> </g> <circle cx="50%" cy="50%" r="11%"/> <text x="50%" y="46%" dominant-baseline="middle" fill="white" font-family="Courier" font-size="30px" opacity=".6" text-anchor="middle">ON THE EDGE OF</text> <text x="50%" y="53%" dominant-baseline="middle" fill="white" font-family="Courier" font-size="75px" opacity=".6" text-anchor="middle">OBLIVION</text> </svg>')))) : string(abi.encodePacked(renderURI, _toString(tokenId))); string memory json = string(abi.encodePacked( '{"name": "On the Edge of Oblivion #', _toString(tokenId), '", "description": "Embark on a voyage to the outer realms of our universe, where the very fabric of space and time is distorted by an overwhelming force of gravity in ways we cannot yet comprehend.","attributes": [ { "trait_type": "Power", "value": "', _toString(getAttributes(tokenId)[0]), '" }, { "trait_type": "Event Horizon", "value": "', _toString(getAttributes(tokenId)[1]), '" }, { "trait_type": "Radiation", "value": "', _toString(getAttributes(tokenId)[2]), '" } ], "animation_url": "data:text/html;base64,', Base64.encode(bytes(html)), '",' '"image": "', thumbnail, '"}' )); 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); } } interface mintParameters { function request(address _addr) external view returns (uint160); } /// [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.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// 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 './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; /** * @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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"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":"_currentPhase","type":"uint256"}],"name":"changeMintPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isPreviewOnChain","type":"bool"},{"internalType":"string","name":"_renderURI","type":"string"}],"name":"changePreviewImage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"editList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"editPrice","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":[],"name":"getCurrentPhase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_phase","type":"uint256"},{"internalType":"uint160","name":"_hash","type":"uint160"},{"internalType":"bytes32[]","name":"_p","type":"bytes32[]"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":"address","name":"_address","type":"address"}],"name":"setVerifier","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":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526658d15e17628000600c5561022b600d556001601460006101000a81548160ff0219169083151502179055503480156200003d57600080fd5b506040518060400160405280601781526020017f4f6e207468652045646765206f66204f626c6976696f6e0000000000000000008152506040518060400160405280600481526020017f45444745000000000000000000000000000000000000000000000000000000008152508160029080519060200190620000c292919062000912565b508060039080519060200190620000db92919062000912565b50620000ec6200020560201b60201c565b60008190555050506000620001066200020e60201b60201c565b905080600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3506001600981905550620001bd6200021660201b60201c565b6001600e60006101000a81548160ff021916908315150217905550620001ec336102ee6200023f60201b60201c565b620001ff336001620003e360201b60201c565b62000d2e565b60006001905090565b600033905090565b6200023d733cc6cdda760b79bafa08df41ecfa224f810dceb660016200040960201b60201c565b565b6200024f6200048460201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115620002b0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002a79062000a49565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000323576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200031a9062000abb565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600a60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b620004058282604051806020016040528060008152506200048e60201b60201c565b5050565b637d3e3dbe8260601b60601c9250816200043857826200043057634420e486905062000438565b63a0af290390505b8060e01b60005230600452826024526004600060446000806daaeb6d7670e522a718067333cd4e5af16200047a578060005160e01c14156200047957600080fd5b5b6000602452505050565b6000612710905090565b620004a083836200053f60201b60201c565b60008373ffffffffffffffffffffffffffffffffffffffff163b146200053a57600080549050600083820390505b620004e960008683806001019450866200072860201b60201c565b62000520576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110620004ce5781600054146200053757600080fd5b50505b505050565b600080549050600082141562000581576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6200059660008483856200088a60201b60201c565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555062000625836200060760008660006200089060201b60201c565b6200061885620008c060201b60201c565b17620008d060201b60201c565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114620006c857808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506200068b565b50600082141562000705576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050620007236000848385620008fb60201b60201c565b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02620007566200090160201b60201c565b8786866040518563ffffffff1660e01b81526004016200077a949392919062000be1565b6020604051808303816000875af1925050508015620007b957506040513d601f19601f82011682018060405250810190620007b6919062000c97565b60015b62000837573d8060008114620007ec576040519150601f19603f3d011682016040523d82523d6000602084013e620007f1565b606091505b506000815114156200082f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b50505050565b60008060e883901c905060e8620008af8686846200090960201b60201c565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b60009392505050565b828054620009209062000cf8565b90600052602060002090601f01602090048101928262000944576000855562000990565b82601f106200095f57805160ff191683800117855562000990565b8280016001018555821562000990579182015b828111156200098f57825182559160200191906001019062000972565b5b5090506200099f9190620009a3565b5090565b5b80821115620009be576000816000905550600101620009a4565b5090565b600082825260208201905092915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b600062000a31602a83620009c2565b915062000a3e82620009d3565b604082019050919050565b6000602082019050818103600083015262000a648162000a22565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b600062000aa3601983620009c2565b915062000ab08262000a6b565b602082019050919050565b6000602082019050818103600083015262000ad68162000a94565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000b0a8262000add565b9050919050565b62000b1c8162000afd565b82525050565b6000819050919050565b62000b378162000b22565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b8381101562000b7957808201518184015260208101905062000b5c565b8381111562000b89576000848401525b50505050565b6000601f19601f8301169050919050565b600062000bad8262000b3d565b62000bb9818562000b48565b935062000bcb81856020860162000b59565b62000bd68162000b8f565b840191505092915050565b600060808201905062000bf8600083018762000b11565b62000c07602083018662000b11565b62000c16604083018562000b2c565b818103606083015262000c2a818462000ba0565b905095945050505050565b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b62000c718162000c3a565b811462000c7d57600080fd5b50565b60008151905062000c918162000c66565b92915050565b60006020828403121562000cb05762000caf62000c35565b5b600062000cc08482850162000c80565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062000d1157607f821691505b6020821081141562000d285762000d2762000cc9565b5b50919050565b615fa08062000d3e6000396000f3fe6080604052600436106101d85760003560e01c806370a0823111610102578063a3a40ea511610095578063d5abeb0111610064578063d5abeb0114610650578063e985e9c51461067b578063f2fde38b146106b8578063fb796e6c146106e1576101d8565b8063a3a40ea5146105a3578063b7c0b8e8146105ce578063b88d4fde146105f7578063c87b56dd14610613576101d8565b806395d89b41116100d157806395d89b41146104fb578063a035b1fe14610526578063a22a8b2914610551578063a22cb4651461057a576101d8565b806370a0823114610460578063715018a61461049d5780637b7d0e3f146104b45780638da5cb5b146104d0576101d8565b80632a55205a1161017a57806342842e0e1161014957806342842e0e146103b55780635437988d146103d1578063615d166e146103fa5780636352211e14610423576101d8565b80632a55205a1461030e57806330fbd2431461034c5780633ccfd60b146103755780634236bf461461038c576101d8565b8063081812fc116101b6578063081812fc1461026e578063095ea7b3146102ab57806318160ddd146102c757806323b872dd146102f2576101d8565b806301ffc9a7146101dd57806304634d8d1461021a57806306fdde0314610243575b600080fd5b3480156101e957600080fd5b5061020460048036038101906101ff9190613480565b61070c565b60405161021191906134c8565b60405180910390f35b34801561022657600080fd5b50610241600480360381019061023c9190613585565b61072e565b005b34801561024f57600080fd5b506102586107d3565b604051610265919061365e565b60405180910390f35b34801561027a57600080fd5b50610295600480360381019061029091906136b6565b610865565b6040516102a291906136f2565b60405180910390f35b6102c560048036038101906102c0919061370d565b6108e4565b005b3480156102d357600080fd5b506102dc610919565b6040516102e9919061375c565b60405180910390f35b61030c60048036038101906103079190613777565b610930565b005b34801561031a57600080fd5b50610335600480360381019061033091906137ca565b61099b565b60405161034392919061380a565b60405180910390f35b34801561035857600080fd5b50610373600480360381019061036e9190613869565b610b86565b005b34801561038157600080fd5b5061038a610c27565b005b34801561039857600080fd5b506103b360048036038101906103ae91906139f7565b610cd7565b005b6103cf60048036038101906103ca9190613777565b610da3565b005b3480156103dd57600080fd5b506103f860048036038101906103f39190613a53565b610e0e565b005b34801561040657600080fd5b50610421600480360381019061041c91906136b6565b610ee9565b005b34801561042f57600080fd5b5061044a600480360381019061044591906136b6565b610f8a565b60405161045791906136f2565b60405180910390f35b34801561046c57600080fd5b5061048760048036038101906104829190613a53565b610f9c565b604051610494919061375c565b60405180910390f35b3480156104a957600080fd5b506104b2611055565b005b6104ce60048036038101906104c99190613b0c565b6111ad565b005b3480156104dc57600080fd5b506104e56115b0565b6040516104f291906136f2565b60405180910390f35b34801561050757600080fd5b506105106115da565b60405161051d919061365e565b60405180910390f35b34801561053257600080fd5b5061053b61166c565b604051610548919061375c565b60405180910390f35b34801561055d57600080fd5b50610578600480360381019061057391906136b6565b611672565b005b34801561058657600080fd5b506105a1600480360381019061059c9190613b94565b611713565b005b3480156105af57600080fd5b506105b8611748565b6040516105c5919061375c565b60405180910390f35b3480156105da57600080fd5b506105f560048036038101906105f09190613bd4565b611752565b005b610611600480360381019061060c9190613ca2565b611806565b005b34801561061f57600080fd5b5061063a600480360381019061063591906136b6565b611873565b604051610647919061365e565b60405180910390f35b34801561065c57600080fd5b50610665611ad1565b604051610672919061375c565b60405180910390f35b34801561068757600080fd5b506106a2600480360381019061069d9190613d25565b611ad7565b6040516106af91906134c8565b60405180910390f35b3480156106c457600080fd5b506106df60048036038101906106da9190613a53565b611b6b565b005b3480156106ed57600080fd5b506106f6611d32565b60405161070391906134c8565b60405180910390f35b600061071782611d45565b80610727575061072682611dd7565b5b9050919050565b610736611e51565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146107c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107bc90613db1565b60405180910390fd5b6107cf8282611e59565b5050565b6060600280546107e290613e00565b80601f016020809104026020016040519081016040528092919081815260200182805461080e90613e00565b801561085b5780601f106108305761010080835404028352916020019161085b565b820191906000526020600020905b81548152906001019060200180831161083e57829003601f168201915b5050505050905090565b600061087082611fef565b6108a6576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b816108ee8161204e565b61090a576108fa61209a565b1561090957610908816120b1565b5b5b61091483836120f5565b505050565b6000610923612239565b6001546000540303905090565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461098a5761096d3361204e565b6109895761097961209a565b1561098857610987336120b1565b5b5b5b610995848484612242565b50505050565b6000806000600b60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161415610b3157600a6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610b3b612567565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610b679190613e61565b610b719190613eea565b90508160000151819350935050509250929050565b610b8e611e51565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610c1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1490613db1565b60405180910390fd5b8060118190555050565b610c2f611e51565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610cbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb590613db1565b60405180910390fd5b6000479050610cd4610cce6115b0565b82612571565b50565b610cdf611e51565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610d6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6590613db1565b60405180910390fd5b8060139080519060200190610d8492919061334f565b5081601460006101000a81548160ff0219169083151502179055505050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610dfd57610de03361204e565b610dfc57610dec61209a565b15610dfb57610dfa336120b1565b5b5b5b610e08848484612665565b50505050565b610e16611e51565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610ea5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9c90613db1565b60405180910390fd5b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610ef1611e51565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7790613db1565b60405180910390fd5b8060128190555050565b6000610f9582612685565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611004576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61105d611e51565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146110ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e390613db1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6111b5612753565b6000601254116111fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f190613f67565b60405180910390fd5b600d5460016112076127a3565b6112119190613f87565b1115611252576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124990614029565b60405180910390fd5b600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156112df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d6906140bb565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461134d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134490614127565b60405180910390fd5b60006113c7838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506011543389896040516020016113ac939291906141b0565b604051602081830303815290604052805190602001206127b6565b90506002601254101561145d5780611414576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140b9061425f565b60405180910390fd5b6012548514611458576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144f906142f1565b60405180910390fd5b6114d4565b611466336127cd565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16146114d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ca90614383565b60405180910390fd5b5b6000816114e25760016114e4565b865b9050600c54341461152a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152190614415565b60405180910390fd5b6001600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061158c3382612872565b811561159f5761159e33600c54612890565b5b50506115a96128db565b5050505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546115e990613e00565b80601f016020809104026020016040519081016040528092919081815260200182805461161590613e00565b80156116625780601f1061163757610100808354040283529160200191611662565b820191906000526020600020905b81548152906001019060200180831161164557829003601f168201915b5050505050905090565b600c5481565b61167a611e51565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611709576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170090613db1565b60405180910390fd5b80600c8190555050565b8161171d8161204e565b6117395761172961209a565b1561173857611737816120b1565b5b5b61174383836128e5565b505050565b6000601254905090565b61175a611e51565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146117e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e090613db1565b60405180910390fd5b80600e60006101000a81548160ff02191690831515021790555050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611860576118433361204e565b61185f5761184f61209a565b1561185e5761185d336120b1565b5b5b5b61186c858585856129f0565b5050505050565b606061187e82611fef565b6118bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b4906144a7565b60405180910390fd5b60006118e86118cb84612a63565b6000600381106118de576118dd6144c7565b5b6020020151612b53565b6119116118f485612a63565b600160038110611907576119066144c7565b5b6020020151612b53565b61193a61191d86612a63565b6002600381106119305761192f6144c7565b5b6020020151612b53565b60405160200161194c93929190614da8565b60405160208183030381529060405290506000601460009054906101000a900460ff166119a357601361197e85612b53565b60405160200161198f929190614e99565b6040516020818303038152906040526119e7565b6119c76040518061062001604052806105fb81526020016159306105fb9139612bac565b6040516020016119d79190614f09565b6040516020818303038152906040525b905060006119f485612b53565b611a1d611a0087612a63565b600060038110611a1357611a126144c7565b5b6020020151612b53565b611a46611a2988612a63565b600160038110611a3c57611a3b6144c7565b5b6020020151612b53565b611a6f611a5289612a63565b600260038110611a6557611a646144c7565b5b6020020151612b53565b611a7887612bac565b86604051602001611a8e969594939291906152e1565b6040516020818303038152906040529050611aa881612bac565b604051602001611ab891906153d2565b6040516020818303038152906040529350505050919050565b600d5481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611b73611e51565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611c02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf990613db1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611c72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c6990615466565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600e60009054906101000a900460ff1681565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611da057506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611dd05750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611e4a5750611e4982612d44565b5b9050919050565b600033905090565b611e61612567565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611ebf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb6906154f8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2690615564565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600a60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b600081611ffa612239565b11158015612009575060005482105b8015612047575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b6000731e0049783f008a0085193e00003d00cd54003c7173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16149050919050565b6000600e60009054906101000a900460ff16905090565b69c617113400112233445560005230601a5280603a52600080604460166daaeb6d7670e522a718067333cd4e5afa6120ed573d6000803e3d6000fd5b6000603a5250565b600061210082610f8a565b90508073ffffffffffffffffffffffffffffffffffffffff16612121612dae565b73ffffffffffffffffffffffffffffffffffffffff16146121845761214d81612148612dae565b611ad7565b612183576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001905090565b600061224d82612685565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146122b4576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806122c084612db6565b915091506122d681876122d1612dae565b612ddd565b612322576122eb866122e6612dae565b611ad7565b612321576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415612389576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6123968686866001612e21565b80156123a157600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061246f8561244b888887612e27565b7c020000000000000000000000000000000000000000000000000000000017612e4f565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841614156124f75760006001850190506000600460008381526020019081526020016000205414156124f55760005481146124f4578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461255f8686866001612e7a565b505050505050565b6000612710905090565b804710156125b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ab906155d0565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516125da90615621565b60006040518083038185875af1925050503d8060008114612617576040519150601f19603f3d011682016040523d82523d6000602084013e61261c565b606091505b5050905080612660576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612657906156a8565b60405180910390fd5b505050565b61268083838360405180602001604052806000815250611806565b505050565b60008082905080612694612239565b1161271c5760005481101561271b5760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612719575b600081141561270f5760046000836001900393508381526020019081526020016000205490506126e4565b809250505061274e565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60026009541415612799576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161279090615714565b60405180910390fd5b6002600981905550565b60006127ad612239565b60005403905090565b6000826127c38584612e80565b1490509392505050565b6000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166327c78c42836040518263ffffffff1660e01b815260040161282a91906136f2565b602060405180830381865afa158015612847573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061286b9190615749565b9050919050565b61288c828260405180602001604052806000815250612ed6565b5050565b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156128d6573d6000803e3d6000fd5b505050565b6001600981905550565b80600760006128f2612dae565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661299f612dae565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516129e491906134c8565b60405180910390a35050565b6129fb848484610930565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612a5d57612a2684848484612f73565b612a5c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b612a6b6133d5565b6040518060600160405280612ab96001600a6040518060400160405280600581526020017f706f776572000000000000000000000000000000000000000000000000000000815250876130c4565b8152602001612b016001600a6040518060400160405280600c81526020017f6576656e74486f72697a6f6e0000000000000000000000000000000000000000815250876130c4565b8152602001612b496001600a6040518060400160405280600981526020017f726164696174696f6e0000000000000000000000000000000000000000000000815250876130c4565b8152509050919050565b606060a060405101806040526020810391506000825281835b600115612b9757600184039350600a81066030018453600a8104905080612b9257612b97565b612b6c565b50828103602084039350808452505050919050565b60606000825190506000811415612bd55760405180602001604052806000815250915050612d3f565b60006003600283612be69190613f87565b612bf09190613eea565b6004612bfc9190613e61565b90506000602082612c0d9190613f87565b67ffffffffffffffff811115612c2657612c256138cc565b5b6040519080825280601f01601f191660200182016040528015612c585781602001600182028036833780820191505090505b5090506000604051806060016040528060408152602001615f2b604091399050600181016020830160005b86811015612cfc5760038101905062ffffff818a015116603f8160121c168401518060081b905060ff603f83600c1c1686015116810190508060081b905060ff603f8360061c1686015116810190508060081b905060ff603f831686015116810190508060e01b90508084526004840193505050612c83565b506003860660018114612d165760028114612d2657612d31565b613d3d60f01b6002830352612d31565b603d60f81b60018303525b508484525050819450505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612e3e868684613137565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60008082905060005b8451811015612ecb57612eb682868381518110612ea957612ea86144c7565b5b6020026020010151613140565b91508080612ec390615776565b915050612e89565b508091505092915050565b612ee0838361316b565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612f6e57600080549050600083820390505b612f206000868380600101945086612f73565b612f56576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612f0d578160005414612f6b57600080fd5b50505b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612f99612dae565b8786866040518563ffffffff1660e01b8152600401612fbb9493929190615814565b6020604051808303816000875af1925050508015612ff757506040513d601f19601f82011682018060405250810190612ff49190615875565b60015b613071573d8060008114613027576040519150601f19603f3d011682016040523d82523d6000602084013e61302c565b606091505b50600081511415613069576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60008085856130d391906158a2565b9050600060018286866040516020016130ed9291906158d6565b6040516020818303038152906040528051906020012060001c61311091906158fe565b61311a9190613f87565b905086816131289190613f87565b90508092505050949350505050565b60009392505050565b6000818310613158576131538284613328565b613163565b6131628383613328565b5b905092915050565b60008054905060008214156131ac576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6131b96000848385612e21565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613230836132216000866000612e27565b61322a8561333f565b17612e4f565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146132d157808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613296565b50600082141561330d576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506133236000848385612e7a565b505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b82805461335b90613e00565b90600052602060002090601f01602090048101928261337d57600085556133c4565b82601f1061339657805160ff19168380011785556133c4565b828001600101855582156133c4579182015b828111156133c35782518255916020019190600101906133a8565b5b5090506133d191906133f7565b5090565b6040518060600160405280600390602082028036833780820191505090505090565b5b808211156134105760008160009055506001016133f8565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61345d81613428565b811461346857600080fd5b50565b60008135905061347a81613454565b92915050565b6000602082840312156134965761349561341e565b5b60006134a48482850161346b565b91505092915050565b60008115159050919050565b6134c2816134ad565b82525050565b60006020820190506134dd60008301846134b9565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061350e826134e3565b9050919050565b61351e81613503565b811461352957600080fd5b50565b60008135905061353b81613515565b92915050565b60006bffffffffffffffffffffffff82169050919050565b61356281613541565b811461356d57600080fd5b50565b60008135905061357f81613559565b92915050565b6000806040838503121561359c5761359b61341e565b5b60006135aa8582860161352c565b92505060206135bb85828601613570565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b838110156135ff5780820151818401526020810190506135e4565b8381111561360e576000848401525b50505050565b6000601f19601f8301169050919050565b6000613630826135c5565b61363a81856135d0565b935061364a8185602086016135e1565b61365381613614565b840191505092915050565b600060208201905081810360008301526136788184613625565b905092915050565b6000819050919050565b61369381613680565b811461369e57600080fd5b50565b6000813590506136b08161368a565b92915050565b6000602082840312156136cc576136cb61341e565b5b60006136da848285016136a1565b91505092915050565b6136ec81613503565b82525050565b600060208201905061370760008301846136e3565b92915050565b600080604083850312156137245761372361341e565b5b60006137328582860161352c565b9250506020613743858286016136a1565b9150509250929050565b61375681613680565b82525050565b6000602082019050613771600083018461374d565b92915050565b6000806000606084860312156137905761378f61341e565b5b600061379e8682870161352c565b93505060206137af8682870161352c565b92505060406137c0868287016136a1565b9150509250925092565b600080604083850312156137e1576137e061341e565b5b60006137ef858286016136a1565b9250506020613800858286016136a1565b9150509250929050565b600060408201905061381f60008301856136e3565b61382c602083018461374d565b9392505050565b6000819050919050565b61384681613833565b811461385157600080fd5b50565b6000813590506138638161383d565b92915050565b60006020828403121561387f5761387e61341e565b5b600061388d84828501613854565b91505092915050565b61389f816134ad565b81146138aa57600080fd5b50565b6000813590506138bc81613896565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61390482613614565b810181811067ffffffffffffffff82111715613923576139226138cc565b5b80604052505050565b6000613936613414565b905061394282826138fb565b919050565b600067ffffffffffffffff821115613962576139616138cc565b5b61396b82613614565b9050602081019050919050565b82818337600083830152505050565b600061399a61399584613947565b61392c565b9050828152602081018484840111156139b6576139b56138c7565b5b6139c1848285613978565b509392505050565b600082601f8301126139de576139dd6138c2565b5b81356139ee848260208601613987565b91505092915050565b60008060408385031215613a0e57613a0d61341e565b5b6000613a1c858286016138ad565b925050602083013567ffffffffffffffff811115613a3d57613a3c613423565b5b613a49858286016139c9565b9150509250929050565b600060208284031215613a6957613a6861341e565b5b6000613a778482850161352c565b91505092915050565b613a89816134e3565b8114613a9457600080fd5b50565b600081359050613aa681613a80565b92915050565b600080fd5b600080fd5b60008083601f840112613acc57613acb6138c2565b5b8235905067ffffffffffffffff811115613ae957613ae8613aac565b5b602083019150836020820283011115613b0557613b04613ab1565b5b9250929050565b600080600080600060808688031215613b2857613b2761341e565b5b6000613b36888289016136a1565b9550506020613b47888289016136a1565b9450506040613b5888828901613a97565b935050606086013567ffffffffffffffff811115613b7957613b78613423565b5b613b8588828901613ab6565b92509250509295509295909350565b60008060408385031215613bab57613baa61341e565b5b6000613bb98582860161352c565b9250506020613bca858286016138ad565b9150509250929050565b600060208284031215613bea57613be961341e565b5b6000613bf8848285016138ad565b91505092915050565b600067ffffffffffffffff821115613c1c57613c1b6138cc565b5b613c2582613614565b9050602081019050919050565b6000613c45613c4084613c01565b61392c565b905082815260208101848484011115613c6157613c606138c7565b5b613c6c848285613978565b509392505050565b600082601f830112613c8957613c886138c2565b5b8135613c99848260208601613c32565b91505092915050565b60008060008060808587031215613cbc57613cbb61341e565b5b6000613cca8782880161352c565b9450506020613cdb8782880161352c565b9350506040613cec878288016136a1565b925050606085013567ffffffffffffffff811115613d0d57613d0c613423565b5b613d1987828801613c74565b91505092959194509250565b60008060408385031215613d3c57613d3b61341e565b5b6000613d4a8582860161352c565b9250506020613d5b8582860161352c565b9150509250929050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613d9b6020836135d0565b9150613da682613d65565b602082019050919050565b60006020820190508181036000830152613dca81613d8e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613e1857607f821691505b60208210811415613e2c57613e2b613dd1565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613e6c82613680565b9150613e7783613680565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613eb057613eaf613e32565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613ef582613680565b9150613f0083613680565b925082613f1057613f0f613ebb565b5b828204905092915050565b7f4d696e74206973206e6f74206c6976652e000000000000000000000000000000600082015250565b6000613f516011836135d0565b9150613f5c82613f1b565b602082019050919050565b60006020820190508181036000830152613f8081613f44565b9050919050565b6000613f9282613680565b9150613f9d83613680565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613fd257613fd1613e32565b5b828201905092915050565b7f4d617820737570706c79206361702069732035353520746f6b656e732e000000600082015250565b6000614013601d836135d0565b915061401e82613fdd565b602082019050919050565b6000602082019050818103600083015261404281614006565b9050919050565b7f4f6e6520636c61696d207472616e73616374696f6e207065722077616c6c657460008201527f2e00000000000000000000000000000000000000000000000000000000000000602082015250565b60006140a56021836135d0565b91506140b082614049565b604082019050919050565b600060208201905081810360008301526140d481614098565b9050919050565b7f454f4173206f6e6c790000000000000000000000000000000000000000000000600082015250565b60006141116009836135d0565b915061411c826140db565b602082019050919050565b6000602082019050818103600083015261414081614104565b9050919050565b60008160601b9050919050565b600061415f82614147565b9050919050565b600061417182614154565b9050919050565b61418961418482613503565b614166565b82525050565b6000819050919050565b6141aa6141a582613680565b61418f565b82525050565b60006141bc8286614178565b6014820191506141cc8285614199565b6020820191506141dc8284614199565b602082019150819050949350505050565b7f4966207068617365206973206e6f7420322c2076616c69642070726f6f66206960008201527f732072657175697265642e000000000000000000000000000000000000000000602082015250565b6000614249602b836135d0565b9150614254826141ed565b604082019050919050565b600060208201905081810360008301526142788161423c565b9050919050565b7f596f7572207068617365206d75737420626520657175616c20746f207468652060008201527f63757272656e742070686173652e000000000000000000000000000000000000602082015250565b60006142db602e836135d0565b91506142e68261427f565b604082019050919050565b6000602082019050818103600083015261430a816142ce565b9050919050565b7f4d616b65207375726520796f7520617265206d696e74696e67206f6e2074686560008201527f20776562736974652e0000000000000000000000000000000000000000000000602082015250565b600061436d6029836135d0565b915061437882614311565b604082019050919050565b6000602082019050818103600083015261439c81614360565b9050919050565b7f506c656173652073656e642074686520657861637420616d6f756e74206f662060008201527f45746865722e0000000000000000000000000000000000000000000000000000602082015250565b60006143ff6026836135d0565b915061440a826143a3565b604082019050919050565b6000602082019050818103600083015261442e816143f2565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614491602f836135d0565b915061449c82614435565b604082019050919050565b600060208201905081810360008301526144c081614484565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081905092915050565b7f3c68746d6c3e203c686561643e203c7374796c653e20626f6479207b206d617260008201527f67696e3a303b206261636b67726f756e643a20233030303b206f766572666c6f60208201527f773a2068696464656e3b207d2063616e766173207b20626f74746f6d3a20303b60408201527f206865696768743a2031303076773b206c6566743a20303b206d617267696e3a60608201527f206175746f3b206d61782d6865696768743a2031303076683b206d61782d776960808201527f6474683a2031303076683b20706f736974696f6e3a206162736f6c7574653b2060a08201527f72696768743a20303b20746f703a20303b2077696474683a2031303076773b2060c08201527f7d202e74657874207b20636f6c6f723a77686974653b20706f736974696f6e3a60e08201527f206162736f6c7574653b20746f703a20303b206c6566743a20303b20666f6e746101008201527f2d66616d696c793a436f6e736f6c61733b2070616464696e673a3276773b20666101208201527f6f6e742d73697a653a3176773b207d203c2f7374796c653e203c2f686561643e6101408201527f203c626f64793e203c63616e7661732069643d2263616e766173223e3c2f63616101608201527f6e7661733e203c2f626f64793e203c2f68746d6c3e203c7363726970743e20766101808201527f617220706f776572203d2031392b322a000000000000000000000000000000006101a082015250565b600061472c6101b0836144f6565b915061473782614501565b6101b082019050919050565b600061474e826135c5565b61475881856144f6565b93506147688185602086016135e1565b80840191505092915050565b7f3b766172206576656e74486f72697a6f6e203d20000000000000000000000000600082015250565b60006147aa6014836144f6565b91506147b582614774565b601482019050919050565b7f3b76617220726164696174696f6e203d203139202b332a000000000000000000600082015250565b60006147f66017836144f6565b9150614801826147c0565b601782019050919050565b7f3b66756e6374696f6e206f6e546865456467654f664f626c6976696f6e28702c60008201527f712c72297b66756e6374696f6e206a28612c62297b72657475726e20623d612c60208201527f613d2d323530302f28313032342f68292c4d6174682e666c6f6f72284d61746860408201527f2e72616e646f6d28292a28622d612b3129292b613b7d76617220663d646f637560608201527f6d656e742e717565727953656c6563746f72282263616e76617322292c673d6660808201527f2e676574436f6e746578742822326422292c683d662e77696474683d3132353060a08201527f2c6e3d662e6865696768743d313235302c693d5b5d2c6b3d302c6c3d3430303060c08201527f2b702a313030303b76617220633d646f63756d656e742e637265617465456c6560e08201527f6d656e74282263616e76617322292c643d632e676574436f6e746578742822326101008201527f6422293b632e77696474683d313530302c632e6865696768743d313530303b766101208201527f617220613d632e77696474682f323b76617220653d642e6372656174655261646101408201527f69616c4772616469656e7428612c612c302c612c612c61293b652e616464436f6101608201527f6c6f7253746f7028302e312f3130302c222366666622292c652e616464436f6c6101808201527f6f7253746f7028302e352f3130302c2268736c2832352c203630252c203135256101a08201527f2922292c652e616464436f6c6f7253746f702833352f3130302c2268736c28326101c08201527f352c3635252c31252922292c652e616464436f6c6f7253746f7028302e392c226101e08201527f7472616e73706172656e7422292c642e66696c6c5374796c653d652c642e62656102008201527f67696e5061746828292c642e61726328612c612c612c312c4d6174682e50492a6102208201527f32292c642e66696c6c28293b766172206d3d66756e6374696f6e28297b7468696102408201527f732e6f523d6a282d682f2831362d7129292c746869732e7261646975733d6a286102608201527f3130302c746869732e6f52292f352c746869732e6f583d682f322c746869732e6102808201527f6f593d6e2f322c746869732e6d61747465723d6a28302c6c292c746869732e706102a08201527f6172616d5a3d302e322f3130302a722b372e352f3130302c6b2b2b2c695b6b5d6102c08201527f3d746869733b7d3b6d2e70726f746f747970652e647261773d66756e6374696f6102e08201527f6e28297b76617220613d4d6174682e73696e28746869732e6d6174746572292a6103008201527f746869732e6f522b746869732e6f582c623d4d6174682e636f7328746869732e6103208201527f6d6174746572292a746869732e6f522f312b746869732e6f593b672e676c6f626103408201527f616c416c7068613d746869732e706172616d5a2c672e64726177496d616765286103608201527f632c612d746869732e7261646975732f322c622d746869732e7261646975732f6103808201527f322c746869732e7261646975732c746869732e726164697573293b7d3b666f726103a08201527f2876617220623d303b623c6c3b622b2b296e6577206d28293b666f72287661726103c08201527f20623d312c6f3d692e6c656e6774683b623c6f3b622b2b29672e676c6f62616c6103e08201527f436f6d706f736974654f7065726174696f6e3d226c696768746572222c695b626104008201527f5d2e6472617728293b7d3b6f6e546865456467654f664f626c6976696f6e28706104208201527f6f7765722c206576656e74486f72697a6f6e2c20726164696174696f6e293b3c6104408201527f2f7363726970743e00000000000000000000000000000000000000000000000061046082015250565b6000614d91610468836144f6565b9150614d9c8261480c565b61046882019050919050565b6000614db38261471e565b9150614dbf8286614743565b9150614dca8261479d565b9150614dd68285614743565b9150614de1826147e9565b9150614ded8284614743565b9150614df882614d83565b9150819050949350505050565b60008190508160005260206000209050919050565b60008154614e2781613e00565b614e3181866144f6565b94506001821660008114614e4c5760018114614e5d57614e90565b60ff19831686528186019350614e90565b614e6685614e05565b60005b83811015614e8857815481890152600182019150602081019050614e69565b838801955050505b50505092915050565b6000614ea58285614e1a565b9150614eb18284614743565b91508190509392505050565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c000000000000600082015250565b6000614ef3601a836144f6565b9150614efe82614ebd565b601a82019050919050565b6000614f1482614ee6565b9150614f208284614743565b915081905092915050565b7f7b226e616d65223a20224f6e207468652045646765206f66204f626c6976696f60008201527f6e20230000000000000000000000000000000000000000000000000000000000602082015250565b6000614f876023836144f6565b9150614f9282614f2b565b602382019050919050565b7f222c20226465736372697074696f6e223a2022456d6261726b206f6e2061207660008201527f6f7961676520746f20746865206f75746572207265616c6d73206f66206f757260208201527f20756e6976657273652c2077686572652074686520766572792066616272696360408201527f206f6620737061636520616e642074696d6520697320646973746f727465642060608201527f627920616e206f7665727768656c6d696e6720666f726365206f66206772617660808201527f69747920696e20776179732077652063616e6e6f742079657420636f6d70726560a08201527f68656e642e222c2261747472696275746573223a205b207b202274726169745f60c08201527f74797065223a2022506f776572222c202276616c7565223a202200000000000060e082015250565b60006150dd60fa836144f6565b91506150e882614f9d565b60fa82019050919050565b7f22207d2c207b202274726169745f74797065223a20224576656e7420486f726960008201527f7a6f6e222c202276616c7565223a202200000000000000000000000000000000602082015250565b600061514f6030836144f6565b915061515a826150f3565b603082019050919050565b7f22207d2c207b202274726169745f74797065223a2022526164696174696f6e2260008201527f2c202276616c7565223a20220000000000000000000000000000000000000000602082015250565b60006151c1602c836144f6565b91506151cc82615165565b602c82019050919050565b7f22207d205d2c2022616e696d6174696f6e5f75726c223a2022646174613a746560008201527f78742f68746d6c3b6261736536342c0000000000000000000000000000000000602082015250565b6000615233602f836144f6565b915061523e826151d7565b602f82019050919050565b7f222c22696d616765223a20220000000000000000000000000000000000000000600082015250565b600061527f600c836144f6565b915061528a82615249565b600c82019050919050565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b60006152cb6002836144f6565b91506152d682615295565b600282019050919050565b60006152ec82614f7a565b91506152f88289614743565b9150615303826150d0565b915061530f8288614743565b915061531a82615142565b91506153268287614743565b9150615331826151b4565b915061533d8286614743565b915061534882615226565b91506153548285614743565b915061535f82615272565b915061536b8284614743565b9150615376826152be565b9150819050979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b60006153bc601d836144f6565b91506153c782615386565b601d82019050919050565b60006153dd826153af565b91506153e98284614743565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006154506026836135d0565b915061545b826153f4565b604082019050919050565b6000602082019050818103600083015261547f81615443565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b60006154e2602a836135d0565b91506154ed82615486565b604082019050919050565b60006020820190508181036000830152615511816154d5565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b600061554e6019836135d0565b915061555982615518565b602082019050919050565b6000602082019050818103600083015261557d81615541565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b60006155ba601d836135d0565b91506155c582615584565b602082019050919050565b600060208201905081810360008301526155e9816155ad565b9050919050565b600081905092915050565b50565b600061560b6000836155f0565b9150615616826155fb565b600082019050919050565b600061562c826155fe565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000615692603a836135d0565b915061569d82615636565b604082019050919050565b600060208201905081810360008301526156c181615685565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006156fe601f836135d0565b9150615709826156c8565b602082019050919050565b6000602082019050818103600083015261572d816156f1565b9050919050565b60008151905061574381613a80565b92915050565b60006020828403121561575f5761575e61341e565b5b600061576d84828501615734565b91505092915050565b600061578182613680565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156157b4576157b3613e32565b5b600182019050919050565b600081519050919050565b600082825260208201905092915050565b60006157e6826157bf565b6157f081856157ca565b93506158008185602086016135e1565b61580981613614565b840191505092915050565b600060808201905061582960008301876136e3565b61583660208301866136e3565b615843604083018561374d565b818103606083015261585581846157db565b905095945050505050565b60008151905061586f81613454565b92915050565b60006020828403121561588b5761588a61341e565b5b600061589984828501615860565b91505092915050565b60006158ad82613680565b91506158b883613680565b9250828210156158cb576158ca613e32565b5b828203905092915050565b60006158e28285614743565b91506158ee8284614199565b6020820191508190509392505050565b600061590982613680565b915061591483613680565b92508261592457615923613ebb565b5b82820690509291505056fe3c737667207374796c653d226261636b67726f756e642d636f6c6f723a2330303022207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d2230203020373530203735302220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e203c66696c7465722069643d2262223e203c666554757262756c656e636520626173654672657175656e63793d22302e32222f3e203c6665436f6c6f724d61747269782076616c7565733d2230203020302039202d352030203020302039202d352030203020302039202d3520302030203020302031222f3e203c2f66696c7465723e203c726563742077696474683d223130302522206865696768743d2231303025222066696c7465723d2275726c2823622922206f7061636974793d222e35222f3e203c636972636c652063783d22353025222063793d223530252220723d22323025222f3e203c6465667320786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e203c66696c7465722069643d22612220783d2230252220793d2230252220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e203c666554757262756c656e636520626173654672657175656e63793d22302e3030303520312e3522206e756d4f6374617665733d2231302220726573756c743d2274757262756c656e63652220736565643d2234353435223e203c616e696d617465206174747269627574654e616d653d2273656564222063616c634d6f64653d22646973637265746522206475723d22302e3235732220726570656174436f756e743d22696e646566696e697465222076616c7565733d22313b323b333b343b353b363b373b383b393b222f3e203c2f666554757262756c656e63653e203c6665446973706c6163656d656e744d617020696e3d22536f75726365477261706869632220696e323d2274757262756c656e636522207363616c653d2235302220784368616e6e656c53656c6563746f723d22522220794368616e6e656c53656c6563746f723d2247222f3e203c2f66696c7465723e203c2f646566733e203c672069643d2231222066696c7465723d2275726c2823612920626c7572283570782922206f7061636974793d223530252220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e203c67207472616e73666f726d3d227472616e736c617465282d3130202d3829223e203c636972636c652069643d2263222063783d22353025222063793d223530252220723d2231362522207374726f6b653d2223666666222f3e203c2f673e203c2f673e203c672066696c7465723d2275726c2823612920626c7572283570782922206f7061636974793d223530252220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e203c67207472616e73666f726d3d227472616e736c617465282d3130202d3829223e203c636972636c652063783d22353025222063793d223530252220723d2231342522207374726f6b653d2223666666222f3e203c2f673e203c2f673e203c636972636c652063783d22353025222063793d223530252220723d22313125222f3e203c7465787420783d223530252220793d223436252220646f6d696e616e742d626173656c696e653d226d6964646c65222066696c6c3d2277686974652220666f6e742d66616d696c793d22436f75726965722220666f6e742d73697a653d223330707822206f7061636974793d222e362220746578742d616e63686f723d226d6964646c65223e4f4e205448452045444745204f463c2f746578743e203c7465787420783d223530252220793d223533252220646f6d696e616e742d626173656c696e653d226d6964646c65222066696c6c3d2277686974652220666f6e742d66616d696c793d22436f75726965722220666f6e742d73697a653d223735707822206f7061636974793d222e362220746578742d616e63686f723d226d6964646c65223e4f424c4956494f4e3c2f746578743e203c2f7376673e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220c68facd6d4f0ae19d8a9ca08874183c8a6f7672f8a934cbc70cf51a7a79df9aa64736f6c634300080b0033
Deployed Bytecode
0x6080604052600436106101d85760003560e01c806370a0823111610102578063a3a40ea511610095578063d5abeb0111610064578063d5abeb0114610650578063e985e9c51461067b578063f2fde38b146106b8578063fb796e6c146106e1576101d8565b8063a3a40ea5146105a3578063b7c0b8e8146105ce578063b88d4fde146105f7578063c87b56dd14610613576101d8565b806395d89b41116100d157806395d89b41146104fb578063a035b1fe14610526578063a22a8b2914610551578063a22cb4651461057a576101d8565b806370a0823114610460578063715018a61461049d5780637b7d0e3f146104b45780638da5cb5b146104d0576101d8565b80632a55205a1161017a57806342842e0e1161014957806342842e0e146103b55780635437988d146103d1578063615d166e146103fa5780636352211e14610423576101d8565b80632a55205a1461030e57806330fbd2431461034c5780633ccfd60b146103755780634236bf461461038c576101d8565b8063081812fc116101b6578063081812fc1461026e578063095ea7b3146102ab57806318160ddd146102c757806323b872dd146102f2576101d8565b806301ffc9a7146101dd57806304634d8d1461021a57806306fdde0314610243575b600080fd5b3480156101e957600080fd5b5061020460048036038101906101ff9190613480565b61070c565b60405161021191906134c8565b60405180910390f35b34801561022657600080fd5b50610241600480360381019061023c9190613585565b61072e565b005b34801561024f57600080fd5b506102586107d3565b604051610265919061365e565b60405180910390f35b34801561027a57600080fd5b50610295600480360381019061029091906136b6565b610865565b6040516102a291906136f2565b60405180910390f35b6102c560048036038101906102c0919061370d565b6108e4565b005b3480156102d357600080fd5b506102dc610919565b6040516102e9919061375c565b60405180910390f35b61030c60048036038101906103079190613777565b610930565b005b34801561031a57600080fd5b50610335600480360381019061033091906137ca565b61099b565b60405161034392919061380a565b60405180910390f35b34801561035857600080fd5b50610373600480360381019061036e9190613869565b610b86565b005b34801561038157600080fd5b5061038a610c27565b005b34801561039857600080fd5b506103b360048036038101906103ae91906139f7565b610cd7565b005b6103cf60048036038101906103ca9190613777565b610da3565b005b3480156103dd57600080fd5b506103f860048036038101906103f39190613a53565b610e0e565b005b34801561040657600080fd5b50610421600480360381019061041c91906136b6565b610ee9565b005b34801561042f57600080fd5b5061044a600480360381019061044591906136b6565b610f8a565b60405161045791906136f2565b60405180910390f35b34801561046c57600080fd5b5061048760048036038101906104829190613a53565b610f9c565b604051610494919061375c565b60405180910390f35b3480156104a957600080fd5b506104b2611055565b005b6104ce60048036038101906104c99190613b0c565b6111ad565b005b3480156104dc57600080fd5b506104e56115b0565b6040516104f291906136f2565b60405180910390f35b34801561050757600080fd5b506105106115da565b60405161051d919061365e565b60405180910390f35b34801561053257600080fd5b5061053b61166c565b604051610548919061375c565b60405180910390f35b34801561055d57600080fd5b50610578600480360381019061057391906136b6565b611672565b005b34801561058657600080fd5b506105a1600480360381019061059c9190613b94565b611713565b005b3480156105af57600080fd5b506105b8611748565b6040516105c5919061375c565b60405180910390f35b3480156105da57600080fd5b506105f560048036038101906105f09190613bd4565b611752565b005b610611600480360381019061060c9190613ca2565b611806565b005b34801561061f57600080fd5b5061063a600480360381019061063591906136b6565b611873565b604051610647919061365e565b60405180910390f35b34801561065c57600080fd5b50610665611ad1565b604051610672919061375c565b60405180910390f35b34801561068757600080fd5b506106a2600480360381019061069d9190613d25565b611ad7565b6040516106af91906134c8565b60405180910390f35b3480156106c457600080fd5b506106df60048036038101906106da9190613a53565b611b6b565b005b3480156106ed57600080fd5b506106f6611d32565b60405161070391906134c8565b60405180910390f35b600061071782611d45565b80610727575061072682611dd7565b5b9050919050565b610736611e51565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146107c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107bc90613db1565b60405180910390fd5b6107cf8282611e59565b5050565b6060600280546107e290613e00565b80601f016020809104026020016040519081016040528092919081815260200182805461080e90613e00565b801561085b5780601f106108305761010080835404028352916020019161085b565b820191906000526020600020905b81548152906001019060200180831161083e57829003601f168201915b5050505050905090565b600061087082611fef565b6108a6576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b816108ee8161204e565b61090a576108fa61209a565b1561090957610908816120b1565b5b5b61091483836120f5565b505050565b6000610923612239565b6001546000540303905090565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461098a5761096d3361204e565b6109895761097961209a565b1561098857610987336120b1565b5b5b5b610995848484612242565b50505050565b6000806000600b60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161415610b3157600a6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610b3b612567565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610b679190613e61565b610b719190613eea565b90508160000151819350935050509250929050565b610b8e611e51565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610c1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1490613db1565b60405180910390fd5b8060118190555050565b610c2f611e51565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610cbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb590613db1565b60405180910390fd5b6000479050610cd4610cce6115b0565b82612571565b50565b610cdf611e51565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610d6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6590613db1565b60405180910390fd5b8060139080519060200190610d8492919061334f565b5081601460006101000a81548160ff0219169083151502179055505050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610dfd57610de03361204e565b610dfc57610dec61209a565b15610dfb57610dfa336120b1565b5b5b5b610e08848484612665565b50505050565b610e16611e51565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610ea5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9c90613db1565b60405180910390fd5b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610ef1611e51565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7790613db1565b60405180910390fd5b8060128190555050565b6000610f9582612685565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611004576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61105d611e51565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146110ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e390613db1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6111b5612753565b6000601254116111fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f190613f67565b60405180910390fd5b600d5460016112076127a3565b6112119190613f87565b1115611252576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124990614029565b60405180910390fd5b600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156112df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d6906140bb565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461134d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134490614127565b60405180910390fd5b60006113c7838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506011543389896040516020016113ac939291906141b0565b604051602081830303815290604052805190602001206127b6565b90506002601254101561145d5780611414576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140b9061425f565b60405180910390fd5b6012548514611458576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144f906142f1565b60405180910390fd5b6114d4565b611466336127cd565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16146114d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ca90614383565b60405180910390fd5b5b6000816114e25760016114e4565b865b9050600c54341461152a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152190614415565b60405180910390fd5b6001600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061158c3382612872565b811561159f5761159e33600c54612890565b5b50506115a96128db565b5050505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546115e990613e00565b80601f016020809104026020016040519081016040528092919081815260200182805461161590613e00565b80156116625780601f1061163757610100808354040283529160200191611662565b820191906000526020600020905b81548152906001019060200180831161164557829003601f168201915b5050505050905090565b600c5481565b61167a611e51565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611709576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170090613db1565b60405180910390fd5b80600c8190555050565b8161171d8161204e565b6117395761172961209a565b1561173857611737816120b1565b5b5b61174383836128e5565b505050565b6000601254905090565b61175a611e51565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146117e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e090613db1565b60405180910390fd5b80600e60006101000a81548160ff02191690831515021790555050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611860576118433361204e565b61185f5761184f61209a565b1561185e5761185d336120b1565b5b5b5b61186c858585856129f0565b5050505050565b606061187e82611fef565b6118bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b4906144a7565b60405180910390fd5b60006118e86118cb84612a63565b6000600381106118de576118dd6144c7565b5b6020020151612b53565b6119116118f485612a63565b600160038110611907576119066144c7565b5b6020020151612b53565b61193a61191d86612a63565b6002600381106119305761192f6144c7565b5b6020020151612b53565b60405160200161194c93929190614da8565b60405160208183030381529060405290506000601460009054906101000a900460ff166119a357601361197e85612b53565b60405160200161198f929190614e99565b6040516020818303038152906040526119e7565b6119c76040518061062001604052806105fb81526020016159306105fb9139612bac565b6040516020016119d79190614f09565b6040516020818303038152906040525b905060006119f485612b53565b611a1d611a0087612a63565b600060038110611a1357611a126144c7565b5b6020020151612b53565b611a46611a2988612a63565b600160038110611a3c57611a3b6144c7565b5b6020020151612b53565b611a6f611a5289612a63565b600260038110611a6557611a646144c7565b5b6020020151612b53565b611a7887612bac565b86604051602001611a8e969594939291906152e1565b6040516020818303038152906040529050611aa881612bac565b604051602001611ab891906153d2565b6040516020818303038152906040529350505050919050565b600d5481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611b73611e51565b73ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611c02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf990613db1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611c72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c6990615466565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600e60009054906101000a900460ff1681565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611da057506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611dd05750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611e4a5750611e4982612d44565b5b9050919050565b600033905090565b611e61612567565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611ebf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb6906154f8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2690615564565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600a60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b600081611ffa612239565b11158015612009575060005482105b8015612047575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b6000731e0049783f008a0085193e00003d00cd54003c7173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16149050919050565b6000600e60009054906101000a900460ff16905090565b69c617113400112233445560005230601a5280603a52600080604460166daaeb6d7670e522a718067333cd4e5afa6120ed573d6000803e3d6000fd5b6000603a5250565b600061210082610f8a565b90508073ffffffffffffffffffffffffffffffffffffffff16612121612dae565b73ffffffffffffffffffffffffffffffffffffffff16146121845761214d81612148612dae565b611ad7565b612183576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001905090565b600061224d82612685565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146122b4576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806122c084612db6565b915091506122d681876122d1612dae565b612ddd565b612322576122eb866122e6612dae565b611ad7565b612321576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415612389576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6123968686866001612e21565b80156123a157600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061246f8561244b888887612e27565b7c020000000000000000000000000000000000000000000000000000000017612e4f565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841614156124f75760006001850190506000600460008381526020019081526020016000205414156124f55760005481146124f4578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461255f8686866001612e7a565b505050505050565b6000612710905090565b804710156125b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ab906155d0565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516125da90615621565b60006040518083038185875af1925050503d8060008114612617576040519150601f19603f3d011682016040523d82523d6000602084013e61261c565b606091505b5050905080612660576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612657906156a8565b60405180910390fd5b505050565b61268083838360405180602001604052806000815250611806565b505050565b60008082905080612694612239565b1161271c5760005481101561271b5760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612719575b600081141561270f5760046000836001900393508381526020019081526020016000205490506126e4565b809250505061274e565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60026009541415612799576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161279090615714565b60405180910390fd5b6002600981905550565b60006127ad612239565b60005403905090565b6000826127c38584612e80565b1490509392505050565b6000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166327c78c42836040518263ffffffff1660e01b815260040161282a91906136f2565b602060405180830381865afa158015612847573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061286b9190615749565b9050919050565b61288c828260405180602001604052806000815250612ed6565b5050565b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156128d6573d6000803e3d6000fd5b505050565b6001600981905550565b80600760006128f2612dae565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661299f612dae565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516129e491906134c8565b60405180910390a35050565b6129fb848484610930565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612a5d57612a2684848484612f73565b612a5c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b612a6b6133d5565b6040518060600160405280612ab96001600a6040518060400160405280600581526020017f706f776572000000000000000000000000000000000000000000000000000000815250876130c4565b8152602001612b016001600a6040518060400160405280600c81526020017f6576656e74486f72697a6f6e0000000000000000000000000000000000000000815250876130c4565b8152602001612b496001600a6040518060400160405280600981526020017f726164696174696f6e0000000000000000000000000000000000000000000000815250876130c4565b8152509050919050565b606060a060405101806040526020810391506000825281835b600115612b9757600184039350600a81066030018453600a8104905080612b9257612b97565b612b6c565b50828103602084039350808452505050919050565b60606000825190506000811415612bd55760405180602001604052806000815250915050612d3f565b60006003600283612be69190613f87565b612bf09190613eea565b6004612bfc9190613e61565b90506000602082612c0d9190613f87565b67ffffffffffffffff811115612c2657612c256138cc565b5b6040519080825280601f01601f191660200182016040528015612c585781602001600182028036833780820191505090505b5090506000604051806060016040528060408152602001615f2b604091399050600181016020830160005b86811015612cfc5760038101905062ffffff818a015116603f8160121c168401518060081b905060ff603f83600c1c1686015116810190508060081b905060ff603f8360061c1686015116810190508060081b905060ff603f831686015116810190508060e01b90508084526004840193505050612c83565b506003860660018114612d165760028114612d2657612d31565b613d3d60f01b6002830352612d31565b603d60f81b60018303525b508484525050819450505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612e3e868684613137565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60008082905060005b8451811015612ecb57612eb682868381518110612ea957612ea86144c7565b5b6020026020010151613140565b91508080612ec390615776565b915050612e89565b508091505092915050565b612ee0838361316b565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612f6e57600080549050600083820390505b612f206000868380600101945086612f73565b612f56576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612f0d578160005414612f6b57600080fd5b50505b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612f99612dae565b8786866040518563ffffffff1660e01b8152600401612fbb9493929190615814565b6020604051808303816000875af1925050508015612ff757506040513d601f19601f82011682018060405250810190612ff49190615875565b60015b613071573d8060008114613027576040519150601f19603f3d011682016040523d82523d6000602084013e61302c565b606091505b50600081511415613069576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60008085856130d391906158a2565b9050600060018286866040516020016130ed9291906158d6565b6040516020818303038152906040528051906020012060001c61311091906158fe565b61311a9190613f87565b905086816131289190613f87565b90508092505050949350505050565b60009392505050565b6000818310613158576131538284613328565b613163565b6131628383613328565b5b905092915050565b60008054905060008214156131ac576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6131b96000848385612e21565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613230836132216000866000612e27565b61322a8561333f565b17612e4f565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146132d157808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613296565b50600082141561330d576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506133236000848385612e7a565b505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b82805461335b90613e00565b90600052602060002090601f01602090048101928261337d57600085556133c4565b82601f1061339657805160ff19168380011785556133c4565b828001600101855582156133c4579182015b828111156133c35782518255916020019190600101906133a8565b5b5090506133d191906133f7565b5090565b6040518060600160405280600390602082028036833780820191505090505090565b5b808211156134105760008160009055506001016133f8565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61345d81613428565b811461346857600080fd5b50565b60008135905061347a81613454565b92915050565b6000602082840312156134965761349561341e565b5b60006134a48482850161346b565b91505092915050565b60008115159050919050565b6134c2816134ad565b82525050565b60006020820190506134dd60008301846134b9565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061350e826134e3565b9050919050565b61351e81613503565b811461352957600080fd5b50565b60008135905061353b81613515565b92915050565b60006bffffffffffffffffffffffff82169050919050565b61356281613541565b811461356d57600080fd5b50565b60008135905061357f81613559565b92915050565b6000806040838503121561359c5761359b61341e565b5b60006135aa8582860161352c565b92505060206135bb85828601613570565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b838110156135ff5780820151818401526020810190506135e4565b8381111561360e576000848401525b50505050565b6000601f19601f8301169050919050565b6000613630826135c5565b61363a81856135d0565b935061364a8185602086016135e1565b61365381613614565b840191505092915050565b600060208201905081810360008301526136788184613625565b905092915050565b6000819050919050565b61369381613680565b811461369e57600080fd5b50565b6000813590506136b08161368a565b92915050565b6000602082840312156136cc576136cb61341e565b5b60006136da848285016136a1565b91505092915050565b6136ec81613503565b82525050565b600060208201905061370760008301846136e3565b92915050565b600080604083850312156137245761372361341e565b5b60006137328582860161352c565b9250506020613743858286016136a1565b9150509250929050565b61375681613680565b82525050565b6000602082019050613771600083018461374d565b92915050565b6000806000606084860312156137905761378f61341e565b5b600061379e8682870161352c565b93505060206137af8682870161352c565b92505060406137c0868287016136a1565b9150509250925092565b600080604083850312156137e1576137e061341e565b5b60006137ef858286016136a1565b9250506020613800858286016136a1565b9150509250929050565b600060408201905061381f60008301856136e3565b61382c602083018461374d565b9392505050565b6000819050919050565b61384681613833565b811461385157600080fd5b50565b6000813590506138638161383d565b92915050565b60006020828403121561387f5761387e61341e565b5b600061388d84828501613854565b91505092915050565b61389f816134ad565b81146138aa57600080fd5b50565b6000813590506138bc81613896565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61390482613614565b810181811067ffffffffffffffff82111715613923576139226138cc565b5b80604052505050565b6000613936613414565b905061394282826138fb565b919050565b600067ffffffffffffffff821115613962576139616138cc565b5b61396b82613614565b9050602081019050919050565b82818337600083830152505050565b600061399a61399584613947565b61392c565b9050828152602081018484840111156139b6576139b56138c7565b5b6139c1848285613978565b509392505050565b600082601f8301126139de576139dd6138c2565b5b81356139ee848260208601613987565b91505092915050565b60008060408385031215613a0e57613a0d61341e565b5b6000613a1c858286016138ad565b925050602083013567ffffffffffffffff811115613a3d57613a3c613423565b5b613a49858286016139c9565b9150509250929050565b600060208284031215613a6957613a6861341e565b5b6000613a778482850161352c565b91505092915050565b613a89816134e3565b8114613a9457600080fd5b50565b600081359050613aa681613a80565b92915050565b600080fd5b600080fd5b60008083601f840112613acc57613acb6138c2565b5b8235905067ffffffffffffffff811115613ae957613ae8613aac565b5b602083019150836020820283011115613b0557613b04613ab1565b5b9250929050565b600080600080600060808688031215613b2857613b2761341e565b5b6000613b36888289016136a1565b9550506020613b47888289016136a1565b9450506040613b5888828901613a97565b935050606086013567ffffffffffffffff811115613b7957613b78613423565b5b613b8588828901613ab6565b92509250509295509295909350565b60008060408385031215613bab57613baa61341e565b5b6000613bb98582860161352c565b9250506020613bca858286016138ad565b9150509250929050565b600060208284031215613bea57613be961341e565b5b6000613bf8848285016138ad565b91505092915050565b600067ffffffffffffffff821115613c1c57613c1b6138cc565b5b613c2582613614565b9050602081019050919050565b6000613c45613c4084613c01565b61392c565b905082815260208101848484011115613c6157613c606138c7565b5b613c6c848285613978565b509392505050565b600082601f830112613c8957613c886138c2565b5b8135613c99848260208601613c32565b91505092915050565b60008060008060808587031215613cbc57613cbb61341e565b5b6000613cca8782880161352c565b9450506020613cdb8782880161352c565b9350506040613cec878288016136a1565b925050606085013567ffffffffffffffff811115613d0d57613d0c613423565b5b613d1987828801613c74565b91505092959194509250565b60008060408385031215613d3c57613d3b61341e565b5b6000613d4a8582860161352c565b9250506020613d5b8582860161352c565b9150509250929050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613d9b6020836135d0565b9150613da682613d65565b602082019050919050565b60006020820190508181036000830152613dca81613d8e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613e1857607f821691505b60208210811415613e2c57613e2b613dd1565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613e6c82613680565b9150613e7783613680565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613eb057613eaf613e32565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613ef582613680565b9150613f0083613680565b925082613f1057613f0f613ebb565b5b828204905092915050565b7f4d696e74206973206e6f74206c6976652e000000000000000000000000000000600082015250565b6000613f516011836135d0565b9150613f5c82613f1b565b602082019050919050565b60006020820190508181036000830152613f8081613f44565b9050919050565b6000613f9282613680565b9150613f9d83613680565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613fd257613fd1613e32565b5b828201905092915050565b7f4d617820737570706c79206361702069732035353520746f6b656e732e000000600082015250565b6000614013601d836135d0565b915061401e82613fdd565b602082019050919050565b6000602082019050818103600083015261404281614006565b9050919050565b7f4f6e6520636c61696d207472616e73616374696f6e207065722077616c6c657460008201527f2e00000000000000000000000000000000000000000000000000000000000000602082015250565b60006140a56021836135d0565b91506140b082614049565b604082019050919050565b600060208201905081810360008301526140d481614098565b9050919050565b7f454f4173206f6e6c790000000000000000000000000000000000000000000000600082015250565b60006141116009836135d0565b915061411c826140db565b602082019050919050565b6000602082019050818103600083015261414081614104565b9050919050565b60008160601b9050919050565b600061415f82614147565b9050919050565b600061417182614154565b9050919050565b61418961418482613503565b614166565b82525050565b6000819050919050565b6141aa6141a582613680565b61418f565b82525050565b60006141bc8286614178565b6014820191506141cc8285614199565b6020820191506141dc8284614199565b602082019150819050949350505050565b7f4966207068617365206973206e6f7420322c2076616c69642070726f6f66206960008201527f732072657175697265642e000000000000000000000000000000000000000000602082015250565b6000614249602b836135d0565b9150614254826141ed565b604082019050919050565b600060208201905081810360008301526142788161423c565b9050919050565b7f596f7572207068617365206d75737420626520657175616c20746f207468652060008201527f63757272656e742070686173652e000000000000000000000000000000000000602082015250565b60006142db602e836135d0565b91506142e68261427f565b604082019050919050565b6000602082019050818103600083015261430a816142ce565b9050919050565b7f4d616b65207375726520796f7520617265206d696e74696e67206f6e2074686560008201527f20776562736974652e0000000000000000000000000000000000000000000000602082015250565b600061436d6029836135d0565b915061437882614311565b604082019050919050565b6000602082019050818103600083015261439c81614360565b9050919050565b7f506c656173652073656e642074686520657861637420616d6f756e74206f662060008201527f45746865722e0000000000000000000000000000000000000000000000000000602082015250565b60006143ff6026836135d0565b915061440a826143a3565b604082019050919050565b6000602082019050818103600083015261442e816143f2565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614491602f836135d0565b915061449c82614435565b604082019050919050565b600060208201905081810360008301526144c081614484565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081905092915050565b7f3c68746d6c3e203c686561643e203c7374796c653e20626f6479207b206d617260008201527f67696e3a303b206261636b67726f756e643a20233030303b206f766572666c6f60208201527f773a2068696464656e3b207d2063616e766173207b20626f74746f6d3a20303b60408201527f206865696768743a2031303076773b206c6566743a20303b206d617267696e3a60608201527f206175746f3b206d61782d6865696768743a2031303076683b206d61782d776960808201527f6474683a2031303076683b20706f736974696f6e3a206162736f6c7574653b2060a08201527f72696768743a20303b20746f703a20303b2077696474683a2031303076773b2060c08201527f7d202e74657874207b20636f6c6f723a77686974653b20706f736974696f6e3a60e08201527f206162736f6c7574653b20746f703a20303b206c6566743a20303b20666f6e746101008201527f2d66616d696c793a436f6e736f6c61733b2070616464696e673a3276773b20666101208201527f6f6e742d73697a653a3176773b207d203c2f7374796c653e203c2f686561643e6101408201527f203c626f64793e203c63616e7661732069643d2263616e766173223e3c2f63616101608201527f6e7661733e203c2f626f64793e203c2f68746d6c3e203c7363726970743e20766101808201527f617220706f776572203d2031392b322a000000000000000000000000000000006101a082015250565b600061472c6101b0836144f6565b915061473782614501565b6101b082019050919050565b600061474e826135c5565b61475881856144f6565b93506147688185602086016135e1565b80840191505092915050565b7f3b766172206576656e74486f72697a6f6e203d20000000000000000000000000600082015250565b60006147aa6014836144f6565b91506147b582614774565b601482019050919050565b7f3b76617220726164696174696f6e203d203139202b332a000000000000000000600082015250565b60006147f66017836144f6565b9150614801826147c0565b601782019050919050565b7f3b66756e6374696f6e206f6e546865456467654f664f626c6976696f6e28702c60008201527f712c72297b66756e6374696f6e206a28612c62297b72657475726e20623d612c60208201527f613d2d323530302f28313032342f68292c4d6174682e666c6f6f72284d61746860408201527f2e72616e646f6d28292a28622d612b3129292b613b7d76617220663d646f637560608201527f6d656e742e717565727953656c6563746f72282263616e76617322292c673d6660808201527f2e676574436f6e746578742822326422292c683d662e77696474683d3132353060a08201527f2c6e3d662e6865696768743d313235302c693d5b5d2c6b3d302c6c3d3430303060c08201527f2b702a313030303b76617220633d646f63756d656e742e637265617465456c6560e08201527f6d656e74282263616e76617322292c643d632e676574436f6e746578742822326101008201527f6422293b632e77696474683d313530302c632e6865696768743d313530303b766101208201527f617220613d632e77696474682f323b76617220653d642e6372656174655261646101408201527f69616c4772616469656e7428612c612c302c612c612c61293b652e616464436f6101608201527f6c6f7253746f7028302e312f3130302c222366666622292c652e616464436f6c6101808201527f6f7253746f7028302e352f3130302c2268736c2832352c203630252c203135256101a08201527f2922292c652e616464436f6c6f7253746f702833352f3130302c2268736c28326101c08201527f352c3635252c31252922292c652e616464436f6c6f7253746f7028302e392c226101e08201527f7472616e73706172656e7422292c642e66696c6c5374796c653d652c642e62656102008201527f67696e5061746828292c642e61726328612c612c612c312c4d6174682e50492a6102208201527f32292c642e66696c6c28293b766172206d3d66756e6374696f6e28297b7468696102408201527f732e6f523d6a282d682f2831362d7129292c746869732e7261646975733d6a286102608201527f3130302c746869732e6f52292f352c746869732e6f583d682f322c746869732e6102808201527f6f593d6e2f322c746869732e6d61747465723d6a28302c6c292c746869732e706102a08201527f6172616d5a3d302e322f3130302a722b372e352f3130302c6b2b2b2c695b6b5d6102c08201527f3d746869733b7d3b6d2e70726f746f747970652e647261773d66756e6374696f6102e08201527f6e28297b76617220613d4d6174682e73696e28746869732e6d6174746572292a6103008201527f746869732e6f522b746869732e6f582c623d4d6174682e636f7328746869732e6103208201527f6d6174746572292a746869732e6f522f312b746869732e6f593b672e676c6f626103408201527f616c416c7068613d746869732e706172616d5a2c672e64726177496d616765286103608201527f632c612d746869732e7261646975732f322c622d746869732e7261646975732f6103808201527f322c746869732e7261646975732c746869732e726164697573293b7d3b666f726103a08201527f2876617220623d303b623c6c3b622b2b296e6577206d28293b666f72287661726103c08201527f20623d312c6f3d692e6c656e6774683b623c6f3b622b2b29672e676c6f62616c6103e08201527f436f6d706f736974654f7065726174696f6e3d226c696768746572222c695b626104008201527f5d2e6472617728293b7d3b6f6e546865456467654f664f626c6976696f6e28706104208201527f6f7765722c206576656e74486f72697a6f6e2c20726164696174696f6e293b3c6104408201527f2f7363726970743e00000000000000000000000000000000000000000000000061046082015250565b6000614d91610468836144f6565b9150614d9c8261480c565b61046882019050919050565b6000614db38261471e565b9150614dbf8286614743565b9150614dca8261479d565b9150614dd68285614743565b9150614de1826147e9565b9150614ded8284614743565b9150614df882614d83565b9150819050949350505050565b60008190508160005260206000209050919050565b60008154614e2781613e00565b614e3181866144f6565b94506001821660008114614e4c5760018114614e5d57614e90565b60ff19831686528186019350614e90565b614e6685614e05565b60005b83811015614e8857815481890152600182019150602081019050614e69565b838801955050505b50505092915050565b6000614ea58285614e1a565b9150614eb18284614743565b91508190509392505050565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c000000000000600082015250565b6000614ef3601a836144f6565b9150614efe82614ebd565b601a82019050919050565b6000614f1482614ee6565b9150614f208284614743565b915081905092915050565b7f7b226e616d65223a20224f6e207468652045646765206f66204f626c6976696f60008201527f6e20230000000000000000000000000000000000000000000000000000000000602082015250565b6000614f876023836144f6565b9150614f9282614f2b565b602382019050919050565b7f222c20226465736372697074696f6e223a2022456d6261726b206f6e2061207660008201527f6f7961676520746f20746865206f75746572207265616c6d73206f66206f757260208201527f20756e6976657273652c2077686572652074686520766572792066616272696360408201527f206f6620737061636520616e642074696d6520697320646973746f727465642060608201527f627920616e206f7665727768656c6d696e6720666f726365206f66206772617660808201527f69747920696e20776179732077652063616e6e6f742079657420636f6d70726560a08201527f68656e642e222c2261747472696275746573223a205b207b202274726169745f60c08201527f74797065223a2022506f776572222c202276616c7565223a202200000000000060e082015250565b60006150dd60fa836144f6565b91506150e882614f9d565b60fa82019050919050565b7f22207d2c207b202274726169745f74797065223a20224576656e7420486f726960008201527f7a6f6e222c202276616c7565223a202200000000000000000000000000000000602082015250565b600061514f6030836144f6565b915061515a826150f3565b603082019050919050565b7f22207d2c207b202274726169745f74797065223a2022526164696174696f6e2260008201527f2c202276616c7565223a20220000000000000000000000000000000000000000602082015250565b60006151c1602c836144f6565b91506151cc82615165565b602c82019050919050565b7f22207d205d2c2022616e696d6174696f6e5f75726c223a2022646174613a746560008201527f78742f68746d6c3b6261736536342c0000000000000000000000000000000000602082015250565b6000615233602f836144f6565b915061523e826151d7565b602f82019050919050565b7f222c22696d616765223a20220000000000000000000000000000000000000000600082015250565b600061527f600c836144f6565b915061528a82615249565b600c82019050919050565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b60006152cb6002836144f6565b91506152d682615295565b600282019050919050565b60006152ec82614f7a565b91506152f88289614743565b9150615303826150d0565b915061530f8288614743565b915061531a82615142565b91506153268287614743565b9150615331826151b4565b915061533d8286614743565b915061534882615226565b91506153548285614743565b915061535f82615272565b915061536b8284614743565b9150615376826152be565b9150819050979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b60006153bc601d836144f6565b91506153c782615386565b601d82019050919050565b60006153dd826153af565b91506153e98284614743565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006154506026836135d0565b915061545b826153f4565b604082019050919050565b6000602082019050818103600083015261547f81615443565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b60006154e2602a836135d0565b91506154ed82615486565b604082019050919050565b60006020820190508181036000830152615511816154d5565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b600061554e6019836135d0565b915061555982615518565b602082019050919050565b6000602082019050818103600083015261557d81615541565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b60006155ba601d836135d0565b91506155c582615584565b602082019050919050565b600060208201905081810360008301526155e9816155ad565b9050919050565b600081905092915050565b50565b600061560b6000836155f0565b9150615616826155fb565b600082019050919050565b600061562c826155fe565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000615692603a836135d0565b915061569d82615636565b604082019050919050565b600060208201905081810360008301526156c181615685565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006156fe601f836135d0565b9150615709826156c8565b602082019050919050565b6000602082019050818103600083015261572d816156f1565b9050919050565b60008151905061574381613a80565b92915050565b60006020828403121561575f5761575e61341e565b5b600061576d84828501615734565b91505092915050565b600061578182613680565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156157b4576157b3613e32565b5b600182019050919050565b600081519050919050565b600082825260208201905092915050565b60006157e6826157bf565b6157f081856157ca565b93506158008185602086016135e1565b61580981613614565b840191505092915050565b600060808201905061582960008301876136e3565b61583660208301866136e3565b615843604083018561374d565b818103606083015261585581846157db565b905095945050505050565b60008151905061586f81613454565b92915050565b60006020828403121561588b5761588a61341e565b5b600061589984828501615860565b91505092915050565b60006158ad82613680565b91506158b883613680565b9250828210156158cb576158ca613e32565b5b828203905092915050565b60006158e28285614743565b91506158ee8284614199565b6020820191508190509392505050565b600061590982613680565b915061591483613680565b92508261592457615923613ebb565b5b82820690509291505056fe3c737667207374796c653d226261636b67726f756e642d636f6c6f723a2330303022207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d2230203020373530203735302220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e203c66696c7465722069643d2262223e203c666554757262756c656e636520626173654672657175656e63793d22302e32222f3e203c6665436f6c6f724d61747269782076616c7565733d2230203020302039202d352030203020302039202d352030203020302039202d3520302030203020302031222f3e203c2f66696c7465723e203c726563742077696474683d223130302522206865696768743d2231303025222066696c7465723d2275726c2823622922206f7061636974793d222e35222f3e203c636972636c652063783d22353025222063793d223530252220723d22323025222f3e203c6465667320786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e203c66696c7465722069643d22612220783d2230252220793d2230252220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e203c666554757262756c656e636520626173654672657175656e63793d22302e3030303520312e3522206e756d4f6374617665733d2231302220726573756c743d2274757262756c656e63652220736565643d2234353435223e203c616e696d617465206174747269627574654e616d653d2273656564222063616c634d6f64653d22646973637265746522206475723d22302e3235732220726570656174436f756e743d22696e646566696e697465222076616c7565733d22313b323b333b343b353b363b373b383b393b222f3e203c2f666554757262756c656e63653e203c6665446973706c6163656d656e744d617020696e3d22536f75726365477261706869632220696e323d2274757262756c656e636522207363616c653d2235302220784368616e6e656c53656c6563746f723d22522220794368616e6e656c53656c6563746f723d2247222f3e203c2f66696c7465723e203c2f646566733e203c672069643d2231222066696c7465723d2275726c2823612920626c7572283570782922206f7061636974793d223530252220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e203c67207472616e73666f726d3d227472616e736c617465282d3130202d3829223e203c636972636c652069643d2263222063783d22353025222063793d223530252220723d2231362522207374726f6b653d2223666666222f3e203c2f673e203c2f673e203c672066696c7465723d2275726c2823612920626c7572283570782922206f7061636974793d223530252220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e203c67207472616e73666f726d3d227472616e736c617465282d3130202d3829223e203c636972636c652063783d22353025222063793d223530252220723d2231342522207374726f6b653d2223666666222f3e203c2f673e203c2f673e203c636972636c652063783d22353025222063793d223530252220723d22313125222f3e203c7465787420783d223530252220793d223436252220646f6d696e616e742d626173656c696e653d226d6964646c65222066696c6c3d2277686974652220666f6e742d66616d696c793d22436f75726965722220666f6e742d73697a653d223330707822206f7061636974793d222e362220746578742d616e63686f723d226d6964646c65223e4f4e205448452045444745204f463c2f746578743e203c7465787420783d223530252220793d223533252220646f6d696e616e742d626173656c696e653d226d6964646c65222066696c6c3d2277686974652220666f6e742d66616d696c793d22436f75726965722220666f6e742d73697a653d223735707822206f7061636974793d222e362220746578742d616e63686f723d226d6964646c65223e4f424c4956494f4e3c2f746578743e203c2f7376673e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220c68facd6d4f0ae19d8a9ca08874183c8a6f7672f8a934cbc70cf51a7a79df9aa64736f6c634300080b0033
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.