ERC-721
Overview
Max Total Supply
364 SMAC
Holders
149
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 SMACLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
SmackmanCoin
Compiler Version
v0.8.14+commit.80d49f37
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.14; /** @author smashice.eth @checkout dtech.vision and hupfmedia.de ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */ import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./ERC721-templates/chirulabsERC721A.sol"; contract SmackmanCoin is chirulabsERC721A { using SafeMath for uint256; using Strings for uint; /** * @param name The NFT collection name * @param symbol The NFT collection symbol * @param receiver The wallet address to recieve the royalties * @param feeNumerator Numerator of royalty % where Denominator default is 10000 */ constructor ( string memory name, string memory symbol, address receiver, uint96 feeNumerator ) chirulabsERC721A(name, symbol, receiver, feeNumerator) { fundReciever = receiver; _safeMint(0x7Fdd26B919b651054f475E2c995720808B4cB6D7, 8); // _safeMint(0x989c17E16e937dC2dc139644c116D799A7148acE, 8); //coude.eth _safeMint(0xa52997Ab60C0fB10fE136981B3d4d26d8E863430, 8); //frankflux.eth _safeMint(0x51938E058a23cAe9aD8EC4bA538C55888C4C7656, 8); //alicedee.eth _safeMint(0x25981260Dd48274Abb39d48eD3cd96384522c217, 8); //rarart.eth _safeMint(0x64d808D23047760BAda636FACf2b48FD9942aeb3, 8); //drpflux.eth _safeMint(0x745Eb80612B49B22e4244aB06eaE0b37Efb39907, 8); // _safeMint(0xBee3FF8dA5bfa477af63D93D1C607830A1828c4A, 8); //Michael Emperiom _safeMint(0xDa4e937243c746d7Cfe7179FB20d6c194EE1550c, 100); //Treasury } address internal fundReciever; string public baseURI = "ar://fIlS8rS9ZwkTP_IILzqHCl4bcFGneGtZRy9gK2e75CE/"; string public provenanceHash = "d0598156811667bae7e32e663c4669549465e88a2909a7b82de21f7d085c885d"; uint256 constant public MAX_SUPPLY = 1111; uint256 public upsellsLeft = 350; uint256 public mintPrice = 0.07 ether; uint256 public offset = 0; bytes32 public claim1RootHash; bytes32 public claim2RootHash; bool public mintActive = false; bool public preSaleActive = false; mapping(address => uint256) preSale1Book; mapping(address => uint256) preSale2Book; /** * Allows owner to send aribitrary amounts of tokens to arbitrary adresses * Used to get offchain PreSale buyers their tokens * @param recipient Array of addresses of which recipient[i] will recieve amount [i] * @param amount Array of integers of which amount[i] will be airdropped to recipient[i] */ function airdrop( address[] memory recipient, uint256[] memory amount ) public onlyOwner { for(uint i = 0; i < recipient.length; ++i) { require(totalSupply().add(amount[i]) <= MAX_SUPPLY, "705 no more token available"); _safeMint(recipient[i], amount[i]); } } /** * If mint is active, set it to not active. * If mint is not active, set it to active. */ function flipMintState() public onlyOwner { mintActive = !mintActive; } /** * If PreSale is active, set it to not active. * If PreSale is not active, set it to active. */ function flipPreSaleState() public onlyOwner { preSaleActive = !preSaleActive; } /** * Allows you to buy tokens * @param amount_ amount of tokens to get * @param toAddress_ reciever of the token(s) */ function mint( uint256 amount_, address toAddress_ ) public payable { require(mintActive, "702 Feature disabled/not active"); require(totalSupply().add(amount_) <= MAX_SUPPLY, "705 no more token available"); require(mintPrice.mul(amount_) <= msg.value, "703 Not enough currency sent"); _safeMint(toAddress_, amount_); } function randomizeOffset() public { require(offset == 0, "Offset was set already"); require(!preSaleActive && !mintActive, "minting needs to be done"); offset = block.difficulty % MAX_SUPPLY; } /** * Set MerkleTree Root for Claim of 1 * @param claim1RootHash_ Roothash for the Merkle Tree */ function setPreSale1Root( bytes32 claim1RootHash_ ) public onlyOwner { claim1RootHash = claim1RootHash_; } /** * Set MerkleTree Root for Claim of 2 * @param claim2RootHash_ Roothash for the Merkle Tree */ function setPreSale2Root( bytes32 claim2RootHash_ ) public onlyOwner { claim2RootHash = claim2RootHash_; } /** * Presale Tokens to only addresses within the merkle tree * @dev using merkle tree for proof of being approved for the presale */ function preSale1Token( uint amount_, bytes32[] calldata proof_ ) public payable { require(preSaleActive, "702 Feature disabled/not active"); require(amount_ <= 3, "MAX 3"); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(proof_, claim1RootHash, leaf), "Invalid Proof"); preSale1Book[msg.sender] = preSale1Book[msg.sender].add(1); require(preSale1Book[msg.sender] <= 1, "Already claimed"); if(amount_ > 1) // one is free upsellsLeft = upsellsLeft - (amount_ - 1); require(upsellsLeft > 0, "no more +1/+2 available"); require(msg.value >= mintPrice * (amount_ - 1), "703 Not enough currency sent"); _safeMint(msg.sender, amount_); } /** * Presale Tokens to only addresses within the merkle tree * @dev using merkle tree for proof of being approved for the presale */ function preSale2Token( uint amount_, bytes32[] calldata proof_ ) public payable { require(preSaleActive, "702 Feature disabled/not active"); require(amount_ <= 4, "MAX 4"); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(proof_, claim2RootHash, leaf), "Invalid Proof"); uint256 currentClaim = preSale2Book[msg.sender]; //get already claimed tokens if(amount_ == 1) preSale2Book[msg.sender] = preSale2Book[msg.sender].add(1); else preSale2Book[msg.sender] = preSale2Book[msg.sender].add(2); require(preSale2Book[msg.sender] <= 2, "MAX 2 PER WALLET"); if(amount_ > 2 && currentClaim == 0) { // no tokens claimed so has 2 free claims upsellsLeft = upsellsLeft - (amount_ - 2); require(upsellsLeft > 0, "no more +1/+2 available"); require(msg.value >= mintPrice * (amount_ - 2), "703 Not enough currency sent"); } else { // 1 token already claimed so only 1 free left upsellsLeft = upsellsLeft - (amount_ - 1); require(upsellsLeft > 0, "no more +1/+2 available"); require(msg.value >= mintPrice * (amount_ - 1), "703 Not enough currency sent"); } _safeMint(msg.sender, amount_); } /** * Allows owner to withdraw all ETH */ function withdraw() public onlyOwner { uint256 balance = address(this).balance; uint256 checkBal = 0; require(balance >= 1000, "Balance too small to safely withdraw!"); //splitting balance into predefined percentages uint256 bal1 = balance.mul(50).div(1000); checkBal += bal1; uint256 bal2 = balance.mul(50).div(1000); checkBal += bal2; uint256 bal3 = balance.mul(50).div(1000); checkBal += bal3; uint256 bal4 = balance.mul(50).div(1000); checkBal += bal4; uint256 bal5 = balance.mul(100).div(1000); checkBal += bal5; uint256 bal6 = balance.mul(50).div(1000); checkBal += bal6; uint256 bal7 = balance.mul(50).div(1000); checkBal += bal7; uint256 bal8 = balance.mul(100).div(1000); checkBal += bal8; uint256 bal9 = balance.mul(500).div(1000); checkBal += bal9; require(checkBal <= balance, "Math Error, balances don't add up."); //transfer Ether payable(0x7Fdd26B919b651054f475E2c995720808B4cB6D7).transfer(bal1); payable(0x989c17E16e937dC2dc139644c116D799A7148acE).transfer(bal2); payable(0xa52997Ab60C0fB10fE136981B3d4d26d8E863430).transfer(bal3); payable(0x51938E058a23cAe9aD8EC4bA538C55888C4C7656).transfer(bal4); payable(0x25981260Dd48274Abb39d48eD3cd96384522c217).transfer(bal5); payable(0x64d808D23047760BAda636FACf2b48FD9942aeb3).transfer(bal6); payable(0x745Eb80612B49B22e4244aB06eaE0b37Efb39907).transfer(bal7); payable(0xBee3FF8dA5bfa477af63D93D1C607830A1828c4A).transfer(bal8); payable(0xDa4e937243c746d7Cfe7179FB20d6c194EE1550c).transfer(bal9); } /** * Allows owner to set reciever of withdrawl * @param reciever who to recieve the balance of the contract */ function setReciever(address reciever) public onlyOwner { fundReciever = reciever; } /** * Allows owner to set baseURI for all tokens * @param newBaseURI_ new baseURI to be used in tokenURI generation */ function setBaseURI( string calldata newBaseURI_ ) external onlyOwner { baseURI = newBaseURI_; } /** * Allows owner to set a new mintPrice * @param mintPrice_ new mintPrice to be used */ function setMintPrice( uint256 mintPrice_ ) public onlyOwner { mintPrice = mintPrice_; } /** * Allows owner to set new EIP2981 Royalty share and/or reciever for the whole collection * @param reciever_ new royalty reciever to be used * @param feeNumerator_ new royalty share in basis points to be used e.g. 100 = 1% */ function setRoyalty( address reciever_, uint96 feeNumerator_ ) public onlyOwner { _setDefaultRoyalty(reciever_, feeNumerator_); } /** * Returns the URI (Link) to the given tokenId * @param tokenId_ tokenId of which to get the URI */ function tokenURI( uint tokenId_ ) public override view returns (string memory) { require(_exists(tokenId_), "704 Query for nonexistent token"); uint256 metadataID = (tokenId_ + offset) % MAX_SUPPLY; return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, metadataID.toString(), '.json')) : "https://dtech.vision"; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.14; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "erc721a/contracts/ERC721A.sol"; contract chirulabsERC721A is ERC721A, ERC2981, Ownable { using SafeMath for uint256; /** * @param name The NFT collection name * @param symbol The NFT collection symbol * @param receiver The wallet address to recieve the royalties * @param feeNumerator Numerator of royalty % where Denominator default is 10000 */ constructor ( string memory name, string memory symbol, address receiver, uint96 feeNumerator ) ERC721A(name, symbol) { _setDefaultRoyalty(receiver, feeNumerator); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, ERC2981) returns (bool) { return super.supportsInterface(interfaceId) || interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f || // ERC165 interface ID for ERC721Metadata. interfaceId == type(IERC2981).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * 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. */ 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 proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _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} * * _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 the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _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} * * _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.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// 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 // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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 // 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/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"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":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipient","type":"address[]"},{"internalType":"uint256[]","name":"amount","type":"uint256[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim1RootHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim2RootHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipPreSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount_","type":"uint256"},{"internalType":"address","name":"toAddress_","type":"address"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","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":"offset","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"uint256","name":"amount_","type":"uint256"},{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"}],"name":"preSale1Token","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount_","type":"uint256"},{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"}],"name":"preSale2Token","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"preSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenanceHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomizeOffset","outputs":[],"stateMutability":"nonpayable","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":"string","name":"newBaseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintPrice_","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"claim1RootHash_","type":"bytes32"}],"name":"setPreSale1Root","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"claim2RootHash_","type":"bytes32"}],"name":"setPreSale2Root","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"reciever","type":"address"}],"name":"setReciever","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"reciever_","type":"address"},{"internalType":"uint96","name":"feeNumerator_","type":"uint96"}],"name":"setRoyalty","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":"upsellsLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526040518060600160405280603181526020016200603060319139600c90805190602001906200003592919062000a3e565b5060405180606001604052806040815260200162005ff060409139600d90805190602001906200006792919062000a3e565b5061015e600e5566f8b0a10e470000600f5560006010556000601360006101000a81548160ff0219169083151502179055506000601360016101000a81548160ff021916908315150217905550348015620000c157600080fd5b5060405162006061380380620060618339818101604052810190620000e7919062000d39565b83838383838381600290805190602001906200010592919062000a3e565b5080600390805190602001906200011e92919062000a3e565b506200012f6200031760201b60201c565b6000819055505050620001576200014b6200031c60201b60201c565b6200032460201b60201c565b620001698282620003ea60201b60201c565b5050505081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620001d5737fdd26b919b651054f475e2c995720808b4cb6d760086200058d60201b60201c565b620001fc73989c17e16e937dc2dc139644c116d799a7148ace60086200058d60201b60201c565b6200022373a52997ab60c0fb10fe136981b3d4d26d8e86343060086200058d60201b60201c565b6200024a7351938e058a23cae9ad8ec4ba538c55888c4c765660086200058d60201b60201c565b620002717325981260dd48274abb39d48ed3cd96384522c21760086200058d60201b60201c565b620002987364d808d23047760bada636facf2b48fd9942aeb360086200058d60201b60201c565b620002bf73745eb80612b49b22e4244ab06eae0b37efb3990760086200058d60201b60201c565b620002e673bee3ff8da5bfa477af63d93d1c607830a1828c4a60086200058d60201b60201c565b6200030d73da4e937243c746d7cfe7179fb20d6c194ee1550c60646200058d60201b60201c565b50505050620010d4565b600090565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620003fa620005b360201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff1611156200045b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004529062000e70565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620004cd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004c49062000ee2565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600860008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b620005af828260405180602001604052806000815250620005bd60201b60201c565b5050565b6000612710905090565b620005cf83836200066e60201b60201c565b60008373ffffffffffffffffffffffffffffffffffffffff163b146200066957600080549050600083820390505b6200061860008683806001019450866200085560201b60201c565b6200064f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110620005fd5781600054146200066657600080fd5b50505b505050565b60008054905060008203620006af576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b620006c46000848385620009b660201b60201c565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506200075383620007356000866000620009bc60201b60201c565b6200074685620009ec60201b60201c565b17620009fc60201b60201c565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114620007f657808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050620007b9565b506000820362000832576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600081905550505062000850600084838562000a2760201b60201c565b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026200088362000a2d60201b60201c565b8786866040518563ffffffff1660e01b8152600401620008a7949392919062000f8d565b6020604051808303816000875af1925050508015620008e657506040513d601f19601f82011682018060405250810190620008e391906200103e565b60015b62000963573d806000811462000919576040519150601f19603f3d011682016040523d82523d6000602084013e6200091e565b606091505b5060008151036200095b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b50505050565b60008060e883901c905060e8620009db86868462000a3560201b60201c565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b60009392505050565b82805462000a4c906200109f565b90600052602060002090601f01602090048101928262000a70576000855562000abc565b82601f1062000a8b57805160ff191683800117855562000abc565b8280016001018555821562000abc579182015b8281111562000abb57825182559160200191906001019062000a9e565b5b50905062000acb919062000acf565b5090565b5b8082111562000aea57600081600090555060010162000ad0565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b62000b578262000b0c565b810181811067ffffffffffffffff8211171562000b795762000b7862000b1d565b5b80604052505050565b600062000b8e62000aee565b905062000b9c828262000b4c565b919050565b600067ffffffffffffffff82111562000bbf5762000bbe62000b1d565b5b62000bca8262000b0c565b9050602081019050919050565b60005b8381101562000bf757808201518184015260208101905062000bda565b8381111562000c07576000848401525b50505050565b600062000c2462000c1e8462000ba1565b62000b82565b90508281526020810184848401111562000c435762000c4262000b07565b5b62000c5084828562000bd7565b509392505050565b600082601f83011262000c705762000c6f62000b02565b5b815162000c8284826020860162000c0d565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000cb88262000c8b565b9050919050565b62000cca8162000cab565b811462000cd657600080fd5b50565b60008151905062000cea8162000cbf565b92915050565b60006bffffffffffffffffffffffff82169050919050565b62000d138162000cf0565b811462000d1f57600080fd5b50565b60008151905062000d338162000d08565b92915050565b6000806000806080858703121562000d565762000d5562000af8565b5b600085015167ffffffffffffffff81111562000d775762000d7662000afd565b5b62000d858782880162000c58565b945050602085015167ffffffffffffffff81111562000da95762000da862000afd565b5b62000db78782880162000c58565b935050604062000dca8782880162000cd9565b925050606062000ddd8782880162000d22565b91505092959194509250565b600082825260208201905092915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b600062000e58602a8362000de9565b915062000e658262000dfa565b604082019050919050565b6000602082019050818103600083015262000e8b8162000e49565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b600062000eca60198362000de9565b915062000ed78262000e92565b602082019050919050565b6000602082019050818103600083015262000efd8162000ebb565b9050919050565b62000f0f8162000cab565b82525050565b6000819050919050565b62000f2a8162000f15565b82525050565b600081519050919050565b600082825260208201905092915050565b600062000f598262000f30565b62000f65818562000f3b565b935062000f7781856020860162000bd7565b62000f828162000b0c565b840191505092915050565b600060808201905062000fa4600083018762000f04565b62000fb3602083018662000f04565b62000fc2604083018562000f1f565b818103606083015262000fd6818462000f4c565b905095945050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b620010188162000fe1565b81146200102457600080fd5b50565b60008151905062001038816200100d565b92915050565b60006020828403121562001057576200105662000af8565b5b6000620010678482850162001027565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620010b857607f821691505b602082108103620010ce57620010cd62001070565b5b50919050565b614f0c80620010e46000396000f3fe6080604052600436106102515760003560e01c8063715018a611610139578063c6ab67a3116100b6578063cfbf16af1161007a578063cfbf16af14610817578063d555654414610833578063e985e9c51461085e578063f03255491461089b578063f2fde38b146108b2578063f4a0a528146108db57610251565b8063c6ab67a314610730578063c8540d061461075b578063c86e59f614610786578063c87b56dd146107af578063cf7ce347146107ec57610251565b806394bf804d116100fd57806394bf804d1461067b57806395d89b4114610697578063a0db86f9146106c2578063a22cb465146106eb578063b88d4fde1461071457610251565b8063715018a6146105ce57806384494708146105e557806385fe77de146106105780638da5cb5b146106275780638f2fc60b1461065257610251565b80633ccfd60b116101d25780635f9bd961116101965780635f9bd961146104aa5780636352211e146104d557806367243482146105125780636817c76c1461053b5780636c0360eb1461056657806370a082311461059157610251565b80633ccfd60b1461040e57806342842e0e146104255780635500fa821461044157806355f804b31461046a57806359c74f291461049357610251565b806318160ddd1161021957806318160ddd1461033357806323b872dd1461035e57806325fd90f31461037a5780632a55205a146103a557806332cb6b0c146103e357610251565b806301ffc9a71461025657806306fdde0314610293578063081812fc146102be578063095ea7b3146102fb5780630e430aaa14610317575b600080fd5b34801561026257600080fd5b5061027d60048036038101906102789190613728565b610904565b60405161028a9190613770565b60405180910390f35b34801561029f57600080fd5b506102a8610a0e565b6040516102b59190613824565b60405180910390f35b3480156102ca57600080fd5b506102e560048036038101906102e0919061387c565b610aa0565b6040516102f291906138ea565b60405180910390f35b61031560048036038101906103109190613931565b610b1f565b005b610331600480360381019061032c91906139d6565b610c63565b005b34801561033f57600080fd5b50610348610fa2565b6040516103559190613a45565b60405180910390f35b61037860048036038101906103739190613a60565b610fb9565b005b34801561038657600080fd5b5061038f6112db565b60405161039c9190613770565b60405180910390f35b3480156103b157600080fd5b506103cc60048036038101906103c79190613ab3565b6112ee565b6040516103da929190613af3565b60405180910390f35b3480156103ef57600080fd5b506103f86114d8565b6040516104059190613a45565b60405180910390f35b34801561041a57600080fd5b506104236114de565b005b61043f600480360381019061043a9190613a60565b611ac0565b005b34801561044d57600080fd5b5061046860048036038101906104639190613b52565b611ae0565b005b34801561047657600080fd5b50610491600480360381019061048c9190613bd5565b611af2565b005b34801561049f57600080fd5b506104a8611b10565b005b3480156104b657600080fd5b506104bf611b44565b6040516104cc9190613c31565b60405180910390f35b3480156104e157600080fd5b506104fc60048036038101906104f7919061387c565b611b4a565b60405161050991906138ea565b60405180910390f35b34801561051e57600080fd5b5061053960048036038101906105349190613e4d565b611b5c565b005b34801561054757600080fd5b50610550611c3c565b60405161055d9190613a45565b60405180910390f35b34801561057257600080fd5b5061057b611c42565b6040516105889190613824565b60405180910390f35b34801561059d57600080fd5b506105b860048036038101906105b39190613ec5565b611cd0565b6040516105c59190613a45565b60405180910390f35b3480156105da57600080fd5b506105e3611d88565b005b3480156105f157600080fd5b506105fa611d9c565b6040516106079190613770565b60405180910390f35b34801561061c57600080fd5b50610625611daf565b005b34801561063357600080fd5b5061063c611e73565b60405161064991906138ea565b60405180910390f35b34801561065e57600080fd5b5061067960048036038101906106749190613f36565b611e9d565b005b61069560048036038101906106909190613f76565b611eb3565b005b3480156106a357600080fd5b506106ac611fc5565b6040516106b99190613824565b60405180910390f35b3480156106ce57600080fd5b506106e960048036038101906106e49190613ec5565b612057565b005b3480156106f757600080fd5b50610712600480360381019061070d9190613fe2565b6120a3565b005b61072e600480360381019061072991906140d7565b6121ae565b005b34801561073c57600080fd5b50610745612221565b6040516107529190613824565b60405180910390f35b34801561076757600080fd5b506107706122af565b60405161077d9190613c31565b60405180910390f35b34801561079257600080fd5b506107ad60048036038101906107a89190613b52565b6122b5565b005b3480156107bb57600080fd5b506107d660048036038101906107d1919061387c565b6122c7565b6040516107e39190613824565b60405180910390f35b3480156107f857600080fd5b506108016123b5565b60405161080e9190613a45565b60405180910390f35b610831600480360381019061082c91906139d6565b6123bb565b005b34801561083f57600080fd5b506108486128b5565b6040516108559190613a45565b60405180910390f35b34801561086a57600080fd5b506108856004803603810190610880919061415a565b6128bb565b6040516108929190613770565b60405180910390f35b3480156108a757600080fd5b506108b061294f565b005b3480156108be57600080fd5b506108d960048036038101906108d49190613ec5565b612983565b005b3480156108e757600080fd5b5061090260048036038101906108fd919061387c565b612a06565b005b600061090f82612a18565b8061093f57506301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061096f57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061099f5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a0757507f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610a1d906141c9565b80601f0160208091040260200160405190810160405280929190818152602001828054610a49906141c9565b8015610a965780601f10610a6b57610100808354040283529160200191610a96565b820191906000526020600020905b815481529060010190602001808311610a7957829003601f168201915b5050505050905090565b6000610aab82612a92565b610ae1576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b2a82611b4a565b90508073ffffffffffffffffffffffffffffffffffffffff16610b4b612af1565b73ffffffffffffffffffffffffffffffffffffffff1614610bae57610b7781610b72612af1565b6128bb565b610bad576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b601360019054906101000a900460ff16610cb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca990614246565b60405180910390fd5b6003831115610cf6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ced906142b2565b60405180910390fd5b600033604051602001610d09919061431a565b604051602081830303815290604052805190602001209050610d6f838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060115483612af9565b610dae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da590614381565b60405180910390fd5b610e016001601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612b1090919063ffffffff16565b601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115610ec7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ebe906143ed565b60405180910390fd5b6001841115610ef157600184610edd919061443c565b600e54610eea919061443c565b600e819055505b6000600e5411610f36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2d906144bc565b60405180910390fd5b600184610f43919061443c565b600f54610f5091906144dc565b341015610f92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8990614582565b60405180910390fd5b610f9c3385612b26565b50505050565b6000610fac612b44565b6001546000540303905090565b6000610fc482612b49565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461102b576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061103784612c15565b9150915061104d8187611048612af1565b612c3c565b611099576110628661105d612af1565b6128bb565b611098576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036110ff576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61110c8686866001612c80565b801561111757600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506111e5856111c1888887612c86565b7c020000000000000000000000000000000000000000000000000000000017612cae565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361126b5760006001850190506000600460008381526020019081526020016000205403611269576000548114611268578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46112d38686866001612cd9565b505050505050565b601360009054906101000a900460ff1681565b6000806000600960008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16036114835760086040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b600061148d612cdf565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866114b991906144dc565b6114c391906145d1565b90508160000151819350935050509250929050565b61045781565b6114e6612ce9565b600047905060006103e8821015611532576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152990614674565b60405180910390fd5b600061155c6103e861154e603286612d6790919063ffffffff16565b612d7d90919063ffffffff16565b9050808261156a9190614694565b915060006115966103e8611588603287612d6790919063ffffffff16565b612d7d90919063ffffffff16565b905080836115a49190614694565b925060006115d06103e86115c2603288612d6790919063ffffffff16565b612d7d90919063ffffffff16565b905080846115de9190614694565b9350600061160a6103e86115fc603289612d6790919063ffffffff16565b612d7d90919063ffffffff16565b905080856116189190614694565b945060006116446103e861163660648a612d6790919063ffffffff16565b612d7d90919063ffffffff16565b905080866116529190614694565b9550600061167e6103e861167060328b612d6790919063ffffffff16565b612d7d90919063ffffffff16565b9050808761168c9190614694565b965060006116b86103e86116aa60328c612d6790919063ffffffff16565b612d7d90919063ffffffff16565b905080886116c69190614694565b975060006116f26103e86116e460648d612d6790919063ffffffff16565b612d7d90919063ffffffff16565b905080896117009190614694565b9850600061172d6103e861171f6101f48e612d6790919063ffffffff16565b612d7d90919063ffffffff16565b9050808a61173b9190614694565b99508a8a1115611780576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117779061475c565b60405180910390fd5b737fdd26b919b651054f475e2c995720808b4cb6d773ffffffffffffffffffffffffffffffffffffffff166108fc8a9081150290604051600060405180830381858888f193505050501580156117da573d6000803e3d6000fd5b5073989c17e16e937dc2dc139644c116d799a7148ace73ffffffffffffffffffffffffffffffffffffffff166108fc899081150290604051600060405180830381858888f19350505050158015611835573d6000803e3d6000fd5b5073a52997ab60c0fb10fe136981b3d4d26d8e86343073ffffffffffffffffffffffffffffffffffffffff166108fc889081150290604051600060405180830381858888f19350505050158015611890573d6000803e3d6000fd5b507351938e058a23cae9ad8ec4ba538c55888c4c765673ffffffffffffffffffffffffffffffffffffffff166108fc879081150290604051600060405180830381858888f193505050501580156118eb573d6000803e3d6000fd5b507325981260dd48274abb39d48ed3cd96384522c21773ffffffffffffffffffffffffffffffffffffffff166108fc869081150290604051600060405180830381858888f19350505050158015611946573d6000803e3d6000fd5b507364d808d23047760bada636facf2b48fd9942aeb373ffffffffffffffffffffffffffffffffffffffff166108fc859081150290604051600060405180830381858888f193505050501580156119a1573d6000803e3d6000fd5b5073745eb80612b49b22e4244ab06eae0b37efb3990773ffffffffffffffffffffffffffffffffffffffff166108fc849081150290604051600060405180830381858888f193505050501580156119fc573d6000803e3d6000fd5b5073bee3ff8da5bfa477af63d93d1c607830a1828c4a73ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015611a57573d6000803e3d6000fd5b5073da4e937243c746d7cfe7179fb20d6c194ee1550c73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611ab2573d6000803e3d6000fd5b505050505050505050505050565b611adb838383604051806020016040528060008152506121ae565b505050565b611ae8612ce9565b8060128190555050565b611afa612ce9565b8181600c9190611b0b929190613619565b505050565b611b18612ce9565b601360009054906101000a900460ff1615601360006101000a81548160ff021916908315150217905550565b60125481565b6000611b5582612b49565b9050919050565b611b64612ce9565b60005b8251811015611c3757610457611ba7838381518110611b8957611b8861477c565b5b6020026020010151611b99610fa2565b612b1090919063ffffffff16565b1115611be8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bdf906147f7565b60405180910390fd5b611c26838281518110611bfe57611bfd61477c565b5b6020026020010151838381518110611c1957611c1861477c565b5b6020026020010151612b26565b80611c3090614817565b9050611b67565b505050565b600f5481565b600c8054611c4f906141c9565b80601f0160208091040260200160405190810160405280929190818152602001828054611c7b906141c9565b8015611cc85780601f10611c9d57610100808354040283529160200191611cc8565b820191906000526020600020905b815481529060010190602001808311611cab57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611d37576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611d90612ce9565b611d9a6000612d93565b565b601360019054906101000a900460ff1681565b600060105414611df4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611deb906148ab565b60405180910390fd5b601360019054906101000a900460ff16158015611e1e5750601360009054906101000a900460ff16155b611e5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5490614917565b60405180910390fd5b61045744611e6b9190614937565b601081905550565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611ea5612ce9565b611eaf8282612e59565b5050565b601360009054906101000a900460ff16611f02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef990614246565b60405180910390fd5b610457611f1f83611f11610fa2565b612b1090919063ffffffff16565b1115611f60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f57906147f7565b60405180910390fd5b34611f7683600f54612d6790919063ffffffff16565b1115611fb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fae90614582565b60405180910390fd5b611fc18183612b26565b5050565b606060038054611fd4906141c9565b80601f0160208091040260200160405190810160405280929190818152602001828054612000906141c9565b801561204d5780601f106120225761010080835404028352916020019161204d565b820191906000526020600020905b81548152906001019060200180831161203057829003601f168201915b5050505050905090565b61205f612ce9565b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b80600760006120b0612af1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661215d612af1565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121a29190613770565b60405180910390a35050565b6121b9848484610fb9565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461221b576121e484848484612fee565b61221a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600d805461222e906141c9565b80601f016020809104026020016040519081016040528092919081815260200182805461225a906141c9565b80156122a75780601f1061227c576101008083540402835291602001916122a7565b820191906000526020600020905b81548152906001019060200180831161228a57829003601f168201915b505050505081565b60115481565b6122bd612ce9565b8060118190555050565b60606122d282612a92565b612311576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612308906149b4565b60405180910390fd5b6000610457601054846123249190614694565b61232e9190614937565b90506000600c805461233f906141c9565b905011612381576040518060400160405280601481526020017f68747470733a2f2f64746563682e766973696f6e0000000000000000000000008152506123ad565b600c61238c8261313e565b60405160200161239d929190614af0565b6040516020818303038152906040525b915050919050565b600e5481565b601360019054906101000a900460ff1661240a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161240190614246565b60405180910390fd5b600483111561244e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244590614b6b565b60405180910390fd5b600033604051602001612461919061431a565b6040516020818303038152906040528051906020012090506124c7838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060125483612af9565b612506576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124fd90614381565b60405180910390fd5b6000601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600185036125ed576125a56001601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612b1090919063ffffffff16565b601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550612684565b6126406002601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612b1090919063ffffffff16565b601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6002601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115612707576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126fe90614bd7565b60405180910390fd5b6002851180156127175750600081145b156127e257600285612729919061443c565b600e54612736919061443c565b600e819055506000600e5411612781576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612778906144bc565b60405180910390fd5b60028561278e919061443c565b600f5461279b91906144dc565b3410156127dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127d490614582565b60405180910390fd5b6128a4565b6001856127ef919061443c565b600e546127fc919061443c565b600e819055506000600e5411612847576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161283e906144bc565b60405180910390fd5b600185612854919061443c565b600f5461286191906144dc565b3410156128a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289a90614582565b60405180910390fd5b5b6128ae3386612b26565b5050505050565b60105481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612957612ce9565b601360019054906101000a900460ff1615601360016101000a81548160ff021916908315150217905550565b61298b612ce9565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036129fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f190614c69565b60405180910390fd5b612a0381612d93565b50565b612a0e612ce9565b80600f8190555050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612a8b5750612a8a8261329e565b5b9050919050565b600081612a9d612b44565b11158015612aac575060005482105b8015612aea575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600082612b068584613308565b1490509392505050565b60008183612b1e9190614694565b905092915050565b612b4082826040518060200160405280600081525061335e565b5050565b600090565b60008082905080612b58612b44565b11612bde57600054811015612bdd5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612bdb575b60008103612bd1576004600083600190039350838152602001908152602001600020549050612ba7565b8092505050612c10565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612c9d8686846133fb565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000612710905090565b612cf1613404565b73ffffffffffffffffffffffffffffffffffffffff16612d0f611e73565b73ffffffffffffffffffffffffffffffffffffffff1614612d65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d5c90614cd5565b60405180910390fd5b565b60008183612d7591906144dc565b905092915050565b60008183612d8b91906145d1565b905092915050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612e61612cdf565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612ebf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eb690614d67565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612f2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f2590614dd3565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600860008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613014612af1565b8786866040518563ffffffff1660e01b81526004016130369493929190614e48565b6020604051808303816000875af192505050801561307257506040513d601f19601f8201168201806040525081019061306f9190614ea9565b60015b6130eb573d80600081146130a2576040519150601f19603f3d011682016040523d82523d6000602084013e6130a7565b606091505b5060008151036130e3576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060008203613185576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613299565b600082905060005b600082146131b75780806131a090614817565b915050600a826131b091906145d1565b915061318d565b60008167ffffffffffffffff8111156131d3576131d2613c4c565b5b6040519080825280601f01601f1916602001820160405280156132055781602001600182028036833780820191505090505b5090505b600085146132925760018261321e919061443c565b9150600a8561322d9190614937565b60306132399190614694565b60f81b81838151811061324f5761324e61477c565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561328b91906145d1565b9450613209565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008082905060005b84518110156133535761333e828683815181106133315761333061477c565b5b602002602001015161340c565b9150808061334b90614817565b915050613311565b508091505092915050565b6133688383613437565b60008373ffffffffffffffffffffffffffffffffffffffff163b146133f657600080549050600083820390505b6133a86000868380600101945086612fee565b6133de576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106133955781600054146133f357600080fd5b50505b505050565b60009392505050565b600033905090565b60008183106134245761341f82846135f2565b61342f565b61342e83836135f2565b5b905092915050565b60008054905060008203613477576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6134846000848385612c80565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506134fb836134ec6000866000612c86565b6134f585613609565b17612cae565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461359c57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613561565b50600082036135d7576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506135ed6000848385612cd9565b505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b828054613625906141c9565b90600052602060002090601f016020900481019282613647576000855561368e565b82601f1061366057803560ff191683800117855561368e565b8280016001018555821561368e579182015b8281111561368d578235825591602001919060010190613672565b5b50905061369b919061369f565b5090565b5b808211156136b85760008160009055506001016136a0565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613705816136d0565b811461371057600080fd5b50565b600081359050613722816136fc565b92915050565b60006020828403121561373e5761373d6136c6565b5b600061374c84828501613713565b91505092915050565b60008115159050919050565b61376a81613755565b82525050565b60006020820190506137856000830184613761565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156137c55780820151818401526020810190506137aa565b838111156137d4576000848401525b50505050565b6000601f19601f8301169050919050565b60006137f68261378b565b6138008185613796565b93506138108185602086016137a7565b613819816137da565b840191505092915050565b6000602082019050818103600083015261383e81846137eb565b905092915050565b6000819050919050565b61385981613846565b811461386457600080fd5b50565b60008135905061387681613850565b92915050565b600060208284031215613892576138916136c6565b5b60006138a084828501613867565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006138d4826138a9565b9050919050565b6138e4816138c9565b82525050565b60006020820190506138ff60008301846138db565b92915050565b61390e816138c9565b811461391957600080fd5b50565b60008135905061392b81613905565b92915050565b60008060408385031215613948576139476136c6565b5b60006139568582860161391c565b925050602061396785828601613867565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f84011261399657613995613971565b5b8235905067ffffffffffffffff8111156139b3576139b2613976565b5b6020830191508360208202830111156139cf576139ce61397b565b5b9250929050565b6000806000604084860312156139ef576139ee6136c6565b5b60006139fd86828701613867565b935050602084013567ffffffffffffffff811115613a1e57613a1d6136cb565b5b613a2a86828701613980565b92509250509250925092565b613a3f81613846565b82525050565b6000602082019050613a5a6000830184613a36565b92915050565b600080600060608486031215613a7957613a786136c6565b5b6000613a878682870161391c565b9350506020613a988682870161391c565b9250506040613aa986828701613867565b9150509250925092565b60008060408385031215613aca57613ac96136c6565b5b6000613ad885828601613867565b9250506020613ae985828601613867565b9150509250929050565b6000604082019050613b0860008301856138db565b613b156020830184613a36565b9392505050565b6000819050919050565b613b2f81613b1c565b8114613b3a57600080fd5b50565b600081359050613b4c81613b26565b92915050565b600060208284031215613b6857613b676136c6565b5b6000613b7684828501613b3d565b91505092915050565b60008083601f840112613b9557613b94613971565b5b8235905067ffffffffffffffff811115613bb257613bb1613976565b5b602083019150836001820283011115613bce57613bcd61397b565b5b9250929050565b60008060208385031215613bec57613beb6136c6565b5b600083013567ffffffffffffffff811115613c0a57613c096136cb565b5b613c1685828601613b7f565b92509250509250929050565b613c2b81613b1c565b82525050565b6000602082019050613c466000830184613c22565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613c84826137da565b810181811067ffffffffffffffff82111715613ca357613ca2613c4c565b5b80604052505050565b6000613cb66136bc565b9050613cc28282613c7b565b919050565b600067ffffffffffffffff821115613ce257613ce1613c4c565b5b602082029050602081019050919050565b6000613d06613d0184613cc7565b613cac565b90508083825260208201905060208402830185811115613d2957613d2861397b565b5b835b81811015613d525780613d3e888261391c565b845260208401935050602081019050613d2b565b5050509392505050565b600082601f830112613d7157613d70613971565b5b8135613d81848260208601613cf3565b91505092915050565b600067ffffffffffffffff821115613da557613da4613c4c565b5b602082029050602081019050919050565b6000613dc9613dc484613d8a565b613cac565b90508083825260208201905060208402830185811115613dec57613deb61397b565b5b835b81811015613e155780613e018882613867565b845260208401935050602081019050613dee565b5050509392505050565b600082601f830112613e3457613e33613971565b5b8135613e44848260208601613db6565b91505092915050565b60008060408385031215613e6457613e636136c6565b5b600083013567ffffffffffffffff811115613e8257613e816136cb565b5b613e8e85828601613d5c565b925050602083013567ffffffffffffffff811115613eaf57613eae6136cb565b5b613ebb85828601613e1f565b9150509250929050565b600060208284031215613edb57613eda6136c6565b5b6000613ee98482850161391c565b91505092915050565b60006bffffffffffffffffffffffff82169050919050565b613f1381613ef2565b8114613f1e57600080fd5b50565b600081359050613f3081613f0a565b92915050565b60008060408385031215613f4d57613f4c6136c6565b5b6000613f5b8582860161391c565b9250506020613f6c85828601613f21565b9150509250929050565b60008060408385031215613f8d57613f8c6136c6565b5b6000613f9b85828601613867565b9250506020613fac8582860161391c565b9150509250929050565b613fbf81613755565b8114613fca57600080fd5b50565b600081359050613fdc81613fb6565b92915050565b60008060408385031215613ff957613ff86136c6565b5b60006140078582860161391c565b925050602061401885828601613fcd565b9150509250929050565b600080fd5b600067ffffffffffffffff82111561404257614041613c4c565b5b61404b826137da565b9050602081019050919050565b82818337600083830152505050565b600061407a61407584614027565b613cac565b90508281526020810184848401111561409657614095614022565b5b6140a1848285614058565b509392505050565b600082601f8301126140be576140bd613971565b5b81356140ce848260208601614067565b91505092915050565b600080600080608085870312156140f1576140f06136c6565b5b60006140ff8782880161391c565b94505060206141108782880161391c565b935050604061412187828801613867565b925050606085013567ffffffffffffffff811115614142576141416136cb565b5b61414e878288016140a9565b91505092959194509250565b60008060408385031215614171576141706136c6565b5b600061417f8582860161391c565b92505060206141908582860161391c565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806141e157607f821691505b6020821081036141f4576141f361419a565b5b50919050565b7f37303220466561747572652064697361626c65642f6e6f742061637469766500600082015250565b6000614230601f83613796565b915061423b826141fa565b602082019050919050565b6000602082019050818103600083015261425f81614223565b9050919050565b7f4d41582033000000000000000000000000000000000000000000000000000000600082015250565b600061429c600583613796565b91506142a782614266565b602082019050919050565b600060208201905081810360008301526142cb8161428f565b9050919050565b60008160601b9050919050565b60006142ea826142d2565b9050919050565b60006142fc826142df565b9050919050565b61431461430f826138c9565b6142f1565b82525050565b60006143268284614303565b60148201915081905092915050565b7f496e76616c69642050726f6f6600000000000000000000000000000000000000600082015250565b600061436b600d83613796565b915061437682614335565b602082019050919050565b6000602082019050818103600083015261439a8161435e565b9050919050565b7f416c726561647920636c61696d65640000000000000000000000000000000000600082015250565b60006143d7600f83613796565b91506143e2826143a1565b602082019050919050565b60006020820190508181036000830152614406816143ca565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061444782613846565b915061445283613846565b9250828210156144655761446461440d565b5b828203905092915050565b7f6e6f206d6f7265202b312f2b3220617661696c61626c65000000000000000000600082015250565b60006144a6601783613796565b91506144b182614470565b602082019050919050565b600060208201905081810360008301526144d581614499565b9050919050565b60006144e782613846565b91506144f283613846565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561452b5761452a61440d565b5b828202905092915050565b7f373033204e6f7420656e6f7567682063757272656e63792073656e7400000000600082015250565b600061456c601c83613796565b915061457782614536565b602082019050919050565b6000602082019050818103600083015261459b8161455f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006145dc82613846565b91506145e783613846565b9250826145f7576145f66145a2565b5b828204905092915050565b7f42616c616e636520746f6f20736d616c6c20746f20736166656c79207769746860008201527f6472617721000000000000000000000000000000000000000000000000000000602082015250565b600061465e602583613796565b915061466982614602565b604082019050919050565b6000602082019050818103600083015261468d81614651565b9050919050565b600061469f82613846565b91506146aa83613846565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156146df576146de61440d565b5b828201905092915050565b7f4d617468204572726f722c2062616c616e63657320646f6e277420616464207560008201527f702e000000000000000000000000000000000000000000000000000000000000602082015250565b6000614746602283613796565b9150614751826146ea565b604082019050919050565b6000602082019050818103600083015261477581614739565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f373035206e6f206d6f726520746f6b656e20617661696c61626c650000000000600082015250565b60006147e1601b83613796565b91506147ec826147ab565b602082019050919050565b60006020820190508181036000830152614810816147d4565b9050919050565b600061482282613846565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036148545761485361440d565b5b600182019050919050565b7f4f6666736574207761732073657420616c726561647900000000000000000000600082015250565b6000614895601683613796565b91506148a08261485f565b602082019050919050565b600060208201905081810360008301526148c481614888565b9050919050565b7f6d696e74696e67206e6565647320746f20626520646f6e650000000000000000600082015250565b6000614901601883613796565b915061490c826148cb565b602082019050919050565b60006020820190508181036000830152614930816148f4565b9050919050565b600061494282613846565b915061494d83613846565b92508261495d5761495c6145a2565b5b828206905092915050565b7f37303420517565727920666f72206e6f6e6578697374656e7420746f6b656e00600082015250565b600061499e601f83613796565b91506149a982614968565b602082019050919050565b600060208201905081810360008301526149cd81614991565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b60008154614a01816141c9565b614a0b81866149d4565b94506001821660008114614a265760018114614a3757614a6a565b60ff19831686528186019350614a6a565b614a40856149df565b60005b83811015614a6257815481890152600182019150602081019050614a43565b838801955050505b50505092915050565b6000614a7e8261378b565b614a8881856149d4565b9350614a988185602086016137a7565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614ada6005836149d4565b9150614ae582614aa4565b600582019050919050565b6000614afc82856149f4565b9150614b088284614a73565b9150614b1382614acd565b91508190509392505050565b7f4d41582034000000000000000000000000000000000000000000000000000000600082015250565b6000614b55600583613796565b9150614b6082614b1f565b602082019050919050565b60006020820190508181036000830152614b8481614b48565b9050919050565b7f4d41582032205045522057414c4c455400000000000000000000000000000000600082015250565b6000614bc1601083613796565b9150614bcc82614b8b565b602082019050919050565b60006020820190508181036000830152614bf081614bb4565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614c53602683613796565b9150614c5e82614bf7565b604082019050919050565b60006020820190508181036000830152614c8281614c46565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614cbf602083613796565b9150614cca82614c89565b602082019050919050565b60006020820190508181036000830152614cee81614cb2565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000614d51602a83613796565b9150614d5c82614cf5565b604082019050919050565b60006020820190508181036000830152614d8081614d44565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000614dbd601983613796565b9150614dc882614d87565b602082019050919050565b60006020820190508181036000830152614dec81614db0565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614e1a82614df3565b614e248185614dfe565b9350614e348185602086016137a7565b614e3d816137da565b840191505092915050565b6000608082019050614e5d60008301876138db565b614e6a60208301866138db565b614e776040830185613a36565b8181036060830152614e898184614e0f565b905095945050505050565b600081519050614ea3816136fc565b92915050565b600060208284031215614ebf57614ebe6136c6565b5b6000614ecd84828501614e94565b9150509291505056fea2646970667358221220452deb2ea76809e95490e1e110122e049a42d78396a38b50f5ff0bf066337e5b64736f6c634300080e00336430353938313536383131363637626165376533326536363363343636393534393436356538386132393039613762383264653231663764303835633838356461723a2f2f66496c53387253395a776b54505f49494c7a7148436c34626346476e6547745a527939674b3265373543452f000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000da4e937243c746d7cfe7179fb20d6c194ee1550c00000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000000c534d41434b4d414e434f494e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004534d414300000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102515760003560e01c8063715018a611610139578063c6ab67a3116100b6578063cfbf16af1161007a578063cfbf16af14610817578063d555654414610833578063e985e9c51461085e578063f03255491461089b578063f2fde38b146108b2578063f4a0a528146108db57610251565b8063c6ab67a314610730578063c8540d061461075b578063c86e59f614610786578063c87b56dd146107af578063cf7ce347146107ec57610251565b806394bf804d116100fd57806394bf804d1461067b57806395d89b4114610697578063a0db86f9146106c2578063a22cb465146106eb578063b88d4fde1461071457610251565b8063715018a6146105ce57806384494708146105e557806385fe77de146106105780638da5cb5b146106275780638f2fc60b1461065257610251565b80633ccfd60b116101d25780635f9bd961116101965780635f9bd961146104aa5780636352211e146104d557806367243482146105125780636817c76c1461053b5780636c0360eb1461056657806370a082311461059157610251565b80633ccfd60b1461040e57806342842e0e146104255780635500fa821461044157806355f804b31461046a57806359c74f291461049357610251565b806318160ddd1161021957806318160ddd1461033357806323b872dd1461035e57806325fd90f31461037a5780632a55205a146103a557806332cb6b0c146103e357610251565b806301ffc9a71461025657806306fdde0314610293578063081812fc146102be578063095ea7b3146102fb5780630e430aaa14610317575b600080fd5b34801561026257600080fd5b5061027d60048036038101906102789190613728565b610904565b60405161028a9190613770565b60405180910390f35b34801561029f57600080fd5b506102a8610a0e565b6040516102b59190613824565b60405180910390f35b3480156102ca57600080fd5b506102e560048036038101906102e0919061387c565b610aa0565b6040516102f291906138ea565b60405180910390f35b61031560048036038101906103109190613931565b610b1f565b005b610331600480360381019061032c91906139d6565b610c63565b005b34801561033f57600080fd5b50610348610fa2565b6040516103559190613a45565b60405180910390f35b61037860048036038101906103739190613a60565b610fb9565b005b34801561038657600080fd5b5061038f6112db565b60405161039c9190613770565b60405180910390f35b3480156103b157600080fd5b506103cc60048036038101906103c79190613ab3565b6112ee565b6040516103da929190613af3565b60405180910390f35b3480156103ef57600080fd5b506103f86114d8565b6040516104059190613a45565b60405180910390f35b34801561041a57600080fd5b506104236114de565b005b61043f600480360381019061043a9190613a60565b611ac0565b005b34801561044d57600080fd5b5061046860048036038101906104639190613b52565b611ae0565b005b34801561047657600080fd5b50610491600480360381019061048c9190613bd5565b611af2565b005b34801561049f57600080fd5b506104a8611b10565b005b3480156104b657600080fd5b506104bf611b44565b6040516104cc9190613c31565b60405180910390f35b3480156104e157600080fd5b506104fc60048036038101906104f7919061387c565b611b4a565b60405161050991906138ea565b60405180910390f35b34801561051e57600080fd5b5061053960048036038101906105349190613e4d565b611b5c565b005b34801561054757600080fd5b50610550611c3c565b60405161055d9190613a45565b60405180910390f35b34801561057257600080fd5b5061057b611c42565b6040516105889190613824565b60405180910390f35b34801561059d57600080fd5b506105b860048036038101906105b39190613ec5565b611cd0565b6040516105c59190613a45565b60405180910390f35b3480156105da57600080fd5b506105e3611d88565b005b3480156105f157600080fd5b506105fa611d9c565b6040516106079190613770565b60405180910390f35b34801561061c57600080fd5b50610625611daf565b005b34801561063357600080fd5b5061063c611e73565b60405161064991906138ea565b60405180910390f35b34801561065e57600080fd5b5061067960048036038101906106749190613f36565b611e9d565b005b61069560048036038101906106909190613f76565b611eb3565b005b3480156106a357600080fd5b506106ac611fc5565b6040516106b99190613824565b60405180910390f35b3480156106ce57600080fd5b506106e960048036038101906106e49190613ec5565b612057565b005b3480156106f757600080fd5b50610712600480360381019061070d9190613fe2565b6120a3565b005b61072e600480360381019061072991906140d7565b6121ae565b005b34801561073c57600080fd5b50610745612221565b6040516107529190613824565b60405180910390f35b34801561076757600080fd5b506107706122af565b60405161077d9190613c31565b60405180910390f35b34801561079257600080fd5b506107ad60048036038101906107a89190613b52565b6122b5565b005b3480156107bb57600080fd5b506107d660048036038101906107d1919061387c565b6122c7565b6040516107e39190613824565b60405180910390f35b3480156107f857600080fd5b506108016123b5565b60405161080e9190613a45565b60405180910390f35b610831600480360381019061082c91906139d6565b6123bb565b005b34801561083f57600080fd5b506108486128b5565b6040516108559190613a45565b60405180910390f35b34801561086a57600080fd5b506108856004803603810190610880919061415a565b6128bb565b6040516108929190613770565b60405180910390f35b3480156108a757600080fd5b506108b061294f565b005b3480156108be57600080fd5b506108d960048036038101906108d49190613ec5565b612983565b005b3480156108e757600080fd5b5061090260048036038101906108fd919061387c565b612a06565b005b600061090f82612a18565b8061093f57506301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061096f57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061099f5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a0757507f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610a1d906141c9565b80601f0160208091040260200160405190810160405280929190818152602001828054610a49906141c9565b8015610a965780601f10610a6b57610100808354040283529160200191610a96565b820191906000526020600020905b815481529060010190602001808311610a7957829003601f168201915b5050505050905090565b6000610aab82612a92565b610ae1576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b2a82611b4a565b90508073ffffffffffffffffffffffffffffffffffffffff16610b4b612af1565b73ffffffffffffffffffffffffffffffffffffffff1614610bae57610b7781610b72612af1565b6128bb565b610bad576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b601360019054906101000a900460ff16610cb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca990614246565b60405180910390fd5b6003831115610cf6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ced906142b2565b60405180910390fd5b600033604051602001610d09919061431a565b604051602081830303815290604052805190602001209050610d6f838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060115483612af9565b610dae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da590614381565b60405180910390fd5b610e016001601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612b1090919063ffffffff16565b601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115610ec7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ebe906143ed565b60405180910390fd5b6001841115610ef157600184610edd919061443c565b600e54610eea919061443c565b600e819055505b6000600e5411610f36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2d906144bc565b60405180910390fd5b600184610f43919061443c565b600f54610f5091906144dc565b341015610f92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8990614582565b60405180910390fd5b610f9c3385612b26565b50505050565b6000610fac612b44565b6001546000540303905090565b6000610fc482612b49565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461102b576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061103784612c15565b9150915061104d8187611048612af1565b612c3c565b611099576110628661105d612af1565b6128bb565b611098576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036110ff576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61110c8686866001612c80565b801561111757600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506111e5856111c1888887612c86565b7c020000000000000000000000000000000000000000000000000000000017612cae565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361126b5760006001850190506000600460008381526020019081526020016000205403611269576000548114611268578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46112d38686866001612cd9565b505050505050565b601360009054906101000a900460ff1681565b6000806000600960008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16036114835760086040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b600061148d612cdf565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866114b991906144dc565b6114c391906145d1565b90508160000151819350935050509250929050565b61045781565b6114e6612ce9565b600047905060006103e8821015611532576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152990614674565b60405180910390fd5b600061155c6103e861154e603286612d6790919063ffffffff16565b612d7d90919063ffffffff16565b9050808261156a9190614694565b915060006115966103e8611588603287612d6790919063ffffffff16565b612d7d90919063ffffffff16565b905080836115a49190614694565b925060006115d06103e86115c2603288612d6790919063ffffffff16565b612d7d90919063ffffffff16565b905080846115de9190614694565b9350600061160a6103e86115fc603289612d6790919063ffffffff16565b612d7d90919063ffffffff16565b905080856116189190614694565b945060006116446103e861163660648a612d6790919063ffffffff16565b612d7d90919063ffffffff16565b905080866116529190614694565b9550600061167e6103e861167060328b612d6790919063ffffffff16565b612d7d90919063ffffffff16565b9050808761168c9190614694565b965060006116b86103e86116aa60328c612d6790919063ffffffff16565b612d7d90919063ffffffff16565b905080886116c69190614694565b975060006116f26103e86116e460648d612d6790919063ffffffff16565b612d7d90919063ffffffff16565b905080896117009190614694565b9850600061172d6103e861171f6101f48e612d6790919063ffffffff16565b612d7d90919063ffffffff16565b9050808a61173b9190614694565b99508a8a1115611780576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117779061475c565b60405180910390fd5b737fdd26b919b651054f475e2c995720808b4cb6d773ffffffffffffffffffffffffffffffffffffffff166108fc8a9081150290604051600060405180830381858888f193505050501580156117da573d6000803e3d6000fd5b5073989c17e16e937dc2dc139644c116d799a7148ace73ffffffffffffffffffffffffffffffffffffffff166108fc899081150290604051600060405180830381858888f19350505050158015611835573d6000803e3d6000fd5b5073a52997ab60c0fb10fe136981b3d4d26d8e86343073ffffffffffffffffffffffffffffffffffffffff166108fc889081150290604051600060405180830381858888f19350505050158015611890573d6000803e3d6000fd5b507351938e058a23cae9ad8ec4ba538c55888c4c765673ffffffffffffffffffffffffffffffffffffffff166108fc879081150290604051600060405180830381858888f193505050501580156118eb573d6000803e3d6000fd5b507325981260dd48274abb39d48ed3cd96384522c21773ffffffffffffffffffffffffffffffffffffffff166108fc869081150290604051600060405180830381858888f19350505050158015611946573d6000803e3d6000fd5b507364d808d23047760bada636facf2b48fd9942aeb373ffffffffffffffffffffffffffffffffffffffff166108fc859081150290604051600060405180830381858888f193505050501580156119a1573d6000803e3d6000fd5b5073745eb80612b49b22e4244ab06eae0b37efb3990773ffffffffffffffffffffffffffffffffffffffff166108fc849081150290604051600060405180830381858888f193505050501580156119fc573d6000803e3d6000fd5b5073bee3ff8da5bfa477af63d93d1c607830a1828c4a73ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015611a57573d6000803e3d6000fd5b5073da4e937243c746d7cfe7179fb20d6c194ee1550c73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611ab2573d6000803e3d6000fd5b505050505050505050505050565b611adb838383604051806020016040528060008152506121ae565b505050565b611ae8612ce9565b8060128190555050565b611afa612ce9565b8181600c9190611b0b929190613619565b505050565b611b18612ce9565b601360009054906101000a900460ff1615601360006101000a81548160ff021916908315150217905550565b60125481565b6000611b5582612b49565b9050919050565b611b64612ce9565b60005b8251811015611c3757610457611ba7838381518110611b8957611b8861477c565b5b6020026020010151611b99610fa2565b612b1090919063ffffffff16565b1115611be8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bdf906147f7565b60405180910390fd5b611c26838281518110611bfe57611bfd61477c565b5b6020026020010151838381518110611c1957611c1861477c565b5b6020026020010151612b26565b80611c3090614817565b9050611b67565b505050565b600f5481565b600c8054611c4f906141c9565b80601f0160208091040260200160405190810160405280929190818152602001828054611c7b906141c9565b8015611cc85780601f10611c9d57610100808354040283529160200191611cc8565b820191906000526020600020905b815481529060010190602001808311611cab57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611d37576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611d90612ce9565b611d9a6000612d93565b565b601360019054906101000a900460ff1681565b600060105414611df4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611deb906148ab565b60405180910390fd5b601360019054906101000a900460ff16158015611e1e5750601360009054906101000a900460ff16155b611e5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5490614917565b60405180910390fd5b61045744611e6b9190614937565b601081905550565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611ea5612ce9565b611eaf8282612e59565b5050565b601360009054906101000a900460ff16611f02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef990614246565b60405180910390fd5b610457611f1f83611f11610fa2565b612b1090919063ffffffff16565b1115611f60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f57906147f7565b60405180910390fd5b34611f7683600f54612d6790919063ffffffff16565b1115611fb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fae90614582565b60405180910390fd5b611fc18183612b26565b5050565b606060038054611fd4906141c9565b80601f0160208091040260200160405190810160405280929190818152602001828054612000906141c9565b801561204d5780601f106120225761010080835404028352916020019161204d565b820191906000526020600020905b81548152906001019060200180831161203057829003601f168201915b5050505050905090565b61205f612ce9565b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b80600760006120b0612af1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661215d612af1565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121a29190613770565b60405180910390a35050565b6121b9848484610fb9565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461221b576121e484848484612fee565b61221a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600d805461222e906141c9565b80601f016020809104026020016040519081016040528092919081815260200182805461225a906141c9565b80156122a75780601f1061227c576101008083540402835291602001916122a7565b820191906000526020600020905b81548152906001019060200180831161228a57829003601f168201915b505050505081565b60115481565b6122bd612ce9565b8060118190555050565b60606122d282612a92565b612311576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612308906149b4565b60405180910390fd5b6000610457601054846123249190614694565b61232e9190614937565b90506000600c805461233f906141c9565b905011612381576040518060400160405280601481526020017f68747470733a2f2f64746563682e766973696f6e0000000000000000000000008152506123ad565b600c61238c8261313e565b60405160200161239d929190614af0565b6040516020818303038152906040525b915050919050565b600e5481565b601360019054906101000a900460ff1661240a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161240190614246565b60405180910390fd5b600483111561244e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244590614b6b565b60405180910390fd5b600033604051602001612461919061431a565b6040516020818303038152906040528051906020012090506124c7838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060125483612af9565b612506576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124fd90614381565b60405180910390fd5b6000601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600185036125ed576125a56001601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612b1090919063ffffffff16565b601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550612684565b6126406002601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612b1090919063ffffffff16565b601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6002601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115612707576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126fe90614bd7565b60405180910390fd5b6002851180156127175750600081145b156127e257600285612729919061443c565b600e54612736919061443c565b600e819055506000600e5411612781576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612778906144bc565b60405180910390fd5b60028561278e919061443c565b600f5461279b91906144dc565b3410156127dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127d490614582565b60405180910390fd5b6128a4565b6001856127ef919061443c565b600e546127fc919061443c565b600e819055506000600e5411612847576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161283e906144bc565b60405180910390fd5b600185612854919061443c565b600f5461286191906144dc565b3410156128a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289a90614582565b60405180910390fd5b5b6128ae3386612b26565b5050505050565b60105481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612957612ce9565b601360019054906101000a900460ff1615601360016101000a81548160ff021916908315150217905550565b61298b612ce9565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036129fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f190614c69565b60405180910390fd5b612a0381612d93565b50565b612a0e612ce9565b80600f8190555050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612a8b5750612a8a8261329e565b5b9050919050565b600081612a9d612b44565b11158015612aac575060005482105b8015612aea575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600082612b068584613308565b1490509392505050565b60008183612b1e9190614694565b905092915050565b612b4082826040518060200160405280600081525061335e565b5050565b600090565b60008082905080612b58612b44565b11612bde57600054811015612bdd5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612bdb575b60008103612bd1576004600083600190039350838152602001908152602001600020549050612ba7565b8092505050612c10565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612c9d8686846133fb565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000612710905090565b612cf1613404565b73ffffffffffffffffffffffffffffffffffffffff16612d0f611e73565b73ffffffffffffffffffffffffffffffffffffffff1614612d65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d5c90614cd5565b60405180910390fd5b565b60008183612d7591906144dc565b905092915050565b60008183612d8b91906145d1565b905092915050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612e61612cdf565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612ebf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eb690614d67565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612f2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f2590614dd3565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600860008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613014612af1565b8786866040518563ffffffff1660e01b81526004016130369493929190614e48565b6020604051808303816000875af192505050801561307257506040513d601f19601f8201168201806040525081019061306f9190614ea9565b60015b6130eb573d80600081146130a2576040519150601f19603f3d011682016040523d82523d6000602084013e6130a7565b606091505b5060008151036130e3576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060008203613185576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613299565b600082905060005b600082146131b75780806131a090614817565b915050600a826131b091906145d1565b915061318d565b60008167ffffffffffffffff8111156131d3576131d2613c4c565b5b6040519080825280601f01601f1916602001820160405280156132055781602001600182028036833780820191505090505b5090505b600085146132925760018261321e919061443c565b9150600a8561322d9190614937565b60306132399190614694565b60f81b81838151811061324f5761324e61477c565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561328b91906145d1565b9450613209565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008082905060005b84518110156133535761333e828683815181106133315761333061477c565b5b602002602001015161340c565b9150808061334b90614817565b915050613311565b508091505092915050565b6133688383613437565b60008373ffffffffffffffffffffffffffffffffffffffff163b146133f657600080549050600083820390505b6133a86000868380600101945086612fee565b6133de576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106133955781600054146133f357600080fd5b50505b505050565b60009392505050565b600033905090565b60008183106134245761341f82846135f2565b61342f565b61342e83836135f2565b5b905092915050565b60008054905060008203613477576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6134846000848385612c80565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506134fb836134ec6000866000612c86565b6134f585613609565b17612cae565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461359c57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613561565b50600082036135d7576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506135ed6000848385612cd9565b505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b828054613625906141c9565b90600052602060002090601f016020900481019282613647576000855561368e565b82601f1061366057803560ff191683800117855561368e565b8280016001018555821561368e579182015b8281111561368d578235825591602001919060010190613672565b5b50905061369b919061369f565b5090565b5b808211156136b85760008160009055506001016136a0565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613705816136d0565b811461371057600080fd5b50565b600081359050613722816136fc565b92915050565b60006020828403121561373e5761373d6136c6565b5b600061374c84828501613713565b91505092915050565b60008115159050919050565b61376a81613755565b82525050565b60006020820190506137856000830184613761565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156137c55780820151818401526020810190506137aa565b838111156137d4576000848401525b50505050565b6000601f19601f8301169050919050565b60006137f68261378b565b6138008185613796565b93506138108185602086016137a7565b613819816137da565b840191505092915050565b6000602082019050818103600083015261383e81846137eb565b905092915050565b6000819050919050565b61385981613846565b811461386457600080fd5b50565b60008135905061387681613850565b92915050565b600060208284031215613892576138916136c6565b5b60006138a084828501613867565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006138d4826138a9565b9050919050565b6138e4816138c9565b82525050565b60006020820190506138ff60008301846138db565b92915050565b61390e816138c9565b811461391957600080fd5b50565b60008135905061392b81613905565b92915050565b60008060408385031215613948576139476136c6565b5b60006139568582860161391c565b925050602061396785828601613867565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f84011261399657613995613971565b5b8235905067ffffffffffffffff8111156139b3576139b2613976565b5b6020830191508360208202830111156139cf576139ce61397b565b5b9250929050565b6000806000604084860312156139ef576139ee6136c6565b5b60006139fd86828701613867565b935050602084013567ffffffffffffffff811115613a1e57613a1d6136cb565b5b613a2a86828701613980565b92509250509250925092565b613a3f81613846565b82525050565b6000602082019050613a5a6000830184613a36565b92915050565b600080600060608486031215613a7957613a786136c6565b5b6000613a878682870161391c565b9350506020613a988682870161391c565b9250506040613aa986828701613867565b9150509250925092565b60008060408385031215613aca57613ac96136c6565b5b6000613ad885828601613867565b9250506020613ae985828601613867565b9150509250929050565b6000604082019050613b0860008301856138db565b613b156020830184613a36565b9392505050565b6000819050919050565b613b2f81613b1c565b8114613b3a57600080fd5b50565b600081359050613b4c81613b26565b92915050565b600060208284031215613b6857613b676136c6565b5b6000613b7684828501613b3d565b91505092915050565b60008083601f840112613b9557613b94613971565b5b8235905067ffffffffffffffff811115613bb257613bb1613976565b5b602083019150836001820283011115613bce57613bcd61397b565b5b9250929050565b60008060208385031215613bec57613beb6136c6565b5b600083013567ffffffffffffffff811115613c0a57613c096136cb565b5b613c1685828601613b7f565b92509250509250929050565b613c2b81613b1c565b82525050565b6000602082019050613c466000830184613c22565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613c84826137da565b810181811067ffffffffffffffff82111715613ca357613ca2613c4c565b5b80604052505050565b6000613cb66136bc565b9050613cc28282613c7b565b919050565b600067ffffffffffffffff821115613ce257613ce1613c4c565b5b602082029050602081019050919050565b6000613d06613d0184613cc7565b613cac565b90508083825260208201905060208402830185811115613d2957613d2861397b565b5b835b81811015613d525780613d3e888261391c565b845260208401935050602081019050613d2b565b5050509392505050565b600082601f830112613d7157613d70613971565b5b8135613d81848260208601613cf3565b91505092915050565b600067ffffffffffffffff821115613da557613da4613c4c565b5b602082029050602081019050919050565b6000613dc9613dc484613d8a565b613cac565b90508083825260208201905060208402830185811115613dec57613deb61397b565b5b835b81811015613e155780613e018882613867565b845260208401935050602081019050613dee565b5050509392505050565b600082601f830112613e3457613e33613971565b5b8135613e44848260208601613db6565b91505092915050565b60008060408385031215613e6457613e636136c6565b5b600083013567ffffffffffffffff811115613e8257613e816136cb565b5b613e8e85828601613d5c565b925050602083013567ffffffffffffffff811115613eaf57613eae6136cb565b5b613ebb85828601613e1f565b9150509250929050565b600060208284031215613edb57613eda6136c6565b5b6000613ee98482850161391c565b91505092915050565b60006bffffffffffffffffffffffff82169050919050565b613f1381613ef2565b8114613f1e57600080fd5b50565b600081359050613f3081613f0a565b92915050565b60008060408385031215613f4d57613f4c6136c6565b5b6000613f5b8582860161391c565b9250506020613f6c85828601613f21565b9150509250929050565b60008060408385031215613f8d57613f8c6136c6565b5b6000613f9b85828601613867565b9250506020613fac8582860161391c565b9150509250929050565b613fbf81613755565b8114613fca57600080fd5b50565b600081359050613fdc81613fb6565b92915050565b60008060408385031215613ff957613ff86136c6565b5b60006140078582860161391c565b925050602061401885828601613fcd565b9150509250929050565b600080fd5b600067ffffffffffffffff82111561404257614041613c4c565b5b61404b826137da565b9050602081019050919050565b82818337600083830152505050565b600061407a61407584614027565b613cac565b90508281526020810184848401111561409657614095614022565b5b6140a1848285614058565b509392505050565b600082601f8301126140be576140bd613971565b5b81356140ce848260208601614067565b91505092915050565b600080600080608085870312156140f1576140f06136c6565b5b60006140ff8782880161391c565b94505060206141108782880161391c565b935050604061412187828801613867565b925050606085013567ffffffffffffffff811115614142576141416136cb565b5b61414e878288016140a9565b91505092959194509250565b60008060408385031215614171576141706136c6565b5b600061417f8582860161391c565b92505060206141908582860161391c565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806141e157607f821691505b6020821081036141f4576141f361419a565b5b50919050565b7f37303220466561747572652064697361626c65642f6e6f742061637469766500600082015250565b6000614230601f83613796565b915061423b826141fa565b602082019050919050565b6000602082019050818103600083015261425f81614223565b9050919050565b7f4d41582033000000000000000000000000000000000000000000000000000000600082015250565b600061429c600583613796565b91506142a782614266565b602082019050919050565b600060208201905081810360008301526142cb8161428f565b9050919050565b60008160601b9050919050565b60006142ea826142d2565b9050919050565b60006142fc826142df565b9050919050565b61431461430f826138c9565b6142f1565b82525050565b60006143268284614303565b60148201915081905092915050565b7f496e76616c69642050726f6f6600000000000000000000000000000000000000600082015250565b600061436b600d83613796565b915061437682614335565b602082019050919050565b6000602082019050818103600083015261439a8161435e565b9050919050565b7f416c726561647920636c61696d65640000000000000000000000000000000000600082015250565b60006143d7600f83613796565b91506143e2826143a1565b602082019050919050565b60006020820190508181036000830152614406816143ca565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061444782613846565b915061445283613846565b9250828210156144655761446461440d565b5b828203905092915050565b7f6e6f206d6f7265202b312f2b3220617661696c61626c65000000000000000000600082015250565b60006144a6601783613796565b91506144b182614470565b602082019050919050565b600060208201905081810360008301526144d581614499565b9050919050565b60006144e782613846565b91506144f283613846565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561452b5761452a61440d565b5b828202905092915050565b7f373033204e6f7420656e6f7567682063757272656e63792073656e7400000000600082015250565b600061456c601c83613796565b915061457782614536565b602082019050919050565b6000602082019050818103600083015261459b8161455f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006145dc82613846565b91506145e783613846565b9250826145f7576145f66145a2565b5b828204905092915050565b7f42616c616e636520746f6f20736d616c6c20746f20736166656c79207769746860008201527f6472617721000000000000000000000000000000000000000000000000000000602082015250565b600061465e602583613796565b915061466982614602565b604082019050919050565b6000602082019050818103600083015261468d81614651565b9050919050565b600061469f82613846565b91506146aa83613846565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156146df576146de61440d565b5b828201905092915050565b7f4d617468204572726f722c2062616c616e63657320646f6e277420616464207560008201527f702e000000000000000000000000000000000000000000000000000000000000602082015250565b6000614746602283613796565b9150614751826146ea565b604082019050919050565b6000602082019050818103600083015261477581614739565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f373035206e6f206d6f726520746f6b656e20617661696c61626c650000000000600082015250565b60006147e1601b83613796565b91506147ec826147ab565b602082019050919050565b60006020820190508181036000830152614810816147d4565b9050919050565b600061482282613846565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036148545761485361440d565b5b600182019050919050565b7f4f6666736574207761732073657420616c726561647900000000000000000000600082015250565b6000614895601683613796565b91506148a08261485f565b602082019050919050565b600060208201905081810360008301526148c481614888565b9050919050565b7f6d696e74696e67206e6565647320746f20626520646f6e650000000000000000600082015250565b6000614901601883613796565b915061490c826148cb565b602082019050919050565b60006020820190508181036000830152614930816148f4565b9050919050565b600061494282613846565b915061494d83613846565b92508261495d5761495c6145a2565b5b828206905092915050565b7f37303420517565727920666f72206e6f6e6578697374656e7420746f6b656e00600082015250565b600061499e601f83613796565b91506149a982614968565b602082019050919050565b600060208201905081810360008301526149cd81614991565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b60008154614a01816141c9565b614a0b81866149d4565b94506001821660008114614a265760018114614a3757614a6a565b60ff19831686528186019350614a6a565b614a40856149df565b60005b83811015614a6257815481890152600182019150602081019050614a43565b838801955050505b50505092915050565b6000614a7e8261378b565b614a8881856149d4565b9350614a988185602086016137a7565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614ada6005836149d4565b9150614ae582614aa4565b600582019050919050565b6000614afc82856149f4565b9150614b088284614a73565b9150614b1382614acd565b91508190509392505050565b7f4d41582034000000000000000000000000000000000000000000000000000000600082015250565b6000614b55600583613796565b9150614b6082614b1f565b602082019050919050565b60006020820190508181036000830152614b8481614b48565b9050919050565b7f4d41582032205045522057414c4c455400000000000000000000000000000000600082015250565b6000614bc1601083613796565b9150614bcc82614b8b565b602082019050919050565b60006020820190508181036000830152614bf081614bb4565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614c53602683613796565b9150614c5e82614bf7565b604082019050919050565b60006020820190508181036000830152614c8281614c46565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614cbf602083613796565b9150614cca82614c89565b602082019050919050565b60006020820190508181036000830152614cee81614cb2565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000614d51602a83613796565b9150614d5c82614cf5565b604082019050919050565b60006020820190508181036000830152614d8081614d44565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000614dbd601983613796565b9150614dc882614d87565b602082019050919050565b60006020820190508181036000830152614dec81614db0565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614e1a82614df3565b614e248185614dfe565b9350614e348185602086016137a7565b614e3d816137da565b840191505092915050565b6000608082019050614e5d60008301876138db565b614e6a60208301866138db565b614e776040830185613a36565b8181036060830152614e898184614e0f565b905095945050505050565b600081519050614ea3816136fc565b92915050565b600060208284031215614ebf57614ebe6136c6565b5b6000614ecd84828501614e94565b9150509291505056fea2646970667358221220452deb2ea76809e95490e1e110122e049a42d78396a38b50f5ff0bf066337e5b64736f6c634300080e0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000da4e937243c746d7cfe7179fb20d6c194ee1550c00000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000000c534d41434b4d414e434f494e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004534d414300000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): SMACKMANCOIN
Arg [1] : symbol (string): SMAC
Arg [2] : receiver (address): 0xDa4e937243c746d7Cfe7179FB20d6c194EE1550c
Arg [3] : feeNumerator (uint96): 1000
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 000000000000000000000000da4e937243c746d7cfe7179fb20d6c194ee1550c
Arg [3] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [5] : 534d41434b4d414e434f494e0000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [7] : 534d414300000000000000000000000000000000000000000000000000000000
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.