ERC-721
Overview
Max Total Supply
587 PANDA
Holders
210
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
6 PANDALoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Pandamonium
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 10000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/** *Submitted for verification at Etherscan.io on 2021-08-27 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; contract OwnableDelegateProxy {} contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } contract Pandamonium is ERC721Enumerable, ReentrancyGuard, Ownable { uint256 public constant MINT_PRICE = 60000000000000000; //0.06 ETH address public pandaOwner = 0xa929c6573744901ad5143cC8338BeD6954AA0F17; address public genDeveloper = 0x95e9A96e8226ea899BBf7E5DDD4aBEEf87265fA4; address public developer = 0x23241Aa35579312f2694DfDe5E9180Bd84268EB8; address public charity1 = 0x2fCDcDC2f746E90696bae4688301923eF2bb99dD; // Code to Inspire address public charity2 = 0xaAd70f80E4D9d1a22058EAe42c4830978F91bEc2; // Tuna Panda Institute address public charity3 = 0xFA1Bd6F6F807b6327B9a4d4ce57A7916dB29c991; // Thousand Dreams Fund address public charity4 = 0xf22351dA9442aE96f6231c3178a686a6C64E7E90; // Wolf Conservation Center uint256 public constant MAX_SUPPLY = 8848; uint256 public maxMintPerTransaction = 15; // address proxyRegistryAddress = 0xF57B2c51dED3A29e6891aba85459d600256Cf317; //testnet address proxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1; //mainnet bool private _isPresaleActive; bool private _isSaleActive; mapping (address => bool) private presaleAddresses; address[] private addressses; string private _uri; string public provenanceUri = 'http://'; event MintPanda(address indexed to, uint256 indexed tokenId); constructor() ERC721("Pandamonium", "PANDA") { _isSaleActive = false; _isPresaleActive = false; initPresaleAddresses(); } function initPresaleAddresses() internal { addressses = [ 0x8f09cab21E32219618Ce302fC60abB9F4dfbb86D, 0xA4E6D415ceaB712B083DCC15a7Eb0D057D3c2D1B, 0x39a8c599E4a48910663543665d3095614EC2412E, 0x96EE4C272B6f8268b4fEF70Bb2983e4C6Ea8DF25, 0xa84544D65685a56590bE81DbdBcC9ADfdf0246cB, 0xD2707eC031B458B162fCa296aBC494433cdAFEA0, 0x638144eEe0ca1A5E38A1D8770C1b6C8A852C86fC, 0xF2c519b1633241cDdfE21CeCaE1A5B0FA4C776b3, 0x57C4EA109B8633066a01b676Dcc8216461fce588, 0x0Bc53A5225417682Cf22EDAC420E9D17b32EcC08, 0x08E9174944e6c611d24c7875C5Fa4D2C2F23C51C, 0x9b5146a53FA189102c17D711FbC222AAe72E0B60, 0x3a454148aF9667C8ffeefC0D9ff475d1bfdDd69B, 0x6750dAbfC98381f19Ce36eF8bF378C48e746F4c0, 0x30B8fB500C8501aCEC103DEd22E59eEAc83220d5, 0xFE8201Ce69A82DEa64e633eC37b0b719eD316402, 0x7E4a82326dCb5f40851Dcf67b145a3ee68Fb1d19, 0xF813E0de2293b487F75CaCA607290F3161944F3C, 0x8C8DC4132888B33fc1E7Eb99977b9d3596D7184a, 0x6141e46C7F82443438EC42cD68BDba0c5a6Fd4cF, 0xdEb6019B785AEFD31769b1Ac1f0081810fdE0faF, 0x2ee52488e2192FEd2B5474590A1CC8C95B2Bd6F6, 0x2BEa720a5fe5e7738d775e8BfD3a37Fa072Cd46c, 0x1001F890b3eafAF2CD2a982B0e3f33DabCe78fCD, 0xC81d405b17E3787F67BCF9fAe18Fd5920c1F2Ac0, 0x7E4a82326dCb5f40851Dcf67b145a3ee68Fb1d19, 0x579a28f0DC9800400234516499DEaA4DE5be0e25, 0xF6296a5adf7a0590D4E52Ac3d1977f6A3811E77e, 0xF13CCD4013DA3dc7b2dfbB2397dc9F5db8C1A44D, 0x30B8fB500C8501aCEC103DEd22E59eEAc83220d5, 0xEb4DD8F8ed49456a3dC3614bf38438E5DC49fdA3, 0x946F3dBEFB64a4D43987d06C3c7F2cb1E0ddB035, 0x2F7C2681d68F68f8A30015FC227B85e3189A6614, 0x6189717673E1ed5DA55080D0898C70F91d2784d0, 0x734F4229539926068952fbEff7A2B82b7a6ebC4E, 0xDB216E118c27f9809d38D4A51DE9A6Ecfbb55015, 0x1C90d76468176a0Caa4BaF141677f253F73c83C2, 0x0934e8E0310CC440F16B2543b2e22068d849a145, 0x4F234aE48179a51E02b0566E885fcc8a1487dB02, 0x9a837c9233BB02B44f60BF99bc14Bbf6223069B8, 0x561061001a697b58fA2b68602f15eAF2d903eecE, 0xE0661747d581f98B24f10b7C4dD271104965Ad1A, 0x5AE7cDf0f8d3e18600F0C3E0927391440e3014D8, 0x9751491718a5E029F47C2272A7f93Cb9AE233cb5, 0xDDE1B9F12e6FF68f35eC164Dc4A269beca33679b, 0x5C34E725CcA657F02C1D81fb16142F6F0067689b, 0x73A933ea8F818B2438627f220a5fc1b3D51c9dEc, 0x80040312D5B96eF9C459BDC68451aBA61eBFb7EF, 0xc9dF577d0b5d895b4304676c64fac66B41838FEF, 0x8dBAF8fce10Ac7B9cea9057bdec512d90b4BBF80, 0x630ce0e70B9A0e9d45d155b97CA974F96621df75, 0x5AE7cDf0f8d3e18600F0C3E0927391440e3014D8, 0xcfBc3F4675100801affE464281f08783946eD450, 0x9a837c9233BB02B44f60BF99bc14Bbf6223069B8, 0xB887A81683ed3cD4a5C0414C5456B6D7F0E11b00, 0x20a7854A37D095cffc69c075Bf133015FC5493Cb, 0x5AE7cDf0f8d3e18600F0C3E0927391440e3014D8, 0xB3bce45dc1B47D1733A08Bf040289eDbb1710ba8, 0x430f3b4D073111E170ebf06644208a57e048d2bc, 0xCDfB8A347211c95364Cca2177d82C18950A21c4b, 0xAf616d09D5eC4e1e1B094c16a2915370B9D16c1a, 0xb352668Ba98256C9e843c7A3Ba72e67164488678, 0x6b803123c5fb72b772f1326D3b80E4CC5b992A24, 0x5BBDA405FEB53fb457C086eD8A941e7535F6130C, 0x9BB53570a65D2AcF2D9D1A5fA7D26A38eCd3C3da, 0xD4F743AA0Ea73cf1b52aE27e17A653BE1370518F, 0xf1b4a98bcace7f362015c2bD245cC4bC6F3f7BF2, 0xe74a12e1bEFb0d65a399db1A6e231abD8Cf4E746, 0xbE6391E0aBb200c942eecFb24EB7910663aA7EdC, 0x0454C1bE4F5254c96cB124A75A6247a553BB58e1, 0xbFe8d5aBf248081FE03236E31EFdfdFE1562F9a2, 0x343f43F69b26F44CfC1206e5B11bC0BfB3a1188a, 0xed969ACA2BDc511798FB360a7bfBdfCB5B8BD915, 0x1d5C7762b24D6926276dBFC272883a9Fc0eCa8F7, 0x656e13f0B221232eF31a1b3d9F6C18a44A619f49, 0x2Fd0C9620B1c13Ffe6E4eAC4C3628e965aA71690, 0xbaEa9d7C1a93F05F075AC9fCc95b5Fe22103b77e, 0xB4B1F87A6C2C95726ca3aaF9E3a06142D78E3Ac4, 0x0C4311b49D33a74C9f50cD42796eFDcEe4468510, 0x9cBFC9Cda35D51f370a6148849b107Aa3cc5f745, 0x3359CaF7070784ccE146985E0fd4f54008C888FE, 0x217d83bbe3693365b6BD40f4Dd2019b4aA7C681B, 0x27eE8FA6a70a8F156008EDe28C7B8ea5F72fFdF3, 0xA7E3c6c2cB4C78C510Da6C84933CE021a9B18b0A, 0x06d0BDAEB64e50FB5068173E000e32599Ae6673B, 0xa0e1A25976Be2b9ea5Ec305dC332325311b0124c, 0x20Ee31efB8e96d346CeB065b993494D136368E96, 0x9Ee4Be040cB8D8cFe13753166D6d836B84A0d6cc, 0x1a7ef4089Fc9630299Ac3d54c478e365d3876650, 0x8011F9Bb55e6BEeC05BcE1e64Ff669eAC33afDa4, 0x1563Df6Ba2E1b577c27183e6fad8684890d35392, 0xA2fcc8CA6b9eA87ba805c739B73cB17B0FB45547, 0xDb21ee947CbA24dFF405ed5Ee33913af4C5f7C0b, 0x30645a0F9b93633453493cB4029Fa9f2a4e9460B, 0xF0bF1C59ee9b78A2Ce5763165e1B6B24Cb35fD8A, 0xe336647d97414E5613c31b321306708bE29B6E0c, 0x9A8b253C304b897AF8147143c5D0db4635E8c9C6, 0x048914A24912004ecaA6a99B7A4fb99A9d3931A0, 0x10325676aD2701cDE23bf33a2a1aa00c4811Be7c, 0x207f17204c721e0D5E4C390d0662d68e282556D1, 0xB8EF48e839E0D9c73bc2171618C1430a5Aa3F4Ce, 0x97143caB6EA99d22BdA159a12D126c30b0cFa354, 0x0b9c75E3786Fbe0c7c795C4fEe19111693b529C8, 0x279A3fdbD6d6252Afc5C422439C7D7859a51a05E, 0x773B5337c547CE517653D35783A4f0e404AC872F, 0xB7Ab0049084eb7022f1Dbfe74038d396c418d105, 0xf30B7aE9dC4AA57D81c06fc25FaB75ff5fab3c98, 0x8Cc8d899AA7334f530560fC0C053fB5C6CF5f443, 0xf30B7aE9dC4AA57D81c06fc25FaB75ff5fab3c98, 0x20Eb74972C7bb0b0a13b53e1b1b7A4203D001459, 0x6839d234CF9E308bbE63423D1BEC2Fe2465ceF9B, 0x93c22236CEc86c4451bf266218f8aB6216D7866f, 0x143E690D34d71c805c5443c5273ca921E5f47d61, 0xd8F3AE96340Ff800F687E001347A010b847643BF, 0x722b6b32E54Eb32108d838eb77D45322e3bD762e, 0x74Daf8b664a5769C6bb490965E97b22B5B216fD3, 0x3Fa3b6e00CFA24f5d37C03b37fcd2Fa5a0f700D0, 0xFa0990C4752F064f06B089272FB24B067dd5828E, 0xB89D16BEaC18E513743baa6a6E09F60460367aC8, 0xD2Dd52e3674E15fEC188345B1a090b887c25A25C, 0x4CE39Bd7b90194e43A379A35cd6d4ac0a4b965C5, 0x773B5337c547CE517653D35783A4f0e404AC872F, 0x1A86C1B2727cB9F5f077b47314312bb036F1A0cB, 0x616ed054e0e0fdbfCAd3fA2F42daeD3d7d4eE448, 0xDB216E118c27f9809d38D4A51DE9A6Ecfbb55015, 0xaD65B2126a56875A6107F7ebDEabC6a12Fd9ffAC, 0x94bf2eca7F8D4Bd7c85d5096Fb83C72CE6D3C08e, 0xfb82F8C838Ba2de8C8FABE225485656afce1Ed94, 0xbe017be2D41f3965Aab034d71316F7662F50E9fB, 0x8B83aA53DC74e3b54E9C4DE8349CdBB6d9D9C652, 0x5Ee076E6C335c191f26C95A15311de925069F46c, 0xC42066767ed03DB6d0A9A9436a2D34Ef6b07FA00, 0xC81d405b17E3787F67BCF9fAe18Fd5920c1F2Ac0, 0xdF269915Bc019A4305237007F1b418351252B43c, 0x170Fa4320CEd15ceadb2567c1f8Fe254A974Bf19, 0xfb1C7C10f8464AC675C071202bf2D1A4D5eECE24, 0x41285De3f6BeAEB89427421A5B71c4fe26604c6B, 0x5B5CCD33Def76122875B164D2AcD1D4e60dDF4Cd, 0x41DcfB129Bd1cB4215c18a3219698744Afb10F72 ]; for (uint i = 0; i < addressses.length; i++) { presaleAddresses[addressses[i]] = true; } } // @dev Returns the enabled/disabled status for presale function getPreSaleState() external view returns (bool) { return _isPresaleActive; } // @dev Returns the enabled/disabled status for minting function getSaleState() external view returns (bool) { return _isSaleActive; } // @dev Adds an address to presale whitelist // @param address: whitelisted address function addToPresale(address addr) external onlyOwner { presaleAddresses[addr] = true; } // @dev Adds an address to presale whitelist // @param address: whitelisted address function removeFromPresale(address addr) external onlyOwner { presaleAddresses[addr] = false; } // @dev Allows to set the baseURI dynamically // @param uri The base uri for the metadata store function setBaseURI(string memory uri) external onlyOwner { _uri = uri; } // @dev Update charity addresses // @param addr The address for the charity function setCharityAddress1(address addr) external onlyOwner { charity1 = addr; } function setCharityAddress2(address addr) external onlyOwner { charity2 = addr; } function setCharityAddress3(address addr) external onlyOwner { charity3 = addr; } function setCharityAddress4(address addr) external onlyOwner { charity4 = addr; } function setOwnerAddress4(address addr) external onlyOwner { pandaOwner = addr; } function setDeveloperAddress(address addr) external onlyOwner { developer = addr; } function setGenDeveloperAddress(address addr) external onlyOwner { genDeveloper = addr; } // @dev Allows to enable/disable minting of main sale function flipSaleState() external onlyOwner { _isSaleActive = !_isSaleActive; } function flipPreSaleState() external onlyOwner { _isPresaleActive = !_isPresaleActive; } // @dev Dynamically set the max mints a user can do in the main sale function setMaxMintPerTransaction(uint256 maxMint) external onlyOwner { maxMintPerTransaction = maxMint; } // @dev Presale Mint // @param tokenCount The tokens a user wants to purchase function mintPresale( uint256 tokenCount ) external nonReentrant payable { require(_isPresaleActive, "Presale not active"); require(!_isSaleActive, "Cannot mint while main sale is active"); require(totalSupply() + tokenCount <= MAX_SUPPLY); require(tokenCount > 0, "Must mint at least 1 token"); require(tokenCount <= maxMintPerTransaction, "Token count exceeds limit"); require((MINT_PRICE * tokenCount) <= msg.value, "ETH sent does not match required payment"); require(presaleAddresses[msg.sender], "Address not whitelisted"); _premint(msg.sender, tokenCount); } // @dev Main sale mint // @param tokenCount The tokens a user wants to purchase function mint(uint256 tokenCount) external nonReentrant payable { require(totalSupply() + tokenCount <= MAX_SUPPLY); require(_isSaleActive, "Sale not active"); require(tokenCount > 0, "Must mint at least 1 token"); require(tokenCount <= maxMintPerTransaction, "Token count exceeds limit"); require((MINT_PRICE * tokenCount) <= msg.value, "ETH sent does not match required payment"); _premint(msg.sender, tokenCount); } function _premint(address recipient, uint256 tokenCount) private { uint256 totalSupply = totalSupply(); for (uint256 i = 1; i <= tokenCount; i++) { uint256 tokenId = totalSupply + i; emit MintPanda(msg.sender, tokenId); _safeMint(recipient, tokenId); } } function mintOwner(uint256 tokenCount) public nonReentrant onlyOwner { require(totalSupply() + tokenCount <= MAX_SUPPLY); require(tokenCount > 0, "Must mint at least 1 token"); _premint(msg.sender, tokenCount); } function withdraw() public onlyOwner { uint256 balance = address(this).balance; payable(developer).transfer(balance * 10 / 100); // 10% payable(genDeveloper).transfer(balance * 3 / 100); // 3% payable(charity1).transfer(balance * 75 / 1000); // 7.5% payable(charity2).transfer(balance * 75 / 1000); payable(charity3).transfer(balance * 75 / 1000); payable(charity4).transfer(balance * 75 / 1000); payable(pandaOwner).transfer(balance * 57 / 100); } function _baseURI() internal view override returns (string memory) { return _uri; } /** * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings. */ function isApprovedForAll(address owner, address operator) override public view returns (bool) { // Whitelist OpenSea proxy contract for easy trading. ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); if (address(proxyRegistry.proxies(owner)) == operator) { return true; } return super.isApprovedForAll(owner, operator); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { 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 "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT 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 "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT 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 "../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); }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 10000 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
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":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"MintPanda","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"addToPresale","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":[],"name":"charity1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"charity2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"charity3","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"charity4","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"developer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipPreSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"genDeveloper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPreSaleState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSaleState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPerTransaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenCount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenCount","type":"uint256"}],"name":"mintOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenCount","type":"uint256"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pandaOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenanceUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"removeFromPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setCharityAddress1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setCharityAddress2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setCharityAddress3","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setCharityAddress4","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setDeveloperAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setGenDeveloperAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxMint","type":"uint256"}],"name":"setMaxMintPerTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setOwnerAddress4","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":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
600c80546001600160a01b031990811673a929c6573744901ad5143cc8338bed6954aa0f1717909155600d805482167395e9a96e8226ea899bbf7e5ddd4abeef87265fa4179055600e805482167323241aa35579312f2694dfde5e9180bd84268eb8179055600f80548216732fcdcdc2f746e90696bae4688301923ef2bb99dd17815560108054831673aad70f80e4d9d1a22058eae42c4830978f91bec217905560118054831673fa1bd6f6f807b6327b9a4d4ce57a7916db29c99117905560128054831673f22351da9442ae96f6231c3178a686a6c64e7e901790556013556014805490911673a5409ec958c83c3f309868babaca7c86dcb077c117905560c06040526007608081905266687474703a2f2f60c81b60a0908152620001299160189190620010b1565b503480156200013757600080fd5b50604080518082018252600b81526a50616e64616d6f6e69756d60a81b60208083019182528351808501909452600584526450414e444160d81b9084015281519192916200018891600091620010b1565b5080516200019e906001906020840190620010b1565b50506001600a5550620001b133620001cf565b6014805461ffff60a01b19169055620001c962000221565b6200122c565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040805161116081018252738f09cab21e32219618ce302fc60abb9f4dfbb86d815273a4e6d415ceab712b083dcc15a7eb0d057d3c2d1b60208201527339a8c599e4a48910663543665d3095614ec2412e918101919091527396ee4c272b6f8268b4fef70bb2983e4c6ea8df25606082015273a84544d65685a56590be81dbdbcc9adfdf0246cb608082015273d2707ec031b458b162fca296abc494433cdafea060a082015273638144eee0ca1a5e38a1d8770c1b6c8a852c86fc60c082015273f2c519b1633241cddfe21cecae1a5b0fa4c776b360e08201527357c4ea109b8633066a01b676dcc8216461fce588610100820152730bc53a5225417682cf22edac420e9d17b32ecc086101208201527308e9174944e6c611d24c7875c5fa4d2c2f23c51c610140820152739b5146a53fa189102c17d711fbc222aae72e0b60610160820152733a454148af9667c8ffeefc0d9ff475d1bfddd69b610180820152736750dabfc98381f19ce36ef8bf378c48e746f4c06101a08201527330b8fb500c8501acec103ded22e59eeac83220d56101c0820181905273fe8201ce69a82dea64e633ec37b0b719ed3164026101e0830152737e4a82326dcb5f40851dcf67b145a3ee68fb1d19610200830181905273f813e0de2293b487f75caca607290f3161944f3c610220840152738c8dc4132888b33fc1e7eb99977b9d3596d7184a610240840152736141e46c7f82443438ec42cd68bdba0c5a6fd4cf61026084015273deb6019b785aefd31769b1ac1f0081810fde0faf610280840152732ee52488e2192fed2b5474590a1cc8c95b2bd6f66102a0840152732bea720a5fe5e7738d775e8bfd3a37fa072cd46c6102c0840152731001f890b3eafaf2cd2a982b0e3f33dabce78fcd6102e084015273c81d405b17e3787f67bcf9fae18fd5920c1f2ac0610300840181905261032084019190915273579a28f0dc9800400234516499deaa4de5be0e2561034084015273f6296a5adf7a0590d4e52ac3d1977f6a3811e77e61036084015273f13ccd4013da3dc7b2dfbb2397dc9f5db8c1a44d6103808401526103a083019190915273eb4dd8f8ed49456a3dc3614bf38438e5dc49fda36103c083015273946f3dbefb64a4d43987d06c3c7f2cb1e0ddb0356103e0830152732f7c2681d68f68f8a30015fc227b85e3189a6614610400830152736189717673e1ed5da55080d0898c70f91d2784d061042083015273734f4229539926068952fbeff7a2b82b7a6ebc4e61044083015273db216e118c27f9809d38d4a51de9a6ecfbb550156104608301819052731c90d76468176a0caa4baf141677f253f73c83c2610480840152730934e8e0310cc440f16b2543b2e22068d849a1456104a0840152734f234ae48179a51e02b0566e885fcc8a1487db026104c0840152739a837c9233bb02b44f60bf99bc14bbf6223069b86104e0840181905273561061001a697b58fa2b68602f15eaf2d903eece61050085015273e0661747d581f98b24f10b7c4dd271104965ad1a610520850152735ae7cdf0f8d3e18600f0c3e0927391440e3014d86105408501819052739751491718a5e029f47c2272a7f93cb9ae233cb561056086015273dde1b9f12e6ff68f35ec164dc4a269beca33679b610580860152735c34e725cca657f02c1d81fb16142f6f0067689b6105a08601527373a933ea8f818b2438627f220a5fc1b3d51c9dec6105c08601527380040312d5b96ef9c459bdc68451aba61ebfb7ef6105e086015273c9df577d0b5d895b4304676c64fac66b41838fef610600860152738dbaf8fce10ac7b9cea9057bdec512d90b4bbf8061062086015273630ce0e70b9a0e9d45d155b97ca974f96621df75610640860152610660850181905273cfbc3f4675100801affe464281f08783946ed4506106808601526106a085019190915273b887a81683ed3cd4a5c0414c5456b6d7f0e11b006106c08501527320a7854a37d095cffc69c075bf133015fc5493cb6106e085015261070084015273b3bce45dc1b47d1733a08bf040289edbb1710ba861072084015273430f3b4d073111e170ebf06644208a57e048d2bc61074084015273cdfb8a347211c95364cca2177d82c18950a21c4b61076084015273af616d09d5ec4e1e1b094c16a2915370b9d16c1a61078084015273b352668ba98256c9e843c7a3ba72e671644886786107a0840152736b803123c5fb72b772f1326d3b80e4cc5b992a246107c0840152735bbda405feb53fb457c086ed8a941e7535f6130c6107e0840152739bb53570a65d2acf2d9d1a5fa7d26a38ecd3c3da61080084015273d4f743aa0ea73cf1b52ae27e17a653be1370518f61082084015273f1b4a98bcace7f362015c2bd245cc4bc6f3f7bf261084084015273e74a12e1befb0d65a399db1a6e231abd8cf4e74661086084015273be6391e0abb200c942eecfb24eb7910663aa7edc610880840152730454c1be4f5254c96cb124a75a6247a553bb58e16108a084015273bfe8d5abf248081fe03236e31efdfdfe1562f9a26108c084015273343f43f69b26f44cfc1206e5b11bc0bfb3a1188a6108e084015273ed969aca2bdc511798fb360a7bfbdfcb5b8bd915610900840152731d5c7762b24d6926276dbfc272883a9fc0eca8f761092084015273656e13f0b221232ef31a1b3d9f6c18a44a619f49610940840152732fd0c9620b1c13ffe6e4eac4c3628e965aa7169061096084015273baea9d7c1a93f05f075ac9fcc95b5fe22103b77e61098084015273b4b1f87a6c2c95726ca3aaf9e3a06142d78e3ac46109a0840152730c4311b49d33a74c9f50cd42796efdcee44685106109c0840152739cbfc9cda35d51f370a6148849b107aa3cc5f7456109e0840152733359caf7070784cce146985e0fd4f54008c888fe610a0084015273217d83bbe3693365b6bd40f4dd2019b4aa7c681b610a208401527327ee8fa6a70a8f156008ede28c7b8ea5f72ffdf3610a4084015273a7e3c6c2cb4c78c510da6c84933ce021a9b18b0a610a608401527306d0bdaeb64e50fb5068173e000e32599ae6673b610a8084015273a0e1a25976be2b9ea5ec305dc332325311b0124c610aa08401527320ee31efb8e96d346ceb065b993494d136368e96610ac0840152739ee4be040cb8d8cfe13753166d6d836b84a0d6cc610ae0840152731a7ef4089fc9630299ac3d54c478e365d3876650610b00840152738011f9bb55e6beec05bce1e64ff669eac33afda4610b20840152731563df6ba2e1b577c27183e6fad8684890d35392610b4084015273a2fcc8ca6b9ea87ba805c739b73cb17b0fb45547610b6084015273db21ee947cba24dff405ed5ee33913af4c5f7c0b610b808401527330645a0f9b93633453493cb4029fa9f2a4e9460b610ba084015273f0bf1c59ee9b78a2ce5763165e1b6b24cb35fd8a610bc084015273e336647d97414e5613c31b321306708be29b6e0c610be0840152739a8b253c304b897af8147143c5d0db4635e8c9c6610c0084015273048914a24912004ecaa6a99b7a4fb99a9d3931a0610c208401527310325676ad2701cde23bf33a2a1aa00c4811be7c610c4084015273207f17204c721e0d5e4c390d0662d68e282556d1610c6084015273b8ef48e839e0d9c73bc2171618c1430a5aa3f4ce610c808401527397143cab6ea99d22bda159a12d126c30b0cfa354610ca0840152730b9c75e3786fbe0c7c795c4fee19111693b529c8610cc084015273279a3fdbd6d6252afc5c422439c7d7859a51a05e610ce084015273773b5337c547ce517653d35783a4f0e404ac872f610d00840181905273b7ab0049084eb7022f1dbfe74038d396c418d105610d2085015273f30b7ae9dc4aa57d81c06fc25fab75ff5fab3c98610d408501819052738cc8d899aa7334f530560fc0c053fb5c6cf5f443610d60860152610d808501527320eb74972c7bb0b0a13b53e1b1b7a4203d001459610da0850152736839d234cf9e308bbe63423d1bec2fe2465cef9b610dc08501527393c22236cec86c4451bf266218f8ab6216d7866f610de085015273143e690d34d71c805c5443c5273ca921e5f47d61610e0085015273d8f3ae96340ff800f687e001347a010b847643bf610e2085015273722b6b32e54eb32108d838eb77d45322e3bd762e610e408501527374daf8b664a5769c6bb490965e97b22b5b216fd3610e60850152733fa3b6e00cfa24f5d37c03b37fcd2fa5a0f700d0610e8085015273fa0990c4752f064f06b089272fb24b067dd5828e610ea085015273b89d16beac18e513743baa6a6e09f60460367ac8610ec085015273d2dd52e3674e15fec188345b1a090b887c25a25c610ee0850152734ce39bd7b90194e43a379a35cd6d4ac0a4b965c5610f00850152610f20840152731a86c1b2727cb9f5f077b47314312bb036f1a0cb610f4084015273616ed054e0e0fdbfcad3fa2f42daed3d7d4ee448610f60840152610f8083015273ad65b2126a56875a6107f7ebdeabc6a12fd9ffac610fa08301527394bf2eca7f8d4bd7c85d5096fb83c72ce6d3c08e610fc083015273fb82f8c838ba2de8c8fabe225485656afce1ed94610fe083015273be017be2d41f3965aab034d71316f7662f50e9fb611000830152738b83aa53dc74e3b54e9c4de8349cdbb6d9d9c652611020830152735ee076e6c335c191f26c95a15311de925069f46c61104083015273c42066767ed03db6d0a9a9436a2d34ef6b07fa0061106083015261108082015273df269915bc019a4305237007f1b418351252b43c6110a082015273170fa4320ced15ceadb2567c1f8fe254a974bf196110c082015273fb1c7c10f8464ac675c071202bf2d1a4d5eece246110e08201527341285de3f6beaeb89427421a5b71c4fe26604c6b611100820152735b5ccd33def76122875b164d2acd1d4e60ddf4cd6111208201527341dcfb129bd1cb4215c18a3219698744afb10f726111408201526200103a90601690608b62001140565b5060005b601654811015620010ae576001601560006016848154811062001065576200106562001216565b6000918252602080832091909101546001600160a01b031683528201929092526040019020805460ff191691151591909117905580620010a581620011ec565b9150506200103e565b50565b828054620010bf90620011af565b90600052602060002090601f016020900481019282620010e357600085556200112e565b82601f10620010fe57805160ff19168380011785556200112e565b828001600101855582156200112e579182015b828111156200112e57825182559160200191906001019062001111565b506200113c92915062001198565b5090565b8280548282559060005260206000209081019282156200112e579160200282015b828111156200112e57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062001161565b5b808211156200113c576000815560010162001199565b600181811c90821680620011c457607f821691505b60208210811415620011e657634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156200120f57634e487b7160e01b600052601160045260246000fd5b5060010190565b634e487b7160e01b600052603260045260246000fd5b61381d806200123c6000396000f3fe60806040526004361061031e5760003560e01c806355f804b3116101a5578063c002d23d116100ec578063e48db4e511610095578063f03255491161006f578063f0325549146108b9578063f1b8c8d1146108ce578063f2fde38b146108ee578063f759867a1461090e57600080fd5b8063e48db4e514610859578063e985e9c514610879578063eea957db1461089957600080fd5b8063d6669543116100c6578063d6669543146107f9578063dcc345f214610819578063e32d271d1461083957600080fd5b8063c002d23d1461079e578063c87b56dd146107b9578063ca4b208b146107d957600080fd5b8063937745041161014e578063a22cb46511610128578063a22cb4651461073e578063ab7658c41461075e578063b88d4fde1461077e57600080fd5b806393774504146106f657806395d89b4114610716578063a0712d681461072b57600080fd5b8063715018a61161017f578063715018a6146106a35780638166f39b146106b85780638da5cb5b146106d857600080fd5b806355f804b3146106435780636352211e1461066357806370a082311461068357600080fd5b80632e6cebe5116102695780633ccfd60b116102125780634f6ccce7116101ec5780634f6ccce7146105d3578063500b9f44146105f357806350e81fe31461062357600080fd5b80633ccfd60b1461058957806342842e0e1461059e5780634d416716146105be57600080fd5b806333f88d221161024357806333f88d221461053457806334918dfd146105545780633beac5c11461056957600080fd5b80632e6cebe5146104de5780632f745c59146104fe57806332cb6b0c1461051e57600080fd5b8063095ea7b3116102cb57806323b872dd116102a557806323b872dd1461046d57806325bdb2a81461048d5780632de1878a146104be57600080fd5b8063095ea7b31461041857806318160ddd146104385780631e4608df1461044d57600080fd5b806306fdde03116102fc57806306fdde031461039e578063080fbf64146103c0578063081812fc146103f857600080fd5b806301f569971461032357806301ffc9a71461034c57806304e140dc1461037c575b600080fd5b34801561032f57600080fd5b5061033960135481565b6040519081526020015b60405180910390f35b34801561035857600080fd5b5061036c6103673660046133eb565b610921565b6040519015158152602001610343565b34801561038857600080fd5b5061039c610397366004613275565b61097d565b005b3480156103aa57600080fd5b506103b3610a16565b6040516103439190613559565b3480156103cc57600080fd5b506011546103e0906001600160a01b031681565b6040516001600160a01b039091168152602001610343565b34801561040457600080fd5b506103e061041336600461348b565b610aa8565b34801561042457600080fd5b5061039c6104333660046133bf565b610b4e565b34801561044457600080fd5b50600854610339565b34801561045957600080fd5b50600f546103e0906001600160a01b031681565b34801561047957600080fd5b5061039c6104883660046132cb565b610c80565b34801561049957600080fd5b506014547501000000000000000000000000000000000000000000900460ff1661036c565b3480156104ca57600080fd5b506012546103e0906001600160a01b031681565b3480156104ea57600080fd5b5061039c6104f936600461348b565b610d07565b34801561050a57600080fd5b506103396105193660046133bf565b610d66565b34801561052a57600080fd5b5061033961229081565b34801561054057600080fd5b5061039c61054f36600461348b565b610e0e565b34801561056057600080fd5b5061039c610f44565b34801561057557600080fd5b5061039c610584366004613275565b610fec565b34801561059557600080fd5b5061039c611080565b3480156105aa57600080fd5b5061039c6105b93660046132cb565b61130c565b3480156105ca57600080fd5b506103b3611327565b3480156105df57600080fd5b506103396105ee36600461348b565b6113b5565b3480156105ff57600080fd5b5060145474010000000000000000000000000000000000000000900460ff1661036c565b34801561062f57600080fd5b50600c546103e0906001600160a01b031681565b34801561064f57600080fd5b5061039c61065e366004613442565b611459565b34801561066f57600080fd5b506103e061067e36600461348b565b6114c6565b34801561068f57600080fd5b5061033961069e366004613275565b611551565b3480156106af57600080fd5b5061039c6115eb565b3480156106c457600080fd5b5061039c6106d3366004613275565b611651565b3480156106e457600080fd5b50600b546001600160a01b03166103e0565b34801561070257600080fd5b5061039c610711366004613275565b6116ea565b34801561072257600080fd5b506103b361177e565b61039c61073936600461348b565b61178d565b34801561074a57600080fd5b5061039c61075936600461338c565b61199a565b34801561076a57600080fd5b5061039c610779366004613275565b611a7d565b34801561078a57600080fd5b5061039c61079936600461330c565b611b11565b3480156107aa57600080fd5b5061033966d529ae9e86000081565b3480156107c557600080fd5b506103b36107d436600461348b565b611b9f565b3480156107e557600080fd5b50600e546103e0906001600160a01b031681565b34801561080557600080fd5b506010546103e0906001600160a01b031681565b34801561082557600080fd5b5061039c610834366004613275565b611c88565b34801561084557600080fd5b5061039c610854366004613275565b611d1c565b34801561086557600080fd5b50600d546103e0906001600160a01b031681565b34801561088557600080fd5b5061036c610894366004613292565b611db0565b3480156108a557600080fd5b5061039c6108b4366004613275565b611e99565b3480156108c557600080fd5b5061039c611f2d565b3480156108da57600080fd5b5061039c6108e9366004613275565b611fd4565b3480156108fa57600080fd5b5061039c610909366004613275565b612070565b61039c61091c36600461348b565b612152565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000148061097757506109778261244f565b92915050565b600b546001600160a01b031633146109dc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600c80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b606060008054610a2590613618565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5190613618565b8015610a9e5780601f10610a7357610100808354040283529160200191610a9e565b820191906000526020600020905b815481529060010190602001808311610a8157829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610b325760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084016109d3565b506000908152600460205260409020546001600160a01b031690565b6000610b59826114c6565b9050806001600160a01b0316836001600160a01b03161415610be35760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016109d3565b336001600160a01b0382161480610bff5750610bff8133611db0565b610c715760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109d3565b610c7b8383612532565b505050565b610c8a33826125b8565b610cfc5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016109d3565b610c7b838383612698565b600b546001600160a01b03163314610d615760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b601355565b6000610d7183611551565b8210610de55760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e647300000000000000000000000000000000000000000060648201526084016109d3565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6002600a541415610e615760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109d3565b6002600a55600b546001600160a01b03163314610ec05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b61229081610ecd60085490565b610ed7919061356c565b1115610ee257600080fd5b60008111610f325760405162461bcd60e51b815260206004820152601a60248201527f4d757374206d696e74206174206c65617374203120746f6b656e00000000000060448201526064016109d3565b610f3c3382612888565b506001600a55565b600b546001600160a01b03163314610f9e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b601480547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff811675010000000000000000000000000000000000000000009182900460ff1615909102179055565b600b546001600160a01b031633146110465760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b601080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b600b546001600160a01b031633146110da5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b600e5447906001600160a01b03166108fc60646110f884600a613598565b6111029190613584565b6040518115909202916000818181858888f1935050505015801561112a573d6000803e3d6000fd5b50600d546001600160a01b03166108fc6064611147846003613598565b6111519190613584565b6040518115909202916000818181858888f19350505050158015611179573d6000803e3d6000fd5b50600f546001600160a01b03166108fc6103e861119784604b613598565b6111a19190613584565b6040518115909202916000818181858888f193505050501580156111c9573d6000803e3d6000fd5b506010546001600160a01b03166108fc6103e86111e784604b613598565b6111f19190613584565b6040518115909202916000818181858888f19350505050158015611219573d6000803e3d6000fd5b506011546001600160a01b03166108fc6103e861123784604b613598565b6112419190613584565b6040518115909202916000818181858888f19350505050158015611269573d6000803e3d6000fd5b506012546001600160a01b03166108fc6103e861128784604b613598565b6112919190613584565b6040518115909202916000818181858888f193505050501580156112b9573d6000803e3d6000fd5b50600c546001600160a01b03166108fc60646112d6846039613598565b6112e09190613584565b6040518115909202916000818181858888f19350505050158015611308573d6000803e3d6000fd5b5050565b610c7b83838360405180602001604052806000815250611b11565b6018805461133490613618565b80601f016020809104026020016040519081016040528092919081815260200182805461136090613618565b80156113ad5780601f10611382576101008083540402835291602001916113ad565b820191906000526020600020905b81548152906001019060200180831161139057829003601f168201915b505050505081565b60006113c060085490565b82106114345760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e6473000000000000000000000000000000000000000060648201526084016109d3565b6008828154811061144757611447613746565b90600052602060002001549050919050565b600b546001600160a01b031633146114b35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b8051611308906017906020840190613148565b6000818152600260205260408120546001600160a01b0316806109775760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016109d3565b60006001600160a01b0382166115cf5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016109d3565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b031633146116455760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b61164f60006128f8565b565b600b546001600160a01b031633146116ab5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b6001600160a01b0316600090815260156020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b600b546001600160a01b031633146117445760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b600d80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b606060018054610a2590613618565b6002600a5414156117e05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109d3565b6002600a55612290816117f260085490565b6117fc919061356c565b111561180757600080fd5b6014547501000000000000000000000000000000000000000000900460ff166118725760405162461bcd60e51b815260206004820152600f60248201527f53616c65206e6f7420616374697665000000000000000000000000000000000060448201526064016109d3565b600081116118c25760405162461bcd60e51b815260206004820152601a60248201527f4d757374206d696e74206174206c65617374203120746f6b656e00000000000060448201526064016109d3565b6013548111156119145760405162461bcd60e51b815260206004820152601960248201527f546f6b656e20636f756e742065786365656473206c696d69740000000000000060448201526064016109d3565b346119268266d529ae9e860000613598565b1115610f325760405162461bcd60e51b815260206004820152602860248201527f4554482073656e7420646f6573206e6f74206d6174636820726571756972656460448201527f207061796d656e7400000000000000000000000000000000000000000000000060648201526084016109d3565b6001600160a01b0382163314156119f35760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109d3565b3360008181526005602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600b546001600160a01b03163314611ad75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b601280547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b611b1b33836125b8565b611b8d5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016109d3565b611b9984848484612962565b50505050565b6000818152600260205260409020546060906001600160a01b0316611c2c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016109d3565b6000611c366129eb565b90506000815111611c565760405180602001604052806000815250611c81565b80611c60846129fa565b604051602001611c719291906134ee565b6040516020818303038152906040525b9392505050565b600b546001600160a01b03163314611ce25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b600e80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b600b546001600160a01b03163314611d765760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b600f80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6014546040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b158015611e1657600080fd5b505afa158015611e2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e4e9190613425565b6001600160a01b03161415611e67576001915050610977565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b600b546001600160a01b03163314611ef35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b601180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b600b546001600160a01b03163314611f875760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b601480547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff8116740100000000000000000000000000000000000000009182900460ff1615909102179055565b600b546001600160a01b0316331461202e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b6001600160a01b0316600090815260156020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b600b546001600160a01b031633146120ca5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b6001600160a01b0381166121465760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016109d3565b61214f816128f8565b50565b6002600a5414156121a55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109d3565b6002600a5560145474010000000000000000000000000000000000000000900460ff166122145760405162461bcd60e51b815260206004820152601260248201527f50726573616c65206e6f7420616374697665000000000000000000000000000060448201526064016109d3565b6014547501000000000000000000000000000000000000000000900460ff16156122a65760405162461bcd60e51b815260206004820152602560248201527f43616e6e6f74206d696e74207768696c65206d61696e2073616c65206973206160448201527f637469766500000000000000000000000000000000000000000000000000000060648201526084016109d3565b612290816122b360085490565b6122bd919061356c565b11156122c857600080fd5b600081116123185760405162461bcd60e51b815260206004820152601a60248201527f4d757374206d696e74206174206c65617374203120746f6b656e00000000000060448201526064016109d3565b60135481111561236a5760405162461bcd60e51b815260206004820152601960248201527f546f6b656e20636f756e742065786365656473206c696d69740000000000000060448201526064016109d3565b3461237c8266d529ae9e860000613598565b11156123f05760405162461bcd60e51b815260206004820152602860248201527f4554482073656e7420646f6573206e6f74206d6174636820726571756972656460448201527f207061796d656e7400000000000000000000000000000000000000000000000060648201526084016109d3565b3360009081526015602052604090205460ff16610f325760405162461bcd60e51b815260206004820152601760248201527f41646472657373206e6f742077686974656c697374656400000000000000000060448201526064016109d3565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806124e257507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061097757507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610977565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038416908117909155819061257f826114c6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166126425760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084016109d3565b600061264d836114c6565b9050806001600160a01b0316846001600160a01b031614806126885750836001600160a01b031661267d84610aa8565b6001600160a01b0316145b80611e915750611e918185611db0565b826001600160a01b03166126ab826114c6565b6001600160a01b0316146127275760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e000000000000000000000000000000000000000000000060648201526084016109d3565b6001600160a01b0382166127a25760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016109d3565b6127ad838383612b2c565b6127b8600082612532565b6001600160a01b03831660009081526003602052604081208054600192906127e19084906135d5565b90915550506001600160a01b038216600090815260036020526040812080546001929061280f90849061356c565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061289360085490565b905060015b828111611b995760006128ab828461356c565b604051909150819033907ff6cd72b1c6651a7a4566b5738715169db25b62aa724163d5b4ce0d2eb2f244f190600090a36128e58582612be4565b50806128f08161366c565b915050612898565b600b80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61296d848484612698565b61297984848484612bfe565b611b995760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109d3565b606060178054610a2590613618565b606081612a3a57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612a645780612a4e8161366c565b9150612a5d9050600a83613584565b9150612a3e565b60008167ffffffffffffffff811115612a7f57612a7f613775565b6040519080825280601f01601f191660200182016040528015612aa9576020820181803683370190505b5090505b8415611e9157612abe6001836135d5565b9150612acb600a866136a5565b612ad690603061356c565b60f81b818381518110612aeb57612aeb613746565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612b25600a86613584565b9450612aad565b6001600160a01b038316612b8757612b8281600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612baa565b816001600160a01b0316836001600160a01b031614612baa57612baa8382612dc9565b6001600160a01b038216612bc157610c7b81612e66565b826001600160a01b0316826001600160a01b031614610c7b57610c7b8282612f15565b611308828260405180602001604052806000815250612f59565b60006001600160a01b0384163b15612dbe576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612c5b90339089908890889060040161351d565b602060405180830381600087803b158015612c7557600080fd5b505af1925050508015612cc3575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252612cc091810190613408565b60015b612d73573d808015612cf1576040519150601f19603f3d011682016040523d82523d6000602084013e612cf6565b606091505b508051612d6b5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109d3565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611e91565b506001949350505050565b60006001612dd684611551565b612de091906135d5565b600083815260076020526040902054909150808214612e33576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612e78906001906135d5565b60008381526009602052604081205460088054939450909284908110612ea057612ea0613746565b906000526020600020015490508060088381548110612ec157612ec1613746565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612ef957612ef9613717565b6001900381819060005260206000200160009055905550505050565b6000612f2083611551565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b612f638383612fe2565b612f706000848484612bfe565b610c7b5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109d3565b6001600160a01b0382166130385760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109d3565b6000818152600260205260409020546001600160a01b03161561309d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109d3565b6130a960008383612b2c565b6001600160a01b03821660009081526003602052604081208054600192906130d290849061356c565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461315490613618565b90600052602060002090601f01602090048101928261317657600085556131bc565b82601f1061318f57805160ff19168380011785556131bc565b828001600101855582156131bc579182015b828111156131bc5782518255916020019190600101906131a1565b506131c89291506131cc565b5090565b5b808211156131c857600081556001016131cd565b600067ffffffffffffffff808411156131fc576131fc613775565b604051601f85017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190828211818310171561324257613242613775565b8160405280935085815286868601111561325b57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561328757600080fd5b8135611c81816137a4565b600080604083850312156132a557600080fd5b82356132b0816137a4565b915060208301356132c0816137a4565b809150509250929050565b6000806000606084860312156132e057600080fd5b83356132eb816137a4565b925060208401356132fb816137a4565b929592945050506040919091013590565b6000806000806080858703121561332257600080fd5b843561332d816137a4565b9350602085013561333d816137a4565b925060408501359150606085013567ffffffffffffffff81111561336057600080fd5b8501601f8101871361337157600080fd5b613380878235602084016131e1565b91505092959194509250565b6000806040838503121561339f57600080fd5b82356133aa816137a4565b9150602083013580151581146132c057600080fd5b600080604083850312156133d257600080fd5b82356133dd816137a4565b946020939093013593505050565b6000602082840312156133fd57600080fd5b8135611c81816137b9565b60006020828403121561341a57600080fd5b8151611c81816137b9565b60006020828403121561343757600080fd5b8151611c81816137a4565b60006020828403121561345457600080fd5b813567ffffffffffffffff81111561346b57600080fd5b8201601f8101841361347c57600080fd5b611e91848235602084016131e1565b60006020828403121561349d57600080fd5b5035919050565b600081518084526134bc8160208601602086016135ec565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600083516135008184602088016135ec565b8351908301906135148183602088016135ec565b01949350505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261354f60808301846134a4565b9695505050505050565b602081526000611c8160208301846134a4565b6000821982111561357f5761357f6136b9565b500190565b600082613593576135936136e8565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156135d0576135d06136b9565b500290565b6000828210156135e7576135e76136b9565b500390565b60005b838110156136075781810151838201526020016135ef565b83811115611b995750506000910152565b600181811c9082168061362c57607f821691505b60208210811415613666577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561369e5761369e6136b9565b5060010190565b6000826136b4576136b46136e8565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6001600160a01b038116811461214f57600080fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461214f57600080fdfea26469706673582212208ae619d6a2f2df23e4576cb4cc3abbd2e285d994e2f6e33806286208c4aac44f64736f6c63430008070033
Deployed Bytecode
0x60806040526004361061031e5760003560e01c806355f804b3116101a5578063c002d23d116100ec578063e48db4e511610095578063f03255491161006f578063f0325549146108b9578063f1b8c8d1146108ce578063f2fde38b146108ee578063f759867a1461090e57600080fd5b8063e48db4e514610859578063e985e9c514610879578063eea957db1461089957600080fd5b8063d6669543116100c6578063d6669543146107f9578063dcc345f214610819578063e32d271d1461083957600080fd5b8063c002d23d1461079e578063c87b56dd146107b9578063ca4b208b146107d957600080fd5b8063937745041161014e578063a22cb46511610128578063a22cb4651461073e578063ab7658c41461075e578063b88d4fde1461077e57600080fd5b806393774504146106f657806395d89b4114610716578063a0712d681461072b57600080fd5b8063715018a61161017f578063715018a6146106a35780638166f39b146106b85780638da5cb5b146106d857600080fd5b806355f804b3146106435780636352211e1461066357806370a082311461068357600080fd5b80632e6cebe5116102695780633ccfd60b116102125780634f6ccce7116101ec5780634f6ccce7146105d3578063500b9f44146105f357806350e81fe31461062357600080fd5b80633ccfd60b1461058957806342842e0e1461059e5780634d416716146105be57600080fd5b806333f88d221161024357806333f88d221461053457806334918dfd146105545780633beac5c11461056957600080fd5b80632e6cebe5146104de5780632f745c59146104fe57806332cb6b0c1461051e57600080fd5b8063095ea7b3116102cb57806323b872dd116102a557806323b872dd1461046d57806325bdb2a81461048d5780632de1878a146104be57600080fd5b8063095ea7b31461041857806318160ddd146104385780631e4608df1461044d57600080fd5b806306fdde03116102fc57806306fdde031461039e578063080fbf64146103c0578063081812fc146103f857600080fd5b806301f569971461032357806301ffc9a71461034c57806304e140dc1461037c575b600080fd5b34801561032f57600080fd5b5061033960135481565b6040519081526020015b60405180910390f35b34801561035857600080fd5b5061036c6103673660046133eb565b610921565b6040519015158152602001610343565b34801561038857600080fd5b5061039c610397366004613275565b61097d565b005b3480156103aa57600080fd5b506103b3610a16565b6040516103439190613559565b3480156103cc57600080fd5b506011546103e0906001600160a01b031681565b6040516001600160a01b039091168152602001610343565b34801561040457600080fd5b506103e061041336600461348b565b610aa8565b34801561042457600080fd5b5061039c6104333660046133bf565b610b4e565b34801561044457600080fd5b50600854610339565b34801561045957600080fd5b50600f546103e0906001600160a01b031681565b34801561047957600080fd5b5061039c6104883660046132cb565b610c80565b34801561049957600080fd5b506014547501000000000000000000000000000000000000000000900460ff1661036c565b3480156104ca57600080fd5b506012546103e0906001600160a01b031681565b3480156104ea57600080fd5b5061039c6104f936600461348b565b610d07565b34801561050a57600080fd5b506103396105193660046133bf565b610d66565b34801561052a57600080fd5b5061033961229081565b34801561054057600080fd5b5061039c61054f36600461348b565b610e0e565b34801561056057600080fd5b5061039c610f44565b34801561057557600080fd5b5061039c610584366004613275565b610fec565b34801561059557600080fd5b5061039c611080565b3480156105aa57600080fd5b5061039c6105b93660046132cb565b61130c565b3480156105ca57600080fd5b506103b3611327565b3480156105df57600080fd5b506103396105ee36600461348b565b6113b5565b3480156105ff57600080fd5b5060145474010000000000000000000000000000000000000000900460ff1661036c565b34801561062f57600080fd5b50600c546103e0906001600160a01b031681565b34801561064f57600080fd5b5061039c61065e366004613442565b611459565b34801561066f57600080fd5b506103e061067e36600461348b565b6114c6565b34801561068f57600080fd5b5061033961069e366004613275565b611551565b3480156106af57600080fd5b5061039c6115eb565b3480156106c457600080fd5b5061039c6106d3366004613275565b611651565b3480156106e457600080fd5b50600b546001600160a01b03166103e0565b34801561070257600080fd5b5061039c610711366004613275565b6116ea565b34801561072257600080fd5b506103b361177e565b61039c61073936600461348b565b61178d565b34801561074a57600080fd5b5061039c61075936600461338c565b61199a565b34801561076a57600080fd5b5061039c610779366004613275565b611a7d565b34801561078a57600080fd5b5061039c61079936600461330c565b611b11565b3480156107aa57600080fd5b5061033966d529ae9e86000081565b3480156107c557600080fd5b506103b36107d436600461348b565b611b9f565b3480156107e557600080fd5b50600e546103e0906001600160a01b031681565b34801561080557600080fd5b506010546103e0906001600160a01b031681565b34801561082557600080fd5b5061039c610834366004613275565b611c88565b34801561084557600080fd5b5061039c610854366004613275565b611d1c565b34801561086557600080fd5b50600d546103e0906001600160a01b031681565b34801561088557600080fd5b5061036c610894366004613292565b611db0565b3480156108a557600080fd5b5061039c6108b4366004613275565b611e99565b3480156108c557600080fd5b5061039c611f2d565b3480156108da57600080fd5b5061039c6108e9366004613275565b611fd4565b3480156108fa57600080fd5b5061039c610909366004613275565b612070565b61039c61091c36600461348b565b612152565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000148061097757506109778261244f565b92915050565b600b546001600160a01b031633146109dc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600c80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b606060008054610a2590613618565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5190613618565b8015610a9e5780601f10610a7357610100808354040283529160200191610a9e565b820191906000526020600020905b815481529060010190602001808311610a8157829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610b325760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084016109d3565b506000908152600460205260409020546001600160a01b031690565b6000610b59826114c6565b9050806001600160a01b0316836001600160a01b03161415610be35760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016109d3565b336001600160a01b0382161480610bff5750610bff8133611db0565b610c715760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109d3565b610c7b8383612532565b505050565b610c8a33826125b8565b610cfc5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016109d3565b610c7b838383612698565b600b546001600160a01b03163314610d615760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b601355565b6000610d7183611551565b8210610de55760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e647300000000000000000000000000000000000000000060648201526084016109d3565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6002600a541415610e615760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109d3565b6002600a55600b546001600160a01b03163314610ec05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b61229081610ecd60085490565b610ed7919061356c565b1115610ee257600080fd5b60008111610f325760405162461bcd60e51b815260206004820152601a60248201527f4d757374206d696e74206174206c65617374203120746f6b656e00000000000060448201526064016109d3565b610f3c3382612888565b506001600a55565b600b546001600160a01b03163314610f9e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b601480547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff811675010000000000000000000000000000000000000000009182900460ff1615909102179055565b600b546001600160a01b031633146110465760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b601080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b600b546001600160a01b031633146110da5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b600e5447906001600160a01b03166108fc60646110f884600a613598565b6111029190613584565b6040518115909202916000818181858888f1935050505015801561112a573d6000803e3d6000fd5b50600d546001600160a01b03166108fc6064611147846003613598565b6111519190613584565b6040518115909202916000818181858888f19350505050158015611179573d6000803e3d6000fd5b50600f546001600160a01b03166108fc6103e861119784604b613598565b6111a19190613584565b6040518115909202916000818181858888f193505050501580156111c9573d6000803e3d6000fd5b506010546001600160a01b03166108fc6103e86111e784604b613598565b6111f19190613584565b6040518115909202916000818181858888f19350505050158015611219573d6000803e3d6000fd5b506011546001600160a01b03166108fc6103e861123784604b613598565b6112419190613584565b6040518115909202916000818181858888f19350505050158015611269573d6000803e3d6000fd5b506012546001600160a01b03166108fc6103e861128784604b613598565b6112919190613584565b6040518115909202916000818181858888f193505050501580156112b9573d6000803e3d6000fd5b50600c546001600160a01b03166108fc60646112d6846039613598565b6112e09190613584565b6040518115909202916000818181858888f19350505050158015611308573d6000803e3d6000fd5b5050565b610c7b83838360405180602001604052806000815250611b11565b6018805461133490613618565b80601f016020809104026020016040519081016040528092919081815260200182805461136090613618565b80156113ad5780601f10611382576101008083540402835291602001916113ad565b820191906000526020600020905b81548152906001019060200180831161139057829003601f168201915b505050505081565b60006113c060085490565b82106114345760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e6473000000000000000000000000000000000000000060648201526084016109d3565b6008828154811061144757611447613746565b90600052602060002001549050919050565b600b546001600160a01b031633146114b35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b8051611308906017906020840190613148565b6000818152600260205260408120546001600160a01b0316806109775760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016109d3565b60006001600160a01b0382166115cf5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016109d3565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b031633146116455760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b61164f60006128f8565b565b600b546001600160a01b031633146116ab5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b6001600160a01b0316600090815260156020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b600b546001600160a01b031633146117445760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b600d80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b606060018054610a2590613618565b6002600a5414156117e05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109d3565b6002600a55612290816117f260085490565b6117fc919061356c565b111561180757600080fd5b6014547501000000000000000000000000000000000000000000900460ff166118725760405162461bcd60e51b815260206004820152600f60248201527f53616c65206e6f7420616374697665000000000000000000000000000000000060448201526064016109d3565b600081116118c25760405162461bcd60e51b815260206004820152601a60248201527f4d757374206d696e74206174206c65617374203120746f6b656e00000000000060448201526064016109d3565b6013548111156119145760405162461bcd60e51b815260206004820152601960248201527f546f6b656e20636f756e742065786365656473206c696d69740000000000000060448201526064016109d3565b346119268266d529ae9e860000613598565b1115610f325760405162461bcd60e51b815260206004820152602860248201527f4554482073656e7420646f6573206e6f74206d6174636820726571756972656460448201527f207061796d656e7400000000000000000000000000000000000000000000000060648201526084016109d3565b6001600160a01b0382163314156119f35760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109d3565b3360008181526005602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600b546001600160a01b03163314611ad75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b601280547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b611b1b33836125b8565b611b8d5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016109d3565b611b9984848484612962565b50505050565b6000818152600260205260409020546060906001600160a01b0316611c2c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016109d3565b6000611c366129eb565b90506000815111611c565760405180602001604052806000815250611c81565b80611c60846129fa565b604051602001611c719291906134ee565b6040516020818303038152906040525b9392505050565b600b546001600160a01b03163314611ce25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b600e80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b600b546001600160a01b03163314611d765760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b600f80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6014546040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b158015611e1657600080fd5b505afa158015611e2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e4e9190613425565b6001600160a01b03161415611e67576001915050610977565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b600b546001600160a01b03163314611ef35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b601180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b600b546001600160a01b03163314611f875760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b601480547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff8116740100000000000000000000000000000000000000009182900460ff1615909102179055565b600b546001600160a01b0316331461202e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b6001600160a01b0316600090815260156020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b600b546001600160a01b031633146120ca5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109d3565b6001600160a01b0381166121465760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016109d3565b61214f816128f8565b50565b6002600a5414156121a55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109d3565b6002600a5560145474010000000000000000000000000000000000000000900460ff166122145760405162461bcd60e51b815260206004820152601260248201527f50726573616c65206e6f7420616374697665000000000000000000000000000060448201526064016109d3565b6014547501000000000000000000000000000000000000000000900460ff16156122a65760405162461bcd60e51b815260206004820152602560248201527f43616e6e6f74206d696e74207768696c65206d61696e2073616c65206973206160448201527f637469766500000000000000000000000000000000000000000000000000000060648201526084016109d3565b612290816122b360085490565b6122bd919061356c565b11156122c857600080fd5b600081116123185760405162461bcd60e51b815260206004820152601a60248201527f4d757374206d696e74206174206c65617374203120746f6b656e00000000000060448201526064016109d3565b60135481111561236a5760405162461bcd60e51b815260206004820152601960248201527f546f6b656e20636f756e742065786365656473206c696d69740000000000000060448201526064016109d3565b3461237c8266d529ae9e860000613598565b11156123f05760405162461bcd60e51b815260206004820152602860248201527f4554482073656e7420646f6573206e6f74206d6174636820726571756972656460448201527f207061796d656e7400000000000000000000000000000000000000000000000060648201526084016109d3565b3360009081526015602052604090205460ff16610f325760405162461bcd60e51b815260206004820152601760248201527f41646472657373206e6f742077686974656c697374656400000000000000000060448201526064016109d3565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806124e257507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061097757507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610977565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038416908117909155819061257f826114c6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166126425760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084016109d3565b600061264d836114c6565b9050806001600160a01b0316846001600160a01b031614806126885750836001600160a01b031661267d84610aa8565b6001600160a01b0316145b80611e915750611e918185611db0565b826001600160a01b03166126ab826114c6565b6001600160a01b0316146127275760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e000000000000000000000000000000000000000000000060648201526084016109d3565b6001600160a01b0382166127a25760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016109d3565b6127ad838383612b2c565b6127b8600082612532565b6001600160a01b03831660009081526003602052604081208054600192906127e19084906135d5565b90915550506001600160a01b038216600090815260036020526040812080546001929061280f90849061356c565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061289360085490565b905060015b828111611b995760006128ab828461356c565b604051909150819033907ff6cd72b1c6651a7a4566b5738715169db25b62aa724163d5b4ce0d2eb2f244f190600090a36128e58582612be4565b50806128f08161366c565b915050612898565b600b80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61296d848484612698565b61297984848484612bfe565b611b995760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109d3565b606060178054610a2590613618565b606081612a3a57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612a645780612a4e8161366c565b9150612a5d9050600a83613584565b9150612a3e565b60008167ffffffffffffffff811115612a7f57612a7f613775565b6040519080825280601f01601f191660200182016040528015612aa9576020820181803683370190505b5090505b8415611e9157612abe6001836135d5565b9150612acb600a866136a5565b612ad690603061356c565b60f81b818381518110612aeb57612aeb613746565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612b25600a86613584565b9450612aad565b6001600160a01b038316612b8757612b8281600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612baa565b816001600160a01b0316836001600160a01b031614612baa57612baa8382612dc9565b6001600160a01b038216612bc157610c7b81612e66565b826001600160a01b0316826001600160a01b031614610c7b57610c7b8282612f15565b611308828260405180602001604052806000815250612f59565b60006001600160a01b0384163b15612dbe576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612c5b90339089908890889060040161351d565b602060405180830381600087803b158015612c7557600080fd5b505af1925050508015612cc3575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252612cc091810190613408565b60015b612d73573d808015612cf1576040519150601f19603f3d011682016040523d82523d6000602084013e612cf6565b606091505b508051612d6b5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109d3565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611e91565b506001949350505050565b60006001612dd684611551565b612de091906135d5565b600083815260076020526040902054909150808214612e33576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612e78906001906135d5565b60008381526009602052604081205460088054939450909284908110612ea057612ea0613746565b906000526020600020015490508060088381548110612ec157612ec1613746565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612ef957612ef9613717565b6001900381819060005260206000200160009055905550505050565b6000612f2083611551565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b612f638383612fe2565b612f706000848484612bfe565b610c7b5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016109d3565b6001600160a01b0382166130385760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109d3565b6000818152600260205260409020546001600160a01b03161561309d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109d3565b6130a960008383612b2c565b6001600160a01b03821660009081526003602052604081208054600192906130d290849061356c565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461315490613618565b90600052602060002090601f01602090048101928261317657600085556131bc565b82601f1061318f57805160ff19168380011785556131bc565b828001600101855582156131bc579182015b828111156131bc5782518255916020019190600101906131a1565b506131c89291506131cc565b5090565b5b808211156131c857600081556001016131cd565b600067ffffffffffffffff808411156131fc576131fc613775565b604051601f85017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190828211818310171561324257613242613775565b8160405280935085815286868601111561325b57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561328757600080fd5b8135611c81816137a4565b600080604083850312156132a557600080fd5b82356132b0816137a4565b915060208301356132c0816137a4565b809150509250929050565b6000806000606084860312156132e057600080fd5b83356132eb816137a4565b925060208401356132fb816137a4565b929592945050506040919091013590565b6000806000806080858703121561332257600080fd5b843561332d816137a4565b9350602085013561333d816137a4565b925060408501359150606085013567ffffffffffffffff81111561336057600080fd5b8501601f8101871361337157600080fd5b613380878235602084016131e1565b91505092959194509250565b6000806040838503121561339f57600080fd5b82356133aa816137a4565b9150602083013580151581146132c057600080fd5b600080604083850312156133d257600080fd5b82356133dd816137a4565b946020939093013593505050565b6000602082840312156133fd57600080fd5b8135611c81816137b9565b60006020828403121561341a57600080fd5b8151611c81816137b9565b60006020828403121561343757600080fd5b8151611c81816137a4565b60006020828403121561345457600080fd5b813567ffffffffffffffff81111561346b57600080fd5b8201601f8101841361347c57600080fd5b611e91848235602084016131e1565b60006020828403121561349d57600080fd5b5035919050565b600081518084526134bc8160208601602086016135ec565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600083516135008184602088016135ec565b8351908301906135148183602088016135ec565b01949350505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261354f60808301846134a4565b9695505050505050565b602081526000611c8160208301846134a4565b6000821982111561357f5761357f6136b9565b500190565b600082613593576135936136e8565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156135d0576135d06136b9565b500290565b6000828210156135e7576135e76136b9565b500390565b60005b838110156136075781810151838201526020016135ef565b83811115611b995750506000910152565b600181811c9082168061362c57607f821691505b60208210811415613666577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561369e5761369e6136b9565b5060010190565b6000826136b4576136b46136e8565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6001600160a01b038116811461214f57600080fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461214f57600080fdfea26469706673582212208ae619d6a2f2df23e4576cb4cc3abbd2e285d994e2f6e33806286208c4aac44f64736f6c63430008070033
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.