ERC-721
NFT
Overview
Max Total Supply
2,608 MUNDI
Holders
416
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 MUNDILoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Canary
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC20.sol"; import "./ERC721.sol"; import "./utils/Ownable.sol"; import "./utils/NameUtils.sol"; import "./utils/ReentrancyGuard.sol"; import "./utils/Base64.sol"; import "./chainlink/VRFConsumerBase.sol"; /** * @title The Greats Contract (Codenamed: Canary) * @dev Extends OpenZeppelin's ERC721 implementation */ contract Canary is ERC721, Ownable, ReentrancyGuard, VRFConsumerBase { using Strings for uint256; using Address for address; // Global variables // Constants /// @dev Invariant: MAX_SUPPLY to be an even number uint256 public constant MAX_SUPPLY = 4608; uint256 public constant RESERVE_PRICE = 3 * (10 ** 18); uint256 public constant STEEP_CURVE_PERIOD = 86400; uint256 public constant GENERAL_CURVE_PERIOD = 7 * 86400; uint256 public constant NAME_CHANGE_PRICE = 100000 * (10 ** 18); uint16[18] public DEVMINT_METADATA_INDICES = [5, 618, 814, 2291, 2342, 2410, 3140, 4035, 4372, 4499, 1818, 111, 1274, 2331, 2885, 3369, 4268, 4589]; // Artist Attestation Metadata string public constant ARTIST_ATTESTATION_METADATA = "ipfs://QmVeJyaLh44i2VsePHbwHaQT89SetXGKstZrjx38sjKGhL"; // Metadata Variables /** * @dev There is a predetermined sequence of metadata that 1-1 corresponds to the index on IPFS and Arweave directories * Our randomization mechanism works by assigning the token ID with a certain metadata index in a randomized fashion */ string public imageIPFSURIPrefix = "ipfs://QmWWMp4Srk6CC9nuGw7fJz6BfxNw7xT7QBHTtxFVRjQTzU/"; string public imageArweaveURIPrefix = "ar://placeholder/"; string public galleryIPFSURIPrefix = "ipfs://QmRv3YCXRYx3v36btcKGnuAXKFqjiWQPW7bGUHWKb9GWGv/"; string public physicalSpecificationsIPFSURIPrefix = "ipfs://QmNSsUw8Z3H5z2FroCwVVZ32vye9RF3QJKejiFLEnn4pik/"; mapping(uint256 => bool) public metadataAssigned; mapping(uint256 => uint256) public tokenIdToMetadataIndex; // Sale variables uint256 public immutable STEEP_CURVE_STARTING_PRICE; uint256 public immutable GENERAL_CURVE_STARTING_PRICE; uint256 public immutable HASHMASKS_DISCOUNT; address public immutable HASHMASKS_ADDRESS; uint256 public SALE_START; bool public salePaused = false; uint256 public FINAL_SETTLEMENT_PRICE = 0; uint256 public SETTLEMENT_PRICE_SET_TIMESTAMP = 0; mapping(address => uint256) public addressToBidExcludingDiscount; // Chainlink and Randomization mapping(bytes32 => uint256) public requestIdToFirstMintIdInBatch; bytes32 internal keyHash; uint256 internal fee; uint256[MAX_SUPPLY] internal indices; uint256 internal indicesAssigned = 0; // Naming address public immutable NCT_ADDRESS; mapping(uint256 => string) public tokenName; mapping(string => bool) private nameReserved; /// @dev The era and subera traits are determined based on the index number of the original metadata sequence uint256[7] public eraStartIndices = [0, 6, 814, 1847, 2540, 3518, 4372]; /// @notice Name of the Eras in the same order as eraStartIndices string[7] public eraNames = ["High Renaissance", "Post-Impressionism", "Surrealism", "Cubism", "Pop Art", "Factory Art", "Beltracchi"]; uint256[33] public subEraStartIndices = [ 0, 1, 6, 270, 440, 610, 814, 1847, 2291, 2321, 2342, 2362, 2410, 2539, 2540, 2790, 3040, 3140, 3240, 3518, 3668, 3828, 3956, 4212, 4372, 4410, 4481, 4510, 4537, 4574, 4581, 4594, 4605 ]; /// @notice Name of the Eras in the same order as eraStartIndices string[33] public subEraNames = [ "Rebirth", "Umbra", "Starry", "Wheatfield", "Olive Trees", "The Room", "The Gambit of Salvator Mundi in the Desert Ocean", "Synthetic Vantage", "Synthetic Limited", "Mephisto Voodoo", "Mephisto Plague", "Mephisto Nimbus", "Analytical", "Foundation", "Nubian", "Light", "Moon", "Vietnam", "Far East", "The Guru", "Unicolor", "Duality", "Solitude", "Angelic", "Storming of Jerusalem", "The Witches", "Sieben Schalen der Apokalypse", "Feathers", "Comet", "Gold", "Angel's Hymn", "Fallen Angels", "Crimson Angel" ]; /// Events event NameChange(uint256 indexed tokenId, string newName); event MetadataAssigned(uint256 indexed tokenId, uint256 indexed metadataIndex); event Mint(uint256 indexed tokenId, uint256 price); event RequestedRandomness(bytes32 requestId); constructor( string memory name, string memory symbol, uint256 steepCurveStartingPrice, uint256 generalCurveStartingPrice, address nctAddress, address hashmasksAddress, uint256 hashmasksDiscount, address vrfCoordinator, address linkToken, uint256 chainlinkFee, bytes32 chainlinkKeyHash ) VRFConsumerBase( vrfCoordinator, // VRF Coordinator linkToken // LINK Token ) ERC721(name, symbol) { require(RESERVE_PRICE > hashmasksDiscount, "Reserve price must be higher than the discount"); require(steepCurveStartingPrice > generalCurveStartingPrice, "steepCurveStartingPrice is invalid"); require(generalCurveStartingPrice > RESERVE_PRICE, "generalCurveStartingPrice is invalid"); STEEP_CURVE_STARTING_PRICE = steepCurveStartingPrice; GENERAL_CURVE_STARTING_PRICE = generalCurveStartingPrice; NCT_ADDRESS = nctAddress; HASHMASKS_ADDRESS = hashmasksAddress; HASHMASKS_DISCOUNT = hashmasksDiscount; // Chainlink keyHash = chainlinkKeyHash; fee = chainlinkFee; } // Public Functions /** * @notice Calculates the current bid price * @dev There are basically two price curves. The steep price curve drops from STEEP_CURVE_STARTING_PRICE TO * GENERAL_CURVE_STARTING_PRICE in STEEP_CURVE_PERIOD time. After that period, the other curve immediately starts * and drops from GENERAL_CURVE_STARTING_PRICE to RESERVE_PRICE in GENERAL_CURVE_PERIOD time * @return Current bid price including any discount * @return Current bid price which doesn't include any discount (Ordinary bid price) */ function getCurrentBidPriceDetails() public view returns (uint256, uint256) { uint256 elapsed = block.timestamp - SALE_START; uint256 ordinaryPrice = 0; if (elapsed >= STEEP_CURVE_PERIOD + GENERAL_CURVE_PERIOD) { ordinaryPrice = RESERVE_PRICE; } else { if (elapsed < STEEP_CURVE_PERIOD) { uint256 priceDrop = ((STEEP_CURVE_STARTING_PRICE - GENERAL_CURVE_STARTING_PRICE) * elapsed) / STEEP_CURVE_PERIOD; ordinaryPrice = max(GENERAL_CURVE_STARTING_PRICE, STEEP_CURVE_STARTING_PRICE - priceDrop); } else { // STEEP_CURVE_PERIOD is subtracted from elapsed to account for the former curve period uint256 priceDrop = ((GENERAL_CURVE_STARTING_PRICE - RESERVE_PRICE) * (elapsed - STEEP_CURVE_PERIOD)) / GENERAL_CURVE_PERIOD; ordinaryPrice = max(RESERVE_PRICE, GENERAL_CURVE_STARTING_PRICE - priceDrop); } } uint256 discount = 0; if (ERC721(HASHMASKS_ADDRESS).balanceOf(msg.sender) > 0) { discount = HASHMASKS_DISCOUNT; } // If the discount is greater than or equal to the ordinary price if (discount >= ordinaryPrice) { return (0, ordinaryPrice); } else { return (ordinaryPrice - discount, ordinaryPrice); } } /// @notice Returns integer that represents the era corresponding to the tokenId function getTokenEra(uint256 tokenId) public view returns (uint256) { require(_exists(tokenId), "Token ID does not exist"); require(metadataAssigned[tokenId], "Metadata is not assigned to the token yet"); uint256 metadataIndex = tokenIdToMetadataIndex[tokenId]; for (uint256 i = eraStartIndices.length - 1; i >= 0; i--) { if (metadataIndex >= eraStartIndices[i]) { return i; } } } /// @notice Returns the era name corresponding to the tokenId function getTokenEraName(uint256 tokenId) public view returns (string memory) { uint256 tokenEra = getTokenEra(tokenId); return eraNames[tokenEra]; } /// @notice Returns integer that represents the sub era corresponding to the tokenId function getTokenSubEra(uint256 tokenId) public view returns (uint256) { require(_exists(tokenId), "Token ID does not exist"); require(metadataAssigned[tokenId], "Metadata is not assigned to the token yet"); uint256 metadataIndex = tokenIdToMetadataIndex[tokenId]; for (uint256 i = subEraStartIndices.length - 1; i >= 0; i--) { if (metadataIndex >= subEraStartIndices[i]) { return i; } } } /// @notice Returns the sub era name corresponding to the tokenId function getTokenSubEraName(uint256 tokenId) public view returns (string memory) { uint256 tokenSubEra = getTokenSubEra(tokenId); return subEraNames[tokenSubEra]; } /// @inheritdoc ERC721 /// @notice Returns Base64 encoded JSON metadata for the given tokenId function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); require(metadataAssigned[tokenId], "Metadata is not assigned to the token yet"); string memory namePostfix = '"'; if (bytes(tokenName[tokenId]).length != 0) { namePostfix = string(abi.encodePacked(': ', tokenName[tokenId], '"')); } // Block scoping to avoid stack too deep error bytes memory uriPartsOfMetadata; { uriPartsOfMetadata = abi.encodePacked( ', "image": "', string(abi.encodePacked(baseURI(), tokenIdToMetadataIndex[tokenId].toString(), '.jpeg')), '", "image_arweave_uri": "', string( abi.encodePacked( imageArweaveURIPrefix, tokenIdToMetadataIndex[tokenId].toString(), '.jpeg' ) ), '", "gallery_glb_uri": "', string(abi.encodePacked(galleryIPFSURIPrefix, getTokenEra(tokenId).toString(), '.glb')) ); } return string( abi.encodePacked( "data:application/json;base64,", Base64.encode( abi.encodePacked( '{"name": "Mundi #', tokenId.toString(), namePostfix, ', "description": "The Greats Collection", "attributes": [{ "trait_type": "Era", "value": "', getTokenEraName(tokenId), '"}, { "trait_type": "Sub Era", "value": "', getTokenSubEraName(tokenId), '"}], "physical_specifications_uri": "', string(abi.encodePacked(physicalSpecificationsIPFSURIPrefix, getTokenSubEra(tokenId).toString(), '.json"')), uriPartsOfMetadata, '" }' ) ) ) ); } /// @inheritdoc ERC721 function baseURI() public view virtual override returns (string memory) { return imageIPFSURIPrefix; } /// @notice Returns if the name has been reserved already (Case insensitive) function isNameReserved(string memory name) public view returns (bool) { return nameReserved[NameUtils.toLower(name)]; } // External Functions /// @notice Mints initial tokens for the purpose of auctioning off function devMint() external onlyOwner { require(totalSupply() < DEVMINT_METADATA_INDICES.length, "Dev minting already done"); require(SALE_START == 0, "Sale has already started"); for (uint256 i = 0; i < DEVMINT_METADATA_INDICES.length; i++) { uint256 mintIndex = MAX_SUPPLY - i - 1; _safeMint(msg.sender, mintIndex); emit Mint(mintIndex, 0); assignMetadataIndexToTokenId(mintIndex, assignIndexWithSeed(DEVMINT_METADATA_INDICES[i])); } // Even number post condition (For Chainlink batching consistency) require(totalSupply() % 2 == 0, "Dev mint number must be even"); } /* * @notice Mints a token for a bid at the current price. * A portion of the bid may be refunded based on the final settlement price * @dev Minted token is revealed (assigned metadata) after the chainlink callback (Done in batches of two) * Known: There would be a reveal delay of next token mint + Chainlink callback time if the token id is even * Smart contracts are prevented from minting */ function mint() external payable nonReentrant { require(msg.sender == tx.origin, "Minter cannot be a contract"); require(totalSupply() < MAX_SUPPLY, "Sale ended"); require(addressToBidExcludingDiscount[msg.sender] == 0, "Only one token mintable per address if RESERVE_PRICE is not reached"); require(SALE_START != 0 && block.timestamp >= SALE_START, "Sale has not started"); require(!salePaused, "Sale is paused"); // Transfer any remaining Ether back to the minter (uint256 currentBidPrice, uint256 nonDiscountedBidPrice) = getCurrentBidPriceDetails(); require(msg.value >= currentBidPrice, "Insufficient funds"); uint256 mintIndex = totalSupply() - DEVMINT_METADATA_INDICES.length; // Offset for dev mints _safeMint(msg.sender, mintIndex); if (totalSupply() % 2 == 0) { require(LINK.balanceOf(address(this)) >= fee, "Not enough LINK - fill contract"); bytes32 requestId = requestRandomness(keyHash, fee); requestIdToFirstMintIdInBatch[requestId] = mintIndex - 1; emit RequestedRandomness(requestId); } emit Mint(mintIndex, currentBidPrice); if (FINAL_SETTLEMENT_PRICE == 0) { // Set final settlement price if it's last mint or if the price curve period has ended if (totalSupply() == MAX_SUPPLY || nonDiscountedBidPrice == RESERVE_PRICE) { FINAL_SETTLEMENT_PRICE = nonDiscountedBidPrice; SETTLEMENT_PRICE_SET_TIMESTAMP = block.timestamp; } else { // It's only considered a bid if the final settlement price is not reached addressToBidExcludingDiscount[msg.sender] = nonDiscountedBidPrice; } } // Return back the remaining Ether if (msg.value > currentBidPrice) { payable(msg.sender).transfer(msg.value - currentBidPrice); } } /// @notice Change name of the given token ID. Cannot be re-named /// @dev The caller needs to have given sufficient allowance on NCT to this contract function changeName(uint256 tokenId, string memory name) external nonReentrant { address owner = ownerOf(tokenId); require(_msgSender() == owner, "ERC721: caller is not the owner"); require(NameUtils.validateName(name) == true, "Not a valid new name"); require(bytes(tokenName[tokenId]).length == 0, "Token ID is already named"); require(isNameReserved(name) == false, "Name is already reserved"); IERC20(NCT_ADDRESS).transferFrom(msg.sender, address(this), NAME_CHANGE_PRICE); tokenName[tokenId] = name; nameReserved[NameUtils.toLower(name)] = true; IERC20(NCT_ADDRESS).burn(NAME_CHANGE_PRICE); emit NameChange(tokenId, name); } /// @notice Refund the difference between the bid by the given address and the settlement price function refundDifferenceToBidders(address[] memory bidderAddresses) external nonReentrant { require(FINAL_SETTLEMENT_PRICE > 0, "Settlement price not set"); for (uint256 i = 0; i < bidderAddresses.length; i++) { uint256 bidAmountExcludingDiscount = addressToBidExcludingDiscount[bidderAddresses[i]]; if (bidAmountExcludingDiscount != 0) { addressToBidExcludingDiscount[bidderAddresses[i]] = 0; payable(bidderAddresses[i]).transfer( bidAmountExcludingDiscount - FINAL_SETTLEMENT_PRICE ); } } } /* * @dev Withdraw ether from this contract (Callable by owner) * 3 days grace period for anyone to be able to refund difference to the bidders as a way to minimize trust in the contract owner. * Callable 3 days after the settlement price is set or 3 days after the general curve period ends */ function withdraw() external onlyOwner { require( (SETTLEMENT_PRICE_SET_TIMESTAMP != 0 && block.timestamp > SETTLEMENT_PRICE_SET_TIMESTAMP + 3 days) || (block.timestamp > SALE_START + STEEP_CURVE_PERIOD + GENERAL_CURVE_PERIOD + 3 days), "Atleast 3 days must pass after settlement price is set or after the general curve period ends" ); uint256 balance = address(this).balance; payable(msg.sender).transfer(balance); } /// @notice saleStartTimestamp param is ignored if sale start timestamp is already set /// @dev Starts / resumes / pauses the sale based on the state (Callable by owner) function toggleSale(uint256 saleStartTimestamp) external onlyOwner { require(totalSupply() < MAX_SUPPLY, "Sale has ended"); if (SALE_START == 0) { require(saleStartTimestamp >= block.timestamp, "saleStartTimestamp is in the past"); SALE_START = saleStartTimestamp; } else { salePaused = !salePaused; } } /// @dev Metadata will be frozen once ownership of the contract is renounced function changeURIs( string memory imageURI, string memory imageArweaveURI, string memory galleryURI, string memory physicalSpecsURI ) external onlyOwner { imageIPFSURIPrefix = imageURI; imageArweaveURIPrefix = imageArweaveURI; galleryIPFSURIPrefix = galleryURI; physicalSpecificationsIPFSURIPrefix = physicalSpecsURI; } // Internal Functions /// @dev Callback function used by VRF Coordinator. Assigns metadata to the tokens in a batch of two function fulfillRandomness(bytes32 requestId, uint256 randomness) internal override { uint256 firstMintIdInBatch = requestIdToFirstMintIdInBatch[requestId]; uint256[2] memory mintIdsToAssign = [firstMintIdInBatch, firstMintIdInBatch + 1]; for (uint256 i = 0; i < mintIdsToAssign.length; i++) { require(metadataAssigned[mintIdsToAssign[i]] == false, "Metadata already assigned"); uint256 metadataIndex = assignIndexWithSeed( uint256(keccak256(abi.encode(randomness, i))) ); assignMetadataIndexToTokenId(mintIdsToAssign[i], metadataIndex); } } /// @dev Assigns metadata index to token id function assignMetadataIndexToTokenId(uint256 tokenId, uint256 metadataIndex) internal { tokenIdToMetadataIndex[tokenId] = metadataIndex; metadataAssigned[tokenId] = true; emit MetadataAssigned(tokenId, metadataIndex); } /// @dev Generates a random index using the seed and stores it in a mapping for 0(1) complexity in case of repetition function assignIndexWithSeed(uint256 seed) internal returns (uint256) { uint256 totalSize = MAX_SUPPLY - indicesAssigned; uint256 index = seed % totalSize; // Credits to Meebits for the following snippet uint256 value = 0; if (indices[index] != 0) { value = indices[index]; } else { value = index; } // Move last value to selected position if (indices[totalSize - 1] == 0) { // 2 -> indices[2] = 999. indices[1] = 999 // Array position not initialized, so use position indices[index] = totalSize - 1; } else { // Array position holds a value so use that indices[index] = indices[totalSize - 1]; } indicesAssigned++; return value; } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _ALPHABET = "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] = _ALPHABET[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT 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; } }
pragma solidity ^0.8.0; import "./Context.sol"; contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of utils functions related to on-chain naming */ library NameUtils { /** * @dev Check if the name string is valid (Alphanumeric and spaces without leading or trailing space) */ function validateName(string memory str) internal pure returns (bool){ bytes memory b = bytes(str); if(b.length < 1) return false; if(b.length > 25) return false; // Cannot be longer than 25 characters if(b[0] == 0x20) return false; // Leading space if (b[b.length - 1] == 0x20) return false; // Trailing space bytes1 lastChar = b[0]; for(uint i; i<b.length; i++){ bytes1 char = b[i]; if (char == 0x20 && lastChar == 0x20) return false; // Cannot contain continous spaces if( !(char >= 0x30 && char <= 0x39) && //9-0 !(char >= 0x41 && char <= 0x5A) && //A-Z !(char >= 0x61 && char <= 0x7A) && //a-z !(char == 0x20) //space ) return false; lastChar = char; } return true; } /** * @dev Converts the string to lowercase */ function toLower(string memory str) internal pure returns (string memory){ bytes memory bStr = bytes(str); bytes memory bLower = new bytes(bStr.length); for (uint i = 0; i < bStr.length; i++) { // Uppercase character if ((uint8(bStr[i]) >= 65) && (uint8(bStr[i]) <= 90)) { bLower[i] = bytes1(uint8(bStr[i]) + 32); } else { bLower[i] = bStr[i]; } } return string(bLower); } }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./EnumerableSet.sol"; /** * @dev Library for managing an enumerable variant of Solidity's * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`] * type. * * Maps have the following properties: * * - Entries are added, removed, and checked for existence in constant time * (O(1)). * - Entries are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableMap for EnumerableMap.UintToAddressMap; * * // Declare a set state variable * EnumerableMap.UintToAddressMap private myMap; * } * ``` * * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are * supported. */ library EnumerableMap { using EnumerableSet for EnumerableSet.Bytes32Set; // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Map type with // bytes32 keys and values. // The Map implementation uses private functions, and user-facing // implementations (such as Uint256ToAddressMap) are just wrappers around // the underlying Map. // This means that we can only create new EnumerableMaps for types that fit // in bytes32. struct Map { // Storage of keys EnumerableSet.Bytes32Set _keys; mapping(bytes32 => bytes32) _values; } /** * @dev Adds a key-value pair to a map, or updates the value for an existing * key. O(1). * * Returns true if the key was added to the map, that is if it was not * already present. */ function _set( Map storage map, bytes32 key, bytes32 value ) private returns (bool) { map._values[key] = value; return map._keys.add(key); } /** * @dev Removes a key-value pair from a map. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function _remove(Map storage map, bytes32 key) private returns (bool) { delete map._values[key]; return map._keys.remove(key); } /** * @dev Returns true if the key is in the map. O(1). */ function _contains(Map storage map, bytes32 key) private view returns (bool) { return map._keys.contains(key); } /** * @dev Returns the number of key-value pairs in the map. O(1). */ function _length(Map storage map) private view returns (uint256) { return map._keys.length(); } /** * @dev Returns the key-value pair stored at position `index` in the map. O(1). * * Note that there are no guarantees on the ordering of entries inside the * array, and it may change when more entries are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) { bytes32 key = map._keys.at(index); return (key, map._values[key]); } /** * @dev Tries to returns the value associated with `key`. O(1). * Does not revert if `key` is not in the map. */ function _tryGet(Map storage map, bytes32 key) private view returns (bool, bytes32) { bytes32 value = map._values[key]; if (value == bytes32(0)) { return (_contains(map, key), bytes32(0)); } else { return (true, value); } } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function _get(Map storage map, bytes32 key) private view returns (bytes32) { bytes32 value = map._values[key]; require(value != 0 || _contains(map, key), "EnumerableMap: nonexistent key"); return value; } /** * @dev Same as {_get}, with a custom error message when `key` is not in the map. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {_tryGet}. */ function _get( Map storage map, bytes32 key, string memory errorMessage ) private view returns (bytes32) { bytes32 value = map._values[key]; require(value != 0 || _contains(map, key), errorMessage); return value; } // UintToAddressMap struct UintToAddressMap { Map _inner; } /** * @dev Adds a key-value pair to a map, or updates the value for an existing * key. O(1). * * Returns true if the key was added to the map, that is if it was not * already present. */ function set( UintToAddressMap storage map, uint256 key, address value ) internal returns (bool) { return _set(map._inner, bytes32(key), bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) { return _remove(map._inner, bytes32(key)); } /** * @dev Returns true if the key is in the map. O(1). */ function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) { return _contains(map._inner, bytes32(key)); } /** * @dev Returns the number of elements in the map. O(1). */ function length(UintToAddressMap storage map) internal view returns (uint256) { return _length(map._inner); } /** * @dev Returns the element stored at position `index` in the set. O(1). * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) { (bytes32 key, bytes32 value) = _at(map._inner, index); return (uint256(key), address(uint160(uint256(value)))); } /** * @dev Tries to returns the value associated with `key`. O(1). * Does not revert if `key` is not in the map. * * _Available since v3.4._ */ function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) { (bool success, bytes32 value) = _tryGet(map._inner, bytes32(key)); return (success, address(uint160(uint256(value)))); } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function get(UintToAddressMap storage map, uint256 key) internal view returns (address) { return address(uint160(uint256(_get(map._inner, bytes32(key))))); } /** * @dev Same as {get}, with a custom error message when `key` is not in the map. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryGet}. */ function get( UintToAddressMap storage map, uint256 key, string memory errorMessage ) internal view returns (address) { return address(uint160(uint256(_get(map._inner, bytes32(key), errorMessage)))); } }
// SPDX-License-Identifier: MIT 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 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) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @title Base64 /// @author Brecht Devos - <[email protected]> /// @notice Provides functions for encoding/decoding base64 library Base64 { string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; bytes internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000" hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000" hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000" hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000"; function encode(bytes memory data) internal pure returns (string memory) { if (data.length == 0) return ''; // load the table into memory string memory table = TABLE_ENCODE; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((data.length + 2) / 3); // add some extra buffer at the end required for the writing string memory result = new string(encodedLen + 32); assembly { // set the actual output length mstore(result, encodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 3 bytes at a time for {} lt(dataPtr, endPtr) {} { // read 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // write 4 characters mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and(shr( 6, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and( input, 0x3F)))) resultPtr := add(resultPtr, 1) } // padding with '=' switch mod(mload(data), 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } } return result; } function decode(string memory _data) internal pure returns (bytes memory) { bytes memory data = bytes(_data); if (data.length == 0) return new bytes(0); require(data.length % 4 == 0, "invalid base64 decoder input"); // load the table into memory bytes memory table = TABLE_DECODE; // every 4 characters represent 3 bytes uint256 decodedLen = (data.length / 4) * 3; // add some extra buffer at the end required for the writing bytes memory result = new bytes(decodedLen + 32); assembly { // padding with '=' let lastBytes := mload(add(data, mload(data))) if eq(and(lastBytes, 0xFF), 0x3d) { decodedLen := sub(decodedLen, 1) if eq(and(lastBytes, 0xFFFF), 0x3d3d) { decodedLen := sub(decodedLen, 1) } } // set the actual output length mstore(result, decodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 4 characters at a time for {} lt(dataPtr, endPtr) {} { // read 4 characters dataPtr := add(dataPtr, 4) let input := mload(dataPtr) // write 3 bytes let output := add( add( shl(18, and(mload(add(tablePtr, and(shr(24, input), 0xFF))), 0xFF)), shl(12, and(mload(add(tablePtr, and(shr(16, input), 0xFF))), 0xFF))), add( shl( 6, and(mload(add(tablePtr, and(shr( 8, input), 0xFF))), 0xFF)), and(mload(add(tablePtr, and( input , 0xFF))), 0xFF) ) ) mstore(resultPtr, shl(232, output)) resultPtr := add(resultPtr, 3) } } return result; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 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); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private 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 pragma solidity ^0.8.0; contract VRFRequestIDBase { /** * @notice returns the seed which is actually input to the VRF coordinator * * @dev To prevent repetition of VRF output due to repetition of the * @dev user-supplied seed, that seed is combined in a hash with the * @dev user-specific nonce, and the address of the consuming contract. The * @dev risk of repetition is mostly mitigated by inclusion of a blockhash in * @dev the final seed, but the nonce does protect against repetition in * @dev requests which are included in a single block. * * @param _userSeed VRF seed input provided by user * @param _requester Address of the requesting contract * @param _nonce User-specific nonce at the time of the request */ function makeVRFInputSeed(bytes32 _keyHash, uint256 _userSeed, address _requester, uint256 _nonce) internal pure returns (uint256) { return uint256(keccak256(abi.encode(_keyHash, _userSeed, _requester, _nonce))); } /** * @notice Returns the id for this request * @param _keyHash The serviceAgreement ID to be used for this request * @param _vRFInputSeed The seed to be passed directly to the VRF * @return The id for this request * * @dev Note that _vRFInputSeed is not the seed passed by the consuming * @dev contract, but the one generated by makeVRFInputSeed */ function makeRequestId( bytes32 _keyHash, uint256 _vRFInputSeed) internal pure returns (bytes32) { return keccak256(abi.encodePacked(_keyHash, _vRFInputSeed)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./SafeMathChainlink.sol"; import "./LinkTokenInterface.sol"; import "./VRFRequestIDBase.sol"; /** **************************************************************************** * @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. * ***************************************************************************** * @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 constuctor(<other arguments>, address _vrfCoordinator, address _link) * @dev VRFConsumerBase(_vrfCoordinator, _link) 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), and have told you the minimum LINK * @dev price for VRF service. Make sure your contract has sufficient LINK, and * @dev call requestRandomness(keyHash, fee, seed), where seed is the input you * @dev want to generate randomness from. * * @dev Once the VRFCoordinator has received and validated the oracle's response * @dev to your request, it will call your contract's fulfillRandomness method. * * @dev The randomness argument to fulfillRandomness is the actual random value * @dev generated from your seed. * * @dev The requestId argument is generated from the keyHash and the seed by * @dev makeRequestId(keyHash, seed). If your contract could have concurrent * @dev requests open, you can use the requestId to track which seed is * @dev associated with which randomness. See VRFRequestIDBase.sol for more * @dev details. (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. (Which is critical to making unpredictable randomness! See the * @dev next section.) * * ***************************************************************************** * @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 ultimate input to the VRF is mixed with the block hash of the * @dev block in which the request is made, user-provided seeds have no impact * @dev on its economic security properties. They are only included for API * @dev compatability with previous versions of this contract. * * @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. */ abstract contract VRFConsumerBase is VRFRequestIDBase { using SafeMathChainlink for uint256; /** * @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 VRFConsumerBase 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 randomness the VRF output */ function fulfillRandomness(bytes32 requestId, uint256 randomness) internal virtual; /** * @dev In order to keep backwards compatibility we have kept the user * seed field around. We remove the use of it because given that the blockhash * enters later, it overrides whatever randomness the used seed provides. * Given that it adds no security, and can easily lead to misunderstandings, * we have removed it from usage and can now provide a simpler API. */ uint256 constant private USER_SEED_PLACEHOLDER = 0; /** * @notice requestRandomness initiates a request for VRF output given _seed * * @dev The fulfillRandomness method receives the output, once it's provided * @dev by the Oracle, and verified by the vrfCoordinator. * * @dev The _keyHash must already be registered with the VRFCoordinator, and * @dev the _fee must exceed the fee specified during registration of the * @dev _keyHash. * * @dev The _seed parameter is vestigial, and is kept only for API * @dev compatibility with older versions. It can't *hurt* to mix in some of * @dev your own randomness, here, but it's not necessary because the VRF * @dev oracle will mix the hash of the block containing your request into the * @dev VRF seed it ultimately uses. * * @param _keyHash ID of public key against which randomness is generated * @param _fee The amount of LINK to send with the request * * @return requestId unique ID for this request * * @dev The returned requestId can be used to distinguish responses to * @dev concurrent requests. It is passed as the first argument to * @dev fulfillRandomness. */ function requestRandomness(bytes32 _keyHash, uint256 _fee) internal returns (bytes32 requestId) { LINK.transferAndCall(vrfCoordinator, _fee, abi.encode(_keyHash, USER_SEED_PLACEHOLDER)); // This is the seed passed to VRFCoordinator. The oracle will mix this with // the hash of the block containing this request to obtain the seed/input // which is finally passed to the VRF cryptographic machinery. uint256 vRFSeed = makeVRFInputSeed(_keyHash, USER_SEED_PLACEHOLDER, address(this), nonces[_keyHash]); // nonces[_keyHash] must stay in sync with // VRFCoordinator.nonces[_keyHash][this], which was incremented by the above // successful LINK.transferAndCall (in VRFCoordinator.randomnessRequest). // This provides protection against the user repeating their input seed, // which would result in a predictable/duplicate output, if multiple such // requests appeared in the same block. nonces[_keyHash] = nonces[_keyHash].add(1); return makeRequestId(_keyHash, vRFSeed); } LinkTokenInterface immutable internal LINK; address immutable private vrfCoordinator; // Nonces for each VRF key from which randomness has been requested. // // Must stay in sync with VRFCoordinator[_keyHash][this] mapping(bytes32 /* keyHash */ => uint256 /* nonce */) private nonces; /** * @param _vrfCoordinator address of VRFCoordinator contract * @param _link address of LINK token contract * * @dev https://docs.chain.link/docs/link-token-contracts */ constructor(address _vrfCoordinator, address _link) { vrfCoordinator = _vrfCoordinator; LINK = LinkTokenInterface(_link); } // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF // proof. rawFulfillRandomness then calls fulfillRandomness, after validating // the origin of the call function rawFulfillRandomness(bytes32 requestId, uint256 randomness) external { require(msg.sender == vrfCoordinator, "Only VRFCoordinator can fulfill"); fulfillRandomness(requestId, randomness); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMathChainlink { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, "SafeMath: division by zero"); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b != 0, "SafeMath: modulo by zero"); return a % b; } }
// 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 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 pragma solidity ^0.8.0; import "./IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT 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 tokenId); /** * @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 pragma solidity ^0.8.0; import "./utils/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 pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * TODO: Add comment */ function burn(uint256 burnQuantity) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./utils/Context.sol"; import "./IERC721.sol"; import "./IERC721Metadata.sol"; import "./IERC721Enumerable.sol"; import "./IERC721Receiver.sol"; import "./utils/ERC165.sol"; import "./utils/Address.sol"; import "./utils/EnumerableSet.sol"; import "./utils/EnumerableMap.sol"; import "./utils/Strings.sol"; /** * @title ERC721 Non-Fungible Token Standard basic implementation * @dev see https://eips.ethereum.org/EIPS/eip-721 */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; // Mapping from holder address to their (enumerable) set of owned tokens mapping (address => EnumerableSet.UintSet) private _holderTokens; // Enumerable mapping from token ids to their owners EnumerableMap.UintToAddressMap private _tokenOwners; // 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; // Token name string private _name; // Token symbol string private _symbol; // Optional mapping for token URIs mapping (uint256 => string) private _tokenURIs; // Base URI string private _baseURI; /** * @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 || interfaceId == type(IERC721Enumerable).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 _holderTokens[owner].length(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token"); } /** * @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 _tokenURI = _tokenURIs[tokenId]; string memory base = baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } // If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI. return string(abi.encodePacked(base, tokenId.toString())); } /** * @dev Returns the base URI set via {_setBaseURI}. This will be * automatically added as a prefix in {tokenURI} to each token's URI, or * to the token ID if no specific URI is set for that token ID. */ function baseURI() public view virtual returns (string memory) { return _baseURI; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { return _holderTokens[owner].at(index); } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds return _tokenOwners.length(); } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { (uint256 tokenId, ) = _tokenOwners.at(index); return tokenId; } /** * @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 || ERC721.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 { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public 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 _tokenOwners.contains(tokenId); } /** * @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 || ERC721.isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: d* * - `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); _holderTokens[to].add(tokenId); _tokenOwners.set(tokenId, to); emit Transfer(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); // internal owner _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); // Clear metadata (if any) if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } _holderTokens[owner].remove(tokenId); _tokenOwners.remove(tokenId); emit Transfer(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 of token that is not own"); // internal 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); _holderTokens[from].remove(tokenId); _holderTokens[to].add(tokenId); _tokenOwners.set(tokenId, to); emit Transfer(from, to, tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @dev Internal function to set the base URI for all token IDs. It is * automatically added as a prefix to the value returned in {tokenURI}, * or to the token ID if {tokenURI} is empty. */ function _setBaseURI(string memory baseURI_) internal virtual { _baseURI = baseURI_; } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { // solhint-disable-next-line no-inline-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } function _approve(address to, uint256 tokenId) private { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); // internal owner } /** * @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 { } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"steepCurveStartingPrice","type":"uint256"},{"internalType":"uint256","name":"generalCurveStartingPrice","type":"uint256"},{"internalType":"address","name":"nctAddress","type":"address"},{"internalType":"address","name":"hashmasksAddress","type":"address"},{"internalType":"uint256","name":"hashmasksDiscount","type":"uint256"},{"internalType":"address","name":"vrfCoordinator","type":"address"},{"internalType":"address","name":"linkToken","type":"address"},{"internalType":"uint256","name":"chainlinkFee","type":"uint256"},{"internalType":"bytes32","name":"chainlinkKeyHash","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"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"},{"indexed":true,"internalType":"uint256","name":"metadataIndex","type":"uint256"}],"name":"MetadataAssigned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"newName","type":"string"}],"name":"NameChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"requestId","type":"bytes32"}],"name":"RequestedRandomness","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":"ARTIST_ATTESTATION_METADATA","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"DEVMINT_METADATA_INDICES","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FINAL_SETTLEMENT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GENERAL_CURVE_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GENERAL_CURVE_STARTING_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"HASHMASKS_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"HASHMASKS_DISCOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NAME_CHANGE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NCT_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SALE_START","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SETTLEMENT_PRICE_SET_TIMESTAMP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STEEP_CURVE_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STEEP_CURVE_STARTING_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressToBidExcludingDiscount","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":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"name","type":"string"}],"name":"changeName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"imageURI","type":"string"},{"internalType":"string","name":"imageArweaveURI","type":"string"},{"internalType":"string","name":"galleryURI","type":"string"},{"internalType":"string","name":"physicalSpecsURI","type":"string"}],"name":"changeURIs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"eraNames","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"eraStartIndices","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"galleryIPFSURIPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentBidPriceDetails","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenEra","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenEraName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenSubEra","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenSubEraName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"imageArweaveURIPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"imageIPFSURIPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"string","name":"name","type":"string"}],"name":"isNameReserved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"metadataAssigned","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"physicalSpecificationsIPFSURIPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"bidderAddresses","type":"address[]"}],"name":"refundDifferenceToBidders","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"requestIdToFirstMintIdInBatch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"salePaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"subEraNames","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"subEraStartIndices","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"saleStartTimestamp","type":"uint256"}],"name":"toggleSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToMetadataIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6103a0604052600561016090815261026a6101805261032e6101a0526108f36101c0526109266101e05261096a61020052610c4461022052610fc361024052611114610260526111936102805261071a6102a052606f6102c0526104fa6102e05261091b61030052610b4561032052610d29610340526110ac610360526111ed610380526200009390600d90601262000acb565b50604051806060016040528060368152602001620060a9603691398051620000c491600f9160209091019062000b68565b506040805180820190915260118082527061723a2f2f706c616365686f6c6465722f60781b6020909201918252620000ff9160109162000b68565b50604051806060016040528060368152602001620060df603691398051620001309160119160209091019062000b68565b5060405180606001604052806036815260200162006043603691398051620001619160129160209091019062000b68565b506016805460ff1916905560006017819055601881905561121d8190556040805160e0810182529182526006602083015261032e9082015261073760608201526109ec6080820152610dbe60a082015261111460c0820152620001ca9061122090600762000be5565b506040518060e001604052806040518060400160405280601081526020016f486967682052656e61697373616e636560801b815250815260200160405180604001604052806012815260200171506f73742d496d7072657373696f6e69736d60701b81525081526020016040518060400160405280600a8152602001695375727265616c69736d60b01b81525081526020016040518060400160405280600681526020016543756269736d60d01b815250815260200160405180604001604052806007815260200166141bdc08105c9d60ca1b81525081526020016040518060400160405280600b81526020016a119858dd1bdc9e48105c9d60aa1b81525081526020016040518060400160405280600a81526020016942656c7472616363686960b01b8152508152506112279060076200030792919062000c1c565b506040805161042081018252600081526001602082015260069181019190915261010e60608201526101b8608082015261026260a082015261032e60c082015261073760e08201526108f361010082015261091161012082015261092661014082015261093a61016082015261096a6101808201526109eb6101a08201526109ec6101c0820152610ae66101e0820152610be0610200820152610c44610220820152610ca8610240820152610dbe610260820152610e54610280820152610ef46102a0820152610f746102c08201526110746102e082015261111461030082015261113a61032082015261118161034082015261119e6103608201526111b96103808201526111de6103a08201526111e56103c08201526111f26103e08201526111fd610400820152620004419061122e90602162000c6f565b50604051806104200160405280604051806040016040528060078152602001660a4cac4d2e4e8d60cb1b815250815260200160405180604001604052806005815260200164556d62726160d81b81525081526020016040518060400160405280600681526020016553746172727960d01b81525081526020016040518060400160405280600a81526020016915da19585d199a595b1960b21b81525081526020016040518060400160405280600b81526020016a4f6c69766520547265657360a81b81525081526020016040518060400160405280600881526020016754686520526f6f6d60c01b81525081526020016040518060600160405280603081526020016200607960309139815260408051808201825260118082527053796e7468657469632056616e7461676560781b60208381019190915280850192909252825180840184529081527014de5b9d1a195d1a58c8131a5b5a5d1959607a1b818301528284015281518083018352600f8082526e4d6570686973746f20566f6f646f6f60881b828401526060850191909152825180840184528181526e4d6570686973746f20506c6167756560881b818401526080850152825180840184529081526e4d6570686973746f204e696d62757360881b8183015260a084015281518083018352600a80825269105b985b1e5d1a58d85b60b21b8284015260c085019190915282518084018452908152692337bab73230ba34b7b760b11b8183015260e0840152815180830183526006815265273ab134b0b760d11b8183015261010084015281518083018352600580825264131a59da1d60da1b828401526101208501919091528251808401845260048082526326b7b7b760e11b8285015261014086019190915283518085018552600780825266566965746e616d60c81b828601526101608701919091528451808601865260088082526711985c8811585cdd60c21b828701526101808801919091528551808701875281815267546865204775727560c01b818701526101a088015285518087018752818152672ab734b1b7b637b960c11b818701526101c088015285518087018752828152664475616c69747960c81b818701526101e08801528551808701875281815267536f6c697475646560c01b818701526102008801528551808701875291825266416e67656c696360c81b8286015261022087019190915284518086018652601581527f53746f726d696e67206f66204a65727573616c656d00000000000000000000008186015261024087015284518086018652600b81526a546865205769746368657360a81b8186015261026087015284518086018652601d81527f53696562656e20536368616c656e206465722041706f6b616c79707365000000818601526102808701528451808601865290815267466561746865727360c01b818501526102a0860152835180850185529182526410dbdb595d60da1b828401526102c0850191909152825180840184529081526311dbdb1960e21b818301526102e084015281518083018352600c81526b20b733b2b613b990243cb6b760a11b8183015261030084015281518083018352600d8082526c46616c6c656e20416e67656c7360981b82840152610320850191909152825180840190935282526c10dc9a5b5cdbdb88105b99d95b609a1b9082015261034090910152620009239061124f90602162000ca5565b503480156200093157600080fd5b506040516200611538038062006115833981016040819052620009549162000e2f565b83838c8c81600690805190602001906200097092919062000b68565b5080516200098690600790602084019062000b68565b50505060006200099b62000ac760201b60201c565b600a80546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600b556001600160601b0319606092831b811660a052911b166080526729a2241af62c0000851062000a3a5760405162461bcd60e51b815260040162000a319062000f1a565b60405180910390fd5b87891162000a5c5760405162461bcd60e51b815260040162000a319062000f68565b6729a2241af62c0000881162000a865760405162461bcd60e51b815260040162000a319062000faa565b60c09890985260e09690965250506001600160601b0319606093841b8116610140529190921b166101205261010052601b91909155601c5550620010419050565b3390565b60028301918390821562000b565791602002820160005b8382111562000b2457835183826101000a81548161ffff021916908361ffff160217905550926020019260020160208160010104928301926001030262000ae2565b801562000b545782816101000a81549061ffff021916905560020160208160010104928301926001030262000b24565b505b5062000b6492915062000cea565b5090565b82805462000b769062000fee565b90600052602060002090601f01602090048101928262000b9a576000855562000b56565b82601f1062000bb557805160ff191683800117855562000b56565b8280016001018555821562000b56579182015b8281111562000b5657825182559160200191906001019062000bc8565b826007810192821562000b56579160200282015b8281111562000b56578251829061ffff1690559160200191906001019062000bf9565b826007810192821562000c61579160200282015b8281111562000c61578251805162000c5091849160209091019062000b68565b509160200191906001019062000c30565b5062000b6492915062000d01565b826021810192821562000b56579160200282018281111562000b56578251829061ffff1690559160200191906001019062000bf9565b826021810192821562000c61579160200282015b8281111562000c61578251805162000cd991849160209091019062000b68565b509160200191906001019062000cb9565b5b8082111562000b64576000815560010162000ceb565b8082111562000b6457600062000d18828262000d22565b5060010162000d01565b50805462000d309062000fee565b6000825580601f1062000d44575062000d64565b601f01602090049060005260206000209081019062000d64919062000cea565b50565b80516001600160a01b038116811462000d7f57600080fd5b919050565b600082601f83011262000d95578081fd5b81516001600160401b038082111562000db25762000db26200102b565b6040516020601f8401601f191682018101838111838210171562000dda5762000dda6200102b565b604052838252858401810187101562000df1578485fd5b8492505b8383101562000e14578583018101518284018201529182019162000df5565b8383111562000e2557848185840101525b5095945050505050565b60008060008060008060008060008060006101608c8e03121562000e51578687fd5b8b516001600160401b0381111562000e67578788fd5b62000e758e828f0162000d84565b60208e0151909c5090506001600160401b0381111562000e93578788fd5b62000ea18e828f0162000d84565b9a505060408c0151985060608c0151975062000ec060808d0162000d67565b965062000ed060a08d0162000d67565b955060c08c0151945062000ee760e08d0162000d67565b935062000ef86101008d0162000d67565b92506101208c015191506101408c015190509295989b509295989b9093969950565b6020808252602e908201527f52657365727665207072696365206d757374206265206869676865722074686160408201526d1b881d1a1948191a5cd8dbdd5b9d60921b606082015260800190565b60208082526022908201527f737465657043757276655374617274696e67507269636520697320696e76616c6040820152611a5960f21b606082015260800190565b60208082526024908201527f67656e6572616c43757276655374617274696e67507269636520697320696e76604082015263185b1a5960e21b606082015260800190565b6002810460018216806200100357607f821691505b602082108114156200102557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160601c60a05160601c60c05160e051610100516101205160601c6101405160601c614f47620010fc600039600081816110f301528181611dde0152611ee501526000818161149d0152611ba40152600081816114040152611c4701526000818161147901528181611a5401528181611ab401528181611b2b0152611b7701526000818161139b01528181611a750152611ad90152600081816117e901526126c2015260008181610ecc01526126930152614f476000f3fe6080604052600436106103b85760003560e01c806368b4c277116101f2578063acb89b581161010d578063dd21d604116100a0578063e72f98431161006f578063e72f984314610a2b578063e985e9c514610a4b578063f2fde38b14610a6b578063fe132c6314610a8b576103b8565b8063dd21d604146109cc578063e0ecd81d146109e1578063e378ad08146109f6578063e725f87714610a0b576103b8565b8063c87b56dd116100dc578063c87b56dd1461094c578063d1de44ec1461096c578063d6fc765d1461098c578063d9cf5e43146109ac576103b8565b8063acb89b58146108bc578063ae32b0f8146108e9578063b88d4fde1461090c578063c39cbef11461092c576103b8565b80637926dfa41161018557806395d89b411161015457806395d89b411461085257806399b9a170146108675780639eb1326d14610887578063a22cb4651461089c576103b8565b80637926dfa4146107e85780637c69e207146108085780638da5cb5b1461081d57806394985ddd14610832576103b8565b80636e967cf4116101c15780636e967cf41461077e57806370a0823114610793578063715018a6146107b35780637894df44146107c8576103b8565b806368b4c2771461072a5780636b974c971461073f5780636c0360eb146107545780636d79256a14610769576103b8565b806323b872dd116102e257806346300e6f116102755780635d08c1ae116102445780635d08c1ae146106cb5780635f0957b8146106e05780635fee6108146106f55780636352211e1461070a576103b8565b806346300e6f146106615780634662bc16146106765780634f6ccce71461069657806354b6f161146106b6576103b8565b806336f11277116102b157806336f11277146105f75780633ccfd60b1461060c57806341155c0d1461062157806342842e0e14610641576103b8565b806323b872dd146105825780632f745c59146105a257806332cb6b0c146105c257806336ce4835146105d7576103b8565b80630f9ffb0a1161035a57806318ab147b1161032957806318ab147b146105235780631b14ba081461053857806320aeab7c1461054d578063226730301461056d576103b8565b80630f9ffb0a146104c65780631249c58b146104e657806315b56d10146104ee57806318160ddd1461050e576103b8565b806308d26a041161039657806308d26a0414610442578063095ea7b3146104575780630a561c73146104795780630eefeb3114610499576103b8565b806301ffc9a7146103bd57806306fdde03146103f3578063081812fc14610415575b600080fd5b3480156103c957600080fd5b506103dd6103d8366004613c29565b610aab565b6040516103ea91906142b8565b60405180910390f35b3480156103ff57600080fd5b50610408610b0e565b6040516103ea91906142f0565b34801561042157600080fd5b50610435610430366004613bf0565b610ba0565b6040516103ea9190614213565b34801561044e57600080fd5b50610408610bec565b34801561046357600080fd5b50610477610472366004613afd565b610c7a565b005b34801561048557600080fd5b50610408610494366004613bf0565b610d12565b3480156104a557600080fd5b506104b96104b4366004613bf0565b610d32565b6040516103ea91906142c3565b3480156104d257600080fd5b506104b96104e1366004613bf0565b610d4a565b610477610d5b565b3480156104fa57600080fd5b506103dd610509366004613c61565b6110a5565b34801561051a57600080fd5b506104b96110da565b34801561052f57600080fd5b506104b96110eb565b34801561054457600080fd5b506104356110f1565b34801561055957600080fd5b50610408610568366004613bf0565b611115565b34801561057957600080fd5b506104b96111d8565b34801561058e57600080fd5b5061047761059d366004613a13565b6111de565b3480156105ae57600080fd5b506104b96105bd366004613afd565b611216565b3480156105ce57600080fd5b506104b9611241565b3480156105e357600080fd5b506104b96105f2366004613bf0565b611247565b34801561060357600080fd5b50610408611259565b34801561061857600080fd5b50610477611275565b34801561062d57600080fd5b5061040861063c366004613bf0565b61134d565b34801561064d57600080fd5b5061047761065c366004613a13565b61137e565b34801561066d57600080fd5b506104b9611399565b34801561068257600080fd5b506104b96106913660046139c7565b6113bd565b3480156106a257600080fd5b506104b96106b1366004613bf0565b6113cf565b3480156106c257600080fd5b506104b96113e5565b3480156106d757600080fd5b506103dd6113f3565b3480156106ec57600080fd5b506104b96113fc565b34801561070157600080fd5b506104b9611402565b34801561071657600080fd5b50610435610725366004613bf0565b611426565b34801561073657600080fd5b5061040861144e565b34801561074b57600080fd5b5061040861145b565b34801561076057600080fd5b50610408611468565b34801561077557600080fd5b506104b9611477565b34801561078a57600080fd5b5061043561149b565b34801561079f57600080fd5b506104b96107ae3660046139c7565b6114bf565b3480156107bf57600080fd5b50610477611508565b3480156107d457600080fd5b506104b96107e3366004613bf0565b611587565b3480156107f457600080fd5b50610408610803366004613bf0565b611640565b34801561081457600080fd5b50610477611651565b34801561082957600080fd5b506104356117cf565b34801561083e57600080fd5b5061047761084d366004613c08565b6117de565b34801561085e57600080fd5b50610408611830565b34801561087357600080fd5b506104b9610882366004613bf0565b61183f565b34801561089357600080fd5b506104086118f8565b3480156108a857600080fd5b506104776108b7366004613ac7565b611905565b3480156108c857600080fd5b506108dc6108d7366004613bf0565b6119d3565b6040516103ea9190614c94565b3480156108f557600080fd5b506108fe611a01565b6040516103ea929190613eb3565b34801561091857600080fd5b50610477610927366004613a4e565b611c92565b34801561093857600080fd5b50610477610947366004613d48565b611cd1565b34801561095857600080fd5b50610408610967366004613bf0565b611fb9565b34801561097857600080fd5b506103dd610987366004613bf0565b6121e8565b34801561099857600080fd5b506104776109a7366004613c94565b6121fd565b3480156109b857600080fd5b506104b96109c7366004613bf0565b612288565b3480156109d857600080fd5b506104b961229a565b3480156109ed57600080fd5b506104b96122a6565b348015610a0257600080fd5b506104b96122ad565b348015610a1757600080fd5b50610408610a26366004613bf0565b6122b4565b348015610a3757600080fd5b50610477610a46366004613bf0565b6122ce565b348015610a5757600080fd5b506103dd610a663660046139e1565b612372565b348015610a7757600080fd5b50610477610a863660046139c7565b6123a0565b348015610a9757600080fd5b50610477610aa6366004613b26565b612457565b60006001600160e01b031982166380ac58cd60e01b1480610adc57506001600160e01b03198216635b5e139f60e01b145b80610af757506001600160e01b0319821663780e9d6360e01b145b80610b065750610b06826125dd565b90505b919050565b606060068054610b1d90614da3565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4990614da3565b8015610b965780601f10610b6b57610100808354040283529160200191610b96565b820191906000526020600020905b815481529060010190602001808311610b7957829003601f168201915b5050505050905090565b6000610bab826125f6565b610bd05760405162461bcd60e51b8152600401610bc7906147df565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60118054610bf990614da3565b80601f0160208091040260200160405190810160405280929190818152602001828054610c2590614da3565b8015610c725780601f10610c4757610100808354040283529160200191610c72565b820191906000526020600020905b815481529060010190602001808311610c5557829003601f168201915b505050505081565b6000610c8582611426565b9050806001600160a01b0316836001600160a01b03161415610cb95760405162461bcd60e51b8152600401610bc79061498a565b806001600160a01b0316610ccb612603565b6001600160a01b03161480610ce75750610ce781610a66612603565b610d035760405162461bcd60e51b8152600401610bc790614612565b610d0d8383612607565b505050565b61124f8160218110610d2357600080fd5b018054909150610bf990614da3565b61122e8160218110610d4357600080fd5b0154905081565b6112208160078110610d4357600080fd5b6002600b541415610d7e5760405162461bcd60e51b8152600401610bc790614c2f565b6002600b55333214610da25760405162461bcd60e51b8152600401610bc7906149cb565b611200610dad6110da565b10610dca5760405162461bcd60e51b8152600401610bc790614966565b3360009081526019602052604090205415610df75760405162461bcd60e51b8152600401610bc790614a94565b60155415801590610e0a57506015544210155b610e265760405162461bcd60e51b8152600401610bc790614c01565b60165460ff1615610e495760405162461bcd60e51b8152600401610bc790614bd9565b600080610e54611a01565b9150915081341015610e785760405162461bcd60e51b8152600401610bc7906145e6565b60006012610e846110da565b610e8e9190614d49565b9050610e9a3382612675565b6002610ea46110da565b610eae9190614df9565b610fd857601c546040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190610f01903090600401614213565b60206040518083038186803b158015610f1957600080fd5b505afa158015610f2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f519190613d30565b1015610f6f5760405162461bcd60e51b8152600401610bc790614468565b6000610f7f601b54601c5461268f565b9050610f8c600183614d49565b6000828152601a60205260409081902091909155517fe5f5b44d72d4143c278eb745c4acc0695c4a5bc616be5beecf46abe29661780e90610fce9083906142c3565b60405180910390a1505b807fcc9c58b575eabd3f6a1ee653e91fcea3ff546867ffc3782a3bbca1f9b6dbb8df8460405161100891906142c3565b60405180910390a260175461105b576112006110226110da565b148061103557506729a2241af62c000082145b156110485760178290554260185561105b565b3360009081526019602052604090208290555b8234111561109b57336108fc6110718534614d49565b6040518115909202916000818181858888f19350505050158015611099573d6000803e3d6000fd5b505b50506001600b5550565b600061121f6110b3836127d2565b6040516110c09190613ec1565b9081526040519081900360200190205460ff169050919050565b60006110e6600161298f565b905090565b60175481565b7f000000000000000000000000000000000000000000000000000000000000000081565b6060600061112283611587565b905061124f816021811061114657634e487b7160e01b600052603260045260246000fd5b01805461115290614da3565b80601f016020809104026020016040519081016040528092919081815260200182805461117e90614da3565b80156111cb5780601f106111a0576101008083540402835291602001916111cb565b820191906000526020600020905b8154815290600101906020018083116111ae57829003601f168201915b5050505050915050919050565b60155481565b6111ef6111e9612603565b8261299a565b61120b5760405162461bcd60e51b8152600401610bc790614a43565b610d0d838383612a17565b6001600160a01b03821660009081526020819052604081206112389083612b25565b90505b92915050565b61120081565b601a6020526000908152604090205481565b604051806060016040528060358152602001614e746035913981565b61127d612603565b600a546001600160a01b039081169116146112aa5760405162461bcd60e51b8152600401610bc79061482b565b601854158015906112c957506018546112c6906203f480614cd9565b42115b806112fe575062093a80620151806015546112e49190614cd9565b6112ee9190614cd9565b6112fb906203f480614cd9565b42115b61131a5760405162461bcd60e51b8152600401610bc790614727565b6040514790339082156108fc029083906000818181858888f19350505050158015611349573d6000803e3d6000fd5b5050565b6060600061135a8361183f565b9050611227816007811061114657634e487b7160e01b600052603260045260246000fd5b610d0d83838360405180602001604052806000815250611c92565b7f000000000000000000000000000000000000000000000000000000000000000081565b60196020526000908152604090205481565b6000806113dd600184612b31565b509392505050565b69152d02c7e14af680000081565b60165460ff1681565b60185481565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000610b0682604051806060016040528060298152602001614ea96029913960019190612b4d565b600f8054610bf990614da3565b60108054610bf990614da3565b6060600f8054610b1d90614da3565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b60006001600160a01b0382166114e75760405162461bcd60e51b8152600401610bc79061466f565b6001600160a01b0382166000908152602081905260409020610b0690612b5a565b611510612603565b600a546001600160a01b0390811691161461153d5760405162461bcd60e51b8152600401610bc79061482b565b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b6000611592826125f6565b6115ae5760405162461bcd60e51b8152600401610bc790614563565b60008281526013602052604090205460ff166115dc5760405162461bcd60e51b8152600401610bc79061451a565b600082815260146020526040812054906115f860016021614d49565b90505b61122e816021811061161d57634e487b7160e01b600052603260045260246000fd5b0154821061162e579150610b099050565b8061163881614d8c565b9150506115fb565b6112278160078110610d2357600080fd5b611659612603565b600a546001600160a01b039081169116146116865760405162461bcd60e51b8152600401610bc79061482b565b60126116906110da565b106116ad5760405162461bcd60e51b8152600401610bc790614afd565b601554156116cd5760405162461bcd60e51b8152600401610bc7906146f0565b60005b601281101561179b57600060016116e983611200614d49565b6116f39190614d49565b90506116ff3382612675565b807fcc9c58b575eabd3f6a1ee653e91fcea3ff546867ffc3782a3bbca1f9b6dbb8df600060405161173091906142c3565b60405180910390a261178881611783600d856012811061176057634e487b7160e01b600052603260045260246000fd5b601091828204019190066002029054906101000a900461ffff1661ffff16612b65565b612cba565b508061179381614dde565b9150506116d0565b5060026117a66110da565b6117b09190614df9565b156117cd5760405162461bcd60e51b8152600401610bc790614b34565b565b600a546001600160a01b031690565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146118265760405162461bcd60e51b8152600401610bc79061492f565b6113498282612d0e565b606060078054610b1d90614da3565b600061184a826125f6565b6118665760405162461bcd60e51b8152600401610bc790614563565b60008281526013602052604090205460ff166118945760405162461bcd60e51b8152600401610bc79061451a565b600082815260146020526040812054906118b060016007614d49565b90505b61122081600781106118d557634e487b7160e01b600052603260045260246000fd5b015482106118e6579150610b099050565b806118f081614d8c565b9150506118b3565b60128054610bf990614da3565b61190d612603565b6001600160a01b0316826001600160a01b0316141561193e5760405162461bcd60e51b8152600401610bc7906144e3565b806005600061194b612603565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561198f612603565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119c791906142b8565b60405180910390a35050565b600d81601281106119e357600080fd5b60109182820401919006600202915054906101000a900461ffff1681565b600080600060155442611a149190614d49565b90506000611a2862093a8062015180614cd9565b8210611a3d57506729a2241af62c0000611b9f565b62015180821015611b0a5760006201518083611a997f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000614d49565b611aa39190614d2a565b611aad9190614d16565b9050611b027f0000000000000000000000000000000000000000000000000000000000000000611afd837f0000000000000000000000000000000000000000000000000000000000000000614d49565b612e20565b915050611b9f565b600062093a80611b1d6201518085614d49565b611b4f6729a2241af62c00007f0000000000000000000000000000000000000000000000000000000000000000614d49565b611b599190614d2a565b611b639190614d16565b9050611b9b6729a2241af62c0000611afd837f0000000000000000000000000000000000000000000000000000000000000000614d49565b9150505b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231336040518263ffffffff1660e01b8152600401611bee9190614213565b60206040518083038186803b158015611c0657600080fd5b505afa158015611c1a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c3e9190613d30565b1115611c6757507f00000000000000000000000000000000000000000000000000000000000000005b818110611c7c5750600093509150611c8e9050565b611c868183614d49565b945090925050505b9091565b611ca3611c9d612603565b8361299a565b611cbf5760405162461bcd60e51b8152600401610bc790614a43565b611ccb84848484612e37565b50505050565b6002600b541415611cf45760405162461bcd60e51b8152600401610bc790614c2f565b6002600b556000611d0483611426565b9050806001600160a01b0316611d18612603565b6001600160a01b031614611d3e5760405162461bcd60e51b8152600401610bc790614303565b611d4782612e6a565b1515600114611d685760405162461bcd60e51b8152600401610bc790614c66565b600083815261121e602052604090208054611d8290614da3565b159050611da15760405162461bcd60e51b8152600401610bc7906148f8565b611daa826110a5565b15611dc75760405162461bcd60e51b8152600401610bc790614b6b565b6040516323b872dd60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906323b872dd90611e21903390309069152d02c7e14af680000090600401614227565b602060405180830381600087803b158015611e3b57600080fd5b505af1158015611e4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e739190613bd4565b50600083815261121e602090815260409091208351611e94928501906138a0565b50600161121f611ea3846127d2565b604051611eb09190613ec1565b908152604051908190036020018120805492151560ff1990931692909217909155630852cd8d60e31b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906342966c6890611f249069152d02c7e14af6800000906004016142c3565b602060405180830381600087803b158015611f3e57600080fd5b505af1158015611f52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f769190613bd4565b50827f7e632a301794d8d4a81ea7e20f37d1947158d36e66403af04ba85dd194b66f1b83604051611fa791906142f0565b60405180910390a250506001600b5550565b6060611fc4826125f6565b611fe05760405162461bcd60e51b8152600401610bc7906148a9565b60008281526013602052604090205460ff1661200e5760405162461bcd60e51b8152600401610bc79061451a565b60408051808201825260018152601160f91b602080830191909152600085815261121e90915291909120805461204390614da3565b15905061207c57600083815261121e6020908152604091829020915161206a9291016141eb565b60405160208183030381529060405290505b6060612086611468565b60008581526014602052604090205461209e906130b7565b6040516020016120af929190613edd565b60408051601f198184030181529181526000868152601460205220546010906120d7906130b7565b6040516020016120e8929190613f1c565b604051602081830303815290604052601161210a6121058861183f565b6130b7565b60405160200161211b929190613f38565b60408051601f198184030181529082905261213a9392916020016140f6565b60405160208183030381529060405290506121c0612157856130b7565b836121618761134d565b61216a88611115565b60126121786121058b611587565b604051602001612189929190613f6c565b60408051601f19818403018152908290526121ac95949392918890602001613fa2565b6040516020818303038152906040526131d2565b6040516020016121d091906141a6565b60405160208183030381529060405292505050919050565b60136020526000908152604090205460ff1681565b612205612603565b600a546001600160a01b039081169116146122325760405162461bcd60e51b8152600401610bc79061482b565b835161224590600f9060208701906138a0565b5082516122599060109060208601906138a0565b50815161226d9060119060208501906138a0565b5080516122819060129060208401906138a0565b5050505050565b60146020526000908152604090205481565b6729a2241af62c000081565b62093a8081565b6201518081565b61121e6020526000908152604090208054610bf990614da3565b6122d6612603565b600a546001600160a01b039081169116146123035760405162461bcd60e51b8152600401610bc79061482b565b61120061230e6110da565b1061232b5760405162461bcd60e51b8152600401610bc790614440565b60155461235c57428110156123525760405162461bcd60e51b8152600401610bc790614a02565b601581905561236f565b6016805460ff19811660ff909116151790555b50565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6123a8612603565b600a546001600160a01b039081169116146123d55760405162461bcd60e51b8152600401610bc79061482b565b6001600160a01b0381166123fb5760405162461bcd60e51b8152600401610bc79061438c565b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6002600b54141561247a5760405162461bcd60e51b8152600401610bc790614c2f565b6002600b5560175461249e5760405162461bcd60e51b8152600401610bc7906146b9565b60005b81518110156125d4576000601960008484815181106124d057634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020549050806000146125c15760006019600085858151811061252957634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555082828151811061257557634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166108fc601754836125979190614d49565b6040518115909202916000818181858888f193505050501580156125bf573d6000803e3d6000fd5b505b50806125cc81614dde565b9150506124a1565b50506001600b55565b6001600160e01b031981166301ffc9a760e01b14919050565b6000610b06600183613347565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061263c82611426565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611349828260405180602001604052806000815250613353565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f0000000000000000000000000000000000000000000000000000000000000000848660006040516020016126f6929190613eb3565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161272393929190614288565b602060405180830381600087803b15801561273d57600080fd5b505af1158015612751573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127759190613bd4565b506000838152600c602052604081205461279490859083903090613386565b6000858152600c60205260409020549091506127b19060016133c0565b6000858152600c60205260409020556127ca84826133ef565b949350505050565b606060008290506000815167ffffffffffffffff81111561280357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561282d576020820181803683370190505b50905060005b82518110156113dd57604183828151811061285e57634e487b7160e01b600052603260045260246000fd5b016020015160f81c1080159061289c5750605a83828151811061289157634e487b7160e01b600052603260045260246000fd5b016020015160f81c11155b1561291a578281815181106128c157634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b60f81c60206128db9190614cf1565b60f81b8282815181106128fe57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061297d565b82818151811061293a57634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b82828151811061296557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053505b8061298781614dde565b915050612833565b6000610b0682613422565b60006129a5826125f6565b6129c15760405162461bcd60e51b8152600401610bc79061459a565b60006129cc83611426565b9050806001600160a01b0316846001600160a01b03161480612a075750836001600160a01b03166129fc84610ba0565b6001600160a01b0316145b806127ca57506127ca8185612372565b826001600160a01b0316612a2a82611426565b6001600160a01b031614612a505760405162461bcd60e51b8152600401610bc790614860565b6001600160a01b038216612a765760405162461bcd60e51b8152600401610bc79061449f565b612a81838383610d0d565b612a8c600082612607565b6001600160a01b0383166000908152602081905260409020612aae908261342d565b506001600160a01b0382166000908152602081905260409020612ad19082613439565b50612ade60018284613445565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000611238838361345b565b6000808080612b408686613493565b9097909650945050505050565b60006127ca8484846134be565b6000610b068261350a565b60008061121d54611200612b799190614d49565b90506000612b878285614df9565b90506000601d826112008110612bad57634e487b7160e01b600052603260045260246000fd5b015415612bdf57601d826112008110612bd657634e487b7160e01b600052603260045260246000fd5b01549050612be2565b50805b601d612bef600185614d49565b6112008110612c0e57634e487b7160e01b600052603260045260246000fd5b0154612c4857612c1f600184614d49565b601d836112008110612c4157634e487b7160e01b600052603260045260246000fd5b0155612c9b565b601d612c55600185614d49565b6112008110612c7457634e487b7160e01b600052603260045260246000fd5b0154601d836112008110612c9857634e487b7160e01b600052603260045260246000fd5b01555b61121d8054906000612cac83614dde565b909155509095945050505050565b60008281526014602090815260408083208490556013909152808220805460ff1916600117905551829184917fd6fda5967e0572335b5c3db99b76df1a17fc036c9e5c5e9eea0ef53919e3c8579190a35050565b6000828152601a6020908152604080832054815180830190925280825292918101612d3a846001614cd9565b9052905060005b60028110156122815760136000838360028110612d6e57634e487b7160e01b600052603260045260246000fd5b6020908102919091015182528101919091526040016000205460ff1615612da75760405162461bcd60e51b8152600401610bc790614ba2565b6000612ddd8583604051602001612dbf929190613eb3565b6040516020818303038152906040528051906020012060001c612b65565b9050612e0d838360028110612e0257634e487b7160e01b600052603260045260246000fd5b602002015182612cba565b5080612e1881614dde565b915050612d41565b600081831015612e305781611238565b5090919050565b612e42848484612a17565b612e4e8484848461350e565b611ccb5760405162461bcd60e51b8152600401610bc79061433a565b600080829050600181511015612e84576000915050610b09565b601981511115612e98576000915050610b09565b80600081518110612eb957634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916600160fd1b1415612ede576000915050610b09565b8060018251612eed9190614d49565b81518110612f0b57634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916600160fd1b1415612f30576000915050610b09565b600081600081518110612f5357634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b031916905060005b82518110156130ac576000838281518110612f9257634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b0319169050600160fd1b81148015612fc35750600160fd1b6001600160f81b03198416145b15612fd5576000945050505050610b09565b600360fc1b6001600160f81b03198216108015906130015750603960f81b6001600160f81b0319821611155b1580156130375750604160f81b6001600160f81b03198216108015906130355750602d60f91b6001600160f81b0319821611155b155b801561306c5750606160f81b6001600160f81b031982161080159061306a5750603d60f91b6001600160f81b0319821611155b155b80156130865750600160fd1b6001600160f81b0319821614155b15613098576000945050505050610b09565b9150806130a481614dde565b915050612f67565b506001949350505050565b6060816130dc57506040805180820190915260018152600360fc1b6020820152610b09565b8160005b811561310657806130f081614dde565b91506130ff9050600a83614d16565b91506130e0565b60008167ffffffffffffffff81111561312f57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613159576020820181803683370190505b5090505b84156127ca5761316e600183614d49565b915061317b600a86614df9565b613186906030614cd9565b60f81b8183815181106131a957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506131cb600a86614d16565b945061315d565b60608151600014156131f35750604080516020810190915260008152610b09565b6000604051806060016040528060408152602001614ed260409139905060006003845160026132229190614cd9565b61322c9190614d16565b613237906004614d2a565b90506000613246826020614cd9565b67ffffffffffffffff81111561326c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613296576020820181803683370190505b509050818152600183018586518101602084015b81831015613302576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f81168501518253506001016132aa565b60038951066001811461331c576002811461332d57613339565b613d3d60f01b600119830152613339565b603d60f81b6000198301525b509398975050505050505050565b60006112388383613626565b61335d8383613632565b61336a600084848461350e565b610d0d5760405162461bcd60e51b8152600401610bc79061433a565b60008484848460405160200161339f94939291906142cc565b60408051601f19818403018152919052805160209091012095945050505050565b6000806133cd8385614cd9565b9050838110156112385760405162461bcd60e51b8152600401610bc790614409565b60008282604051602001613404929190613eb3565b60405160208183030381529060405280519060200120905092915050565b6000610b0682612b5a565b600061123883836136f6565b60006112388383613813565b60006127ca84846001600160a01b03851661385d565b600082600001828154811061348057634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b600080806134a18585612b25565b600081815260029690960160205260409095205494959350505050565b6000828152600284016020526040812054801515806134e257506134e28585613626565b83906135015760405162461bcd60e51b8152600401610bc791906142f0565b50949350505050565b5490565b6000613522846001600160a01b031661387a565b1561361e57836001600160a01b031663150b7a0261353e612603565b8786866040518563ffffffff1660e01b8152600401613560949392919061424b565b602060405180830381600087803b15801561357a57600080fd5b505af19250505080156135aa575060408051601f3d908101601f191682019092526135a791810190613c45565b60015b613604573d8080156135d8576040519150601f19603f3d011682016040523d82523d6000602084013e6135dd565b606091505b5080516135fc5760405162461bcd60e51b8152600401610bc79061433a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506127ca565b5060016127ca565b60006112388383613880565b6001600160a01b0382166136585760405162461bcd60e51b8152600401610bc7906147aa565b613661816125f6565b1561367e5760405162461bcd60e51b8152600401610bc7906143d2565b61368a60008383610d0d565b6001600160a01b03821660009081526020819052604090206136ac9082613439565b506136b960018284613445565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818152600183016020526040812054801561380957600061371a600183614d49565b855490915060009061372e90600190614d49565b90508181146137af57600086600001828154811061375c57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508087600001848154811061378d57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b85548690806137ce57634e487b7160e01b600052603160045260246000fd5b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061123b565b600091505061123b565b600061381f8383613888565b6138555750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561123b565b50600061123b565b600082815260028401602052604081208290556127ca8484613439565b3b151590565b600061123883835b60009081526001919091016020526040902054151590565b8280546138ac90614da3565b90600052602060002090601f0160209004810192826138ce5760008555613914565b82601f106138e757805160ff1916838001178555613914565b82800160010185558215613914579182015b828111156139145782518255916020019190600101906138f9565b50613920929150613924565b5090565b5b808211156139205760008155600101613925565b600067ffffffffffffffff83111561395357613953614e39565b613966601f8401601f1916602001614ca3565b905082815283838301111561397a57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114610b0957600080fd5b600082601f8301126139b8578081fd5b61123883833560208501613939565b6000602082840312156139d8578081fd5b61123882613991565b600080604083850312156139f3578081fd5b6139fc83613991565b9150613a0a60208401613991565b90509250929050565b600080600060608486031215613a27578081fd5b613a3084613991565b9250613a3e60208501613991565b9150604084013590509250925092565b60008060008060808587031215613a63578081fd5b613a6c85613991565b9350613a7a60208601613991565b925060408501359150606085013567ffffffffffffffff811115613a9c578182fd5b8501601f81018713613aac578182fd5b613abb87823560208401613939565b91505092959194509250565b60008060408385031215613ad9578182fd5b613ae283613991565b91506020830135613af281614e4f565b809150509250929050565b60008060408385031215613b0f578182fd5b613b1883613991565b946020939093013593505050565b60006020808385031215613b38578182fd5b823567ffffffffffffffff80821115613b4f578384fd5b818501915085601f830112613b62578384fd5b813581811115613b7457613b74614e39565b8381029150613b84848301614ca3565b8181528481019084860184860187018a1015613b9e578788fd5b8795505b83861015613bc757613bb381613991565b835260019590950194918601918601613ba2565b5098975050505050505050565b600060208284031215613be5578081fd5b815161123881614e4f565b600060208284031215613c01578081fd5b5035919050565b60008060408385031215613c1a578182fd5b50508035926020909101359150565b600060208284031215613c3a578081fd5b813561123881614e5d565b600060208284031215613c56578081fd5b815161123881614e5d565b600060208284031215613c72578081fd5b813567ffffffffffffffff811115613c88578182fd5b6127ca848285016139a8565b60008060008060808587031215613ca9578182fd5b843567ffffffffffffffff80821115613cc0578384fd5b613ccc888389016139a8565b95506020870135915080821115613ce1578384fd5b613ced888389016139a8565b94506040870135915080821115613d02578384fd5b613d0e888389016139a8565b93506060870135915080821115613d23578283fd5b50613abb878288016139a8565b600060208284031215613d41578081fd5b5051919050565b60008060408385031215613d5a578182fd5b82359150602083013567ffffffffffffffff811115613d77578182fd5b613d83858286016139a8565b9150509250929050565b60008151808452613da5816020860160208601614d60565b601f01601f19169290920160200192915050565b60008151613dcb818560208601614d60565b9290920192915050565b805460009060028104600180831680613def57607f831692505b6020808410821415613e0f57634e487b7160e01b86526022600452602486fd5b818015613e235760018114613e3457613e61565b60ff19861689528489019650613e61565b613e3d88614ccd565b60005b86811015613e595781548b820152908501908301613e40565b505084890196505b50505050505092915050565b6222207d60e81b815260030190565b7f227d5d2c2022706879736963616c5f73706563696669636174696f6e735f757281526434911d101160d91b602082015260250190565b918252602082015260400190565b60008251613ed3818460208701614d60565b9190910192915050565b60008351613eef818460208801614d60565b835190830190613f03818360208801614d60565b642e6a70656760d81b9101908152600501949350505050565b6000613f288285613dd5565b8351613f03818360208801614d60565b6000613f448285613dd5565b8351613f54818360208801614d60565b631733b63160e11b9101908152600401949350505050565b6000613f788285613dd5565b8351613f88818360208801614d60565b65173539b7b71160d11b9101908152600601949350505050565b707b226e616d65223a20224d756e6469202360781b81528651600090613fcf816011850160208c01614d60565b875190830190613fe6816011840160208c01614d60565b7f2c20226465736372697074696f6e223a20225468652047726561747320436f6c601192909101918201527f6c656374696f6e222c202261747472696275746573223a205b7b20227472616960318201527f745f74797065223a2022457261222c202276616c7565223a20220000000000006051820152865161407081606b840160208b01614d60565b7f227d2c207b202274726169745f74797065223a202253756220457261222c2022606b9290910191820152683b30b63ab2911d101160b91b608b82015285516140c0816094840160208a01614d60565b6140e86140e36140dd6140d7609485870101613e7c565b89613db9565b87613db9565b613e6d565b9a9950505050505050505050565b6b16101134b6b0b3b2911d101160a11b8152835160009061411e81600c850160208901614d60565b7f222c2022696d6167655f617277656176655f757269223a202200000000000000600c91840191820152845161415b816025840160208901614d60565b7f222c202267616c6c6572795f676c625f757269223a202200000000000000000060259290910191820152835161419981603c840160208801614d60565b01603c0195945050505050565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000825282516141de81601d850160208701614d60565b91909101601d0192915050565b60006101d160f51b82526142026002830184613dd5565b601160f91b81526001019392505050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061427e90830184613d8d565b9695505050505050565b600060018060a01b0385168252836020830152606060408301526142af6060830184613d8d565b95945050505050565b901515815260200190565b90815260200190565b93845260208401929092526001600160a01b03166040830152606082015260800190565b6000602082526112386020830184613d8d565b6020808252601f908201527f4552433732313a2063616c6c6572206973206e6f7420746865206f776e657200604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252600e908201526d14d85b19481a185cc8195b99195960921b604082015260600190565b6020808252601f908201527f4e6f7420656e6f756768204c494e4b202d2066696c6c20636f6e747261637400604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b60208082526029908201527f4d65746164617461206973206e6f742061737369676e656420746f20746865206040820152681d1bdad95b881e595d60ba1b606082015260800190565b60208082526017908201527f546f6b656e20494420646f6573206e6f74206578697374000000000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b602080825260129082015271496e73756666696369656e742066756e647360701b604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526018908201527f536574746c656d656e74207072696365206e6f74207365740000000000000000604082015260600190565b60208082526018908201527f53616c652068617320616c726561647920737461727465640000000000000000604082015260600190565b6020808252605d908201527f41746c6561737420332064617973206d7573742070617373206166746572207360408201527f6574746c656d656e7420707269636520697320736574206f722061667465722060608201527f7468652067656e6572616c20637572766520706572696f6420656e6473000000608082015260a00190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526019908201527f546f6b656e20494420697320616c7265616479206e616d656400000000000000604082015260600190565b6020808252601f908201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00604082015260600190565b6020808252600a908201526914d85b1948195b99195960b21b604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b6020808252601b908201527f4d696e7465722063616e6e6f74206265206120636f6e74726163740000000000604082015260600190565b60208082526021908201527f73616c65537461727454696d657374616d7020697320696e20746865207061736040820152601d60fa1b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526043908201527f4f6e6c79206f6e6520746f6b656e206d696e7461626c6520706572206164647260408201527f65737320696620524553455256455f5052494345206973206e6f7420726561636060820152621a195960ea1b608082015260a00190565b60208082526018908201527f446576206d696e74696e6720616c726561647920646f6e650000000000000000604082015260600190565b6020808252601c908201527f446576206d696e74206e756d626572206d757374206265206576656e00000000604082015260600190565b60208082526018908201527f4e616d6520697320616c72656164792072657365727665640000000000000000604082015260600190565b60208082526019908201527f4d6574616461746120616c72656164792061737369676e656400000000000000604082015260600190565b6020808252600e908201526d14d85b19481a5cc81c185d5cd95960921b604082015260600190565b60208082526014908201527314d85b19481a185cc81b9bdd081cdd185c9d195960621b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601490820152734e6f7420612076616c6964206e6577206e616d6560601b604082015260600190565b61ffff91909116815260200190565b60405181810167ffffffffffffffff81118282101715614cc557614cc5614e39565b604052919050565b60009081526020902090565b60008219821115614cec57614cec614e0d565b500190565b600060ff821660ff84168060ff03821115614d0e57614d0e614e0d565b019392505050565b600082614d2557614d25614e23565b500490565b6000816000190483118215151615614d4457614d44614e0d565b500290565b600082821015614d5b57614d5b614e0d565b500390565b60005b83811015614d7b578181015183820152602001614d63565b83811115611ccb5750506000910152565b600081614d9b57614d9b614e0d565b506000190190565b600281046001821680614db757607f821691505b60208210811415614dd857634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415614df257614df2614e0d565b5060010190565b600082614e0857614e08614e23565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461236f57600080fd5b6001600160e01b03198116811461236f57600080fdfe697066733a2f2f516d56654a79614c68343469325673655048627748615154383953657458474b73745a726a783338736a4b47684c4552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220a4735d889f7dc443ee3d5920940b282920562ea29703358d20b7634f166e282664736f6c63430008000033697066733a2f2f516d4e53735577385a3348357a3246726f437756565a333276796539524633514a4b656a69464c456e6e3470696b2f5468652047616d626974206f662053616c7661746f72204d756e646920696e2074686520446573657274204f6365616e697066733a2f2f516d57574d703453726b364343396e75477737664a7a364266784e77377854375142485474784656526a51547a552f697066733a2f2f516d527633594358525978337633366274634b476e7541584b46716a69575150573762475548574b6239475747762f000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000021e19e0c9bab24000000000000000000000000000000000000000000000000000008ac7230489e800000000000000000000000000008a9c4dfe8b9d8962b31e4e16f8321c44d48e246e000000000000000000000000c2c747e0f7004f9e8817db2ca4997657a77469280000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca0000000000000000000000000000000000000000000000001bc16d674ec80000aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445000000000000000000000000000000000000000000000000000000000000000a546865204772656174730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054d554e4449000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106103b85760003560e01c806368b4c277116101f2578063acb89b581161010d578063dd21d604116100a0578063e72f98431161006f578063e72f984314610a2b578063e985e9c514610a4b578063f2fde38b14610a6b578063fe132c6314610a8b576103b8565b8063dd21d604146109cc578063e0ecd81d146109e1578063e378ad08146109f6578063e725f87714610a0b576103b8565b8063c87b56dd116100dc578063c87b56dd1461094c578063d1de44ec1461096c578063d6fc765d1461098c578063d9cf5e43146109ac576103b8565b8063acb89b58146108bc578063ae32b0f8146108e9578063b88d4fde1461090c578063c39cbef11461092c576103b8565b80637926dfa41161018557806395d89b411161015457806395d89b411461085257806399b9a170146108675780639eb1326d14610887578063a22cb4651461089c576103b8565b80637926dfa4146107e85780637c69e207146108085780638da5cb5b1461081d57806394985ddd14610832576103b8565b80636e967cf4116101c15780636e967cf41461077e57806370a0823114610793578063715018a6146107b35780637894df44146107c8576103b8565b806368b4c2771461072a5780636b974c971461073f5780636c0360eb146107545780636d79256a14610769576103b8565b806323b872dd116102e257806346300e6f116102755780635d08c1ae116102445780635d08c1ae146106cb5780635f0957b8146106e05780635fee6108146106f55780636352211e1461070a576103b8565b806346300e6f146106615780634662bc16146106765780634f6ccce71461069657806354b6f161146106b6576103b8565b806336f11277116102b157806336f11277146105f75780633ccfd60b1461060c57806341155c0d1461062157806342842e0e14610641576103b8565b806323b872dd146105825780632f745c59146105a257806332cb6b0c146105c257806336ce4835146105d7576103b8565b80630f9ffb0a1161035a57806318ab147b1161032957806318ab147b146105235780631b14ba081461053857806320aeab7c1461054d578063226730301461056d576103b8565b80630f9ffb0a146104c65780631249c58b146104e657806315b56d10146104ee57806318160ddd1461050e576103b8565b806308d26a041161039657806308d26a0414610442578063095ea7b3146104575780630a561c73146104795780630eefeb3114610499576103b8565b806301ffc9a7146103bd57806306fdde03146103f3578063081812fc14610415575b600080fd5b3480156103c957600080fd5b506103dd6103d8366004613c29565b610aab565b6040516103ea91906142b8565b60405180910390f35b3480156103ff57600080fd5b50610408610b0e565b6040516103ea91906142f0565b34801561042157600080fd5b50610435610430366004613bf0565b610ba0565b6040516103ea9190614213565b34801561044e57600080fd5b50610408610bec565b34801561046357600080fd5b50610477610472366004613afd565b610c7a565b005b34801561048557600080fd5b50610408610494366004613bf0565b610d12565b3480156104a557600080fd5b506104b96104b4366004613bf0565b610d32565b6040516103ea91906142c3565b3480156104d257600080fd5b506104b96104e1366004613bf0565b610d4a565b610477610d5b565b3480156104fa57600080fd5b506103dd610509366004613c61565b6110a5565b34801561051a57600080fd5b506104b96110da565b34801561052f57600080fd5b506104b96110eb565b34801561054457600080fd5b506104356110f1565b34801561055957600080fd5b50610408610568366004613bf0565b611115565b34801561057957600080fd5b506104b96111d8565b34801561058e57600080fd5b5061047761059d366004613a13565b6111de565b3480156105ae57600080fd5b506104b96105bd366004613afd565b611216565b3480156105ce57600080fd5b506104b9611241565b3480156105e357600080fd5b506104b96105f2366004613bf0565b611247565b34801561060357600080fd5b50610408611259565b34801561061857600080fd5b50610477611275565b34801561062d57600080fd5b5061040861063c366004613bf0565b61134d565b34801561064d57600080fd5b5061047761065c366004613a13565b61137e565b34801561066d57600080fd5b506104b9611399565b34801561068257600080fd5b506104b96106913660046139c7565b6113bd565b3480156106a257600080fd5b506104b96106b1366004613bf0565b6113cf565b3480156106c257600080fd5b506104b96113e5565b3480156106d757600080fd5b506103dd6113f3565b3480156106ec57600080fd5b506104b96113fc565b34801561070157600080fd5b506104b9611402565b34801561071657600080fd5b50610435610725366004613bf0565b611426565b34801561073657600080fd5b5061040861144e565b34801561074b57600080fd5b5061040861145b565b34801561076057600080fd5b50610408611468565b34801561077557600080fd5b506104b9611477565b34801561078a57600080fd5b5061043561149b565b34801561079f57600080fd5b506104b96107ae3660046139c7565b6114bf565b3480156107bf57600080fd5b50610477611508565b3480156107d457600080fd5b506104b96107e3366004613bf0565b611587565b3480156107f457600080fd5b50610408610803366004613bf0565b611640565b34801561081457600080fd5b50610477611651565b34801561082957600080fd5b506104356117cf565b34801561083e57600080fd5b5061047761084d366004613c08565b6117de565b34801561085e57600080fd5b50610408611830565b34801561087357600080fd5b506104b9610882366004613bf0565b61183f565b34801561089357600080fd5b506104086118f8565b3480156108a857600080fd5b506104776108b7366004613ac7565b611905565b3480156108c857600080fd5b506108dc6108d7366004613bf0565b6119d3565b6040516103ea9190614c94565b3480156108f557600080fd5b506108fe611a01565b6040516103ea929190613eb3565b34801561091857600080fd5b50610477610927366004613a4e565b611c92565b34801561093857600080fd5b50610477610947366004613d48565b611cd1565b34801561095857600080fd5b50610408610967366004613bf0565b611fb9565b34801561097857600080fd5b506103dd610987366004613bf0565b6121e8565b34801561099857600080fd5b506104776109a7366004613c94565b6121fd565b3480156109b857600080fd5b506104b96109c7366004613bf0565b612288565b3480156109d857600080fd5b506104b961229a565b3480156109ed57600080fd5b506104b96122a6565b348015610a0257600080fd5b506104b96122ad565b348015610a1757600080fd5b50610408610a26366004613bf0565b6122b4565b348015610a3757600080fd5b50610477610a46366004613bf0565b6122ce565b348015610a5757600080fd5b506103dd610a663660046139e1565b612372565b348015610a7757600080fd5b50610477610a863660046139c7565b6123a0565b348015610a9757600080fd5b50610477610aa6366004613b26565b612457565b60006001600160e01b031982166380ac58cd60e01b1480610adc57506001600160e01b03198216635b5e139f60e01b145b80610af757506001600160e01b0319821663780e9d6360e01b145b80610b065750610b06826125dd565b90505b919050565b606060068054610b1d90614da3565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4990614da3565b8015610b965780601f10610b6b57610100808354040283529160200191610b96565b820191906000526020600020905b815481529060010190602001808311610b7957829003601f168201915b5050505050905090565b6000610bab826125f6565b610bd05760405162461bcd60e51b8152600401610bc7906147df565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60118054610bf990614da3565b80601f0160208091040260200160405190810160405280929190818152602001828054610c2590614da3565b8015610c725780601f10610c4757610100808354040283529160200191610c72565b820191906000526020600020905b815481529060010190602001808311610c5557829003601f168201915b505050505081565b6000610c8582611426565b9050806001600160a01b0316836001600160a01b03161415610cb95760405162461bcd60e51b8152600401610bc79061498a565b806001600160a01b0316610ccb612603565b6001600160a01b03161480610ce75750610ce781610a66612603565b610d035760405162461bcd60e51b8152600401610bc790614612565b610d0d8383612607565b505050565b61124f8160218110610d2357600080fd5b018054909150610bf990614da3565b61122e8160218110610d4357600080fd5b0154905081565b6112208160078110610d4357600080fd5b6002600b541415610d7e5760405162461bcd60e51b8152600401610bc790614c2f565b6002600b55333214610da25760405162461bcd60e51b8152600401610bc7906149cb565b611200610dad6110da565b10610dca5760405162461bcd60e51b8152600401610bc790614966565b3360009081526019602052604090205415610df75760405162461bcd60e51b8152600401610bc790614a94565b60155415801590610e0a57506015544210155b610e265760405162461bcd60e51b8152600401610bc790614c01565b60165460ff1615610e495760405162461bcd60e51b8152600401610bc790614bd9565b600080610e54611a01565b9150915081341015610e785760405162461bcd60e51b8152600401610bc7906145e6565b60006012610e846110da565b610e8e9190614d49565b9050610e9a3382612675565b6002610ea46110da565b610eae9190614df9565b610fd857601c546040516370a0823160e01b81526001600160a01b037f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca16906370a0823190610f01903090600401614213565b60206040518083038186803b158015610f1957600080fd5b505afa158015610f2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f519190613d30565b1015610f6f5760405162461bcd60e51b8152600401610bc790614468565b6000610f7f601b54601c5461268f565b9050610f8c600183614d49565b6000828152601a60205260409081902091909155517fe5f5b44d72d4143c278eb745c4acc0695c4a5bc616be5beecf46abe29661780e90610fce9083906142c3565b60405180910390a1505b807fcc9c58b575eabd3f6a1ee653e91fcea3ff546867ffc3782a3bbca1f9b6dbb8df8460405161100891906142c3565b60405180910390a260175461105b576112006110226110da565b148061103557506729a2241af62c000082145b156110485760178290554260185561105b565b3360009081526019602052604090208290555b8234111561109b57336108fc6110718534614d49565b6040518115909202916000818181858888f19350505050158015611099573d6000803e3d6000fd5b505b50506001600b5550565b600061121f6110b3836127d2565b6040516110c09190613ec1565b9081526040519081900360200190205460ff169050919050565b60006110e6600161298f565b905090565b60175481565b7f0000000000000000000000008a9c4dfe8b9d8962b31e4e16f8321c44d48e246e81565b6060600061112283611587565b905061124f816021811061114657634e487b7160e01b600052603260045260246000fd5b01805461115290614da3565b80601f016020809104026020016040519081016040528092919081815260200182805461117e90614da3565b80156111cb5780601f106111a0576101008083540402835291602001916111cb565b820191906000526020600020905b8154815290600101906020018083116111ae57829003601f168201915b5050505050915050919050565b60155481565b6111ef6111e9612603565b8261299a565b61120b5760405162461bcd60e51b8152600401610bc790614a43565b610d0d838383612a17565b6001600160a01b03821660009081526020819052604081206112389083612b25565b90505b92915050565b61120081565b601a6020526000908152604090205481565b604051806060016040528060358152602001614e746035913981565b61127d612603565b600a546001600160a01b039081169116146112aa5760405162461bcd60e51b8152600401610bc79061482b565b601854158015906112c957506018546112c6906203f480614cd9565b42115b806112fe575062093a80620151806015546112e49190614cd9565b6112ee9190614cd9565b6112fb906203f480614cd9565b42115b61131a5760405162461bcd60e51b8152600401610bc790614727565b6040514790339082156108fc029083906000818181858888f19350505050158015611349573d6000803e3d6000fd5b5050565b6060600061135a8361183f565b9050611227816007811061114657634e487b7160e01b600052603260045260246000fd5b610d0d83838360405180602001604052806000815250611c92565b7f00000000000000000000000000000000000000000000021e19e0c9bab240000081565b60196020526000908152604090205481565b6000806113dd600184612b31565b509392505050565b69152d02c7e14af680000081565b60165460ff1681565b60185481565b7f0000000000000000000000000000000000000000000000000de0b6b3a764000081565b6000610b0682604051806060016040528060298152602001614ea96029913960019190612b4d565b600f8054610bf990614da3565b60108054610bf990614da3565b6060600f8054610b1d90614da3565b7f0000000000000000000000000000000000000000000000008ac7230489e8000081565b7f000000000000000000000000c2c747e0f7004f9e8817db2ca4997657a774692881565b60006001600160a01b0382166114e75760405162461bcd60e51b8152600401610bc79061466f565b6001600160a01b0382166000908152602081905260409020610b0690612b5a565b611510612603565b600a546001600160a01b0390811691161461153d5760405162461bcd60e51b8152600401610bc79061482b565b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b6000611592826125f6565b6115ae5760405162461bcd60e51b8152600401610bc790614563565b60008281526013602052604090205460ff166115dc5760405162461bcd60e51b8152600401610bc79061451a565b600082815260146020526040812054906115f860016021614d49565b90505b61122e816021811061161d57634e487b7160e01b600052603260045260246000fd5b0154821061162e579150610b099050565b8061163881614d8c565b9150506115fb565b6112278160078110610d2357600080fd5b611659612603565b600a546001600160a01b039081169116146116865760405162461bcd60e51b8152600401610bc79061482b565b60126116906110da565b106116ad5760405162461bcd60e51b8152600401610bc790614afd565b601554156116cd5760405162461bcd60e51b8152600401610bc7906146f0565b60005b601281101561179b57600060016116e983611200614d49565b6116f39190614d49565b90506116ff3382612675565b807fcc9c58b575eabd3f6a1ee653e91fcea3ff546867ffc3782a3bbca1f9b6dbb8df600060405161173091906142c3565b60405180910390a261178881611783600d856012811061176057634e487b7160e01b600052603260045260246000fd5b601091828204019190066002029054906101000a900461ffff1661ffff16612b65565b612cba565b508061179381614dde565b9150506116d0565b5060026117a66110da565b6117b09190614df9565b156117cd5760405162461bcd60e51b8152600401610bc790614b34565b565b600a546001600160a01b031690565b336001600160a01b037f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795216146118265760405162461bcd60e51b8152600401610bc79061492f565b6113498282612d0e565b606060078054610b1d90614da3565b600061184a826125f6565b6118665760405162461bcd60e51b8152600401610bc790614563565b60008281526013602052604090205460ff166118945760405162461bcd60e51b8152600401610bc79061451a565b600082815260146020526040812054906118b060016007614d49565b90505b61122081600781106118d557634e487b7160e01b600052603260045260246000fd5b015482106118e6579150610b099050565b806118f081614d8c565b9150506118b3565b60128054610bf990614da3565b61190d612603565b6001600160a01b0316826001600160a01b0316141561193e5760405162461bcd60e51b8152600401610bc7906144e3565b806005600061194b612603565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561198f612603565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119c791906142b8565b60405180910390a35050565b600d81601281106119e357600080fd5b60109182820401919006600202915054906101000a900461ffff1681565b600080600060155442611a149190614d49565b90506000611a2862093a8062015180614cd9565b8210611a3d57506729a2241af62c0000611b9f565b62015180821015611b0a5760006201518083611a997f0000000000000000000000000000000000000000000000008ac7230489e800007f00000000000000000000000000000000000000000000021e19e0c9bab2400000614d49565b611aa39190614d2a565b611aad9190614d16565b9050611b027f0000000000000000000000000000000000000000000000008ac7230489e80000611afd837f00000000000000000000000000000000000000000000021e19e0c9bab2400000614d49565b612e20565b915050611b9f565b600062093a80611b1d6201518085614d49565b611b4f6729a2241af62c00007f0000000000000000000000000000000000000000000000008ac7230489e80000614d49565b611b599190614d2a565b611b639190614d16565b9050611b9b6729a2241af62c0000611afd837f0000000000000000000000000000000000000000000000008ac7230489e80000614d49565b9150505b6000807f000000000000000000000000c2c747e0f7004f9e8817db2ca4997657a77469286001600160a01b03166370a08231336040518263ffffffff1660e01b8152600401611bee9190614213565b60206040518083038186803b158015611c0657600080fd5b505afa158015611c1a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c3e9190613d30565b1115611c6757507f0000000000000000000000000000000000000000000000000de0b6b3a76400005b818110611c7c5750600093509150611c8e9050565b611c868183614d49565b945090925050505b9091565b611ca3611c9d612603565b8361299a565b611cbf5760405162461bcd60e51b8152600401610bc790614a43565b611ccb84848484612e37565b50505050565b6002600b541415611cf45760405162461bcd60e51b8152600401610bc790614c2f565b6002600b556000611d0483611426565b9050806001600160a01b0316611d18612603565b6001600160a01b031614611d3e5760405162461bcd60e51b8152600401610bc790614303565b611d4782612e6a565b1515600114611d685760405162461bcd60e51b8152600401610bc790614c66565b600083815261121e602052604090208054611d8290614da3565b159050611da15760405162461bcd60e51b8152600401610bc7906148f8565b611daa826110a5565b15611dc75760405162461bcd60e51b8152600401610bc790614b6b565b6040516323b872dd60e01b81526001600160a01b037f0000000000000000000000008a9c4dfe8b9d8962b31e4e16f8321c44d48e246e16906323b872dd90611e21903390309069152d02c7e14af680000090600401614227565b602060405180830381600087803b158015611e3b57600080fd5b505af1158015611e4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e739190613bd4565b50600083815261121e602090815260409091208351611e94928501906138a0565b50600161121f611ea3846127d2565b604051611eb09190613ec1565b908152604051908190036020018120805492151560ff1990931692909217909155630852cd8d60e31b81526001600160a01b037f0000000000000000000000008a9c4dfe8b9d8962b31e4e16f8321c44d48e246e16906342966c6890611f249069152d02c7e14af6800000906004016142c3565b602060405180830381600087803b158015611f3e57600080fd5b505af1158015611f52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f769190613bd4565b50827f7e632a301794d8d4a81ea7e20f37d1947158d36e66403af04ba85dd194b66f1b83604051611fa791906142f0565b60405180910390a250506001600b5550565b6060611fc4826125f6565b611fe05760405162461bcd60e51b8152600401610bc7906148a9565b60008281526013602052604090205460ff1661200e5760405162461bcd60e51b8152600401610bc79061451a565b60408051808201825260018152601160f91b602080830191909152600085815261121e90915291909120805461204390614da3565b15905061207c57600083815261121e6020908152604091829020915161206a9291016141eb565b60405160208183030381529060405290505b6060612086611468565b60008581526014602052604090205461209e906130b7565b6040516020016120af929190613edd565b60408051601f198184030181529181526000868152601460205220546010906120d7906130b7565b6040516020016120e8929190613f1c565b604051602081830303815290604052601161210a6121058861183f565b6130b7565b60405160200161211b929190613f38565b60408051601f198184030181529082905261213a9392916020016140f6565b60405160208183030381529060405290506121c0612157856130b7565b836121618761134d565b61216a88611115565b60126121786121058b611587565b604051602001612189929190613f6c565b60408051601f19818403018152908290526121ac95949392918890602001613fa2565b6040516020818303038152906040526131d2565b6040516020016121d091906141a6565b60405160208183030381529060405292505050919050565b60136020526000908152604090205460ff1681565b612205612603565b600a546001600160a01b039081169116146122325760405162461bcd60e51b8152600401610bc79061482b565b835161224590600f9060208701906138a0565b5082516122599060109060208601906138a0565b50815161226d9060119060208501906138a0565b5080516122819060129060208401906138a0565b5050505050565b60146020526000908152604090205481565b6729a2241af62c000081565b62093a8081565b6201518081565b61121e6020526000908152604090208054610bf990614da3565b6122d6612603565b600a546001600160a01b039081169116146123035760405162461bcd60e51b8152600401610bc79061482b565b61120061230e6110da565b1061232b5760405162461bcd60e51b8152600401610bc790614440565b60155461235c57428110156123525760405162461bcd60e51b8152600401610bc790614a02565b601581905561236f565b6016805460ff19811660ff909116151790555b50565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6123a8612603565b600a546001600160a01b039081169116146123d55760405162461bcd60e51b8152600401610bc79061482b565b6001600160a01b0381166123fb5760405162461bcd60e51b8152600401610bc79061438c565b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6002600b54141561247a5760405162461bcd60e51b8152600401610bc790614c2f565b6002600b5560175461249e5760405162461bcd60e51b8152600401610bc7906146b9565b60005b81518110156125d4576000601960008484815181106124d057634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020549050806000146125c15760006019600085858151811061252957634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555082828151811061257557634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166108fc601754836125979190614d49565b6040518115909202916000818181858888f193505050501580156125bf573d6000803e3d6000fd5b505b50806125cc81614dde565b9150506124a1565b50506001600b55565b6001600160e01b031981166301ffc9a760e01b14919050565b6000610b06600183613347565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061263c82611426565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611349828260405180602001604052806000815250613353565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952848660006040516020016126f6929190613eb3565b6040516020818303038152906040526040518463ffffffff1660e01b815260040161272393929190614288565b602060405180830381600087803b15801561273d57600080fd5b505af1158015612751573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127759190613bd4565b506000838152600c602052604081205461279490859083903090613386565b6000858152600c60205260409020549091506127b19060016133c0565b6000858152600c60205260409020556127ca84826133ef565b949350505050565b606060008290506000815167ffffffffffffffff81111561280357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561282d576020820181803683370190505b50905060005b82518110156113dd57604183828151811061285e57634e487b7160e01b600052603260045260246000fd5b016020015160f81c1080159061289c5750605a83828151811061289157634e487b7160e01b600052603260045260246000fd5b016020015160f81c11155b1561291a578281815181106128c157634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b60f81c60206128db9190614cf1565b60f81b8282815181106128fe57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061297d565b82818151811061293a57634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b82828151811061296557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053505b8061298781614dde565b915050612833565b6000610b0682613422565b60006129a5826125f6565b6129c15760405162461bcd60e51b8152600401610bc79061459a565b60006129cc83611426565b9050806001600160a01b0316846001600160a01b03161480612a075750836001600160a01b03166129fc84610ba0565b6001600160a01b0316145b806127ca57506127ca8185612372565b826001600160a01b0316612a2a82611426565b6001600160a01b031614612a505760405162461bcd60e51b8152600401610bc790614860565b6001600160a01b038216612a765760405162461bcd60e51b8152600401610bc79061449f565b612a81838383610d0d565b612a8c600082612607565b6001600160a01b0383166000908152602081905260409020612aae908261342d565b506001600160a01b0382166000908152602081905260409020612ad19082613439565b50612ade60018284613445565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000611238838361345b565b6000808080612b408686613493565b9097909650945050505050565b60006127ca8484846134be565b6000610b068261350a565b60008061121d54611200612b799190614d49565b90506000612b878285614df9565b90506000601d826112008110612bad57634e487b7160e01b600052603260045260246000fd5b015415612bdf57601d826112008110612bd657634e487b7160e01b600052603260045260246000fd5b01549050612be2565b50805b601d612bef600185614d49565b6112008110612c0e57634e487b7160e01b600052603260045260246000fd5b0154612c4857612c1f600184614d49565b601d836112008110612c4157634e487b7160e01b600052603260045260246000fd5b0155612c9b565b601d612c55600185614d49565b6112008110612c7457634e487b7160e01b600052603260045260246000fd5b0154601d836112008110612c9857634e487b7160e01b600052603260045260246000fd5b01555b61121d8054906000612cac83614dde565b909155509095945050505050565b60008281526014602090815260408083208490556013909152808220805460ff1916600117905551829184917fd6fda5967e0572335b5c3db99b76df1a17fc036c9e5c5e9eea0ef53919e3c8579190a35050565b6000828152601a6020908152604080832054815180830190925280825292918101612d3a846001614cd9565b9052905060005b60028110156122815760136000838360028110612d6e57634e487b7160e01b600052603260045260246000fd5b6020908102919091015182528101919091526040016000205460ff1615612da75760405162461bcd60e51b8152600401610bc790614ba2565b6000612ddd8583604051602001612dbf929190613eb3565b6040516020818303038152906040528051906020012060001c612b65565b9050612e0d838360028110612e0257634e487b7160e01b600052603260045260246000fd5b602002015182612cba565b5080612e1881614dde565b915050612d41565b600081831015612e305781611238565b5090919050565b612e42848484612a17565b612e4e8484848461350e565b611ccb5760405162461bcd60e51b8152600401610bc79061433a565b600080829050600181511015612e84576000915050610b09565b601981511115612e98576000915050610b09565b80600081518110612eb957634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916600160fd1b1415612ede576000915050610b09565b8060018251612eed9190614d49565b81518110612f0b57634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916600160fd1b1415612f30576000915050610b09565b600081600081518110612f5357634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b031916905060005b82518110156130ac576000838281518110612f9257634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b0319169050600160fd1b81148015612fc35750600160fd1b6001600160f81b03198416145b15612fd5576000945050505050610b09565b600360fc1b6001600160f81b03198216108015906130015750603960f81b6001600160f81b0319821611155b1580156130375750604160f81b6001600160f81b03198216108015906130355750602d60f91b6001600160f81b0319821611155b155b801561306c5750606160f81b6001600160f81b031982161080159061306a5750603d60f91b6001600160f81b0319821611155b155b80156130865750600160fd1b6001600160f81b0319821614155b15613098576000945050505050610b09565b9150806130a481614dde565b915050612f67565b506001949350505050565b6060816130dc57506040805180820190915260018152600360fc1b6020820152610b09565b8160005b811561310657806130f081614dde565b91506130ff9050600a83614d16565b91506130e0565b60008167ffffffffffffffff81111561312f57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613159576020820181803683370190505b5090505b84156127ca5761316e600183614d49565b915061317b600a86614df9565b613186906030614cd9565b60f81b8183815181106131a957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506131cb600a86614d16565b945061315d565b60608151600014156131f35750604080516020810190915260008152610b09565b6000604051806060016040528060408152602001614ed260409139905060006003845160026132229190614cd9565b61322c9190614d16565b613237906004614d2a565b90506000613246826020614cd9565b67ffffffffffffffff81111561326c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613296576020820181803683370190505b509050818152600183018586518101602084015b81831015613302576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f81168501518253506001016132aa565b60038951066001811461331c576002811461332d57613339565b613d3d60f01b600119830152613339565b603d60f81b6000198301525b509398975050505050505050565b60006112388383613626565b61335d8383613632565b61336a600084848461350e565b610d0d5760405162461bcd60e51b8152600401610bc79061433a565b60008484848460405160200161339f94939291906142cc565b60408051601f19818403018152919052805160209091012095945050505050565b6000806133cd8385614cd9565b9050838110156112385760405162461bcd60e51b8152600401610bc790614409565b60008282604051602001613404929190613eb3565b60405160208183030381529060405280519060200120905092915050565b6000610b0682612b5a565b600061123883836136f6565b60006112388383613813565b60006127ca84846001600160a01b03851661385d565b600082600001828154811061348057634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b600080806134a18585612b25565b600081815260029690960160205260409095205494959350505050565b6000828152600284016020526040812054801515806134e257506134e28585613626565b83906135015760405162461bcd60e51b8152600401610bc791906142f0565b50949350505050565b5490565b6000613522846001600160a01b031661387a565b1561361e57836001600160a01b031663150b7a0261353e612603565b8786866040518563ffffffff1660e01b8152600401613560949392919061424b565b602060405180830381600087803b15801561357a57600080fd5b505af19250505080156135aa575060408051601f3d908101601f191682019092526135a791810190613c45565b60015b613604573d8080156135d8576040519150601f19603f3d011682016040523d82523d6000602084013e6135dd565b606091505b5080516135fc5760405162461bcd60e51b8152600401610bc79061433a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506127ca565b5060016127ca565b60006112388383613880565b6001600160a01b0382166136585760405162461bcd60e51b8152600401610bc7906147aa565b613661816125f6565b1561367e5760405162461bcd60e51b8152600401610bc7906143d2565b61368a60008383610d0d565b6001600160a01b03821660009081526020819052604090206136ac9082613439565b506136b960018284613445565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818152600183016020526040812054801561380957600061371a600183614d49565b855490915060009061372e90600190614d49565b90508181146137af57600086600001828154811061375c57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508087600001848154811061378d57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b85548690806137ce57634e487b7160e01b600052603160045260246000fd5b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061123b565b600091505061123b565b600061381f8383613888565b6138555750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561123b565b50600061123b565b600082815260028401602052604081208290556127ca8484613439565b3b151590565b600061123883835b60009081526001919091016020526040902054151590565b8280546138ac90614da3565b90600052602060002090601f0160209004810192826138ce5760008555613914565b82601f106138e757805160ff1916838001178555613914565b82800160010185558215613914579182015b828111156139145782518255916020019190600101906138f9565b50613920929150613924565b5090565b5b808211156139205760008155600101613925565b600067ffffffffffffffff83111561395357613953614e39565b613966601f8401601f1916602001614ca3565b905082815283838301111561397a57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114610b0957600080fd5b600082601f8301126139b8578081fd5b61123883833560208501613939565b6000602082840312156139d8578081fd5b61123882613991565b600080604083850312156139f3578081fd5b6139fc83613991565b9150613a0a60208401613991565b90509250929050565b600080600060608486031215613a27578081fd5b613a3084613991565b9250613a3e60208501613991565b9150604084013590509250925092565b60008060008060808587031215613a63578081fd5b613a6c85613991565b9350613a7a60208601613991565b925060408501359150606085013567ffffffffffffffff811115613a9c578182fd5b8501601f81018713613aac578182fd5b613abb87823560208401613939565b91505092959194509250565b60008060408385031215613ad9578182fd5b613ae283613991565b91506020830135613af281614e4f565b809150509250929050565b60008060408385031215613b0f578182fd5b613b1883613991565b946020939093013593505050565b60006020808385031215613b38578182fd5b823567ffffffffffffffff80821115613b4f578384fd5b818501915085601f830112613b62578384fd5b813581811115613b7457613b74614e39565b8381029150613b84848301614ca3565b8181528481019084860184860187018a1015613b9e578788fd5b8795505b83861015613bc757613bb381613991565b835260019590950194918601918601613ba2565b5098975050505050505050565b600060208284031215613be5578081fd5b815161123881614e4f565b600060208284031215613c01578081fd5b5035919050565b60008060408385031215613c1a578182fd5b50508035926020909101359150565b600060208284031215613c3a578081fd5b813561123881614e5d565b600060208284031215613c56578081fd5b815161123881614e5d565b600060208284031215613c72578081fd5b813567ffffffffffffffff811115613c88578182fd5b6127ca848285016139a8565b60008060008060808587031215613ca9578182fd5b843567ffffffffffffffff80821115613cc0578384fd5b613ccc888389016139a8565b95506020870135915080821115613ce1578384fd5b613ced888389016139a8565b94506040870135915080821115613d02578384fd5b613d0e888389016139a8565b93506060870135915080821115613d23578283fd5b50613abb878288016139a8565b600060208284031215613d41578081fd5b5051919050565b60008060408385031215613d5a578182fd5b82359150602083013567ffffffffffffffff811115613d77578182fd5b613d83858286016139a8565b9150509250929050565b60008151808452613da5816020860160208601614d60565b601f01601f19169290920160200192915050565b60008151613dcb818560208601614d60565b9290920192915050565b805460009060028104600180831680613def57607f831692505b6020808410821415613e0f57634e487b7160e01b86526022600452602486fd5b818015613e235760018114613e3457613e61565b60ff19861689528489019650613e61565b613e3d88614ccd565b60005b86811015613e595781548b820152908501908301613e40565b505084890196505b50505050505092915050565b6222207d60e81b815260030190565b7f227d5d2c2022706879736963616c5f73706563696669636174696f6e735f757281526434911d101160d91b602082015260250190565b918252602082015260400190565b60008251613ed3818460208701614d60565b9190910192915050565b60008351613eef818460208801614d60565b835190830190613f03818360208801614d60565b642e6a70656760d81b9101908152600501949350505050565b6000613f288285613dd5565b8351613f03818360208801614d60565b6000613f448285613dd5565b8351613f54818360208801614d60565b631733b63160e11b9101908152600401949350505050565b6000613f788285613dd5565b8351613f88818360208801614d60565b65173539b7b71160d11b9101908152600601949350505050565b707b226e616d65223a20224d756e6469202360781b81528651600090613fcf816011850160208c01614d60565b875190830190613fe6816011840160208c01614d60565b7f2c20226465736372697074696f6e223a20225468652047726561747320436f6c601192909101918201527f6c656374696f6e222c202261747472696275746573223a205b7b20227472616960318201527f745f74797065223a2022457261222c202276616c7565223a20220000000000006051820152865161407081606b840160208b01614d60565b7f227d2c207b202274726169745f74797065223a202253756220457261222c2022606b9290910191820152683b30b63ab2911d101160b91b608b82015285516140c0816094840160208a01614d60565b6140e86140e36140dd6140d7609485870101613e7c565b89613db9565b87613db9565b613e6d565b9a9950505050505050505050565b6b16101134b6b0b3b2911d101160a11b8152835160009061411e81600c850160208901614d60565b7f222c2022696d6167655f617277656176655f757269223a202200000000000000600c91840191820152845161415b816025840160208901614d60565b7f222c202267616c6c6572795f676c625f757269223a202200000000000000000060259290910191820152835161419981603c840160208801614d60565b01603c0195945050505050565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000825282516141de81601d850160208701614d60565b91909101601d0192915050565b60006101d160f51b82526142026002830184613dd5565b601160f91b81526001019392505050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061427e90830184613d8d565b9695505050505050565b600060018060a01b0385168252836020830152606060408301526142af6060830184613d8d565b95945050505050565b901515815260200190565b90815260200190565b93845260208401929092526001600160a01b03166040830152606082015260800190565b6000602082526112386020830184613d8d565b6020808252601f908201527f4552433732313a2063616c6c6572206973206e6f7420746865206f776e657200604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252600e908201526d14d85b19481a185cc8195b99195960921b604082015260600190565b6020808252601f908201527f4e6f7420656e6f756768204c494e4b202d2066696c6c20636f6e747261637400604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b60208082526029908201527f4d65746164617461206973206e6f742061737369676e656420746f20746865206040820152681d1bdad95b881e595d60ba1b606082015260800190565b60208082526017908201527f546f6b656e20494420646f6573206e6f74206578697374000000000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b602080825260129082015271496e73756666696369656e742066756e647360701b604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526018908201527f536574746c656d656e74207072696365206e6f74207365740000000000000000604082015260600190565b60208082526018908201527f53616c652068617320616c726561647920737461727465640000000000000000604082015260600190565b6020808252605d908201527f41746c6561737420332064617973206d7573742070617373206166746572207360408201527f6574746c656d656e7420707269636520697320736574206f722061667465722060608201527f7468652067656e6572616c20637572766520706572696f6420656e6473000000608082015260a00190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526019908201527f546f6b656e20494420697320616c7265616479206e616d656400000000000000604082015260600190565b6020808252601f908201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00604082015260600190565b6020808252600a908201526914d85b1948195b99195960b21b604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b6020808252601b908201527f4d696e7465722063616e6e6f74206265206120636f6e74726163740000000000604082015260600190565b60208082526021908201527f73616c65537461727454696d657374616d7020697320696e20746865207061736040820152601d60fa1b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526043908201527f4f6e6c79206f6e6520746f6b656e206d696e7461626c6520706572206164647260408201527f65737320696620524553455256455f5052494345206973206e6f7420726561636060820152621a195960ea1b608082015260a00190565b60208082526018908201527f446576206d696e74696e6720616c726561647920646f6e650000000000000000604082015260600190565b6020808252601c908201527f446576206d696e74206e756d626572206d757374206265206576656e00000000604082015260600190565b60208082526018908201527f4e616d6520697320616c72656164792072657365727665640000000000000000604082015260600190565b60208082526019908201527f4d6574616461746120616c72656164792061737369676e656400000000000000604082015260600190565b6020808252600e908201526d14d85b19481a5cc81c185d5cd95960921b604082015260600190565b60208082526014908201527314d85b19481a185cc81b9bdd081cdd185c9d195960621b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601490820152734e6f7420612076616c6964206e6577206e616d6560601b604082015260600190565b61ffff91909116815260200190565b60405181810167ffffffffffffffff81118282101715614cc557614cc5614e39565b604052919050565b60009081526020902090565b60008219821115614cec57614cec614e0d565b500190565b600060ff821660ff84168060ff03821115614d0e57614d0e614e0d565b019392505050565b600082614d2557614d25614e23565b500490565b6000816000190483118215151615614d4457614d44614e0d565b500290565b600082821015614d5b57614d5b614e0d565b500390565b60005b83811015614d7b578181015183820152602001614d63565b83811115611ccb5750506000910152565b600081614d9b57614d9b614e0d565b506000190190565b600281046001821680614db757607f821691505b60208210811415614dd857634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415614df257614df2614e0d565b5060010190565b600082614e0857614e08614e23565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461236f57600080fd5b6001600160e01b03198116811461236f57600080fdfe697066733a2f2f516d56654a79614c68343469325673655048627748615154383953657458474b73745a726a783338736a4b47684c4552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220a4735d889f7dc443ee3d5920940b282920562ea29703358d20b7634f166e282664736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000021e19e0c9bab24000000000000000000000000000000000000000000000000000008ac7230489e800000000000000000000000000008a9c4dfe8b9d8962b31e4e16f8321c44d48e246e000000000000000000000000c2c747e0f7004f9e8817db2ca4997657a77469280000000000000000000000000000000000000000000000000de0b6b3a7640000000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca0000000000000000000000000000000000000000000000001bc16d674ec80000aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445000000000000000000000000000000000000000000000000000000000000000a546865204772656174730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054d554e4449000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): The Greats
Arg [1] : symbol (string): MUNDI
Arg [2] : steepCurveStartingPrice (uint256): 10000000000000000000000
Arg [3] : generalCurveStartingPrice (uint256): 10000000000000000000
Arg [4] : nctAddress (address): 0x8A9c4dfe8b9D8962B31e4e16F8321C44d48e246E
Arg [5] : hashmasksAddress (address): 0xC2C747E0F7004F9E8817Db2ca4997657a7746928
Arg [6] : hashmasksDiscount (uint256): 1000000000000000000
Arg [7] : vrfCoordinator (address): 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952
Arg [8] : linkToken (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA
Arg [9] : chainlinkFee (uint256): 2000000000000000000
Arg [10] : chainlinkKeyHash (bytes32): 0xaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
-----Encoded View---------------
15 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [1] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [2] : 00000000000000000000000000000000000000000000021e19e0c9bab2400000
Arg [3] : 0000000000000000000000000000000000000000000000008ac7230489e80000
Arg [4] : 0000000000000000000000008a9c4dfe8b9d8962b31e4e16f8321c44d48e246e
Arg [5] : 000000000000000000000000c2c747e0f7004f9e8817db2ca4997657a7746928
Arg [6] : 0000000000000000000000000000000000000000000000000de0b6b3a7640000
Arg [7] : 000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952
Arg [8] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [9] : 0000000000000000000000000000000000000000000000001bc16d674ec80000
Arg [10] : aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [11] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [12] : 5468652047726561747300000000000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [14] : 4d554e4449000000000000000000000000000000000000000000000000000000
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.