ERC-721
Overview
Max Total Supply
800 BCO
Holders
286
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
4 BCOLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BoredCatOrigins
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 9999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; // @title: Bored Cat // @twitter: https://twitter.com/Bcatnft // @url: https://boredcatnft.com/ // @dev: [email protected] // // ____ ____ ____ ______ ____ ______ ___ ______ // / __ ) / __ \ / __ \ / ____/ / __ \ / ____/ / | /_ __/ // / __ | / / / / / /_/ / / __/ / / / / / / / /| | / / // / /_/ / / /_/ / / _, _/ / /___ / /_/ / / /___ / ___ | / / // /_____/ \____/ /_/ |_| /_____/ /_____/ \____/ /_/ |_| /_/ // // F I R S T N F T P F P C O L L E C T I O N I N S P A C E // // ▄▄▄ ▄▄▄ // ▐██████▄, ,▄██████▌ // ╟██████████▄ ▄██████████▌ // █████████████▓ ,▓█████████████ // ████████████████µ ,████████████████ // ██████████████████ ▓█████████████████ // ███████████████████ ███████████████████ // ██████████████▓▄▀▀▀` ▀▀▀,▓██████████████ // ╫████████████▀W ─ª▀████████████▌ // ▐██████████▌¬ ─▀██████████▌ // ████████▀─ ▀████████─ // ███████─ ███████ // ╟████▀ ╙████▌ // ███ ███ // ╙▀ ▀▀ // // // // // // // ╙████████████▌▐██████¬ ^████████████▌▐██████▀ // ▀████████████████▀ ╓▄╓ ▀████████████████▀─ // ╙▀██████████▀╙ ███████ ╙▀██████████▀▀ // └└└└ └╙▀╙└ └└└└ // // import "./ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; contract BoredCatOrigins is ERC721A, Ownable, ReentrancyGuard { using Address for address; using MerkleProof for bytes32[]; // ================================================== // // *** MULTIVERSE STORAGE *** // ================================================== // // @notice The address of the contract permitted to mint multiverse Bored Cats. address public portalGunContract; uint256 public secondMultiverseDimensionSupply; uint256 public thirdMultiverseDimensionSupply; uint256 public fourthMultiverseDimensionSupply; uint256 public fifthMultiverseDimensionSupply; bool public secondMultiverseMintPaused = true; bool public thirdMultiverseMintPaused = true; bool public fourthMultiverseMintPaused = true; bool public fifthMultiverseMintPaused = true; // ================================================== // // *** PRESALE STORAGE *** // ================================================== // uint256 public presaleMintPrice = 0.2 ether; uint256 public presaleMintMaxSupply; bool public presaleMintPaused = true; // ================================================== // // *** AUTO BURN DUTCH AUCTION STORAGE *** // ================================================== // uint256 public auctionStartPrice = 1 ether; uint256 public auctionEndPrice = 0.4 ether; uint256 public auctionPriceCurveLength = 330 minutes; uint256 public auctionDropInterval = 30 minutes; uint256 public auctionDropPerStep = (auctionStartPrice - auctionEndPrice) / (auctionPriceCurveLength / auctionDropInterval); uint256 public auctionSaleStartTime; uint256 public auctionSaleEndTime; uint256 public lastAuctionSupplyBurnTime; // ================================================== // // *** COLLECTION PARAMS STORAGE *** // ================================================== // uint256 public collectionSize = 8842; uint256 public reservedSize; uint256 public maxItemsPerWallet = 5; uint256 public maxItemsPerTx = 5; uint64 public publicMintPrice = 1 ether; bool public publicMintPaused = true; bytes32 public eligibleMerkleRoot; string public baseTokenURI; // ================================================== // // *** CONSTRUCTOR *** // ================================================== // constructor() ERC721A("Bored Cat Origins", "BCO", 10) {} // ================================================== // // *** MODIFIER *** // ================================================== // function _onlySender() private view { require(msg.sender == tx.origin); } modifier onlySender { _onlySender(); _; } // ================================================== // // *** COMMUNITY SUSTAINABILITY RESERVES *** // ================================================== // // @notice Mint reserved token for sustainable community development: marketing etc function communityMint(uint256 amount) external onlySender onlyOwner { require(amount <= reservedSize, "Minting amount exceeds reserved size"); require((totalSupply() + amount) <= collectionSize, "Sold out!"); require( amount % maxBatchSize == 0, "Can only mint a multiple of the maxBatchSize" ); uint256 numChunks = amount / maxBatchSize; for (uint256 i = 0; i < numChunks; i++) { _safeMint(msg.sender, maxBatchSize); } reservedSize -= amount; } // ================================================== // // *** PRESALE MINT LOGIC *** // ================================================== // function presaleMint(bytes32[] memory proof) external payable onlySender nonReentrant { uint256 _presaleMintMaxSupply = presaleMintMaxSupply; require(!presaleMintPaused, "Presale mint is paused"); require(_presaleMintMaxSupply > 0, "Presale mint is sold out"); require(isAddressEligible(proof, msg.sender), "You are not eligible for presale mint"); uint256 amount = _getMintAmount(msg.value, presaleMintPrice); require( amount <= maxItemsPerTx, "Minting amount exceeds allowance per tx" ); require( numberMinted(msg.sender) + amount <= maxItemsPerWallet, "Minting amount exceeds allowance per wallet" ); require(_presaleMintMaxSupply >= amount, "Not enough supply remaining to support desired presale mint amount"); presaleMintMaxSupply = _presaleMintMaxSupply - amount; _mintWithoutValidation(msg.sender, amount); } // ======================================================== // // *** AUTO BURN DUTCH AUCTION MINT LOGIC (ISS Algorithm) *** // ======================================================== // function auctionMint(uint256 quantity) external payable onlySender nonReentrant { uint256 _saleStartTime = uint256(auctionSaleStartTime); require(_saleStartTime != 0 && block.timestamp >= _saleStartTime,"Sale has not started yet"); // Before minting, update the collection supply on runtime using the ISS algorithm (Iterative Smart Supply) _autoBurnAuctionSupply(); if (block.timestamp > auctionSaleEndTime) { // The auction already ended. Issue refund instead of raising an error // so the supply update gets stored. // Needed in case of automatic remaining supply burn after the end of the auction. refundIfOver(0); } else { require((totalSupply() + quantity) <= (collectionSize - reservedSize), "Not enough supply remaining to support desired mint amount"); require(numberMinted(msg.sender) + quantity <= maxItemsPerWallet,"Minting amount exceeds allowance per wallet"); require( quantity <= maxItemsPerTx, "Minting amount exceeds allowance per tx"); uint256 totalCost = getAuctionPrice(_saleStartTime) * quantity; _safeMint(msg.sender, quantity); refundIfOver(totalCost); } } // ================================================== // // *** MULTIVERSE LOGIC *** // ================================================== // /// @notice Sets the address of the contract permitted to call mintMultiverseBoredCat /// @param _portalGunContract The address of the Portal Gun contract function setPortalGunContract(address _portalGunContract) public onlyOwner { portalGunContract = _portalGunContract; } /// @notice Thrown when an invalid Multiverse Dimension is given by the Portal Gun contract. error UnknownMultiverseDimension(); /// @notice Thrown when the caller is not the Portal Gun contract, and is trying to mint an alter Bored Cat. error UnauthorizedPortal(); /// @notice Mints a Bored Cat from a parallel univers /// @param receiver Receiver of the alter Bored Cat /// @param parallelUniverseId The id of the origin parallel universe of the alter Bored Cat, initial Ids 2 to 5 function mintMultiverseBoredCat(address receiver, uint parallelUniverseId) public payable { if(msg.sender != portalGunContract) revert UnauthorizedPortal(); if (parallelUniverseId == 2) { require(!secondMultiverseMintPaused, "Multiverse Dimension 2 mint is paused"); _mintMultivereDimension(receiver); unchecked { secondMultiverseDimensionSupply++; } } else if (parallelUniverseId == 3) { require(!thirdMultiverseMintPaused, "Multiverse Dimension 3 mint is paused"); _mintMultivereDimension(receiver); unchecked { thirdMultiverseDimensionSupply++; } } else if (parallelUniverseId == 4) { require(!fourthMultiverseMintPaused, "Multiverse Dimension 4 mint is paused"); _mintMultivereDimension(receiver); unchecked { fourthMultiverseDimensionSupply++; } } else if (parallelUniverseId == 5) { require(!fifthMultiverseMintPaused, "Multiverse Dimension 5 mint is paused"); _mintMultivereDimension(receiver); unchecked { fifthMultiverseDimensionSupply++; } } else { revert UnknownMultiverseDimension(); } } // ================================================== // // *** PUBLIC MINT LOGIC *** // ================================================== // function publicMint() external payable onlySender nonReentrant { require(!publicMintPaused, "Public mint is paused"); uint256 amount = _getMintAmount(msg.value, publicMintPrice); require( amount <= maxItemsPerTx, "Minting amount exceeds allowance per tx" ); require( numberMinted(msg.sender) + amount <= maxItemsPerWallet, "Minting amount exceeds allowance per wallet" ); _mintWithoutValidation(msg.sender, amount); } // ================================================== // // *** HELPER *** // ================================================== // function getAuctionPrice(uint256 _saleStartTime) public view returns (uint256) { if (block.timestamp < _saleStartTime) { return auctionStartPrice; } if (block.timestamp - _saleStartTime >= auctionPriceCurveLength) { return auctionEndPrice; } else { uint256 steps = (block.timestamp - _saleStartTime) / auctionDropInterval; return auctionStartPrice - (steps * auctionDropPerStep); } } // @notice Updates the collection supply on runtime using the ISS algorithm (Iterative Smart Supply) function _autoBurnAuctionSupply() private { uint256 usedSupply = totalSupply() + reservedSize; uint256 _block_timestamp = block.timestamp; // If The Dutch Auction Already Ended, Automatically Burn All The Remaining Supply // Else, Iterativery Update The Supply By // Automatically Burning 10% Of The Remaining Supply At Each Step if (_block_timestamp > auctionSaleEndTime) { collectionSize = usedSupply; lastAuctionSupplyBurnTime = _block_timestamp; } else if (lastAuctionSupplyBurnTime < auctionSaleStartTime + auctionPriceCurveLength) { uint256 curveLengthSinceLastUpdate = min(_block_timestamp, auctionSaleStartTime + auctionPriceCurveLength) - lastAuctionSupplyBurnTime; if ( curveLengthSinceLastUpdate > auctionDropInterval) { uint256 remainingSupply = collectionSize - usedSupply; uint256 burnQuantity = 0; uint256 numBurnSteps = curveLengthSinceLastUpdate / auctionDropInterval; for (uint256 i = 0; i < numBurnSteps; i++) { // Burn 10% of the remaining supply at each step burnQuantity += (remainingSupply - burnQuantity)/10; } collectionSize = max(usedSupply, collectionSize - burnQuantity); lastAuctionSupplyBurnTime = _block_timestamp; } } } function _getMintAmount(uint256 value, uint256 mintPrice) internal view returns (uint256) { uint256 remainder = value % mintPrice; require(remainder == 0, "Send a divisible amount of eth"); uint256 amount = value / mintPrice; require(amount > 0, "Amount to mint is 0"); require( (totalSupply() + amount) <= (collectionSize - reservedSize), "Sold out!" ); return amount; } function _mintWithoutValidation(address to, uint256 amount) internal { require((totalSupply() + amount) <= (collectionSize - reservedSize), "Sold out!"); _safeMint(to, amount); } function _mintMultivereDimension(address to) internal { _mintWithoutValidation(to, 1); } function refundIfOver(uint256 price) private { require(msg.value >= price, "Need to send more ETH."); if (msg.value > price) { payable(msg.sender).transfer(msg.value - price); } } function isAddressEligible(bytes32[] memory proof, address _address) public view returns (bool) { return isAddressInMerkleRoot(eligibleMerkleRoot, proof, _address); } function isAddressInMerkleRoot( bytes32 merkleRoot, bytes32[] memory proof, address _address ) internal pure returns (bool) { return proof.verify(merkleRoot, keccak256(abi.encodePacked(_address))); } function numberMinted(address owner) public view returns (uint256) { return _numberMinted(owner); } // ================================================== // // *** SETTER *** (owner only) // ================================================== // function setPresaleMintPaused(bool _presaleMintPaused) external onlyOwner{ presaleMintPaused = _presaleMintPaused; } function setEligibleMerkleRoot(bytes32 _eligibleMerkleRoot) external onlyOwner { eligibleMerkleRoot = _eligibleMerkleRoot; } function setMaxItemsPerTx(uint256 _maxItemsPerTx) external onlyOwner { maxItemsPerTx = _maxItemsPerTx; } function setMaxItemsPerWallet(uint256 _maxItemsPerWallet) external onlyOwner { maxItemsPerWallet = _maxItemsPerWallet; } function setPublicMintPaused(bool _publicMintPaused) external onlyOwner { publicMintPaused = _publicMintPaused; } function setPreSaleConfig( uint256 _presaleMintPrice, uint256 _collectionSize, uint256 _presaleMintMaxSupply, uint256 _reservedSize, uint256 _maxItemsPerWallet, uint256 _maxItemsPerTx, bool _presaleMintPaused, bytes32 _eligibleMerkleRoot ) external onlyOwner { presaleMintPrice = _presaleMintPrice; collectionSize = _collectionSize; presaleMintMaxSupply = _presaleMintMaxSupply; reservedSize = _reservedSize; maxItemsPerWallet = _maxItemsPerWallet; maxItemsPerTx = _maxItemsPerTx; presaleMintPaused = _presaleMintPaused; eligibleMerkleRoot = _eligibleMerkleRoot; } function setAuctionSaleConfig( uint256 _collectionSize, uint256 _reservedSize, uint256 _maxItemsPerWallet, uint256 _maxItemsPerTx, uint256 _auctionStartPrice, uint256 _auctionEndPrice, uint256 _auctionPriceCurveLength, uint256 _auctionDropInterval, uint256 _auctionSaleStartTime, uint256 _auctionSaleEndTime, uint256 _lastAuctionSupplyBurnTime ) external onlyOwner { collectionSize = _collectionSize; reservedSize = _reservedSize; maxItemsPerWallet = _maxItemsPerWallet; maxItemsPerTx = _maxItemsPerTx; auctionStartPrice = _auctionStartPrice; auctionEndPrice = _auctionEndPrice; auctionPriceCurveLength = _auctionPriceCurveLength; auctionDropInterval = _auctionDropInterval; auctionSaleStartTime = _auctionSaleStartTime; auctionSaleEndTime = _auctionSaleEndTime; lastAuctionSupplyBurnTime = _lastAuctionSupplyBurnTime; auctionDropPerStep = (_auctionStartPrice - _auctionEndPrice) / (_auctionPriceCurveLength / _auctionDropInterval); } function setPublicSaleConfig( uint256 _collectionSize, uint256 _reservedSize, uint256 _maxItemsPerWallet, uint256 _maxItemsPerTx, uint64 _publicMintPrice, bool _publicMintPaused ) external onlyOwner { collectionSize = _collectionSize; reservedSize = _reservedSize; maxItemsPerWallet = _maxItemsPerWallet; maxItemsPerTx = _maxItemsPerTx; publicMintPrice = _publicMintPrice; publicMintPaused = _publicMintPaused; } function setMultiverseConfig( address _portalGunContract, uint256 _secondMultiverseDimensionSupply, uint256 _thirdMultiverseDimensionSupply, uint256 _fourthMultiverseDimensionSupply, uint256 _fifthMultiverseDimensionSupply, bool _secondMultiverseMintPaused, bool _thirdMultiverseMintPaused, bool _fourthMultiverseMintPaused, bool _fifthMultiverseMintPaused ) external onlyOwner { portalGunContract = _portalGunContract; secondMultiverseDimensionSupply = _secondMultiverseDimensionSupply; thirdMultiverseDimensionSupply = _thirdMultiverseDimensionSupply; fourthMultiverseDimensionSupply = _fourthMultiverseDimensionSupply; fifthMultiverseDimensionSupply = _fifthMultiverseDimensionSupply; secondMultiverseMintPaused = _secondMultiverseMintPaused; thirdMultiverseMintPaused = _thirdMultiverseMintPaused; fourthMultiverseMintPaused = _fourthMultiverseMintPaused; fifthMultiverseMintPaused = _fifthMultiverseMintPaused; } function setBaseTokenURI(string memory _baseTokenURI) external onlyOwner { baseTokenURI = _baseTokenURI; } // ================================================== // // *** WITHDRAW TO OWNER *** // ================================================== // function withdrawAll() external onlyOwner onlySender nonReentrant { (bool success, ) = msg.sender.call{value: address(this).balance}(""); require(success, "Failed to send ether"); } // ================================================== // // *** UTILS *** // ================================================== // function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } function min(uint256 a, uint256 b) internal pure returns (uint256) { return a <= b ? a : b; } // ================================================== // // *** VIEW METADATA *** // ================================================== // function tokenURI(uint256 tokenId) public view override(ERC721A) returns (string memory) { return string(abi.encodePacked(baseTokenURI, Strings.toString(tokenId))); } function walletOfOwner(address address_) public virtual view returns (uint256[] memory) { uint256 _balance = balanceOf(address_); uint256[] memory _tokens = new uint256[] (_balance); uint256 _index; uint256 _loopThrough = totalSupply(); for (uint256 i = 0; i < _loopThrough; i++) { bool _exists = _exists(i); if (_exists) { if (ownerOf(i) == address_) { _tokens[_index] = i; _index++; } } else if (!_exists && _tokens[_balance - 1] == 0) { _loopThrough++; } } return _tokens; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees 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. */ 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 Returns the rebuilt hash obtained by traversing a Merklee 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++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 substraction 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 // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _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 // Creators: locationtba.eth, 2pmflow.eth pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 0; uint256 internal immutable maxBatchSize; // 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 ownershipOf implementation for details. mapping(uint256 => TokenOwnership) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev * `maxBatchSize` refers to how much a minter can mint at a time. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_ ) { require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721A: balance query for the zero address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require( owner != address(0), "ERC721A: number minted query for the zero address" ); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @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, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721A: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); } /** * @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 (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require( isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved" ); require( prevOwnership.addr == from, "ERC721A: transfer from incorrect owner" ); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership( prevOwnership.addr, prevOwnership.startTimestamp ); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > currentIndex - 1) { endIndex = currentIndex - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership( ownership.addr, ownership.startTimestamp ); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721A: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * 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`. */ 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. * * 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` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// 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/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @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); } }
// 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.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @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 ) external; /** * @dev Transfers `tokenId` token 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; /** * @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; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @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 calldata data ) external; }
// 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": true, "runs": 9999 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"UnauthorizedPortal","type":"error"},{"inputs":[],"name":"UnknownMultiverseDimension","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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"auctionDropInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"auctionDropPerStep","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"auctionEndPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"auctionMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"auctionPriceCurveLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"auctionSaleEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"auctionSaleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"auctionStartPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectionSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"communityMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"eligibleMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fifthMultiverseDimensionSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fifthMultiverseMintPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fourthMultiverseDimensionSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fourthMultiverseMintPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleStartTime","type":"uint256"}],"name":"getAuctionPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"address","name":"_address","type":"address"}],"name":"isAddressEligible","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastAuctionSupplyBurnTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxItemsPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxItemsPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"parallelUniverseId","type":"uint256"}],"name":"mintMultiverseBoredCat","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","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":[],"name":"portalGunContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presaleMintMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleMintPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicMintPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintPrice","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedSize","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","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":"nonpayable","type":"function"},{"inputs":[],"name":"secondMultiverseDimensionSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"secondMultiverseMintPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_collectionSize","type":"uint256"},{"internalType":"uint256","name":"_reservedSize","type":"uint256"},{"internalType":"uint256","name":"_maxItemsPerWallet","type":"uint256"},{"internalType":"uint256","name":"_maxItemsPerTx","type":"uint256"},{"internalType":"uint256","name":"_auctionStartPrice","type":"uint256"},{"internalType":"uint256","name":"_auctionEndPrice","type":"uint256"},{"internalType":"uint256","name":"_auctionPriceCurveLength","type":"uint256"},{"internalType":"uint256","name":"_auctionDropInterval","type":"uint256"},{"internalType":"uint256","name":"_auctionSaleStartTime","type":"uint256"},{"internalType":"uint256","name":"_auctionSaleEndTime","type":"uint256"},{"internalType":"uint256","name":"_lastAuctionSupplyBurnTime","type":"uint256"}],"name":"setAuctionSaleConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_eligibleMerkleRoot","type":"bytes32"}],"name":"setEligibleMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxItemsPerTx","type":"uint256"}],"name":"setMaxItemsPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxItemsPerWallet","type":"uint256"}],"name":"setMaxItemsPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_portalGunContract","type":"address"},{"internalType":"uint256","name":"_secondMultiverseDimensionSupply","type":"uint256"},{"internalType":"uint256","name":"_thirdMultiverseDimensionSupply","type":"uint256"},{"internalType":"uint256","name":"_fourthMultiverseDimensionSupply","type":"uint256"},{"internalType":"uint256","name":"_fifthMultiverseDimensionSupply","type":"uint256"},{"internalType":"bool","name":"_secondMultiverseMintPaused","type":"bool"},{"internalType":"bool","name":"_thirdMultiverseMintPaused","type":"bool"},{"internalType":"bool","name":"_fourthMultiverseMintPaused","type":"bool"},{"internalType":"bool","name":"_fifthMultiverseMintPaused","type":"bool"}],"name":"setMultiverseConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_portalGunContract","type":"address"}],"name":"setPortalGunContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_presaleMintPrice","type":"uint256"},{"internalType":"uint256","name":"_collectionSize","type":"uint256"},{"internalType":"uint256","name":"_presaleMintMaxSupply","type":"uint256"},{"internalType":"uint256","name":"_reservedSize","type":"uint256"},{"internalType":"uint256","name":"_maxItemsPerWallet","type":"uint256"},{"internalType":"uint256","name":"_maxItemsPerTx","type":"uint256"},{"internalType":"bool","name":"_presaleMintPaused","type":"bool"},{"internalType":"bytes32","name":"_eligibleMerkleRoot","type":"bytes32"}],"name":"setPreSaleConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_presaleMintPaused","type":"bool"}],"name":"setPresaleMintPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_publicMintPaused","type":"bool"}],"name":"setPublicMintPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_collectionSize","type":"uint256"},{"internalType":"uint256","name":"_reservedSize","type":"uint256"},{"internalType":"uint256","name":"_maxItemsPerWallet","type":"uint256"},{"internalType":"uint256","name":"_maxItemsPerTx","type":"uint256"},{"internalType":"uint64","name":"_publicMintPrice","type":"uint64"},{"internalType":"bool","name":"_publicMintPaused","type":"bool"}],"name":"setPublicSaleConfig","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":[],"name":"thirdMultiverseDimensionSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"thirdMultiverseMintPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"address_","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040526000808055600755600f805463ffffffff191663010101011790556702c68af0bb1400006010556012805460ff19166001179055670de0b6b3a764000060135567058d15e176280000601455614d58601581905561070860168190556200006b91620002b2565b6014546013546200007d9190620002d5565b620000899190620002b2565b60175561228a601b556005601d819055601e55601f80546001600160481b03191668010de0b6b3a7640000179055348015620000c457600080fd5b5060405180604001604052806011815260200170426f72656420436174204f726967696e7360781b8152506040518060400160405280600381526020016242434f60e81b815250600a60008111620001725760405162461bcd60e51b815260206004820152602760248201527f455243373231413a206d61782062617463682073697a65206d757374206265206044820152666e6f6e7a65726f60c81b606482015260840160405180910390fd5b8251620001879060019060208601906200020c565b5081516200019d9060029060208501906200020c565b5060805250620001af905033620001ba565b600160095562000338565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200021a90620002fb565b90600052602060002090601f0160209004810192826200023e576000855562000289565b82601f106200025957805160ff191683800117855562000289565b8280016001018555821562000289579182015b82811115620002895782518255916020019190600101906200026c565b50620002979291506200029b565b5090565b5b808211156200029757600081556001016200029c565b600082620002d057634e487b7160e01b600052601260045260246000fd5b500490565b600082821015620002f657634e487b7160e01b600052601160045260246000fd5b500390565b600181811c908216806200031057607f821691505b602082108114156200033257634e487b7160e01b600052602260045260246000fd5b50919050565b608051614bbb620003776000396000818161133b015281816113da0152818161141201528181613695015281816136bf0152613ce70152614bbb6000f3fe60806040526004361061044a5760003560e01c806370a0823111610243578063ac6831b011610143578063dc53fd92116100bb578063edfdb76d1161008a578063f2fde38b1161006f578063f2fde38b14610be2578063fab2bf5814610c02578063fcc25cb714610c1857600080fd5b8063edfdb76d14610bac578063f243669b14610bcc57600080fd5b8063dc53fd9214610b00578063e6fe34b314610b3a578063e985e9c514610b50578063edc0c72c14610b9957600080fd5b8063d547cfb711610112578063d756985b116100f7578063d756985b14610ab4578063db7aa4f914610aca578063dc33e68114610ae057600080fd5b8063d547cfb714610a89578063d7224ba014610a9e57600080fd5b8063ac6831b014610a13578063b88d4fde14610a33578063c0c61b2614610a53578063c87b56dd14610a6957600080fd5b806395d89b41116101d65780639f6a70ef116101a5578063a22cb4651161018a578063a22cb465146109bd578063a60dc6da146109dd578063ab163013146109fd57600080fd5b80639f6a70ef14610991578063a04a6ac8146109a757600080fd5b806395d89b41146109335780639b0d10a5146109485780639bc0ece11461095b5780639ec2d4891461097b57600080fd5b8063853828b611610212578063853828b6146108ca5780638a9daf2b146108df5780638da5cb5b146108f5578063917d009e1461091357600080fd5b806370a082311461085f578063715018a61461087f57806379e1587a146108945780637a4e5715146108aa57600080fd5b80632a9356a51161034e578063438b6300116102e1578063579669fa116102b05780636352211e116102955780636352211e14610809578063671c8c9d146108295780636c1aa30b1461084957600080fd5b8063579669fa146107d25780635be50521146107f357600080fd5b8063438b63001461075c57806345c0f533146107895780634d3554c31461079f5780634f6ccce7146107b257600080fd5b8063339493481161031d57806333949348146106d657806333d9d5fd146106f65780633a897ce91461071c57806342842e0e1461073c57600080fd5b80632a9356a51461066a5780632f745c591461068057806330176e13146106a057806330666a4d146106c057600080fd5b8063180fec04116103e1578063221870bd116103b057806323b872dd1161039557806323b872dd1461062357806325f7fc5e1461064357806326092b831461066257600080fd5b8063221870bd146105e3578063224c6edb1461060357600080fd5b8063180fec041461057e57806318160ddd1461059e5780631cdf77c5146105b3578063208b8073146105c957600080fd5b8063081812fc1161041d578063081812fc146104e2578063095ea7b31461051a57806316d45be61461053a57806317d5ad611461055e57600080fd5b806301ffc9a71461044f57806302ca00c814610484578063031d3e7d1461049e57806306fdde03146104c0575b600080fd5b34801561045b57600080fd5b5061046f61046a3660046144cc565b610c38565b60405190151581526020015b60405180910390f35b34801561049057600080fd5b5060125461046f9060ff1681565b3480156104aa57600080fd5b506104be6104b9366004614392565b610d69565b005b3480156104cc57600080fd5b506104d5610eda565b60405161047b9190614852565b3480156104ee57600080fd5b506105026104fd3660046144b3565b610f6c565b6040516001600160a01b03909116815260200161047b565b34801561052657600080fd5b506104be610535366004614368565b611007565b34801561054657600080fd5b50610550600b5481565b60405190815260200161047b565b34801561056a57600080fd5b506104be6105793660046144b3565b61113a565b34801561058a57600080fd5b506104be6105993660046144b3565b611199565b3480156105aa57600080fd5b50600054610550565b3480156105bf57600080fd5b50610550601a5481565b3480156105d557600080fd5b50600f5461046f9060ff1681565b3480156105ef57600080fd5b50600a54610502906001600160a01b031681565b34801561060f57600080fd5b506104be61061e3660046144b3565b6111f8565b34801561062f57600080fd5b506104be61063e366004614286565b611464565b34801561064f57600080fd5b50600f5461046f90610100900460ff1681565b6104be61146f565b34801561067657600080fd5b5061055060195481565b34801561068c57600080fd5b5061055061069b366004614368565b611660565b3480156106ac57600080fd5b506104be6106bb366004614506565b611809565b3480156106cc57600080fd5b50610550601e5481565b3480156106e257600080fd5b506104be6106f1366004614498565b61187a565b34801561070257600080fd5b50601f5461046f9068010000000000000000900460ff1681565b34801561072857600080fd5b5061046f610737366004614453565b611912565b34801561074857600080fd5b506104be610757366004614286565b611928565b34801561076857600080fd5b5061077c610777366004614238565b611943565b60405161047b919061480e565b34801561079557600080fd5b50610550601b5481565b6104be6107ad3660046144b3565b611a7c565b3480156107be57600080fd5b506105506107cd3660046144b3565b611d2c565b3480156107de57600080fd5b50600f5461046f906301000000900460ff1681565b3480156107ff57600080fd5b5061055060105481565b34801561081557600080fd5b506105026108243660046144b3565b611da8565b34801561083557600080fd5b506104be610844366004614238565b611dba565b34801561085557600080fd5b5061055060205481565b34801561086b57600080fd5b5061055061087a366004614238565b611e4e565b34801561088b57600080fd5b506104be611efa565b3480156108a057600080fd5b50610550601c5481565b3480156108b657600080fd5b506104be6108c53660046144b3565b611f60565b3480156108d657600080fd5b506104be611fbf565b3480156108eb57600080fd5b5061055060155481565b34801561090157600080fd5b506008546001600160a01b0316610502565b34801561091f57600080fd5b5061055061092e3660046144b3565b612111565b34801561093f57600080fd5b506104d5612179565b6104be610956366004614368565b612188565b34801561096757600080fd5b506104be6109763660046145b5565b612470565b34801561098757600080fd5b50610550600d5481565b34801561099d57600080fd5b5061055060115481565b3480156109b357600080fd5b5061055060145481565b3480156109c957600080fd5b506104be6109d836600461433e565b61252f565b3480156109e957600080fd5b50600f5461046f9062010000900460ff1681565b348015610a0957600080fd5b50610550600c5481565b348015610a1f57600080fd5b506104be610a2e36600461454f565b612612565b348015610a3f57600080fd5b506104be610a4e3660046142c2565b6126be565b348015610a5f57600080fd5b50610550600e5481565b348015610a7557600080fd5b506104d5610a843660046144b3565b61274d565b348015610a9557600080fd5b506104d5612781565b348015610aaa57600080fd5b5061055060075481565b348015610ac057600080fd5b5061055060135481565b348015610ad657600080fd5b50610550601d5481565b348015610aec57600080fd5b50610550610afb366004614238565b61280f565b348015610b0c57600080fd5b50601f54610b219067ffffffffffffffff1681565b60405167ffffffffffffffff909116815260200161047b565b348015610b4657600080fd5b5061055060175481565b348015610b5c57600080fd5b5061046f610b6b366004614253565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6104be610ba736600461441e565b61281a565b348015610bb857600080fd5b506104be610bc7366004614498565b612b62565b348015610bd857600080fd5b5061055060165481565b348015610bee57600080fd5b506104be610bfd366004614238565b612bed565b348015610c0e57600080fd5b5061055060185481565b348015610c2457600080fd5b506104be610c33366004614627565b612ccf565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610ccb57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610d1757507fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610d6357507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6008546001600160a01b03163314610dc85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600a80546001600160a01b03909a167fffffffffffffffffffffffff0000000000000000000000000000000000000000909a1699909917909855600b96909655600c94909455600d92909255600e55600f80549415156301000000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffff9415156201000002949094167fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffff931515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff931515939093167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000090961695909517919091179190911692909217179055565b606060018054610ee9906149fa565b80601f0160208091040260200160405190810160405280929190818152602001828054610f15906149fa565b8015610f625780601f10610f3757610100808354040283529160200191610f62565b820191906000526020600020905b815481529060010190602001808311610f4557829003601f168201915b5050505050905090565b6000610f79826000541190565b610feb5760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e000000000000000000000000000000000000006064820152608401610dbf565b506000908152600560205260409020546001600160a01b031690565b600061101282611da8565b9050806001600160a01b0316836001600160a01b0316141561109c5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201527f65720000000000000000000000000000000000000000000000000000000000006064820152608401610dbf565b336001600160a01b03821614806110b857506110b88133610b6b565b61112a5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610dbf565b611135838383612d8c565b505050565b6008546001600160a01b031633146111945760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dbf565b602055565b6008546001600160a01b031633146111f35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dbf565b601d55565b611200612e00565b6008546001600160a01b0316331461125a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dbf565b601c548111156112d15760405162461bcd60e51b8152602060048201526024808201527f4d696e74696e6720616d6f756e7420657863656564732072657365727665642060448201527f73697a65000000000000000000000000000000000000000000000000000000006064820152608401610dbf565b601b54816112de60005490565b6112e891906148e8565b11156113365760405162461bcd60e51b815260206004820152600960248201527f536f6c64206f75742100000000000000000000000000000000000000000000006044820152606401610dbf565b6113607f000000000000000000000000000000000000000000000000000000000000000082614a87565b156113d35760405162461bcd60e51b815260206004820152602c60248201527f43616e206f6e6c79206d696e742061206d756c7469706c65206f66207468652060448201527f6d6178426174636853697a6500000000000000000000000000000000000000006064820152608401610dbf565b60006113ff7f000000000000000000000000000000000000000000000000000000000000000083614900565b905060005b8181101561144857611436337f0000000000000000000000000000000000000000000000000000000000000000612e0c565b8061144081614a4e565b915050611404565b5081601c600082825461145b9190614982565b90915550505050565b611135838383612e26565b611477612e00565b600260095414156114ca5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610dbf565b6002600955601f5468010000000000000000900460ff161561152e5760405162461bcd60e51b815260206004820152601560248201527f5075626c6963206d696e742069732070617573656400000000000000000000006044820152606401610dbf565b601f5460009061154990349067ffffffffffffffff16613255565b9050601e548111156115c35760405162461bcd60e51b815260206004820152602760248201527f4d696e74696e6720616d6f756e74206578636565647320616c6c6f77616e636560448201527f20706572207478000000000000000000000000000000000000000000000000006064820152608401610dbf565b601d54816115d03361280f565b6115da91906148e8565b111561164e5760405162461bcd60e51b815260206004820152602b60248201527f4d696e74696e6720616d6f756e74206578636565647320616c6c6f77616e636560448201527f207065722077616c6c65740000000000000000000000000000000000000000006064820152608401610dbf565b611658338261338a565b506001600955565b600061166b83611e4e565b82106116df5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f64730000000000000000000000000000000000000000000000000000000000006064820152608401610dbf565b600080549080805b8381101561179a576000818152600360209081526040918290208251808401909352546001600160a01b0381168084527401000000000000000000000000000000000000000090910467ffffffffffffffff16918301919091521561174b57805192505b876001600160a01b0316836001600160a01b03161415611787578684141561177957509350610d6392505050565b8361178381614a4e565b9450505b508061179281614a4e565b9150506116e7565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610dbf565b6008546001600160a01b031633146118635760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dbf565b8051611876906021906020840190614085565b5050565b6008546001600160a01b031633146118d45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dbf565b601f805491151568010000000000000000027fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff909216919091179055565b60006119216020548484613406565b9392505050565b611135838383604051806020016040528060008152506126be565b6060600061195083611e4e565b905060008167ffffffffffffffff81111561196d5761196d614b28565b604051908082528060200260200182016040528015611996578160200160208202803683370190505b5090506000806119a560005490565b905060005b81811015611a715760006119bf826000541190565b90508015611a1a57876001600160a01b03166119da83611da8565b6001600160a01b03161415611a1557818585815181106119fc576119fc614af9565b602090810291909101015283611a1181614a4e565b9450505b611a5e565b80158015611a4b575084611a2f600188614982565b81518110611a3f57611a3f614af9565b60200260200101516000145b15611a5e5782611a5a81614a4e565b9350505b5080611a6981614a4e565b9150506119aa565b509195945050505050565b611a84612e00565b60026009541415611ad75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610dbf565b60026009556018548015801590611aee5750804210155b611b3a5760405162461bcd60e51b815260206004820152601860248201527f53616c6520686173206e6f7420737461727465642079657400000000000000006044820152606401610dbf565b611b42613467565b601954421115611b5b57611b566000613572565b611d23565b601c54601b54611b6b9190614982565b82611b7560005490565b611b7f91906148e8565b1115611bf35760405162461bcd60e51b815260206004820152603a60248201527f4e6f7420656e6f75676820737570706c792072656d61696e696e6720746f207360448201527f7570706f72742064657369726564206d696e7420616d6f756e740000000000006064820152608401610dbf565b601d5482611c003361280f565b611c0a91906148e8565b1115611c7e5760405162461bcd60e51b815260206004820152602b60248201527f4d696e74696e6720616d6f756e74206578636565647320616c6c6f77616e636560448201527f207065722077616c6c65740000000000000000000000000000000000000000006064820152608401610dbf565b601e54821115611cf65760405162461bcd60e51b815260206004820152602760248201527f4d696e74696e6720616d6f756e74206578636565647320616c6c6f77616e636560448201527f20706572207478000000000000000000000000000000000000000000000000006064820152608401610dbf565b600082611d0283612111565b611d0c9190614914565b9050611d183384612e0c565b611d2181613572565b505b50506001600955565b600080548210611da45760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560448201527f6e647300000000000000000000000000000000000000000000000000000000006064820152608401610dbf565b5090565b6000611db382613600565b5192915050565b6008546001600160a01b03163314611e145760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dbf565b600a80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60006001600160a01b038216611ecc5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152608401610dbf565b506001600160a01b03166000908152600460205260409020546fffffffffffffffffffffffffffffffff1690565b6008546001600160a01b03163314611f545760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dbf565b611f5e60006137dc565b565b6008546001600160a01b03163314611fba5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dbf565b601e55565b6008546001600160a01b031633146120195760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dbf565b612021612e00565b600260095414156120745760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610dbf565b6002600955604051600090339047908381818185875af1925050503d80600081146120bb576040519150601f19603f3d011682016040523d82523d6000602084013e6120c0565b606091505b50509050806116585760405162461bcd60e51b815260206004820152601460248201527f4661696c656420746f2073656e642065746865720000000000000000000000006044820152606401610dbf565b60008142101561212357505060135490565b6015546121308342614982565b1061213d57505060145490565b60165460009061214d8442614982565b6121579190614900565b9050601754816121679190614914565b6013546119219190614982565b919050565b606060028054610ee9906149fa565b600a546001600160a01b031633146121cc576040517fefc26b5700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806002141561226457600f5460ff161561224e5760405162461bcd60e51b815260206004820152602560248201527f4d756c746976657273652044696d656e73696f6e2032206d696e74206973207060448201527f61757365640000000000000000000000000000000000000000000000000000006064820152608401610dbf565b61225782613846565b600b805460010190555050565b806003141561230157600f54610100900460ff16156122eb5760405162461bcd60e51b815260206004820152602560248201527f4d756c746976657273652044696d656e73696f6e2033206d696e74206973207060448201527f61757365640000000000000000000000000000000000000000000000000000006064820152608401610dbf565b6122f482613846565b600c805460010190555050565b806004141561239f57600f5462010000900460ff16156123895760405162461bcd60e51b815260206004820152602560248201527f4d756c746976657273652044696d656e73696f6e2034206d696e74206973207060448201527f61757365640000000000000000000000000000000000000000000000000000006064820152608401610dbf565b61239282613846565b600d805460010190555050565b806005141561243e57600f546301000000900460ff16156124285760405162461bcd60e51b815260206004820152602560248201527f4d756c746976657273652044696d656e73696f6e2035206d696e74206973207060448201527f61757365640000000000000000000000000000000000000000000000000000006064820152608401610dbf565b61243182613846565b600e805460010190555050565b6040517fffb3f21600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008546001600160a01b031633146124ca5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dbf565b601b8b9055601c8a9055601d899055601e889055601387905560148690556015859055601684905560188390556019829055601a81905561250b8486614900565b6125158789614982565b61251f9190614900565b6017555050505050505050505050565b6001600160a01b0382163314156125885760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610dbf565b3360008181526006602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b0316331461266c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dbf565b601097909755601b95909555601193909355601c91909155601d55601e55601280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055602055565b6126c9848484612e26565b6126d584848484613851565b6127475760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610dbf565b50505050565b6060602161275a83613a1c565b60405160200161276b9291906146f4565b6040516020818303038152906040529050919050565b6021805461278e906149fa565b80601f01602080910402602001604051908101604052809291908181526020018280546127ba906149fa565b80156128075780601f106127dc57610100808354040283529160200191612807565b820191906000526020600020905b8154815290600101906020018083116127ea57829003601f168201915b505050505081565b6000610d6382613b4e565b612822612e00565b600260095414156128755760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610dbf565b600260095560115460125460ff16156128d05760405162461bcd60e51b815260206004820152601660248201527f50726573616c65206d696e7420697320706175736564000000000000000000006044820152606401610dbf565b600081116129205760405162461bcd60e51b815260206004820152601860248201527f50726573616c65206d696e7420697320736f6c64206f757400000000000000006044820152606401610dbf565b61292a8233611912565b61299c5760405162461bcd60e51b815260206004820152602560248201527f596f7520617265206e6f7420656c696769626c6520666f722070726573616c6560448201527f206d696e740000000000000000000000000000000000000000000000000000006064820152608401610dbf565b60006129aa34601054613255565b9050601e54811115612a245760405162461bcd60e51b815260206004820152602760248201527f4d696e74696e6720616d6f756e74206578636565647320616c6c6f77616e636560448201527f20706572207478000000000000000000000000000000000000000000000000006064820152608401610dbf565b601d5481612a313361280f565b612a3b91906148e8565b1115612aaf5760405162461bcd60e51b815260206004820152602b60248201527f4d696e74696e6720616d6f756e74206578636565647320616c6c6f77616e636560448201527f207065722077616c6c65740000000000000000000000000000000000000000006064820152608401610dbf565b80821015612b4b5760405162461bcd60e51b815260206004820152604260248201527f4e6f7420656e6f75676820737570706c792072656d61696e696e6720746f207360448201527f7570706f727420646573697265642070726573616c65206d696e7420616d6f7560648201527f6e74000000000000000000000000000000000000000000000000000000000000608482015260a401610dbf565b612b558183614982565b601155611d21338261338a565b6008546001600160a01b03163314612bbc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dbf565b601280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b6008546001600160a01b03163314612c475760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dbf565b6001600160a01b038116612cc35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610dbf565b612ccc816137dc565b50565b6008546001600160a01b03163314612d295760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dbf565b601b95909555601c93909355601d91909155601e55601f805492151568010000000000000000027fffffffffffffffffffffffffffffffffffffffffffffff00000000000000000090931667ffffffffffffffff90921691909117919091179055565b60008281526005602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b333214611f5e57600080fd5b611876828260405180602001604052806000815250613c0e565b6000612e3182613600565b80519091506000906001600160a01b0316336001600160a01b03161480612e68575033612e5d84610f6c565b6001600160a01b0316145b80612e7a57508151612e7a9033610b6b565b905080612eef5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610dbf565b846001600160a01b031682600001516001600160a01b031614612f7a5760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460448201527f206f776e657200000000000000000000000000000000000000000000000000006064820152608401610dbf565b6001600160a01b038416612ff65760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610dbf565b6130066000848460000151612d8c565b6001600160a01b03851660009081526004602052604081208054600192906130419084906fffffffffffffffffffffffffffffffff16614951565b82546101009290920a6fffffffffffffffffffffffffffffffff8181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092613096918591166148b4565b82546fffffffffffffffffffffffffffffffff9182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff42811660208085019182526000898152600390915294852093518454915190921674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090911691909216171790556131508460016148e8565b6000818152600360205260409020549091506001600160a01b031661320b5761317a816000541190565b1561320b5760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff908116828501908152600087815260039093529490912092518354945190911674010000000000000000000000000000000000000000027fffffffff000000000000000000000000000000000000000000000000000000009094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6000806132628385614a87565b905080156132b25760405162461bcd60e51b815260206004820152601e60248201527f53656e64206120646976697369626c6520616d6f756e74206f662065746800006044820152606401610dbf565b60006132be8486614900565b9050600081116133105760405162461bcd60e51b815260206004820152601360248201527f416d6f756e7420746f206d696e742069732030000000000000000000000000006044820152606401610dbf565b601c54601b546133209190614982565b8161332a60005490565b61333491906148e8565b11156133825760405162461bcd60e51b815260206004820152600960248201527f536f6c64206f75742100000000000000000000000000000000000000000000006044820152606401610dbf565b949350505050565b601c54601b5461339a9190614982565b816133a460005490565b6133ae91906148e8565b11156133fc5760405162461bcd60e51b815260206004820152600960248201527f536f6c64206f75742100000000000000000000000000000000000000000000006044820152606401610dbf565b6118768282612e0c565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606083901b1660208201526000906133829085906034016040516020818303038152906040528051906020012085613fd49092919063ffffffff16565b6000601c5461347560005490565b61347f91906148e8565b601954909150429081111561349957601b91909155601a55565b6015546018546134a991906148e8565b601a541015611876576000601a546134d0836015546018546134cb91906148e8565b613fea565b6134da9190614982565b905060165481111561113557600083601b546134f69190614982565b9050600080601654846135099190614900565b905060005b8181101561354a57600a6135228486614982565b61352c9190614900565b61353690846148e8565b92508061354281614a4e565b91505061350e565b506135628683601b5461355d9190614982565b614001565b601b55505050601a829055505050565b803410156135c25760405162461bcd60e51b815260206004820152601660248201527f4e65656420746f2073656e64206d6f7265204554482e000000000000000000006044820152606401610dbf565b80341115612ccc57336108fc6135d88334614982565b6040518115909202916000818181858888f19350505050158015611876573d6000803e3d6000fd5b604080518082019091526000808252602082015261361f826000541190565b6136915760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360448201527f74656e7420746f6b656e000000000000000000000000000000000000000000006064820152608401610dbf565b60007f000000000000000000000000000000000000000000000000000000000000000083106136f2576136e47f000000000000000000000000000000000000000000000000000000000000000084614982565b6136ef9060016148e8565b90505b825b81811061376d576000818152600360209081526040918290208251808401909352546001600160a01b0381168084527401000000000000000000000000000000000000000090910467ffffffffffffffff16918301919091521561375a57949350505050565b5080613765816149c5565b9150506136f4565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201527f206f776e6572206f6620746f6b656e00000000000000000000000000000000006064820152608401610dbf565b600880546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612ccc81600161338a565b60006001600160a01b0384163b15613a11576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906138ae9033908990889088906004016147d2565b602060405180830381600087803b1580156138c857600080fd5b505af1925050508015613916575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613913918101906144e9565b60015b6139c6573d808015613944576040519150601f19603f3d011682016040523d82523d6000602084013e613949565b606091505b5080516139be5760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610dbf565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050613382565b506001949350505050565b606081613a5c57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613a865780613a7081614a4e565b9150613a7f9050600a83614900565b9150613a60565b60008167ffffffffffffffff811115613aa157613aa1614b28565b6040519080825280601f01601f191660200182016040528015613acb576020820181803683370190505b5090505b841561338257613ae0600183614982565b9150613aed600a86614a87565b613af89060306148e8565b60f81b818381518110613b0d57613b0d614af9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613b47600a86614900565b9450613acf565b60006001600160a01b038216613bcc5760405162461bcd60e51b815260206004820152603160248201527f455243373231413a206e756d626572206d696e74656420717565727920666f7260448201527f20746865207a65726f20616464726573730000000000000000000000000000006064820152608401610dbf565b506001600160a01b031660009081526004602052604090205470010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1690565b6000546001600160a01b038416613c8d5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610dbf565b613c98816000541190565b15613ce55760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610dbf565b7f0000000000000000000000000000000000000000000000000000000000000000831115613d7b5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960448201527f67680000000000000000000000000000000000000000000000000000000000006064820152608401610dbf565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546fffffffffffffffffffffffffffffffff80821683527001000000000000000000000000000000009091041691810191909152815180830190925280519091908190613ded9087906148b4565b6fffffffffffffffffffffffffffffffff168152602001858360200151613e1491906148b4565b6fffffffffffffffffffffffffffffffff9081169091526001600160a01b03808816600081815260046020908152604080832087519783015187167001000000000000000000000000000000000297909616969096179094558451808601865291825267ffffffffffffffff428116838601908152888352600390955294812091518254945190951674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090941694909216939093179190911790915582905b85811015613fc95760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4613f376000888488613851565b613fa95760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610dbf565b81613fb381614a4e565b9250508080613fc190614a4e565b915050613eea565b50600081905561324d565b600082613fe18584614011565b14949350505050565b600081831115613ffa5781611921565b5090919050565b600081831015613ffa5781611921565b600081815b845181101561407d57600085828151811061403357614033614af9565b60200260200101519050808311614059576000838152602082905260409020925061406a565b600081815260208490526040902092505b508061407581614a4e565b915050614016565b509392505050565b828054614091906149fa565b90600052602060002090601f0160209004810192826140b357600085556140f9565b82601f106140cc57805160ff19168380011785556140f9565b828001600101855582156140f9579182015b828111156140f95782518255916020019190600101906140de565b50611da49291505b80821115611da45760008155600101614101565b600067ffffffffffffffff83111561412f5761412f614b28565b61416060207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011601614865565b905082815283838301111561417457600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461217457600080fd5b600082601f8301126141b357600080fd5b8135602067ffffffffffffffff8211156141cf576141cf614b28565b8160051b6141de828201614865565b8381528281019086840183880185018910156141f957600080fd5b600093505b8584101561421c5780358352600193909301929184019184016141fe565b50979650505050505050565b8035801515811461217457600080fd5b60006020828403121561424a57600080fd5b6119218261418b565b6000806040838503121561426657600080fd5b61426f8361418b565b915061427d6020840161418b565b90509250929050565b60008060006060848603121561429b57600080fd5b6142a48461418b565b92506142b26020850161418b565b9150604084013590509250925092565b600080600080608085870312156142d857600080fd5b6142e18561418b565b93506142ef6020860161418b565b925060408501359150606085013567ffffffffffffffff81111561431257600080fd5b8501601f8101871361432357600080fd5b61433287823560208401614115565b91505092959194509250565b6000806040838503121561435157600080fd5b61435a8361418b565b915061427d60208401614228565b6000806040838503121561437b57600080fd5b6143848361418b565b946020939093013593505050565b60008060008060008060008060006101208a8c0312156143b157600080fd5b6143ba8a61418b565b985060208a0135975060408a0135965060608a0135955060808a013594506143e460a08b01614228565b93506143f260c08b01614228565b925061440060e08b01614228565b915061440f6101008b01614228565b90509295985092959850929598565b60006020828403121561443057600080fd5b813567ffffffffffffffff81111561444757600080fd5b613382848285016141a2565b6000806040838503121561446657600080fd5b823567ffffffffffffffff81111561447d57600080fd5b614489858286016141a2565b92505061427d6020840161418b565b6000602082840312156144aa57600080fd5b61192182614228565b6000602082840312156144c557600080fd5b5035919050565b6000602082840312156144de57600080fd5b813561192181614b57565b6000602082840312156144fb57600080fd5b815161192181614b57565b60006020828403121561451857600080fd5b813567ffffffffffffffff81111561452f57600080fd5b8201601f8101841361454057600080fd5b61338284823560208401614115565b600080600080600080600080610100898b03121561456c57600080fd5b883597506020890135965060408901359550606089013594506080890135935060a0890135925061459f60c08a01614228565b915060e089013590509295985092959890939650565b60008060008060008060008060008060006101608c8e0312156145d757600080fd5b505089359b60208b01359b5060408b01359a60608101359a506080810135995060a0810135985060c0810135975060e0810135965061010081013595506101208101359450610140013592509050565b60008060008060008060c0878903121561464057600080fd5b86359550602087013594506040870135935060608701359250608087013567ffffffffffffffff8116811461467457600080fd5b915061468260a08801614228565b90509295509295509295565b600081518084526146a6816020860160208601614999565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600081516146ea818560208601614999565b9290920192915050565b600080845481600182811c91508083168061471057607f831692505b6020808410821415614749577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b81801561475d576001811461478c576147b9565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008616895284890196506147b9565b60008b81526020902060005b868110156147b15781548b820152908501908301614798565b505084890196505b5050505050506147c981856146d8565b95945050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152614804608083018461468e565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156148465783518352928401929184019160010161482a565b50909695505050505050565b602081526000611921602083018461468e565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156148ac576148ac614b28565b604052919050565b60006fffffffffffffffffffffffffffffffff8083168185168083038211156148df576148df614a9b565b01949350505050565b600082198211156148fb576148fb614a9b565b500190565b60008261490f5761490f614aca565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561494c5761494c614a9b565b500290565b60006fffffffffffffffffffffffffffffffff8381169083168181101561497a5761497a614a9b565b039392505050565b60008282101561499457614994614a9b565b500390565b60005b838110156149b457818101518382015260200161499c565b838111156127475750506000910152565b6000816149d4576149d4614a9b565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600181811c90821680614a0e57607f821691505b60208210811415614a48577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614a8057614a80614a9b565b5060010190565b600082614a9657614a96614aca565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081168114612ccc57600080fdfea264697066735822122039ac82b84c4f998a331431e890513d00a5585a7f14a1472aac535aef71a8bd8164736f6c63430008070033
Deployed Bytecode
0x60806040526004361061044a5760003560e01c806370a0823111610243578063ac6831b011610143578063dc53fd92116100bb578063edfdb76d1161008a578063f2fde38b1161006f578063f2fde38b14610be2578063fab2bf5814610c02578063fcc25cb714610c1857600080fd5b8063edfdb76d14610bac578063f243669b14610bcc57600080fd5b8063dc53fd9214610b00578063e6fe34b314610b3a578063e985e9c514610b50578063edc0c72c14610b9957600080fd5b8063d547cfb711610112578063d756985b116100f7578063d756985b14610ab4578063db7aa4f914610aca578063dc33e68114610ae057600080fd5b8063d547cfb714610a89578063d7224ba014610a9e57600080fd5b8063ac6831b014610a13578063b88d4fde14610a33578063c0c61b2614610a53578063c87b56dd14610a6957600080fd5b806395d89b41116101d65780639f6a70ef116101a5578063a22cb4651161018a578063a22cb465146109bd578063a60dc6da146109dd578063ab163013146109fd57600080fd5b80639f6a70ef14610991578063a04a6ac8146109a757600080fd5b806395d89b41146109335780639b0d10a5146109485780639bc0ece11461095b5780639ec2d4891461097b57600080fd5b8063853828b611610212578063853828b6146108ca5780638a9daf2b146108df5780638da5cb5b146108f5578063917d009e1461091357600080fd5b806370a082311461085f578063715018a61461087f57806379e1587a146108945780637a4e5715146108aa57600080fd5b80632a9356a51161034e578063438b6300116102e1578063579669fa116102b05780636352211e116102955780636352211e14610809578063671c8c9d146108295780636c1aa30b1461084957600080fd5b8063579669fa146107d25780635be50521146107f357600080fd5b8063438b63001461075c57806345c0f533146107895780634d3554c31461079f5780634f6ccce7146107b257600080fd5b8063339493481161031d57806333949348146106d657806333d9d5fd146106f65780633a897ce91461071c57806342842e0e1461073c57600080fd5b80632a9356a51461066a5780632f745c591461068057806330176e13146106a057806330666a4d146106c057600080fd5b8063180fec04116103e1578063221870bd116103b057806323b872dd1161039557806323b872dd1461062357806325f7fc5e1461064357806326092b831461066257600080fd5b8063221870bd146105e3578063224c6edb1461060357600080fd5b8063180fec041461057e57806318160ddd1461059e5780631cdf77c5146105b3578063208b8073146105c957600080fd5b8063081812fc1161041d578063081812fc146104e2578063095ea7b31461051a57806316d45be61461053a57806317d5ad611461055e57600080fd5b806301ffc9a71461044f57806302ca00c814610484578063031d3e7d1461049e57806306fdde03146104c0575b600080fd5b34801561045b57600080fd5b5061046f61046a3660046144cc565b610c38565b60405190151581526020015b60405180910390f35b34801561049057600080fd5b5060125461046f9060ff1681565b3480156104aa57600080fd5b506104be6104b9366004614392565b610d69565b005b3480156104cc57600080fd5b506104d5610eda565b60405161047b9190614852565b3480156104ee57600080fd5b506105026104fd3660046144b3565b610f6c565b6040516001600160a01b03909116815260200161047b565b34801561052657600080fd5b506104be610535366004614368565b611007565b34801561054657600080fd5b50610550600b5481565b60405190815260200161047b565b34801561056a57600080fd5b506104be6105793660046144b3565b61113a565b34801561058a57600080fd5b506104be6105993660046144b3565b611199565b3480156105aa57600080fd5b50600054610550565b3480156105bf57600080fd5b50610550601a5481565b3480156105d557600080fd5b50600f5461046f9060ff1681565b3480156105ef57600080fd5b50600a54610502906001600160a01b031681565b34801561060f57600080fd5b506104be61061e3660046144b3565b6111f8565b34801561062f57600080fd5b506104be61063e366004614286565b611464565b34801561064f57600080fd5b50600f5461046f90610100900460ff1681565b6104be61146f565b34801561067657600080fd5b5061055060195481565b34801561068c57600080fd5b5061055061069b366004614368565b611660565b3480156106ac57600080fd5b506104be6106bb366004614506565b611809565b3480156106cc57600080fd5b50610550601e5481565b3480156106e257600080fd5b506104be6106f1366004614498565b61187a565b34801561070257600080fd5b50601f5461046f9068010000000000000000900460ff1681565b34801561072857600080fd5b5061046f610737366004614453565b611912565b34801561074857600080fd5b506104be610757366004614286565b611928565b34801561076857600080fd5b5061077c610777366004614238565b611943565b60405161047b919061480e565b34801561079557600080fd5b50610550601b5481565b6104be6107ad3660046144b3565b611a7c565b3480156107be57600080fd5b506105506107cd3660046144b3565b611d2c565b3480156107de57600080fd5b50600f5461046f906301000000900460ff1681565b3480156107ff57600080fd5b5061055060105481565b34801561081557600080fd5b506105026108243660046144b3565b611da8565b34801561083557600080fd5b506104be610844366004614238565b611dba565b34801561085557600080fd5b5061055060205481565b34801561086b57600080fd5b5061055061087a366004614238565b611e4e565b34801561088b57600080fd5b506104be611efa565b3480156108a057600080fd5b50610550601c5481565b3480156108b657600080fd5b506104be6108c53660046144b3565b611f60565b3480156108d657600080fd5b506104be611fbf565b3480156108eb57600080fd5b5061055060155481565b34801561090157600080fd5b506008546001600160a01b0316610502565b34801561091f57600080fd5b5061055061092e3660046144b3565b612111565b34801561093f57600080fd5b506104d5612179565b6104be610956366004614368565b612188565b34801561096757600080fd5b506104be6109763660046145b5565b612470565b34801561098757600080fd5b50610550600d5481565b34801561099d57600080fd5b5061055060115481565b3480156109b357600080fd5b5061055060145481565b3480156109c957600080fd5b506104be6109d836600461433e565b61252f565b3480156109e957600080fd5b50600f5461046f9062010000900460ff1681565b348015610a0957600080fd5b50610550600c5481565b348015610a1f57600080fd5b506104be610a2e36600461454f565b612612565b348015610a3f57600080fd5b506104be610a4e3660046142c2565b6126be565b348015610a5f57600080fd5b50610550600e5481565b348015610a7557600080fd5b506104d5610a843660046144b3565b61274d565b348015610a9557600080fd5b506104d5612781565b348015610aaa57600080fd5b5061055060075481565b348015610ac057600080fd5b5061055060135481565b348015610ad657600080fd5b50610550601d5481565b348015610aec57600080fd5b50610550610afb366004614238565b61280f565b348015610b0c57600080fd5b50601f54610b219067ffffffffffffffff1681565b60405167ffffffffffffffff909116815260200161047b565b348015610b4657600080fd5b5061055060175481565b348015610b5c57600080fd5b5061046f610b6b366004614253565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6104be610ba736600461441e565b61281a565b348015610bb857600080fd5b506104be610bc7366004614498565b612b62565b348015610bd857600080fd5b5061055060165481565b348015610bee57600080fd5b506104be610bfd366004614238565b612bed565b348015610c0e57600080fd5b5061055060185481565b348015610c2457600080fd5b506104be610c33366004614627565b612ccf565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610ccb57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610d1757507fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610d6357507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6008546001600160a01b03163314610dc85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600a80546001600160a01b03909a167fffffffffffffffffffffffff0000000000000000000000000000000000000000909a1699909917909855600b96909655600c94909455600d92909255600e55600f80549415156301000000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffff9415156201000002949094167fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffff931515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff931515939093167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000090961695909517919091179190911692909217179055565b606060018054610ee9906149fa565b80601f0160208091040260200160405190810160405280929190818152602001828054610f15906149fa565b8015610f625780601f10610f3757610100808354040283529160200191610f62565b820191906000526020600020905b815481529060010190602001808311610f4557829003601f168201915b5050505050905090565b6000610f79826000541190565b610feb5760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e000000000000000000000000000000000000006064820152608401610dbf565b506000908152600560205260409020546001600160a01b031690565b600061101282611da8565b9050806001600160a01b0316836001600160a01b0316141561109c5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201527f65720000000000000000000000000000000000000000000000000000000000006064820152608401610dbf565b336001600160a01b03821614806110b857506110b88133610b6b565b61112a5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610dbf565b611135838383612d8c565b505050565b6008546001600160a01b031633146111945760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dbf565b602055565b6008546001600160a01b031633146111f35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dbf565b601d55565b611200612e00565b6008546001600160a01b0316331461125a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dbf565b601c548111156112d15760405162461bcd60e51b8152602060048201526024808201527f4d696e74696e6720616d6f756e7420657863656564732072657365727665642060448201527f73697a65000000000000000000000000000000000000000000000000000000006064820152608401610dbf565b601b54816112de60005490565b6112e891906148e8565b11156113365760405162461bcd60e51b815260206004820152600960248201527f536f6c64206f75742100000000000000000000000000000000000000000000006044820152606401610dbf565b6113607f000000000000000000000000000000000000000000000000000000000000000a82614a87565b156113d35760405162461bcd60e51b815260206004820152602c60248201527f43616e206f6e6c79206d696e742061206d756c7469706c65206f66207468652060448201527f6d6178426174636853697a6500000000000000000000000000000000000000006064820152608401610dbf565b60006113ff7f000000000000000000000000000000000000000000000000000000000000000a83614900565b905060005b8181101561144857611436337f000000000000000000000000000000000000000000000000000000000000000a612e0c565b8061144081614a4e565b915050611404565b5081601c600082825461145b9190614982565b90915550505050565b611135838383612e26565b611477612e00565b600260095414156114ca5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610dbf565b6002600955601f5468010000000000000000900460ff161561152e5760405162461bcd60e51b815260206004820152601560248201527f5075626c6963206d696e742069732070617573656400000000000000000000006044820152606401610dbf565b601f5460009061154990349067ffffffffffffffff16613255565b9050601e548111156115c35760405162461bcd60e51b815260206004820152602760248201527f4d696e74696e6720616d6f756e74206578636565647320616c6c6f77616e636560448201527f20706572207478000000000000000000000000000000000000000000000000006064820152608401610dbf565b601d54816115d03361280f565b6115da91906148e8565b111561164e5760405162461bcd60e51b815260206004820152602b60248201527f4d696e74696e6720616d6f756e74206578636565647320616c6c6f77616e636560448201527f207065722077616c6c65740000000000000000000000000000000000000000006064820152608401610dbf565b611658338261338a565b506001600955565b600061166b83611e4e565b82106116df5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f64730000000000000000000000000000000000000000000000000000000000006064820152608401610dbf565b600080549080805b8381101561179a576000818152600360209081526040918290208251808401909352546001600160a01b0381168084527401000000000000000000000000000000000000000090910467ffffffffffffffff16918301919091521561174b57805192505b876001600160a01b0316836001600160a01b03161415611787578684141561177957509350610d6392505050565b8361178381614a4e565b9450505b508061179281614a4e565b9150506116e7565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610dbf565b6008546001600160a01b031633146118635760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dbf565b8051611876906021906020840190614085565b5050565b6008546001600160a01b031633146118d45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dbf565b601f805491151568010000000000000000027fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff909216919091179055565b60006119216020548484613406565b9392505050565b611135838383604051806020016040528060008152506126be565b6060600061195083611e4e565b905060008167ffffffffffffffff81111561196d5761196d614b28565b604051908082528060200260200182016040528015611996578160200160208202803683370190505b5090506000806119a560005490565b905060005b81811015611a715760006119bf826000541190565b90508015611a1a57876001600160a01b03166119da83611da8565b6001600160a01b03161415611a1557818585815181106119fc576119fc614af9565b602090810291909101015283611a1181614a4e565b9450505b611a5e565b80158015611a4b575084611a2f600188614982565b81518110611a3f57611a3f614af9565b60200260200101516000145b15611a5e5782611a5a81614a4e565b9350505b5080611a6981614a4e565b9150506119aa565b509195945050505050565b611a84612e00565b60026009541415611ad75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610dbf565b60026009556018548015801590611aee5750804210155b611b3a5760405162461bcd60e51b815260206004820152601860248201527f53616c6520686173206e6f7420737461727465642079657400000000000000006044820152606401610dbf565b611b42613467565b601954421115611b5b57611b566000613572565b611d23565b601c54601b54611b6b9190614982565b82611b7560005490565b611b7f91906148e8565b1115611bf35760405162461bcd60e51b815260206004820152603a60248201527f4e6f7420656e6f75676820737570706c792072656d61696e696e6720746f207360448201527f7570706f72742064657369726564206d696e7420616d6f756e740000000000006064820152608401610dbf565b601d5482611c003361280f565b611c0a91906148e8565b1115611c7e5760405162461bcd60e51b815260206004820152602b60248201527f4d696e74696e6720616d6f756e74206578636565647320616c6c6f77616e636560448201527f207065722077616c6c65740000000000000000000000000000000000000000006064820152608401610dbf565b601e54821115611cf65760405162461bcd60e51b815260206004820152602760248201527f4d696e74696e6720616d6f756e74206578636565647320616c6c6f77616e636560448201527f20706572207478000000000000000000000000000000000000000000000000006064820152608401610dbf565b600082611d0283612111565b611d0c9190614914565b9050611d183384612e0c565b611d2181613572565b505b50506001600955565b600080548210611da45760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560448201527f6e647300000000000000000000000000000000000000000000000000000000006064820152608401610dbf565b5090565b6000611db382613600565b5192915050565b6008546001600160a01b03163314611e145760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dbf565b600a80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60006001600160a01b038216611ecc5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152608401610dbf565b506001600160a01b03166000908152600460205260409020546fffffffffffffffffffffffffffffffff1690565b6008546001600160a01b03163314611f545760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dbf565b611f5e60006137dc565b565b6008546001600160a01b03163314611fba5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dbf565b601e55565b6008546001600160a01b031633146120195760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dbf565b612021612e00565b600260095414156120745760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610dbf565b6002600955604051600090339047908381818185875af1925050503d80600081146120bb576040519150601f19603f3d011682016040523d82523d6000602084013e6120c0565b606091505b50509050806116585760405162461bcd60e51b815260206004820152601460248201527f4661696c656420746f2073656e642065746865720000000000000000000000006044820152606401610dbf565b60008142101561212357505060135490565b6015546121308342614982565b1061213d57505060145490565b60165460009061214d8442614982565b6121579190614900565b9050601754816121679190614914565b6013546119219190614982565b919050565b606060028054610ee9906149fa565b600a546001600160a01b031633146121cc576040517fefc26b5700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806002141561226457600f5460ff161561224e5760405162461bcd60e51b815260206004820152602560248201527f4d756c746976657273652044696d656e73696f6e2032206d696e74206973207060448201527f61757365640000000000000000000000000000000000000000000000000000006064820152608401610dbf565b61225782613846565b600b805460010190555050565b806003141561230157600f54610100900460ff16156122eb5760405162461bcd60e51b815260206004820152602560248201527f4d756c746976657273652044696d656e73696f6e2033206d696e74206973207060448201527f61757365640000000000000000000000000000000000000000000000000000006064820152608401610dbf565b6122f482613846565b600c805460010190555050565b806004141561239f57600f5462010000900460ff16156123895760405162461bcd60e51b815260206004820152602560248201527f4d756c746976657273652044696d656e73696f6e2034206d696e74206973207060448201527f61757365640000000000000000000000000000000000000000000000000000006064820152608401610dbf565b61239282613846565b600d805460010190555050565b806005141561243e57600f546301000000900460ff16156124285760405162461bcd60e51b815260206004820152602560248201527f4d756c746976657273652044696d656e73696f6e2035206d696e74206973207060448201527f61757365640000000000000000000000000000000000000000000000000000006064820152608401610dbf565b61243182613846565b600e805460010190555050565b6040517fffb3f21600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008546001600160a01b031633146124ca5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dbf565b601b8b9055601c8a9055601d899055601e889055601387905560148690556015859055601684905560188390556019829055601a81905561250b8486614900565b6125158789614982565b61251f9190614900565b6017555050505050505050505050565b6001600160a01b0382163314156125885760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610dbf565b3360008181526006602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b0316331461266c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dbf565b601097909755601b95909555601193909355601c91909155601d55601e55601280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055602055565b6126c9848484612e26565b6126d584848484613851565b6127475760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610dbf565b50505050565b6060602161275a83613a1c565b60405160200161276b9291906146f4565b6040516020818303038152906040529050919050565b6021805461278e906149fa565b80601f01602080910402602001604051908101604052809291908181526020018280546127ba906149fa565b80156128075780601f106127dc57610100808354040283529160200191612807565b820191906000526020600020905b8154815290600101906020018083116127ea57829003601f168201915b505050505081565b6000610d6382613b4e565b612822612e00565b600260095414156128755760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610dbf565b600260095560115460125460ff16156128d05760405162461bcd60e51b815260206004820152601660248201527f50726573616c65206d696e7420697320706175736564000000000000000000006044820152606401610dbf565b600081116129205760405162461bcd60e51b815260206004820152601860248201527f50726573616c65206d696e7420697320736f6c64206f757400000000000000006044820152606401610dbf565b61292a8233611912565b61299c5760405162461bcd60e51b815260206004820152602560248201527f596f7520617265206e6f7420656c696769626c6520666f722070726573616c6560448201527f206d696e740000000000000000000000000000000000000000000000000000006064820152608401610dbf565b60006129aa34601054613255565b9050601e54811115612a245760405162461bcd60e51b815260206004820152602760248201527f4d696e74696e6720616d6f756e74206578636565647320616c6c6f77616e636560448201527f20706572207478000000000000000000000000000000000000000000000000006064820152608401610dbf565b601d5481612a313361280f565b612a3b91906148e8565b1115612aaf5760405162461bcd60e51b815260206004820152602b60248201527f4d696e74696e6720616d6f756e74206578636565647320616c6c6f77616e636560448201527f207065722077616c6c65740000000000000000000000000000000000000000006064820152608401610dbf565b80821015612b4b5760405162461bcd60e51b815260206004820152604260248201527f4e6f7420656e6f75676820737570706c792072656d61696e696e6720746f207360448201527f7570706f727420646573697265642070726573616c65206d696e7420616d6f7560648201527f6e74000000000000000000000000000000000000000000000000000000000000608482015260a401610dbf565b612b558183614982565b601155611d21338261338a565b6008546001600160a01b03163314612bbc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dbf565b601280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b6008546001600160a01b03163314612c475760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dbf565b6001600160a01b038116612cc35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610dbf565b612ccc816137dc565b50565b6008546001600160a01b03163314612d295760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dbf565b601b95909555601c93909355601d91909155601e55601f805492151568010000000000000000027fffffffffffffffffffffffffffffffffffffffffffffff00000000000000000090931667ffffffffffffffff90921691909117919091179055565b60008281526005602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b333214611f5e57600080fd5b611876828260405180602001604052806000815250613c0e565b6000612e3182613600565b80519091506000906001600160a01b0316336001600160a01b03161480612e68575033612e5d84610f6c565b6001600160a01b0316145b80612e7a57508151612e7a9033610b6b565b905080612eef5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610dbf565b846001600160a01b031682600001516001600160a01b031614612f7a5760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460448201527f206f776e657200000000000000000000000000000000000000000000000000006064820152608401610dbf565b6001600160a01b038416612ff65760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610dbf565b6130066000848460000151612d8c565b6001600160a01b03851660009081526004602052604081208054600192906130419084906fffffffffffffffffffffffffffffffff16614951565b82546101009290920a6fffffffffffffffffffffffffffffffff8181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092613096918591166148b4565b82546fffffffffffffffffffffffffffffffff9182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff42811660208085019182526000898152600390915294852093518454915190921674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090911691909216171790556131508460016148e8565b6000818152600360205260409020549091506001600160a01b031661320b5761317a816000541190565b1561320b5760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff908116828501908152600087815260039093529490912092518354945190911674010000000000000000000000000000000000000000027fffffffff000000000000000000000000000000000000000000000000000000009094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6000806132628385614a87565b905080156132b25760405162461bcd60e51b815260206004820152601e60248201527f53656e64206120646976697369626c6520616d6f756e74206f662065746800006044820152606401610dbf565b60006132be8486614900565b9050600081116133105760405162461bcd60e51b815260206004820152601360248201527f416d6f756e7420746f206d696e742069732030000000000000000000000000006044820152606401610dbf565b601c54601b546133209190614982565b8161332a60005490565b61333491906148e8565b11156133825760405162461bcd60e51b815260206004820152600960248201527f536f6c64206f75742100000000000000000000000000000000000000000000006044820152606401610dbf565b949350505050565b601c54601b5461339a9190614982565b816133a460005490565b6133ae91906148e8565b11156133fc5760405162461bcd60e51b815260206004820152600960248201527f536f6c64206f75742100000000000000000000000000000000000000000000006044820152606401610dbf565b6118768282612e0c565b6040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606083901b1660208201526000906133829085906034016040516020818303038152906040528051906020012085613fd49092919063ffffffff16565b6000601c5461347560005490565b61347f91906148e8565b601954909150429081111561349957601b91909155601a55565b6015546018546134a991906148e8565b601a541015611876576000601a546134d0836015546018546134cb91906148e8565b613fea565b6134da9190614982565b905060165481111561113557600083601b546134f69190614982565b9050600080601654846135099190614900565b905060005b8181101561354a57600a6135228486614982565b61352c9190614900565b61353690846148e8565b92508061354281614a4e565b91505061350e565b506135628683601b5461355d9190614982565b614001565b601b55505050601a829055505050565b803410156135c25760405162461bcd60e51b815260206004820152601660248201527f4e65656420746f2073656e64206d6f7265204554482e000000000000000000006044820152606401610dbf565b80341115612ccc57336108fc6135d88334614982565b6040518115909202916000818181858888f19350505050158015611876573d6000803e3d6000fd5b604080518082019091526000808252602082015261361f826000541190565b6136915760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360448201527f74656e7420746f6b656e000000000000000000000000000000000000000000006064820152608401610dbf565b60007f000000000000000000000000000000000000000000000000000000000000000a83106136f2576136e47f000000000000000000000000000000000000000000000000000000000000000a84614982565b6136ef9060016148e8565b90505b825b81811061376d576000818152600360209081526040918290208251808401909352546001600160a01b0381168084527401000000000000000000000000000000000000000090910467ffffffffffffffff16918301919091521561375a57949350505050565b5080613765816149c5565b9150506136f4565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201527f206f776e6572206f6620746f6b656e00000000000000000000000000000000006064820152608401610dbf565b600880546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612ccc81600161338a565b60006001600160a01b0384163b15613a11576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906138ae9033908990889088906004016147d2565b602060405180830381600087803b1580156138c857600080fd5b505af1925050508015613916575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613913918101906144e9565b60015b6139c6573d808015613944576040519150601f19603f3d011682016040523d82523d6000602084013e613949565b606091505b5080516139be5760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610dbf565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050613382565b506001949350505050565b606081613a5c57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613a865780613a7081614a4e565b9150613a7f9050600a83614900565b9150613a60565b60008167ffffffffffffffff811115613aa157613aa1614b28565b6040519080825280601f01601f191660200182016040528015613acb576020820181803683370190505b5090505b841561338257613ae0600183614982565b9150613aed600a86614a87565b613af89060306148e8565b60f81b818381518110613b0d57613b0d614af9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613b47600a86614900565b9450613acf565b60006001600160a01b038216613bcc5760405162461bcd60e51b815260206004820152603160248201527f455243373231413a206e756d626572206d696e74656420717565727920666f7260448201527f20746865207a65726f20616464726573730000000000000000000000000000006064820152608401610dbf565b506001600160a01b031660009081526004602052604090205470010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1690565b6000546001600160a01b038416613c8d5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610dbf565b613c98816000541190565b15613ce55760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610dbf565b7f000000000000000000000000000000000000000000000000000000000000000a831115613d7b5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960448201527f67680000000000000000000000000000000000000000000000000000000000006064820152608401610dbf565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546fffffffffffffffffffffffffffffffff80821683527001000000000000000000000000000000009091041691810191909152815180830190925280519091908190613ded9087906148b4565b6fffffffffffffffffffffffffffffffff168152602001858360200151613e1491906148b4565b6fffffffffffffffffffffffffffffffff9081169091526001600160a01b03808816600081815260046020908152604080832087519783015187167001000000000000000000000000000000000297909616969096179094558451808601865291825267ffffffffffffffff428116838601908152888352600390955294812091518254945190951674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090941694909216939093179190911790915582905b85811015613fc95760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4613f376000888488613851565b613fa95760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610dbf565b81613fb381614a4e565b9250508080613fc190614a4e565b915050613eea565b50600081905561324d565b600082613fe18584614011565b14949350505050565b600081831115613ffa5781611921565b5090919050565b600081831015613ffa5781611921565b600081815b845181101561407d57600085828151811061403357614033614af9565b60200260200101519050808311614059576000838152602082905260409020925061406a565b600081815260208490526040902092505b508061407581614a4e565b915050614016565b509392505050565b828054614091906149fa565b90600052602060002090601f0160209004810192826140b357600085556140f9565b82601f106140cc57805160ff19168380011785556140f9565b828001600101855582156140f9579182015b828111156140f95782518255916020019190600101906140de565b50611da49291505b80821115611da45760008155600101614101565b600067ffffffffffffffff83111561412f5761412f614b28565b61416060207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011601614865565b905082815283838301111561417457600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461217457600080fd5b600082601f8301126141b357600080fd5b8135602067ffffffffffffffff8211156141cf576141cf614b28565b8160051b6141de828201614865565b8381528281019086840183880185018910156141f957600080fd5b600093505b8584101561421c5780358352600193909301929184019184016141fe565b50979650505050505050565b8035801515811461217457600080fd5b60006020828403121561424a57600080fd5b6119218261418b565b6000806040838503121561426657600080fd5b61426f8361418b565b915061427d6020840161418b565b90509250929050565b60008060006060848603121561429b57600080fd5b6142a48461418b565b92506142b26020850161418b565b9150604084013590509250925092565b600080600080608085870312156142d857600080fd5b6142e18561418b565b93506142ef6020860161418b565b925060408501359150606085013567ffffffffffffffff81111561431257600080fd5b8501601f8101871361432357600080fd5b61433287823560208401614115565b91505092959194509250565b6000806040838503121561435157600080fd5b61435a8361418b565b915061427d60208401614228565b6000806040838503121561437b57600080fd5b6143848361418b565b946020939093013593505050565b60008060008060008060008060006101208a8c0312156143b157600080fd5b6143ba8a61418b565b985060208a0135975060408a0135965060608a0135955060808a013594506143e460a08b01614228565b93506143f260c08b01614228565b925061440060e08b01614228565b915061440f6101008b01614228565b90509295985092959850929598565b60006020828403121561443057600080fd5b813567ffffffffffffffff81111561444757600080fd5b613382848285016141a2565b6000806040838503121561446657600080fd5b823567ffffffffffffffff81111561447d57600080fd5b614489858286016141a2565b92505061427d6020840161418b565b6000602082840312156144aa57600080fd5b61192182614228565b6000602082840312156144c557600080fd5b5035919050565b6000602082840312156144de57600080fd5b813561192181614b57565b6000602082840312156144fb57600080fd5b815161192181614b57565b60006020828403121561451857600080fd5b813567ffffffffffffffff81111561452f57600080fd5b8201601f8101841361454057600080fd5b61338284823560208401614115565b600080600080600080600080610100898b03121561456c57600080fd5b883597506020890135965060408901359550606089013594506080890135935060a0890135925061459f60c08a01614228565b915060e089013590509295985092959890939650565b60008060008060008060008060008060006101608c8e0312156145d757600080fd5b505089359b60208b01359b5060408b01359a60608101359a506080810135995060a0810135985060c0810135975060e0810135965061010081013595506101208101359450610140013592509050565b60008060008060008060c0878903121561464057600080fd5b86359550602087013594506040870135935060608701359250608087013567ffffffffffffffff8116811461467457600080fd5b915061468260a08801614228565b90509295509295509295565b600081518084526146a6816020860160208601614999565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600081516146ea818560208601614999565b9290920192915050565b600080845481600182811c91508083168061471057607f831692505b6020808410821415614749577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b81801561475d576001811461478c576147b9565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008616895284890196506147b9565b60008b81526020902060005b868110156147b15781548b820152908501908301614798565b505084890196505b5050505050506147c981856146d8565b95945050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152614804608083018461468e565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156148465783518352928401929184019160010161482a565b50909695505050505050565b602081526000611921602083018461468e565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156148ac576148ac614b28565b604052919050565b60006fffffffffffffffffffffffffffffffff8083168185168083038211156148df576148df614a9b565b01949350505050565b600082198211156148fb576148fb614a9b565b500190565b60008261490f5761490f614aca565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561494c5761494c614a9b565b500290565b60006fffffffffffffffffffffffffffffffff8381169083168181101561497a5761497a614a9b565b039392505050565b60008282101561499457614994614a9b565b500390565b60005b838110156149b457818101518382015260200161499c565b838111156127475750506000910152565b6000816149d4576149d4614a9b565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600181811c90821680614a0e57607f821691505b60208210811415614a48577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614a8057614a80614a9b565b5060010190565b600082614a9657614a96614aca565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081168114612ccc57600080fdfea264697066735822122039ac82b84c4f998a331431e890513d00a5585a7f14a1472aac535aef71a8bd8164736f6c63430008070033
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.