ERC-721
Overview
Max Total Supply
463 GG
Holders
105
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 GGLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GaucheGrimoire
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 100 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity =0.8.11; import "./GaucheBase.sol"; import "./LibGauche.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; // Price is .0777e per mint // Max mint is 10 // Price for a max mint is .777e // ,@ // #@@ @ @@ // @@ @ @@ @@@ @@% @@ .@@ @@, @@ @@@* @ // @@@ %@@@%%@@@ @@@@ @@@ @@% @@@ @ @@ @@ @@@@@@@@@@@ // @@@ @ @@& @@@, @ @@@ @@% @@ @@ @@ @@ // @@@ @@& @@@ @ @@@ @@% @@@ @@ @@ @@@ // @@@@@ @@( @@@& (@@@ @@@ @@@ %@@% @@@ @@@ @@ @@ @@@ @@@ // @@@ @ @ @ // @@. @@@ @ @@@ @@@ @@@ @@@@@@@@ @@ @ #@@@ @@ //&@@ @, @@@ @@@ @@@ @@@ @@@ @@@ @@ @@@@ @@ @@@ @@ @@@@@@@@@@@ // @@ @ @@@ @@@ @@@ @@@ @@@ @@@ @@ @@@@@@ @@ @@@ @@ @@ // @@ @@@ @@@ @@@ @@@ @@@ @@@ @@ @@. @@@ @@ @@ // (@@@*@@@@@ @@@@ @@@@ @@@*.@@@ @@@@ @@@@@@ @@@@ @@@@ @@@ @@@ // // [[ #### // [[[[ ######## // [[[[[ [[####### // %@#(#@@@@@(## [[[@@#(%@@@@@ // (([*.*[((@@@@#( ([[(([*.*[(#@@@* // @([* *[(@@@@(# ##@([. *((@@@@ // @((([(((@@@@@## ###[@((([(((@@@@* // %@@@@@@@@@(#######[[[@@@@@@@@@@ // [######[[[[[[[[[[[[[* // [[[[[[[[[[[[[[######### // %%%%%%%%%%%#([[[[[[[[[[[[[(############[[[[[[ // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%(#[[[[ // %%%%%@@@,,,@@@@,,%@@@*,,@@@@,,,,,%%%%[[[[[[[[[[[ // %%%%%#,,,@[,,,,,@,[[[[[@,,,,,,%%%#[[[ // [[%%%%%%%%,,[[[[[[[[[[[[[[%%%%%[[[[[[[#####([[[ // [[[(%%%%%%%%%%%%%%%%%%%%%%[[[[[[##### // .[[[[[#######((#%%%%%%([[[[[[[[[[[########### // [[[[[[[[[##############[[[[[[[[[[[[[[#############[[[ // [[[[[[[[[[[############[[[[[[[[[[[[[[[[###########[[[[[[[[ // [[[[[[[[[[[[[[######[[[[[[[[[[[[[[[[[[[[[(#####([[[[[[[[[[ // #####( [[[[[[ [[[[[[[[[[[#### ####([[[[[[[ *[[[[[######, // #### ## [ [[[[[[[[[[(##### # [[[[ ######## // [ [[[[[[[[[[####### ,[ #### // .[[[[[[[[[[######## // [[[[[[[[[[[[[####### // [(#####[[[[[[[[[[[[[ // .## #######[[[ [[[[[ // ## [[[ /// @title A contract that implements the Gauche protocol. /// @author Yuut - Soc#0903 /// @notice This contract implements minting of tokens and implementation of new projects for extending a single token into owning multiple generative works. contract GaucheGrimoire is GaucheBase { /// @notice This keeps the max level of the project constrained to our offsets overflow value. uint256 constant internal MAX_LEVEL = 255; /// @notice This event fires when a word is added to the registry, enabling it to express a new form of art. /// @param tokenId The token which leveled up. /// @param wordHash The hash of the word we inserted. /// @param offsetSlot The storage offset of the word in tokenHashes /// @param level The project that the word is associated with. event WordAdded(uint256 indexed tokenId, bytes32 wordHash, uint256 offsetSlot, uint256 level); /// @notice This event fires when a token is created, and when a token has its reality changed. /// @param tokenId The token which leveled up. /// @param hash The hash of the word we inserted. event HashUpdated(uint256 indexed tokenId, bytes32 hash); /// @notice This event fires when a project is added. /// @param projectId The project # which was added. /// @param project GaucheLevel(uint8 wordPrice, uint64 price, address artistAddress, string baseURI) event ProjectAdded(uint256 indexed projectId, GaucheLevel project); /// @notice This event fires when a level has its properties changed. /// @param projectId The project # which was changed /// @param project GaucheLevel(uint8 wordPrice, uint64 price, address artistAddress, string baseURI) event ProjectUpdated(uint256 indexed projectId, GaucheLevel project); /// @notice This event fires when token is burned. /// @param tokenId The token that was burned event TokenBurned(uint256 indexed tokenId); /// @notice This mapping persists all of the token hashes and any hashes they own as a result of leveling up. mapping(uint256 => bytes32) public tokenHashes; // Offset of tokenId + wordId. Tracked by spent total in gaucheToken /// @notice This array persists all of the projects added to the contract. GaucheLevel[] public gaucheLevels; /// @notice ERC721a does not allow burn to 0. This is a workaround because I don't wanna touch their contract. address constant internal burnAddress = 0x000000000000000000000000000000000000dEaD; /// @notice When instantiating the contract we need to update the first level (0) as everyone starts with that as their base identity. constructor( string memory _tokenName, string memory _tokenSymbol, string memory _baseURI, uint64 _pricePerToken, address _accessTokenAddress, address _artistAddress, address _developerAddress ) GaucheBase(_tokenName, _tokenSymbol, _pricePerToken, _accessTokenAddress, _artistAddress, _developerAddress) { gaucheLevels.push(GaucheLevel(1, _pricePerToken, artistAddress, "https://neophorion.art/api/projects/GaucheGrimoire/metadata/")); } /** * @dev Ensures that we arent inserting 0x0 as a hash. Users can pick their hash on submission. * The contract only provides verification for words that are keccak256(string). * No confirmation is done of what the hash is when inserted, because we want to keep it a secret only the user knows. */ modifier notNullWord(bytes32 _wordHash) { checkNotNullWord(_wordHash); _; } /** * @dev Cannot go above the max level. */ modifier mustBeBelowMaxLevel(uint256 _tokenId) { checkMaxLevel(_tokenId); _; } /** * @dev Tokens gotta exist to be queried, so we check that the token exists. */ modifier tokenExists(uint256 _tokenId) { checkTokenExists(_tokenId); _; } /** * @notice This is the way to retrieve project details after they are added to the blockchain. * This is useful for front ends that may want to display the project details live. * @param _projectId The project to get the details from * @return _project GaucheLevel(uint8 wordPrice, uint64 price, address artistAddress, string baseURI) */ function getProjectDetails(uint256 _projectId) public view returns (GaucheLevel memory _project) { require(_projectId < gaucheLevels.length, "GG: Must be in range of projects"); _project = gaucheLevels[_projectId]; return _project; } /** * @notice Current max level of art works ownable * @return A number 255 or less. */ function getProjectLevel() public view returns (uint256) { return gaucheLevels.length; } /** * @notice Adds a project to the registry. * @param _wordPrice The price in levels, if there is one. * @param _price The price in ETH to mint, if there is one. * @param _artistAddress The artists ethereum address * @param _tokenURI The tokenURI, without a tokenId */ function addProject(uint8 _wordPrice, uint64 _price, address _artistAddress, string memory _tokenURI) onlyOwner public { require(gaucheLevels.length < MAX_LEVEL, "GG: Max 255"); GaucheLevel memory project = GaucheLevel(_wordPrice, _price, _artistAddress, _tokenURI); emit ProjectAdded(gaucheLevels.length, project); gaucheLevels.push(project); } /** * @notice Allows an existing project to be updated. EX: Centralized host -> IPFS migration * @param _projectId The project to get the details from * @param _wordPrice The price in levels, if there is one. * @param _price The price in ETH to mint, if there is one. * @param _artistAddress The artists ethereum address * @param _tokenURI The tokenURI, without a tokenId */ function editProject(uint256 _projectId, uint8 _wordPrice, uint64 _price, address _artistAddress, string memory _tokenURI) onlyOwner public { require( _projectId < gaucheLevels.length, "GG: Must be in range"); GaucheLevel memory project = GaucheLevel(_wordPrice, _price, _artistAddress, _tokenURI); emit ProjectUpdated(_projectId, project); gaucheLevels[_projectId] = project; } /** * @notice Allows a token to insert a hash to gain a level and access to a new work of art * @param _tokenToChange The token we are adding state to * @param _wordHash The keccak256(word) hash generated off chain by the user. NO VALIDATION IS DONE HERE. */ function spendRealityChange(uint256 _tokenToChange, bytes32 _wordHash) onlyIfTokenOwner(_tokenToChange) isNotMode(SalesState.Finalized) notNullWord(_wordHash) mustBeBelowMaxLevel(_tokenToChange) public payable { uint256 tokenLevel = getLevel(_tokenToChange); GaucheLevel memory project = gaucheLevels[tokenLevel]; require(getFree(_tokenToChange) >= project.wordPrice, "GG: No free lvl"); require(msg.value >= project.price, "GG: Too cheap"); _changeReality(_tokenToChange, _wordHash, tokenLevel, project.wordPrice); } /** * @notice Allows a token to be burnt into another token, confering its free levels + 1 for its life * @param _tokenToBurn The token we are burning, moving its free levels +1 into the _tokenToChange. * @param _tokenToChange The token we are adding state to */ function burnIntoToken(uint256 _tokenToBurn, uint256 _tokenToChange) onlyIfTokenOwner(_tokenToBurn) onlyIfTokenOwner(_tokenToChange) mustBeBelowMaxLevel(_tokenToChange) isMode(SalesState.Maintenance) public { uint256 burntTokenFree = getFree(_tokenToBurn); uint256 tokenTotalFreeLevels = getFree(_tokenToChange); require(tokenTotalFreeLevels + burntTokenFree + 1 <= 255, "GG: Max 255"); bytes32 newHash = bytes32((uint256(tokenHashes[_tokenToChange]) + uint(0x01) + burntTokenFree)); tokenHashes[_tokenToChange] = newHash; emit HashUpdated(_tokenToChange, newHash); _burn(msg.sender, _tokenToBurn); } /** * @notice Allows for a tokens hash to be verified without revealing it on chain. * @param _tokenId The token we are checking * @param _level The level we want to verify against. * @param _word The plain text word we are submitting. NEVER call this from a contract transaction as it will leak your word! */ function verifyTruth(uint256 _tokenId, uint256 _level, string calldata _word) tokenExists(_tokenId) public view returns (bool answer) { require(_level < tokenLevel(_tokenId) && _level != 0, "GG: Word slot out of bounds"); bytes32 word = tokenHashes[getShifted(_tokenId) + _level]; bytes32 assertedTruth = keccak256(abi.encodePacked(_word)); return (word == assertedTruth); } /** * @notice Returns the completed token URI for base token. We use this even though we have a projectURI for entry 0 as its standard and only costs dev gas. * @param tokenId The token we are checking. * @return string tokenURI */ function tokenURI(uint256 tokenId) tokenExists(tokenId) public view virtual override returns (string memory) { GaucheLevel memory project = gaucheLevels[0]; require(bytes(project.baseURI).length != 0, "GG: No base URI"); return string(abi.encodePacked(project.baseURI, Strings.toString(tokenId))); } /** * @notice Returns the completed token URI for a project hosted in the contract * @param _tokenId The token we are checking. * @param _projectId The project we are checking. * @return tokenURI string with qualified url */ function tokenProjectURI(uint256 _tokenId, uint256 _projectId) tokenExists(_tokenId) public view returns (string memory tokenURI) { require(_projectId < gaucheLevels.length, "GG: Must be within project range"); require(tokenHashes[_tokenId] != 0, "GG: Token not found"); require(_projectId < getLevel(_tokenId) , "GG: Level too low"); tokenURI = string(abi.encodePacked(gaucheLevels[_projectId].baseURI, Strings.toString(_tokenId))); return tokenURI; } /** * @notice Returns the full decoded data as a struct for the token. This is the only way to get the state of a burned token. * @param _tokenId The token we are checking. * @return token GaucheToken( uint256 tokenId, uint256 free, uint256 spent, bool burned, bytes32[] ownedHashes ) */ function tokenFullData(uint256 _tokenId) public view returns (GaucheToken memory token) { return GaucheToken(_tokenId, getFree(_tokenId), getLevel(_tokenId), getBurned(_tokenId), getOwnedHashes(_tokenId)); } /** * @notice Returns the completed token URI for a project hosted in the contract * @param _tokenId The token we are checking. * @return bytes32 base tokenhash for the token */ function tokenHash(uint256 _tokenId) tokenExists(_tokenId) public view returns (bytes32) { return tokenHashes[_tokenId]; } /** * @notice Returns the completed token URI for a project hosted in the contract * @param _tokenId The token we are checking. * @param _level The token we are checking. * @return bytes32 project tokenHash for the token for a given project level. */ function tokenProjectHash(uint256 _tokenId, uint256 _level) tokenExists(_tokenId) public view returns (bytes32) { require(_level != 0, "GG: Level must be non-zero"); require(getLevel(_tokenId) > _level , "GG: Level too low"); return tokenHashes[getShifted(_tokenId) + _level]; } /** * @notice Checks if the token has been burnt. * @param _tokenId The token we are checking. * @return _burned bool. only true if the token has been burned */ function tokenBurned(uint256 _tokenId) public view returns (bool _burned) { return getBurned(_tokenId); } /** * @notice Gets the hashes for each level a token has achieved. * @param _tokenId The token we are checking. * @return ownedHashes bytes32[] Full list of hashes owned by the token */ function tokenHashesOwned(uint256 _tokenId) tokenExists(_tokenId) public view returns (bytes32[] memory ownedHashes) { return getOwnedHashes(_tokenId); } /** * @notice Gets the hashes for each level a token has achieved * @param _tokenId The token we are checking. * @return uint How many free levels the token has */ function tokenFreeChanges(uint256 _tokenId) tokenExists(_tokenId) public view returns (uint) { return getFree(_tokenId); } /** * @notice Gets the tokens current level * @param _tokenId The token we are checking. * @return uint How many levels the token has */ function tokenLevel(uint256 _tokenId) tokenExists(_tokenId) public view returns (uint) { return getLevel(_tokenId); } function getBurnedCount() public view returns(uint256) { return balanceOf(burnAddress); } function getTotalSupply() public view returns(uint256) { return totalSupply() - getBurnedCount(); } // We use this function to shift the tokenid 16bits to the left, since we use the last 8bits to store injected hashes // Example: Token 0x03e9 (1001) becomes 0x03e90000 . With 0x0000 storing the traits, and 0x0001+ storing new hashes // Overflow within this schema is impossible as there is 65535 entries between tokens in this schema and our max level is 255 function getShifted(uint256 _tokenId) internal view returns(uint256) { return (_tokenId << 16); } // Internal functions used for modifiers and such. function checkNotNullWord(bytes32 _wordHash) internal view { require(_wordHash != 0x0, "GG: Cannot insert a null word"); } function checkMaxLevel(uint256 _tokenId) internal view { require(getLevel(_tokenId) < gaucheLevels.length , "GG: Max level reached"); } function getFree(uint256 _tokenId) internal view returns(uint256) { uint256 free = uint256(tokenHashes[_tokenId]) & 0xFF; return free; } function getLevel(uint256 _tokenId) internal view returns(uint256) { uint256 level = uint256(tokenHashes[_tokenId]) & 0xFF00; return level >> 8; } function getBurned(uint256 _tokenId) internal view returns(bool) { return (ownerOf(_tokenId) == burnAddress ? true : false); } function getOwnedHashes(uint256 _tokenId) internal view returns(bytes32[] memory ownedHashes) { uint256 tokenShiftedId = getShifted(_tokenId); uint256 tokenLevel = getLevel(_tokenId); ownedHashes = new bytes32[](tokenLevel); ownedHashes[0] = tokenHashes[_tokenId]; for (uint256 i = 1; i < tokenLevel; i++) { ownedHashes[i] = tokenHashes[tokenShiftedId + i]; } return ownedHashes; } /** * @dev This goes with the modifier tokenExists */ function checkTokenExists(uint256 _tokenId) internal view returns (bool) { require(_exists(_tokenId) && ownerOf(_tokenId) != burnAddress, "GG: Token does not exist"); } function _mintToken(address _toAddress, uint256 _count, bool _batch) internal override returns (uint256[] memory _tokenIds) { uint256 currentSupply = totalSupply(); if (_batch) { _safeMint(_toAddress, _count); _tokenIds = new uint256[](_count); } else { _safeMint(_toAddress, 1); _tokenIds = new uint256[](1); } // This is ugly buts its kinda peak performance. We use the final two bytes of the hash to store free uses // Then we use the two bytes preceeding that for the level. // We also bitshift the tokenid so we can use the hashes mapping to store words for(uint256 i = 0; i < _count; i++) { uint256 tokenId = currentSupply + i; bytes32 level0hash = bytes32( ( uint256(keccak256(abi.encodePacked(block.number, _msgSender(), tokenId)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000000000000000) + uint(0x0100) + ( _batch ? uint(0x01) : _count) ) ); tokenHashes[tokenId] = level0hash; emit HashUpdated(tokenId, level0hash); // This is to inform frontend services that we have new properties in hash 0 _tokenIds[i] = tokenId; if(!_batch) { break; } } return _tokenIds; } function _changeReality(uint256 _tokenId, bytes32 _wordHash, uint256 _newSlot, uint256 _levelWordPrice) internal { uint256 wordSlot = getShifted(_tokenId) +_newSlot; // Store the incoming word tokenHashes[wordSlot] = _wordHash; bytes32 levelZeroHash = bytes32((((uint256(tokenHashes[_tokenId]) + uint(0x0100) )- _levelWordPrice))); tokenHashes[_tokenId] = levelZeroHash; emit WordAdded(_tokenId, _wordHash, _newSlot, wordSlot); emit HashUpdated(_tokenId, levelZeroHash); // This is to inform frontend services that we have new properties in hash 0 } function _burn(address owner, uint256 tokenId) internal virtual { transferFrom(owner, burnAddress, tokenId); emit TokenBurned(tokenId); } }
// SPDX-License-Identifier: MIT pragma solidity =0.8.11; import "./LibGauche.sol"; import "./ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /// @title A contract that implements the sale state machine /// @author Yuut - Soc#0903 /// @notice This contract implements the sale state machine. abstract contract GaucheBase is ERC721A, Ownable { /// @notice Tier 0 artist address. Yes we save this elsewhere, but this is used specifically for the public sale. address public artistAddress; /// @notice Developer address. Maintains the contract and allows for the dev to get paid. address public developerAddress; /// @notice Sale state machine. Holds all defs related to token sale. GaucheSale internal sale; /// @notice Controls the proof of use for Wassilike tokens. mapping(uint256 => bool) public accessTokenUsed; /// @notice Controls the contract URI string internal ContractURI = "https://neophorion.art/api/projects/GaucheGrimoire/contractURI"; /// @notice Sale status event for front end event listeners. /// @param state Controls the frontend sale state. event SaleStateChanged(SalesState state); /// @notice Creates a new instance of the contract and sets required params before initialization. constructor( string memory _tokenName, string memory _tokenSymbol, uint64 _pricePerToken, address _accessTokenAddress, address _artistAddress, address _developerAddress ) ERC721A(_tokenName, _tokenSymbol, 10, 3333) { sale = GaucheSale(SalesState.Closed, 0x0BB9, _pricePerToken, _accessTokenAddress); artistAddress = _artistAddress; developerAddress = _developerAddress; } /// @notice Confirms the caller owns the token /// @param _tokenId The token id to check ownership of modifier onlyIfTokenOwner(uint256 _tokenId) { _checkTokenOwner(_tokenId); _; } /// @notice Confirms the sale mode is in the matching state /// @param _mode Mode to Match modifier isMode(SalesState _mode) { _checkMode(_mode); _; } /// @notice Confirms the sale mode is NOT in the matching state /// @param _mode Mode to Match modifier isNotMode(SalesState _mode) { _checkNotMode(_mode); _; } /// @notice MultiMint to allow multiple tokens to be minted at the same time. Price is .0777e per count /// @param _count Total number of tokens to mint /// @return _tokenIds An array of tokenids, 1 entry per token minted. function multiMint(uint256 _count) public payable isMode(SalesState.Active) returns (uint256[] memory _tokenIds) { uint256 price = sale.pricePerToken * _count; require(msg.value >= price, "GG: Ether amount is under set price"); require(_count >= 1, "GG: Token count must be 1 or more"); require(totalSupply() < sale.maxPublicTokens, "GG: Max tokens reached"); return _mintToken(_msgSender(), _count, true); } /// @notice Single mint to allow high level tokens to be minted. Price is .0777e per count /// @param _count Total number of levels to mint with /// @return _tokenIds An array of tokenids, 1 entry per token minted. function mint(uint256 _count) public payable isMode(SalesState.Active) returns (uint256[] memory _tokenIds) { uint256 price = sale.pricePerToken * _count; require(msg.value >= price, "Ether amount is under set price"); require(_count >= 1, "GG: Min Lvl 1"); // Must buy atleast 1 level, since all tokens start at level 1 require(_count <= 255, "GG: Max 255 lvl"); // We stop at 254 because we have a max combined level of 255, as all tokens start at level 1 require(totalSupply() + _count < sale.maxPublicTokens, "GG: Max tokens reached"); return _mintToken(_msgSender(), _count, false); } /// @notice Single mint to allow level 3 tokens to be minted using a Wassilikes token /// @param _tokenId Wassilikes Token Id /// @return _tokenIds An array of tokenids, 1 entry per token minted. function mintAccessToken(uint256 _tokenId) isMode(SalesState.AccessToken) public payable returns (uint256[] memory _tokenIds) { require(msg.value >= sale.pricePerToken, "Ether amount is under set price"); IERC721 accessToken = IERC721(sale.accessTokenAddress); require(accessToken.ownerOf(_tokenId) == _msgSender(), "Access token not owned"); require(accessTokenUsed[_tokenId] == false, "Access token already used"); accessTokenUsed[_tokenId] = true; // Wassilikes holders get 1 mint with 3 levels. return _mintToken(_msgSender(), 3, false); } /// @notice Mints reserved tokens for artist + developer + team /// @return _tokenIds An array of tokenids, 1 entry per token minted. function reservedMint() isMode(SalesState.Closed) onlyOwner public returns (uint256[] memory _tokenIds) { require(totalSupply() < 20, "GG: Must be less than 20"); _mintToken(owner(), 1, false); // The owner takes token 0 to prevent it from ever destroying state _mintToken(artistAddress, 10, false); // Artist and dev get 10 levels to ensure all art can be minted later _mintToken(developerAddress, 10, false); _mintToken(owner(), 10, true); // 10 tokens are the max mint _mintToken(owner(), 7, true); // 7 tokens this wraps up the giveaway reservations } /// @notice Used for checking if a token has been used for claiming or not. /// @param _tokenId Wassilikes Token Id /// @return bool True if used, false if not function checkIfAccessTokenIsUsed(uint256 _tokenId) public view returns (bool) { return accessTokenUsed[_tokenId]; } /// @notice Grabs the sale state from the contract /// @return uint The current sale state function getSaleState() public view returns(uint) { return uint(sale.saleState); } /// @notice Grabs the contractURI /// @return string The current URI for the contract function contractURI() public view returns (string memory) { return ContractURI; } /// @notice Cha-Ching. Heres how we get paid! function withdrawFunds() public onlyOwner { uint256 share = address(this).balance / 20; uint256 artistPayout = share * 13; uint256 developerPayout = share * 7; if (artistPayout > 0) { (bool sent, bytes memory data) = payable(artistAddress).call{value: artistPayout}(""); require(sent, "Failed to send Ether"); } if (developerPayout > 0) { (bool sent, bytes memory data) = payable(developerAddress).call{value: developerPayout}(""); require(sent, "Failed to send Ether"); } } /// @notice Pushes the sale state forward. Can skip to any state but never go back. /// @param _state the integer of the state to move to function updateSaleState(SalesState _state) public onlyOwner { require(sale.saleState != SalesState.Finalized, "GB: Can't change state if Finalized"); require( _state > sale.saleState, "GB: Can't reverse state"); sale.saleState = _state; emit SaleStateChanged(_state); } /// @notice Changes the contractURI /// @param _contractURI The new contracturi function updateContractURI(string memory _contractURI) public onlyOwner { ContractURI = _contractURI; } /// @notice Changes the artists withdraw address /// @param _artistAddress The new address to withdraw to function updateArtistAddress(address _artistAddress) public { require(msg.sender == artistAddress, "GB: Only artist"); artistAddress = _artistAddress; } /// @notice Changes the developers withdraw address /// @param _developerAddress The new address to withdraw to function updateDeveloperAddress(address _developerAddress) public { require(msg.sender == developerAddress, "GB: Only dev"); developerAddress = _developerAddress; } function _checkMode(SalesState _mode) internal view { require(_mode == sale.saleState ,"GG: Contract must be in matching mode"); } function _checkNotMode(SalesState _mode) internal view { require(_mode != sale.saleState ,"GG: Contract must not be in matching mode"); } function _checkTokenOwner(uint256 _tokenId) internal view { require(ERC721A.ownerOf(_tokenId) == _msgSender(),"ERC721: Must own token to call this function"); } function _mintToken(address _toAddress, uint256 _count, bool _batch) internal virtual returns (uint256[] memory _tokenId); }
// SPDX-License-Identifier: MIT LICENSE pragma solidity =0.8.11; enum SalesState { Closed, Active, AccessToken, Maintenance, Finalized } struct GaucheSale { SalesState saleState; uint16 maxPublicTokens; uint64 pricePerToken; address accessTokenAddress; } struct GaucheToken { uint256 tokenId; uint256 free; uint256 spent; bool burned; bytes32[] ownedHashes; } struct GaucheLevel { uint8 wordPrice; uint64 price; address artistAddress; string baseURI; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity =0.8.11; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Assumes the number of issuable tokens (collection size) is capped and fits in a uint128. * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 0; uint256 internal immutable collectionSize; uint256 internal immutable maxBatchSize; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev * `maxBatchSize` refers to how much a minter can mint at a time. * `collectionSize_` refers to how many tokens are in the collection. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_, uint256 collectionSize_ ) { require( collectionSize_ > 0, "ERC721A: collection must have a nonzero supply" ); require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; collectionSize = collectionSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(collectionSize). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721A: balance query for the zero address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require( owner != address(0), "ERC721A: number minted query for the zero address" ); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721A: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - there must be `quantity` tokens remaining unminted in the total collection. * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require( isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved" ); require( prevOwnership.addr == from, "ERC721A: transfer from incorrect owner" ); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership( prevOwnership.addr, prevOwnership.startTimestamp ); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > collectionSize - 1) { endIndex = collectionSize - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership( ownership.addr, ownership.startTimestamp ); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721A: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 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 // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) 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); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 100 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_tokenName","type":"string"},{"internalType":"string","name":"_tokenSymbol","type":"string"},{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"uint64","name":"_pricePerToken","type":"uint64"},{"internalType":"address","name":"_accessTokenAddress","type":"address"},{"internalType":"address","name":"_artistAddress","type":"address"},{"internalType":"address","name":"_developerAddress","type":"address"}],"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":false,"internalType":"bytes32","name":"hash","type":"bytes32"}],"name":"HashUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"projectId","type":"uint256"},{"components":[{"internalType":"uint8","name":"wordPrice","type":"uint8"},{"internalType":"uint64","name":"price","type":"uint64"},{"internalType":"address","name":"artistAddress","type":"address"},{"internalType":"string","name":"baseURI","type":"string"}],"indexed":false,"internalType":"struct GaucheLevel","name":"project","type":"tuple"}],"name":"ProjectAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"projectId","type":"uint256"},{"components":[{"internalType":"uint8","name":"wordPrice","type":"uint8"},{"internalType":"uint64","name":"price","type":"uint64"},{"internalType":"address","name":"artistAddress","type":"address"},{"internalType":"string","name":"baseURI","type":"string"}],"indexed":false,"internalType":"struct GaucheLevel","name":"project","type":"tuple"}],"name":"ProjectUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum SalesState","name":"state","type":"uint8"}],"name":"SaleStateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TokenBurned","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"wordHash","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"offsetSlot","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"level","type":"uint256"}],"name":"WordAdded","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"accessTokenUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_wordPrice","type":"uint8"},{"internalType":"uint64","name":"_price","type":"uint64"},{"internalType":"address","name":"_artistAddress","type":"address"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"addProject","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"artistAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenToBurn","type":"uint256"},{"internalType":"uint256","name":"_tokenToChange","type":"uint256"}],"name":"burnIntoToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"checkIfAccessTokenIsUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"developerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint8","name":"_wordPrice","type":"uint8"},{"internalType":"uint64","name":"_price","type":"uint64"},{"internalType":"address","name":"_artistAddress","type":"address"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"editProject","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"gaucheLevels","outputs":[{"internalType":"uint8","name":"wordPrice","type":"uint8"},{"internalType":"uint64","name":"price","type":"uint64"},{"internalType":"address","name":"artistAddress","type":"address"},{"internalType":"string","name":"baseURI","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":"getBurnedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"getProjectDetails","outputs":[{"components":[{"internalType":"uint8","name":"wordPrice","type":"uint8"},{"internalType":"uint64","name":"price","type":"uint64"},{"internalType":"address","name":"artistAddress","type":"address"},{"internalType":"string","name":"baseURI","type":"string"}],"internalType":"struct GaucheLevel","name":"_project","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getProjectLevel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSaleState","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"mint","outputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"mintAccessToken","outputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"multiMint","outputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedMint","outputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenToChange","type":"uint256"},{"internalType":"bytes32","name":"_wordHash","type":"bytes32"}],"name":"spendRealityChange","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenBurned","outputs":[{"internalType":"bool","name":"_burned","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenFreeChanges","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenFullData","outputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"free","type":"uint256"},{"internalType":"uint256","name":"spent","type":"uint256"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"bytes32[]","name":"ownedHashes","type":"bytes32[]"}],"internalType":"struct GaucheToken","name":"token","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenHashes","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenHashesOwned","outputs":[{"internalType":"bytes32[]","name":"ownedHashes","type":"bytes32[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenLevel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_level","type":"uint256"}],"name":"tokenProjectHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"tokenProjectURI","outputs":[{"internalType":"string","name":"tokenURI","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_artistAddress","type":"address"}],"name":"updateArtistAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractURI","type":"string"}],"name":"updateContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_developerAddress","type":"address"}],"name":"updateDeveloperAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum SalesState","name":"_state","type":"uint8"}],"name":"updateSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_level","type":"uint256"},{"internalType":"string","name":"_word","type":"string"}],"name":"verifyTruth","outputs":[{"internalType":"bool","name":"answer","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6000808055600755610120604052603e60c08181529062004b2e60e03980516200003291600d9160209091019062000308565b503480156200004057600080fd5b5060405162004ba838038062004ba8833981016040819052620000639162000498565b8686858585858585600a610d056200007f565b60405180910390fd5b60008211620000e15760405162461bcd60e51b815260206004820152602760248201527f455243373231413a206d61782062617463682073697a65206d757374206265206044820152666e6f6e7a65726f60c81b606482015260840162000076565b8351620000f690600190602087019062000308565b5082516200010c90600290602086019062000308565b5060a0919091526080525062000124905033620002b6565b604080516080808201835260008252610bb96020808401919091526001600160401b039788168385018190526001600160a01b039788166060948501819052600b80546b010000000000000000000000909202600160581b600160f81b031963010000009094026001600160581b031990931692909217620bb9001792909216179055600980549688166001600160a01b03199788168117909155600a80549690981695909616949094179095558151948501825260018552948b1684830152838101929092528151808501909252603c808352600f96509294509284019290919062004b6c9083013990528154600181810184556000938452602093849020835160029093020180548585015160408601516001600160a01b0316690100000000000000000002600160481b600160e81b03196001600160401b03909216610100026001600160481b031990931660ff9096169590951791909117169290921782556060830151805193949293620002a69392850192919091019062000308565b50505050505050505050620005b8565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000316906200057b565b90600052602060002090601f0160209004810192826200033a576000855562000385565b82601f106200035557805160ff191683800117855562000385565b8280016001018555821562000385579182015b828111156200038557825182559160200191906001019062000368565b506200039392915062000397565b5090565b5b8082111562000393576000815560010162000398565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620003d657600080fd5b81516001600160401b0380821115620003f357620003f3620003ae565b604051601f8301601f19908116603f011681019082821181831017156200041e576200041e620003ae565b816040528381526020925086838588010111156200043b57600080fd5b600091505b838210156200045f578582018301518183018401529082019062000440565b83821115620004715760008385830101525b9695505050505050565b80516001600160a01b03811681146200049357600080fd5b919050565b600080600080600080600060e0888a031215620004b457600080fd5b87516001600160401b0380821115620004cc57600080fd5b620004da8b838c01620003c4565b985060208a0151915080821115620004f157600080fd5b620004ff8b838c01620003c4565b975060408a01519150808211156200051657600080fd5b620005248b838c01620003c4565b965060608a0151915080821682146200053c57600080fd5b5093506200054d608089016200047b565b92506200055d60a089016200047b565b91506200056d60c089016200047b565b905092959891949750929550565b600181811c908216806200059057607f821691505b60208210811415620005b257634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a051614545620005e9600039600081816132720152818161329c015261376d0152600050506145456000f3fe6080604052600436106102d55760003560e01c80637e5b1e241161017b578063c4e41b22116100d7578063e04c726a11610085578063e04c726a1461089a578063e8a3d485146108ca578063e985e9c5146108df578063ece162cf14610928578063ee67236014610958578063f2fde38b14610978578063fd8680781461099857600080fd5b8063c4e41b22146107cf578063c5654092146107e4578063c722d48514610804578063c87b56dd14610824578063caccd7f714610844578063d7224ba014610864578063d7eb3f3a1461087a57600080fd5b8063a386439711610134578063a386439714610712578063a808630414610732578063ab00492f14610747578063ab8ece8b1461075a578063b0fc77ff1461077a578063b784c9661461078f578063b88d4fde146107af57600080fd5b80637e5b1e24146106755780638da5cb5b1461069557806395d89b41146106aa5780639ff9baf8146106bf578063a0712d68146106df578063a22cb465146106f257600080fd5b80633e6b497f116102355780636c4d0eef116101e35780636c4d0eef146105915780636e04b2b0146105be57806370a08231146105d3578063715018a6146105f35780637432a38414610608578063782c9e70146106355780637c3495001461065557600080fd5b80633e6b497f1461049757806342842e0e146104c45780634f6ccce7146104e45780635b2c3c73146105045780635f8439e3146105245780636352211e14610551578063693be4891461057157600080fd5b806318160ddd1161029257806318160ddd146103be57806323b872dd146103dd57806324600fc3146103fd57806325bdb2a8146104125780632f745c59146104275780632f7d17bf1461044757806335cb03e71461046757600080fd5b806301ffc9a7146102da57806306fdde031461030f578063081812fc14610331578063095ea7b3146103695780630989fbe91461038b5780630e9afb40146103ab575b600080fd5b3480156102e657600080fd5b506102fa6102f5366004613a30565b6109b8565b60405190151581526020015b60405180910390f35b34801561031b57600080fd5b50610324610a25565b6040516103069190613aa5565b34801561033d57600080fd5b5061035161034c366004613ab8565b610ab7565b6040516001600160a01b039091168152602001610306565b34801561037557600080fd5b50610389610384366004613ae6565b610b47565b005b34801561039757600080fd5b506103896103a6366004613be5565b610c5b565b6103896103b9366004613c55565b610df8565b3480156103ca57600080fd5b506000545b604051908152602001610306565b3480156103e957600080fd5b506103896103f8366004613c77565b611003565b34801561040957600080fd5b5061038961100e565b34801561041e57600080fd5b506103cf611170565b34801561043357600080fd5b506103cf610442366004613ae6565b61118f565b61045a610455366004613ab8565b6112fc565b6040516103069190613cb8565b34801561047357600080fd5b50610487610482366004613ab8565b61149c565b6040516103069493929190613cfc565b3480156104a357600080fd5b506104b76104b2366004613ab8565b611579565b6040516103069190613d7d565b3480156104d057600080fd5b506103896104df366004613c77565b61161e565b3480156104f057600080fd5b506103cf6104ff366004613ab8565b611639565b34801561051057600080fd5b5061038961051f366004613dc2565b61169b565b34801561053057600080fd5b5061054461053f366004613ab8565b611823565b6040516103069190613e3c565b34801561055d57600080fd5b5061035161056c366004613ab8565b61199b565b34801561057d57600080fd5b506102fa61058c366004613ab8565b6119ad565b34801561059d57600080fd5b506105b16105ac366004613ab8565b6119b8565b6040516103069190613e89565b3480156105ca57600080fd5b5061045a6119d5565b3480156105df57600080fd5b506103cf6105ee366004613e9c565b611add565b3480156105ff57600080fd5b50610389611b6e565b34801561061457600080fd5b506103cf610623366004613ab8565b600e6020526000908152604090205481565b34801561064157600080fd5b506103cf610650366004613c55565b611ba9565b34801561066157600080fd5b506103cf610670366004613ab8565b611c6e565b34801561068157600080fd5b50610389610690366004613eb9565b611c92565b3480156106a157600080fd5b50610351611cd8565b3480156106b657600080fd5b50610324611ce7565b3480156106cb57600080fd5b506103896106da366004613eed565b611cf6565b61045a6106ed366004613ab8565b611e66565b3480156106fe57600080fd5b5061038961070d366004613f0e565b611f84565b34801561071e57600080fd5b506103cf61072d366004613ab8565b612049565b34801561073e57600080fd5b50600f546103cf565b61045a610755366004613ab8565b61206a565b34801561076657600080fd5b506103cf610775366004613ab8565b612190565b34801561078657600080fd5b506103cf6121b9565b34801561079b57600080fd5b506103896107aa366004613e9c565b6121c6565b3480156107bb57600080fd5b506103896107ca366004613f4c565b612234565b3480156107db57600080fd5b506103cf61226d565b3480156107f057600080fd5b506103246107ff366004613c55565b612284565b34801561081057600080fd5b5061038961081f366004613c55565b6123c3565b34801561083057600080fd5b5061032461083f366004613ab8565b6124ae565b34801561085057600080fd5b50600a54610351906001600160a01b031681565b34801561087057600080fd5b506103cf60075481565b34801561088657600080fd5b50600954610351906001600160a01b031681565b3480156108a657600080fd5b506102fa6108b5366004613ab8565b6000908152600c602052604090205460ff1690565b3480156108d657600080fd5b5061032461263c565b3480156108eb57600080fd5b506102fa6108fa366004613fbf565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561093457600080fd5b506102fa610943366004613ab8565b600c6020526000908152604090205460ff1681565b34801561096457600080fd5b50610389610973366004613e9c565b61264b565b34801561098457600080fd5b50610389610993366004613e9c565b6126b6565b3480156109a457600080fd5b506102fa6109b3366004613fed565b612756565b60006001600160e01b031982166380ac58cd60e01b14806109e957506001600160e01b03198216635b5e139f60e01b145b80610a0457506001600160e01b0319821663780e9d6360e01b145b80610a1f57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060018054610a349061406c565b80601f0160208091040260200160405190810160405280929190818152602001828054610a609061406c565b8015610aad5780601f10610a8257610100808354040283529160200191610aad565b820191906000526020600020905b815481529060010190602001808311610a9057829003601f168201915b5050505050905090565b6000610ac4826000541190565b610b2b5760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610b528261199b565b9050806001600160a01b0316836001600160a01b03161415610bc15760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610b22565b336001600160a01b0382161480610bdd5750610bdd81336108fa565b610c4b5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f6044820152781ddb995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b603a1b6064820152608401610b22565b610c5683838361282d565b505050565b33610c64611cd8565b6001600160a01b031614610c8a5760405162461bcd60e51b8152600401610b22906140a1565b600f5460ff11610cac5760405162461bcd60e51b8152600401610b22906140d6565b6040805160808101825260ff861681526001600160401b03851660208201526001600160a01b0384168183015260608101839052600f5491519091907f6b46711bdb3aab9e4bdaaf9503468a3df7b1ec7790b8a4ce7d031647c1e51dfd90610d15908490613e3c565b60405180910390a2600f8054600181018255600091909152815160029091027f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8028101805460208086015160408701516001600160a01b0316600160481b02600160481b600160e81b03196001600160401b039092166101000268ffffffffffffffffff1990941660ff9097169690961792909217919091169390931781556060840151805185949293610dee937f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac80390910192019061398a565b5050505050505050565b81610e0281612889565b6004610e0d816128fe565b82610e1781612987565b84610e21816129d4565b6000610e3f876000908152600e602052604090205460081c60ff1690565b90506000600f8281548110610e5657610e566140fb565b600091825260209182902060408051608081018252600293909302909101805460ff8116845261010081046001600160401b031694840194909452600160481b9093046001600160a01b031690820152600182018054919291606084019190610ebe9061406c565b80601f0160208091040260200160405190810160405280929190818152602001828054610eea9061406c565b8015610f375780601f10610f0c57610100808354040283529160200191610f37565b820191906000526020600020905b815481529060010190602001808311610f1a57829003601f168201915b5050505050815250509050806000015160ff16610f63896000908152600e602052604090205460ff1690565b1015610fa35760405162461bcd60e51b815260206004820152600f60248201526e11d1ce88139bc8199c9959481b1d9b608a1b6044820152606401610b22565b80602001516001600160401b0316341015610ff05760405162461bcd60e51b815260206004820152600d60248201526c047473a20546f6f20636865617609c1b6044820152606401610b22565b610dee888884846000015160ff16612a38565b610c56838383612b0c565b33611017611cd8565b6001600160a01b03161461103d5760405162461bcd60e51b8152600401610b22906140a1565b600061104a60144761413d565b9050600061105982600d614151565b90506000611068836007614151565b905081156110eb5760095460405160009182916001600160a01b039091169085908381818185875af1925050503d80600081146110c1576040519150601f19603f3d011682016040523d82523d6000602084013e6110c6565b606091505b5091509150816110e85760405162461bcd60e51b8152600401610b2290614170565b50505b8015610c5657600a5460405160009182916001600160a01b039091169084908381818185875af1925050503d8060008114611142576040519150601f19603f3d011682016040523d82523d6000602084013e611147565b606091505b5091509150816111695760405162461bcd60e51b8152600401610b2290614170565b5050505050565b600b5460009060ff16600481111561118a5761118a61419e565b905090565b600061119a83611add565b82106111f35760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610b22565b600080549080805b8381101561129c576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b0316918301919091521561124d57805192505b876001600160a01b0316836001600160a01b03161415611289578684141561127b57509350610a1f92505050565b83611285816141b4565b9450505b5080611294816141b4565b9150506111fb565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608401610b22565b6060600261130981612e92565b600b54630100000090046001600160401b031634101561133b5760405162461bcd60e51b8152600401610b22906141cf565b600b54600160581b90046001600160a01b0316336040516331a9108f60e11b8152600481018690526001600160a01b0391821691831690636352211e90602401602060405180830381865afa158015611398573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113bc9190614206565b6001600160a01b03161461140b5760405162461bcd60e51b81526020600482015260166024820152751058d8d95cdcc81d1bdad95b881b9bdd081bdddb995960521b6044820152606401610b22565b6000848152600c602052604090205460ff16156114665760405162461bcd60e51b81526020600482015260196024820152781058d8d95cdcc81d1bdad95b88185b1c9958591e481d5cd959603a1b6044820152606401610b22565b6000848152600c60205260409020805460ff191660011790556114926114893390565b60036000612f16565b9250505b50919050565b600f81815481106114ac57600080fd5b60009182526020909120600290910201805460018201805460ff8316945061010083046001600160401b031693600160481b9093046001600160a01b03169291906114f69061406c565b80601f01602080910402602001604051908101604052809291908181526020018280546115229061406c565b801561156f5780601f106115445761010080835404028352916020019161156f565b820191906000526020600020905b81548152906001019060200180831161155257829003601f168201915b5050505050905084565b6115ad6040518060a00160405280600081526020016000815260200160008152602001600015158152602001606081525090565b6040518060a001604052808381526020016115d7846000908152600e602052604090205460ff1690565b81526020016115f8846000908152600e602052604090205460081c60ff1690565b8152602001611606846130c5565b15158152602001611616846130f0565b905292915050565b610c5683838360405180602001604052806000815250612234565b6000805482106116975760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610b22565b5090565b336116a4611cd8565b6001600160a01b0316146116ca5760405162461bcd60e51b8152600401610b22906140a1565b600f5485106117125760405162461bcd60e51b815260206004820152601460248201527347473a204d75737420626520696e2072616e676560601b6044820152606401610b22565b6040805160808101825260ff861681526001600160401b03851660208201526001600160a01b0384168183015260608101839052905186907ff6b4b006cc00cf288d8d45d054d8da0a8e3848083d0e4d8d4dcc43978bf1455290611777908490613e3c565b60405180910390a280600f8781548110611793576117936140fb565b6000918252602091829020835160029092020180548484015160408601516001600160a01b0316600160481b02600160481b600160e81b03196001600160401b039092166101000268ffffffffffffffffff1990931660ff9095169490941791909117169190911781556060830151805191926118189260018501929091019061398a565b505050505050505050565b6040805160808101825260008082526020820181905291810191909152606080820152600f5482106118975760405162461bcd60e51b815260206004820181905260248201527f47473a204d75737420626520696e2072616e6765206f662070726f6a656374736044820152606401610b22565b600f82815481106118aa576118aa6140fb565b600091825260209182902060408051608081018252600293909302909101805460ff8116845261010081046001600160401b031694840194909452600160481b9093046001600160a01b0316908201526001820180549192916060840191906119129061406c565b80601f016020809104026020016040519081016040528092919081815260200182805461193e9061406c565b801561198b5780601f106119605761010080835404028352916020019161198b565b820191906000526020600020905b81548152906001019060200180831161196e57829003601f168201915b5050505050815250509050919050565b60006119a6826131f0565b5192915050565b6000610a1f826130c5565b6060816119c481613399565b506119ce836130f0565b9392505050565b606060006119e281612e92565b336119eb611cd8565b6001600160a01b031614611a115760405162461bcd60e51b8152600401610b22906140a1565b6014611a1c60005490565b10611a645760405162461bcd60e51b8152602060048201526018602482015277047473a204d757374206265206c657373207468616e2032360441b6044820152606401610b22565b611a78611a6f611cd8565b60016000612f16565b50600954611a92906001600160a01b0316600a6000612f16565b50600a8054611aae916001600160a01b03909116906000612f16565b50611ac3611aba611cd8565b600a6001612f16565b50611ad8611acf611cd8565b60076001612f16565b505090565b60006001600160a01b038216611b495760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610b22565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b33611b77611cd8565b6001600160a01b031614611b9d5760405162461bcd60e51b8152600401610b22906140a1565b611ba76000613411565b565b600082611bb581613399565b5082611c035760405162461bcd60e51b815260206004820152601a60248201527f47473a204c6576656c206d757374206265206e6f6e2d7a65726f0000000000006044820152606401610b22565b82611c20856000908152600e602052604090205460081c60ff1690565b11611c3d5760405162461bcd60e51b8152600401610b2290614223565b600e600084611c4c8760101b90565b611c56919061424e565b81526020019081526020016000205491505092915050565b600081611c7a81613399565b506000838152600e602052604090205460ff166119ce565b33611c9b611cd8565b6001600160a01b031614611cc15760405162461bcd60e51b8152600401610b22906140a1565b8051611cd490600d90602084019061398a565b5050565b6008546001600160a01b031690565b606060028054610a349061406c565b33611cff611cd8565b6001600160a01b031614611d255760405162461bcd60e51b8152600401610b22906140a1565b6004600b5460ff166004811115611d3e57611d3e61419e565b1415611d985760405162461bcd60e51b815260206004820152602360248201527f47423a2043616e2774206368616e67652073746174652069662046696e616c696044820152621e995960ea1b6064820152608401610b22565b600b5460ff166004811115611daf57611daf61419e565b816004811115611dc157611dc161419e565b11611e085760405162461bcd60e51b815260206004820152601760248201527647423a2043616e2774207265766572736520737461746560481b6044820152606401610b22565b600b805482919060ff19166001836004811115611e2757611e2761419e565b02179055507f92a17b827ee9d42ea9454bb4ca941a1800870e6d01c0842d09ba23ccc0190ee181604051611e5b9190614266565b60405180910390a150565b60606001611e7381612e92565b600b54600090611e94908590630100000090046001600160401b0316614151565b905080341015611eb65760405162461bcd60e51b8152600401610b22906141cf565b6001841015611ef75760405162461bcd60e51b815260206004820152600d60248201526c47473a204d696e204c766c203160981b6044820152606401610b22565b60ff841115611f3a5760405162461bcd60e51b815260206004820152600f60248201526e11d1ce8813585e080c8d4d481b1d9b608a1b6044820152606401610b22565b600b5461ffff6101009091041684611f5160005490565b611f5b919061424e565b10611f785760405162461bcd60e51b8152600401610b229061428e565b61149233856000612f16565b6001600160a01b038216331415611fdd5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610b22565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60008161205581613399565b5050506000908152600e602052604090205490565b6060600161207781612e92565b600b54600090612098908590630100000090046001600160401b0316614151565b9050803410156120f65760405162461bcd60e51b815260206004820152602360248201527f47473a20457468657220616d6f756e7420697320756e6465722073657420707260448201526269636560e81b6064820152608401610b22565b60018410156121515760405162461bcd60e51b815260206004820152602160248201527f47473a20546f6b656e20636f756e74206d7573742062652031206f72206d6f726044820152606560f81b6064820152608401610b22565b600b5461ffff6101009091041661216760005490565b106121845760405162461bcd60e51b8152600401610b229061428e565b61149233856001612f16565b60008161219c81613399565b506119ce836000908152600e602052604090205460081c60ff1690565b600061118a61dead611add565b6009546001600160a01b031633146122125760405162461bcd60e51b815260206004820152600f60248201526e11d08e8813db9b1e48185c9d1a5cdd608a1b6044820152606401610b22565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b61223f848484612b0c565b61224b84848484613463565b6122675760405162461bcd60e51b8152600401610b22906142be565b50505050565b60006122776121b9565b60005461118a9190614311565b60608261229081613399565b50600f5483106122e25760405162461bcd60e51b815260206004820181905260248201527f47473a204d7573742062652077697468696e2070726f6a6563742072616e67656044820152606401610b22565b6000848152600e60205260409020546123335760405162461bcd60e51b815260206004820152601360248201527211d1ce88151bdad95b881b9bdd08199bdd5b99606a1b6044820152606401610b22565b61234f846000908152600e602052604090205460081c60ff1690565b831061236d5760405162461bcd60e51b8152600401610b2290614223565b600f8381548110612380576123806140fb565b906000526020600020906002020160010161239a85613562565b6040516020016123ab929190614344565b60405160208183030381529060405291505092915050565b816123cd81612889565b816123d781612889565b826123e1816129d4565b60036123ec81612e92565b6000868152600e60205260408082205487835291205460ff9182169190811690612416838361424e565b61242190600161424e565b111561243f5760405162461bcd60e51b8152600401610b22906140d6565b6000878152600e6020526040812054839061245c9060019061424e565b612466919061424e565b6000898152600e6020526040908190208290555190915088906000805160206144f08339815191529061249c9084815260200190565b60405180910390a2611818338a61365f565b6060816124ba81613399565b506000600f6000815481106124d1576124d16140fb565b600091825260209182902060408051608081018252600293909302909101805460ff8116845261010081046001600160401b031694840194909452600160481b9093046001600160a01b0316908201526001820180549192916060840191906125399061406c565b80601f01602080910402602001604051908101604052809291908181526020018280546125659061406c565b80156125b25780601f10612587576101008083540402835291602001916125b2565b820191906000526020600020905b81548152906001019060200180831161259557829003601f168201915b5050505050815250509050806060015151600014156126055760405162461bcd60e51b815260206004820152600f60248201526e47473a204e6f20626173652055524960881b6044820152606401610b22565b806060015161261385613562565b6040516020016126249291906143eb565b60405160208183030381529060405292505050919050565b6060600d8054610a349061406c565b600a546001600160a01b031633146126945760405162461bcd60e51b815260206004820152600c60248201526b23a11d1027b7363c903232bb60a11b6044820152606401610b22565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b336126bf611cd8565b6001600160a01b0316146126e55760405162461bcd60e51b8152600401610b22906140a1565b6001600160a01b03811661274a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b22565b61275381613411565b50565b60008461276281613399565b5061276c86612190565b8510801561277957508415155b6127c55760405162461bcd60e51b815260206004820152601b60248201527f47473a20576f726420736c6f74206f7574206f6620626f756e647300000000006044820152606401610b22565b6000600e6000876127d68a60101b90565b6127e0919061424e565b81526020019081526020016000205490506000858560405160200161280692919061441a565b60408051601f19818403018152919052805160209091012091909114979650505050505050565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b336128938261199b565b6001600160a01b0316146127535760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a204d757374206f776e20746f6b656e20746f2063616c6c207460448201526b3434b990333ab731ba34b7b760a11b6064820152608401610b22565b600b5460ff1660048111156129155761291561419e565b8160048111156129275761292761419e565b14156127535760405162461bcd60e51b815260206004820152602960248201527f47473a20436f6e7472616374206d757374206e6f7420626520696e206d61746360448201526868696e67206d6f646560b81b6064820152608401610b22565b806127535760405162461bcd60e51b815260206004820152601d60248201527f47473a2043616e6e6f7420696e736572742061206e756c6c20776f72640000006044820152606401610b22565b600f546129f3826000908152600e602052604090205460081c60ff1690565b106127535760405162461bcd60e51b815260206004820152601560248201527411d1ce8813585e081b195d995b081c995858da1959605a1b6044820152606401610b22565b600082612a458660101b90565b612a4f919061424e565b6000818152600e6020526040808220879055878252812054919250908390612a7a906101009061424e565b612a849190614311565b6000878152600e6020908152604091829020839055815188815290810187905290810184905290915086907f1f2cb1ae46d38c39be558669927c3bcfd8ad43710257a79f8817163502a017309060600160405180910390a2856000805160206144f083398151915282604051612afc91815260200190565b60405180910390a2505050505050565b6000612b17826131f0565b80519091506000906001600160a01b0316336001600160a01b03161480612b4e575033612b4384610ab7565b6001600160a01b0316145b80612b6057508151612b6090336108fa565b905080612bca5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610b22565b846001600160a01b031682600001516001600160a01b031614612c3e5760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608401610b22565b6001600160a01b038416612ca25760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610b22565b612cb2600084846000015161282d565b6001600160a01b0385166000908152600460205260408120805460019290612ce49084906001600160801b031661442a565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092612d3091859116614452565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380871682526001600160401b03428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055612db784600161424e565b6000818152600360205260409020549091506001600160a01b0316612e4857612de1816000541190565b15612e485760408051808201825284516001600160a01b0390811682526020808701516001600160401b039081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b600b5460ff166004811115612ea957612ea961419e565b816004811115612ebb57612ebb61419e565b146127535760405162461bcd60e51b815260206004820152602560248201527f47473a20436f6e7472616374206d75737420626520696e206d61746368696e67604482015264206d6f646560d81b6064820152608401610b22565b60606000612f2360005490565b90508215612f7e57612f35858561369b565b836001600160401b03811115612f4d57612f4d613b3a565b604051908082528060200260200182016040528015612f76578160200160208202803683370190505b509150612faa565b612f8985600161369b565b60408051600180825281830190925290602080830190803683370190505091505b60005b848110156130bc576000612fc1828461424e565b9050600085612fd05786612fd3565b60015b604080514360208201526bffffffffffffffffffffffff193360601b1691810191909152605481018490526101009060740160408051601f198184030181529190528051602090910120613034919069ffffffffffffffffffff191661424e565b61303e919061424e565b6000838152600e6020526040908190208290555190915082906000805160206144f0833981519152906130749084815260200190565b60405180910390a28185848151811061308f5761308f6140fb565b602002602001018181525050856130a75750506130bc565b505080806130b4906141b4565b915050612fad565b50509392505050565b600061dead6130d38361199b565b6001600160a01b0316146130e8576000610a1f565b600192915050565b606060006130fe8360101b90565b9050600061311e846000908152600e602052604090205460081c60ff1690565b9050806001600160401b0381111561313857613138613b3a565b604051908082528060200260200182016040528015613161578160200160208202803683370190505b506000858152600e6020526040812054825192955091859190613186576131866140fb565b602090810291909101015260015b818110156131e857600e60006131aa838661424e565b8152602001908152602001600020548482815181106131cb576131cb6140fb565b6020908102919091010152806131e0816141b4565b915050613194565b505050919050565b604080518082019091526000808252602082015261320f826000541190565b61326e5760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610b22565b60007f000000000000000000000000000000000000000000000000000000000000000083106132cf576132c17f000000000000000000000000000000000000000000000000000000000000000084614311565b6132cc90600161424e565b90505b825b818110613338576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b0316918301919091521561332557949350505050565b508061333081614474565b9150506132d1565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b6064820152608401610b22565b60006133a6826000541190565b80156133c5575061dead6133b98361199b565b6001600160a01b031614155b61340c5760405162461bcd60e51b815260206004820152601860248201527711d1ce88151bdad95b88191bd95cc81b9bdd08195e1a5cdd60421b6044820152606401610b22565b919050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b1561355657604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906134a790339089908890889060040161448b565b6020604051808303816000875af19250505080156134e2575060408051601f3d908101601f191682019092526134df918101906144be565b60015b61353c573d808015613510576040519150601f19603f3d011682016040523d82523d6000602084013e613515565b606091505b5080516135345760405162461bcd60e51b8152600401610b22906142be565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061355a565b5060015b949350505050565b6060816135865750506040805180820190915260018152600360fc1b602082015290565b8160005b81156135b0578061359a816141b4565b91506135a99050600a8361413d565b915061358a565b6000816001600160401b038111156135ca576135ca613b3a565b6040519080825280601f01601f1916602001820160405280156135f4576020820181803683370190505b5090505b841561355a57613609600183614311565b9150613616600a866144db565b61362190603061424e565b60f81b818381518110613636576136366140fb565b60200101906001600160f81b031916908160001a905350613658600a8661413d565b94506135f8565b61366c8261dead83611003565b60405181907f0c526103b8f47af5516191d0c89a598755bd00faa211a3cb52e4c2cc782f7fe290600090a25050565b611cd48282604051806020016040528060008152506000546001600160a01b0384166137135760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610b22565b61371e816000541190565b1561376b5760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610b22565b7f00000000000000000000000000000000000000000000000000000000000000008311156137e65760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b6064820152608401610b22565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b9091041691810191909152815180830190925280519091908190613842908790614452565b6001600160801b031681526020018583602001516138609190614452565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b029790961696909617909455845180860186529182526001600160401b034281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b8581101561397f5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46139436000888488613463565b61395f5760405162461bcd60e51b8152600401610b22906142be565b81613969816141b4565b9250508080613977906141b4565b9150506138f6565b506000819055612e8a565b8280546139969061406c565b90600052602060002090601f0160209004810192826139b857600085556139fe565b82601f106139d157805160ff19168380011785556139fe565b828001600101855582156139fe579182015b828111156139fe5782518255916020019190600101906139e3565b506116979291505b808211156116975760008155600101613a06565b6001600160e01b03198116811461275357600080fd5b600060208284031215613a4257600080fd5b81356119ce81613a1a565b60005b83811015613a68578181015183820152602001613a50565b838111156122675750506000910152565b60008151808452613a91816020860160208601613a4d565b601f01601f19169290920160200192915050565b6020815260006119ce6020830184613a79565b600060208284031215613aca57600080fd5b5035919050565b6001600160a01b038116811461275357600080fd5b60008060408385031215613af957600080fd5b8235613b0481613ad1565b946020939093013593505050565b803560ff8116811461340c57600080fd5b80356001600160401b038116811461340c57600080fd5b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115613b6a57613b6a613b3a565b604051601f8501601f19908116603f01168101908282118183101715613b9257613b92613b3a565b81604052809350858152868686011115613bab57600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112613bd657600080fd5b6119ce83833560208501613b50565b60008060008060808587031215613bfb57600080fd5b613c0485613b12565b9350613c1260208601613b23565b92506040850135613c2281613ad1565b915060608501356001600160401b03811115613c3d57600080fd5b613c4987828801613bc5565b91505092959194509250565b60008060408385031215613c6857600080fd5b50508035926020909101359150565b600080600060608486031215613c8c57600080fd5b8335613c9781613ad1565b92506020840135613ca781613ad1565b929592945050506040919091013590565b6020808252825182820181905260009190848201906040850190845b81811015613cf057835183529284019291840191600101613cd4565b50909695505050505050565b60ff851681526001600160401b03841660208201526001600160a01b0383166040820152608060608201819052600090613d3890830184613a79565b9695505050505050565b600081518084526020808501945080840160005b83811015613d7257815187529582019590820190600101613d56565b509495945050505050565b602081528151602082015260208201516040820152604082015160608201526060820151151560808201526000608083015160a08084015261355a60c0840182613d42565b600080600080600060a08688031215613dda57600080fd5b85359450613dea60208701613b12565b9350613df860408701613b23565b92506060860135613e0881613ad1565b915060808601356001600160401b03811115613e2357600080fd5b613e2f88828901613bc5565b9150509295509295909350565b6020815260ff82511660208201526001600160401b03602083015116604082015260018060a01b0360408301511660608201526000606083015160808084015261355a60a0840182613a79565b6020815260006119ce6020830184613d42565b600060208284031215613eae57600080fd5b81356119ce81613ad1565b600060208284031215613ecb57600080fd5b81356001600160401b03811115613ee157600080fd5b61355a84828501613bc5565b600060208284031215613eff57600080fd5b8135600581106119ce57600080fd5b60008060408385031215613f2157600080fd5b8235613f2c81613ad1565b915060208301358015158114613f4157600080fd5b809150509250929050565b60008060008060808587031215613f6257600080fd5b8435613f6d81613ad1565b93506020850135613f7d81613ad1565b92506040850135915060608501356001600160401b03811115613f9f57600080fd5b8501601f81018713613fb057600080fd5b613c4987823560208401613b50565b60008060408385031215613fd257600080fd5b8235613fdd81613ad1565b91506020830135613f4181613ad1565b6000806000806060858703121561400357600080fd5b843593506020850135925060408501356001600160401b038082111561402857600080fd5b818701915087601f83011261403c57600080fd5b81358181111561404b57600080fd5b88602082850101111561405d57600080fd5b95989497505060200194505050565b600181811c9082168061408057607f821691505b6020821081141561149657634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600b908201526a47473a204d61782032353560a81b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008261414c5761414c614111565b500490565b600081600019048311821515161561416b5761416b614127565b500290565b6020808252601490820152732330b4b632b2103a379039b2b7321022ba3432b960611b604082015260600190565b634e487b7160e01b600052602160045260246000fd5b60006000198214156141c8576141c8614127565b5060010190565b6020808252601f908201527f457468657220616d6f756e7420697320756e6465722073657420707269636500604082015260600190565b60006020828403121561421857600080fd5b81516119ce81613ad1565b60208082526011908201527047473a204c6576656c20746f6f206c6f7760781b604082015260600190565b6000821982111561426157614261614127565b500190565b602081016005831061428857634e487b7160e01b600052602160045260246000fd5b91905290565b60208082526016908201527511d1ce8813585e081d1bdad95b9cc81c995858da195960521b604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b60008282101561432357614323614127565b500390565b6000815161433a818560208601613a4d565b9290920192915050565b600080845481600182811c91508083168061436057607f831692505b602080841082141561438057634e487b7160e01b86526022600452602486fd5b81801561439457600181146143a5576143d2565b60ff198616895284890196506143d2565b60008b81526020902060005b868110156143ca5781548b8201529085019083016143b1565b505084890196505b5050505050506143e28185614328565b95945050505050565b600083516143fd818460208801613a4d565b835190830190614411818360208801613a4d565b01949350505050565b8183823760009101908152919050565b60006001600160801b038381169083168181101561444a5761444a614127565b039392505050565b60006001600160801b0382811684821680830382111561441157614411614127565b60008161448357614483614127565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613d3890830184613a79565b6000602082840312156144d057600080fd5b81516119ce81613a1a565b6000826144ea576144ea614111565b50069056fec11fa7f9e6c6c9860151bac81aeb3b047327d92ca953691b39c170d6daadda5da26469706673582212200bb60cc82a9a71bfcedbd02c64b94566a418fd10dc403f5e30af71092a6a1caf64736f6c634300080b003368747470733a2f2f6e656f70686f72696f6e2e6172742f6170692f70726f6a656374732f4761756368654772696d6f6972652f636f6e747261637455524968747470733a2f2f6e656f70686f72696f6e2e6172742f6170692f70726f6a656374732f4761756368654772696d6f6972652f6d657461646174612f00000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000001140bbd030c4000000000000000000000000000f791467a2faab82d97488054f70371541ba76a8e000000000000000000000000532d46deb3de797d7d1af7b1631dbc35e8b1630f00000000000000000000000025de6ee9bb67dca9654259843682be875ab85b5f000000000000000000000000000000000000000000000000000000000000000f476175636865204772696d6f697265000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024747000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003c68747470733a2f2f6e656f70686f72696f6e2e6172742f6170692f70726f6a656374732f4761756368654772696d6f6972652f6d657461646174612f00000000
Deployed Bytecode
0x6080604052600436106102d55760003560e01c80637e5b1e241161017b578063c4e41b22116100d7578063e04c726a11610085578063e04c726a1461089a578063e8a3d485146108ca578063e985e9c5146108df578063ece162cf14610928578063ee67236014610958578063f2fde38b14610978578063fd8680781461099857600080fd5b8063c4e41b22146107cf578063c5654092146107e4578063c722d48514610804578063c87b56dd14610824578063caccd7f714610844578063d7224ba014610864578063d7eb3f3a1461087a57600080fd5b8063a386439711610134578063a386439714610712578063a808630414610732578063ab00492f14610747578063ab8ece8b1461075a578063b0fc77ff1461077a578063b784c9661461078f578063b88d4fde146107af57600080fd5b80637e5b1e24146106755780638da5cb5b1461069557806395d89b41146106aa5780639ff9baf8146106bf578063a0712d68146106df578063a22cb465146106f257600080fd5b80633e6b497f116102355780636c4d0eef116101e35780636c4d0eef146105915780636e04b2b0146105be57806370a08231146105d3578063715018a6146105f35780637432a38414610608578063782c9e70146106355780637c3495001461065557600080fd5b80633e6b497f1461049757806342842e0e146104c45780634f6ccce7146104e45780635b2c3c73146105045780635f8439e3146105245780636352211e14610551578063693be4891461057157600080fd5b806318160ddd1161029257806318160ddd146103be57806323b872dd146103dd57806324600fc3146103fd57806325bdb2a8146104125780632f745c59146104275780632f7d17bf1461044757806335cb03e71461046757600080fd5b806301ffc9a7146102da57806306fdde031461030f578063081812fc14610331578063095ea7b3146103695780630989fbe91461038b5780630e9afb40146103ab575b600080fd5b3480156102e657600080fd5b506102fa6102f5366004613a30565b6109b8565b60405190151581526020015b60405180910390f35b34801561031b57600080fd5b50610324610a25565b6040516103069190613aa5565b34801561033d57600080fd5b5061035161034c366004613ab8565b610ab7565b6040516001600160a01b039091168152602001610306565b34801561037557600080fd5b50610389610384366004613ae6565b610b47565b005b34801561039757600080fd5b506103896103a6366004613be5565b610c5b565b6103896103b9366004613c55565b610df8565b3480156103ca57600080fd5b506000545b604051908152602001610306565b3480156103e957600080fd5b506103896103f8366004613c77565b611003565b34801561040957600080fd5b5061038961100e565b34801561041e57600080fd5b506103cf611170565b34801561043357600080fd5b506103cf610442366004613ae6565b61118f565b61045a610455366004613ab8565b6112fc565b6040516103069190613cb8565b34801561047357600080fd5b50610487610482366004613ab8565b61149c565b6040516103069493929190613cfc565b3480156104a357600080fd5b506104b76104b2366004613ab8565b611579565b6040516103069190613d7d565b3480156104d057600080fd5b506103896104df366004613c77565b61161e565b3480156104f057600080fd5b506103cf6104ff366004613ab8565b611639565b34801561051057600080fd5b5061038961051f366004613dc2565b61169b565b34801561053057600080fd5b5061054461053f366004613ab8565b611823565b6040516103069190613e3c565b34801561055d57600080fd5b5061035161056c366004613ab8565b61199b565b34801561057d57600080fd5b506102fa61058c366004613ab8565b6119ad565b34801561059d57600080fd5b506105b16105ac366004613ab8565b6119b8565b6040516103069190613e89565b3480156105ca57600080fd5b5061045a6119d5565b3480156105df57600080fd5b506103cf6105ee366004613e9c565b611add565b3480156105ff57600080fd5b50610389611b6e565b34801561061457600080fd5b506103cf610623366004613ab8565b600e6020526000908152604090205481565b34801561064157600080fd5b506103cf610650366004613c55565b611ba9565b34801561066157600080fd5b506103cf610670366004613ab8565b611c6e565b34801561068157600080fd5b50610389610690366004613eb9565b611c92565b3480156106a157600080fd5b50610351611cd8565b3480156106b657600080fd5b50610324611ce7565b3480156106cb57600080fd5b506103896106da366004613eed565b611cf6565b61045a6106ed366004613ab8565b611e66565b3480156106fe57600080fd5b5061038961070d366004613f0e565b611f84565b34801561071e57600080fd5b506103cf61072d366004613ab8565b612049565b34801561073e57600080fd5b50600f546103cf565b61045a610755366004613ab8565b61206a565b34801561076657600080fd5b506103cf610775366004613ab8565b612190565b34801561078657600080fd5b506103cf6121b9565b34801561079b57600080fd5b506103896107aa366004613e9c565b6121c6565b3480156107bb57600080fd5b506103896107ca366004613f4c565b612234565b3480156107db57600080fd5b506103cf61226d565b3480156107f057600080fd5b506103246107ff366004613c55565b612284565b34801561081057600080fd5b5061038961081f366004613c55565b6123c3565b34801561083057600080fd5b5061032461083f366004613ab8565b6124ae565b34801561085057600080fd5b50600a54610351906001600160a01b031681565b34801561087057600080fd5b506103cf60075481565b34801561088657600080fd5b50600954610351906001600160a01b031681565b3480156108a657600080fd5b506102fa6108b5366004613ab8565b6000908152600c602052604090205460ff1690565b3480156108d657600080fd5b5061032461263c565b3480156108eb57600080fd5b506102fa6108fa366004613fbf565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561093457600080fd5b506102fa610943366004613ab8565b600c6020526000908152604090205460ff1681565b34801561096457600080fd5b50610389610973366004613e9c565b61264b565b34801561098457600080fd5b50610389610993366004613e9c565b6126b6565b3480156109a457600080fd5b506102fa6109b3366004613fed565b612756565b60006001600160e01b031982166380ac58cd60e01b14806109e957506001600160e01b03198216635b5e139f60e01b145b80610a0457506001600160e01b0319821663780e9d6360e01b145b80610a1f57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060018054610a349061406c565b80601f0160208091040260200160405190810160405280929190818152602001828054610a609061406c565b8015610aad5780601f10610a8257610100808354040283529160200191610aad565b820191906000526020600020905b815481529060010190602001808311610a9057829003601f168201915b5050505050905090565b6000610ac4826000541190565b610b2b5760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610b528261199b565b9050806001600160a01b0316836001600160a01b03161415610bc15760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610b22565b336001600160a01b0382161480610bdd5750610bdd81336108fa565b610c4b5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f6044820152781ddb995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b603a1b6064820152608401610b22565b610c5683838361282d565b505050565b33610c64611cd8565b6001600160a01b031614610c8a5760405162461bcd60e51b8152600401610b22906140a1565b600f5460ff11610cac5760405162461bcd60e51b8152600401610b22906140d6565b6040805160808101825260ff861681526001600160401b03851660208201526001600160a01b0384168183015260608101839052600f5491519091907f6b46711bdb3aab9e4bdaaf9503468a3df7b1ec7790b8a4ce7d031647c1e51dfd90610d15908490613e3c565b60405180910390a2600f8054600181018255600091909152815160029091027f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8028101805460208086015160408701516001600160a01b0316600160481b02600160481b600160e81b03196001600160401b039092166101000268ffffffffffffffffff1990941660ff9097169690961792909217919091169390931781556060840151805185949293610dee937f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac80390910192019061398a565b5050505050505050565b81610e0281612889565b6004610e0d816128fe565b82610e1781612987565b84610e21816129d4565b6000610e3f876000908152600e602052604090205460081c60ff1690565b90506000600f8281548110610e5657610e566140fb565b600091825260209182902060408051608081018252600293909302909101805460ff8116845261010081046001600160401b031694840194909452600160481b9093046001600160a01b031690820152600182018054919291606084019190610ebe9061406c565b80601f0160208091040260200160405190810160405280929190818152602001828054610eea9061406c565b8015610f375780601f10610f0c57610100808354040283529160200191610f37565b820191906000526020600020905b815481529060010190602001808311610f1a57829003601f168201915b5050505050815250509050806000015160ff16610f63896000908152600e602052604090205460ff1690565b1015610fa35760405162461bcd60e51b815260206004820152600f60248201526e11d1ce88139bc8199c9959481b1d9b608a1b6044820152606401610b22565b80602001516001600160401b0316341015610ff05760405162461bcd60e51b815260206004820152600d60248201526c047473a20546f6f20636865617609c1b6044820152606401610b22565b610dee888884846000015160ff16612a38565b610c56838383612b0c565b33611017611cd8565b6001600160a01b03161461103d5760405162461bcd60e51b8152600401610b22906140a1565b600061104a60144761413d565b9050600061105982600d614151565b90506000611068836007614151565b905081156110eb5760095460405160009182916001600160a01b039091169085908381818185875af1925050503d80600081146110c1576040519150601f19603f3d011682016040523d82523d6000602084013e6110c6565b606091505b5091509150816110e85760405162461bcd60e51b8152600401610b2290614170565b50505b8015610c5657600a5460405160009182916001600160a01b039091169084908381818185875af1925050503d8060008114611142576040519150601f19603f3d011682016040523d82523d6000602084013e611147565b606091505b5091509150816111695760405162461bcd60e51b8152600401610b2290614170565b5050505050565b600b5460009060ff16600481111561118a5761118a61419e565b905090565b600061119a83611add565b82106111f35760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610b22565b600080549080805b8381101561129c576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b0316918301919091521561124d57805192505b876001600160a01b0316836001600160a01b03161415611289578684141561127b57509350610a1f92505050565b83611285816141b4565b9450505b5080611294816141b4565b9150506111fb565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608401610b22565b6060600261130981612e92565b600b54630100000090046001600160401b031634101561133b5760405162461bcd60e51b8152600401610b22906141cf565b600b54600160581b90046001600160a01b0316336040516331a9108f60e11b8152600481018690526001600160a01b0391821691831690636352211e90602401602060405180830381865afa158015611398573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113bc9190614206565b6001600160a01b03161461140b5760405162461bcd60e51b81526020600482015260166024820152751058d8d95cdcc81d1bdad95b881b9bdd081bdddb995960521b6044820152606401610b22565b6000848152600c602052604090205460ff16156114665760405162461bcd60e51b81526020600482015260196024820152781058d8d95cdcc81d1bdad95b88185b1c9958591e481d5cd959603a1b6044820152606401610b22565b6000848152600c60205260409020805460ff191660011790556114926114893390565b60036000612f16565b9250505b50919050565b600f81815481106114ac57600080fd5b60009182526020909120600290910201805460018201805460ff8316945061010083046001600160401b031693600160481b9093046001600160a01b03169291906114f69061406c565b80601f01602080910402602001604051908101604052809291908181526020018280546115229061406c565b801561156f5780601f106115445761010080835404028352916020019161156f565b820191906000526020600020905b81548152906001019060200180831161155257829003601f168201915b5050505050905084565b6115ad6040518060a00160405280600081526020016000815260200160008152602001600015158152602001606081525090565b6040518060a001604052808381526020016115d7846000908152600e602052604090205460ff1690565b81526020016115f8846000908152600e602052604090205460081c60ff1690565b8152602001611606846130c5565b15158152602001611616846130f0565b905292915050565b610c5683838360405180602001604052806000815250612234565b6000805482106116975760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610b22565b5090565b336116a4611cd8565b6001600160a01b0316146116ca5760405162461bcd60e51b8152600401610b22906140a1565b600f5485106117125760405162461bcd60e51b815260206004820152601460248201527347473a204d75737420626520696e2072616e676560601b6044820152606401610b22565b6040805160808101825260ff861681526001600160401b03851660208201526001600160a01b0384168183015260608101839052905186907ff6b4b006cc00cf288d8d45d054d8da0a8e3848083d0e4d8d4dcc43978bf1455290611777908490613e3c565b60405180910390a280600f8781548110611793576117936140fb565b6000918252602091829020835160029092020180548484015160408601516001600160a01b0316600160481b02600160481b600160e81b03196001600160401b039092166101000268ffffffffffffffffff1990931660ff9095169490941791909117169190911781556060830151805191926118189260018501929091019061398a565b505050505050505050565b6040805160808101825260008082526020820181905291810191909152606080820152600f5482106118975760405162461bcd60e51b815260206004820181905260248201527f47473a204d75737420626520696e2072616e6765206f662070726f6a656374736044820152606401610b22565b600f82815481106118aa576118aa6140fb565b600091825260209182902060408051608081018252600293909302909101805460ff8116845261010081046001600160401b031694840194909452600160481b9093046001600160a01b0316908201526001820180549192916060840191906119129061406c565b80601f016020809104026020016040519081016040528092919081815260200182805461193e9061406c565b801561198b5780601f106119605761010080835404028352916020019161198b565b820191906000526020600020905b81548152906001019060200180831161196e57829003601f168201915b5050505050815250509050919050565b60006119a6826131f0565b5192915050565b6000610a1f826130c5565b6060816119c481613399565b506119ce836130f0565b9392505050565b606060006119e281612e92565b336119eb611cd8565b6001600160a01b031614611a115760405162461bcd60e51b8152600401610b22906140a1565b6014611a1c60005490565b10611a645760405162461bcd60e51b8152602060048201526018602482015277047473a204d757374206265206c657373207468616e2032360441b6044820152606401610b22565b611a78611a6f611cd8565b60016000612f16565b50600954611a92906001600160a01b0316600a6000612f16565b50600a8054611aae916001600160a01b03909116906000612f16565b50611ac3611aba611cd8565b600a6001612f16565b50611ad8611acf611cd8565b60076001612f16565b505090565b60006001600160a01b038216611b495760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610b22565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b33611b77611cd8565b6001600160a01b031614611b9d5760405162461bcd60e51b8152600401610b22906140a1565b611ba76000613411565b565b600082611bb581613399565b5082611c035760405162461bcd60e51b815260206004820152601a60248201527f47473a204c6576656c206d757374206265206e6f6e2d7a65726f0000000000006044820152606401610b22565b82611c20856000908152600e602052604090205460081c60ff1690565b11611c3d5760405162461bcd60e51b8152600401610b2290614223565b600e600084611c4c8760101b90565b611c56919061424e565b81526020019081526020016000205491505092915050565b600081611c7a81613399565b506000838152600e602052604090205460ff166119ce565b33611c9b611cd8565b6001600160a01b031614611cc15760405162461bcd60e51b8152600401610b22906140a1565b8051611cd490600d90602084019061398a565b5050565b6008546001600160a01b031690565b606060028054610a349061406c565b33611cff611cd8565b6001600160a01b031614611d255760405162461bcd60e51b8152600401610b22906140a1565b6004600b5460ff166004811115611d3e57611d3e61419e565b1415611d985760405162461bcd60e51b815260206004820152602360248201527f47423a2043616e2774206368616e67652073746174652069662046696e616c696044820152621e995960ea1b6064820152608401610b22565b600b5460ff166004811115611daf57611daf61419e565b816004811115611dc157611dc161419e565b11611e085760405162461bcd60e51b815260206004820152601760248201527647423a2043616e2774207265766572736520737461746560481b6044820152606401610b22565b600b805482919060ff19166001836004811115611e2757611e2761419e565b02179055507f92a17b827ee9d42ea9454bb4ca941a1800870e6d01c0842d09ba23ccc0190ee181604051611e5b9190614266565b60405180910390a150565b60606001611e7381612e92565b600b54600090611e94908590630100000090046001600160401b0316614151565b905080341015611eb65760405162461bcd60e51b8152600401610b22906141cf565b6001841015611ef75760405162461bcd60e51b815260206004820152600d60248201526c47473a204d696e204c766c203160981b6044820152606401610b22565b60ff841115611f3a5760405162461bcd60e51b815260206004820152600f60248201526e11d1ce8813585e080c8d4d481b1d9b608a1b6044820152606401610b22565b600b5461ffff6101009091041684611f5160005490565b611f5b919061424e565b10611f785760405162461bcd60e51b8152600401610b229061428e565b61149233856000612f16565b6001600160a01b038216331415611fdd5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610b22565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60008161205581613399565b5050506000908152600e602052604090205490565b6060600161207781612e92565b600b54600090612098908590630100000090046001600160401b0316614151565b9050803410156120f65760405162461bcd60e51b815260206004820152602360248201527f47473a20457468657220616d6f756e7420697320756e6465722073657420707260448201526269636560e81b6064820152608401610b22565b60018410156121515760405162461bcd60e51b815260206004820152602160248201527f47473a20546f6b656e20636f756e74206d7573742062652031206f72206d6f726044820152606560f81b6064820152608401610b22565b600b5461ffff6101009091041661216760005490565b106121845760405162461bcd60e51b8152600401610b229061428e565b61149233856001612f16565b60008161219c81613399565b506119ce836000908152600e602052604090205460081c60ff1690565b600061118a61dead611add565b6009546001600160a01b031633146122125760405162461bcd60e51b815260206004820152600f60248201526e11d08e8813db9b1e48185c9d1a5cdd608a1b6044820152606401610b22565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b61223f848484612b0c565b61224b84848484613463565b6122675760405162461bcd60e51b8152600401610b22906142be565b50505050565b60006122776121b9565b60005461118a9190614311565b60608261229081613399565b50600f5483106122e25760405162461bcd60e51b815260206004820181905260248201527f47473a204d7573742062652077697468696e2070726f6a6563742072616e67656044820152606401610b22565b6000848152600e60205260409020546123335760405162461bcd60e51b815260206004820152601360248201527211d1ce88151bdad95b881b9bdd08199bdd5b99606a1b6044820152606401610b22565b61234f846000908152600e602052604090205460081c60ff1690565b831061236d5760405162461bcd60e51b8152600401610b2290614223565b600f8381548110612380576123806140fb565b906000526020600020906002020160010161239a85613562565b6040516020016123ab929190614344565b60405160208183030381529060405291505092915050565b816123cd81612889565b816123d781612889565b826123e1816129d4565b60036123ec81612e92565b6000868152600e60205260408082205487835291205460ff9182169190811690612416838361424e565b61242190600161424e565b111561243f5760405162461bcd60e51b8152600401610b22906140d6565b6000878152600e6020526040812054839061245c9060019061424e565b612466919061424e565b6000898152600e6020526040908190208290555190915088906000805160206144f08339815191529061249c9084815260200190565b60405180910390a2611818338a61365f565b6060816124ba81613399565b506000600f6000815481106124d1576124d16140fb565b600091825260209182902060408051608081018252600293909302909101805460ff8116845261010081046001600160401b031694840194909452600160481b9093046001600160a01b0316908201526001820180549192916060840191906125399061406c565b80601f01602080910402602001604051908101604052809291908181526020018280546125659061406c565b80156125b25780601f10612587576101008083540402835291602001916125b2565b820191906000526020600020905b81548152906001019060200180831161259557829003601f168201915b5050505050815250509050806060015151600014156126055760405162461bcd60e51b815260206004820152600f60248201526e47473a204e6f20626173652055524960881b6044820152606401610b22565b806060015161261385613562565b6040516020016126249291906143eb565b60405160208183030381529060405292505050919050565b6060600d8054610a349061406c565b600a546001600160a01b031633146126945760405162461bcd60e51b815260206004820152600c60248201526b23a11d1027b7363c903232bb60a11b6044820152606401610b22565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b336126bf611cd8565b6001600160a01b0316146126e55760405162461bcd60e51b8152600401610b22906140a1565b6001600160a01b03811661274a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b22565b61275381613411565b50565b60008461276281613399565b5061276c86612190565b8510801561277957508415155b6127c55760405162461bcd60e51b815260206004820152601b60248201527f47473a20576f726420736c6f74206f7574206f6620626f756e647300000000006044820152606401610b22565b6000600e6000876127d68a60101b90565b6127e0919061424e565b81526020019081526020016000205490506000858560405160200161280692919061441a565b60408051601f19818403018152919052805160209091012091909114979650505050505050565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b336128938261199b565b6001600160a01b0316146127535760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a204d757374206f776e20746f6b656e20746f2063616c6c207460448201526b3434b990333ab731ba34b7b760a11b6064820152608401610b22565b600b5460ff1660048111156129155761291561419e565b8160048111156129275761292761419e565b14156127535760405162461bcd60e51b815260206004820152602960248201527f47473a20436f6e7472616374206d757374206e6f7420626520696e206d61746360448201526868696e67206d6f646560b81b6064820152608401610b22565b806127535760405162461bcd60e51b815260206004820152601d60248201527f47473a2043616e6e6f7420696e736572742061206e756c6c20776f72640000006044820152606401610b22565b600f546129f3826000908152600e602052604090205460081c60ff1690565b106127535760405162461bcd60e51b815260206004820152601560248201527411d1ce8813585e081b195d995b081c995858da1959605a1b6044820152606401610b22565b600082612a458660101b90565b612a4f919061424e565b6000818152600e6020526040808220879055878252812054919250908390612a7a906101009061424e565b612a849190614311565b6000878152600e6020908152604091829020839055815188815290810187905290810184905290915086907f1f2cb1ae46d38c39be558669927c3bcfd8ad43710257a79f8817163502a017309060600160405180910390a2856000805160206144f083398151915282604051612afc91815260200190565b60405180910390a2505050505050565b6000612b17826131f0565b80519091506000906001600160a01b0316336001600160a01b03161480612b4e575033612b4384610ab7565b6001600160a01b0316145b80612b6057508151612b6090336108fa565b905080612bca5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610b22565b846001600160a01b031682600001516001600160a01b031614612c3e5760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608401610b22565b6001600160a01b038416612ca25760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610b22565b612cb2600084846000015161282d565b6001600160a01b0385166000908152600460205260408120805460019290612ce49084906001600160801b031661442a565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092612d3091859116614452565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380871682526001600160401b03428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055612db784600161424e565b6000818152600360205260409020549091506001600160a01b0316612e4857612de1816000541190565b15612e485760408051808201825284516001600160a01b0390811682526020808701516001600160401b039081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b600b5460ff166004811115612ea957612ea961419e565b816004811115612ebb57612ebb61419e565b146127535760405162461bcd60e51b815260206004820152602560248201527f47473a20436f6e7472616374206d75737420626520696e206d61746368696e67604482015264206d6f646560d81b6064820152608401610b22565b60606000612f2360005490565b90508215612f7e57612f35858561369b565b836001600160401b03811115612f4d57612f4d613b3a565b604051908082528060200260200182016040528015612f76578160200160208202803683370190505b509150612faa565b612f8985600161369b565b60408051600180825281830190925290602080830190803683370190505091505b60005b848110156130bc576000612fc1828461424e565b9050600085612fd05786612fd3565b60015b604080514360208201526bffffffffffffffffffffffff193360601b1691810191909152605481018490526101009060740160408051601f198184030181529190528051602090910120613034919069ffffffffffffffffffff191661424e565b61303e919061424e565b6000838152600e6020526040908190208290555190915082906000805160206144f0833981519152906130749084815260200190565b60405180910390a28185848151811061308f5761308f6140fb565b602002602001018181525050856130a75750506130bc565b505080806130b4906141b4565b915050612fad565b50509392505050565b600061dead6130d38361199b565b6001600160a01b0316146130e8576000610a1f565b600192915050565b606060006130fe8360101b90565b9050600061311e846000908152600e602052604090205460081c60ff1690565b9050806001600160401b0381111561313857613138613b3a565b604051908082528060200260200182016040528015613161578160200160208202803683370190505b506000858152600e6020526040812054825192955091859190613186576131866140fb565b602090810291909101015260015b818110156131e857600e60006131aa838661424e565b8152602001908152602001600020548482815181106131cb576131cb6140fb565b6020908102919091010152806131e0816141b4565b915050613194565b505050919050565b604080518082019091526000808252602082015261320f826000541190565b61326e5760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610b22565b60007f000000000000000000000000000000000000000000000000000000000000000a83106132cf576132c17f000000000000000000000000000000000000000000000000000000000000000a84614311565b6132cc90600161424e565b90505b825b818110613338576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b0316918301919091521561332557949350505050565b508061333081614474565b9150506132d1565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b6064820152608401610b22565b60006133a6826000541190565b80156133c5575061dead6133b98361199b565b6001600160a01b031614155b61340c5760405162461bcd60e51b815260206004820152601860248201527711d1ce88151bdad95b88191bd95cc81b9bdd08195e1a5cdd60421b6044820152606401610b22565b919050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b1561355657604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906134a790339089908890889060040161448b565b6020604051808303816000875af19250505080156134e2575060408051601f3d908101601f191682019092526134df918101906144be565b60015b61353c573d808015613510576040519150601f19603f3d011682016040523d82523d6000602084013e613515565b606091505b5080516135345760405162461bcd60e51b8152600401610b22906142be565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061355a565b5060015b949350505050565b6060816135865750506040805180820190915260018152600360fc1b602082015290565b8160005b81156135b0578061359a816141b4565b91506135a99050600a8361413d565b915061358a565b6000816001600160401b038111156135ca576135ca613b3a565b6040519080825280601f01601f1916602001820160405280156135f4576020820181803683370190505b5090505b841561355a57613609600183614311565b9150613616600a866144db565b61362190603061424e565b60f81b818381518110613636576136366140fb565b60200101906001600160f81b031916908160001a905350613658600a8661413d565b94506135f8565b61366c8261dead83611003565b60405181907f0c526103b8f47af5516191d0c89a598755bd00faa211a3cb52e4c2cc782f7fe290600090a25050565b611cd48282604051806020016040528060008152506000546001600160a01b0384166137135760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610b22565b61371e816000541190565b1561376b5760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610b22565b7f000000000000000000000000000000000000000000000000000000000000000a8311156137e65760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b6064820152608401610b22565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b9091041691810191909152815180830190925280519091908190613842908790614452565b6001600160801b031681526020018583602001516138609190614452565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b029790961696909617909455845180860186529182526001600160401b034281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b8581101561397f5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46139436000888488613463565b61395f5760405162461bcd60e51b8152600401610b22906142be565b81613969816141b4565b9250508080613977906141b4565b9150506138f6565b506000819055612e8a565b8280546139969061406c565b90600052602060002090601f0160209004810192826139b857600085556139fe565b82601f106139d157805160ff19168380011785556139fe565b828001600101855582156139fe579182015b828111156139fe5782518255916020019190600101906139e3565b506116979291505b808211156116975760008155600101613a06565b6001600160e01b03198116811461275357600080fd5b600060208284031215613a4257600080fd5b81356119ce81613a1a565b60005b83811015613a68578181015183820152602001613a50565b838111156122675750506000910152565b60008151808452613a91816020860160208601613a4d565b601f01601f19169290920160200192915050565b6020815260006119ce6020830184613a79565b600060208284031215613aca57600080fd5b5035919050565b6001600160a01b038116811461275357600080fd5b60008060408385031215613af957600080fd5b8235613b0481613ad1565b946020939093013593505050565b803560ff8116811461340c57600080fd5b80356001600160401b038116811461340c57600080fd5b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115613b6a57613b6a613b3a565b604051601f8501601f19908116603f01168101908282118183101715613b9257613b92613b3a565b81604052809350858152868686011115613bab57600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112613bd657600080fd5b6119ce83833560208501613b50565b60008060008060808587031215613bfb57600080fd5b613c0485613b12565b9350613c1260208601613b23565b92506040850135613c2281613ad1565b915060608501356001600160401b03811115613c3d57600080fd5b613c4987828801613bc5565b91505092959194509250565b60008060408385031215613c6857600080fd5b50508035926020909101359150565b600080600060608486031215613c8c57600080fd5b8335613c9781613ad1565b92506020840135613ca781613ad1565b929592945050506040919091013590565b6020808252825182820181905260009190848201906040850190845b81811015613cf057835183529284019291840191600101613cd4565b50909695505050505050565b60ff851681526001600160401b03841660208201526001600160a01b0383166040820152608060608201819052600090613d3890830184613a79565b9695505050505050565b600081518084526020808501945080840160005b83811015613d7257815187529582019590820190600101613d56565b509495945050505050565b602081528151602082015260208201516040820152604082015160608201526060820151151560808201526000608083015160a08084015261355a60c0840182613d42565b600080600080600060a08688031215613dda57600080fd5b85359450613dea60208701613b12565b9350613df860408701613b23565b92506060860135613e0881613ad1565b915060808601356001600160401b03811115613e2357600080fd5b613e2f88828901613bc5565b9150509295509295909350565b6020815260ff82511660208201526001600160401b03602083015116604082015260018060a01b0360408301511660608201526000606083015160808084015261355a60a0840182613a79565b6020815260006119ce6020830184613d42565b600060208284031215613eae57600080fd5b81356119ce81613ad1565b600060208284031215613ecb57600080fd5b81356001600160401b03811115613ee157600080fd5b61355a84828501613bc5565b600060208284031215613eff57600080fd5b8135600581106119ce57600080fd5b60008060408385031215613f2157600080fd5b8235613f2c81613ad1565b915060208301358015158114613f4157600080fd5b809150509250929050565b60008060008060808587031215613f6257600080fd5b8435613f6d81613ad1565b93506020850135613f7d81613ad1565b92506040850135915060608501356001600160401b03811115613f9f57600080fd5b8501601f81018713613fb057600080fd5b613c4987823560208401613b50565b60008060408385031215613fd257600080fd5b8235613fdd81613ad1565b91506020830135613f4181613ad1565b6000806000806060858703121561400357600080fd5b843593506020850135925060408501356001600160401b038082111561402857600080fd5b818701915087601f83011261403c57600080fd5b81358181111561404b57600080fd5b88602082850101111561405d57600080fd5b95989497505060200194505050565b600181811c9082168061408057607f821691505b6020821081141561149657634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600b908201526a47473a204d61782032353560a81b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008261414c5761414c614111565b500490565b600081600019048311821515161561416b5761416b614127565b500290565b6020808252601490820152732330b4b632b2103a379039b2b7321022ba3432b960611b604082015260600190565b634e487b7160e01b600052602160045260246000fd5b60006000198214156141c8576141c8614127565b5060010190565b6020808252601f908201527f457468657220616d6f756e7420697320756e6465722073657420707269636500604082015260600190565b60006020828403121561421857600080fd5b81516119ce81613ad1565b60208082526011908201527047473a204c6576656c20746f6f206c6f7760781b604082015260600190565b6000821982111561426157614261614127565b500190565b602081016005831061428857634e487b7160e01b600052602160045260246000fd5b91905290565b60208082526016908201527511d1ce8813585e081d1bdad95b9cc81c995858da195960521b604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b60008282101561432357614323614127565b500390565b6000815161433a818560208601613a4d565b9290920192915050565b600080845481600182811c91508083168061436057607f831692505b602080841082141561438057634e487b7160e01b86526022600452602486fd5b81801561439457600181146143a5576143d2565b60ff198616895284890196506143d2565b60008b81526020902060005b868110156143ca5781548b8201529085019083016143b1565b505084890196505b5050505050506143e28185614328565b95945050505050565b600083516143fd818460208801613a4d565b835190830190614411818360208801613a4d565b01949350505050565b8183823760009101908152919050565b60006001600160801b038381169083168181101561444a5761444a614127565b039392505050565b60006001600160801b0382811684821680830382111561441157614411614127565b60008161448357614483614127565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613d3890830184613a79565b6000602082840312156144d057600080fd5b81516119ce81613a1a565b6000826144ea576144ea614111565b50069056fec11fa7f9e6c6c9860151bac81aeb3b047327d92ca953691b39c170d6daadda5da26469706673582212200bb60cc82a9a71bfcedbd02c64b94566a418fd10dc403f5e30af71092a6a1caf64736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000001140bbd030c4000000000000000000000000000f791467a2faab82d97488054f70371541ba76a8e000000000000000000000000532d46deb3de797d7d1af7b1631dbc35e8b1630f00000000000000000000000025de6ee9bb67dca9654259843682be875ab85b5f000000000000000000000000000000000000000000000000000000000000000f476175636865204772696d6f697265000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024747000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003c68747470733a2f2f6e656f70686f72696f6e2e6172742f6170692f70726f6a656374732f4761756368654772696d6f6972652f6d657461646174612f00000000
-----Decoded View---------------
Arg [0] : _tokenName (string): Gauche Grimoire
Arg [1] : _tokenSymbol (string): GG
Arg [2] : _baseURI (string): https://neophorion.art/api/projects/GaucheGrimoire/metadata/
Arg [3] : _pricePerToken (uint64): 77700000000000000
Arg [4] : _accessTokenAddress (address): 0xF791467A2fAab82d97488054F70371541BA76A8e
Arg [5] : _artistAddress (address): 0x532D46dEB3de797d7d1AF7B1631DBC35e8B1630f
Arg [6] : _developerAddress (address): 0x25De6ee9BB67DcA9654259843682bE875ab85b5f
-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [3] : 00000000000000000000000000000000000000000000000001140bbd030c4000
Arg [4] : 000000000000000000000000f791467a2faab82d97488054f70371541ba76a8e
Arg [5] : 000000000000000000000000532d46deb3de797d7d1af7b1631dbc35e8b1630f
Arg [6] : 00000000000000000000000025de6ee9bb67dca9654259843682be875ab85b5f
Arg [7] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [8] : 476175636865204772696d6f6972650000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [10] : 4747000000000000000000000000000000000000000000000000000000000000
Arg [11] : 000000000000000000000000000000000000000000000000000000000000003c
Arg [12] : 68747470733a2f2f6e656f70686f72696f6e2e6172742f6170692f70726f6a65
Arg [13] : 6374732f4761756368654772696d6f6972652f6d657461646174612f00000000
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.