Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 2,925 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 20839790 | 60 days ago | IN | 0 ETH | 0.00045953 | ||||
Set Approval For... | 17961335 | 463 days ago | IN | 0 ETH | 0.00056597 | ||||
Safe Transfer Fr... | 17961233 | 463 days ago | IN | 0 ETH | 0.00207966 | ||||
Set Approval For... | 17303839 | 555 days ago | IN | 0 ETH | 0.00118633 | ||||
Set Approval For... | 16976536 | 602 days ago | IN | 0 ETH | 0.00201078 | ||||
Set Approval For... | 16525784 | 665 days ago | IN | 0 ETH | 0.00067651 | ||||
Safe Transfer Fr... | 16525767 | 665 days ago | IN | 0 ETH | 0.00076348 | ||||
Set Approval For... | 16275902 | 700 days ago | IN | 0 ETH | 0.00056182 | ||||
Set Approval For... | 16261175 | 702 days ago | IN | 0 ETH | 0.00061676 | ||||
Set Approval For... | 16261081 | 702 days ago | IN | 0 ETH | 0.00057724 | ||||
Set Approval For... | 16260008 | 702 days ago | IN | 0 ETH | 0.00050155 | ||||
Set Approval For... | 16259895 | 702 days ago | IN | 0 ETH | 0.00052698 | ||||
Set Approval For... | 16258701 | 702 days ago | IN | 0 ETH | 0.00052847 | ||||
Safe Transfer Fr... | 16187145 | 712 days ago | IN | 0 ETH | 0.0013608 | ||||
Set Approval For... | 15760566 | 772 days ago | IN | 0 ETH | 0.00051196 | ||||
Set Approval For... | 15747441 | 774 days ago | IN | 0 ETH | 0.00115224 | ||||
Set Approval For... | 15625524 | 791 days ago | IN | 0 ETH | 0.00134708 | ||||
Set Approval For... | 15513635 | 807 days ago | IN | 0 ETH | 0.0003549 | ||||
Set Approval For... | 15436188 | 820 days ago | IN | 0 ETH | 0.00077795 | ||||
Transfer From | 15407134 | 824 days ago | IN | 0 ETH | 0.00037011 | ||||
Set Approval For... | 15389317 | 827 days ago | IN | 0 ETH | 0.00049528 | ||||
Set Approval For... | 15304430 | 840 days ago | IN | 0 ETH | 0.00099977 | ||||
Set Approval For... | 15286708 | 843 days ago | IN | 0 ETH | 0.0003775 | ||||
Set Approval For... | 15283060 | 844 days ago | IN | 0 ETH | 0.00065677 | ||||
Transfer From | 15282630 | 844 days ago | IN | 0 ETH | 0.00061444 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
14811469 | 921 days ago | 2.6226 ETH | ||||
14811469 | 921 days ago | 2.6226 ETH | ||||
14790276 | 924 days ago | 0.0188 ETH | ||||
14790273 | 924 days ago | 0.0188 ETH | ||||
14790269 | 924 days ago | 0.0564 ETH | ||||
14790264 | 924 days ago | 0.0564 ETH | ||||
14790264 | 924 days ago | 0.0752 ETH | ||||
14790264 | 924 days ago | 0.0564 ETH | ||||
14790264 | 924 days ago | 0.0752 ETH | ||||
14790264 | 924 days ago | 0.0752 ETH | ||||
14790264 | 924 days ago | 0.0752 ETH | ||||
14790264 | 924 days ago | 0.0752 ETH | ||||
14790263 | 924 days ago | 17.343 ETH | ||||
14790263 | 924 days ago | 17.343 ETH | ||||
14790263 | 924 days ago | 0.0188 ETH | ||||
14790263 | 924 days ago | 0.0188 ETH | ||||
14790263 | 924 days ago | 0.0188 ETH | ||||
14790263 | 924 days ago | 0.0376 ETH | ||||
14790244 | 924 days ago | 0.1316 ETH | ||||
14790244 | 924 days ago | 0.1316 ETH | ||||
14790244 | 924 days ago | 0.188 ETH | ||||
14790244 | 924 days ago | 0.1128 ETH | ||||
14790243 | 924 days ago | 0.188 ETH | ||||
14790243 | 924 days ago | 0.1692 ETH | ||||
14790243 | 924 days ago | 0.188 ETH |
Loading...
Loading
Contract Name:
MetaStoreNFT
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT AND GPL-3.0 pragma solidity ^0.8.0; import "./ERC721A_METASTORE.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@chainlink/contracts/src/v0.8/interfaces/LinkTokenInterface.sol"; import "@chainlink/contracts/src/v0.8/interfaces/VRFCoordinatorV2Interface.sol"; import "@chainlink/contracts/src/v0.8/VRFConsumerBaseV2.sol"; interface IStateTunnel { function sendTransferMessage(bytes calldata _data) external; } error PayComissionFailed(); error NonValidRandomWords(uint256 randomNumber); contract MetaStoreNFT is ERC721A_METASTORE, VRFConsumerBaseV2, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; uint256 public publicSalePrice = 0.188 ether; uint256 public publicSaleTime; uint256 public preSalePrice = 0.168 ether; uint256 public preSaleTime; uint256 public maxTeamReverseNum = 200; uint256 public maxMetaStoreSupply = 6666; // available 6666 - 200 = 6466 uint256 public maxMergeNum = 2222; // 6666 / 3 = 2222 uint256 public maxTotalSupply = maxMetaStoreSupply + maxMergeNum; uint256 public maxMintAmount = 20; uint256 public nftPerAddressLimit = 1; bool public paused = false; bool public mergeIsOpen = false; bool public isPreSaleActive = false; bool public isPublicSaleActive = false; bool private isStateTunnelEnable = false; IStateTunnel private stateTunnel; event SetTokenLevel(uint16 tokenId, uint8 level); uint8[] levelList = [0]; // index 0 is un-used mapping(uint16 => uint8) mergedTokenLevelMap; uint8 public mergedBonusLevel = 3; constructor( address _vrfCoordinator, address _link, string memory _name, string memory _symbol ) ERC721A_METASTORE(_name, _symbol) VRFConsumerBaseV2(_vrfCoordinator) { COORDINATOR = VRFCoordinatorV2Interface(_vrfCoordinator); LINKTOKEN = LinkTokenInterface(_link); teamReserve(1); } function _startTokenId() internal pure override returns (uint256) { return 1; } function _startMergeTokenId() internal view override returns (uint256) { return maxMetaStoreSupply + 1; } function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal override { if(isStateTunnelEnable) { bytes memory parameter = abi.encode(from, to, startTokenId, quantity); stateTunnel.sendTransferMessage(parameter); } } function encode(address _receiver, uint256 tokenId, address newOwner) internal view returns (bytes memory) { bytes memory parameter = abi.encode(tokenId, newOwner); bytes memory data = abi.encode(msg.sender, _receiver, parameter); return data; } function currentIndex() public view returns (uint256) { return _currentIndex; } function currentMergedIndex() public view returns (uint256) { return _currentMergedIndex; } function teamReserve(uint256 _mintAmount) public onlyOwner { require(_mintAmount > 0, "need to mint at least 1 NFT"); require(!paused, "the mint is open"); require( _numberMinted(owner()) + _mintAmount <= maxTeamReverseNum, "exceeds max team reversed NFTs" ); require(totalNormalMinted() + _mintAmount <= maxMetaStoreSupply, "exceeds max supply"); bool allowCommission = true; _safeMint(owner(), _mintAmount, allowCommission); } function preSaleMint(uint256 _mintAmount, bytes32[] calldata proof_) public payable { require(_mintAmount > 0, "need to mint at least 1 NFT"); require(block.timestamp >= preSaleTime, "not pre-sale time yet"); require(tx.origin == msg.sender, "contracts not allowed"); require(!paused, "the contract is paused"); require(isPreSaleActive, "minting not enabled"); require(totalNormalMinted() + _mintAmount <= maxMetaStoreSupply, "exceeds max supply"); require( _numberMinted(msg.sender) + _mintAmount <= nftPerAddressLimit, "exceeds max available NFTs per address" ); require(checkAllowlist(proof_), "address is not on the whitelist"); uint256 cost = preSalePrice * _mintAmount; require(msg.value == cost, "wrong payment amount"); bool allowCommission = true; _safeMint(msg.sender, _mintAmount, allowCommission); } function publicMint(uint256 _mintAmount, uint16 _invitationCode) public payable { require(_mintAmount > 0, "need to mint at least 1 NFT"); require(_mintAmount <= maxMintAmount, "max mint amount per session exceeded"); require(block.timestamp >= publicSaleTime, "It is not public sale time"); require(tx.origin == msg.sender, "contracts not allowed"); require(!paused, "the contract is paused"); require(isPublicSaleActive, "minting not enabled"); require(totalNormalMinted() + _mintAmount <= maxMetaStoreSupply, "exceeds max supply"); uint256 cost = publicSalePrice * _mintAmount; require(msg.value == cost, "wrong payment amount"); bool allowCommission = false; _safeMint(msg.sender, _mintAmount, allowCommission); TokenOwnership memory _ownership = _ownershipOf(_invitationCode); require(_ownership.allowCommission, "wrong invitation code"); uint256 commission = cost * 10 / 100; // commission is 10% require(commission < cost, "commission error"); (bool success, ) = payable(_ownership.addr).call{ value: commission }(""); require(success, "failed to pay commission"); } function merge(uint16[3] calldata tokenIDs) public returns (uint16) { require(mergeIsOpen, "the merge is not open"); require(totalMergedMinted() <= maxMergeNum, "excceed max merge amount"); require(tokenIDs.length == 3, "need 3 NFTs"); require(tokenIDs[0] != tokenIDs[1] && tokenIDs[0] != tokenIDs[2] && tokenIDs[1] != tokenIDs[2], "tokenIDs must be different"); require(ownerOf(tokenIDs[0]) == msg.sender, "tokenIDs must be owned"); require(ownerOf(tokenIDs[1]) == msg.sender, "tokenIDs must be owned"); require(ownerOf(tokenIDs[2]) == msg.sender, "tokenIDs must be owned"); require(tokenIDs[0] <= maxMetaStoreSupply, "tokenIDs must be valid"); require(tokenIDs[1] <= maxMetaStoreSupply, "tokenIDs must be valid"); require(tokenIDs[2] <= maxMetaStoreSupply, "tokenIDs must be valid"); uint8 newLevel = 0; for (uint256 i = 0; i < tokenIDs.length; i++) { newLevel += tokenLevel(tokenIDs[i]); _burn(tokenIDs[i], true); } newLevel += mergedBonusLevel; bool allowCommission = true; _safeMergeMint(msg.sender, allowCommission); uint16 tokenId = uint16(_currentMergedIndex - 1); mergedTokenLevelMap[tokenId] = newLevel; return tokenId; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString(), baseExtension)) : ""; } function tokenLevel(uint16 _tokenId) public view returns (uint8) { require(_exists(uint256(_tokenId)), "ERC721Metadata: token level query for nonexistent token"); if(isMergedToken(_tokenId)) { return mergedTokenLevelMap[_tokenId]; } require(levelList[_tokenId] > 0, "Still not be revealed yet"); return levelList[_tokenId]; } // VRF VRFCoordinatorV2Interface COORDINATOR; LinkTokenInterface LINKTOKEN; uint64 s_subscriptionId; bytes32 keyHash = 0x8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef; uint32 callbackGasLimit = 1000000; uint16 requestConfirmations = 3; uint256[] public s_randomWords; uint256 public s_requestId; function setSubscriptionId(uint64 subscriptionId) public onlyOwner { s_subscriptionId = subscriptionId; } function setKeyHash(bytes32 _keyHash) public onlyOwner { keyHash = _keyHash; } function setVrfCallbackGasLimit(uint32 _callbackGasLimit) public onlyOwner { callbackGasLimit = _callbackGasLimit; } function requestRandomWords(uint32 numWords) external onlyOwner { // Will revert if subscription is not set and funded. s_requestId = COORDINATOR.requestRandomWords( keyHash, s_subscriptionId, requestConfirmations, callbackGasLimit, numWords ); } function fulfillRandomWords( uint256, /* requestId */ uint256[] memory randomWords ) internal override { s_randomWords = randomWords; } // Reveal uint16 public unrevealAmount = uint16(maxMetaStoreSupply); function isAllTokenRevealed() public view returns (bool) { return unrevealAmount == 0; } function revealTokenLevel(uint16 amount, uint8 ridx) external onlyOwner { require(s_randomWords[ridx] > 0, "random word is not set"); require(amount > 0, "amount must be greater than 0"); require(!isAllTokenRevealed(), "All tokens are revealed"); uint16 start = uint16(maxMetaStoreSupply) - unrevealAmount + 1; uint16 end = start + amount - 1; for (uint16 tokenId = start; tokenId <= end; tokenId++) { uint256 rn = uint256(keccak256(abi.encode(s_randomWords[ridx], tokenId))); uint8 level = getRandomLevel(rn); levelList.push(level); emit SetTokenLevel(tokenId, level); } unrevealAmount -= amount; } function getRandomLevel(uint256 randomNumber) internal pure returns (uint8) { uint256 raw = (randomNumber % 100000); if(raw < 45000) { // 45% return 1; } else if(raw < 75000) { // 30% return 2; } else if(raw < 90000) { // 15% return 3; } else if(raw < 97500) { // 7.5% return 4; } else if(raw < 100000) { // 2.5% return 5; } else { revert NonValidRandomWords(randomNumber); } } //only owner function setNftPerAddressLimit(uint256 _limit) public onlyOwner { nftPerAddressLimit = _limit; } function setPreSalePrice(uint256 _newPreSalePrice) public onlyOwner { preSalePrice = _newPreSalePrice; } function setPublicSalePrice(uint256 _newPublicSalePrice) public onlyOwner { publicSalePrice = _newPublicSalePrice; } function setMaxMintAmount(uint256 _newMaxMintAmount) public onlyOwner { maxMintAmount = _newMaxMintAmount; } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } function setBaseExtension(string memory _newBaseExtension) public onlyOwner { baseExtension = _newBaseExtension; } function setPause(bool _state) public onlyOwner { paused = _state; } function setMergeMode(bool _state) public onlyOwner { mergeIsOpen = _state; } function setIsPreSaleActive(bool _state) public onlyOwner { isPreSaleActive = _state; } function setIsPublicSaleActive(bool _state) public onlyOwner { isPublicSaleActive = _state; } function setPublicSaleTime(uint256 _publicSaleTime) external onlyOwner { publicSaleTime = _publicSaleTime; } function setPreSaleTime(uint256 _preSaleTime) external onlyOwner { preSaleTime = _preSaleTime; } function setMergedBonusLevel(uint8 _mergedBonusLevel) public onlyOwner { mergedBonusLevel = _mergedBonusLevel; } function withdraw(uint256 amount) public onlyOwner { require(amount <= address(this).balance, "Not enough balance"); uint256 halfBalance = address(this).balance * 5 / 10; (bool success1, ) = payable(0xAB35A2578c26314b9244831bdB4B044Cd1DBA4E0).call{ value: halfBalance }(""); (bool success2, ) = payable(0x85587426C2154AB3c43452a7D8E8ee40020A2900).call{ value: halfBalance }(""); require(success1, "failed to withdraw money (1)"); require(success2, "failed to withdraw money (2)"); } function setStateTunnel(address _stateTunnel) public onlyOwner { stateTunnel = IStateTunnel(_stateTunnel); } function setStateTunnelEnabled(bool _enabled) public onlyOwner { isStateTunnelEnable = _enabled; } // bytes32 private merkleRoot; function checkAllowlist(bytes32[] calldata proof) public view returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); return MerkleProof.verify(proof, merkleRoot, leaf); } function checkAllowlist(address addr, bytes32[] calldata proof) public view returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(addr)); return MerkleProof.verify(proof, merkleRoot, leaf); } function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner { merkleRoot = _merkleRoot; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** **************************************************************************** * @notice Interface for contracts using VRF randomness * ***************************************************************************** * @dev PURPOSE * * @dev Reggie the Random Oracle (not his real job) wants to provide randomness * @dev to Vera the verifier in such a way that Vera can be sure he's not * @dev making his output up to suit himself. Reggie provides Vera a public key * @dev to which he knows the secret key. Each time Vera provides a seed to * @dev Reggie, he gives back a value which is computed completely * @dev deterministically from the seed and the secret key. * * @dev Reggie provides a proof by which Vera can verify that the output was * @dev correctly computed once Reggie tells it to her, but without that proof, * @dev the output is indistinguishable to her from a uniform random sample * @dev from the output space. * * @dev The purpose of this contract is to make it easy for unrelated contracts * @dev to talk to Vera the verifier about the work Reggie is doing, to provide * @dev simple access to a verifiable source of randomness. It ensures 2 things: * @dev 1. The fulfillment came from the VRFCoordinator * @dev 2. The consumer contract implements fulfillRandomWords. * ***************************************************************************** * @dev USAGE * * @dev Calling contracts must inherit from VRFConsumerBase, and can * @dev initialize VRFConsumerBase's attributes in their constructor as * @dev shown: * * @dev contract VRFConsumer { * @dev constructor(<other arguments>, address _vrfCoordinator, address _link) * @dev VRFConsumerBase(_vrfCoordinator) public { * @dev <initialization with other arguments goes here> * @dev } * @dev } * * @dev The oracle will have given you an ID for the VRF keypair they have * @dev committed to (let's call it keyHash). Create subscription, fund it * @dev and your consumer contract as a consumer of it (see VRFCoordinatorInterface * @dev subscription management functions). * @dev Call requestRandomWords(keyHash, subId, minimumRequestConfirmations, * @dev callbackGasLimit, numWords), * @dev see (VRFCoordinatorInterface for a description of the arguments). * * @dev Once the VRFCoordinator has received and validated the oracle's response * @dev to your request, it will call your contract's fulfillRandomWords method. * * @dev The randomness argument to fulfillRandomWords is a set of random words * @dev generated from your requestId and the blockHash of the request. * * @dev If your contract could have concurrent requests open, you can use the * @dev requestId returned from requestRandomWords to track which response is associated * @dev with which randomness request. * @dev See "SECURITY CONSIDERATIONS" for principles to keep in mind, * @dev if your contract could have multiple requests in flight simultaneously. * * @dev Colliding `requestId`s are cryptographically impossible as long as seeds * @dev differ. * * ***************************************************************************** * @dev SECURITY CONSIDERATIONS * * @dev A method with the ability to call your fulfillRandomness method directly * @dev could spoof a VRF response with any random value, so it's critical that * @dev it cannot be directly called by anything other than this base contract * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method). * * @dev For your users to trust that your contract's random behavior is free * @dev from malicious interference, it's best if you can write it so that all * @dev behaviors implied by a VRF response are executed *during* your * @dev fulfillRandomness method. If your contract must store the response (or * @dev anything derived from it) and use it later, you must ensure that any * @dev user-significant behavior which depends on that stored value cannot be * @dev manipulated by a subsequent VRF request. * * @dev Similarly, both miners and the VRF oracle itself have some influence * @dev over the order in which VRF responses appear on the blockchain, so if * @dev your contract could have multiple VRF requests in flight simultaneously, * @dev you must ensure that the order in which the VRF responses arrive cannot * @dev be used to manipulate your contract's user-significant behavior. * * @dev Since the block hash of the block which contains the requestRandomness * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful * @dev miner could, in principle, fork the blockchain to evict the block * @dev containing the request, forcing the request to be included in a * @dev different block with a different hash, and therefore a different input * @dev to the VRF. However, such an attack would incur a substantial economic * @dev cost. This cost scales with the number of blocks the VRF oracle waits * @dev until it calls responds to a request. It is for this reason that * @dev that you can signal to an oracle you'd like them to wait longer before * @dev responding to the request (however this is not enforced in the contract * @dev and so remains effective only in the case of unmodified oracle software). */ abstract contract VRFConsumerBaseV2 { error OnlyCoordinatorCanFulfill(address have, address want); address private immutable vrfCoordinator; /** * @param _vrfCoordinator address of VRFCoordinator contract */ constructor(address _vrfCoordinator) { vrfCoordinator = _vrfCoordinator; } /** * @notice fulfillRandomness handles the VRF response. Your contract must * @notice implement it. See "SECURITY CONSIDERATIONS" above for important * @notice principles to keep in mind when implementing your fulfillRandomness * @notice method. * * @dev VRFConsumerBaseV2 expects its subcontracts to have a method with this * @dev signature, and will call it once it has verified the proof * @dev associated with the randomness. (It is triggered via a call to * @dev rawFulfillRandomness, below.) * * @param requestId The Id initially returned by requestRandomness * @param randomWords the VRF output expanded to the requested number of words */ function fulfillRandomWords(uint256 requestId, uint256[] memory randomWords) internal virtual; // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF // proof. rawFulfillRandomness then calls fulfillRandomness, after validating // the origin of the call function rawFulfillRandomWords(uint256 requestId, uint256[] memory randomWords) external { if (msg.sender != vrfCoordinator) { revert OnlyCoordinatorCanFulfill(msg.sender, vrfCoordinator); } fulfillRandomWords(requestId, randomWords); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface VRFCoordinatorV2Interface { /** * @notice Get configuration relevant for making requests * @return minimumRequestConfirmations global min for request confirmations * @return maxGasLimit global max for request gas limit * @return s_provingKeyHashes list of registered key hashes */ function getRequestConfig() external view returns ( uint16, uint32, bytes32[] memory ); /** * @notice Request a set of random words. * @param keyHash - Corresponds to a particular oracle job which uses * that key for generating the VRF proof. Different keyHash's have different gas price * ceilings, so you can select a specific one to bound your maximum per request cost. * @param subId - The ID of the VRF subscription. Must be funded * with the minimum subscription balance required for the selected keyHash. * @param minimumRequestConfirmations - How many blocks you'd like the * oracle to wait before responding to the request. See SECURITY CONSIDERATIONS * for why you may want to request more. The acceptable range is * [minimumRequestBlockConfirmations, 200]. * @param callbackGasLimit - How much gas you'd like to receive in your * fulfillRandomWords callback. Note that gasleft() inside fulfillRandomWords * may be slightly less than this amount because of gas used calling the function * (argument decoding etc.), so you may need to request slightly more than you expect * to have inside fulfillRandomWords. The acceptable range is * [0, maxGasLimit] * @param numWords - The number of uint256 random values you'd like to receive * in your fulfillRandomWords callback. Note these numbers are expanded in a * secure way by the VRFCoordinator from a single random value supplied by the oracle. * @return requestId - A unique identifier of the request. Can be used to match * a request to a response in fulfillRandomWords. */ function requestRandomWords( bytes32 keyHash, uint64 subId, uint16 minimumRequestConfirmations, uint32 callbackGasLimit, uint32 numWords ) external returns (uint256 requestId); /** * @notice Create a VRF subscription. * @return subId - A unique subscription id. * @dev You can manage the consumer set dynamically with addConsumer/removeConsumer. * @dev Note to fund the subscription, use transferAndCall. For example * @dev LINKTOKEN.transferAndCall( * @dev address(COORDINATOR), * @dev amount, * @dev abi.encode(subId)); */ function createSubscription() external returns (uint64 subId); /** * @notice Get a VRF subscription. * @param subId - ID of the subscription * @return balance - LINK balance of the subscription in juels. * @return reqCount - number of requests for this subscription, determines fee tier. * @return owner - owner of the subscription. * @return consumers - list of consumer address which are able to use this subscription. */ function getSubscription(uint64 subId) external view returns ( uint96 balance, uint64 reqCount, address owner, address[] memory consumers ); /** * @notice Request subscription owner transfer. * @param subId - ID of the subscription * @param newOwner - proposed new owner of the subscription */ function requestSubscriptionOwnerTransfer(uint64 subId, address newOwner) external; /** * @notice Request subscription owner transfer. * @param subId - ID of the subscription * @dev will revert if original owner of subId has * not requested that msg.sender become the new owner. */ function acceptSubscriptionOwnerTransfer(uint64 subId) external; /** * @notice Add a consumer to a VRF subscription. * @param subId - ID of the subscription * @param consumer - New consumer which can use the subscription */ function addConsumer(uint64 subId, address consumer) external; /** * @notice Remove a consumer from a VRF subscription. * @param subId - ID of the subscription * @param consumer - Consumer to remove from the subscription */ function removeConsumer(uint64 subId, address consumer) external; /** * @notice Cancel a subscription * @param subId - ID of the subscription * @param to - Where to send the remaining LINK to */ function cancelSubscription(uint64 subId, address to) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface LinkTokenInterface { function allowance(address owner, address spender) external view returns (uint256 remaining); function approve(address spender, uint256 value) external returns (bool success); function balanceOf(address owner) external view returns (uint256 balance); function decimals() external view returns (uint8 decimalPlaces); function decreaseApproval(address spender, uint256 addedValue) external returns (bool success); function increaseApproval(address spender, uint256 subtractedValue) external; function name() external view returns (string memory tokenName); function symbol() external view returns (string memory tokenSymbol); function totalSupply() external view returns (uint256 totalTokensIssued); function transfer(address to, uint256 value) external returns (bool success); function transferAndCall( address to, uint256 value, bytes calldata data ) external returns (bool success); function transferFrom( address from, address to, uint256 value ) external returns (bool success); }
// 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 (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 // Creator: Chiru Labs pragma solidity ^0.8.4; 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"; import "@openzeppelin/contracts/utils/Counters.sol"; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintedQueryForZeroAddress(); error BurnedQueryForZeroAddress(); error AuxQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerQueryForNonexistentToken(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A_METASTORE is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; bool allowCommission; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } // The tokenId of the next token to be minted. uint256 internal _currentIndex; uint256 internal _currentMergedIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _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; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); _currentMergedIndex = _startMergeTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } function _startMergeTokenId() internal view virtual returns (uint256) { return 10001; } function isMergedToken(uint256 tokenId) public view returns (bool) { return tokenId >= _startMergeTokenId(); } /** * @dev See {IERC721Enumerable-totalSupply}. * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return totalNormalMinted() + totalMergedMinted() - _burnCounter; } } function totalNormalMinted() public view returns (uint256) { unchecked { return (_currentIndex - _startTokenId()); } } function totalMergedMinted() public view returns (uint256) { unchecked { return (_currentMergedIndex - _startMergeTokenId()); } } /** * @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 || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { if (owner == address(0)) revert MintedQueryForZeroAddress(); return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { if (owner == address(0)) revert BurnedQueryForZeroAddress(); return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { if (owner == address(0)) revert AuxQueryForZeroAddress(); return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { if (owner == address(0)) revert AuxQueryForZeroAddress(); _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; (uint256 startIndex, uint256 endIndex) = _indexRange(curr); unchecked { if (startIndex <= curr && curr < endIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } function _indexRange(uint256 tokenId) internal view returns (uint256, uint256) { bool isMerged = isMergedToken(tokenId); uint256 startIndex = isMerged ? _startMergeTokenId() : _startTokenId(); uint256 endIndex = isMerged ? _currentMergedIndex : _currentIndex; return (startIndex, endIndex); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } function isAllowCommission(uint256 tokenId) public view returns (bool) { return _ownershipOf(tokenId).allowCommission; } /** * @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) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); 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_METASTORE.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _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 virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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) { (uint256 startIndex, uint256 endIndex) = _indexRange(tokenId); return startIndex <= tokenId && tokenId < endIndex && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity, bool allowCommission) internal { _safeMint(to, quantity, "", allowCommission); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data, bool allowCommission ) internal { _mint(to, quantity, _data, true, allowCommission); } function _safeMergeMint( address to, bool allowCommission ) internal { _mergeMint(to, 1, "", true, allowCommission); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe, bool allowCommission ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); _ownerships[startTokenId].allowCommission = allowCommission; uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (safe && to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex != end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex != end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } function _mergeMint( address to, uint256 quantity, bytes memory _data, bool safe, bool allowCommission ) internal { uint256 startTokenId = _currentMergedIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); _ownerships[startTokenId].allowCommission = allowCommission; uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (safe && to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex != end); // Reentrancy protection if (_currentMergedIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex != end); } _currentMergedIndex = 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); (uint256 startIndex, uint256 endIndex) = _indexRange(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || isApprovedForAll(prevOwnership.addr, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender"s balance is impossible because we check for // ownership above and the recipient"s balance can"t realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId].addr = to; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); _ownerships[tokenId].allowCommission = prevOwnership.allowCommission; // 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)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < endIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; _ownerships[nextTokenId].allowCommission = prevOwnership.allowCommission; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev This is equivalent to _burn(tokenId, false) */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); (uint256 startIndex, uint256 endIndex) = _indexRange(tokenId); if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || isApprovedForAll(prevOwnership.addr, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender"s balance is impossible because we check for // ownership above and the recipient"s balance can"t realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[prevOwnership.addr].balance -= 1; _addressData[prevOwnership.addr].numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. _ownerships[tokenId].addr = prevOwnership.addr; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); _ownerships[tokenId].allowCommission = prevOwnership.allowCommission; _ownerships[tokenId].burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn 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)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < endIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; _ownerships[nextTokenId].allowCommission = prevOwnership.allowCommission; } } } emit Transfer(prevOwnership.addr, address(0), tokenId); _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @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); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { 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 TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`"s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`"s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// 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": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_vrfCoordinator","type":"address"},{"internalType":"address","name":"_link","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MintedQueryForZeroAddress","type":"error"},{"inputs":[{"internalType":"uint256","name":"randomNumber","type":"uint256"}],"name":"NonValidRandomWords","type":"error"},{"inputs":[{"internalType":"address","name":"have","type":"address"},{"internalType":"address","name":"want","type":"address"}],"name":"OnlyCoordinatorCanFulfill","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","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":false,"internalType":"uint16","name":"tokenId","type":"uint16"},{"indexed":false,"internalType":"uint8","name":"level","type":"uint8"}],"name":"SetTokenLevel","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"checkAllowlist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"checkAllowlist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentMergedIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isAllTokenRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isAllowCommission","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isMergedToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPreSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMergeNum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMetaStoreSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTeamReverseNum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16[3]","name":"tokenIDs","type":"uint16[3]"}],"name":"merge","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mergeIsOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mergedBonusLevel","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftPerAddressLimit","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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"}],"name":"preSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"preSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"uint16","name":"_invitationCode","type":"uint16"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"requestId","type":"uint256"},{"internalType":"uint256[]","name":"randomWords","type":"uint256[]"}],"name":"rawFulfillRandomWords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"numWords","type":"uint32"}],"name":"requestRandomWords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"amount","type":"uint16"},{"internalType":"uint8","name":"ridx","type":"uint8"}],"name":"revealTokenLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"s_randomWords","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"s_requestId","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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setIsPreSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setIsPublicSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_keyHash","type":"bytes32"}],"name":"setKeyHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxMintAmount","type":"uint256"}],"name":"setMaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setMergeMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_mergedBonusLevel","type":"uint8"}],"name":"setMergedBonusLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setNftPerAddressLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPreSalePrice","type":"uint256"}],"name":"setPreSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_preSaleTime","type":"uint256"}],"name":"setPreSaleTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPublicSalePrice","type":"uint256"}],"name":"setPublicSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicSaleTime","type":"uint256"}],"name":"setPublicSaleTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_stateTunnel","type":"address"}],"name":"setStateTunnel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setStateTunnelEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"subscriptionId","type":"uint64"}],"name":"setSubscriptionId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_callbackGasLimit","type":"uint32"}],"name":"setVrfCallbackGasLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"teamReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_tokenId","type":"uint16"}],"name":"tokenLevel","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"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":"totalMergedMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalNormalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"unrevealAmount","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60e0604052600560a081905264173539b7b760d91b60c09081526200002891600b919062000881565b5067029be90101c60000600c55670254db1c22440000600e5560c8601055611a0a60118190556108ae60128190556200006191620009ca565b60135560148055600160158190556016805464ffffffffff191690556040805160208101909152600081526200009b916017919062000910565b5060198054600360ff199091161790557f8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef601b55601c805465ffffffffffff19166403000f4240179055601154601f805461ffff191661ffff9092169190911790553480156200010a57600080fd5b506040516200527f3803806200527f8339810160408190526200012d9162000ae4565b83828281600390805190602001906200014892919062000881565b5080516200015e90600490602084019062000881565b5060016000556200016e620001df565b60015550506001600160a01b03166080526200018a33620001f7565b60198054610100600160a81b0319166101006001600160a01b038781169190910291909117909155601a80546001600160a01b031916918516919091179055620001d5600162000249565b5050505062000c5c565b60006011546001620001f29190620009ca565b905090565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6009546001600160a01b03163314620002a95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60008111620002fb5760405162461bcd60e51b815260206004820152601b60248201527f6e65656420746f206d696e74206174206c656173742031204e465400000000006044820152606401620002a0565b60165460ff1615620003435760405162461bcd60e51b815260206004820152601060248201526f3a34329036b4b73a1034b99037b832b760811b6044820152606401620002a0565b60105481620003646200035e6009546001600160a01b031690565b62000448565b620003709190620009ca565b1115620003c05760405162461bcd60e51b815260206004820152601e60248201527f65786365656473206d6178207465616d207265766572736564204e46547300006044820152606401620002a0565b60115481620003d26000546000190190565b620003de9190620009ca565b1115620004235760405162461bcd60e51b815260206004820152601260248201527165786365656473206d617820737570706c7960701b6044820152606401620002a0565b6001620004446200043c6009546001600160a01b031690565b8383620004a3565b5050565b60006001600160a01b03821662000472576040516335ebb31960e01b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546801000000000000000090046001600160401b031690565b620004c683836040518060200160405280600081525084620004cb60201b60201c565b505050565b620004db848484600185620004e1565b50505050565b6000546001600160a01b0386166200050b57604051622e076360e81b815260040160405180910390fd5b846200052a5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038616600081815260066020908152604080832080546001600160801b031981166001600160401b038083168d018116918217680100000000000000006001600160401b031990941690921783900481168d01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b42909216919091021760ff60e81b1916600160e81b8415150217905580808601848015620005f45750620005f4886001600160a01b0316620006c660201b62002b961760201c565b1562000674575b60405182906001600160a01b038a16906000906000805160206200525f833981519152908290a4600182019162000638906000908a9089620006d5565b62000656576040516368d2bf6b60e11b815260040160405180910390fd5b80821415620005fb5782600054146200066e57600080fd5b620006aa565b5b6040516001830192906001600160a01b038a16906000906000805160206200525f833981519152908290a48082141562000675575b506000908155620006be90878388620007c6565b505050505050565b6001600160a01b03163b151590565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906200070c90339089908890889060040162000ba2565b6020604051808303816000875af19250505080156200074a575060408051601f3d908101601f19168201909252620007479181019062000bd7565b60015b620007a9573d8080156200077b576040519150601f19603f3d011682016040523d82523d6000602084013e62000780565b606091505b508051620007a1576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b601654640100000000900460ff1615620004db57604080516001600160a01b038681166020830152858116828401526060820185905260808083018590528351808403909101815260a0830193849052601654631b9a923960e31b90945292650100000000009004169063dcd491c8906200084690849060a40162000c0a565b600060405180830381600087803b1580156200086157600080fd5b505af115801562000876573d6000803e3d6000fd5b505050505050505050565b8280546200088f9062000c1f565b90600052602060002090601f016020900481019282620008b35760008555620008fe565b82601f10620008ce57805160ff1916838001178555620008fe565b82800160010185558215620008fe579182015b82811115620008fe578251825591602001919060010190620008e1565b506200090c929150620009b3565b5090565b82805482825590600052602060002090601f01602090048101928215620008fe5791602002820160005b838211156200097a57835183826101000a81548160ff021916908360ff16021790555092602001926001016020816000010492830192600103026200093a565b8015620009a95782816101000a81549060ff02191690556001016020816000010492830192600103026200097a565b50506200090c9291505b5b808211156200090c5760008155600101620009b4565b60008219821115620009ec57634e487b7160e01b600052601160045260246000fd5b500190565b80516001600160a01b038116811462000a0957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101562000a4157818101518382015260200162000a27565b83811115620004db5750506000910152565b600082601f83011262000a6557600080fd5b81516001600160401b038082111562000a825762000a8262000a0e565b604051601f8301601f19908116603f0116810190828211818310171562000aad5762000aad62000a0e565b8160405283815286602085880101111562000ac757600080fd5b62000ada84602083016020890162000a24565b9695505050505050565b6000806000806080858703121562000afb57600080fd5b62000b0685620009f1565b935062000b1660208601620009f1565b60408601519093506001600160401b038082111562000b3457600080fd5b62000b428883890162000a53565b9350606087015191508082111562000b5957600080fd5b5062000b688782880162000a53565b91505092959194509250565b6000815180845262000b8e81602086016020860162000a24565b601f01601f19169290920160200192915050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009062000ada9083018462000b74565b60006020828403121562000bea57600080fd5b81516001600160e01b03198116811462000c0357600080fd5b9392505050565b60208152600062000c03602083018462000b74565b600181811c9082168062000c3457607f821691505b6020821081141562000c5657634e487b7160e01b600052602260045260246000fd5b50919050565b6080516145e062000c7f60003960008181610fbb0152610ffd01526145e06000f3fe6080604052600436106104315760003560e01c80636c96ced711610229578063ba7d2c761161012e578063db1d584e116100b6578063e985e9c51161007a578063e985e9c514610c36578063ea7b4f7714610c7f578063f24eb82414610c9f578063f2fde38b14610cbf578063f6eaffc814610cdf57600080fd5b8063db1d584e14610bab578063dca1182a14610bcb578063e726f2e114610bea578063e757c17d14610c0a578063e89e106a14610c2057600080fd5b8063c6682862116100fd578063c668286214610b20578063c87b56dd14610b35578063d0eb26b014610b55578063d4bc1b0514610b75578063da3ef23f14610b8b57600080fd5b8063ba7d2c7614610aaa578063bcf2457414610ac0578063bedb86fb14610ae0578063c3c8cbbe14610b0057600080fd5b80638f252424116101b15780639b6860c8116101805780639b6860c814610a145780639cec700d14610a2a5780639d044ed314610a4a578063a22cb46514610a6a578063b88d4fde14610a8a57600080fd5b80638f252424146109aa5780639591ab5d146109bf57806395d89b41146109df57806398544710146109f457600080fd5b80637cb64759116101f85780637cb64759146109235780637d7eee42146109435780638066222c146109635780638d66c064146109765780638da5cb5b1461098c57600080fd5b80636c96ced7146108b457806370a08231146108ce578063715018a6146108ee578063791a25191461090357600080fd5b806326987b601161033a5780634b922a56116102c25780636352211e116102865780636352211e1461082f578063637b39111461084f5780636578be571461086f578063693365ee146108855780636c0360eb1461089f57600080fd5b80634b922a56146107a25780634c220f6e146107c257806355f804b3146107d55780635a405c87146107f55780635c975abb1461081557600080fd5b80632f621ac8116103095780632f621ac81461070d57806332d1a5281461072d578063347ac6e41461074257806342842e0e14610762578063445f57561461078257600080fd5b806326987b60146106a257806328cad13d146106b75780632ab4d052146106d75780632e1a7d4d146106ed57600080fd5b806314a70005116103bd5780632330c3eb1161038c5780632330c3eb1461060e5780632344be0a14610640578063239c70ae1461065657806323b872dd1461066c57806325a301451461068c57600080fd5b806314a700051461059857806318160ddd146105b85780631e84c413146105cd5780631fe543e3146105ee57600080fd5b8063081812fc11610404578063081812fc146104de578063088a4ed014610516578063095ea7b3146105385780630f0e4f731461055857806311b7e5e71461057857600080fd5b806301052c8a14610436578063018ad39e1461046957806301ffc9a71461048c57806306fdde03146104bc575b600080fd5b34801561044257600080fd5b50601f546104519061ffff1681565b60405161ffff90911681526020015b60405180910390f35b34801561047557600080fd5b50600054600019015b604051908152602001610460565b34801561049857600080fd5b506104ac6104a7366004613bb5565b610cff565b6040519015158152602001610460565b3480156104c857600080fd5b506104d1610d51565b6040516104609190613c31565b3480156104ea57600080fd5b506104fe6104f9366004613c44565b610de3565b6040516001600160a01b039091168152602001610460565b34801561052257600080fd5b50610536610531366004613c44565b610e27565b005b34801561054457600080fd5b50610536610553366004613c79565b610e5f565b34801561056457600080fd5b50610536610573366004613c44565b610eed565b34801561058457600080fd5b50610536610593366004613c44565b610f1c565b3480156105a457600080fd5b506105366105b3366004613cb3565b610f4b565b3480156105c457600080fd5b5061047e610f95565b3480156105d957600080fd5b506016546104ac906301000000900460ff1681565b3480156105fa57600080fd5b50610536610609366004613d14565b610fb0565b34801561061a57600080fd5b5061062e610629366004613dd7565b611038565b60405160ff9091168152602001610460565b34801561064c57600080fd5b5061047e600d5481565b34801561066257600080fd5b5061047e60145481565b34801561067857600080fd5b50610536610687366004613df2565b6111a9565b34801561069857600080fd5b5061047e600f5481565b3480156106ae57600080fd5b5060005461047e565b3480156106c357600080fd5b506105366106d2366004613cb3565b6111b4565b3480156106e357600080fd5b5061047e60135481565b3480156106f957600080fd5b50610536610708366004613c44565b6111fc565b34801561071957600080fd5b50610536610728366004613cb3565b6113e6565b34801561073957600080fd5b5061047e61142a565b34801561074e57600080fd5b5061053661075d366004613c44565b61143d565b34801561076e57600080fd5b5061053661077d366004613df2565b61159a565b34801561078e57600080fd5b5061053661079d366004613cb3565b6115b5565b3480156107ae57600080fd5b506105366107bd366004613e3f565b6115fb565b6105366107d0366004613ea5565b61163b565b3480156107e157600080fd5b506105366107f0366004613f47565b6118f5565b34801561080157600080fd5b50610536610810366004613f8f565b611932565b34801561082157600080fd5b506016546104ac9060ff1681565b34801561083b57600080fd5b506104fe61084a366004613c44565b611978565b34801561085b57600080fd5b5061045161086a366004613fb5565b61198a565b34801561087b57600080fd5b5061047e60105481565b34801561089157600080fd5b50601f5461ffff16156104ac565b3480156108ab57600080fd5b506104d1611d37565b3480156108c057600080fd5b5060195461062e9060ff1681565b3480156108da57600080fd5b5061047e6108e9366004613fd7565b611dc5565b3480156108fa57600080fd5b50610536611e13565b34801561090f57600080fd5b5061053661091e366004613c44565b611e49565b34801561092f57600080fd5b5061053661093e366004613c44565b611e78565b34801561094f57600080fd5b5061053661095e366004613c44565b611ea7565b610536610971366004613ff2565b611ed6565b34801561098257600080fd5b5061047e60125481565b34801561099857600080fd5b506009546001600160a01b03166104fe565b3480156109b657600080fd5b5060015461047e565b3480156109cb57600080fd5b506104ac6109da36600461401e565b612288565b3480156109eb57600080fd5b506104d161230c565b348015610a0057600080fd5b50610536610a0f366004613c44565b61231b565b348015610a2057600080fd5b5061047e600c5481565b348015610a3657600080fd5b50610536610a45366004613fd7565b61234a565b348015610a5657600080fd5b506016546104ac9062010000900460ff1681565b348015610a7657600080fd5b50610536610a8536600461405f565b6123a4565b348015610a9657600080fd5b50610536610aa5366004614089565b61243a565b348015610ab657600080fd5b5061047e60155481565b348015610acc57600080fd5b506104ac610adb366004613c44565b612485565b348015610aec57600080fd5b50610536610afb366004613cb3565b612498565b348015610b0c57600080fd5b50610536610b1b366004614104565b6124d5565b348015610b2c57600080fd5b506104d16127b9565b348015610b4157600080fd5b506104d1610b50366004613c44565b6127c6565b348015610b6157600080fd5b50610536610b70366004613c44565b612894565b348015610b8157600080fd5b5061047e60115481565b348015610b9757600080fd5b50610536610ba6366004613f47565b6128c3565b348015610bb757600080fd5b506104ac610bc636600461412e565b612900565b348015610bd757600080fd5b506016546104ac90610100900460ff1681565b348015610bf657600080fd5b50610536610c05366004613f8f565b612986565b348015610c1657600080fd5b5061047e600e5481565b348015610c2c57600080fd5b5061047e601e5481565b348015610c4257600080fd5b506104ac610c51366004614167565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610c8b57600080fd5b50610536610c9a366004614191565b612a6e565b348015610cab57600080fd5b506104ac610cba366004613c44565b612ac5565b348015610ccb57600080fd5b50610536610cda366004613fd7565b612ada565b348015610ceb57600080fd5b5061047e610cfa366004613c44565b612b75565b60006001600160e01b031982166380ac58cd60e01b1480610d3057506001600160e01b03198216635b5e139f60e01b145b80610d4b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060038054610d60906141ba565b80601f0160208091040260200160405190810160405280929190818152602001828054610d8c906141ba565b8015610dd95780601f10610dae57610100808354040283529160200191610dd9565b820191906000526020600020905b815481529060010190602001808311610dbc57829003601f168201915b5050505050905090565b6000610dee82612ba5565b610e0b576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6009546001600160a01b03163314610e5a5760405162461bcd60e51b8152600401610e51906141ef565b60405180910390fd5b601455565b6000610e6a82611978565b9050806001600160a01b0316836001600160a01b03161415610e9f5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610ebf5750610ebd8133610c51565b155b15610edd576040516367d9dca160e11b815260040160405180910390fd5b610ee8838383612bed565b505050565b6009546001600160a01b03163314610f175760405162461bcd60e51b8152600401610e51906141ef565b600f55565b6009546001600160a01b03163314610f465760405162461bcd60e51b8152600401610e51906141ef565b600d55565b6009546001600160a01b03163314610f755760405162461bcd60e51b8152600401610e51906141ef565b601680549115156401000000000264ff0000000019909216919091179055565b6000600254610fa261142a565b600054600019010103905090565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461102a5760405163073e64fd60e21b81523360048201526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166024820152604401610e51565b6110348282612c49565b5050565b60006110478261ffff16612ba5565b6110b95760405162461bcd60e51b815260206004820152603760248201527f4552433732314d657461646174613a20746f6b656e206c6576656c207175657260448201527f7920666f72206e6f6e6578697374656e7420746f6b656e0000000000000000006064820152608401610e51565b6110c68261ffff16612485565b156110e5575061ffff1660009081526018602052604090205460ff1690565b600060178361ffff16815481106110fe576110fe614224565b60009182526020918290209181049091015460ff601f9092166101000a9004161161116b5760405162461bcd60e51b815260206004820152601960248201527f5374696c6c206e6f742062652072657665616c656420796574000000000000006044820152606401610e51565b60178261ffff168154811061118257611182614224565b90600052602060002090602091828204019190069054906101000a900460ff169050919050565b610ee8838383612c5c565b6009546001600160a01b031633146111de5760405162461bcd60e51b8152600401610e51906141ef565b6016805491151563010000000263ff00000019909216919091179055565b6009546001600160a01b031633146112265760405162461bcd60e51b8152600401610e51906141ef565b4781111561126b5760405162461bcd60e51b81526020600482015260126024820152714e6f7420656e6f7567682062616c616e636560701b6044820152606401610e51565b6000600a61127a476005614250565b6112849190614285565b60405190915060009073ab35a2578c26314b9244831bdb4b044cd1dba4e09083908381818185875af1925050503d80600081146112dd576040519150601f19603f3d011682016040523d82523d6000602084013e6112e2565b606091505b50506040519091506000907385587426c2154ab3c43452a7d8e8ee40020a29009084908381818185875af1925050503d806000811461133d576040519150601f19603f3d011682016040523d82523d6000602084013e611342565b606091505b50509050816113935760405162461bcd60e51b815260206004820152601c60248201527f6661696c656420746f207769746864726177206d6f6e657920283129000000006044820152606401610e51565b806113e05760405162461bcd60e51b815260206004820152601c60248201527f6661696c656420746f207769746864726177206d6f6e657920283229000000006044820152606401610e51565b50505050565b6009546001600160a01b031633146114105760405162461bcd60e51b8152600401610e51906141ef565b601680549115156101000261ff0019909216919091179055565b6000611434612eab565b60015403905090565b6009546001600160a01b031633146114675760405162461bcd60e51b8152600401610e51906141ef565b600081116114875760405162461bcd60e51b8152600401610e5190614299565b60165460ff16156114cd5760405162461bcd60e51b815260206004820152601060248201526f3a34329036b4b73a1034b99037b832b760811b6044820152606401610e51565b601054816114eb6114e66009546001600160a01b031690565b612ec1565b6114f591906142d0565b11156115435760405162461bcd60e51b815260206004820152601e60248201527f65786365656473206d6178207465616d207265766572736564204e46547300006044820152606401610e51565b601154816115546000546000190190565b61155e91906142d0565b111561157c5760405162461bcd60e51b8152600401610e51906142e8565b60016110346115936009546001600160a01b031690565b8383612f16565b610ee88383836040518060200160405280600081525061243a565b6009546001600160a01b031633146115df5760405162461bcd60e51b8152600401610e51906141ef565b60168054911515620100000262ff000019909216919091179055565b6009546001600160a01b031633146116255760405162461bcd60e51b8152600401610e51906141ef565b6019805460ff191660ff92909216919091179055565b6000831161165b5760405162461bcd60e51b8152600401610e5190614299565b600f544210156116a55760405162461bcd60e51b81526020600482015260156024820152741b9bdd081c1c994b5cd85b19481d1a5b59481e595d605a1b6044820152606401610e51565b3233146116ec5760405162461bcd60e51b815260206004820152601560248201527418dbdb9d1c9858dd1cc81b9bdd08185b1b1bddd959605a1b6044820152606401610e51565b60165460ff16156117385760405162461bcd60e51b81526020600482015260166024820152751d1a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b6044820152606401610e51565b60165462010000900460ff166117865760405162461bcd60e51b81526020600482015260136024820152721b5a5b9d1a5b99c81b9bdd08195b98589b1959606a1b6044820152606401610e51565b601154836117976000546000190190565b6117a191906142d0565b11156117bf5760405162461bcd60e51b8152600401610e51906142e8565b601554836117cc33612ec1565b6117d691906142d0565b11156118335760405162461bcd60e51b815260206004820152602660248201527f65786365656473206d617820617661696c61626c65204e46547320706572206160448201526564647265737360d01b6064820152608401610e51565b61183d8282612288565b6118895760405162461bcd60e51b815260206004820152601f60248201527f61646472657373206973206e6f74206f6e207468652077686974656c697374006044820152606401610e51565b600083600e546118999190614250565b90508034146118e15760405162461bcd60e51b81526020600482015260146024820152731ddc9bdb99c81c185e5b595b9d08185b5bdd5b9d60621b6044820152606401610e51565b60016118ee338683612f16565b5050505050565b6009546001600160a01b0316331461191f5760405162461bcd60e51b8152600401610e51906141ef565b805161103490600a906020840190613acc565b6009546001600160a01b0316331461195c5760405162461bcd60e51b8152600401610e51906141ef565b601c805463ffffffff191663ffffffff92909216919091179055565b600061198382612f31565b5192915050565b601654600090610100900460ff166119dc5760405162461bcd60e51b81526020600482015260156024820152743a34329036b2b933b29034b9903737ba1037b832b760591b6044820152606401610e51565b6012546119e761142a565b1115611a355760405162461bcd60e51b815260206004820152601860248201527f65786363656564206d6178206d6572676520616d6f756e7400000000000000006044820152606401610e51565b611a456040830160208401613dd7565b61ffff16611a566020840184613dd7565b61ffff1614158015611a8b5750611a736060830160408401613dd7565b61ffff16611a846020840184613dd7565b61ffff1614155b8015611abd5750611aa26060830160408401613dd7565b61ffff16611ab66040840160208501613dd7565b61ffff1614155b611b095760405162461bcd60e51b815260206004820152601a60248201527f746f6b656e494473206d75737420626520646966666572656e740000000000006044820152606401610e51565b33611b2d8360005b602002016020810190611b249190613dd7565b61ffff16611978565b6001600160a01b031614611b535760405162461bcd60e51b8152600401610e5190614314565b33611b5f836001611b11565b6001600160a01b031614611b855760405162461bcd60e51b8152600401610e5190614314565b33611b91836002611b11565b6001600160a01b031614611bb75760405162461bcd60e51b8152600401610e5190614314565b601154611bc76020840184613dd7565b61ffff161115611be95760405162461bcd60e51b8152600401610e5190614344565b601154611bfc6040840160208501613dd7565b61ffff161115611c1e5760405162461bcd60e51b8152600401610e5190614344565b601154611c316060840160408501613dd7565b61ffff161115611c535760405162461bcd60e51b8152600401610e5190614344565b6000805b6003811015611cd957611c88848260038110611c7557611c75614224565b6020020160208101906106299190613dd7565b611c929083614374565b9150611cc7848260038110611ca957611ca9614224565b602002016020810190611cbc9190613dd7565b61ffff166001613099565b80611cd181614399565b915050611c57565b50601954611cea9060ff1682614374565b90506001611cf833826132d3565b600060018054611d0891906143b4565b61ffff81166000908152601860205260409020805460ff191660ff959095169490941790935550909392505050565b600a8054611d44906141ba565b80601f0160208091040260200160405190810160405280929190818152602001828054611d70906141ba565b8015611dbd5780601f10611d9257610100808354040283529160200191611dbd565b820191906000526020600020905b815481529060010190602001808311611da057829003601f168201915b505050505081565b60006001600160a01b038216611dee576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b6009546001600160a01b03163314611e3d5760405162461bcd60e51b8152600401610e51906141ef565b611e4760006132f1565b565b6009546001600160a01b03163314611e735760405162461bcd60e51b8152600401610e51906141ef565b600c55565b6009546001600160a01b03163314611ea25760405162461bcd60e51b8152600401610e51906141ef565b602055565b6009546001600160a01b03163314611ed15760405162461bcd60e51b8152600401610e51906141ef565b600e55565b60008211611ef65760405162461bcd60e51b8152600401610e5190614299565b601454821115611f545760405162461bcd60e51b8152602060048201526024808201527f6d6178206d696e7420616d6f756e74207065722073657373696f6e20657863656044820152631959195960e21b6064820152608401610e51565b600d54421015611fa65760405162461bcd60e51b815260206004820152601a60248201527f4974206973206e6f74207075626c69632073616c652074696d650000000000006044820152606401610e51565b323314611fed5760405162461bcd60e51b815260206004820152601560248201527418dbdb9d1c9858dd1cc81b9bdd08185b1b1bddd959605a1b6044820152606401610e51565b60165460ff16156120395760405162461bcd60e51b81526020600482015260166024820152751d1a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b6044820152606401610e51565b6016546301000000900460ff166120885760405162461bcd60e51b81526020600482015260136024820152721b5a5b9d1a5b99c81b9bdd08195b98589b1959606a1b6044820152606401610e51565b601154826120996000546000190190565b6120a391906142d0565b11156120c15760405162461bcd60e51b8152600401610e51906142e8565b600082600c546120d19190614250565b90508034146121195760405162461bcd60e51b81526020600482015260146024820152731ddc9bdb99c81c185e5b595b9d08185b5bdd5b9d60621b6044820152606401610e51565b6000612126338583612f16565b60006121358461ffff16612f31565b905080606001516121805760405162461bcd60e51b815260206004820152601560248201527477726f6e6720696e7669746174696f6e20636f646560581b6044820152606401610e51565b6000606461218f85600a614250565b6121999190614285565b90508381106121dd5760405162461bcd60e51b815260206004820152601060248201526f31b7b6b6b4b9b9b4b7b71032b93937b960811b6044820152606401610e51565b81516040516000916001600160a01b03169083908381818185875af1925050503d8060008114612229576040519150601f19603f3d011682016040523d82523d6000602084013e61222e565b606091505b505090508061227f5760405162461bcd60e51b815260206004820152601860248201527f6661696c656420746f2070617920636f6d6d697373696f6e00000000000000006044820152606401610e51565b50505050505050565b6040516bffffffffffffffffffffffff193360601b1660208201526000908190603401604051602081830303815290604052805190602001209050612304848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506020549150849050613343565b949350505050565b606060048054610d60906141ba565b6009546001600160a01b031633146123455760405162461bcd60e51b8152600401610e51906141ef565b601b55565b6009546001600160a01b031633146123745760405162461bcd60e51b8152600401610e51906141ef565b601680546001600160a01b03909216650100000000000265010000000000600160c81b0319909216919091179055565b6001600160a01b0382163314156123ce5760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b612445848484612c5c565b6001600160a01b0383163b15158015612467575061246584848484613359565b155b156113e0576040516368d2bf6b60e11b815260040160405180910390fd5b600061248f612eab565b90911015919050565b6009546001600160a01b031633146124c25760405162461bcd60e51b8152600401610e51906141ef565b6016805460ff1916911515919091179055565b6009546001600160a01b031633146124ff5760405162461bcd60e51b8152600401610e51906141ef565b6000601d8260ff168154811061251757612517614224565b9060005260206000200154116125685760405162461bcd60e51b81526020600482015260166024820152751c985b991bdb481ddbdc99081a5cc81b9bdd081cd95d60521b6044820152606401610e51565b60008261ffff16116125bc5760405162461bcd60e51b815260206004820152601d60248201527f616d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610e51565b601f5461ffff1661260f5760405162461bcd60e51b815260206004820152601760248201527f416c6c20746f6b656e73206172652072657665616c65640000000000000000006044820152606401610e51565b601f546011546000916126289161ffff909116906143cb565b6126339060016143ee565b90506000600161264385846143ee565b61264d91906143cb565b9050815b8161ffff168161ffff161161277f576000601d8560ff168154811061267857612678614224565b9060005260206000200154826040516020016126a292919091825261ffff16602082015260400190565b6040516020818303038152906040528051906020012060001c905060006126c882613441565b60178054600181018255600091909152602081047fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c1501805460ff808516601f9094166101000a938402930219169190911790556040519091507f2ad25ceace1d78fd3633209de123ed4cb6b74a198540bc5dccb4e5102c3dc28890612762908590849061ffff92909216825260ff16602082015260400190565b60405180910390a15050808061277790614414565b915050612651565b50601f805485919060009061279990849061ffff166143cb565b92506101000a81548161ffff021916908361ffff16021790555050505050565b600b8054611d44906141ba565b60606127d182612ba5565b6128355760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610e51565b6000600a8054612844906141ba565b9050116128605760405180602001604052806000815250610d4b565b600a61286b836134d8565b600b60405160200161287f939291906144d0565b60405160208183030381529060405292915050565b6009546001600160a01b031633146128be5760405162461bcd60e51b8152600401610e51906141ef565b601555565b6009546001600160a01b031633146128ed5760405162461bcd60e51b8152600401610e51906141ef565b805161103490600b906020840190613acc565b6040516bffffffffffffffffffffffff19606085901b166020820152600090819060340160405160208183030381529060405280519060200120905061297d848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506020549150849050613343565b95945050505050565b6009546001600160a01b031633146129b05760405162461bcd60e51b8152600401610e51906141ef565b601954601b54601a54601c546040516305d3b1d360e41b81526004810193909352600160a01b9091046001600160401b03166024830152640100000000810461ffff16604483015263ffffffff9081166064830152831660848201526101009091046001600160a01b031690635d3b1d309060a4016020604051808303816000875af1158015612a44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a689190614503565b601e5550565b6009546001600160a01b03163314612a985760405162461bcd60e51b8152600401610e51906141ef565b601a80546001600160401b03909216600160a01b0267ffffffffffffffff60a01b19909216919091179055565b6000612ad082612f31565b6060015192915050565b6009546001600160a01b03163314612b045760405162461bcd60e51b8152600401610e51906141ef565b6001600160a01b038116612b695760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610e51565b612b72816132f1565b50565b601d8181548110612b8557600080fd5b600091825260209091200154905081565b6001600160a01b03163b151590565b6000806000612bb3846135d5565b91509150838211158015612bc657508084105b80156123045750505060009182525060056020526040902054600160e01b900460ff161590565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b8051610ee890601d906020840190613b50565b6000612c6782612f31565b9050600080612c75846135d5565b845191935091506000906001600160a01b0316336001600160a01b03161480612ca557508351612ca59033610c51565b80612cc0575033612cb586610de3565b6001600160a01b0316145b905080612ce057604051632ce44b5f60e11b815260040160405180910390fd5b866001600160a01b031684600001516001600160a01b031614612d155760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038616612d3c57604051633a954ecd60e21b815260040160405180910390fd5b612d4c6000868660000151612bed565b6001600160a01b03808816600090815260066020908152604080832080546000196001600160401b0380831691909101811667ffffffffffffffff19928316179092558b8616808652838620805480851660019081018616919094161790558b86526005909452828520805460608c01511515600160e81b0260ff60e81b1942909516600160a01b026001600160e01b03199092169096171792909216939093179055908801808352912054909116612e6e5782811015612e6e578451600082815260056020908152604090912080549188015160608901511515600160e81b0260ff60e81b196001600160401b03909216600160a01b026001600160e01b03199094166001600160a01b039095169490941792909217919091169190911790555b5084866001600160a01b0316886001600160a01b031660008051602061458b83398151915260405160405180910390a461227f878787600161361d565b60006011546001612ebc91906142d0565b905090565b60006001600160a01b038216612eea576040516335ebb31960e01b815260040160405180910390fd5b506001600160a01b0316600090815260066020526040902054600160401b90046001600160401b031690565b610ee8838360405180602001604052806000815250846136d3565b60408051608081018252600080825260208201819052918101829052606081019190915281600080612f62836135d5565b91509150828211158015612f7557508083105b1561308057600083815260056020908152604091829020825160808101845290546001600160a01b03811682526001600160401b03600160a01b8204169282019290925260ff600160e01b830481161515938201849052600160e81b909204909116151560608201529061307e5780516001600160a01b031615612ffc5795945050505050565b50600019909201600081815260056020908152604091829020825160808101845290546001600160a01b0381168083526001600160401b03600160a01b8304169383019390935260ff600160e01b82048116151594830194909452600160e81b900490921615156060830152919391156130795795945050505050565b612ffc565b505b604051636f96cda160e11b815260040160405180910390fd5b60006130a483612f31565b90506000806130b2856135d5565b9150915083156131245782516000906001600160a01b0316336001600160a01b031614806130e7575083516130e79033610c51565b806131025750336130f787610de3565b6001600160a01b0316145b90508061312257604051632ce44b5f60e11b815260040160405180910390fd5b505b6131346000868560000151612bed565b82516001600160a01b039081166000908152600660209081526040808320805467ffffffffffffffff1981166001600160401b0391821660001901821617909155875185168452818420805467ffffffffffffffff60801b198116600160801b918290048416600190810185169092021790915588518b86526005909452828520805460608b0151600160e01b9689166001600160e01b031990921691909117600160a01b42909516949094029390931761ffff60e01b1916600160e81b9315159390930260ff60e01b1916929092179390931790559088018083529120549091166132895781811015613289578351600082815260056020908152604090912080549187015160608801511515600160e81b0260ff60e81b196001600160401b03909216600160a01b026001600160e01b03199094166001600160a01b039095169490941792909217919091169190911790555b50825160405186916000916001600160a01b039091169060008051602061458b833981519152908390a482516132c390600087600161361d565b5050600280546001019055505050565b611034826001604051806020016040528060008152506001856136e1565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008261335085846138a0565b14949350505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061338e90339089908890889060040161451c565b6020604051808303816000875af19250505080156133c9575060408051601f3d908101601f191682019092526133c691810190614559565b60015b613424573d8080156133f7576040519150601f19603f3d011682016040523d82523d6000602084013e6133fc565b606091505b50805161341c576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b600080613451620186a084614576565b905061afc88110156134665750600192915050565b620124f881101561347a5750600292915050565b62015f9081101561348e5750600392915050565b62017cdc8110156134a25750600492915050565b620186a08110156134b65750600592915050565b604051630ad174ab60e01b815260048101849052602401610e51565b50919050565b6060816134fc5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613526578061351081614399565b915061351f9050600a83614285565b9150613500565b6000816001600160401b0381111561354057613540613cce565b6040519080825280601f01601f19166020018201604052801561356a576020820181803683370190505b5090505b84156123045761357f6001836143b4565b915061358c600a86614576565b6135979060306142d0565b60f81b8183815181106135ac576135ac614224565b60200101906001600160f81b031916908160001a9053506135ce600a86614285565b945061356e565b60008060006135e384612485565b90506000816135f35760016135fb565b6135fb612eab565b905060008261360c57600054613610565b6001545b9196919550909350505050565b601654640100000000900460ff16156113e057604080516001600160a01b038681166020830152858116828401526060820185905260808083018590528351808403909101815260a0830193849052601654631b9a923960e31b90945292650100000000009004169063dcd491c89061369a90849060a401613c31565b600060405180830381600087803b1580156136b457600080fd5b505af11580156136c8573d6000803e3d6000fd5b505050505050505050565b6113e0848484600185613914565b6001546001600160a01b03861661370a57604051622e076360e81b815260040160405180910390fd5b846137285760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038616600081815260066020908152604080832080546001600160801b031981166001600160401b038083168d018116918217600160401b67ffffffffffffffff1990941690921783900481168d01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b42909216919091021760ff60e81b1916600160e81b84151502179055808086018480156137dc57506001600160a01b0388163b15155b15613853575b60405182906001600160a01b038a169060009060008051602061458b833981519152908290a461381b6000898480600101955089613359565b613838576040516368d2bf6b60e11b815260040160405180910390fd5b808214156137e257826001541461384e57600080fd5b613887565b5b6040516001830192906001600160a01b038a169060009060008051602061458b833981519152908290a480821415613854575b50600155613898600087838861361d565b505050505050565b600081815b845181101561390c5760008582815181106138c2576138c2614224565b602002602001015190508083116138e857600083815260208290526040902092506138f9565b600081815260208490526040902092505b508061390481614399565b9150506138a5565b509392505050565b6000546001600160a01b03861661393d57604051622e076360e81b815260040160405180910390fd5b8461395b5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038616600081815260066020908152604080832080546001600160801b031981166001600160401b038083168d018116918217600160401b67ffffffffffffffff1990941690921783900481168d01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b42909216919091021760ff60e81b1916600160e81b8415150217905580808601848015613a0f57506001600160a01b0388163b15155b15613a86575b60405182906001600160a01b038a169060009060008051602061458b833981519152908290a4613a4e6000898480600101955089613359565b613a6b576040516368d2bf6b60e11b815260040160405180910390fd5b80821415613a15578260005414613a8157600080fd5b613aba565b5b6040516001830192906001600160a01b038a169060009060008051602061458b833981519152908290a480821415613a87575b5060009081556138989087838861361d565b828054613ad8906141ba565b90600052602060002090601f016020900481019282613afa5760008555613b40565b82601f10613b1357805160ff1916838001178555613b40565b82800160010185558215613b40579182015b82811115613b40578251825591602001919060010190613b25565b50613b4c929150613b8a565b5090565b828054828255906000526020600020908101928215613b405791602002820182811115613b40578251825591602001919060010190613b25565b5b80821115613b4c5760008155600101613b8b565b6001600160e01b031981168114612b7257600080fd5b600060208284031215613bc757600080fd5b8135613bd281613b9f565b9392505050565b60005b83811015613bf4578181015183820152602001613bdc565b838111156113e05750506000910152565b60008151808452613c1d816020860160208601613bd9565b601f01601f19169290920160200192915050565b602081526000613bd26020830184613c05565b600060208284031215613c5657600080fd5b5035919050565b80356001600160a01b0381168114613c7457600080fd5b919050565b60008060408385031215613c8c57600080fd5b613c9583613c5d565b946020939093013593505050565b80358015158114613c7457600080fd5b600060208284031215613cc557600080fd5b613bd282613ca3565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613d0c57613d0c613cce565b604052919050565b60008060408385031215613d2757600080fd5b823591506020808401356001600160401b0380821115613d4657600080fd5b818601915086601f830112613d5a57600080fd5b813581811115613d6c57613d6c613cce565b8060051b9150613d7d848301613ce4565b8181529183018401918481019089841115613d9757600080fd5b938501935b83851015613db557843582529385019390850190613d9c565b8096505050505050509250929050565b803561ffff81168114613c7457600080fd5b600060208284031215613de957600080fd5b613bd282613dc5565b600080600060608486031215613e0757600080fd5b613e1084613c5d565b9250613e1e60208501613c5d565b9150604084013590509250925092565b803560ff81168114613c7457600080fd5b600060208284031215613e5157600080fd5b613bd282613e2e565b60008083601f840112613e6c57600080fd5b5081356001600160401b03811115613e8357600080fd5b6020830191508360208260051b8501011115613e9e57600080fd5b9250929050565b600080600060408486031215613eba57600080fd5b8335925060208401356001600160401b03811115613ed757600080fd5b613ee386828701613e5a565b9497909650939450505050565b60006001600160401b03831115613f0957613f09613cce565b613f1c601f8401601f1916602001613ce4565b9050828152838383011115613f3057600080fd5b828260208301376000602084830101529392505050565b600060208284031215613f5957600080fd5b81356001600160401b03811115613f6f57600080fd5b8201601f81018413613f8057600080fd5b61230484823560208401613ef0565b600060208284031215613fa157600080fd5b813563ffffffff81168114613bd257600080fd5b600060608284031215613fc757600080fd5b826060830111156134d257600080fd5b600060208284031215613fe957600080fd5b613bd282613c5d565b6000806040838503121561400557600080fd5b8235915061401560208401613dc5565b90509250929050565b6000806020838503121561403157600080fd5b82356001600160401b0381111561404757600080fd5b61405385828601613e5a565b90969095509350505050565b6000806040838503121561407257600080fd5b61407b83613c5d565b915061401560208401613ca3565b6000806000806080858703121561409f57600080fd5b6140a885613c5d565b93506140b660208601613c5d565b92506040850135915060608501356001600160401b038111156140d857600080fd5b8501601f810187136140e957600080fd5b6140f887823560208401613ef0565b91505092959194509250565b6000806040838503121561411757600080fd5b61412083613dc5565b915061401560208401613e2e565b60008060006040848603121561414357600080fd5b61414c84613c5d565b925060208401356001600160401b03811115613ed757600080fd5b6000806040838503121561417a57600080fd5b61418383613c5d565b915061401560208401613c5d565b6000602082840312156141a357600080fd5b81356001600160401b0381168114613bd257600080fd5b600181811c908216806141ce57607f821691505b602082108114156134d257634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561426a5761426a61423a565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826142945761429461426f565b500490565b6020808252601b908201527f6e65656420746f206d696e74206174206c656173742031204e46540000000000604082015260600190565b600082198211156142e3576142e361423a565b500190565b60208082526012908201527165786365656473206d617820737570706c7960701b604082015260600190565b6020808252601690820152751d1bdad95b92511cc81b5d5cdd081899481bdddb995960521b604082015260600190565b6020808252601690820152751d1bdad95b92511cc81b5d5cdd081899481d985b1a5960521b604082015260600190565b600060ff821660ff84168060ff038211156143915761439161423a565b019392505050565b60006000198214156143ad576143ad61423a565b5060010190565b6000828210156143c6576143c661423a565b500390565b600061ffff838116908316818110156143e6576143e661423a565b039392505050565b600061ffff80831681851680830382111561440b5761440b61423a565b01949350505050565b600061ffff8083168181141561442c5761442c61423a565b6001019392505050565b8054600090600181811c908083168061445057607f831692505b602080841082141561447257634e487b7160e01b600052602260045260246000fd5b8180156144865760018114614497576144c4565b60ff198616895284890196506144c4565b60008881526020902060005b868110156144bc5781548b8201529085019083016144a3565b505084890196505b50505050505092915050565b60006144dc8286614436565b84516144ec818360208901613bd9565b6144f881830186614436565b979650505050505050565b60006020828403121561451557600080fd5b5051919050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061454f90830184613c05565b9695505050505050565b60006020828403121561456b57600080fd5b8151613bd281613b9f565b6000826145855761458561426f565b50069056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212207afe1f20e615ece1500c670bfa5204f3cf9ed382ae021a0fa2ca5983f608e7e264736f6c634300080b0033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000094d65746153746f7265000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024d53000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106104315760003560e01c80636c96ced711610229578063ba7d2c761161012e578063db1d584e116100b6578063e985e9c51161007a578063e985e9c514610c36578063ea7b4f7714610c7f578063f24eb82414610c9f578063f2fde38b14610cbf578063f6eaffc814610cdf57600080fd5b8063db1d584e14610bab578063dca1182a14610bcb578063e726f2e114610bea578063e757c17d14610c0a578063e89e106a14610c2057600080fd5b8063c6682862116100fd578063c668286214610b20578063c87b56dd14610b35578063d0eb26b014610b55578063d4bc1b0514610b75578063da3ef23f14610b8b57600080fd5b8063ba7d2c7614610aaa578063bcf2457414610ac0578063bedb86fb14610ae0578063c3c8cbbe14610b0057600080fd5b80638f252424116101b15780639b6860c8116101805780639b6860c814610a145780639cec700d14610a2a5780639d044ed314610a4a578063a22cb46514610a6a578063b88d4fde14610a8a57600080fd5b80638f252424146109aa5780639591ab5d146109bf57806395d89b41146109df57806398544710146109f457600080fd5b80637cb64759116101f85780637cb64759146109235780637d7eee42146109435780638066222c146109635780638d66c064146109765780638da5cb5b1461098c57600080fd5b80636c96ced7146108b457806370a08231146108ce578063715018a6146108ee578063791a25191461090357600080fd5b806326987b601161033a5780634b922a56116102c25780636352211e116102865780636352211e1461082f578063637b39111461084f5780636578be571461086f578063693365ee146108855780636c0360eb1461089f57600080fd5b80634b922a56146107a25780634c220f6e146107c257806355f804b3146107d55780635a405c87146107f55780635c975abb1461081557600080fd5b80632f621ac8116103095780632f621ac81461070d57806332d1a5281461072d578063347ac6e41461074257806342842e0e14610762578063445f57561461078257600080fd5b806326987b60146106a257806328cad13d146106b75780632ab4d052146106d75780632e1a7d4d146106ed57600080fd5b806314a70005116103bd5780632330c3eb1161038c5780632330c3eb1461060e5780632344be0a14610640578063239c70ae1461065657806323b872dd1461066c57806325a301451461068c57600080fd5b806314a700051461059857806318160ddd146105b85780631e84c413146105cd5780631fe543e3146105ee57600080fd5b8063081812fc11610404578063081812fc146104de578063088a4ed014610516578063095ea7b3146105385780630f0e4f731461055857806311b7e5e71461057857600080fd5b806301052c8a14610436578063018ad39e1461046957806301ffc9a71461048c57806306fdde03146104bc575b600080fd5b34801561044257600080fd5b50601f546104519061ffff1681565b60405161ffff90911681526020015b60405180910390f35b34801561047557600080fd5b50600054600019015b604051908152602001610460565b34801561049857600080fd5b506104ac6104a7366004613bb5565b610cff565b6040519015158152602001610460565b3480156104c857600080fd5b506104d1610d51565b6040516104609190613c31565b3480156104ea57600080fd5b506104fe6104f9366004613c44565b610de3565b6040516001600160a01b039091168152602001610460565b34801561052257600080fd5b50610536610531366004613c44565b610e27565b005b34801561054457600080fd5b50610536610553366004613c79565b610e5f565b34801561056457600080fd5b50610536610573366004613c44565b610eed565b34801561058457600080fd5b50610536610593366004613c44565b610f1c565b3480156105a457600080fd5b506105366105b3366004613cb3565b610f4b565b3480156105c457600080fd5b5061047e610f95565b3480156105d957600080fd5b506016546104ac906301000000900460ff1681565b3480156105fa57600080fd5b50610536610609366004613d14565b610fb0565b34801561061a57600080fd5b5061062e610629366004613dd7565b611038565b60405160ff9091168152602001610460565b34801561064c57600080fd5b5061047e600d5481565b34801561066257600080fd5b5061047e60145481565b34801561067857600080fd5b50610536610687366004613df2565b6111a9565b34801561069857600080fd5b5061047e600f5481565b3480156106ae57600080fd5b5060005461047e565b3480156106c357600080fd5b506105366106d2366004613cb3565b6111b4565b3480156106e357600080fd5b5061047e60135481565b3480156106f957600080fd5b50610536610708366004613c44565b6111fc565b34801561071957600080fd5b50610536610728366004613cb3565b6113e6565b34801561073957600080fd5b5061047e61142a565b34801561074e57600080fd5b5061053661075d366004613c44565b61143d565b34801561076e57600080fd5b5061053661077d366004613df2565b61159a565b34801561078e57600080fd5b5061053661079d366004613cb3565b6115b5565b3480156107ae57600080fd5b506105366107bd366004613e3f565b6115fb565b6105366107d0366004613ea5565b61163b565b3480156107e157600080fd5b506105366107f0366004613f47565b6118f5565b34801561080157600080fd5b50610536610810366004613f8f565b611932565b34801561082157600080fd5b506016546104ac9060ff1681565b34801561083b57600080fd5b506104fe61084a366004613c44565b611978565b34801561085b57600080fd5b5061045161086a366004613fb5565b61198a565b34801561087b57600080fd5b5061047e60105481565b34801561089157600080fd5b50601f5461ffff16156104ac565b3480156108ab57600080fd5b506104d1611d37565b3480156108c057600080fd5b5060195461062e9060ff1681565b3480156108da57600080fd5b5061047e6108e9366004613fd7565b611dc5565b3480156108fa57600080fd5b50610536611e13565b34801561090f57600080fd5b5061053661091e366004613c44565b611e49565b34801561092f57600080fd5b5061053661093e366004613c44565b611e78565b34801561094f57600080fd5b5061053661095e366004613c44565b611ea7565b610536610971366004613ff2565b611ed6565b34801561098257600080fd5b5061047e60125481565b34801561099857600080fd5b506009546001600160a01b03166104fe565b3480156109b657600080fd5b5060015461047e565b3480156109cb57600080fd5b506104ac6109da36600461401e565b612288565b3480156109eb57600080fd5b506104d161230c565b348015610a0057600080fd5b50610536610a0f366004613c44565b61231b565b348015610a2057600080fd5b5061047e600c5481565b348015610a3657600080fd5b50610536610a45366004613fd7565b61234a565b348015610a5657600080fd5b506016546104ac9062010000900460ff1681565b348015610a7657600080fd5b50610536610a8536600461405f565b6123a4565b348015610a9657600080fd5b50610536610aa5366004614089565b61243a565b348015610ab657600080fd5b5061047e60155481565b348015610acc57600080fd5b506104ac610adb366004613c44565b612485565b348015610aec57600080fd5b50610536610afb366004613cb3565b612498565b348015610b0c57600080fd5b50610536610b1b366004614104565b6124d5565b348015610b2c57600080fd5b506104d16127b9565b348015610b4157600080fd5b506104d1610b50366004613c44565b6127c6565b348015610b6157600080fd5b50610536610b70366004613c44565b612894565b348015610b8157600080fd5b5061047e60115481565b348015610b9757600080fd5b50610536610ba6366004613f47565b6128c3565b348015610bb757600080fd5b506104ac610bc636600461412e565b612900565b348015610bd757600080fd5b506016546104ac90610100900460ff1681565b348015610bf657600080fd5b50610536610c05366004613f8f565b612986565b348015610c1657600080fd5b5061047e600e5481565b348015610c2c57600080fd5b5061047e601e5481565b348015610c4257600080fd5b506104ac610c51366004614167565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610c8b57600080fd5b50610536610c9a366004614191565b612a6e565b348015610cab57600080fd5b506104ac610cba366004613c44565b612ac5565b348015610ccb57600080fd5b50610536610cda366004613fd7565b612ada565b348015610ceb57600080fd5b5061047e610cfa366004613c44565b612b75565b60006001600160e01b031982166380ac58cd60e01b1480610d3057506001600160e01b03198216635b5e139f60e01b145b80610d4b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060038054610d60906141ba565b80601f0160208091040260200160405190810160405280929190818152602001828054610d8c906141ba565b8015610dd95780601f10610dae57610100808354040283529160200191610dd9565b820191906000526020600020905b815481529060010190602001808311610dbc57829003601f168201915b5050505050905090565b6000610dee82612ba5565b610e0b576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6009546001600160a01b03163314610e5a5760405162461bcd60e51b8152600401610e51906141ef565b60405180910390fd5b601455565b6000610e6a82611978565b9050806001600160a01b0316836001600160a01b03161415610e9f5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610ebf5750610ebd8133610c51565b155b15610edd576040516367d9dca160e11b815260040160405180910390fd5b610ee8838383612bed565b505050565b6009546001600160a01b03163314610f175760405162461bcd60e51b8152600401610e51906141ef565b600f55565b6009546001600160a01b03163314610f465760405162461bcd60e51b8152600401610e51906141ef565b600d55565b6009546001600160a01b03163314610f755760405162461bcd60e51b8152600401610e51906141ef565b601680549115156401000000000264ff0000000019909216919091179055565b6000600254610fa261142a565b600054600019010103905090565b336001600160a01b037f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909161461102a5760405163073e64fd60e21b81523360048201526001600160a01b037f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909166024820152604401610e51565b6110348282612c49565b5050565b60006110478261ffff16612ba5565b6110b95760405162461bcd60e51b815260206004820152603760248201527f4552433732314d657461646174613a20746f6b656e206c6576656c207175657260448201527f7920666f72206e6f6e6578697374656e7420746f6b656e0000000000000000006064820152608401610e51565b6110c68261ffff16612485565b156110e5575061ffff1660009081526018602052604090205460ff1690565b600060178361ffff16815481106110fe576110fe614224565b60009182526020918290209181049091015460ff601f9092166101000a9004161161116b5760405162461bcd60e51b815260206004820152601960248201527f5374696c6c206e6f742062652072657665616c656420796574000000000000006044820152606401610e51565b60178261ffff168154811061118257611182614224565b90600052602060002090602091828204019190069054906101000a900460ff169050919050565b610ee8838383612c5c565b6009546001600160a01b031633146111de5760405162461bcd60e51b8152600401610e51906141ef565b6016805491151563010000000263ff00000019909216919091179055565b6009546001600160a01b031633146112265760405162461bcd60e51b8152600401610e51906141ef565b4781111561126b5760405162461bcd60e51b81526020600482015260126024820152714e6f7420656e6f7567682062616c616e636560701b6044820152606401610e51565b6000600a61127a476005614250565b6112849190614285565b60405190915060009073ab35a2578c26314b9244831bdb4b044cd1dba4e09083908381818185875af1925050503d80600081146112dd576040519150601f19603f3d011682016040523d82523d6000602084013e6112e2565b606091505b50506040519091506000907385587426c2154ab3c43452a7d8e8ee40020a29009084908381818185875af1925050503d806000811461133d576040519150601f19603f3d011682016040523d82523d6000602084013e611342565b606091505b50509050816113935760405162461bcd60e51b815260206004820152601c60248201527f6661696c656420746f207769746864726177206d6f6e657920283129000000006044820152606401610e51565b806113e05760405162461bcd60e51b815260206004820152601c60248201527f6661696c656420746f207769746864726177206d6f6e657920283229000000006044820152606401610e51565b50505050565b6009546001600160a01b031633146114105760405162461bcd60e51b8152600401610e51906141ef565b601680549115156101000261ff0019909216919091179055565b6000611434612eab565b60015403905090565b6009546001600160a01b031633146114675760405162461bcd60e51b8152600401610e51906141ef565b600081116114875760405162461bcd60e51b8152600401610e5190614299565b60165460ff16156114cd5760405162461bcd60e51b815260206004820152601060248201526f3a34329036b4b73a1034b99037b832b760811b6044820152606401610e51565b601054816114eb6114e66009546001600160a01b031690565b612ec1565b6114f591906142d0565b11156115435760405162461bcd60e51b815260206004820152601e60248201527f65786365656473206d6178207465616d207265766572736564204e46547300006044820152606401610e51565b601154816115546000546000190190565b61155e91906142d0565b111561157c5760405162461bcd60e51b8152600401610e51906142e8565b60016110346115936009546001600160a01b031690565b8383612f16565b610ee88383836040518060200160405280600081525061243a565b6009546001600160a01b031633146115df5760405162461bcd60e51b8152600401610e51906141ef565b60168054911515620100000262ff000019909216919091179055565b6009546001600160a01b031633146116255760405162461bcd60e51b8152600401610e51906141ef565b6019805460ff191660ff92909216919091179055565b6000831161165b5760405162461bcd60e51b8152600401610e5190614299565b600f544210156116a55760405162461bcd60e51b81526020600482015260156024820152741b9bdd081c1c994b5cd85b19481d1a5b59481e595d605a1b6044820152606401610e51565b3233146116ec5760405162461bcd60e51b815260206004820152601560248201527418dbdb9d1c9858dd1cc81b9bdd08185b1b1bddd959605a1b6044820152606401610e51565b60165460ff16156117385760405162461bcd60e51b81526020600482015260166024820152751d1a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b6044820152606401610e51565b60165462010000900460ff166117865760405162461bcd60e51b81526020600482015260136024820152721b5a5b9d1a5b99c81b9bdd08195b98589b1959606a1b6044820152606401610e51565b601154836117976000546000190190565b6117a191906142d0565b11156117bf5760405162461bcd60e51b8152600401610e51906142e8565b601554836117cc33612ec1565b6117d691906142d0565b11156118335760405162461bcd60e51b815260206004820152602660248201527f65786365656473206d617820617661696c61626c65204e46547320706572206160448201526564647265737360d01b6064820152608401610e51565b61183d8282612288565b6118895760405162461bcd60e51b815260206004820152601f60248201527f61646472657373206973206e6f74206f6e207468652077686974656c697374006044820152606401610e51565b600083600e546118999190614250565b90508034146118e15760405162461bcd60e51b81526020600482015260146024820152731ddc9bdb99c81c185e5b595b9d08185b5bdd5b9d60621b6044820152606401610e51565b60016118ee338683612f16565b5050505050565b6009546001600160a01b0316331461191f5760405162461bcd60e51b8152600401610e51906141ef565b805161103490600a906020840190613acc565b6009546001600160a01b0316331461195c5760405162461bcd60e51b8152600401610e51906141ef565b601c805463ffffffff191663ffffffff92909216919091179055565b600061198382612f31565b5192915050565b601654600090610100900460ff166119dc5760405162461bcd60e51b81526020600482015260156024820152743a34329036b2b933b29034b9903737ba1037b832b760591b6044820152606401610e51565b6012546119e761142a565b1115611a355760405162461bcd60e51b815260206004820152601860248201527f65786363656564206d6178206d6572676520616d6f756e7400000000000000006044820152606401610e51565b611a456040830160208401613dd7565b61ffff16611a566020840184613dd7565b61ffff1614158015611a8b5750611a736060830160408401613dd7565b61ffff16611a846020840184613dd7565b61ffff1614155b8015611abd5750611aa26060830160408401613dd7565b61ffff16611ab66040840160208501613dd7565b61ffff1614155b611b095760405162461bcd60e51b815260206004820152601a60248201527f746f6b656e494473206d75737420626520646966666572656e740000000000006044820152606401610e51565b33611b2d8360005b602002016020810190611b249190613dd7565b61ffff16611978565b6001600160a01b031614611b535760405162461bcd60e51b8152600401610e5190614314565b33611b5f836001611b11565b6001600160a01b031614611b855760405162461bcd60e51b8152600401610e5190614314565b33611b91836002611b11565b6001600160a01b031614611bb75760405162461bcd60e51b8152600401610e5190614314565b601154611bc76020840184613dd7565b61ffff161115611be95760405162461bcd60e51b8152600401610e5190614344565b601154611bfc6040840160208501613dd7565b61ffff161115611c1e5760405162461bcd60e51b8152600401610e5190614344565b601154611c316060840160408501613dd7565b61ffff161115611c535760405162461bcd60e51b8152600401610e5190614344565b6000805b6003811015611cd957611c88848260038110611c7557611c75614224565b6020020160208101906106299190613dd7565b611c929083614374565b9150611cc7848260038110611ca957611ca9614224565b602002016020810190611cbc9190613dd7565b61ffff166001613099565b80611cd181614399565b915050611c57565b50601954611cea9060ff1682614374565b90506001611cf833826132d3565b600060018054611d0891906143b4565b61ffff81166000908152601860205260409020805460ff191660ff959095169490941790935550909392505050565b600a8054611d44906141ba565b80601f0160208091040260200160405190810160405280929190818152602001828054611d70906141ba565b8015611dbd5780601f10611d9257610100808354040283529160200191611dbd565b820191906000526020600020905b815481529060010190602001808311611da057829003601f168201915b505050505081565b60006001600160a01b038216611dee576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b6009546001600160a01b03163314611e3d5760405162461bcd60e51b8152600401610e51906141ef565b611e4760006132f1565b565b6009546001600160a01b03163314611e735760405162461bcd60e51b8152600401610e51906141ef565b600c55565b6009546001600160a01b03163314611ea25760405162461bcd60e51b8152600401610e51906141ef565b602055565b6009546001600160a01b03163314611ed15760405162461bcd60e51b8152600401610e51906141ef565b600e55565b60008211611ef65760405162461bcd60e51b8152600401610e5190614299565b601454821115611f545760405162461bcd60e51b8152602060048201526024808201527f6d6178206d696e7420616d6f756e74207065722073657373696f6e20657863656044820152631959195960e21b6064820152608401610e51565b600d54421015611fa65760405162461bcd60e51b815260206004820152601a60248201527f4974206973206e6f74207075626c69632073616c652074696d650000000000006044820152606401610e51565b323314611fed5760405162461bcd60e51b815260206004820152601560248201527418dbdb9d1c9858dd1cc81b9bdd08185b1b1bddd959605a1b6044820152606401610e51565b60165460ff16156120395760405162461bcd60e51b81526020600482015260166024820152751d1a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b6044820152606401610e51565b6016546301000000900460ff166120885760405162461bcd60e51b81526020600482015260136024820152721b5a5b9d1a5b99c81b9bdd08195b98589b1959606a1b6044820152606401610e51565b601154826120996000546000190190565b6120a391906142d0565b11156120c15760405162461bcd60e51b8152600401610e51906142e8565b600082600c546120d19190614250565b90508034146121195760405162461bcd60e51b81526020600482015260146024820152731ddc9bdb99c81c185e5b595b9d08185b5bdd5b9d60621b6044820152606401610e51565b6000612126338583612f16565b60006121358461ffff16612f31565b905080606001516121805760405162461bcd60e51b815260206004820152601560248201527477726f6e6720696e7669746174696f6e20636f646560581b6044820152606401610e51565b6000606461218f85600a614250565b6121999190614285565b90508381106121dd5760405162461bcd60e51b815260206004820152601060248201526f31b7b6b6b4b9b9b4b7b71032b93937b960811b6044820152606401610e51565b81516040516000916001600160a01b03169083908381818185875af1925050503d8060008114612229576040519150601f19603f3d011682016040523d82523d6000602084013e61222e565b606091505b505090508061227f5760405162461bcd60e51b815260206004820152601860248201527f6661696c656420746f2070617920636f6d6d697373696f6e00000000000000006044820152606401610e51565b50505050505050565b6040516bffffffffffffffffffffffff193360601b1660208201526000908190603401604051602081830303815290604052805190602001209050612304848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506020549150849050613343565b949350505050565b606060048054610d60906141ba565b6009546001600160a01b031633146123455760405162461bcd60e51b8152600401610e51906141ef565b601b55565b6009546001600160a01b031633146123745760405162461bcd60e51b8152600401610e51906141ef565b601680546001600160a01b03909216650100000000000265010000000000600160c81b0319909216919091179055565b6001600160a01b0382163314156123ce5760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b612445848484612c5c565b6001600160a01b0383163b15158015612467575061246584848484613359565b155b156113e0576040516368d2bf6b60e11b815260040160405180910390fd5b600061248f612eab565b90911015919050565b6009546001600160a01b031633146124c25760405162461bcd60e51b8152600401610e51906141ef565b6016805460ff1916911515919091179055565b6009546001600160a01b031633146124ff5760405162461bcd60e51b8152600401610e51906141ef565b6000601d8260ff168154811061251757612517614224565b9060005260206000200154116125685760405162461bcd60e51b81526020600482015260166024820152751c985b991bdb481ddbdc99081a5cc81b9bdd081cd95d60521b6044820152606401610e51565b60008261ffff16116125bc5760405162461bcd60e51b815260206004820152601d60248201527f616d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610e51565b601f5461ffff1661260f5760405162461bcd60e51b815260206004820152601760248201527f416c6c20746f6b656e73206172652072657665616c65640000000000000000006044820152606401610e51565b601f546011546000916126289161ffff909116906143cb565b6126339060016143ee565b90506000600161264385846143ee565b61264d91906143cb565b9050815b8161ffff168161ffff161161277f576000601d8560ff168154811061267857612678614224565b9060005260206000200154826040516020016126a292919091825261ffff16602082015260400190565b6040516020818303038152906040528051906020012060001c905060006126c882613441565b60178054600181018255600091909152602081047fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c1501805460ff808516601f9094166101000a938402930219169190911790556040519091507f2ad25ceace1d78fd3633209de123ed4cb6b74a198540bc5dccb4e5102c3dc28890612762908590849061ffff92909216825260ff16602082015260400190565b60405180910390a15050808061277790614414565b915050612651565b50601f805485919060009061279990849061ffff166143cb565b92506101000a81548161ffff021916908361ffff16021790555050505050565b600b8054611d44906141ba565b60606127d182612ba5565b6128355760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610e51565b6000600a8054612844906141ba565b9050116128605760405180602001604052806000815250610d4b565b600a61286b836134d8565b600b60405160200161287f939291906144d0565b60405160208183030381529060405292915050565b6009546001600160a01b031633146128be5760405162461bcd60e51b8152600401610e51906141ef565b601555565b6009546001600160a01b031633146128ed5760405162461bcd60e51b8152600401610e51906141ef565b805161103490600b906020840190613acc565b6040516bffffffffffffffffffffffff19606085901b166020820152600090819060340160405160208183030381529060405280519060200120905061297d848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506020549150849050613343565b95945050505050565b6009546001600160a01b031633146129b05760405162461bcd60e51b8152600401610e51906141ef565b601954601b54601a54601c546040516305d3b1d360e41b81526004810193909352600160a01b9091046001600160401b03166024830152640100000000810461ffff16604483015263ffffffff9081166064830152831660848201526101009091046001600160a01b031690635d3b1d309060a4016020604051808303816000875af1158015612a44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a689190614503565b601e5550565b6009546001600160a01b03163314612a985760405162461bcd60e51b8152600401610e51906141ef565b601a80546001600160401b03909216600160a01b0267ffffffffffffffff60a01b19909216919091179055565b6000612ad082612f31565b6060015192915050565b6009546001600160a01b03163314612b045760405162461bcd60e51b8152600401610e51906141ef565b6001600160a01b038116612b695760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610e51565b612b72816132f1565b50565b601d8181548110612b8557600080fd5b600091825260209091200154905081565b6001600160a01b03163b151590565b6000806000612bb3846135d5565b91509150838211158015612bc657508084105b80156123045750505060009182525060056020526040902054600160e01b900460ff161590565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b8051610ee890601d906020840190613b50565b6000612c6782612f31565b9050600080612c75846135d5565b845191935091506000906001600160a01b0316336001600160a01b03161480612ca557508351612ca59033610c51565b80612cc0575033612cb586610de3565b6001600160a01b0316145b905080612ce057604051632ce44b5f60e11b815260040160405180910390fd5b866001600160a01b031684600001516001600160a01b031614612d155760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038616612d3c57604051633a954ecd60e21b815260040160405180910390fd5b612d4c6000868660000151612bed565b6001600160a01b03808816600090815260066020908152604080832080546000196001600160401b0380831691909101811667ffffffffffffffff19928316179092558b8616808652838620805480851660019081018616919094161790558b86526005909452828520805460608c01511515600160e81b0260ff60e81b1942909516600160a01b026001600160e01b03199092169096171792909216939093179055908801808352912054909116612e6e5782811015612e6e578451600082815260056020908152604090912080549188015160608901511515600160e81b0260ff60e81b196001600160401b03909216600160a01b026001600160e01b03199094166001600160a01b039095169490941792909217919091169190911790555b5084866001600160a01b0316886001600160a01b031660008051602061458b83398151915260405160405180910390a461227f878787600161361d565b60006011546001612ebc91906142d0565b905090565b60006001600160a01b038216612eea576040516335ebb31960e01b815260040160405180910390fd5b506001600160a01b0316600090815260066020526040902054600160401b90046001600160401b031690565b610ee8838360405180602001604052806000815250846136d3565b60408051608081018252600080825260208201819052918101829052606081019190915281600080612f62836135d5565b91509150828211158015612f7557508083105b1561308057600083815260056020908152604091829020825160808101845290546001600160a01b03811682526001600160401b03600160a01b8204169282019290925260ff600160e01b830481161515938201849052600160e81b909204909116151560608201529061307e5780516001600160a01b031615612ffc5795945050505050565b50600019909201600081815260056020908152604091829020825160808101845290546001600160a01b0381168083526001600160401b03600160a01b8304169383019390935260ff600160e01b82048116151594830194909452600160e81b900490921615156060830152919391156130795795945050505050565b612ffc565b505b604051636f96cda160e11b815260040160405180910390fd5b60006130a483612f31565b90506000806130b2856135d5565b9150915083156131245782516000906001600160a01b0316336001600160a01b031614806130e7575083516130e79033610c51565b806131025750336130f787610de3565b6001600160a01b0316145b90508061312257604051632ce44b5f60e11b815260040160405180910390fd5b505b6131346000868560000151612bed565b82516001600160a01b039081166000908152600660209081526040808320805467ffffffffffffffff1981166001600160401b0391821660001901821617909155875185168452818420805467ffffffffffffffff60801b198116600160801b918290048416600190810185169092021790915588518b86526005909452828520805460608b0151600160e01b9689166001600160e01b031990921691909117600160a01b42909516949094029390931761ffff60e01b1916600160e81b9315159390930260ff60e01b1916929092179390931790559088018083529120549091166132895781811015613289578351600082815260056020908152604090912080549187015160608801511515600160e81b0260ff60e81b196001600160401b03909216600160a01b026001600160e01b03199094166001600160a01b039095169490941792909217919091169190911790555b50825160405186916000916001600160a01b039091169060008051602061458b833981519152908390a482516132c390600087600161361d565b5050600280546001019055505050565b611034826001604051806020016040528060008152506001856136e1565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008261335085846138a0565b14949350505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061338e90339089908890889060040161451c565b6020604051808303816000875af19250505080156133c9575060408051601f3d908101601f191682019092526133c691810190614559565b60015b613424573d8080156133f7576040519150601f19603f3d011682016040523d82523d6000602084013e6133fc565b606091505b50805161341c576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b600080613451620186a084614576565b905061afc88110156134665750600192915050565b620124f881101561347a5750600292915050565b62015f9081101561348e5750600392915050565b62017cdc8110156134a25750600492915050565b620186a08110156134b65750600592915050565b604051630ad174ab60e01b815260048101849052602401610e51565b50919050565b6060816134fc5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613526578061351081614399565b915061351f9050600a83614285565b9150613500565b6000816001600160401b0381111561354057613540613cce565b6040519080825280601f01601f19166020018201604052801561356a576020820181803683370190505b5090505b84156123045761357f6001836143b4565b915061358c600a86614576565b6135979060306142d0565b60f81b8183815181106135ac576135ac614224565b60200101906001600160f81b031916908160001a9053506135ce600a86614285565b945061356e565b60008060006135e384612485565b90506000816135f35760016135fb565b6135fb612eab565b905060008261360c57600054613610565b6001545b9196919550909350505050565b601654640100000000900460ff16156113e057604080516001600160a01b038681166020830152858116828401526060820185905260808083018590528351808403909101815260a0830193849052601654631b9a923960e31b90945292650100000000009004169063dcd491c89061369a90849060a401613c31565b600060405180830381600087803b1580156136b457600080fd5b505af11580156136c8573d6000803e3d6000fd5b505050505050505050565b6113e0848484600185613914565b6001546001600160a01b03861661370a57604051622e076360e81b815260040160405180910390fd5b846137285760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038616600081815260066020908152604080832080546001600160801b031981166001600160401b038083168d018116918217600160401b67ffffffffffffffff1990941690921783900481168d01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b42909216919091021760ff60e81b1916600160e81b84151502179055808086018480156137dc57506001600160a01b0388163b15155b15613853575b60405182906001600160a01b038a169060009060008051602061458b833981519152908290a461381b6000898480600101955089613359565b613838576040516368d2bf6b60e11b815260040160405180910390fd5b808214156137e257826001541461384e57600080fd5b613887565b5b6040516001830192906001600160a01b038a169060009060008051602061458b833981519152908290a480821415613854575b50600155613898600087838861361d565b505050505050565b600081815b845181101561390c5760008582815181106138c2576138c2614224565b602002602001015190508083116138e857600083815260208290526040902092506138f9565b600081815260208490526040902092505b508061390481614399565b9150506138a5565b509392505050565b6000546001600160a01b03861661393d57604051622e076360e81b815260040160405180910390fd5b8461395b5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038616600081815260066020908152604080832080546001600160801b031981166001600160401b038083168d018116918217600160401b67ffffffffffffffff1990941690921783900481168d01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b42909216919091021760ff60e81b1916600160e81b8415150217905580808601848015613a0f57506001600160a01b0388163b15155b15613a86575b60405182906001600160a01b038a169060009060008051602061458b833981519152908290a4613a4e6000898480600101955089613359565b613a6b576040516368d2bf6b60e11b815260040160405180910390fd5b80821415613a15578260005414613a8157600080fd5b613aba565b5b6040516001830192906001600160a01b038a169060009060008051602061458b833981519152908290a480821415613a87575b5060009081556138989087838861361d565b828054613ad8906141ba565b90600052602060002090601f016020900481019282613afa5760008555613b40565b82601f10613b1357805160ff1916838001178555613b40565b82800160010185558215613b40579182015b82811115613b40578251825591602001919060010190613b25565b50613b4c929150613b8a565b5090565b828054828255906000526020600020908101928215613b405791602002820182811115613b40578251825591602001919060010190613b25565b5b80821115613b4c5760008155600101613b8b565b6001600160e01b031981168114612b7257600080fd5b600060208284031215613bc757600080fd5b8135613bd281613b9f565b9392505050565b60005b83811015613bf4578181015183820152602001613bdc565b838111156113e05750506000910152565b60008151808452613c1d816020860160208601613bd9565b601f01601f19169290920160200192915050565b602081526000613bd26020830184613c05565b600060208284031215613c5657600080fd5b5035919050565b80356001600160a01b0381168114613c7457600080fd5b919050565b60008060408385031215613c8c57600080fd5b613c9583613c5d565b946020939093013593505050565b80358015158114613c7457600080fd5b600060208284031215613cc557600080fd5b613bd282613ca3565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613d0c57613d0c613cce565b604052919050565b60008060408385031215613d2757600080fd5b823591506020808401356001600160401b0380821115613d4657600080fd5b818601915086601f830112613d5a57600080fd5b813581811115613d6c57613d6c613cce565b8060051b9150613d7d848301613ce4565b8181529183018401918481019089841115613d9757600080fd5b938501935b83851015613db557843582529385019390850190613d9c565b8096505050505050509250929050565b803561ffff81168114613c7457600080fd5b600060208284031215613de957600080fd5b613bd282613dc5565b600080600060608486031215613e0757600080fd5b613e1084613c5d565b9250613e1e60208501613c5d565b9150604084013590509250925092565b803560ff81168114613c7457600080fd5b600060208284031215613e5157600080fd5b613bd282613e2e565b60008083601f840112613e6c57600080fd5b5081356001600160401b03811115613e8357600080fd5b6020830191508360208260051b8501011115613e9e57600080fd5b9250929050565b600080600060408486031215613eba57600080fd5b8335925060208401356001600160401b03811115613ed757600080fd5b613ee386828701613e5a565b9497909650939450505050565b60006001600160401b03831115613f0957613f09613cce565b613f1c601f8401601f1916602001613ce4565b9050828152838383011115613f3057600080fd5b828260208301376000602084830101529392505050565b600060208284031215613f5957600080fd5b81356001600160401b03811115613f6f57600080fd5b8201601f81018413613f8057600080fd5b61230484823560208401613ef0565b600060208284031215613fa157600080fd5b813563ffffffff81168114613bd257600080fd5b600060608284031215613fc757600080fd5b826060830111156134d257600080fd5b600060208284031215613fe957600080fd5b613bd282613c5d565b6000806040838503121561400557600080fd5b8235915061401560208401613dc5565b90509250929050565b6000806020838503121561403157600080fd5b82356001600160401b0381111561404757600080fd5b61405385828601613e5a565b90969095509350505050565b6000806040838503121561407257600080fd5b61407b83613c5d565b915061401560208401613ca3565b6000806000806080858703121561409f57600080fd5b6140a885613c5d565b93506140b660208601613c5d565b92506040850135915060608501356001600160401b038111156140d857600080fd5b8501601f810187136140e957600080fd5b6140f887823560208401613ef0565b91505092959194509250565b6000806040838503121561411757600080fd5b61412083613dc5565b915061401560208401613e2e565b60008060006040848603121561414357600080fd5b61414c84613c5d565b925060208401356001600160401b03811115613ed757600080fd5b6000806040838503121561417a57600080fd5b61418383613c5d565b915061401560208401613c5d565b6000602082840312156141a357600080fd5b81356001600160401b0381168114613bd257600080fd5b600181811c908216806141ce57607f821691505b602082108114156134d257634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561426a5761426a61423a565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826142945761429461426f565b500490565b6020808252601b908201527f6e65656420746f206d696e74206174206c656173742031204e46540000000000604082015260600190565b600082198211156142e3576142e361423a565b500190565b60208082526012908201527165786365656473206d617820737570706c7960701b604082015260600190565b6020808252601690820152751d1bdad95b92511cc81b5d5cdd081899481bdddb995960521b604082015260600190565b6020808252601690820152751d1bdad95b92511cc81b5d5cdd081899481d985b1a5960521b604082015260600190565b600060ff821660ff84168060ff038211156143915761439161423a565b019392505050565b60006000198214156143ad576143ad61423a565b5060010190565b6000828210156143c6576143c661423a565b500390565b600061ffff838116908316818110156143e6576143e661423a565b039392505050565b600061ffff80831681851680830382111561440b5761440b61423a565b01949350505050565b600061ffff8083168181141561442c5761442c61423a565b6001019392505050565b8054600090600181811c908083168061445057607f831692505b602080841082141561447257634e487b7160e01b600052602260045260246000fd5b8180156144865760018114614497576144c4565b60ff198616895284890196506144c4565b60008881526020902060005b868110156144bc5781548b8201529085019083016144a3565b505084890196505b50505050505092915050565b60006144dc8286614436565b84516144ec818360208901613bd9565b6144f881830186614436565b979650505050505050565b60006020828403121561451557600080fd5b5051919050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061454f90830184613c05565b9695505050505050565b60006020828403121561456b57600080fd5b8151613bd281613b9f565b6000826145855761458561426f565b50069056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212207afe1f20e615ece1500c670bfa5204f3cf9ed382ae021a0fa2ca5983f608e7e264736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000094d65746153746f7265000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024d53000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _vrfCoordinator (address): 0x271682DEB8C4E0901D1a1550aD2e64D568E69909
Arg [1] : _link (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA
Arg [2] : _name (string): MetaStore
Arg [3] : _symbol (string): MS
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909
Arg [1] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [5] : 4d65746153746f72650000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [7] : 4d53000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.