Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
NFT
Overview
Max Total Supply
7,011 SDOODLE
Holders
1,467
Market
Volume (24H)
3.1503 ETH
Min Price (24H)
$515.43 @ 0.165000 ETH
Max Price (24H)
$9,325.49 @ 2.985300 ETH
Other Info
Token Contract
Balance
1 SDOODLELoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
SpaceDoodles
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 9999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT /* -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- -- -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - - - - - - .:-----:. - - :-=++== . . .=++==- - - :=+=. . . . . . . . . ++= - - -+=. . . . . . . . . . . . ++. - - :*= . . . . . . . . . . . . . += - - =+. . .. . .. . .. . .. . . . . .=*. - - ++. . . . . . . . . . . . . . . . . *. - - =+. . . . . . . . . . . . . . . . . . #. - - #. . . . . . . . . . . . . . . . . . . =+ - - -+. . . . . . . . . . . . . . . . . . . # - - +=. . . . . . . . . . . . . . . . . . . *. - - +=. . . . . . . . . . . . . . . . . . . *. - - +=. . . . . . . . . . . . . . . . . . . *. - - ...::----. ==. . . . . . . . . . . . . . . . . . . *. - - :----------. =+. . . . . . . . . . . . . . . . . . . *. - - ....::----+++++++**=++=+*=**+++===*+*+......................................*=:. ...::::-------------::.. - - ---------++++++**::::==."" :+::=*........................................-=**::... .:------. - - ------++++++**:::=="" #::::#......................................:::--* .=- - - .------+++**:::*:" *:::::-==++++++++++=+==---::::::::::--------=++*%=. .:+- - - .:---++**:::*. =+-:::::::::::::::::::::--------==+++===--:. .:------. .:-=+=. - - .-----**:::*. ..::::.._ :===+++=========++++++=====--:. .::--=+##*- ..::-+==- - - .----*-:-*-------: ++-.__ ........ .:-===+===-........-===-.::-++**: - - .=*++=-:. "--_ :-=++=- '""-=*#+==--*: - - :-----:. ==-. :=++=. .=*+-++-+. - - .:----:" :==: .++=. ..........*. +--+ - - :----: .==. :*+. ..................-#:+--" - - :---:. -+ .++ ......-=+*******+:::::..*#-*- - - ---. ...:* .:*- ......+*****++:::::::::::::.+*+= - - * .....:::::::-=++. .:*- ....-=***+:::::++**+::::::::::.+*: - - ==. .....:::::::::-==+++++++=-.....::++ .....-***::::+***++==-#+:::::::::.#' - - -+- .....:::::::::::--==++++++++*%-===============#. .....-+#+::::+#+=------=#+::::::::.+- - - .=+=-:........:::::::::::::::--==+++++++++==**---------+#===============#. .......-=#::::::#------=+**:::::::::.+= - - :--=================-----:.*===========**---=+==+---**==============#..............-**::::::#*******+::::::::..=*: - - ===========**---+- .+--=#==============#..............-**::::::::::::::::::::...+=: - - *...======**---* *=-=*-=+-==========-%..............=*:::::::::::::::-...=+=- - - +. ..=**---* .+--+# :-=+========*=..............-=::::::::-.....=+=-: - - -=: *+---=+:.-*---+* .-=+=-===*%...............------...=++=-. - - :==. ++----==----*: -==+=+*=-...............=+===-. - - :---.*+-------=*. .--++#==++++=====--:. - - --*+*+++*+- - - .... - - - - - - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- -- -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- /// @author: proteinNFT with WestCoastNFT */ pragma solidity 0.8.7; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/interfaces/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.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"; contract SpaceDoodles is ERC721Enumerable, IERC721Receiver, VRFConsumerBaseV2, ReentrancyGuard, AccessControl { struct Stats { uint8 rank; // traits uint8 piloting; uint8 mechanical; uint8 stamina; uint8 bladder; uint8 vibe; } event ChangedStats( uint256 indexed _tokenId ); mapping(uint256 => Stats) public tokenStats; // token id => stats mapping(uint256 => uint256[]) public batches; // batch id => token ids mapping(uint256 => uint256) public requestIdToBatchId; // VRF request id => batch id uint256 public minBatchSize = 20; uint256 public maxBatchSize = 40; bool public launchingActive; bool public dockingActive; uint8[] public LOADED_DIE_LOOKUP; uint256 public batchCount; string private _baseURIOverride; IERC721 immutable DOODLES; VRFCoordinatorV2Interface immutable COORDINATOR; LinkTokenInterface immutable LINKTOKEN; struct RequestConfig { bytes32 keyHash; uint64 subId; uint32 callbackGasLimit; uint16 requestConfirmations; } RequestConfig public requestConfig; bytes32 public constant SUPPORT_ROLE = keccak256("SUPPORT"); bytes32 public constant RANK_WRITER_ROLE = keccak256("RANK_WRITER"); uint256 private _royaltyBps; address payable private _royaltyRecipient; bytes4 private constant _INTERFACE_ID_ROYALTIES_CREATORCORE = 0xbb3bafd6; bytes4 private constant _INTERFACE_ID_ROYALTIES_EIP2981 = 0x2a55205a; bytes4 private constant _INTERFACE_ID_ROYALTIES_RARIBLE = 0xb7799584; modifier tokenExists(uint256 tokenId) { require(_exists(tokenId), "Token does not exist."); _; } constructor(address _Doodles, address _VRFCoordinator, address _LINKToken, bytes32 _keyHash, uint64 _subId) ERC721("Space Doodles", "SDOODLE") VRFConsumerBaseV2(_VRFCoordinator) { DOODLES = IERC721(_Doodles); COORDINATOR = VRFCoordinatorV2Interface(_VRFCoordinator); LINKTOKEN = LinkTokenInterface(_LINKToken); requestConfig = RequestConfig({ keyHash: _keyHash, subId: _subId, callbackGasLimit: 2500000, requestConfirmations: 3 }); // roll this 256-sided die to get a trait value LOADED_DIE_LOOKUP = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,6,6,6,6,7,7,8]; _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _setupRole(SUPPORT_ROLE, msg.sender); } // chainlink config setters function setSubId(uint64 _subId) external onlyRole(SUPPORT_ROLE) { requestConfig.subId = _subId; } function setCallbackGasLimit(uint32 _callbackGasLimit) external onlyRole(SUPPORT_ROLE) { requestConfig.callbackGasLimit = _callbackGasLimit; } function setRequestConfirmations(uint16 _requestConfirmations) external onlyRole(SUPPORT_ROLE) { requestConfig.requestConfirmations = _requestConfirmations; } function setKeyHash(bytes32 _keyHash) external onlyRole(SUPPORT_ROLE) { requestConfig.keyHash = _keyHash; } // more configuration function setMinBatchSize(uint256 _minBatchSize) external onlyRole(SUPPORT_ROLE) { minBatchSize = _minBatchSize; if (minBatchSize > maxBatchSize) { maxBatchSize = minBatchSize; } } function setMaxBatchSize(uint256 _maxBatchSize) external onlyRole(SUPPORT_ROLE) { maxBatchSize = _maxBatchSize; if (minBatchSize > maxBatchSize) { minBatchSize = maxBatchSize; } } function _baseURI() internal view override returns (string memory) { return _baseURIOverride; } function setBaseURI(string memory uri) external onlyRole(SUPPORT_ROLE) { _baseURIOverride = uri; } function setLaunchingActive(bool launchingActive_) external onlyRole(SUPPORT_ROLE) { launchingActive = launchingActive_; } function setDockingActive(bool dockingActive_) external onlyRole(SUPPORT_ROLE) { dockingActive = dockingActive_; } // getters and setters for stats function getStats(uint256 tokenId) external view tokenExists(tokenId) returns (Stats memory) { Stats memory sd = tokenStats[tokenId]; require(sd.rank > 0, "Token traits have not been initialized."); return sd; } function setRank(uint256 tokenId, uint8 _rank) external onlyRole(RANK_WRITER_ROLE) tokenExists(tokenId) { tokenStats[tokenId].rank = _rank; emit ChangedStats(tokenId); } // batch processing function _ceil(uint256 a, uint256 m) internal pure returns (uint256) { return (a + m - 1) / m; } function _processBatch() internal returns (uint256) { RequestConfig memory rc = requestConfig; uint32 numWords = uint32(_ceil(batches[batchCount].length, SEEDS_PER_WORD)); uint256 requestId = COORDINATOR.requestRandomWords(rc.keyHash, rc.subId, rc.requestConfirmations, rc.callbackGasLimit, numWords); requestIdToBatchId[requestId] = batchCount; batchCount++; return requestId; } function flushBatch() external nonReentrant onlyRole(SUPPORT_ROLE) returns (uint256) { return _processBatch(); } function retryBatch(uint256 batchId) public onlyRole(SUPPORT_ROLE) returns (uint256) { uint256 batchSize = batches[batchId].length; // only allowed to retry if Stats haven't been set for (uint256 i; i < batchSize; i++) { require(tokenStats[batches[batchId][i]].rank == 0, "Traits have already been set."); } RequestConfig memory rc = requestConfig; uint32 numWords = uint32(_ceil(batches[batchId].length, SEEDS_PER_WORD)); uint256 requestId = COORDINATOR.requestRandomWords(rc.keyHash, rc.subId, rc.requestConfirmations, rc.callbackGasLimit, numWords); requestIdToBatchId[requestId] = batchId; return requestId; } // trait assignment uint256 public constant BITS_PER_TRAIT = 8; uint256 public constant NUM_TRAITS = 5; uint256 public constant VRF_WORD_SIZE = 256; uint256 public constant BITS_PER_SEED = BITS_PER_TRAIT * NUM_TRAITS; uint256 public constant SEEDS_PER_WORD = VRF_WORD_SIZE / BITS_PER_SEED; uint256 public constant SEED_MASK = (1 << BITS_PER_SEED) - 1; function _selectTrait(uint8 seed) internal view returns (uint8) { return LOADED_DIE_LOOKUP[seed]; } function _computeStats(uint256 seed) internal view returns (Stats memory) { return Stats({rank: 1, piloting: _selectTrait(uint8(seed)), mechanical: _selectTrait(uint8(seed >> BITS_PER_TRAIT)), stamina: _selectTrait(uint8(seed >> (BITS_PER_TRAIT * 2))), bladder: _selectTrait(uint8(seed >> (BITS_PER_TRAIT * 3))), vibe: _selectTrait(uint8(seed >> (BITS_PER_TRAIT * 4)))}); } // VRF callback function function fulfillRandomWords(uint256 requestId, uint256[] memory randomWords) internal override { uint256 batchId = requestIdToBatchId[requestId]; uint256 batchSize = batches[batchId].length; for (uint256 i; i < batchSize; i++) { uint256 j = i / SEEDS_PER_WORD; uint256 seed = randomWords[j] & SEED_MASK; uint256 tokenId = batches[batchId][i]; tokenStats[tokenId] = _computeStats(seed); emit ChangedStats(tokenId); randomWords[j] >>= BITS_PER_SEED; } } // launching/docking // launch: transfer in a Doodle and transfer/mint out a Space Doodle // dock: transfer in a Space Doodle and transfer out a Doodle // onERC721Received handler lets you send a Doodle directly to the contract, saving a setAllowedForAll call function _createSpaceShip(address to, uint256 tokenId) internal { batches[batchCount].push(tokenId); _safeMint(to, tokenId); } function onERC721Received(address, address from, uint256 tokenId, bytes memory data) public virtual override nonReentrant returns (bytes4) { if (msg.sender == address(DOODLES)) { require(launchingActive, "Launching is not allowed at this time."); if (!_exists(tokenId)) { _createSpaceShip(from, tokenId); if ((data.length == 0 && batches[batchCount].length >= minBatchSize) || batches[batchCount].length >= maxBatchSize) { _processBatch(); } } else { _safeTransfer(address(this), from, tokenId, ""); } } else if (msg.sender == address(this)) { require(dockingActive, "Docking is not allowed at this time."); DOODLES.safeTransferFrom(address(this), from, tokenId); } else { revert("Only Doodles and Space Doodles are supported."); } return this.onERC721Received.selector; } function launchMany(uint[] calldata tokenIds) external { for (uint256 i = 0; i < tokenIds.length; i++) { DOODLES.safeTransferFrom(msg.sender, address(this), tokenIds[i], "skip"); // skip batch check in onERC721Received } if (batches[batchCount].length >= minBatchSize) { _processBatch(); } } function dockMany(uint[] calldata tokenIds) external { for (uint256 i = 0; i < tokenIds.length; i++) { safeTransferFrom(msg.sender, address(this), tokenIds[i]); } } function sendLostDoodleHome(address to, uint256 tokenId) external onlyRole(SUPPORT_ROLE) { if (!_exists(tokenId) || ownerOf(tokenId) == address(this)) { // doodle stuck in this contract DOODLES.safeTransferFrom(address(this), to, tokenId); } else if (ownerOf(tokenId) == address(DOODLES)) { // space doodle stuck in doodle contract _safeTransfer(address(DOODLES), to, tokenId, ""); } else { revert("Only allowed in rescue scenarios."); } } function withdraw() external onlyRole(DEFAULT_ADMIN_ROLE) { (bool success, ) = msg.sender.call{value: address(this).balance}(""); require(success, "Transfer failed."); } function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControl, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId) || interfaceId == _INTERFACE_ID_ROYALTIES_CREATORCORE || interfaceId == _INTERFACE_ID_ROYALTIES_EIP2981 || interfaceId == _INTERFACE_ID_ROYALTIES_RARIBLE; } // eip 2981: royalties function updateRoyalties(address payable recipient, uint256 bps) external onlyRole(DEFAULT_ADMIN_ROLE) { _royaltyRecipient = recipient; _royaltyBps = bps; } function getRoyalties(uint256) external view returns (address payable[] memory recipients, uint256[] memory bps) { if (_royaltyRecipient != address(0x0)) { recipients = new address payable[](1); recipients[0] = _royaltyRecipient; bps = new uint256[](1); bps[0] = _royaltyBps; } return (recipients, bps); } function getFeeRecipients(uint256) external view returns (address payable[] memory recipients) { if (_royaltyRecipient != address(0x0)) { recipients = new address payable[](1); recipients[0] = _royaltyRecipient; } return recipients; } function getFeeBps(uint256) external view returns (uint[] memory bps) { if (_royaltyRecipient != address(0x0)) { bps = new uint256[](1); bps[0] = _royaltyBps; } return bps; } function royaltyInfo(uint256, uint256 value) external view returns (address, uint256) { return (_royaltyRecipient, value*_royaltyBps/10000); } }
// 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 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 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol) pragma solidity ^0.8.0; import "../token/ERC721/IERC721.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// 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 (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @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 virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_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 { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _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 { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @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. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * 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 ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// 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/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 v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) 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); }
// 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 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); }
{ "optimizer": { "enabled": true, "runs": 9999 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_Doodles","type":"address"},{"internalType":"address","name":"_VRFCoordinator","type":"address"},{"internalType":"address","name":"_LINKToken","type":"address"},{"internalType":"bytes32","name":"_keyHash","type":"bytes32"},{"internalType":"uint64","name":"_subId","type":"uint64"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"have","type":"address"},{"internalType":"address","name":"want","type":"address"}],"name":"OnlyCoordinatorCanFulfill","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"ChangedStats","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BITS_PER_SEED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BITS_PER_TRAIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"LOADED_DIE_LOOKUP","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NUM_TRAITS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RANK_WRITER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SEEDS_PER_WORD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SEED_MASK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SUPPORT_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VRF_WORD_SIZE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"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":"batchCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"batches","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"dockMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dockingActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flushBatch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getFeeBps","outputs":[{"internalType":"uint256[]","name":"bps","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getFeeRecipients","outputs":[{"internalType":"address payable[]","name":"recipients","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getRoyalties","outputs":[{"internalType":"address payable[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"bps","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getStats","outputs":[{"components":[{"internalType":"uint8","name":"rank","type":"uint8"},{"internalType":"uint8","name":"piloting","type":"uint8"},{"internalType":"uint8","name":"mechanical","type":"uint8"},{"internalType":"uint8","name":"stamina","type":"uint8"},{"internalType":"uint8","name":"bladder","type":"uint8"},{"internalType":"uint8","name":"vibe","type":"uint8"}],"internalType":"struct SpaceDoodles.Stats","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","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":"tokenIds","type":"uint256[]"}],"name":"launchMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"launchingActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBatchSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minBatchSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"requestId","type":"uint256"},{"internalType":"uint256[]","name":"randomWords","type":"uint256[]"}],"name":"rawFulfillRandomWords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"requestConfig","outputs":[{"internalType":"bytes32","name":"keyHash","type":"bytes32"},{"internalType":"uint64","name":"subId","type":"uint64"},{"internalType":"uint32","name":"callbackGasLimit","type":"uint32"},{"internalType":"uint16","name":"requestConfirmations","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"requestIdToBatchId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"batchId","type":"uint256"}],"name":"retryBatch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"sendLostDoodleHome","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":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_callbackGasLimit","type":"uint32"}],"name":"setCallbackGasLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"dockingActive_","type":"bool"}],"name":"setDockingActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_keyHash","type":"bytes32"}],"name":"setKeyHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"launchingActive_","type":"bool"}],"name":"setLaunchingActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxBatchSize","type":"uint256"}],"name":"setMaxBatchSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minBatchSize","type":"uint256"}],"name":"setMinBatchSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint8","name":"_rank","type":"uint8"}],"name":"setRank","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_requestConfirmations","type":"uint16"}],"name":"setRequestConfirmations","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_subId","type":"uint64"}],"name":"setSubId","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenStats","outputs":[{"internalType":"uint8","name":"rank","type":"uint8"},{"internalType":"uint8","name":"piloting","type":"uint8"},{"internalType":"uint8","name":"mechanical","type":"uint8"},{"internalType":"uint8","name":"stamina","type":"uint8"},{"internalType":"uint8","name":"bladder","type":"uint8"},{"internalType":"uint8","name":"vibe","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":"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 payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"bps","type":"uint256"}],"name":"updateRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101006040526014600f5560286010553480156200001c57600080fd5b50604051620054a4380380620054a48339810160408190526200003f9162000bb2565b604080518082018252600d81526c537061636520446f6f646c657360981b60208083019182528351808501909452600784526653444f4f444c4560c81b90840152815187939162000094916000919062000a4c565b508051620000aa90600190602084019062000a4c565b505050606090811b6001600160601b031990811660809081526001600a81905588841b831660a090815288851b841660c090815288861b851660e09081526040805180870182528a81526001600160401b038a166020808301829052622625a0838501526003928b0183905260158d905560168054909a169091176a2625a000000000000000001761ffff60601b19166c0300000000000000000000000017909855815161200081018352868152978801869052908701859052968601849052938501839052908401829052830181905290820181905261010080830182905261012083018290526101408301829052610160830182905261018083018290526101a083018290526101c083018290526101e08301829052610200830182905261022083018290526102408301829052610260830182905261028083018290526102a083018290526102c083018290526102e08301829052610300830182905261032083018290526103408301829052610360830182905261038083018290526103a083018290526103c083018290526103e08301829052610400830182905261042083018290526104408301829052610460830182905261048083018290526104a083018290526104c083018290526104e08301829052610500830182905261052083018290526105408301829052610560830182905261058083018290526105a083018290526105c083018290526105e08301829052610600830182905261062083018290526106408301829052610660830182905261068083018290526106a083018290526106c083018290526106e08301829052610700830182905261072083018290526107408301829052610760830182905261078083018290526107a083018290526107c083018290526107e08301829052610800830182905261082083018290526108408301829052610860830182905261088083018290526108a083018290526108c083018290526108e08301829052610900830182905261092083018290526109408301829052610960830182905261098083018290526109a083018290526109c083018290526109e08301829052610a008301829052610a208301829052610a408301829052610a608301829052610a808301829052610aa08301829052610ac08301829052610ae08301829052610b008301829052610b208301829052610b408301829052610b608301829052610b808301829052610ba08301829052610bc08301829052610be08301829052610c008301829052610c208301829052610c408301829052610c608301829052610c808301829052610ca08301829052610cc08301829052610ce08301829052610d008301829052610d208301829052610d408301829052610d608301829052610d808301829052610da08301829052610dc08301829052610de08301829052610e008301829052610e208301829052610e408301829052610e608301829052610e808301829052610ea08301829052610ec08301829052610ee08301829052610f008301829052610f208301829052610f408301829052610f608301829052610f808301829052610fa08301829052610fc08301829052610fe08301829052611000830191909152600261102083018190526110408301819052611060830181905261108083018190526110a083018190526110c083018190526110e08301819052611100830181905261112083018190526111408301819052611160830181905261118083018190526111a083018190526111c083018190526111e08301819052611200830181905261122083018190526112408301819052611260830181905261128083018190526112a083018190526112c083018190526112e08301819052611300830181905261132083018190526113408301819052611360830181905261138083018190526113a083018190526113c083018190526113e08301819052611400830181905261142083018190526114408301819052611460830181905261148083018190526114a083018190526114c083018190526114e08301819052611500830181905261152083018190526115408301819052611560830181905261158083018190526115a083018190526115c083018190526115e08301819052611600830181905261162083018190526116408301819052611660830181905261168083018190526116a083018190526116c083018190526116e08301819052611700830181905261172083018190526117408301819052611760830181905261178083018190526117a083018190526117c083018190526117e0830181905261180083015261182082018390526118408201839052611860820183905261188082018390526118a082018390526118c082018390526118e08201839052611900820183905261192082018390526119408201839052611960820183905261198082018390526119a082018390526119c082018390526119e08201839052611a008201839052611a208201839052611a408201839052611a608201839052611a808201839052611aa08201839052611ac08201839052611ae08201839052611b008201839052611b208201839052611b408201839052611b608201839052611b808201839052611ba08201839052611bc08201839052611be08201839052611c008201929092526004611c208201819052611c408201819052611c608201819052611c808201819052611ca08201819052611cc08201819052611ce08201819052611d008201819052611d208201819052611d408201819052611d608201819052611d808201819052611da08201819052611dc08201819052611de08201819052611e008201526005611e208201819052611e408201819052611e608201819052611e808201819052611ea08201819052611ec08201819052611ee08201819052611f008201526006611f208201819052611f408201819052611f608201819052611f808201526007611fa08201819052611fc08201526008611fe082015262000953916012919062000adb565b506200096160003362000998565b6200098d7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b3362000998565b505050505062000c66565b620009a48282620009a8565b5050565b6000828152600b602090815260408083206001600160a01b038516845290915290205460ff16620009a4576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff1916600117905562000a083390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b82805462000a5a9062000c29565b90600052602060002090601f01602090048101928262000a7e576000855562000ac9565b82601f1062000a9957805160ff191683800117855562000ac9565b8280016001018555821562000ac9579182015b8281111562000ac957825182559160200191906001019062000aac565b5062000ad792915062000b7e565b5090565b82805482825590600052602060002090601f0160209004810192821562000ac95791602002820160005b8382111562000b4557835183826101000a81548160ff021916908360ff160217905550926020019260010160208160000104928301926001030262000b05565b801562000b745782816101000a81549060ff021916905560010160208160000104928301926001030262000b45565b505062000ad79291505b5b8082111562000ad7576000815560010162000b7f565b80516001600160a01b038116811462000bad57600080fd5b919050565b600080600080600060a0868803121562000bcb57600080fd5b62000bd68662000b95565b945062000be66020870162000b95565b935062000bf66040870162000b95565b6060870151608088015191945092506001600160401b038116811462000c1b57600080fd5b809150509295509295909350565b600181811c9082168062000c3e57607f821691505b6020821081141562000c6057634e487b7160e01b600052602260045260246000fd5b50919050565b60805160601c60a05160601c60c05160601c60e05160601c6147ca62000cda6000396000505060008181611f5f0152612895015260008181610eba015281816110b60152818161167b015281816123030152818161236601526123ab0152600081816111bf015261121a01526147ca6000f3fe608060405234801561001057600080fd5b50600436106103d05760003560e01c80636c2f5acd116101ff578063a4eb718c1161011a578063c3871561116100ad578063daf48a321161007c578063daf48a32146109ac578063e926ca95146109b4578063e985e9c514610a46578063e988974914610a8257600080fd5b8063c387156114610971578063c87b56dd1461097e578063d547741f14610991578063d9ec50f0146109a457600080fd5b8063b88d4fde116100e9578063b88d4fde1461090a578063b9c4d9fb1461091d578063b9ebc40e1461093d578063bb3bafd61461095057600080fd5b8063a4eb718c146108b4578063a64550a1146108c7578063addbb3c9146108ee578063b18df006146108f757600080fd5b806394b059ab11610192578063992a844d11610161578063992a844d14610873578063a0f88bb714610886578063a217fddf14610899578063a22cb465146108a157600080fd5b806394b059ab1461081e57806395d89b411461084557806396c9fcd61461084d578063985447101461086057600080fd5b80637b303965116101ce5780637b3039651461075b5780637eeb1c67146107c95780638824f5a7146107d257806391d14854146107e557600080fd5b80636c2f5acd1461072557806370a082311461073857806374991fe61461074b5780637ab0d0b91461075357600080fd5b806336568abe116102ef57806349a46612116102825780635d47964b116102515780635d47964b146106c75780636352211e146106da57806366190a8e146106ed5780636b7ce5501461071257600080fd5b806349a46612146106155780634f6ccce71461062857806352566e931461063b57806355f804b3146106b457600080fd5b80634401fc0f116102be5780634401fc0f146105d35780634502780e146105f35780634516e1e9146105fb578063454836ad1461060d57600080fd5b806336568abe146105925780633ccfd60b146105a55780633e2831fe146105ad57806342842e0e146105c057600080fd5b80631fe543e3116103675780632a55205a116103365780632a55205a146105275780632b26a6bf146105595780632f2ff15d1461056c5780632f745c591461057f57600080fd5b80631fe543e3146104d557806323b872dd146104e8578063248a9ca3146104fb5780632913daa01461051e57600080fd5b8063095ea7b3116103a3578063095ea7b3146104545780630ebd4c7f14610469578063150b7a021461048957806318160ddd146104cd57600080fd5b806301ffc9a7146103d557806306f13056146103fd57806306fdde0314610414578063081812fc14610429575b600080fd5b6103e86103e33660046140ad565b610a95565b60405190151581526020015b60405180910390f35b61040660135481565b6040519081526020016103f4565b61041c610b8a565b6040516103f491906144a3565b61043c61043736600461406f565b610c1c565b6040516001600160a01b0390911681526020016103f4565b610467610462366004613e84565b610cc7565b005b61047c61047736600461406f565b610df9565b6040516103f49190614490565b61049c610497366004613f2a565b610e55565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020016103f4565b600854610406565b6104676104e336600461416d565b6111b4565b6104676104f6366004613ee9565b611255565b61040661050936600461406f565b6000908152600b602052604090206001015490565b61040660105481565b61053a610535366004614226565b6112dc565b604080516001600160a01b0390931683526020830191909152016103f4565b61046761056736600461406f565b611316565b61046761057a366004614088565b61135a565b61040661058d366004613e84565b611380565b6104676105a0366004614088565b611428565b6104676114b0565b6104676105bb366004614299565b611554565b6104676105ce366004613ee9565b6115bb565b6104066105e136600461406f565b600e6020526000908152604090205481565b6104066115d6565b6011546103e890610100900460ff1681565b610406600581565b610467610623366004613fdf565b61166e565b61040661063636600461406f565b6117b0565b60155460165461067c919067ffffffffffffffff81169068010000000000000000810463ffffffff16906c01000000000000000000000000900461ffff1684565b6040805194855267ffffffffffffffff909316602085015263ffffffff9091169183019190915261ffff1660608201526080016103f4565b6104676106c23660046140e7565b611854565b6104066106d5366004614226565b611892565b61043c6106e836600461406f565b6118c3565b6107006106fb36600461406f565b61194e565b60405160ff90911681526020016103f4565b610467610720366004613fdf565b611982565b610467610733366004613e84565b6119c2565b610406610746366004613e67565b611a0d565b610406611aa7565b610406600881565b61076e61076936600461406f565b611ac2565b6040516103f49190600060c08201905060ff8084511683528060208501511660208401528060408501511660408401528060608501511660608401528060808501511660808401528060a08501511660a08401525092915050565b610406600f5481565b6104676107e0366004614130565b611c44565b6103e86107f3366004614088565b6000918252600b602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6104067fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b81565b61041c611cb5565b61046761085b366004614054565b611cc4565b61046761086e36600461406f565b611d03565b61046761088136600461406f565b611d34565b61040661089436600461406f565b611d78565b610406600081565b6104676108af366004613faa565b612000565b6104676108c2366004614273565b61200b565b6104067fbf41b66e0b91d3bfcb3f5f0b3202de2fafe3878571e8c06289cfe757dcbc598081565b61040661010081565b610467610905366004614248565b61207a565b610467610918366004613f2a565b612153565b61093061092b36600461406f565b6121e1565b6040516103f4919061444f565b61046761094b366004613e84565b61225a565b61096361095e36600461406f565b61244f565b6040516103f4929190614462565b6011546103e89060ff1681565b61041c61098c36600461406f565b612503565b61046761099f366004614088565b6125ec565b610406612612565b61040661261e565b610a0a6109c236600461406f565b600c6020526000908152604090205460ff8082169161010081048216916201000082048116916301000000810482169164010000000082048116916501000000000090041686565b6040805160ff978816815295871660208701529386169385019390935290841660608401528316608083015290911660a082015260c0016103f4565b6103e8610a54366004613eb0565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610467610a90366004614054565b61263a565b6000610aa08261269d565b80610aec57507fffffffff0000000000000000000000000000000000000000000000000000000082167fbb3bafd600000000000000000000000000000000000000000000000000000000145b80610b3857507fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a00000000000000000000000000000000000000000000000000000000145b80610b8457507fffffffff0000000000000000000000000000000000000000000000000000000082167fb779958400000000000000000000000000000000000000000000000000000000145b92915050565b606060008054610b99906145c8565b80601f0160208091040260200160405190810160405280929190818152602001828054610bc5906145c8565b8015610c125780601f10610be757610100808354040283529160200191610c12565b820191906000526020600020905b815481529060010190602001808311610bf557829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610cab5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610cd2826118c3565b9050806001600160a01b0316836001600160a01b03161415610d5c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610ca2565b336001600160a01b0382161480610d785750610d788133610a54565b610dea5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ca2565b610df483836126f3565b505050565b6018546060906001600160a01b031615610e5057604080516001808252818301909252906020808301908036833701905050905060175481600081518110610e4357610e436146f0565b6020026020010181815250505b919050565b60006002600a541415610eaa5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ca2565b6002600a55336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161415610fed5760115460ff16610f585760405162461bcd60e51b815260206004820152602660248201527f4c61756e6368696e67206973206e6f7420616c6c6f776564206174207468697360448201527f2074696d652e00000000000000000000000000000000000000000000000000006064820152608401610ca2565b6000838152600260205260409020546001600160a01b0316610fd257610f7e8484612779565b8151158015610fa05750600f546013546000908152600d602052604090205410155b80610fbe57506010546013546000908152600d602052604090205410155b15610fcd57610fcb6127a7565b505b611185565b610fcd30858560405180602001604052806000815250612948565b3330141561111757601154610100900460ff166110715760405162461bcd60e51b8152602060048201526024808201527f446f636b696e67206973206e6f7420616c6c6f7765642061742074686973207460448201527f696d652e000000000000000000000000000000000000000000000000000000006064820152608401610ca2565b6040517f42842e0e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038581166024830152604482018590527f000000000000000000000000000000000000000000000000000000000000000016906342842e0e90606401600060405180830381600087803b1580156110fa57600080fd5b505af115801561110e573d6000803e3d6000fd5b50505050611185565b60405162461bcd60e51b815260206004820152602d60248201527f4f6e6c7920446f6f646c657320616e6420537061636520446f6f646c6573206160448201527f726520737570706f727465642e000000000000000000000000000000000000006064820152608401610ca2565b507f150b7a02000000000000000000000000000000000000000000000000000000006001600a55949350505050565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614611247576040517f1cf993f40000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166024820152604401610ca2565b61125182826129d1565b5050565b61125f3382612c3a565b6112d15760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ca2565b610df4838383612d42565b60185460175460009182916001600160a01b0390911690612710906113019086614513565b61130b91906144ff565b915091509250929050565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b6113418133612f32565b6010829055600f5482101561125157601054600f555050565b6000828152600b60205260409020600101546113768133612f32565b610df48383612fb2565b600061138b83611a0d565b82106113ff5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610ca2565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6001600160a01b03811633146114a65760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610ca2565b6112518282613054565b60006114bc8133612f32565b604051600090339047908381818185875af1925050503d80600081146114fe576040519150601f19603f3d011682016040523d82523d6000602084013e611503565b606091505b50509050806112515760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610ca2565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b61157f8133612f32565b50601680547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff92909216919091179055565b610df483838360405180602001604052806000815250612153565b60006002600a54141561162b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ca2565b6002600a557fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b61165b8133612f32565b6116636127a7565b9150506001600a5590565b60005b8181101561178d577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b88d4fde33308686868181106116bc576116bc6146f0565b60405160e087901b7fffffffff000000000000000000000000000000000000000000000000000000001681526001600160a01b0395861660048083019190915294909516602486015260200291909101356044840152506080606483015260848201527f736b69700000000000000000000000000000000000000000000000000000000060a482015260c401600060405180830381600087803b15801561176257600080fd5b505af1158015611776573d6000803e3d6000fd5b50505050808061178590614616565b915050611671565b50600f546013546000908152600d60205260409020541061125157610df46127a7565b60006117bb60085490565b821061182f5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610ca2565b60088281548110611842576118426146f0565b90600052602060002001549050919050565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b61187f8133612f32565b8151610df4906014906020850190613d66565b600d60205281600052604060002081815481106118ae57600080fd5b90600052602060002001600091509150505481565b6000818152600260205260408120546001600160a01b031680610b845760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610ca2565b6012818154811061195e57600080fd5b9060005260206000209060209182820401919006915054906101000a900460ff1681565b60005b81811015610df4576119b033308585858181106119a4576119a46146f0565b905060200201356115bb565b806119ba81614616565b915050611985565b60006119ce8133612f32565b50601880547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b039390931692909217909155601755565b60006001600160a01b038216611a8b5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610ca2565b506001600160a01b031660009081526003602052604090205490565b611ab360056008614513565b611abf906101006144ff565b81565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a081019190915260008281526002602052604090205482906001600160a01b0316611b5a5760405162461bcd60e51b815260206004820152601560248201527f546f6b656e20646f6573206e6f742065786973742e00000000000000000000006044820152606401610ca2565b6000838152600c6020908152604091829020825160c081018452905460ff8082168084526101008304821694840194909452620100008204811694830194909452630100000081048416606083015264010000000081048416608083015265010000000000900490921660a0830152611c3b5760405162461bcd60e51b815260206004820152602760248201527f546f6b656e207472616974732068617665206e6f74206265656e20696e69746960448201527f616c697a65642e000000000000000000000000000000000000000000000000006064820152608401610ca2565b91505b50919050565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b611c6f8133612f32565b506016805461ffff9092166c01000000000000000000000000027fffffffffffffffffffffffffffffffffffff0000ffffffffffffffffffffffff909216919091179055565b606060018054610b99906145c8565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b611cef8133612f32565b506011805460ff1916911515919091179055565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b611d2e8133612f32565b50601555565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b611d5f8133612f32565b600f82905560105482111561125157600f546010555050565b60007fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b611da58133612f32565b6000838152600d6020526040812054905b81811015611e61576000858152600d602052604081208054600c92919084908110611de357611de36146f0565b6000918252602080832090910154835282019290925260400190205460ff1615611e4f5760405162461bcd60e51b815260206004820152601d60248201527f547261697473206861766520616c7265616479206265656e207365742e0000006044820152606401610ca2565b80611e5981614616565b915050611db6565b5060408051608081018252601554815260165467ffffffffffffffff811660208084019190915268010000000000000000820463ffffffff16838501526c0100000000000000000000000090910461ffff1660608301526000878152600d90915291822054909190611eea90611ed960056008614513565b611ee5906101006144ff565b6130d7565b82516020840151606085015160408087015190517f5d3b1d30000000000000000000000000000000000000000000000000000000008152600481019490945267ffffffffffffffff909216602484015261ffff16604483015263ffffffff9081166064830152821660848201529091506000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690635d3b1d309060a401602060405180830381600087803b158015611fab57600080fd5b505af1158015611fbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fe39190614154565b6000818152600e6020526040902088905595505050505050919050565b6112513383836130fa565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b6120368133612f32565b506016805463ffffffff90921668010000000000000000027fffffffffffffffffffffffffffffffffffffffff00000000ffffffffffffffff909216919091179055565b7fbf41b66e0b91d3bfcb3f5f0b3202de2fafe3878571e8c06289cfe757dcbc59806120a58133612f32565b60008381526002602052604090205483906001600160a01b031661210b5760405162461bcd60e51b815260206004820152601560248201527f546f6b656e20646f6573206e6f742065786973742e00000000000000000000006044820152606401610ca2565b6000848152600c6020526040808220805460ff191660ff87161790555185917f3063a7f4045ac90e6c1e1c0a1cd8a4d8208488f1f3a05359bf9e5eb5e045ff3f91a250505050565b61215d3383612c3a565b6121cf5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ca2565b6121db84848484612948565b50505050565b6018546060906001600160a01b031615610e50576040805160018082528183019092529060208083019080368337505060185482519293506001600160a01b031691839150600090612235576122356146f0565b60200260200101906001600160a01b031690816001600160a01b031681525050919050565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b6122858133612f32565b6000828152600260205260409020546001600160a01b031615806122b95750306122ae836118c3565b6001600160a01b0316145b15612364576040517f42842e0e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038481166024830152604482018490527f000000000000000000000000000000000000000000000000000000000000000016906342842e0e90606401600060405180830381600087803b15801561234757600080fd5b505af115801561235b573d6000803e3d6000fd5b50505050505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316612397836118c3565b6001600160a01b031614156123e157610df47f0000000000000000000000000000000000000000000000000000000000000000848460405180602001604052806000815250612948565b60405162461bcd60e51b815260206004820152602160248201527f4f6e6c7920616c6c6f77656420696e20726573637565207363656e6172696f7360448201527f2e000000000000000000000000000000000000000000000000000000000000006064820152608401610ca2565b60185460609081906001600160a01b0316156124fe576040805160018082528183019092529060208083019080368337505060185482519294506001600160a01b0316918491506000906124a5576124a56146f0565b6001600160a01b0392909216602092830291909101820152604080516001808252818301909252918281019080368337019050509050601754816000815181106124f1576124f16146f0565b6020026020010181815250505b915091565b6000818152600260205260409020546060906001600160a01b03166125905760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610ca2565b600061259a6131c9565b905060008151116125ba57604051806020016040528060008152506125e5565b806125c4846131d8565b6040516020016125d5929190614363565b6040516020818303038152906040525b9392505050565b6000828152600b60205260409020600101546126088133612f32565b610df48383613054565b611abf60056008614513565b600161262c60056008614513565b6001901b611abf9190614550565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b6126658133612f32565b5060118054911515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909216919091179055565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610b845750610b848261330a565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384169081179091558190612740826118c3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6013546000908152600d60209081526040822080546001810182559083529120018190556112518282613360565b60408051608081018252601554815260165467ffffffffffffffff811660208084019190915268010000000000000000820463ffffffff16838501526c0100000000000000000000000090910461ffff1660608301526013546000908152600d90915291822054829061282090611ed960056008614513565b82516020840151606085015160408087015190517f5d3b1d30000000000000000000000000000000000000000000000000000000008152600481019490945267ffffffffffffffff909216602484015261ffff16604483015263ffffffff9081166064830152821660848201529091506000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690635d3b1d309060a401602060405180830381600087803b1580156128e157600080fd5b505af11580156128f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129199190614154565b601380546000838152600e602052604081208290559293509161293b83614616565b9091555090949350505050565b612953848484612d42565b61295f8484848461337a565b6121db5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ca2565b6000828152600e6020908152604080832054808452600d90925282205490915b81811015612c33576000612a0760056008614513565b612a13906101006144ff565b612a1d90836144ff565b905060006001612a2f60056008614513565b6001901b612a3d9190614550565b868381518110612a4f57612a4f6146f0565b60200260200101511690506000600d60008781526020019081526020016000208481548110612a8057612a806146f0565b90600052602060002001549050612a9682613527565b6000828152600c602090815260408083208451815493860151868401516060880151608089015160a09099015160ff90811665010000000000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffffffff9a8216640100000000029a909a167fffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffffffff9282166301000000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffff9483166201000002949094167fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffff958316610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000909a169290961691909117979097179290921692909217919091171692909217939093179055905182917f3063a7f4045ac90e6c1e1c0a1cd8a4d8208488f1f3a05359bf9e5eb5e045ff3f91a2612bf860056008614513565b878481518110612c0a57612c0a6146f0565b60200260200101818151901c915081815250505050508080612c2b90614616565b9150506129f1565b5050505050565b6000818152600260205260408120546001600160a01b0316612cc45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610ca2565b6000612ccf836118c3565b9050806001600160a01b0316846001600160a01b03161480612d0a5750836001600160a01b0316612cff84610c1c565b6001600160a01b0316145b80612d3a57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612d55826118c3565b6001600160a01b031614612dd15760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610ca2565b6001600160a01b038216612e4c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610ca2565b612e578383836135e4565b612e626000826126f3565b6001600160a01b0383166000908152600360205260408120805460019290612e8b908490614550565b90915550506001600160a01b0382166000908152600360205260408120805460019290612eb99084906144e7565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828152600b602090815260408083206001600160a01b038516845290915290205460ff1661125157612f70816001600160a01b0316601461369c565b612f7b83602061369c565b604051602001612f8c929190614392565b60408051601f198184030181529082905262461bcd60e51b8252610ca2916004016144a3565b6000828152600b602090815260408083206001600160a01b038516845290915290205460ff16611251576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff191660011790556130103390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152600b602090815260408083206001600160a01b038516845290915290205460ff1615611251576000828152600b602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60008160016130e682866144e7565b6130f09190614550565b6125e591906144ff565b816001600160a01b0316836001600160a01b0316141561315c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ca2565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b606060148054610b99906145c8565b60608161321857505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613242578061322c81614616565b915061323b9050600a836144ff565b915061321c565b60008167ffffffffffffffff81111561325d5761325d61471f565b6040519080825280601f01601f191660200182016040528015613287576020820181803683370190505b5090505b8415612d3a5761329c600183614550565b91506132a9600a8661464f565b6132b49060306144e7565b60f81b8183815181106132c9576132c96146f0565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613303600a866144ff565b945061328b565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610b845750610b84826138c5565b6112518282604051806020016040528060008152506139a8565b60006001600160a01b0384163b1561351c576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906133d7903390899088908890600401614413565b602060405180830381600087803b1580156133f157600080fd5b505af1925050508015613421575060408051601f3d908101601f1916820190925261341e918101906140ca565b60015b6134d1573d80801561344f576040519150601f19603f3d011682016040523d82523d6000602084013e613454565b606091505b5080516134c95760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ca2565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612d3a565b506001949350505050565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a08101919091526040518060c00160405280600160ff16815260200161357784613a31565b60ff16815260200161358c600885901c613a31565b60ff1681526020016135ab6135a360086002614513565b85901c613a31565b60ff1681526020016135c26135a360086003614513565b60ff1681526020016135d96135a360086004614513565b60ff16905292915050565b6001600160a01b03831661363f5761363a81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613662565b816001600160a01b0316836001600160a01b031614613662576136628382613a70565b6001600160a01b03821661367957610df481613b0d565b826001600160a01b0316826001600160a01b031614610df457610df48282613bbc565b606060006136ab836002614513565b6136b69060026144e7565b67ffffffffffffffff8111156136ce576136ce61471f565b6040519080825280601f01601f1916602001820160405280156136f8576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061372f5761372f6146f0565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613792576137926146f0565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006137ce846002614513565b6137d99060016144e7565b90505b6001811115613876577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061381a5761381a6146f0565b1a60f81b828281518110613830576138306146f0565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c9361386f81614593565b90506137dc565b5083156125e55760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610ca2565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061395857507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610b8457507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610b84565b6139b28383613c00565b6139bf600084848461337a565b610df45760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ca2565b600060128260ff1681548110613a4957613a496146f0565b90600052602060002090602091828204019190069054906101000a900460ff169050919050565b60006001613a7d84611a0d565b613a879190614550565b600083815260076020526040902054909150808214613ada576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613b1f90600190614550565b60008381526009602052604081205460088054939450909284908110613b4757613b476146f0565b906000526020600020015490508060088381548110613b6857613b686146f0565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613ba057613ba06146c1565b6001900381819060005260206000200160009055905550505050565b6000613bc783611a0d565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216613c565760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ca2565b6000818152600260205260409020546001600160a01b031615613cbb5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ca2565b613cc7600083836135e4565b6001600160a01b0382166000908152600360205260408120805460019290613cf09084906144e7565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054613d72906145c8565b90600052602060002090601f016020900481019282613d945760008555613dda565b82601f10613dad57805160ff1916838001178555613dda565b82800160010185558215613dda579182015b82811115613dda578251825591602001919060010190613dbf565b50613de6929150613dea565b5090565b5b80821115613de65760008155600101613deb565b600067ffffffffffffffff831115613e1957613e1961471f565b613e2c6020601f19601f860116016144b6565b9050828152838383011115613e4057600080fd5b828260208301376000602084830101529392505050565b80358015158114610e5057600080fd5b600060208284031215613e7957600080fd5b81356125e58161474e565b60008060408385031215613e9757600080fd5b8235613ea28161474e565b946020939093013593505050565b60008060408385031215613ec357600080fd5b8235613ece8161474e565b91506020830135613ede8161474e565b809150509250929050565b600080600060608486031215613efe57600080fd5b8335613f098161474e565b92506020840135613f198161474e565b929592945050506040919091013590565b60008060008060808587031215613f4057600080fd5b8435613f4b8161474e565b93506020850135613f5b8161474e565b925060408501359150606085013567ffffffffffffffff811115613f7e57600080fd5b8501601f81018713613f8f57600080fd5b613f9e87823560208401613dff565b91505092959194509250565b60008060408385031215613fbd57600080fd5b8235613fc88161474e565b9150613fd660208401613e57565b90509250929050565b60008060208385031215613ff257600080fd5b823567ffffffffffffffff8082111561400a57600080fd5b818501915085601f83011261401e57600080fd5b81358181111561402d57600080fd5b8660208260051b850101111561404257600080fd5b60209290920196919550909350505050565b60006020828403121561406657600080fd5b6125e582613e57565b60006020828403121561408157600080fd5b5035919050565b6000806040838503121561409b57600080fd5b823591506020830135613ede8161474e565b6000602082840312156140bf57600080fd5b81356125e581614766565b6000602082840312156140dc57600080fd5b81516125e581614766565b6000602082840312156140f957600080fd5b813567ffffffffffffffff81111561411057600080fd5b8201601f8101841361412157600080fd5b612d3a84823560208401613dff565b60006020828403121561414257600080fd5b813561ffff811681146125e557600080fd5b60006020828403121561416657600080fd5b5051919050565b6000806040838503121561418057600080fd5b8235915060208084013567ffffffffffffffff808211156141a057600080fd5b818601915086601f8301126141b457600080fd5b8135818111156141c6576141c661471f565b8060051b91506141d78483016144b6565b8181528481019084860184860187018b10156141f257600080fd5b600095505b838610156142155780358352600195909501949186019186016141f7565b508096505050505050509250929050565b6000806040838503121561423957600080fd5b50508035926020909101359150565b6000806040838503121561425b57600080fd5b82359150602083013560ff81168114613ede57600080fd5b60006020828403121561428557600080fd5b813563ffffffff811681146125e557600080fd5b6000602082840312156142ab57600080fd5b813567ffffffffffffffff811681146125e557600080fd5b600081518084526020808501945080840160005b838110156142fc5781516001600160a01b0316875295820195908201906001016142d7565b509495945050505050565b600081518084526020808501945080840160005b838110156142fc5781518752958201959082019060010161431b565b6000815180845261434f816020860160208601614567565b601f01601f19169290920160200192915050565b60008351614375818460208801614567565b835190830190614389818360208801614567565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516143ca816017850160208801614567565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351614407816028840160208801614567565b01602801949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526144456080830184614337565b9695505050505050565b6020815260006125e560208301846142c3565b60408152600061447560408301856142c3565b82810360208401526144878185614307565b95945050505050565b6020815260006125e56020830184614307565b6020815260006125e56020830184614337565b604051601f8201601f1916810167ffffffffffffffff811182821017156144df576144df61471f565b604052919050565b600082198211156144fa576144fa614663565b500190565b60008261450e5761450e614692565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561454b5761454b614663565b500290565b60008282101561456257614562614663565b500390565b60005b8381101561458257818101518382015260200161456a565b838111156121db5750506000910152565b6000816145a2576145a2614663565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600181811c908216806145dc57607f821691505b60208210811415611c3e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561464857614648614663565b5060010190565b60008261465e5761465e614692565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6001600160a01b038116811461476357600080fd5b50565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461476357600080fdfea2646970667358221220b83adec4d668ab8c7f15abd6984b33ab1ff930b25ecf317abaa7a41a3e38344164736f6c634300080700330000000000000000000000008a90cab2b38dba80c64b7734e58ee1db38b8992e000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef000000000000000000000000000000000000000000000000000000000000000a
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103d05760003560e01c80636c2f5acd116101ff578063a4eb718c1161011a578063c3871561116100ad578063daf48a321161007c578063daf48a32146109ac578063e926ca95146109b4578063e985e9c514610a46578063e988974914610a8257600080fd5b8063c387156114610971578063c87b56dd1461097e578063d547741f14610991578063d9ec50f0146109a457600080fd5b8063b88d4fde116100e9578063b88d4fde1461090a578063b9c4d9fb1461091d578063b9ebc40e1461093d578063bb3bafd61461095057600080fd5b8063a4eb718c146108b4578063a64550a1146108c7578063addbb3c9146108ee578063b18df006146108f757600080fd5b806394b059ab11610192578063992a844d11610161578063992a844d14610873578063a0f88bb714610886578063a217fddf14610899578063a22cb465146108a157600080fd5b806394b059ab1461081e57806395d89b411461084557806396c9fcd61461084d578063985447101461086057600080fd5b80637b303965116101ce5780637b3039651461075b5780637eeb1c67146107c95780638824f5a7146107d257806391d14854146107e557600080fd5b80636c2f5acd1461072557806370a082311461073857806374991fe61461074b5780637ab0d0b91461075357600080fd5b806336568abe116102ef57806349a46612116102825780635d47964b116102515780635d47964b146106c75780636352211e146106da57806366190a8e146106ed5780636b7ce5501461071257600080fd5b806349a46612146106155780634f6ccce71461062857806352566e931461063b57806355f804b3146106b457600080fd5b80634401fc0f116102be5780634401fc0f146105d35780634502780e146105f35780634516e1e9146105fb578063454836ad1461060d57600080fd5b806336568abe146105925780633ccfd60b146105a55780633e2831fe146105ad57806342842e0e146105c057600080fd5b80631fe543e3116103675780632a55205a116103365780632a55205a146105275780632b26a6bf146105595780632f2ff15d1461056c5780632f745c591461057f57600080fd5b80631fe543e3146104d557806323b872dd146104e8578063248a9ca3146104fb5780632913daa01461051e57600080fd5b8063095ea7b3116103a3578063095ea7b3146104545780630ebd4c7f14610469578063150b7a021461048957806318160ddd146104cd57600080fd5b806301ffc9a7146103d557806306f13056146103fd57806306fdde0314610414578063081812fc14610429575b600080fd5b6103e86103e33660046140ad565b610a95565b60405190151581526020015b60405180910390f35b61040660135481565b6040519081526020016103f4565b61041c610b8a565b6040516103f491906144a3565b61043c61043736600461406f565b610c1c565b6040516001600160a01b0390911681526020016103f4565b610467610462366004613e84565b610cc7565b005b61047c61047736600461406f565b610df9565b6040516103f49190614490565b61049c610497366004613f2a565b610e55565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020016103f4565b600854610406565b6104676104e336600461416d565b6111b4565b6104676104f6366004613ee9565b611255565b61040661050936600461406f565b6000908152600b602052604090206001015490565b61040660105481565b61053a610535366004614226565b6112dc565b604080516001600160a01b0390931683526020830191909152016103f4565b61046761056736600461406f565b611316565b61046761057a366004614088565b61135a565b61040661058d366004613e84565b611380565b6104676105a0366004614088565b611428565b6104676114b0565b6104676105bb366004614299565b611554565b6104676105ce366004613ee9565b6115bb565b6104066105e136600461406f565b600e6020526000908152604090205481565b6104066115d6565b6011546103e890610100900460ff1681565b610406600581565b610467610623366004613fdf565b61166e565b61040661063636600461406f565b6117b0565b60155460165461067c919067ffffffffffffffff81169068010000000000000000810463ffffffff16906c01000000000000000000000000900461ffff1684565b6040805194855267ffffffffffffffff909316602085015263ffffffff9091169183019190915261ffff1660608201526080016103f4565b6104676106c23660046140e7565b611854565b6104066106d5366004614226565b611892565b61043c6106e836600461406f565b6118c3565b6107006106fb36600461406f565b61194e565b60405160ff90911681526020016103f4565b610467610720366004613fdf565b611982565b610467610733366004613e84565b6119c2565b610406610746366004613e67565b611a0d565b610406611aa7565b610406600881565b61076e61076936600461406f565b611ac2565b6040516103f49190600060c08201905060ff8084511683528060208501511660208401528060408501511660408401528060608501511660608401528060808501511660808401528060a08501511660a08401525092915050565b610406600f5481565b6104676107e0366004614130565b611c44565b6103e86107f3366004614088565b6000918252600b602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6104067fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b81565b61041c611cb5565b61046761085b366004614054565b611cc4565b61046761086e36600461406f565b611d03565b61046761088136600461406f565b611d34565b61040661089436600461406f565b611d78565b610406600081565b6104676108af366004613faa565b612000565b6104676108c2366004614273565b61200b565b6104067fbf41b66e0b91d3bfcb3f5f0b3202de2fafe3878571e8c06289cfe757dcbc598081565b61040661010081565b610467610905366004614248565b61207a565b610467610918366004613f2a565b612153565b61093061092b36600461406f565b6121e1565b6040516103f4919061444f565b61046761094b366004613e84565b61225a565b61096361095e36600461406f565b61244f565b6040516103f4929190614462565b6011546103e89060ff1681565b61041c61098c36600461406f565b612503565b61046761099f366004614088565b6125ec565b610406612612565b61040661261e565b610a0a6109c236600461406f565b600c6020526000908152604090205460ff8082169161010081048216916201000082048116916301000000810482169164010000000082048116916501000000000090041686565b6040805160ff978816815295871660208701529386169385019390935290841660608401528316608083015290911660a082015260c0016103f4565b6103e8610a54366004613eb0565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610467610a90366004614054565b61263a565b6000610aa08261269d565b80610aec57507fffffffff0000000000000000000000000000000000000000000000000000000082167fbb3bafd600000000000000000000000000000000000000000000000000000000145b80610b3857507fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a00000000000000000000000000000000000000000000000000000000145b80610b8457507fffffffff0000000000000000000000000000000000000000000000000000000082167fb779958400000000000000000000000000000000000000000000000000000000145b92915050565b606060008054610b99906145c8565b80601f0160208091040260200160405190810160405280929190818152602001828054610bc5906145c8565b8015610c125780601f10610be757610100808354040283529160200191610c12565b820191906000526020600020905b815481529060010190602001808311610bf557829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610cab5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610cd2826118c3565b9050806001600160a01b0316836001600160a01b03161415610d5c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610ca2565b336001600160a01b0382161480610d785750610d788133610a54565b610dea5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ca2565b610df483836126f3565b505050565b6018546060906001600160a01b031615610e5057604080516001808252818301909252906020808301908036833701905050905060175481600081518110610e4357610e436146f0565b6020026020010181815250505b919050565b60006002600a541415610eaa5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ca2565b6002600a55336001600160a01b037f0000000000000000000000008a90cab2b38dba80c64b7734e58ee1db38b8992e161415610fed5760115460ff16610f585760405162461bcd60e51b815260206004820152602660248201527f4c61756e6368696e67206973206e6f7420616c6c6f776564206174207468697360448201527f2074696d652e00000000000000000000000000000000000000000000000000006064820152608401610ca2565b6000838152600260205260409020546001600160a01b0316610fd257610f7e8484612779565b8151158015610fa05750600f546013546000908152600d602052604090205410155b80610fbe57506010546013546000908152600d602052604090205410155b15610fcd57610fcb6127a7565b505b611185565b610fcd30858560405180602001604052806000815250612948565b3330141561111757601154610100900460ff166110715760405162461bcd60e51b8152602060048201526024808201527f446f636b696e67206973206e6f7420616c6c6f7765642061742074686973207460448201527f696d652e000000000000000000000000000000000000000000000000000000006064820152608401610ca2565b6040517f42842e0e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038581166024830152604482018590527f0000000000000000000000008a90cab2b38dba80c64b7734e58ee1db38b8992e16906342842e0e90606401600060405180830381600087803b1580156110fa57600080fd5b505af115801561110e573d6000803e3d6000fd5b50505050611185565b60405162461bcd60e51b815260206004820152602d60248201527f4f6e6c7920446f6f646c657320616e6420537061636520446f6f646c6573206160448201527f726520737570706f727465642e000000000000000000000000000000000000006064820152608401610ca2565b507f150b7a02000000000000000000000000000000000000000000000000000000006001600a55949350505050565b336001600160a01b037f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e699091614611247576040517f1cf993f40000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b037f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909166024820152604401610ca2565b61125182826129d1565b5050565b61125f3382612c3a565b6112d15760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ca2565b610df4838383612d42565b60185460175460009182916001600160a01b0390911690612710906113019086614513565b61130b91906144ff565b915091509250929050565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b6113418133612f32565b6010829055600f5482101561125157601054600f555050565b6000828152600b60205260409020600101546113768133612f32565b610df48383612fb2565b600061138b83611a0d565b82106113ff5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610ca2565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6001600160a01b03811633146114a65760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610ca2565b6112518282613054565b60006114bc8133612f32565b604051600090339047908381818185875af1925050503d80600081146114fe576040519150601f19603f3d011682016040523d82523d6000602084013e611503565b606091505b50509050806112515760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610ca2565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b61157f8133612f32565b50601680547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff92909216919091179055565b610df483838360405180602001604052806000815250612153565b60006002600a54141561162b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610ca2565b6002600a557fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b61165b8133612f32565b6116636127a7565b9150506001600a5590565b60005b8181101561178d577f0000000000000000000000008a90cab2b38dba80c64b7734e58ee1db38b8992e6001600160a01b031663b88d4fde33308686868181106116bc576116bc6146f0565b60405160e087901b7fffffffff000000000000000000000000000000000000000000000000000000001681526001600160a01b0395861660048083019190915294909516602486015260200291909101356044840152506080606483015260848201527f736b69700000000000000000000000000000000000000000000000000000000060a482015260c401600060405180830381600087803b15801561176257600080fd5b505af1158015611776573d6000803e3d6000fd5b50505050808061178590614616565b915050611671565b50600f546013546000908152600d60205260409020541061125157610df46127a7565b60006117bb60085490565b821061182f5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610ca2565b60088281548110611842576118426146f0565b90600052602060002001549050919050565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b61187f8133612f32565b8151610df4906014906020850190613d66565b600d60205281600052604060002081815481106118ae57600080fd5b90600052602060002001600091509150505481565b6000818152600260205260408120546001600160a01b031680610b845760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610ca2565b6012818154811061195e57600080fd5b9060005260206000209060209182820401919006915054906101000a900460ff1681565b60005b81811015610df4576119b033308585858181106119a4576119a46146f0565b905060200201356115bb565b806119ba81614616565b915050611985565b60006119ce8133612f32565b50601880547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b039390931692909217909155601755565b60006001600160a01b038216611a8b5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610ca2565b506001600160a01b031660009081526003602052604090205490565b611ab360056008614513565b611abf906101006144ff565b81565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a081019190915260008281526002602052604090205482906001600160a01b0316611b5a5760405162461bcd60e51b815260206004820152601560248201527f546f6b656e20646f6573206e6f742065786973742e00000000000000000000006044820152606401610ca2565b6000838152600c6020908152604091829020825160c081018452905460ff8082168084526101008304821694840194909452620100008204811694830194909452630100000081048416606083015264010000000081048416608083015265010000000000900490921660a0830152611c3b5760405162461bcd60e51b815260206004820152602760248201527f546f6b656e207472616974732068617665206e6f74206265656e20696e69746960448201527f616c697a65642e000000000000000000000000000000000000000000000000006064820152608401610ca2565b91505b50919050565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b611c6f8133612f32565b506016805461ffff9092166c01000000000000000000000000027fffffffffffffffffffffffffffffffffffff0000ffffffffffffffffffffffff909216919091179055565b606060018054610b99906145c8565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b611cef8133612f32565b506011805460ff1916911515919091179055565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b611d2e8133612f32565b50601555565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b611d5f8133612f32565b600f82905560105482111561125157600f546010555050565b60007fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b611da58133612f32565b6000838152600d6020526040812054905b81811015611e61576000858152600d602052604081208054600c92919084908110611de357611de36146f0565b6000918252602080832090910154835282019290925260400190205460ff1615611e4f5760405162461bcd60e51b815260206004820152601d60248201527f547261697473206861766520616c7265616479206265656e207365742e0000006044820152606401610ca2565b80611e5981614616565b915050611db6565b5060408051608081018252601554815260165467ffffffffffffffff811660208084019190915268010000000000000000820463ffffffff16838501526c0100000000000000000000000090910461ffff1660608301526000878152600d90915291822054909190611eea90611ed960056008614513565b611ee5906101006144ff565b6130d7565b82516020840151606085015160408087015190517f5d3b1d30000000000000000000000000000000000000000000000000000000008152600481019490945267ffffffffffffffff909216602484015261ffff16604483015263ffffffff9081166064830152821660848201529091506000907f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e699096001600160a01b031690635d3b1d309060a401602060405180830381600087803b158015611fab57600080fd5b505af1158015611fbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fe39190614154565b6000818152600e6020526040902088905595505050505050919050565b6112513383836130fa565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b6120368133612f32565b506016805463ffffffff90921668010000000000000000027fffffffffffffffffffffffffffffffffffffffff00000000ffffffffffffffff909216919091179055565b7fbf41b66e0b91d3bfcb3f5f0b3202de2fafe3878571e8c06289cfe757dcbc59806120a58133612f32565b60008381526002602052604090205483906001600160a01b031661210b5760405162461bcd60e51b815260206004820152601560248201527f546f6b656e20646f6573206e6f742065786973742e00000000000000000000006044820152606401610ca2565b6000848152600c6020526040808220805460ff191660ff87161790555185917f3063a7f4045ac90e6c1e1c0a1cd8a4d8208488f1f3a05359bf9e5eb5e045ff3f91a250505050565b61215d3383612c3a565b6121cf5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ca2565b6121db84848484612948565b50505050565b6018546060906001600160a01b031615610e50576040805160018082528183019092529060208083019080368337505060185482519293506001600160a01b031691839150600090612235576122356146f0565b60200260200101906001600160a01b031690816001600160a01b031681525050919050565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b6122858133612f32565b6000828152600260205260409020546001600160a01b031615806122b95750306122ae836118c3565b6001600160a01b0316145b15612364576040517f42842e0e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038481166024830152604482018490527f0000000000000000000000008a90cab2b38dba80c64b7734e58ee1db38b8992e16906342842e0e90606401600060405180830381600087803b15801561234757600080fd5b505af115801561235b573d6000803e3d6000fd5b50505050505050565b7f0000000000000000000000008a90cab2b38dba80c64b7734e58ee1db38b8992e6001600160a01b0316612397836118c3565b6001600160a01b031614156123e157610df47f0000000000000000000000008a90cab2b38dba80c64b7734e58ee1db38b8992e848460405180602001604052806000815250612948565b60405162461bcd60e51b815260206004820152602160248201527f4f6e6c7920616c6c6f77656420696e20726573637565207363656e6172696f7360448201527f2e000000000000000000000000000000000000000000000000000000000000006064820152608401610ca2565b60185460609081906001600160a01b0316156124fe576040805160018082528183019092529060208083019080368337505060185482519294506001600160a01b0316918491506000906124a5576124a56146f0565b6001600160a01b0392909216602092830291909101820152604080516001808252818301909252918281019080368337019050509050601754816000815181106124f1576124f16146f0565b6020026020010181815250505b915091565b6000818152600260205260409020546060906001600160a01b03166125905760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610ca2565b600061259a6131c9565b905060008151116125ba57604051806020016040528060008152506125e5565b806125c4846131d8565b6040516020016125d5929190614363565b6040516020818303038152906040525b9392505050565b6000828152600b60205260409020600101546126088133612f32565b610df48383613054565b611abf60056008614513565b600161262c60056008614513565b6001901b611abf9190614550565b7fd8acb51ff3d48f690a25887aaf234c4ae5a66ab9839243cd8e2b639cade0663b6126658133612f32565b5060118054911515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909216919091179055565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610b845750610b848261330a565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384169081179091558190612740826118c3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6013546000908152600d60209081526040822080546001810182559083529120018190556112518282613360565b60408051608081018252601554815260165467ffffffffffffffff811660208084019190915268010000000000000000820463ffffffff16838501526c0100000000000000000000000090910461ffff1660608301526013546000908152600d90915291822054829061282090611ed960056008614513565b82516020840151606085015160408087015190517f5d3b1d30000000000000000000000000000000000000000000000000000000008152600481019490945267ffffffffffffffff909216602484015261ffff16604483015263ffffffff9081166064830152821660848201529091506000907f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e699096001600160a01b031690635d3b1d309060a401602060405180830381600087803b1580156128e157600080fd5b505af11580156128f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129199190614154565b601380546000838152600e602052604081208290559293509161293b83614616565b9091555090949350505050565b612953848484612d42565b61295f8484848461337a565b6121db5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ca2565b6000828152600e6020908152604080832054808452600d90925282205490915b81811015612c33576000612a0760056008614513565b612a13906101006144ff565b612a1d90836144ff565b905060006001612a2f60056008614513565b6001901b612a3d9190614550565b868381518110612a4f57612a4f6146f0565b60200260200101511690506000600d60008781526020019081526020016000208481548110612a8057612a806146f0565b90600052602060002001549050612a9682613527565b6000828152600c602090815260408083208451815493860151868401516060880151608089015160a09099015160ff90811665010000000000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffffffff9a8216640100000000029a909a167fffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffffffff9282166301000000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffff9483166201000002949094167fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffff958316610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000909a169290961691909117979097179290921692909217919091171692909217939093179055905182917f3063a7f4045ac90e6c1e1c0a1cd8a4d8208488f1f3a05359bf9e5eb5e045ff3f91a2612bf860056008614513565b878481518110612c0a57612c0a6146f0565b60200260200101818151901c915081815250505050508080612c2b90614616565b9150506129f1565b5050505050565b6000818152600260205260408120546001600160a01b0316612cc45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610ca2565b6000612ccf836118c3565b9050806001600160a01b0316846001600160a01b03161480612d0a5750836001600160a01b0316612cff84610c1c565b6001600160a01b0316145b80612d3a57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612d55826118c3565b6001600160a01b031614612dd15760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610ca2565b6001600160a01b038216612e4c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610ca2565b612e578383836135e4565b612e626000826126f3565b6001600160a01b0383166000908152600360205260408120805460019290612e8b908490614550565b90915550506001600160a01b0382166000908152600360205260408120805460019290612eb99084906144e7565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828152600b602090815260408083206001600160a01b038516845290915290205460ff1661125157612f70816001600160a01b0316601461369c565b612f7b83602061369c565b604051602001612f8c929190614392565b60408051601f198184030181529082905262461bcd60e51b8252610ca2916004016144a3565b6000828152600b602090815260408083206001600160a01b038516845290915290205460ff16611251576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff191660011790556130103390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152600b602090815260408083206001600160a01b038516845290915290205460ff1615611251576000828152600b602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60008160016130e682866144e7565b6130f09190614550565b6125e591906144ff565b816001600160a01b0316836001600160a01b0316141561315c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ca2565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b606060148054610b99906145c8565b60608161321857505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613242578061322c81614616565b915061323b9050600a836144ff565b915061321c565b60008167ffffffffffffffff81111561325d5761325d61471f565b6040519080825280601f01601f191660200182016040528015613287576020820181803683370190505b5090505b8415612d3a5761329c600183614550565b91506132a9600a8661464f565b6132b49060306144e7565b60f81b8183815181106132c9576132c96146f0565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613303600a866144ff565b945061328b565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610b845750610b84826138c5565b6112518282604051806020016040528060008152506139a8565b60006001600160a01b0384163b1561351c576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906133d7903390899088908890600401614413565b602060405180830381600087803b1580156133f157600080fd5b505af1925050508015613421575060408051601f3d908101601f1916820190925261341e918101906140ca565b60015b6134d1573d80801561344f576040519150601f19603f3d011682016040523d82523d6000602084013e613454565b606091505b5080516134c95760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ca2565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612d3a565b506001949350505050565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a08101919091526040518060c00160405280600160ff16815260200161357784613a31565b60ff16815260200161358c600885901c613a31565b60ff1681526020016135ab6135a360086002614513565b85901c613a31565b60ff1681526020016135c26135a360086003614513565b60ff1681526020016135d96135a360086004614513565b60ff16905292915050565b6001600160a01b03831661363f5761363a81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613662565b816001600160a01b0316836001600160a01b031614613662576136628382613a70565b6001600160a01b03821661367957610df481613b0d565b826001600160a01b0316826001600160a01b031614610df457610df48282613bbc565b606060006136ab836002614513565b6136b69060026144e7565b67ffffffffffffffff8111156136ce576136ce61471f565b6040519080825280601f01601f1916602001820160405280156136f8576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061372f5761372f6146f0565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613792576137926146f0565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006137ce846002614513565b6137d99060016144e7565b90505b6001811115613876577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061381a5761381a6146f0565b1a60f81b828281518110613830576138306146f0565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c9361386f81614593565b90506137dc565b5083156125e55760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610ca2565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061395857507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610b8457507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610b84565b6139b28383613c00565b6139bf600084848461337a565b610df45760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ca2565b600060128260ff1681548110613a4957613a496146f0565b90600052602060002090602091828204019190069054906101000a900460ff169050919050565b60006001613a7d84611a0d565b613a879190614550565b600083815260076020526040902054909150808214613ada576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613b1f90600190614550565b60008381526009602052604081205460088054939450909284908110613b4757613b476146f0565b906000526020600020015490508060088381548110613b6857613b686146f0565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613ba057613ba06146c1565b6001900381819060005260206000200160009055905550505050565b6000613bc783611a0d565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216613c565760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ca2565b6000818152600260205260409020546001600160a01b031615613cbb5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ca2565b613cc7600083836135e4565b6001600160a01b0382166000908152600360205260408120805460019290613cf09084906144e7565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054613d72906145c8565b90600052602060002090601f016020900481019282613d945760008555613dda565b82601f10613dad57805160ff1916838001178555613dda565b82800160010185558215613dda579182015b82811115613dda578251825591602001919060010190613dbf565b50613de6929150613dea565b5090565b5b80821115613de65760008155600101613deb565b600067ffffffffffffffff831115613e1957613e1961471f565b613e2c6020601f19601f860116016144b6565b9050828152838383011115613e4057600080fd5b828260208301376000602084830101529392505050565b80358015158114610e5057600080fd5b600060208284031215613e7957600080fd5b81356125e58161474e565b60008060408385031215613e9757600080fd5b8235613ea28161474e565b946020939093013593505050565b60008060408385031215613ec357600080fd5b8235613ece8161474e565b91506020830135613ede8161474e565b809150509250929050565b600080600060608486031215613efe57600080fd5b8335613f098161474e565b92506020840135613f198161474e565b929592945050506040919091013590565b60008060008060808587031215613f4057600080fd5b8435613f4b8161474e565b93506020850135613f5b8161474e565b925060408501359150606085013567ffffffffffffffff811115613f7e57600080fd5b8501601f81018713613f8f57600080fd5b613f9e87823560208401613dff565b91505092959194509250565b60008060408385031215613fbd57600080fd5b8235613fc88161474e565b9150613fd660208401613e57565b90509250929050565b60008060208385031215613ff257600080fd5b823567ffffffffffffffff8082111561400a57600080fd5b818501915085601f83011261401e57600080fd5b81358181111561402d57600080fd5b8660208260051b850101111561404257600080fd5b60209290920196919550909350505050565b60006020828403121561406657600080fd5b6125e582613e57565b60006020828403121561408157600080fd5b5035919050565b6000806040838503121561409b57600080fd5b823591506020830135613ede8161474e565b6000602082840312156140bf57600080fd5b81356125e581614766565b6000602082840312156140dc57600080fd5b81516125e581614766565b6000602082840312156140f957600080fd5b813567ffffffffffffffff81111561411057600080fd5b8201601f8101841361412157600080fd5b612d3a84823560208401613dff565b60006020828403121561414257600080fd5b813561ffff811681146125e557600080fd5b60006020828403121561416657600080fd5b5051919050565b6000806040838503121561418057600080fd5b8235915060208084013567ffffffffffffffff808211156141a057600080fd5b818601915086601f8301126141b457600080fd5b8135818111156141c6576141c661471f565b8060051b91506141d78483016144b6565b8181528481019084860184860187018b10156141f257600080fd5b600095505b838610156142155780358352600195909501949186019186016141f7565b508096505050505050509250929050565b6000806040838503121561423957600080fd5b50508035926020909101359150565b6000806040838503121561425b57600080fd5b82359150602083013560ff81168114613ede57600080fd5b60006020828403121561428557600080fd5b813563ffffffff811681146125e557600080fd5b6000602082840312156142ab57600080fd5b813567ffffffffffffffff811681146125e557600080fd5b600081518084526020808501945080840160005b838110156142fc5781516001600160a01b0316875295820195908201906001016142d7565b509495945050505050565b600081518084526020808501945080840160005b838110156142fc5781518752958201959082019060010161431b565b6000815180845261434f816020860160208601614567565b601f01601f19169290920160200192915050565b60008351614375818460208801614567565b835190830190614389818360208801614567565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516143ca816017850160208801614567565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351614407816028840160208801614567565b01602801949350505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526144456080830184614337565b9695505050505050565b6020815260006125e560208301846142c3565b60408152600061447560408301856142c3565b82810360208401526144878185614307565b95945050505050565b6020815260006125e56020830184614307565b6020815260006125e56020830184614337565b604051601f8201601f1916810167ffffffffffffffff811182821017156144df576144df61471f565b604052919050565b600082198211156144fa576144fa614663565b500190565b60008261450e5761450e614692565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561454b5761454b614663565b500290565b60008282101561456257614562614663565b500390565b60005b8381101561458257818101518382015260200161456a565b838111156121db5750506000910152565b6000816145a2576145a2614663565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600181811c908216806145dc57607f821691505b60208210811415611c3e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561464857614648614663565b5060010190565b60008261465e5761465e614692565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6001600160a01b038116811461476357600080fd5b50565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461476357600080fdfea2646970667358221220b83adec4d668ab8c7f15abd6984b33ab1ff930b25ecf317abaa7a41a3e38344164736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000008a90cab2b38dba80c64b7734e58ee1db38b8992e000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef000000000000000000000000000000000000000000000000000000000000000a
-----Decoded View---------------
Arg [0] : _Doodles (address): 0x8a90CAb2b38dba80c64b7734e58Ee1dB38B8992e
Arg [1] : _VRFCoordinator (address): 0x271682DEB8C4E0901D1a1550aD2e64D568E69909
Arg [2] : _LINKToken (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA
Arg [3] : _keyHash (bytes32): 0x8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef
Arg [4] : _subId (uint64): 10
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000008a90cab2b38dba80c64b7734e58ee1db38b8992e
Arg [1] : 000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909
Arg [2] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [3] : 8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000a
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.