Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
NFT
Overview
Max Total Supply
10,000 Bamboozlers
Holders
858
Market
Volume (24H)
0.0019 ETH
Min Price (24H)
$1.08 @ 0.000323 ETH
Max Price (24H)
$1.08 @ 0.000323 ETH
Other Info
Token Contract
Balance
2 BamboozlersLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Panda
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
Yes with 2000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// contracts/Pandas.sol // SPDX-License-Identifier: MIT // ~Forked from Anonymice~ pragma solidity ^0.8.0; import "./ERC721Enumerable.sol"; import "./IShoots.sol"; import "./PandaLibrary.sol"; import "hardhat/console.sol"; contract Panda is ERC721Enumerable { using PandaLibrary for uint8; struct Trait { string traitName; string traitType; string pixels; uint256 pixelCount; } //Mappings mapping(uint256 => Trait[]) public traitTypes; mapping(string => bool) hashToMinted; mapping(uint256 => string) internal tokenIdToHash; mapping (uint => string) internal specials; //uint256s uint256 MAX_SUPPLY = 10000; uint256 INITIAL_MINTS = 3000; uint256 SEED_NONCE = 0; uint256 WALLET_LIMIT = 4; //string arrays string[] LETTERS = [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z" ]; //uint arrays uint16[][8] TIERS; //address address ShootsAddress; address _owner; //bool bool mintEnabled; constructor() ERC721("Bamboozlers", "Bamboozlers") { _owner = msg.sender; //Declare all the rarity tiers //headwear TIERS[0] = [3040, 1750, 1750, 1750, 500, 500, 500, 200, 10]; //eyes TIERS[1] = [3790, 1750, 1750, 500, 500, 500, 500, 500, 200, 10]; //mouth TIERS[2] = [3140, 1750, 1750, 1750, 500, 500, 200, 200, 200, 10]; //ears TIERS[3] = [7800, 1750, 500]; //torso TIERS[4] = [4090, 1750, 1750, 500, 500, 500, 500, 200, 200, 10]; //head TIERS[5] = [7800, 1750, 500]; //body TIERS[6] = [3330, 3330, 3330, 10]; //bg TIERS[7] = [5940, 1750, 500, 500, 500, 200, 200, 200, 200, 10]; //Rave specials [6] = '<path fill="#fff" fill-opacity="0" stroke-width="0" d="M0 0h24v24H0z"><animate attributeType="XML" attributeName="fill-opacity" values="0;.1;.2;.3;.4;.5;.01" dur="7s" repeatCount="1"/> <animate attributeName="fill" attributeType="XML" values="#45b6fe;white;cyan" keyTimes= "0; 0.8; 1" dur="0.72s" repeatCount="indefinite"/></path>'; //Vampire specials [7] = '<path fill="RED" fill-opacity="0" stroke-width="0" d="M0 0h24v24H0z"><animate attributeType="XML" attributeName="fill-opacity" values="0;0;0;0.05;0.13;0.2;0;0.12;0.08;0;0;0" dur="0.6s" repeatCount="6"/></path>'; //Hypno specials [5] = '<animateTransform attributeName="transform" type="rotate" from="0 0 0" to="360 0 0" dur="3s" repeatCount="2" additive="sum"/>'; specials [10] = '<circle r="35" class="c48" x="12" y="12"/>'; //space specials [8] = '<animateTransform attributeName="transform" type="scale" keyTimes="0;0.25;0.5;0.75;1" values="0;0.35;0.1.28;0.75.9;1" dur="1.5s" additive="sum" transform-origin="50% 50%" />'; //Panda Patrol specials [11] ='<path fill="#fff" fill-opacity="0" stroke-width="0" d="M0 0h24v24H0z"><animate attributeType="XML" attributeName="fill-opacity" values="0.03;.3;.2;.3;.25;.3;.3;.3;0.25;0.05;0.001" dur="2s" repeatCount="2"/> <animate attributeName="fill" attributeType="XML" values="red;blue;red" keyTimes= "0; 0.6; 1" dur="0.4s" repeatCount="indefinite"/></path>'; // Toad specials [12] = '<g class="c28"><rect x="11" y="14"/><rect x="12" y="14"/><rect x="13" y="14"/><rect x="14" y="16"/><rect x="11" y="15"/><rect x="11" y="15"/><rect x="13" y="15"/><rect x="10" y="16"/></g><g class="c28"><rect x="11" y="16"/><rect x="13" y="16"/> <animate attributeName="display" values="inline;none;inline;none;none" keyTimes="0;0.25;0.5;0.75;1" dur="1s" repeatCount="indefinite"/></g><g class="c28"><rect x="10" y="15"/><rect x="13" y="16"/> <animate attributeName="display" values="none;inline;none;none;none" keyTimes="0;0.25;0.5;0.75;1" dur="1s" repeatCount="indefinite"/></g><g class="c28"><rect x="11" y="16"/><rect x="14" y="15"/> <animate attributeName="display" values="none;none;none;inline;none" keyTimes="0;0.25;0.5;0.75;1" dur="1s" repeatCount="indefinite"/></g>'; } /* __ __ _ _ _ ___ _ _ | \/ (_)_ _| |_(_)_ _ __ _ | __| _ _ _ __| |_(_)___ _ _ ___ | |\/| | | ' \ _| | ' \/ _` | | _| || | ' \/ _| _| / _ \ ' \(_-< |_| |_|_|_||_\__|_|_||_\__, | |_| \_,_|_||_\__|\__|_\___/_||_/__/ |___/ */ /** * @dev Converts a digit from 0 - 10000 into its corresponding rarity based on the given rarity tier. * @param _randinput The input from 0 - 10000 to use for rarity gen. * @param _rarityTier The tier to use. */ function rarityGen(uint256 _randinput, uint8 _rarityTier) internal view returns (string memory) { uint16 currentLowerBound = 0; for (uint8 i = 0; i < TIERS[_rarityTier].length; i++) { uint16 thisPercentage = TIERS[_rarityTier][i]; if ( _randinput >= currentLowerBound && _randinput < currentLowerBound + thisPercentage ) return i.toString(); currentLowerBound = currentLowerBound + thisPercentage; } revert(); } /** * @dev Generates a 9 digit hash from a tokenId, address, and random number. * @param _t The token id to be used within the hash. * @param _a The address to be used within the hash. * @param _c The custom nonce to be used within the hash. */ function hash( uint256 _t, address _a, uint256 _c ) internal returns (string memory) { require(_c < 10); // This will generate a 9 character string. //The last 8 digits are random, the first is 0, due to the panda not being burned. string memory currentHash = "0"; for (uint8 i = 0; i < 8; i++) { SEED_NONCE++; uint16 _randinput = uint16( uint256( keccak256( abi.encodePacked( block.timestamp, block.difficulty, _t, _a, _c, SEED_NONCE ) ) ) % 10000 ); currentHash = string( abi.encodePacked(currentHash, rarityGen(_randinput, i)) ); } if (hashToMinted[currentHash]) return hash(_t, _a, _c + 1); return currentHash; } /** * @dev Returns the current Shoots cost of minting. */ function currentShootsCost() public view returns (uint256) { uint256 _totalSupply = totalSupply(); if (_totalSupply <= INITIAL_MINTS) return 0; if (_totalSupply > INITIAL_MINTS && _totalSupply <= 5000) return 100 ether; if (_totalSupply > 5000 && _totalSupply <= 7000) return 500 ether; if (_totalSupply > 7000 && _totalSupply <= 9000) return 1000 ether; if (_totalSupply > 9000 && _totalSupply <= 10000) return 2000 ether; revert(); } /** * @dev Mint internal, this is to avoid code duplication. */ function mintInternal(address mintTo) internal { uint256 _totalSupply = totalSupply(); require(_totalSupply < MAX_SUPPLY); require(!PandaLibrary.isContract(msg.sender)); uint256 thisTokenId = _totalSupply; tokenIdToHash[thisTokenId] = hash(thisTokenId, msg.sender, 0); hashToMinted[tokenIdToHash[thisTokenId]] = true; _mint(mintTo, thisTokenId); } /** * @dev Mints new tokens. * No minting is permitted during the initial mint if WALLET_LIMIT is met. */ function getBamboozled() public { require (mintEnabled); if (totalSupply() < INITIAL_MINTS) { require (balanceOf(msg.sender)<WALLET_LIMIT, "Wallet limit reached"); return mintInternal(msg.sender); } //Burn this much Shoots IShoots(ShootsAddress).burnFrom(msg.sender, currentShootsCost()); return mintInternal(msg.sender); } /** * @dev Dev team mint tokens. * disables automatically once dev mint cap is met and enables public mint */ function devTeamMint(address mintTo) public onlyOwner { require (!mintEnabled); if (totalSupply() == 99) mintEnabled=true; return mintInternal(mintTo); } /** * @dev Burns and mints new. * @param _tokenId The token to burn. */ function burnForMint(uint256 _tokenId) public { require(ownerOf(_tokenId) == msg.sender); //Burn token _transfer( msg.sender, 0x000000000000000000000000000000000000dEaD, _tokenId ); mintInternal(msg.sender); } /* ____ ___ ____ ___ _____ __ __ ____ __ ______ ____ ___ ____ _____ | \ / _] / || \ | || | || \ / ] || |/ \ | \ / ___/ | D ) / [_ | o || \ | __|| | || _ | / /| | | || || _ ( \_ | / | _]| || D | | |_ | | || | |/ / |_| |_| | || O || | |\__ | | \ | [_ | _ || | | _] | : || | / \_ | | | || || | |/ \ | | . \| || | || | | | | || | \ | | | | || || | |\ | |__|\_||_____||__|__||_____| |__| \__,_||__|__|\____| |__| |____|\___/ |__|__| \___| */ /** * @dev Helper function to reduce pixel size within contract */ function letterToNumber(string memory _inputLetter) internal view returns (uint8) { for (uint8 i = 0; i < LETTERS.length; i++) { if ( keccak256(abi.encodePacked((LETTERS[i]))) == keccak256(abi.encodePacked((_inputLetter))) ) return (i); //modified from original to permit full frame art } revert(); } /** * @dev Hash to SVG function */ function hashToSVG(string memory _hash) public view returns (string memory) { string memory svgString; bool[24][24] memory placedPixels; uint bg; bool use_pp; bool use_toad; for (uint8 i = 0; i < 9; i++) { uint8 thisTraitIndex = PandaLibrary.parseInt( PandaLibrary.substring(_hash, i, i + 1) ); //* @dev: Additions to Anonymice to handle animation SVG strings if (i==1 && thisTraitIndex==8) use_pp=true; if (i==8) bg = thisTraitIndex; if (i==3 && thisTraitIndex==8) use_toad=true; //* @dev: Additions to Anonymice to handle animation SVG strings alternate decoding method implemented for full-image backgrounds (trait type 8) // XY coordinates removed to save gas; assumes all 576 pixels are filled. Pixels iterate down then across ((0,0), (0,1), (0,2)...) if (i==8){ uint8 y; uint8 x; for ( uint16 j = 0; j < traitTypes[i][thisTraitIndex].pixelCount; j++ ) { if (y==24){ x++; y=0; } string memory thisPixel = PandaLibrary.substring( traitTypes[i][thisTraitIndex].pixels, j * 2, j * 2 + 2 ); if (placedPixels[x][y]){ y ++; continue; } svgString = string( abi.encodePacked( svgString, "<rect class='c", PandaLibrary.substring(thisPixel, 0, 2), "' x='", x.toString(), "' y='", y.toString(), "'/>" ) ); placedPixels[x][y] = true; y++; } } else { for ( uint16 j = 0; j < traitTypes[i][thisTraitIndex].pixelCount; j++ ) { string memory thisPixel = PandaLibrary.substring( traitTypes[i][thisTraitIndex].pixels, j * 4, j * 4 + 4 ); uint8 x = letterToNumber( PandaLibrary.substring(thisPixel, 0, 1) ); uint8 y = letterToNumber( PandaLibrary.substring(thisPixel, 1, 2) ); if (placedPixels[x][y]) continue; svgString = string( abi.encodePacked( svgString, "<rect class='c", PandaLibrary.substring(thisPixel, 2, 4), "' x='", x.toString(), "' y='", y.toString(), "'/>" ) ); placedPixels[x][y] = true; } } } //* @dev: Additions to Anonymice to handle animation SVG strings if (use_pp) bg=11; svgString = string( abi.encodePacked( '<svg id="panda-svg" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" viewBox="0 0 24 24"> <g id="panda">', bg==5 ? specials [10] : '', svgString, use_toad ? specials[12] : '', '<style> #panda { transform-origin: center;}</style><style>rect{width:1px;height:1px;} #panda-svg{shape-rendering: crispedges;} .c00{fill:#000000}.c01{fill:#FFFFFF}.c02{fill:#CC0595}.c03{fill:#00FFF1}.c04{fill:#794B11}.c05{fill:#452905}.c06{fill:#477764}.c07{fill:#F2E93B}.c08{fill:#373737}.c09{fill:#E9D5AB}.c10{fill:#BA7454}.c11{fill:#FF5009}.c12{fill:#FF0846}.c13{fill:#FE08B8}.c14{fill:#C008FF}.c15{fill:#720EFF}.c16{fill:#575757}.c17{fill:#0F37FF}.c18{fill:#0F87FF}.c19{fill:#0FD2FC}.c20{fill:#12FF8F}.c21{fill:#8BFF18}.c22{fill:#E7BB5A}.c23{fill:#99711B}.c24{fill:#808080}.c25{fill:#6094B3}.c26{fill:#60B3AB}.c27{fill:#60B37B}.c28{fill:#81B360}.c29{fill:#AAB360}.c30{fill:#B39260}.c31{fill:#B36C60}.c32{fill:#AEAEAE}.c33{fill:#6082B3}.c34{fill:#6068B3}.c35{fill:#7560B3}.c36{fill:#8860B3}.c37{fill:#A760B3}.c38{fill:#B3609E}.c39{fill:#B36075}.c40{fill:#DADADA}.c41{fill:#3B2B20}.c42{fill:#D12A2F}.c43{fill:#EBE4D8}.c44{fill:#2AA792}.c45{fill:#121A33}.c46{fill:#B8D9CE}.c47{fill:#7D6E80}.c48{fill:#9D7400}.c49{fill:#80B2FF}.c50{fill:#E25B26}.c51{fill:#6CD8F0}.c52{fill:#1A9CE7}.c53{fill:#3701F0}.c54{fill:#7115E6}.c55{fill:#C104FA}.c56{fill:#62001A}.c57{fill:#92E52A}.c58{fill:#FBEE25}.c59{fill:#FD9E0F}.c60{fill:#F40917}.c61{fill:#FE069E} </style>', specials[bg], '</g></svg>' ) ); return svgString; } /** * @dev Hash to metadata function */ function hashToMetadata(string memory _hash) public view returns (string memory) { string memory metadataString; for (uint8 i = 0; i < 9; i++) { uint8 thisTraitIndex = PandaLibrary.parseInt( PandaLibrary.substring(_hash, i, i + 1) ); metadataString = string( abi.encodePacked( metadataString, '{"trait_type":"', traitTypes[i][thisTraitIndex].traitType, '","value":"', traitTypes[i][thisTraitIndex].traitName, '"}' ) ); if (i != 8) metadataString = string(abi.encodePacked(metadataString, ",")); } return string(abi.encodePacked("[", metadataString, "]")); } /** * @dev Returns the SVG and metadata for a token Id * @param _tokenId The tokenId to return the SVG and metadata for. */ function tokenURI(uint256 _tokenId) public view override returns (string memory) { require(_exists(_tokenId)); string memory tokenHash = _tokenIdToHash(_tokenId); return string( abi.encodePacked( "data:application/json;base64,", PandaLibrary.encode( bytes( string( abi.encodePacked( '{"name": "Bamboozler #', PandaLibrary.toString(_tokenId), '", "description": "Bamboozlers is a collection of 10,000 original pandas generated 100% on-chain. No IPFS, no API. Now go Bamboozle!", "image": "data:image/svg+xml;base64,', PandaLibrary.encode( bytes(hashToSVG(tokenHash)) ), '","attributes":', hashToMetadata(tokenHash), "}" ) ) ) ) ) ); } /** * @dev Returns a hash for a given tokenId * @param _tokenId The tokenId to return the hash for. */ function _tokenIdToHash(uint256 _tokenId) public view returns (string memory) { string memory tokenHash = tokenIdToHash[_tokenId]; //If this is a burned token, override the previous hash if (ownerOf(_tokenId) == 0x000000000000000000000000000000000000dEaD) { tokenHash = string( abi.encodePacked( "1", PandaLibrary.substring(tokenHash, 1, 9) ) ); } return tokenHash; } /** * @dev Returns the wallet of a given wallet. Mainly for ease for frontend devs. * @param _wallet The wallet to get the tokens of. */ function walletOfOwner(address _wallet) public view returns (uint256[] memory) { uint256 tokenCount = balanceOf(_wallet); uint256[] memory tokensId = new uint256[](tokenCount); for (uint256 i; i < tokenCount; i++) { tokensId[i] = tokenOfOwnerByIndex(_wallet, i); } return tokensId; } /* ___ __ __ ____ ___ ____ _____ __ __ ____ __ ______ ____ ___ ____ _____ / \ | |__| || \ / _]| \ | || | || \ / ] || |/ \ | \ / ___/ | || | | || _ | / [_ | D ) | __|| | || _ | / /| | | || || _ ( \_ | O || | | || | || _]| / | |_ | | || | |/ / |_| |_| | || O || | |\__ | | || ` ' || | || [_ | \ | _] | : || | / \_ | | | || || | |/ \ | | | \ / | | || || . \ | | | || | \ | | | | || || | |\ | \___/ \_/\_/ |__|__||_____||__|\_| |__| \__,_||__|__|\____| |__| |____|\___/ |__|__| \___| */ /** * @dev Clears the traits. */ function clearTraits() public onlyOwner { for (uint256 i = 0; i < 9; i++) { delete traitTypes[i]; } } /** * @dev Add a trait type * @param _traitTypeIndex The trait type index * @param traits Array of traits to add */ function addTraitType(uint256 _traitTypeIndex, Trait[] memory traits) public onlyOwner { for (uint256 i = 0; i < traits.length; i++) { traitTypes[_traitTypeIndex].push( Trait( traits[i].traitName, traits[i].traitType, traits[i].pixels, traits[i].pixelCount ) ); } return; } /** * @dev Sets the Shoots ERC20 address * @param _ShootsAddress The Shoots address */ function setShootsAddress(address _ShootsAddress) public onlyOwner { ShootsAddress = _ShootsAddress; } /** * @dev Transfers ownership * @param _newOwner The new owner */ function transferOwnership(address _newOwner) public onlyOwner { _owner = _newOwner; } /** * @dev Modifier to only allow owner to call functions */ modifier onlyOwner() { require(_owner == msg.sender); _; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// contracts/IShoots.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC20.sol"; interface IShoots is IERC20 { function burnFrom(address account, uint256 amount) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library PandaLibrary { string internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; function encode(bytes memory data) internal pure returns (string memory) { if (data.length == 0) return ""; // load the table into memory string memory table = TABLE; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((data.length + 2) / 3); // add some extra buffer at the end required for the writing string memory result = new string(encodedLen + 32); assembly { // set the actual output length mstore(result, encodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 3 bytes at a time for { } lt(dataPtr, endPtr) { } { dataPtr := add(dataPtr, 3) // read 3 bytes let input := mload(dataPtr) // write 4 characters mstore( resultPtr, shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F)))) ) resultPtr := add(resultPtr, 1) mstore( resultPtr, shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F)))) ) resultPtr := add(resultPtr, 1) mstore( resultPtr, shl(248, mload(add(tablePtr, and(shr(6, input), 0x3F)))) ) resultPtr := add(resultPtr, 1) mstore( resultPtr, shl(248, mload(add(tablePtr, and(input, 0x3F)))) ) resultPtr := add(resultPtr, 1) } // padding with '=' switch mod(mload(data), 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } } return result; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { 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); } function parseInt(string memory _a) internal pure returns (uint8 _parsedInt) { bytes memory bresult = bytes(_a); uint8 mint = 0; for (uint8 i = 0; i < bresult.length; i++) { if ( (uint8(uint8(bresult[i])) >= 48) && (uint8(uint8(bresult[i])) <= 57) ) { mint *= 10; mint += uint8(bresult[i]) - 48; } } return mint; } function substring( string memory str, uint256 startIndex, uint256 endIndex ) internal pure returns (string memory) { bytes memory strBytes = bytes(str); bytes memory result = new bytes(endIndex - startIndex); for (uint256 i = startIndex; i < endIndex; i++) { result[i - startIndex] = strBytes[i]; } return string(result); } 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; } }
// SPDX-License-Identifier: MIT pragma solidity >= 0.4.22 <0.9.0; library console { address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67); function _sendLogPayload(bytes memory payload) private view { uint256 payloadLength = payload.length; address consoleAddress = CONSOLE_ADDRESS; assembly { let payloadStart := add(payload, 32) let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0) } } function log() internal view { _sendLogPayload(abi.encodeWithSignature("log()")); } function logInt(int p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(int)", p0)); } function logUint(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function logString(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function logBool(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function logAddress(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function logBytes(bytes memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes)", p0)); } function logBytes1(bytes1 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0)); } function logBytes2(bytes2 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0)); } function logBytes3(bytes3 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0)); } function logBytes4(bytes4 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0)); } function logBytes5(bytes5 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0)); } function logBytes6(bytes6 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0)); } function logBytes7(bytes7 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0)); } function logBytes8(bytes8 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0)); } function logBytes9(bytes9 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0)); } function logBytes10(bytes10 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0)); } function logBytes11(bytes11 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0)); } function logBytes12(bytes12 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0)); } function logBytes13(bytes13 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0)); } function logBytes14(bytes14 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0)); } function logBytes15(bytes15 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0)); } function logBytes16(bytes16 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0)); } function logBytes17(bytes17 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0)); } function logBytes18(bytes18 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0)); } function logBytes19(bytes19 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0)); } function logBytes20(bytes20 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0)); } function logBytes21(bytes21 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0)); } function logBytes22(bytes22 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0)); } function logBytes23(bytes23 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0)); } function logBytes24(bytes24 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0)); } function logBytes25(bytes25 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0)); } function logBytes26(bytes26 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0)); } function logBytes27(bytes27 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0)); } function logBytes28(bytes28 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0)); } function logBytes29(bytes29 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0)); } function logBytes30(bytes30 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0)); } function logBytes31(bytes31 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0)); } function logBytes32(bytes32 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0)); } function log(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function log(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function log(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function log(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function log(uint p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint)", p0, p1)); } function log(uint p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string)", p0, p1)); } function log(uint p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool)", p0, p1)); } function log(uint p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address)", p0, p1)); } function log(string memory p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint)", p0, p1)); } function log(string memory p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1)); } function log(string memory p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1)); } function log(string memory p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1)); } function log(bool p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint)", p0, p1)); } function log(bool p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1)); } function log(bool p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1)); } function log(bool p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1)); } function log(address p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint)", p0, p1)); } function log(address p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1)); } function log(address p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1)); } function log(address p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1)); } function log(uint p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint)", p0, p1, p2)); } function log(uint p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string)", p0, p1, p2)); } function log(uint p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool)", p0, p1, p2)); } function log(uint p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address)", p0, p1, p2)); } function log(uint p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint)", p0, p1, p2)); } function log(uint p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string)", p0, p1, p2)); } function log(uint p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool)", p0, p1, p2)); } function log(uint p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address)", p0, p1, p2)); } function log(uint p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint)", p0, p1, p2)); } function log(uint p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string)", p0, p1, p2)); } function log(uint p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool)", p0, p1, p2)); } function log(uint p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address)", p0, p1, p2)); } function log(uint p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint)", p0, p1, p2)); } function log(uint p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string)", p0, p1, p2)); } function log(uint p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool)", p0, p1, p2)); } function log(uint p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address)", p0, p1, p2)); } function log(string memory p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint)", p0, p1, p2)); } function log(string memory p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string)", p0, p1, p2)); } function log(string memory p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool)", p0, p1, p2)); } function log(string memory p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address)", p0, p1, p2)); } function log(string memory p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint)", p0, p1, p2)); } function log(string memory p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2)); } function log(string memory p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2)); } function log(string memory p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2)); } function log(string memory p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint)", p0, p1, p2)); } function log(string memory p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2)); } function log(string memory p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2)); } function log(string memory p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2)); } function log(string memory p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint)", p0, p1, p2)); } function log(string memory p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2)); } function log(string memory p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2)); } function log(string memory p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2)); } function log(bool p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint)", p0, p1, p2)); } function log(bool p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string)", p0, p1, p2)); } function log(bool p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool)", p0, p1, p2)); } function log(bool p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address)", p0, p1, p2)); } function log(bool p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint)", p0, p1, p2)); } function log(bool p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2)); } function log(bool p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2)); } function log(bool p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2)); } function log(bool p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint)", p0, p1, p2)); } function log(bool p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2)); } function log(bool p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2)); } function log(bool p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2)); } function log(bool p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint)", p0, p1, p2)); } function log(bool p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2)); } function log(bool p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2)); } function log(bool p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2)); } function log(address p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint)", p0, p1, p2)); } function log(address p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string)", p0, p1, p2)); } function log(address p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool)", p0, p1, p2)); } function log(address p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address)", p0, p1, p2)); } function log(address p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint)", p0, p1, p2)); } function log(address p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2)); } function log(address p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2)); } function log(address p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2)); } function log(address p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint)", p0, p1, p2)); } function log(address p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2)); } function log(address p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2)); } function log(address p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2)); } function log(address p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint)", p0, p1, p2)); } function log(address p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2)); } function log(address p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2)); } function log(address p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2)); } function log(uint p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,string)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,address)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./IERC721Metadata.sol"; import "./Address.sol"; import "./Context.sol"; import "./Strings.sol"; import "./ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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 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 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.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
{ "optimizer": { "enabled": true, "runs": 2000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"_tokenIdToHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_traitTypeIndex","type":"uint256"},{"components":[{"internalType":"string","name":"traitName","type":"string"},{"internalType":"string","name":"traitType","type":"string"},{"internalType":"string","name":"pixels","type":"string"},{"internalType":"uint256","name":"pixelCount","type":"uint256"}],"internalType":"struct Panda.Trait[]","name":"traits","type":"tuple[]"}],"name":"addTraitType","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"burnForMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"clearTraits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentShootsCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"mintTo","type":"address"}],"name":"devTeamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBamboozled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hash","type":"string"}],"name":"hashToMetadata","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_hash","type":"string"}],"name":"hashToSVG","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_ShootsAddress","type":"address"}],"name":"setShootsAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_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":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"traitTypes","outputs":[{"internalType":"string","name":"traitName","type":"string"},{"internalType":"string","name":"traitType","type":"string"},{"internalType":"string","name":"pixels","type":"string"},{"internalType":"uint256","name":"pixelCount","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":"_wallet","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
612710600e55610bb8600f556000601055600460115560016103c0818152606160f81b6103e0526080908152610400828152603160f91b6104205260a052610440828152606360f81b6104605260c052610480828152601960fa1b6104a05260e0526104c0828152606560f81b6104e05261010052610500828152603360f91b6105205261012052610540828152606760f81b6105605261014052610580828152600d60fb1b6105a052610160526105c0828152606960f81b6105e05261018052610600828152603560f91b610620526101a052610640828152606b60f81b610660526101c052610680828152601b60fa1b6106a0526101e0526106c0828152606d60f81b6106e05261020052610700828152603760f91b6107205261022052610740828152606f60f81b6107605261024052610780828152600760fc1b6107a052610260526107c0828152607160f81b6107e05261028052610800828152603960f91b610820526102a052610840828152607360f81b610860526102c052610880828152601d60fa1b6108a0526102e0526108c0828152607560f81b6108e05261030052610900828152603b60f91b6109205261032052610940828152607760f81b6109605261034052610980828152600f60fb1b6109a052610360526109c0828152607960f81b6109e05261038052610a40604052610a00918252603d60f91b610a20526103a0919091526200021c90601290601a620007a4565b503480156200022a57600080fd5b50604080518082018252600b8082526a42616d626f6f7a6c65727360a81b602080840182815285518087019096529285528401528151919291620002719160009162000808565b5080516200028790600190602084019062000808565b5050601c80546001600160a01b03191633179055506040805161012081018252610be081526106d66020820181905291810182905260608101919091526101f46080820181905260a0820181905260c082015260c860e0820152600a610100820152620002f990601390600962000893565b506040805161014081018252610ece81526106d660208201819052918101919091526101f4606082018190526080820181905260a0820181905260c0820181905260e082015260c8610100820152600a61012082018190526200035f9160149162000893565b506040805161014081018252610c4481526106d66020820181905291810182905260608101919091526101f46080820181905260a082015260c860c0820181905260e08201819052610100820152600a6101208201819052620003c59160159162000893565b5060408051606081018252611e7881526106d660208201526101f491810191909152620003f790601690600362000893565b506040805161014081018252610ffa81526106d660208201819052918101919091526101f4606082018190526080820181905260a0820181905260c082015260c860e08201819052610100820152600a61012082018190526200045d9160179162000893565b5060408051606081018252611e7881526106d660208201526101f4918101919091526200048f90601890600362000893565b5060408051608081018252610d028082526020820181905291810191909152600a6060820152620004c590601990600462000893565b50604080516101408101825261173481526106d660208201526101f491810182905260608101829052608081019190915260c860a0820181905260c0820181905260e08201819052610100820152600a61012082018190526200052b91601a9162000893565b5060405180610180016040528061014a81526020016200553161014a91396006600052600d6020908152815162000586927fa48544818c2c710afa9849c61ec9c60e8acdb3eaa2885f33b37e118cc8fd04ac92019062000808565b5060405180610100016040528060d181526020016200567b60d191396007600052600d60209081528151620005df927fb91432bedff11256dbe14161d3606a2657bc9dacf8742f6b817d871dd53fb97692019062000808565b506040518060a00160405280607f8152602001620051ac607f91396005600052600d6020908152815162000637927fa5049387d9cb649c59f4bda666105ba636c2a103d8e2b232ba4d125737cd214992019062000808565b506040518060600160405280602a815260200162005952602a9139600a600052600d602090815281516200068f927fba9d637f252776d5e1b3534bbd7554a1265a4ef0539d9ca50abe118598a6973c92019062000808565b506040518060e0016040528060ad8152602001620058a560ad91396008600052600d60209081528151620006e7927f0b705463cf5f7356780ee6e96132d37412c1b5816a4d207b8dcd42c34976745792019062000808565b5060405180610180016040528061015981526020016200574c6101599139600b600052600d6020908152815162000742927f52c2086a203f40e709b1346663401f6c737b2fce5878601fcf875b047fed5fb692019062000808565b5060405180610340016040528061030681526020016200522b6103069139600c600052600d602090815281516200079d927fe399baa2fabbab2a0309615b124a802277bab50ec0ca3452a00889e216c4b90292019062000808565b50620009f8565b828054828255906000526020600020908101928215620007f6579160200282015b82811115620007f65782518051620007e591849160209091019062000808565b5091602001919060010190620007c5565b50620008049291506200093e565b5090565b8280546200081690620009bb565b90600052602060002090601f0160209004810192826200083a576000855562000885565b82601f106200085557805160ff191683800117855562000885565b8280016001018555821562000885579182015b828111156200088557825182559160200191906001019062000868565b50620008049291506200095f565b82805482825590600052602060002090600f01601090048101928215620008855791602002820160005b83821115620008ff57835183826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302620008bd565b80156200092f5782816101000a81549061ffff0219169055600201602081600101049283019260010302620008ff565b5050620008049291506200095f565b808211156200080457600062000955828262000976565b506001016200093e565b5b8082111562000804576000815560010162000960565b5080546200098490620009bb565b6000825580601f10620009985750620009b8565b601f016020900490600052602060002090810190620009b891906200095f565b50565b600281046001821680620009d057607f821691505b60208210811415620009f257634e487b7160e01b600052602260045260246000fd5b50919050565b6147a48062000a086000396000f3fe608060405234801561001057600080fd5b50600436106101ce5760003560e01c80634f6ccce711610104578063a22cb465116100a2578063d93dfe8811610071578063d93dfe88146103c8578063decfacfe146103db578063e985e9c5146103ee578063f2fde38b14610401576101ce565b8063a22cb4651461037c578063b88d4fde1461038f578063c4ef71c7146103a2578063c87b56dd146103b5576101ce565b80636ccff9a1116100de5780636ccff9a11461033b57806370a082311461034e57806389ce30741461036157806395d89b4114610374576101ce565b80634f6ccce7146103025780636352211e1461031557806366e3387014610328576101ce565b806318160ddd116101715780632fb098d21161014b5780632fb098d2146102a45780633af4cd63146102c757806342842e0e146102cf578063438b6300146102e2576101ce565b806318160ddd1461027657806323b872dd1461027e5780632f745c5914610291576101ce565b8063081812fc116101ad578063081812fc14610224578063095ea7b314610244578063098afd4b1461025957806313189ad014610261576101ce565b80625ea307146101d357806301ffc9a7146101fc57806306fdde031461021c575b600080fd5b6101e66101e1366004612fae565b610414565b6040516101f39190613ef9565b60405180910390f35b61020f61020a366004612f43565b61050d565b6040516101f39190613eee565b6101e6610563565b610237610232366004612fae565b6105f6565b6040516101f39190613e41565b610257610252366004612f1a565b610642565b005b6102576106da565b610269610729565b6040516101f3919061448d565b6102696107f1565b61025761028c366004612e2c565b6107f7565b61026961029f366004612f1a565b61082f565b6102b76102b23660046130f7565b610884565b6040516101f39493929190613f0c565b610257610a69565b6102576102dd366004612e2c565b610b4c565b6102f56102f0366004612de0565b610b67565b6040516101f39190613eaa565b610269610310366004612fae565b610c25565b610237610323366004612fae565b610c80565b6101e6610336366004612f7b565b610cb5565b610257610349366004612de0565b610e0e565b61026961035c366004612de0565b610ea6565b6101e661036f366004612f7b565b610eea565b6101e66116c9565b61025761038a366004612ee0565b6116d8565b61025761039d366004612e67565b6117a6565b6102576103b0366004612fae565b6117e5565b6101e66103c3366004612fae565b611818565b6102576103d6366004612fc6565b611895565b6102576103e9366004612de0565b611a1c565b61020f6103fc366004612dfa565b611a62565b61025761040f366004612de0565b611a90565b6000818152600c602052604081208054606092919061043290614612565b80601f016020809104026020016040519081016040528092919081815260200182805461045e90614612565b80156104ab5780601f10610480576101008083540402835291602001916104ab565b820191906000526020600020905b81548152906001019060200180831161048e57829003601f168201915b505050505090506104bb83610c80565b6001600160a01b031661dead6001600160a01b03161415610505576104e38160016009611ad6565b6040516020016104f39190613dae565b60405160208183030381529060405290505b90505b919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610505575061050582611bff565b60606000805461057290614612565b80601f016020809104026020016040519081016040528092919081815260200182805461059e90614612565b80156105eb5780601f106105c0576101008083540402835291602001916105eb565b820191906000526020600020905b8154815290600101906020018083116105ce57829003601f168201915b505050505090505b90565b600061060182611ca1565b6106265760405162461bcd60e51b815260040161061d906142bc565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061064d82610c80565b9050806001600160a01b0316836001600160a01b031614156106815760405162461bcd60e51b815260040161061d90614376565b806001600160a01b0316610693611cbe565b6001600160a01b031614806106af57506106af816103fc611cbe565b6106cb5760405162461bcd60e51b815260040161061d90614170565b6106d58383611cc2565b505050565b601c546001600160a01b031633146106f157600080fd5b60005b6009811015610726576000818152600a6020526040812061071491612bcf565b8061071e8161466f565b9150506106f4565b50565b6000806107346107f1565b9050600f5481116107495760009150506105f3565b600f548111801561075c57506113888111155b156107735768056bc75e2d631000009150506105f3565b611388811180156107865750611b588111155b1561079d57681b1ae4d6e2ef5000009150506105f3565b611b58811180156107b057506123288111155b156107c757683635c9adc5dea000009150506105f3565b612328811180156107da57506127108111155b156101ce57686c6b935b8bbd4000009150506105f3565b60085490565b610808610802611cbe565b82611d3d565b6108245760405162461bcd60e51b815260040161061d906143d3565b6106d5838383611dc2565b600061083a83610ea6565b82106108585760405162461bcd60e51b815260040161061d90613f57565b506001600160a01b03821660009081526006602090815260408083208484529091529020545b92915050565b600a60205281600052604060002081815481106108a057600080fd5b9060005260206000209060040201600091509150508060000180546108c490614612565b80601f01602080910402602001604051908101604052809291908181526020018280546108f090614612565b801561093d5780601f106109125761010080835404028352916020019161093d565b820191906000526020600020905b81548152906001019060200180831161092057829003601f168201915b50505050509080600101805461095290614612565b80601f016020809104026020016040519081016040528092919081815260200182805461097e90614612565b80156109cb5780601f106109a0576101008083540402835291602001916109cb565b820191906000526020600020905b8154815290600101906020018083116109ae57829003601f168201915b5050505050908060020180546109e090614612565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0c90614612565b8015610a595780601f10610a2e57610100808354040283529160200191610a59565b820191906000526020600020905b815481529060010190602001808311610a3c57829003601f168201915b5050505050908060030154905084565b601c5474010000000000000000000000000000000000000000900460ff16610a9057600080fd5b600f54610a9b6107f1565b1015610ad857601154610aad33610ea6565b10610aca5760405162461bcd60e51b815260040161061d90614048565b610ad333611efc565b610b4a565b601b546001600160a01b03166379cc679033610af2610729565b6040518363ffffffff1660e01b8152600401610b0f929190613e91565b600060405180830381600087803b158015610b2957600080fd5b505af1158015610b3d573d6000803e3d6000fd5b50505050610b4a33611efc565b565b6106d5838383604051806020016040528060008152506117a6565b60606000610b7483610ea6565b905060008167ffffffffffffffff811115610b9f57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610bc8578160200160208202803683370190505b50905060005b82811015610c1d57610be0858261082f565b828281518110610c0057634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610c158161466f565b915050610bce565b509392505050565b6000610c2f6107f1565b8210610c4d5760405162461bcd60e51b815260040161061d90614430565b60088281548110610c6e57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806105055760405162461bcd60e51b815260040161061d9061422a565b60608060005b60098160ff161015610de5576000610cec610ce78660ff8516610cdf866001614501565b60ff16611ad6565b611fa8565b905082600a60008460ff1681526020019081526020016000208260ff1681548110610d2757634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600101600a60008560ff1681526020019081526020016000208360ff1681548110610d7057634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600001604051602001610d93939291906133ba565b60405160208183030381529060405292508160ff16600814610dd25782604051602001610dc09190613279565b60405160208183030381529060405292505b5080610ddd8161468a565b915050610cbb565b5080604051602001610df79190613cfd565b604051602081830303815290604052915050919050565b601c546001600160a01b03163314610e2557600080fd5b601c5474010000000000000000000000000000000000000000900460ff1615610e4d57600080fd5b610e556107f1565b60631415610e9d57601c80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790555b61072681611efc565b60006001600160a01b038216610ece5760405162461bcd60e51b815260040161061d906141cd565b506001600160a01b031660009081526003602052604090205490565b606080610ef5612bf0565b60008080805b60098160ff1610156114de576000610f1f610ce78a60ff8516610cdf866001614501565b90508160ff166001148015610f3757508060ff166008145b15610f4157600193505b8160ff1660081415610f54578060ff1694505b8160ff166003148015610f6a57508060ff166008145b15610f7457600192505b8160ff16600814156112325760008060005b600a60008660ff1681526020019081526020016000208460ff1681548110610fbe57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600301548161ffff16101561122a578260ff1660181415610ff95781610ff18161468a565b925050600092505b6000611100600a60008860ff1681526020019081526020016000208660ff168154811061103657634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600201805461105290614612565b80601f016020809104026020016040519081016040528092919081815260200182805461107e90614612565b80156110cb5780601f106110a0576101008083540402835291602001916110cb565b820191906000526020600020905b8154815290600101906020018083116110ae57829003601f168201915b50505050508360026110dd919061453a565b61ffff166110ec85600261453a565b6110f79060026144cc565b61ffff16611ad6565b9050898360ff166018811061112557634e487b7160e01b600052603260045260246000fd5b60200201518460ff166018811061114c57634e487b7160e01b600052603260045260246000fd5b60200201511561116957836111608161468a565b94505050611218565b8a6111778260006002611ad6565b6111838560ff16612088565b61118f8760ff16612088565b6040516020016111a294939291906132ba565b6040516020818303038152906040529a5060018a8460ff16601881106111d857634e487b7160e01b600052603260045260246000fd5b60200201518560ff16601881106111ff57634e487b7160e01b600052603260045260246000fd5b91151560209092020152836112138161468a565b945050505b806112228161464d565b915050610f86565b5050506114cb565b60005b600a60008460ff1681526020019081526020016000208260ff168154811061126d57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600301548161ffff1610156114c9576000611388600a60008660ff1681526020019081526020016000208460ff16815481106112c757634e487b7160e01b600052603260045260246000fd5b906000526020600020906004020160020180546112e390614612565b80601f016020809104026020016040519081016040528092919081815260200182805461130f90614612565b801561135c5780601f106113315761010080835404028352916020019161135c565b820191906000526020600020905b81548152906001019060200180831161133f57829003601f168201915b505050505083600461136e919061453a565b61ffff1661137d85600461453a565b6110f79060046144cc565b905060006113a161139c8360006001611ad6565b6121d7565b905060006113b561139c8460016002611ad6565b9050898260ff16601881106113da57634e487b7160e01b600052603260045260246000fd5b60200201518160ff166018811061140157634e487b7160e01b600052603260045260246000fd5b602002015115611413575050506114b7565b8a6114218460026004611ad6565b61142d8460ff16612088565b6114398460ff16612088565b60405160200161144c94939291906132ba565b6040516020818303038152906040529a5060018a8360ff166018811061148257634e487b7160e01b600052603260045260246000fd5b60200201518260ff16601881106114a957634e487b7160e01b600052603260045260246000fd5b911515602090920201525050505b806114c18161464d565b915050611235565b505b50806114d68161468a565b915050610efb565b5081156114ea57600b92505b8260051461150757604051806020016040528060008152506115bc565b600a600052600d6020527fba9d637f252776d5e1b3534bbd7554a1265a4ef0539d9ca50abe118598a6973c805461153d90614612565b80601f016020809104026020016040519081016040528092919081815260200182805461156990614612565b80156115b65780601f1061158b576101008083540402835291602001916115b6565b820191906000526020600020905b81548152906001019060200180831161159957829003601f168201915b50505050505b85826115d7576040518060200160405280600081525061168c565b600c600052600d6020527fe399baa2fabbab2a0309615b124a802277bab50ec0ca3452a00889e216c4b902805461160d90614612565b80601f016020809104026020016040519081016040528092919081815260200182805461163990614612565b80156116865780601f1061165b57610100808354040283529160200191611686565b820191906000526020600020905b81548152906001019060200180831161166957829003601f168201915b50505050505b6000868152600d602090815260409182902091516116ae95949392910161346e565b60408051808303601f19018152919052979650505050505050565b60606001805461057290614612565b6116e0611cbe565b6001600160a01b0316826001600160a01b031614156117115760405162461bcd60e51b815260040161061d906140dc565b806005600061171e611cbe565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611762611cbe565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161179a9190613eee565b60405180910390a35050565b6117b76117b1611cbe565b83611d3d565b6117d35760405162461bcd60e51b815260040161061d906143d3565b6117df84848484612288565b50505050565b336117ef82610c80565b6001600160a01b03161461180257600080fd5b61180f3361dead83611dc2565b61072633611efc565b606061182382611ca1565b61182c57600080fd5b600061183783610414565b905061188561184584612088565b61185661185184610eea565b6122bb565b61185f84610cb5565b60405160200161187193929190613b7e565b6040516020818303038152906040526122bb565b604051602001610df79190613d69565b601c546001600160a01b031633146118ac57600080fd5b60005b81518110156106d557600a600084815260200190815260200160002060405180608001604052808484815181106118f657634e487b7160e01b600052603260045260246000fd5b602002602001015160000151815260200184848151811061192757634e487b7160e01b600052603260045260246000fd5b602002602001015160200151815260200184848151811061195857634e487b7160e01b600052603260045260246000fd5b602002602001015160400151815260200184848151811061198957634e487b7160e01b600052603260045260246000fd5b602090810291909101810151606001519091528254600181018455600093845292819020825180519394600402909101926119c79284920190612c1e565b5060208281015180516119e09260018501920190612c1e565b50604082015180516119fc916002840191602090910190612c1e565b506060820151816003015550508080611a149061466f565b9150506118af565b601c546001600160a01b03163314611a3357600080fd5b601b805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b601c546001600160a01b03163314611aa757600080fd5b601c805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6060836000611ae585856145ac565b67ffffffffffffffff811115611b0b57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611b35576020820181803683370190505b509050845b84811015611bf357828181518110611b6257634e487b7160e01b600052603260045260246000fd5b01602001517fff000000000000000000000000000000000000000000000000000000000000001682611b9488846145ac565b81518110611bb257634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535080611beb8161466f565b915050611b3a565b509150505b9392505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480611c9257507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610505575061050582612487565b6000908152600260205260409020546001600160a01b0316151590565b3390565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190611d0482610c80565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611d4882611ca1565b611d645760405162461bcd60e51b815260040161061d90614113565b6000611d6f83610c80565b9050806001600160a01b0316846001600160a01b03161480611daa5750836001600160a01b0316611d9f846105f6565b6001600160a01b0316145b80611dba5750611dba8185611a62565b949350505050565b826001600160a01b0316611dd582610c80565b6001600160a01b031614611dfb5760405162461bcd60e51b815260040161061d90614319565b6001600160a01b038216611e215760405162461bcd60e51b815260040161061d9061407f565b611e2c8383836124d1565b611e37600082611cc2565b6001600160a01b0383166000908152600360205260408120805460019290611e609084906145ac565b90915550506001600160a01b0382166000908152600360205260408120805460019290611e8e9084906144e9565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611f066107f1565b9050600e548110611f1657600080fd5b611f1f3361255a565b15611f2957600080fd5b80611f3681336000612560565b6000828152600c602090815260409091208251611f599391929190910190612c1e565b506001600b600c6000848152602001908152602001600020604051611f7e9190613462565b908152604051908190036020019020805491151560ff199092169190911790556106d58382612699565b60008181805b82518160ff161015610c1d576030838260ff1681518110611fdf57634e487b7160e01b600052603260045260246000fd5b016020015160f81c1080159061202057506039838260ff168151811061201557634e487b7160e01b600052603260045260246000fd5b016020015160f81c11155b1561207657612030600a83614583565b91506030838260ff168151811061205757634e487b7160e01b600052603260045260246000fd5b0160200151612069919060f81c6145c3565b6120739083614501565b91505b806120808161468a565b915050611fae565b6060816120c9575060408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152610508565b8160005b81156120f357806120dd8161466f565b91506120ec9050600a83614526565b91506120cd565b60008167ffffffffffffffff81111561211c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612146576020820181803683370190505b5090505b8415611dba5761215b6001836145ac565b9150612168600a866146aa565b6121739060306144e9565b60f81b81838151811061219657634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506121d0600a86614526565b945061214a565b6000805b60125460ff8216101561228257826040516020016121f9919061322e565b6040516020818303038152906040528051906020012060128260ff168154811061223357634e487b7160e01b600052603260045260246000fd5b9060005260206000200160405160200161224d9190613462565b604051602081830303815290604052805190602001201415612270579050610508565b8061227a8161468a565b9150506121db565b50600080fd5b612293848484611dc2565b61229f84848484612785565b6117df5760405162461bcd60e51b815260040161061d90613fb4565b60608151600014156122dc5750604080516020810190915260008152610508565b600060405180606001604052806040815260200161472f604091399050600060038451600261230b91906144e9565b6123159190614526565b612320906004614564565b9050600061232f8260206144e9565b67ffffffffffffffff81111561235557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561237f576020820181803683370190505b509050818152600183018586518101602084015b818310156123ed5760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b93820193909352600401612393565b600389510660018114612407576002811461245157612479565b7f3d3d0000000000000000000000000000000000000000000000000000000000007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe830152612479565b7f3d000000000000000000000000000000000000000000000000000000000000006000198301525b509398975050505050505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b6124dc8383836106d5565b6001600160a01b0383166124f8576124f3816128d1565b61251b565b816001600160a01b0316836001600160a01b03161461251b5761251b8382612915565b6001600160a01b03821661253757612532816129b2565b6106d5565b826001600160a01b0316826001600160a01b0316146106d5576106d58282612a8b565b3b151590565b6060600a821061256f57600080fd5b60408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015260005b60088160ff16101561265357601080549060006125c28361466f565b9190505550600061271042448989896010546040516020016125e996959493929190613df3565b6040516020818303038152906040528051906020012060001c61260c91906146aa565b90508261261d8261ffff1684612acf565b60405160200161262e92919061324a565b604051602081830303815290604052925050808061264b9061468a565b9150506125a6565b50600b81604051612664919061322e565b9081526040519081900360200190205460ff1615611dba57612691858561268c8660016144e9565b612560565b915050611bf8565b6001600160a01b0382166126bf5760405162461bcd60e51b815260040161061d90614287565b6126c881611ca1565b156126e55760405162461bcd60e51b815260040161061d90614011565b6126f1600083836124d1565b6001600160a01b038216600090815260036020526040812080546001929061271a9084906144e9565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000612799846001600160a01b031661255a565b156128c657836001600160a01b031663150b7a026127b5611cbe565b8786866040518563ffffffff1660e01b81526004016127d79493929190613e55565b602060405180830381600087803b1580156127f157600080fd5b505af1925050508015612821575060408051601f3d908101601f1916820190925261281e91810190612f5f565b60015b61287b573d80801561284f576040519150601f19603f3d011682016040523d82523d6000602084013e612854565b606091505b5080516128735760405162461bcd60e51b815260040161061d90613fb4565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611dba565b506001949350505050565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6000600161292284610ea6565b61292c91906145ac565b60008381526007602052604090205490915080821461297f576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906129c4906001906145ac565b600083815260096020526040812054600880549394509092849081106129fa57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110612a2957634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612a6f57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612a9683610ea6565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60606000805b60138460ff1660088110612af957634e487b7160e01b600052603260045260246000fd5b015460ff8216101561228257600060138560ff1660088110612b2b57634e487b7160e01b600052603260045260246000fd5b018260ff1681548110612b4e57634e487b7160e01b600052603260045260246000fd5b90600052602060002090601091828204019190066002029054906101000a900461ffff1690508261ffff168610158015612b945750612b8d81846144cc565b61ffff1686105b15612baf57612ba58260ff16612088565b935050505061087e565b612bb981846144cc565b9250508080612bc79061468a565b915050612ad5565b50805460008255600402906000526020600020908101906107269190612ca2565b6040518061030001604052806018905b612c08612ce2565b815260200190600190039081612c005790505090565b828054612c2a90614612565b90600052602060002090601f016020900481019282612c4c5760008555612c92565b82601f10612c6557805160ff1916838001178555612c92565b82800160010185558215612c92579182015b82811115612c92578251825591602001919060010190612c77565b50612c9e929150612d01565b5090565b80821115612c9e576000612cb68282612d16565b612cc4600183016000612d16565b612cd2600283016000612d16565b5060006003820155600401612ca2565b6040518061030001604052806018906020820280368337509192915050565b5b80821115612c9e5760008155600101612d02565b508054612d2290614612565b6000825580601f10612d345750610726565b601f0160209004906000526020600020908101906107269190612d01565b600067ffffffffffffffff831115612d6c57612d6c6146ea565b612d7f6020601f19601f86011601614496565b9050828152838383011115612d9357600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461050857600080fd5b600082601f830112612dd1578081fd5b611bf883833560208501612d52565b600060208284031215612df1578081fd5b611bf882612daa565b60008060408385031215612e0c578081fd5b612e1583612daa565b9150612e2360208401612daa565b90509250929050565b600080600060608486031215612e40578081fd5b612e4984612daa565b9250612e5760208501612daa565b9150604084013590509250925092565b60008060008060808587031215612e7c578081fd5b612e8585612daa565b9350612e9360208601612daa565b925060408501359150606085013567ffffffffffffffff811115612eb5578182fd5b8501601f81018713612ec5578182fd5b612ed487823560208401612d52565b91505092959194509250565b60008060408385031215612ef2578182fd5b612efb83612daa565b915060208301358015158114612f0f578182fd5b809150509250929050565b60008060408385031215612f2c578182fd5b612f3583612daa565b946020939093013593505050565b600060208284031215612f54578081fd5b8135611bf881614700565b600060208284031215612f70578081fd5b8151611bf881614700565b600060208284031215612f8c578081fd5b813567ffffffffffffffff811115612fa2578182fd5b611dba84828501612dc1565b600060208284031215612fbf578081fd5b5035919050565b60008060408385031215612fd8578182fd5b8235915060208084013567ffffffffffffffff80821115612ff7578384fd5b818601915086601f83011261300a578384fd5b81358181111561301c5761301c6146ea565b6130298485830201614496565b81815284810190848601875b848110156130e657813587016080601f19828f0301121561305457898afd5b61305e6080614496565b898201358881111561306e578b8cfd5b61307c8f8c83860101612dc1565b825250604082013588811115613090578b8cfd5b61309e8f8c83860101612dc1565b8b830152506060820135888111156130b4578b8cfd5b6130c28f8c83860101612dc1565b60408301525060809190910135606082015284529287019290870190600101613035565b50979a909950975050505050505050565b60008060408385031215613109578182fd5b50508035926020909101359150565b600081518084526131308160208601602086016145e6565b601f01601f19169290920160200192915050565b80546000906002810460018083168061315e57607f831692505b602080841082141561317e57634e487b7160e01b86526022600452602486fd5b81801561319257600181146131a3576131d0565b60ff198616895284890196506131d0565b6131ac886144c0565b60005b868110156131c85781548b8201529085019083016131af565b505084890196505b50505050505092915050565b7f7d00000000000000000000000000000000000000000000000000000000000000815260010190565b7f3c2f673e3c2f7376673e000000000000000000000000000000000000000000008152600a0190565b600082516132408184602087016145e6565b9190910192915050565b6000835161325c8184602088016145e6565b8351908301906132708183602088016145e6565b01949350505050565b6000825161328b8184602087016145e6565b7f2c00000000000000000000000000000000000000000000000000000000000000920191825250600101919050565b600085516132cc818460208a016145e6565b7f3c7265637420636c6173733d2763000000000000000000000000000000000000908301908152855161330681600e840160208a016145e6565b7f2720783d27000000000000000000000000000000000000000000000000000000600e929091019182015284516133448160138401602089016145e6565b7f2720793d270000000000000000000000000000000000000000000000000000006013929091019182015283516133828160188401602088016145e6565b7f272f3e000000000000000000000000000000000000000000000000000000000060189290910191820152601b019695505050505050565b600084516133cc8184602089016145e6565b7f7b2274726169745f74797065223a220000000000000000000000000000000000908301908152613400600f820186613144565b90507f222c2276616c7565223a220000000000000000000000000000000000000000008152613432600b820185613144565b7f227d00000000000000000000000000000000000000000000000000000000000081526002019695505050505050565b6000611bf88284613144565b60007f3c7376672069643d2270616e64612d7376672220786d6c6e733d22687474703a82527f2f2f7777772e77332e6f72672f323030302f737667222070726573657276654160208301527f7370656374526174696f3d22784d696e594d696e206d6565742220766965774260408301527f6f783d22302030203234203234223e203c672069643d2270616e6461223e00006060830152855161351881607e850160208a016145e6565b85519083019061352f81607e840160208a016145e6565b855191019061354581607e8401602089016145e6565b7f3c7374796c653e202370616e6461207b207472616e73666f726d2d6f72696769607e92909101918201527f6e3a2063656e7465723b7d3c2f7374796c653e3c7374796c653e726563747b77609e8201527f696474683a3170783b6865696768743a3170783b7d202370616e64612d73766760be8201527f7b73686170652d72656e646572696e673a20637269737065646765733b7d202e60de8201527f6330307b66696c6c3a233030303030307d2e6330317b66696c6c3a234646464660fe8201527f46467d2e6330327b66696c6c3a234343303539357d2e6330337b66696c6c3a2361011e8201527f3030464646317d2e6330347b66696c6c3a233739344231317d2e6330357b666961013e8201527f6c6c3a233435323930357d2e6330367b66696c6c3a233437373736347d2e633061015e8201527f377b66696c6c3a234632453933427d2e6330387b66696c6c3a2333373337333761017e8201527f7d2e6330397b66696c6c3a234539443541427d2e6331307b66696c6c3a23424161019e8201527f373435347d2e6331317b66696c6c3a234646353030397d2e6331327b66696c6c6101be8201527f3a234646303834367d2e6331337b66696c6c3a234645303842387d2e6331347b6101de8201527f66696c6c3a234330303846467d2e6331357b66696c6c3a233732304546467d2e6101fe8201527f6331367b66696c6c3a233537353735377d2e6331377b66696c6c3a233046333761021e8201527f46467d2e6331387b66696c6c3a233046383746467d2e6331397b66696c6c3a2361023e8201527f3046443246437d2e6332307b66696c6c3a233132464638467d2e6332317b666961025e8201527f6c6c3a233842464631387d2e6332327b66696c6c3a234537424235417d2e633261027e8201527f337b66696c6c3a233939373131427d2e6332347b66696c6c3a2338303830383061029e8201527f7d2e6332357b66696c6c3a233630393442337d2e6332367b66696c6c3a2336306102be8201527f423341427d2e6332377b66696c6c3a233630423337427d2e6332387b66696c6c6102de8201527f3a233831423336307d2e6332397b66696c6c3a234141423336307d2e6333307b6102fe8201527f66696c6c3a234233393236307d2e6333317b66696c6c3a234233364336307d2e61031e8201527f6333327b66696c6c3a234145414541457d2e6333337b66696c6c3a233630383261033e8201527f42337d2e6333347b66696c6c3a233630363842337d2e6333357b66696c6c3a2361035e8201527f3735363042337d2e6333367b66696c6c3a233838363042337d2e6333377b666961037e8201527f6c6c3a234137363042337d2e6333387b66696c6c3a234233363039457d2e633361039e8201527f397b66696c6c3a234233363037357d2e6334307b66696c6c3a234441444144416103be8201527f7d2e6334317b66696c6c3a233342324232307d2e6334327b66696c6c3a2344316103de8201527f324132467d2e6334337b66696c6c3a234542453444387d2e6334347b66696c6c6103fe8201527f3a233241413739327d2e6334357b66696c6c3a233132314133337d2e6334367b61041e8201527f66696c6c3a234238443943457d2e6334377b66696c6c3a233744364538307d2e61043e8201527f6334387b66696c6c3a233944373430307d2e6334397b66696c6c3a233830423261045e8201527f46467d2e6335307b66696c6c3a234532354232367d2e6335317b66696c6c3a2361047e8201527f3643443846307d2e6335327b66696c6c3a233141394345377d2e6335337b666961049e8201527f6c6c3a233337303146307d2e6335347b66696c6c3a233731313545367d2e63356104be8201527f357b66696c6c3a234331303446417d2e6335367b66696c6c3a233632303031416104de8201527f7d2e6335377b66696c6c3a233932453532417d2e6335387b66696c6c3a2346426104fe8201527f454532357d2e6335397b66696c6c3a234644394530467d2e6336307b66696c6c61051e8201527f3a234634303931377d2e6336317b66696c6c3a234645303639457d203c2f737461053e8201527f796c653e0000000000000000000000000000000000000000000000000000000061055e820152613b73613b6e610562830186613144565b613205565b979650505050505050565b60007f7b226e616d65223a202242616d626f6f7a6c657220230000000000000000000082528451613bb68160168501602089016145e6565b7f222c20226465736372697074696f6e223a202242616d626f6f7a6c65727320696016918401918201527f73206120636f6c6c656374696f6e206f662031302c303030206f726967696e6160368201527f6c2070616e6461732067656e6572617465642031303025206f6e2d636861696e60568201527f2e204e6f20495046532c206e6f204150492e204e6f7720676f2042616d626f6f60768201527f7a6c6521222c2022696d616765223a2022646174613a696d6167652f7376672b60968201527f786d6c3b6261736536342c00000000000000000000000000000000000000000060b68201528451613cb18160c18401602089016145e6565b7f222c2261747472696275746573223a000000000000000000000000000000000060c192909101918201528351613cef8160d08401602088016145e6565b613b7360d0828401016131dc565b60007f5b0000000000000000000000000000000000000000000000000000000000000082528251613d358160018501602087016145e6565b7f5d000000000000000000000000000000000000000000000000000000000000006001939091019283015250600201919050565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000082528251613da181601d8501602087016145e6565b91909101601d0192915050565b60007f310000000000000000000000000000000000000000000000000000000000000082528251613de68160018501602087016145e6565b9190910160010192915050565b95865260208601949094526040850192909252606090811b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016908401526074830152609482015260b40190565b6001600160a01b0391909116815260200190565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613e876080830184613118565b9695505050505050565b6001600160a01b03929092168252602082015260400190565b6020808252825182820181905260009190848201906040850190845b81811015613ee257835183529284019291840191600101613ec6565b50909695505050505050565b901515815260200190565b600060208252611bf86020830184613118565b600060808252613f1f6080830187613118565b8281036020840152613f318187613118565b90508281036040840152613f458186613118565b91505082606083015295945050505050565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201527f74206f6620626f756e6473000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526014908201527f57616c6c6574206c696d69742072656163686564000000000000000000000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560408201527f7200000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201527f7574206f6620626f756e64730000000000000000000000000000000000000000606082015260800190565b90815260200190565b60405181810167ffffffffffffffff811182821017156144b8576144b86146ea565b604052919050565b60009081526020902090565b600061ffff808316818516808303821115613270576132706146be565b600082198211156144fc576144fc6146be565b500190565b600060ff821660ff84168060ff0382111561451e5761451e6146be565b019392505050565b600082614535576145356146d4565b500490565b600061ffff8083168185168183048111821515161561455b5761455b6146be565b02949350505050565b600081600019048311821515161561457e5761457e6146be565b500290565b600060ff821660ff84168160ff04811182151516156145a4576145a46146be565b029392505050565b6000828210156145be576145be6146be565b500390565b600060ff821660ff8416808210156145dd576145dd6146be565b90039392505050565b60005b838110156146015781810151838201526020016145e9565b838111156117df5750506000910152565b60028104600182168061462657607f821691505b6020821081141561464757634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff80831681811415614665576146656146be565b6001019392505050565b6000600019821415614683576146836146be565b5060010190565b600060ff821660ff8114156146a1576146a16146be565b60010192915050565b6000826146b9576146b96146d4565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461072657600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220d3a059033746c9cc3c33dea1fe185ee944b9c9b67c82110ef428c81fdf5136c564736f6c634300080000333c616e696d6174655472616e73666f726d206174747269627574654e616d653d227472616e73666f726d2220747970653d22726f74617465222066726f6d3d2230203020302220746f3d223336302030203022206475723d223373222020726570656174436f756e743d223222202061646469746976653d2273756d222f3e3c6720636c6173733d22633238223e3c7265637420783d2231312220793d223134222f3e3c7265637420783d2231322220793d223134222f3e3c7265637420783d2231332220793d223134222f3e3c7265637420783d2231342220793d223136222f3e3c7265637420783d2231312220793d223135222f3e3c7265637420783d2231312220793d223135222f3e3c7265637420783d2231332220793d223135222f3e3c7265637420783d2231302220793d223136222f3e3c2f673e3c6720636c6173733d22633238223e3c7265637420783d2231312220793d223136222f3e3c7265637420783d2231332220793d223136222f3e203c616e696d617465206174747269627574654e616d653d22646973706c6179222076616c7565733d22696e6c696e653b6e6f6e653b696e6c696e653b6e6f6e653b6e6f6e6522206b657954696d65733d22303b302e32353b302e353b302e37353b3122206475723d2231732220726570656174436f756e743d22696e646566696e697465222f3e3c2f673e3c6720636c6173733d22633238223e3c7265637420783d2231302220793d223135222f3e3c7265637420783d2231332220793d223136222f3e203c616e696d617465206174747269627574654e616d653d22646973706c6179222076616c7565733d226e6f6e653b696e6c696e653b6e6f6e653b6e6f6e653b6e6f6e6522206b657954696d65733d22303b302e32353b302e353b302e37353b3122206475723d2231732220726570656174436f756e743d22696e646566696e697465222f3e3c2f673e3c6720636c6173733d22633238223e3c7265637420783d2231312220793d223136222f3e3c7265637420783d2231342220793d223135222f3e203c616e696d617465206174747269627574654e616d653d22646973706c6179222076616c7565733d226e6f6e653b6e6f6e653b6e6f6e653b696e6c696e653b6e6f6e6522206b657954696d65733d22303b302e32353b302e353b302e37353b3122206475723d2231732220726570656174436f756e743d22696e646566696e697465222f3e3c2f673e3c706174682066696c6c3d2223666666222066696c6c2d6f7061636974793d223022207374726f6b652d77696474683d22302220643d224d30203068323476323448307a223e3c616e696d61746520617474726962757465547970653d22584d4c22206174747269627574654e616d653d2266696c6c2d6f706163697479222076616c7565733d22303b2e313b2e323b2e333b2e343b2e353b2e303122206475723d2237732220726570656174436f756e743d2231222f3e203c616e696d617465206174747269627574654e616d653d2266696c6c2220617474726962757465547970653d22584d4c222076616c7565733d22233435623666653b77686974653b6379616e22206b657954696d65733d2022303b20302e383b203122206475723d22302e3732732220726570656174436f756e743d22696e646566696e697465222f3e3c2f706174683e3c706174682066696c6c3d22524544222066696c6c2d6f7061636974793d223022207374726f6b652d77696474683d22302220643d224d30203068323476323448307a223e3c616e696d61746520617474726962757465547970653d22584d4c22206174747269627574654e616d653d2266696c6c2d6f706163697479222076616c7565733d22303b303b303b302e30353b302e31333b302e323b303b302e31323b302e30383b303b303b3022206475723d22302e36732220726570656174436f756e743d2236222f3e3c2f706174683e3c706174682066696c6c3d2223666666222066696c6c2d6f7061636974793d223022207374726f6b652d77696474683d22302220643d224d30203068323476323448307a223e3c616e696d61746520617474726962757465547970653d22584d4c22206174747269627574654e616d653d2266696c6c2d6f706163697479222076616c7565733d22302e30333b2e333b2e323b2e333b2e32353b2e333b2e333b2e333b302e32353b302e30353b302e30303122206475723d2232732220726570656174436f756e743d2232222f3e203c616e696d617465206174747269627574654e616d653d2266696c6c2220617474726962757465547970653d22584d4c222076616c7565733d227265643b626c75653b72656422206b657954696d65733d2022303b20302e363b203122206475723d22302e34732220726570656174436f756e743d22696e646566696e697465222f3e3c2f706174683e3c616e696d6174655472616e73666f726d206174747269627574654e616d653d227472616e73666f726d2220747970653d227363616c6522206b657954696d65733d22303b302e32353b302e353b302e37353b31222076616c7565733d22303b302e33353b302e312e32383b302e37352e393b3122206475723d22312e3573222061646469746976653d2273756d22207472616e73666f726d2d6f726967696e3d223530252035302522202f3e3c636972636c6520723d2233352220636c6173733d226334382220783d2231322220793d223132222f3e
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101ce5760003560e01c80634f6ccce711610104578063a22cb465116100a2578063d93dfe8811610071578063d93dfe88146103c8578063decfacfe146103db578063e985e9c5146103ee578063f2fde38b14610401576101ce565b8063a22cb4651461037c578063b88d4fde1461038f578063c4ef71c7146103a2578063c87b56dd146103b5576101ce565b80636ccff9a1116100de5780636ccff9a11461033b57806370a082311461034e57806389ce30741461036157806395d89b4114610374576101ce565b80634f6ccce7146103025780636352211e1461031557806366e3387014610328576101ce565b806318160ddd116101715780632fb098d21161014b5780632fb098d2146102a45780633af4cd63146102c757806342842e0e146102cf578063438b6300146102e2576101ce565b806318160ddd1461027657806323b872dd1461027e5780632f745c5914610291576101ce565b8063081812fc116101ad578063081812fc14610224578063095ea7b314610244578063098afd4b1461025957806313189ad014610261576101ce565b80625ea307146101d357806301ffc9a7146101fc57806306fdde031461021c575b600080fd5b6101e66101e1366004612fae565b610414565b6040516101f39190613ef9565b60405180910390f35b61020f61020a366004612f43565b61050d565b6040516101f39190613eee565b6101e6610563565b610237610232366004612fae565b6105f6565b6040516101f39190613e41565b610257610252366004612f1a565b610642565b005b6102576106da565b610269610729565b6040516101f3919061448d565b6102696107f1565b61025761028c366004612e2c565b6107f7565b61026961029f366004612f1a565b61082f565b6102b76102b23660046130f7565b610884565b6040516101f39493929190613f0c565b610257610a69565b6102576102dd366004612e2c565b610b4c565b6102f56102f0366004612de0565b610b67565b6040516101f39190613eaa565b610269610310366004612fae565b610c25565b610237610323366004612fae565b610c80565b6101e6610336366004612f7b565b610cb5565b610257610349366004612de0565b610e0e565b61026961035c366004612de0565b610ea6565b6101e661036f366004612f7b565b610eea565b6101e66116c9565b61025761038a366004612ee0565b6116d8565b61025761039d366004612e67565b6117a6565b6102576103b0366004612fae565b6117e5565b6101e66103c3366004612fae565b611818565b6102576103d6366004612fc6565b611895565b6102576103e9366004612de0565b611a1c565b61020f6103fc366004612dfa565b611a62565b61025761040f366004612de0565b611a90565b6000818152600c602052604081208054606092919061043290614612565b80601f016020809104026020016040519081016040528092919081815260200182805461045e90614612565b80156104ab5780601f10610480576101008083540402835291602001916104ab565b820191906000526020600020905b81548152906001019060200180831161048e57829003601f168201915b505050505090506104bb83610c80565b6001600160a01b031661dead6001600160a01b03161415610505576104e38160016009611ad6565b6040516020016104f39190613dae565b60405160208183030381529060405290505b90505b919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610505575061050582611bff565b60606000805461057290614612565b80601f016020809104026020016040519081016040528092919081815260200182805461059e90614612565b80156105eb5780601f106105c0576101008083540402835291602001916105eb565b820191906000526020600020905b8154815290600101906020018083116105ce57829003601f168201915b505050505090505b90565b600061060182611ca1565b6106265760405162461bcd60e51b815260040161061d906142bc565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061064d82610c80565b9050806001600160a01b0316836001600160a01b031614156106815760405162461bcd60e51b815260040161061d90614376565b806001600160a01b0316610693611cbe565b6001600160a01b031614806106af57506106af816103fc611cbe565b6106cb5760405162461bcd60e51b815260040161061d90614170565b6106d58383611cc2565b505050565b601c546001600160a01b031633146106f157600080fd5b60005b6009811015610726576000818152600a6020526040812061071491612bcf565b8061071e8161466f565b9150506106f4565b50565b6000806107346107f1565b9050600f5481116107495760009150506105f3565b600f548111801561075c57506113888111155b156107735768056bc75e2d631000009150506105f3565b611388811180156107865750611b588111155b1561079d57681b1ae4d6e2ef5000009150506105f3565b611b58811180156107b057506123288111155b156107c757683635c9adc5dea000009150506105f3565b612328811180156107da57506127108111155b156101ce57686c6b935b8bbd4000009150506105f3565b60085490565b610808610802611cbe565b82611d3d565b6108245760405162461bcd60e51b815260040161061d906143d3565b6106d5838383611dc2565b600061083a83610ea6565b82106108585760405162461bcd60e51b815260040161061d90613f57565b506001600160a01b03821660009081526006602090815260408083208484529091529020545b92915050565b600a60205281600052604060002081815481106108a057600080fd5b9060005260206000209060040201600091509150508060000180546108c490614612565b80601f01602080910402602001604051908101604052809291908181526020018280546108f090614612565b801561093d5780601f106109125761010080835404028352916020019161093d565b820191906000526020600020905b81548152906001019060200180831161092057829003601f168201915b50505050509080600101805461095290614612565b80601f016020809104026020016040519081016040528092919081815260200182805461097e90614612565b80156109cb5780601f106109a0576101008083540402835291602001916109cb565b820191906000526020600020905b8154815290600101906020018083116109ae57829003601f168201915b5050505050908060020180546109e090614612565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0c90614612565b8015610a595780601f10610a2e57610100808354040283529160200191610a59565b820191906000526020600020905b815481529060010190602001808311610a3c57829003601f168201915b5050505050908060030154905084565b601c5474010000000000000000000000000000000000000000900460ff16610a9057600080fd5b600f54610a9b6107f1565b1015610ad857601154610aad33610ea6565b10610aca5760405162461bcd60e51b815260040161061d90614048565b610ad333611efc565b610b4a565b601b546001600160a01b03166379cc679033610af2610729565b6040518363ffffffff1660e01b8152600401610b0f929190613e91565b600060405180830381600087803b158015610b2957600080fd5b505af1158015610b3d573d6000803e3d6000fd5b50505050610b4a33611efc565b565b6106d5838383604051806020016040528060008152506117a6565b60606000610b7483610ea6565b905060008167ffffffffffffffff811115610b9f57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610bc8578160200160208202803683370190505b50905060005b82811015610c1d57610be0858261082f565b828281518110610c0057634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610c158161466f565b915050610bce565b509392505050565b6000610c2f6107f1565b8210610c4d5760405162461bcd60e51b815260040161061d90614430565b60088281548110610c6e57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806105055760405162461bcd60e51b815260040161061d9061422a565b60608060005b60098160ff161015610de5576000610cec610ce78660ff8516610cdf866001614501565b60ff16611ad6565b611fa8565b905082600a60008460ff1681526020019081526020016000208260ff1681548110610d2757634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600101600a60008560ff1681526020019081526020016000208360ff1681548110610d7057634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600001604051602001610d93939291906133ba565b60405160208183030381529060405292508160ff16600814610dd25782604051602001610dc09190613279565b60405160208183030381529060405292505b5080610ddd8161468a565b915050610cbb565b5080604051602001610df79190613cfd565b604051602081830303815290604052915050919050565b601c546001600160a01b03163314610e2557600080fd5b601c5474010000000000000000000000000000000000000000900460ff1615610e4d57600080fd5b610e556107f1565b60631415610e9d57601c80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790555b61072681611efc565b60006001600160a01b038216610ece5760405162461bcd60e51b815260040161061d906141cd565b506001600160a01b031660009081526003602052604090205490565b606080610ef5612bf0565b60008080805b60098160ff1610156114de576000610f1f610ce78a60ff8516610cdf866001614501565b90508160ff166001148015610f3757508060ff166008145b15610f4157600193505b8160ff1660081415610f54578060ff1694505b8160ff166003148015610f6a57508060ff166008145b15610f7457600192505b8160ff16600814156112325760008060005b600a60008660ff1681526020019081526020016000208460ff1681548110610fbe57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600301548161ffff16101561122a578260ff1660181415610ff95781610ff18161468a565b925050600092505b6000611100600a60008860ff1681526020019081526020016000208660ff168154811061103657634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600201805461105290614612565b80601f016020809104026020016040519081016040528092919081815260200182805461107e90614612565b80156110cb5780601f106110a0576101008083540402835291602001916110cb565b820191906000526020600020905b8154815290600101906020018083116110ae57829003601f168201915b50505050508360026110dd919061453a565b61ffff166110ec85600261453a565b6110f79060026144cc565b61ffff16611ad6565b9050898360ff166018811061112557634e487b7160e01b600052603260045260246000fd5b60200201518460ff166018811061114c57634e487b7160e01b600052603260045260246000fd5b60200201511561116957836111608161468a565b94505050611218565b8a6111778260006002611ad6565b6111838560ff16612088565b61118f8760ff16612088565b6040516020016111a294939291906132ba565b6040516020818303038152906040529a5060018a8460ff16601881106111d857634e487b7160e01b600052603260045260246000fd5b60200201518560ff16601881106111ff57634e487b7160e01b600052603260045260246000fd5b91151560209092020152836112138161468a565b945050505b806112228161464d565b915050610f86565b5050506114cb565b60005b600a60008460ff1681526020019081526020016000208260ff168154811061126d57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600301548161ffff1610156114c9576000611388600a60008660ff1681526020019081526020016000208460ff16815481106112c757634e487b7160e01b600052603260045260246000fd5b906000526020600020906004020160020180546112e390614612565b80601f016020809104026020016040519081016040528092919081815260200182805461130f90614612565b801561135c5780601f106113315761010080835404028352916020019161135c565b820191906000526020600020905b81548152906001019060200180831161133f57829003601f168201915b505050505083600461136e919061453a565b61ffff1661137d85600461453a565b6110f79060046144cc565b905060006113a161139c8360006001611ad6565b6121d7565b905060006113b561139c8460016002611ad6565b9050898260ff16601881106113da57634e487b7160e01b600052603260045260246000fd5b60200201518160ff166018811061140157634e487b7160e01b600052603260045260246000fd5b602002015115611413575050506114b7565b8a6114218460026004611ad6565b61142d8460ff16612088565b6114398460ff16612088565b60405160200161144c94939291906132ba565b6040516020818303038152906040529a5060018a8360ff166018811061148257634e487b7160e01b600052603260045260246000fd5b60200201518260ff16601881106114a957634e487b7160e01b600052603260045260246000fd5b911515602090920201525050505b806114c18161464d565b915050611235565b505b50806114d68161468a565b915050610efb565b5081156114ea57600b92505b8260051461150757604051806020016040528060008152506115bc565b600a600052600d6020527fba9d637f252776d5e1b3534bbd7554a1265a4ef0539d9ca50abe118598a6973c805461153d90614612565b80601f016020809104026020016040519081016040528092919081815260200182805461156990614612565b80156115b65780601f1061158b576101008083540402835291602001916115b6565b820191906000526020600020905b81548152906001019060200180831161159957829003601f168201915b50505050505b85826115d7576040518060200160405280600081525061168c565b600c600052600d6020527fe399baa2fabbab2a0309615b124a802277bab50ec0ca3452a00889e216c4b902805461160d90614612565b80601f016020809104026020016040519081016040528092919081815260200182805461163990614612565b80156116865780601f1061165b57610100808354040283529160200191611686565b820191906000526020600020905b81548152906001019060200180831161166957829003601f168201915b50505050505b6000868152600d602090815260409182902091516116ae95949392910161346e565b60408051808303601f19018152919052979650505050505050565b60606001805461057290614612565b6116e0611cbe565b6001600160a01b0316826001600160a01b031614156117115760405162461bcd60e51b815260040161061d906140dc565b806005600061171e611cbe565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611762611cbe565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161179a9190613eee565b60405180910390a35050565b6117b76117b1611cbe565b83611d3d565b6117d35760405162461bcd60e51b815260040161061d906143d3565b6117df84848484612288565b50505050565b336117ef82610c80565b6001600160a01b03161461180257600080fd5b61180f3361dead83611dc2565b61072633611efc565b606061182382611ca1565b61182c57600080fd5b600061183783610414565b905061188561184584612088565b61185661185184610eea565b6122bb565b61185f84610cb5565b60405160200161187193929190613b7e565b6040516020818303038152906040526122bb565b604051602001610df79190613d69565b601c546001600160a01b031633146118ac57600080fd5b60005b81518110156106d557600a600084815260200190815260200160002060405180608001604052808484815181106118f657634e487b7160e01b600052603260045260246000fd5b602002602001015160000151815260200184848151811061192757634e487b7160e01b600052603260045260246000fd5b602002602001015160200151815260200184848151811061195857634e487b7160e01b600052603260045260246000fd5b602002602001015160400151815260200184848151811061198957634e487b7160e01b600052603260045260246000fd5b602090810291909101810151606001519091528254600181018455600093845292819020825180519394600402909101926119c79284920190612c1e565b5060208281015180516119e09260018501920190612c1e565b50604082015180516119fc916002840191602090910190612c1e565b506060820151816003015550508080611a149061466f565b9150506118af565b601c546001600160a01b03163314611a3357600080fd5b601b805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b601c546001600160a01b03163314611aa757600080fd5b601c805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6060836000611ae585856145ac565b67ffffffffffffffff811115611b0b57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611b35576020820181803683370190505b509050845b84811015611bf357828181518110611b6257634e487b7160e01b600052603260045260246000fd5b01602001517fff000000000000000000000000000000000000000000000000000000000000001682611b9488846145ac565b81518110611bb257634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535080611beb8161466f565b915050611b3a565b509150505b9392505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480611c9257507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610505575061050582612487565b6000908152600260205260409020546001600160a01b0316151590565b3390565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190611d0482610c80565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611d4882611ca1565b611d645760405162461bcd60e51b815260040161061d90614113565b6000611d6f83610c80565b9050806001600160a01b0316846001600160a01b03161480611daa5750836001600160a01b0316611d9f846105f6565b6001600160a01b0316145b80611dba5750611dba8185611a62565b949350505050565b826001600160a01b0316611dd582610c80565b6001600160a01b031614611dfb5760405162461bcd60e51b815260040161061d90614319565b6001600160a01b038216611e215760405162461bcd60e51b815260040161061d9061407f565b611e2c8383836124d1565b611e37600082611cc2565b6001600160a01b0383166000908152600360205260408120805460019290611e609084906145ac565b90915550506001600160a01b0382166000908152600360205260408120805460019290611e8e9084906144e9565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611f066107f1565b9050600e548110611f1657600080fd5b611f1f3361255a565b15611f2957600080fd5b80611f3681336000612560565b6000828152600c602090815260409091208251611f599391929190910190612c1e565b506001600b600c6000848152602001908152602001600020604051611f7e9190613462565b908152604051908190036020019020805491151560ff199092169190911790556106d58382612699565b60008181805b82518160ff161015610c1d576030838260ff1681518110611fdf57634e487b7160e01b600052603260045260246000fd5b016020015160f81c1080159061202057506039838260ff168151811061201557634e487b7160e01b600052603260045260246000fd5b016020015160f81c11155b1561207657612030600a83614583565b91506030838260ff168151811061205757634e487b7160e01b600052603260045260246000fd5b0160200151612069919060f81c6145c3565b6120739083614501565b91505b806120808161468a565b915050611fae565b6060816120c9575060408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152610508565b8160005b81156120f357806120dd8161466f565b91506120ec9050600a83614526565b91506120cd565b60008167ffffffffffffffff81111561211c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612146576020820181803683370190505b5090505b8415611dba5761215b6001836145ac565b9150612168600a866146aa565b6121739060306144e9565b60f81b81838151811061219657634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506121d0600a86614526565b945061214a565b6000805b60125460ff8216101561228257826040516020016121f9919061322e565b6040516020818303038152906040528051906020012060128260ff168154811061223357634e487b7160e01b600052603260045260246000fd5b9060005260206000200160405160200161224d9190613462565b604051602081830303815290604052805190602001201415612270579050610508565b8061227a8161468a565b9150506121db565b50600080fd5b612293848484611dc2565b61229f84848484612785565b6117df5760405162461bcd60e51b815260040161061d90613fb4565b60608151600014156122dc5750604080516020810190915260008152610508565b600060405180606001604052806040815260200161472f604091399050600060038451600261230b91906144e9565b6123159190614526565b612320906004614564565b9050600061232f8260206144e9565b67ffffffffffffffff81111561235557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561237f576020820181803683370190505b509050818152600183018586518101602084015b818310156123ed5760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b93820193909352600401612393565b600389510660018114612407576002811461245157612479565b7f3d3d0000000000000000000000000000000000000000000000000000000000007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe830152612479565b7f3d000000000000000000000000000000000000000000000000000000000000006000198301525b509398975050505050505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b6124dc8383836106d5565b6001600160a01b0383166124f8576124f3816128d1565b61251b565b816001600160a01b0316836001600160a01b03161461251b5761251b8382612915565b6001600160a01b03821661253757612532816129b2565b6106d5565b826001600160a01b0316826001600160a01b0316146106d5576106d58282612a8b565b3b151590565b6060600a821061256f57600080fd5b60408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015260005b60088160ff16101561265357601080549060006125c28361466f565b9190505550600061271042448989896010546040516020016125e996959493929190613df3565b6040516020818303038152906040528051906020012060001c61260c91906146aa565b90508261261d8261ffff1684612acf565b60405160200161262e92919061324a565b604051602081830303815290604052925050808061264b9061468a565b9150506125a6565b50600b81604051612664919061322e565b9081526040519081900360200190205460ff1615611dba57612691858561268c8660016144e9565b612560565b915050611bf8565b6001600160a01b0382166126bf5760405162461bcd60e51b815260040161061d90614287565b6126c881611ca1565b156126e55760405162461bcd60e51b815260040161061d90614011565b6126f1600083836124d1565b6001600160a01b038216600090815260036020526040812080546001929061271a9084906144e9565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000612799846001600160a01b031661255a565b156128c657836001600160a01b031663150b7a026127b5611cbe565b8786866040518563ffffffff1660e01b81526004016127d79493929190613e55565b602060405180830381600087803b1580156127f157600080fd5b505af1925050508015612821575060408051601f3d908101601f1916820190925261281e91810190612f5f565b60015b61287b573d80801561284f576040519150601f19603f3d011682016040523d82523d6000602084013e612854565b606091505b5080516128735760405162461bcd60e51b815260040161061d90613fb4565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611dba565b506001949350505050565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6000600161292284610ea6565b61292c91906145ac565b60008381526007602052604090205490915080821461297f576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906129c4906001906145ac565b600083815260096020526040812054600880549394509092849081106129fa57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110612a2957634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612a6f57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612a9683610ea6565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60606000805b60138460ff1660088110612af957634e487b7160e01b600052603260045260246000fd5b015460ff8216101561228257600060138560ff1660088110612b2b57634e487b7160e01b600052603260045260246000fd5b018260ff1681548110612b4e57634e487b7160e01b600052603260045260246000fd5b90600052602060002090601091828204019190066002029054906101000a900461ffff1690508261ffff168610158015612b945750612b8d81846144cc565b61ffff1686105b15612baf57612ba58260ff16612088565b935050505061087e565b612bb981846144cc565b9250508080612bc79061468a565b915050612ad5565b50805460008255600402906000526020600020908101906107269190612ca2565b6040518061030001604052806018905b612c08612ce2565b815260200190600190039081612c005790505090565b828054612c2a90614612565b90600052602060002090601f016020900481019282612c4c5760008555612c92565b82601f10612c6557805160ff1916838001178555612c92565b82800160010185558215612c92579182015b82811115612c92578251825591602001919060010190612c77565b50612c9e929150612d01565b5090565b80821115612c9e576000612cb68282612d16565b612cc4600183016000612d16565b612cd2600283016000612d16565b5060006003820155600401612ca2565b6040518061030001604052806018906020820280368337509192915050565b5b80821115612c9e5760008155600101612d02565b508054612d2290614612565b6000825580601f10612d345750610726565b601f0160209004906000526020600020908101906107269190612d01565b600067ffffffffffffffff831115612d6c57612d6c6146ea565b612d7f6020601f19601f86011601614496565b9050828152838383011115612d9357600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461050857600080fd5b600082601f830112612dd1578081fd5b611bf883833560208501612d52565b600060208284031215612df1578081fd5b611bf882612daa565b60008060408385031215612e0c578081fd5b612e1583612daa565b9150612e2360208401612daa565b90509250929050565b600080600060608486031215612e40578081fd5b612e4984612daa565b9250612e5760208501612daa565b9150604084013590509250925092565b60008060008060808587031215612e7c578081fd5b612e8585612daa565b9350612e9360208601612daa565b925060408501359150606085013567ffffffffffffffff811115612eb5578182fd5b8501601f81018713612ec5578182fd5b612ed487823560208401612d52565b91505092959194509250565b60008060408385031215612ef2578182fd5b612efb83612daa565b915060208301358015158114612f0f578182fd5b809150509250929050565b60008060408385031215612f2c578182fd5b612f3583612daa565b946020939093013593505050565b600060208284031215612f54578081fd5b8135611bf881614700565b600060208284031215612f70578081fd5b8151611bf881614700565b600060208284031215612f8c578081fd5b813567ffffffffffffffff811115612fa2578182fd5b611dba84828501612dc1565b600060208284031215612fbf578081fd5b5035919050565b60008060408385031215612fd8578182fd5b8235915060208084013567ffffffffffffffff80821115612ff7578384fd5b818601915086601f83011261300a578384fd5b81358181111561301c5761301c6146ea565b6130298485830201614496565b81815284810190848601875b848110156130e657813587016080601f19828f0301121561305457898afd5b61305e6080614496565b898201358881111561306e578b8cfd5b61307c8f8c83860101612dc1565b825250604082013588811115613090578b8cfd5b61309e8f8c83860101612dc1565b8b830152506060820135888111156130b4578b8cfd5b6130c28f8c83860101612dc1565b60408301525060809190910135606082015284529287019290870190600101613035565b50979a909950975050505050505050565b60008060408385031215613109578182fd5b50508035926020909101359150565b600081518084526131308160208601602086016145e6565b601f01601f19169290920160200192915050565b80546000906002810460018083168061315e57607f831692505b602080841082141561317e57634e487b7160e01b86526022600452602486fd5b81801561319257600181146131a3576131d0565b60ff198616895284890196506131d0565b6131ac886144c0565b60005b868110156131c85781548b8201529085019083016131af565b505084890196505b50505050505092915050565b7f7d00000000000000000000000000000000000000000000000000000000000000815260010190565b7f3c2f673e3c2f7376673e000000000000000000000000000000000000000000008152600a0190565b600082516132408184602087016145e6565b9190910192915050565b6000835161325c8184602088016145e6565b8351908301906132708183602088016145e6565b01949350505050565b6000825161328b8184602087016145e6565b7f2c00000000000000000000000000000000000000000000000000000000000000920191825250600101919050565b600085516132cc818460208a016145e6565b7f3c7265637420636c6173733d2763000000000000000000000000000000000000908301908152855161330681600e840160208a016145e6565b7f2720783d27000000000000000000000000000000000000000000000000000000600e929091019182015284516133448160138401602089016145e6565b7f2720793d270000000000000000000000000000000000000000000000000000006013929091019182015283516133828160188401602088016145e6565b7f272f3e000000000000000000000000000000000000000000000000000000000060189290910191820152601b019695505050505050565b600084516133cc8184602089016145e6565b7f7b2274726169745f74797065223a220000000000000000000000000000000000908301908152613400600f820186613144565b90507f222c2276616c7565223a220000000000000000000000000000000000000000008152613432600b820185613144565b7f227d00000000000000000000000000000000000000000000000000000000000081526002019695505050505050565b6000611bf88284613144565b60007f3c7376672069643d2270616e64612d7376672220786d6c6e733d22687474703a82527f2f2f7777772e77332e6f72672f323030302f737667222070726573657276654160208301527f7370656374526174696f3d22784d696e594d696e206d6565742220766965774260408301527f6f783d22302030203234203234223e203c672069643d2270616e6461223e00006060830152855161351881607e850160208a016145e6565b85519083019061352f81607e840160208a016145e6565b855191019061354581607e8401602089016145e6565b7f3c7374796c653e202370616e6461207b207472616e73666f726d2d6f72696769607e92909101918201527f6e3a2063656e7465723b7d3c2f7374796c653e3c7374796c653e726563747b77609e8201527f696474683a3170783b6865696768743a3170783b7d202370616e64612d73766760be8201527f7b73686170652d72656e646572696e673a20637269737065646765733b7d202e60de8201527f6330307b66696c6c3a233030303030307d2e6330317b66696c6c3a234646464660fe8201527f46467d2e6330327b66696c6c3a234343303539357d2e6330337b66696c6c3a2361011e8201527f3030464646317d2e6330347b66696c6c3a233739344231317d2e6330357b666961013e8201527f6c6c3a233435323930357d2e6330367b66696c6c3a233437373736347d2e633061015e8201527f377b66696c6c3a234632453933427d2e6330387b66696c6c3a2333373337333761017e8201527f7d2e6330397b66696c6c3a234539443541427d2e6331307b66696c6c3a23424161019e8201527f373435347d2e6331317b66696c6c3a234646353030397d2e6331327b66696c6c6101be8201527f3a234646303834367d2e6331337b66696c6c3a234645303842387d2e6331347b6101de8201527f66696c6c3a234330303846467d2e6331357b66696c6c3a233732304546467d2e6101fe8201527f6331367b66696c6c3a233537353735377d2e6331377b66696c6c3a233046333761021e8201527f46467d2e6331387b66696c6c3a233046383746467d2e6331397b66696c6c3a2361023e8201527f3046443246437d2e6332307b66696c6c3a233132464638467d2e6332317b666961025e8201527f6c6c3a233842464631387d2e6332327b66696c6c3a234537424235417d2e633261027e8201527f337b66696c6c3a233939373131427d2e6332347b66696c6c3a2338303830383061029e8201527f7d2e6332357b66696c6c3a233630393442337d2e6332367b66696c6c3a2336306102be8201527f423341427d2e6332377b66696c6c3a233630423337427d2e6332387b66696c6c6102de8201527f3a233831423336307d2e6332397b66696c6c3a234141423336307d2e6333307b6102fe8201527f66696c6c3a234233393236307d2e6333317b66696c6c3a234233364336307d2e61031e8201527f6333327b66696c6c3a234145414541457d2e6333337b66696c6c3a233630383261033e8201527f42337d2e6333347b66696c6c3a233630363842337d2e6333357b66696c6c3a2361035e8201527f3735363042337d2e6333367b66696c6c3a233838363042337d2e6333377b666961037e8201527f6c6c3a234137363042337d2e6333387b66696c6c3a234233363039457d2e633361039e8201527f397b66696c6c3a234233363037357d2e6334307b66696c6c3a234441444144416103be8201527f7d2e6334317b66696c6c3a233342324232307d2e6334327b66696c6c3a2344316103de8201527f324132467d2e6334337b66696c6c3a234542453444387d2e6334347b66696c6c6103fe8201527f3a233241413739327d2e6334357b66696c6c3a233132314133337d2e6334367b61041e8201527f66696c6c3a234238443943457d2e6334377b66696c6c3a233744364538307d2e61043e8201527f6334387b66696c6c3a233944373430307d2e6334397b66696c6c3a233830423261045e8201527f46467d2e6335307b66696c6c3a234532354232367d2e6335317b66696c6c3a2361047e8201527f3643443846307d2e6335327b66696c6c3a233141394345377d2e6335337b666961049e8201527f6c6c3a233337303146307d2e6335347b66696c6c3a233731313545367d2e63356104be8201527f357b66696c6c3a234331303446417d2e6335367b66696c6c3a233632303031416104de8201527f7d2e6335377b66696c6c3a233932453532417d2e6335387b66696c6c3a2346426104fe8201527f454532357d2e6335397b66696c6c3a234644394530467d2e6336307b66696c6c61051e8201527f3a234634303931377d2e6336317b66696c6c3a234645303639457d203c2f737461053e8201527f796c653e0000000000000000000000000000000000000000000000000000000061055e820152613b73613b6e610562830186613144565b613205565b979650505050505050565b60007f7b226e616d65223a202242616d626f6f7a6c657220230000000000000000000082528451613bb68160168501602089016145e6565b7f222c20226465736372697074696f6e223a202242616d626f6f7a6c65727320696016918401918201527f73206120636f6c6c656374696f6e206f662031302c303030206f726967696e6160368201527f6c2070616e6461732067656e6572617465642031303025206f6e2d636861696e60568201527f2e204e6f20495046532c206e6f204150492e204e6f7720676f2042616d626f6f60768201527f7a6c6521222c2022696d616765223a2022646174613a696d6167652f7376672b60968201527f786d6c3b6261736536342c00000000000000000000000000000000000000000060b68201528451613cb18160c18401602089016145e6565b7f222c2261747472696275746573223a000000000000000000000000000000000060c192909101918201528351613cef8160d08401602088016145e6565b613b7360d0828401016131dc565b60007f5b0000000000000000000000000000000000000000000000000000000000000082528251613d358160018501602087016145e6565b7f5d000000000000000000000000000000000000000000000000000000000000006001939091019283015250600201919050565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000082528251613da181601d8501602087016145e6565b91909101601d0192915050565b60007f310000000000000000000000000000000000000000000000000000000000000082528251613de68160018501602087016145e6565b9190910160010192915050565b95865260208601949094526040850192909252606090811b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016908401526074830152609482015260b40190565b6001600160a01b0391909116815260200190565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613e876080830184613118565b9695505050505050565b6001600160a01b03929092168252602082015260400190565b6020808252825182820181905260009190848201906040850190845b81811015613ee257835183529284019291840191600101613ec6565b50909695505050505050565b901515815260200190565b600060208252611bf86020830184613118565b600060808252613f1f6080830187613118565b8281036020840152613f318187613118565b90508281036040840152613f458186613118565b91505082606083015295945050505050565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201527f74206f6620626f756e6473000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526014908201527f57616c6c6574206c696d69742072656163686564000000000000000000000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560408201527f7200000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201527f7574206f6620626f756e64730000000000000000000000000000000000000000606082015260800190565b90815260200190565b60405181810167ffffffffffffffff811182821017156144b8576144b86146ea565b604052919050565b60009081526020902090565b600061ffff808316818516808303821115613270576132706146be565b600082198211156144fc576144fc6146be565b500190565b600060ff821660ff84168060ff0382111561451e5761451e6146be565b019392505050565b600082614535576145356146d4565b500490565b600061ffff8083168185168183048111821515161561455b5761455b6146be565b02949350505050565b600081600019048311821515161561457e5761457e6146be565b500290565b600060ff821660ff84168160ff04811182151516156145a4576145a46146be565b029392505050565b6000828210156145be576145be6146be565b500390565b600060ff821660ff8416808210156145dd576145dd6146be565b90039392505050565b60005b838110156146015781810151838201526020016145e9565b838111156117df5750506000910152565b60028104600182168061462657607f821691505b6020821081141561464757634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff80831681811415614665576146656146be565b6001019392505050565b6000600019821415614683576146836146be565b5060010190565b600060ff821660ff8114156146a1576146a16146be565b60010192915050565b6000826146b9576146b96146d4565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461072657600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220d3a059033746c9cc3c33dea1fe185ee944b9c9b67c82110ef428c81fdf5136c564736f6c63430008000033
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.