Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
83 HoF
Holders
73
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 HoFLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
HallOfFame
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC721Tradable.sol"; /** * @title Creature * Creature - a contract for my non-fungible creatures. */ contract HallOfFame is ERC721Tradable { string baseURI = "https://p.noncebox.com/api/info/"; constructor(address _proxyRegistryAddress) ERC721Tradable( "Hall of Fame", "HoF", 151, 800, 7000, 50, 1, 1, 10, _proxyRegistryAddress ) {} function setBaseTokenURI(string calldata _baseURI) external onlyOwner { baseURI = _baseURI; emit BaseTokenURIChanged(baseURI); } function baseTokenURI() public view override returns (string memory) { return baseURI; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "openzeppelin-solidity/contracts/token/ERC721/ERC721.sol"; import "openzeppelin-solidity/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "openzeppelin-solidity/contracts/access/Ownable.sol"; import "openzeppelin-solidity/contracts/utils/math/SafeMath.sol"; import "openzeppelin-solidity/contracts/utils/math/SafeCast.sol"; import "openzeppelin-solidity/contracts/utils/Strings.sol"; import "openzeppelin-solidity/contracts/utils/cryptography/ECDSA.sol"; import "./common/meta-transactions/ContentMixin.sol"; import "./common/meta-transactions/NativeMetaTransaction.sol"; contract OwnableDelegateProxy {} contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } /** * @title ERC721Tradable * ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality. */ abstract contract ERC721Tradable is ContextMixin, ERC721Enumerable, NativeMetaTransaction, Ownable { using ECDSA for bytes32; using SafeMath for uint256; using SafeCast for uint256; event TokenPriceChanged(uint256 newTokenPrice); event PresaleConfigChanged( address whitelistSigner, uint32 startTime, uint32 endTime ); event SaleConfigChanged(uint32 startTime, uint32 endTime); event IsBurnEnabledChanged(bool newIsBurnEnabled); event TreasuryChanged(address newTreasury); event PresaleMint(address minter, uint256 count); event SaleMint(address minter, uint256 count); event BaseTokenURIChanged(string baseURI); struct PresaleConfig { address whitelistSigner; uint32 startTime; uint32 endTime; } struct SaleConfig { uint32 startTime; uint32 endTime; } // maxSupply = maxReserveSupply + maxPresaleSupply + maxSaleSupply + maxCommonReserveSupply + uint256 public immutable maxSupply; uint256 public immutable maxReserveSupply; uint256 public immutable maxPresaleSupply; uint256 public immutable maxSaleSupply; uint256 public immutable maxCommonReserveSupply; uint256 public immutable maxPresaleCountForSingleAccount; uint256 public immutable maxPresaleCountForSingleCall; uint256 public immutable maxSaleCountForSingleCall; uint256 public currentTokensReserved; uint256 public currentTokensPresold; uint256 public currentTokensSold; uint256 public currentTokensCommonReserved; uint256 public currentTokensMinted; address proxyRegistryAddress; uint256 public nextTokenId; bool public isBurnEnabled; address payable public treasury; uint256 public tokenPrice; PresaleConfig public presaleConfig; mapping(address => uint256) public presaleBoughtCounts; SaleConfig public saleConfig; bytes32 public DOMAIN_SEPARATOR; bytes32 public constant PRESALE_TYPEHASH = keccak256("Presale(address recipient)"); constructor( string memory _name, string memory _symbol, uint256 _maxReserveSupply, uint256 _maxPresaleSupply, uint256 _maxSaleSupply, uint256 _maxCommonReserveSupply, uint256 _maxPresaleCountForSingleAccount, uint256 _maxPresaleCountForSingleCall, uint256 _maxSaleCountForSingleCall, address _proxyRegistryAddress ) ERC721(_name, _symbol) { proxyRegistryAddress = _proxyRegistryAddress; maxSupply = _maxReserveSupply + _maxPresaleSupply + _maxSaleSupply + _maxCommonReserveSupply; maxReserveSupply = _maxReserveSupply; maxPresaleSupply = _maxPresaleSupply; maxSaleSupply = _maxSaleSupply; maxCommonReserveSupply = _maxCommonReserveSupply; maxPresaleCountForSingleAccount = _maxPresaleCountForSingleAccount; maxPresaleCountForSingleCall = _maxPresaleCountForSingleCall; maxSaleCountForSingleCall = _maxSaleCountForSingleCall; nextTokenId = _maxReserveSupply; _initializeEIP712(_name); uint256 chainId; assembly { chainId := chainid() } DOMAIN_SEPARATOR = keccak256( abi.encode( keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ), keccak256(bytes("Hall of Fame")), keccak256(bytes("1")), chainId, address(this) ) ); } function setTokenPrice(uint256 _tokenPrice) external onlyOwner { tokenPrice = _tokenPrice; emit TokenPriceChanged(_tokenPrice); } function setupPresale( address whitelistSigner, uint256 startTime, uint256 endTime ) external onlyOwner { uint32 _startTime = startTime.toUint32(); uint32 _endTime = endTime.toUint32(); // Check params require(whitelistSigner != address(0), "HoF: zero address"); require( _startTime > 0 && _endTime > _startTime, "HoF: invalid time range" ); presaleConfig = PresaleConfig({ whitelistSigner: whitelistSigner, startTime: _startTime, endTime: _endTime }); emit PresaleConfigChanged(whitelistSigner, _startTime, _endTime); } function setupSale(uint256 startTime, uint256 endTime) external onlyOwner { uint32 _startTime = startTime.toUint32(); uint32 _endTime = endTime.toUint32(); require( _startTime >= presaleConfig.startTime && _endTime > _startTime, "HoF: invalid time range" ); saleConfig = SaleConfig({startTime: _startTime, endTime: _endTime}); emit SaleConfigChanged(_startTime, _endTime); } function setIsBurnEnabled(bool _isBurnEnabled) external onlyOwner { isBurnEnabled = _isBurnEnabled; emit IsBurnEnabledChanged(_isBurnEnabled); } function setTreasury(address payable _treasury) external onlyOwner { treasury = _treasury; emit TreasuryChanged(_treasury); } function commonReserveTokens(address recipient, uint256 count) external onlyOwner { require(recipient != address(0), "HoF: zero address"); uint256 _nextTokenId = nextTokenId; require(count > 0, "HoF: invalid count"); require(_nextTokenId + count <= maxSupply, "HoF: max supply exceeded"); require( currentTokensCommonReserved + count <= maxCommonReserveSupply, "HoF: max common reserve supply exceeded" ); currentTokensCommonReserved += count; currentTokensMinted += count; for (uint256 ind = 0; ind < count; ind++) { _safeMint(recipient, _nextTokenId + ind); } nextTokenId += count; } function reserveTokens(address recipient, uint256 count) external onlyOwner { require(recipient != address(0), "HoF: zero address"); require( currentTokensReserved + count <= maxReserveSupply, "HoF: max common reserve supply exceeded" ); uint256 _currentTokensReserved = currentTokensReserved; for (uint256 ind = 0; ind < count; ind++) { _safeMint(recipient, _currentTokensReserved + ind); } currentTokensReserved += count; currentTokensMinted += count; } function mintPresaleTokens(uint256 count) external payable { // Gas optimization uint256 _nextTokenId = nextTokenId; // Make sure presale has been set up PresaleConfig memory _presaleConfig = presaleConfig; require( _presaleConfig.whitelistSigner != address(0), "HoF: presale not configured" ); require(treasury != address(0), "HoF: treasury not set"); require(tokenPrice > 0, "HoF: token price not set"); require(count > 0, "HoF: invalid count"); require( count <= maxPresaleCountForSingleCall, "HoF: max count per tx exceeded" ); require( block.timestamp >= _presaleConfig.startTime, "HoF: presale not started" ); require(block.timestamp < _presaleConfig.endTime, "HoF: presale ended"); require(_nextTokenId + count <= maxSupply, "HoF: max supply exceeded"); require( currentTokensPresold + count <= maxPresaleSupply, "HoF: incorrect Ether value" ); require( presaleBoughtCounts[msg.sender] + count <= maxPresaleCountForSingleAccount, "HoF: presale max presale count for single account exceeded" ); presaleBoughtCounts[msg.sender] += count; currentTokensPresold += count; currentTokensMinted += count; // The contract never holds any Ether. Everything gets redirected to treasury directly. if (msg.value != 0) { treasury.transfer(msg.value); } for (uint256 ind = 0; ind < count; ind++) { _safeMint(msg.sender, _nextTokenId + ind); } nextTokenId += count; emit PresaleMint(msg.sender, count); } function mintTokens(uint256 count) external payable { // Gas optimization uint256 _nextTokenId = nextTokenId; // Make sure presale has been set up SaleConfig memory _saleConfig = saleConfig; require(_saleConfig.startTime > 0, "HoF: sale not configured"); require(treasury != address(0), "HoF: treasury not set"); require(tokenPrice > 0, "HoF: token price not set"); require( count > 0 && count <= maxSaleCountForSingleCall, "HoF: invalid count" ); require( block.timestamp >= _saleConfig.startTime, "HoF: sale not started" ); require(block.timestamp < _saleConfig.endTime, "HoF: sale ended"); require( count <= maxSaleCountForSingleCall, "HoF: max count per tx exceeded" ); require(_nextTokenId + count <= maxSupply, "HoF: max supply exceeded"); require( currentTokensSold + count <= maxSaleSupply, "HoF: max sale supply exceeded" ); require(tokenPrice * count <= msg.value, "HoF: incorrect Ether value"); // The contract never holds any Ether. Everything gets redirected to treasury directly. treasury.transfer(msg.value); currentTokensSold += count; currentTokensMinted += count; for (uint256 ind = 0; ind < count; ind++) { _safeMint(msg.sender, _nextTokenId + ind); } nextTokenId += count; emit SaleMint(msg.sender, count); } function burn(uint256 tokenId) external { require(isBurnEnabled, "HoF: burning disabled"); require( _isApprovedOrOwner(msg.sender, tokenId), "HoF: burn caller is not owner nor approved" ); _burn(tokenId); } function revertTransfer(address payable recipient, uint256 amount) external onlyOwner { recipient.transfer(amount); } function baseTokenURI() public view virtual returns (string memory); function tokenURI(uint256 _tokenId) public view override returns (string memory) { return string( abi.encodePacked(baseTokenURI(), Strings.toString(_tokenId)) ); } /** * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings. */ function isApprovedForAll(address owner, address operator) public view override 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); } /** * This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea. */ function _msgSender() internal view override returns (address sender) { return ContextMixin.msgSender(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {SafeMath} from "openzeppelin-solidity/contracts/utils/math/SafeMath.sol"; import {EIP712Base} from "./EIP712Base.sol"; contract NativeMetaTransaction is EIP712Base { using SafeMath for uint256; bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256( bytes( "MetaTransaction(uint256 nonce,address from,bytes functionSignature)" ) ); event MetaTransactionExecuted( address userAddress, address payable relayerAddress, bytes functionSignature ); mapping(address => uint256) nonces; /* * Meta transaction structure. * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas * He should call the desired function directly in that case. */ struct MetaTransaction { uint256 nonce; address from; bytes functionSignature; } function executeMetaTransaction( address userAddress, bytes memory functionSignature, bytes32 sigR, bytes32 sigS, uint8 sigV ) public payable returns (bytes memory) { MetaTransaction memory metaTx = MetaTransaction({ nonce: nonces[userAddress], from: userAddress, functionSignature: functionSignature }); require( verify(userAddress, metaTx, sigR, sigS, sigV), "Signer and signature do not match" ); // increase nonce for user (to avoid re-use) nonces[userAddress] = nonces[userAddress].add(1); emit MetaTransactionExecuted( userAddress, payable(msg.sender), functionSignature ); // Append userAddress and relayer address at the end to extract it from calling context (bool success, bytes memory returnData) = address(this).call( abi.encodePacked(functionSignature, userAddress) ); require(success, "Function call not successful"); return returnData; } function hashMetaTransaction(MetaTransaction memory metaTx) internal pure returns (bytes32) { return keccak256( abi.encode( META_TRANSACTION_TYPEHASH, metaTx.nonce, metaTx.from, keccak256(metaTx.functionSignature) ) ); } function getNonce(address user) public view returns (uint256 nonce) { nonce = nonces[user]; } function verify( address signer, MetaTransaction memory metaTx, bytes32 sigR, bytes32 sigS, uint8 sigV ) internal view returns (bool) { require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER"); return signer == ecrecover( toTypedMessageHash(hashMetaTransaction(metaTx)), sigV, sigR, sigS ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; abstract contract ContextMixin { function msgSender() internal view returns (address payable sender) { if (msg.sender == address(this)) { bytes memory array = msg.data; uint256 index = msg.data.length; assembly { // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those. sender := and( mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff ) } } else { sender = payable(msg.sender); } return sender; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { // Divide the signature in r, s and v variables bytes32 r; bytes32 s; uint8 v; // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. // solhint-disable-next-line no-inline-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } } else if (signature.length == 64) { // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. // solhint-disable-next-line no-inline-assembly assembly { let vs := mload(add(signature, 0x40)) r := mload(add(signature, 0x20)) s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } } else { revert("ECDSA: invalid signature length"); } return recover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value"); require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value"); // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); require(signer != address(0), "ECDSA: invalid signature"); return signer; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant alphabet = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = alphabet[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow * checks. * * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can * easily result in undesired exploitation or bugs, since developers usually * assume that overflows raise errors. `SafeCast` restores this intuition by * reverting the transaction when such an operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. * * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing * all math on `uint256` and `int256` and then downcasting. */ library SafeCast { /** * @dev Returns the downcasted uint128 from uint256, reverting on * overflow (when the input is greater than largest uint128). * * Counterpart to Solidity's `uint128` operator. * * Requirements: * * - input must fit into 128 bits */ function toUint128(uint256 value) internal pure returns (uint128) { require(value < 2**128, "SafeCast: value doesn\'t fit in 128 bits"); return uint128(value); } /** * @dev Returns the downcasted uint64 from uint256, reverting on * overflow (when the input is greater than largest uint64). * * Counterpart to Solidity's `uint64` operator. * * Requirements: * * - input must fit into 64 bits */ function toUint64(uint256 value) internal pure returns (uint64) { require(value < 2**64, "SafeCast: value doesn\'t fit in 64 bits"); return uint64(value); } /** * @dev Returns the downcasted uint32 from uint256, reverting on * overflow (when the input is greater than largest uint32). * * Counterpart to Solidity's `uint32` operator. * * Requirements: * * - input must fit into 32 bits */ function toUint32(uint256 value) internal pure returns (uint32) { require(value < 2**32, "SafeCast: value doesn\'t fit in 32 bits"); return uint32(value); } /** * @dev Returns the downcasted uint16 from uint256, reverting on * overflow (when the input is greater than largest uint16). * * Counterpart to Solidity's `uint16` operator. * * Requirements: * * - input must fit into 16 bits */ function toUint16(uint256 value) internal pure returns (uint16) { require(value < 2**16, "SafeCast: value doesn\'t fit in 16 bits"); return uint16(value); } /** * @dev Returns the downcasted uint8 from uint256, reverting on * overflow (when the input is greater than largest uint8). * * Counterpart to Solidity's `uint8` operator. * * Requirements: * * - input must fit into 8 bits. */ function toUint8(uint256 value) internal pure returns (uint8) { require(value < 2**8, "SafeCast: value doesn\'t fit in 8 bits"); return uint8(value); } /** * @dev Converts a signed int256 into an unsigned uint256. * * Requirements: * * - input must be greater than or equal to 0. */ function toUint256(int256 value) internal pure returns (uint256) { require(value >= 0, "SafeCast: value must be positive"); return uint256(value); } /** * @dev Returns the downcasted int128 from int256, reverting on * overflow (when the input is less than smallest int128 or * greater than largest int128). * * Counterpart to Solidity's `int128` operator. * * Requirements: * * - input must fit into 128 bits * * _Available since v3.1._ */ function toInt128(int256 value) internal pure returns (int128) { require(value >= -2**127 && value < 2**127, "SafeCast: value doesn\'t fit in 128 bits"); return int128(value); } /** * @dev Returns the downcasted int64 from int256, reverting on * overflow (when the input is less than smallest int64 or * greater than largest int64). * * Counterpart to Solidity's `int64` operator. * * Requirements: * * - input must fit into 64 bits * * _Available since v3.1._ */ function toInt64(int256 value) internal pure returns (int64) { require(value >= -2**63 && value < 2**63, "SafeCast: value doesn\'t fit in 64 bits"); return int64(value); } /** * @dev Returns the downcasted int32 from int256, reverting on * overflow (when the input is less than smallest int32 or * greater than largest int32). * * Counterpart to Solidity's `int32` operator. * * Requirements: * * - input must fit into 32 bits * * _Available since v3.1._ */ function toInt32(int256 value) internal pure returns (int32) { require(value >= -2**31 && value < 2**31, "SafeCast: value doesn\'t fit in 32 bits"); return int32(value); } /** * @dev Returns the downcasted int16 from int256, reverting on * overflow (when the input is less than smallest int16 or * greater than largest int16). * * Counterpart to Solidity's `int16` operator. * * Requirements: * * - input must fit into 16 bits * * _Available since v3.1._ */ function toInt16(int256 value) internal pure returns (int16) { require(value >= -2**15 && value < 2**15, "SafeCast: value doesn\'t fit in 16 bits"); return int16(value); } /** * @dev Returns the downcasted int8 from int256, reverting on * overflow (when the input is less than smallest int8 or * greater than largest int8). * * Counterpart to Solidity's `int8` operator. * * Requirements: * * - input must fit into 8 bits. * * _Available since v3.1._ */ function toInt8(int256 value) internal pure returns (int8) { require(value >= -2**7 && value < 2**7, "SafeCast: value doesn\'t fit in 8 bits"); return int8(value); } /** * @dev Converts an unsigned uint256 into a signed int256. * * Requirements: * * - input must be less than or equal to maxInt256. */ function toInt256(uint256 value) internal pure returns (int256) { require(value < 2**255, "SafeCast: value doesn't fit in an int256"); return int256(value); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// 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 () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), 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 { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; 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"; 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}. 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(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { // solhint-disable-next-line no-inline-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @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 { } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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; // solhint-disable-next-line no-inline-assembly 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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-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; 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; /** * @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 "../../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; import {Initializable} from "./Initializable.sol"; contract EIP712Base is Initializable { struct EIP712Domain { string name; string version; address verifyingContract; bytes32 salt; } string constant public ERC712_VERSION = "1"; bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256( bytes( "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)" ) ); bytes32 internal domainSeperator; // supposed to be called once while initializing. // one of the contracts that inherits this contract follows proxy pattern // so it is not possible to do this in a constructor function _initializeEIP712( string memory name ) internal initializer { _setDomainSeperator(name); } function _setDomainSeperator(string memory name) internal { domainSeperator = keccak256( abi.encode( EIP712_DOMAIN_TYPEHASH, keccak256(bytes(name)), keccak256(bytes(ERC712_VERSION)), address(this), bytes32(getChainId()) ) ); } function getDomainSeperator() public view returns (bytes32) { return domainSeperator; } function getChainId() public view returns (uint256) { uint256 id; assembly { id := chainid() } return id; } /** * Accept message hash and returns hash message in EIP712 compatible form * So that it can be used to recover signer from signature signed using EIP712 formatted data * https://eips.ethereum.org/EIPS/eip-712 * "\\x19" makes the encoding deterministic * "\\x01" is the version byte to make it compatible to EIP-191 */ function toTypedMessageHash(bytes32 messageHash) internal view returns (bytes32) { return keccak256( abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash) ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Initializable { bool inited = false; modifier initializer() { require(!inited, "already inited"); _; inited = true; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"baseURI","type":"string"}],"name":"BaseTokenURIChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"newIsBurnEnabled","type":"bool"}],"name":"IsBurnEnabledChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"whitelistSigner","type":"address"},{"indexed":false,"internalType":"uint32","name":"startTime","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"endTime","type":"uint32"}],"name":"PresaleConfigChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"count","type":"uint256"}],"name":"PresaleMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint32","name":"startTime","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"endTime","type":"uint32"}],"name":"SaleConfigChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"count","type":"uint256"}],"name":"SaleMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newTokenPrice","type":"uint256"}],"name":"TokenPriceChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newTreasury","type":"address"}],"name":"TreasuryChanged","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"commonReserveTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentTokensCommonReserved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentTokensMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentTokensPresold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentTokensReserved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentTokensSold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isBurnEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxCommonReserveSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPresaleCountForSingleAccount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPresaleCountForSingleCall","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPresaleSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxReserveSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSaleCountForSingleCall","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSaleSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"mintPresaleTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"mintTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleBoughtCounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleConfig","outputs":[{"internalType":"address","name":"whitelistSigner","type":"address"},{"internalType":"uint32","name":"startTime","type":"uint32"},{"internalType":"uint32","name":"endTime","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"reserveTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"revertTransfer","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":[],"name":"saleConfig","outputs":[{"internalType":"uint32","name":"startTime","type":"uint32"},{"internalType":"uint32","name":"endTime","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isBurnEnabled","type":"bool"}],"name":"setIsBurnEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenPrice","type":"uint256"}],"name":"setTokenPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"whitelistSigner","type":"address"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"}],"name":"setupPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"}],"name":"setupSale","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":[],"name":"tokenPrice","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":"treasury","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
600a805460ff191690556101c060405260206101808190527f68747470733a2f2f702e6e6f6e6365626f782e636f6d2f6170692f696e666f2f6101a09081526200004d91601b919062000421565b503480156200005b57600080fd5b5060405162004645380380620046458339810160408190526200007e91620004c7565b6040518060400160405280600c81526020016b48616c6c206f662046616d6560a01b815250604051806040016040528060038152602001622437a360e91b8152506097610320611b586032600180600a8989898160009080519060200190620000e992919062000421565b508051620000ff90600190602084019062000421565b505050600062000114620002b160201b60201c565b600d80546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350601380546001600160a01b0319166001600160a01b03831617905584866200018b898b620004f9565b620001979190620004f9565b620001a39190620004f9565b60805260a088905260c087905260e08690526101008590526101208490526101408390526101608290526014889055620001dd8a620002cd565b5050604080518082018252600c81526b48616c6c206f662046616d6560a01b6020918201528151808301835260018152603160f81b9082015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818301527fc8ad54de741467a74bedbfe8cd8e7055fc79f09ae8645ce815b1981c4903c6f0818401526000805160206200462583398151915260608201524660808201523060a0808301919091528351808303909101815260c09091019092528151910120601a55506200055d975050505050505050565b6000620002c86200033160201b6200293c1760201c565b905090565b600a5460ff1615620003165760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481a5b9a5d195960921b604482015260640160405180910390fd5b620003218162000390565b50600a805460ff19166001179055565b6000333014156200038a57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506200038d9050565b50335b90565b6040518060800160405280604f8152602001620045d6604f9139805160209182012082519282019290922060408051808201825260018152603160f81b90840152805180840194909452838101919091526000805160206200462583398151915260608401523060808401524660a0808501919091528151808503909101815260c090930190528151910120600b55565b8280546200042f9062000520565b90600052602060002090601f0160209004810192826200045357600085556200049e565b82601f106200046e57805160ff19168380011785556200049e565b828001600101855582156200049e579182015b828111156200049e57825182559160200191906001019062000481565b50620004ac929150620004b0565b5090565b5b80821115620004ac5760008155600101620004b1565b600060208284031215620004da57600080fd5b81516001600160a01b0381168114620004f257600080fd5b9392505050565b600082198211156200051b57634e487b7160e01b600052601160045260246000fd5b500190565b600181811c908216806200053557607f821691505b602082108114156200055757634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e05161010051610120516101405161016051613fc662000610600039600081816107ec01528181611e400152611f1b0152600081816109d3015261195f0152600081816106ca0152611b4d015260008181610820015261260901526000818161095f0152611fd40152600081816105120152611ac0015260008181610a270152611758015260008181610aba01528181611a7701528181611f8b01526125c00152613fc66000f3fe60806040526004361061038c5760003560e01c8063725c8ee7116101dc578063b29418d511610102578063d4ae7522116100a0578063e985e9c51161006f578063e985e9c514610afc578063f0f4426014610b1c578063f2fde38b14610b3c578063fd88fa6914610b5c57600080fd5b8063d4ae752214610a5f578063d547cfb714610a93578063d5abeb0114610aa8578063dca8603b14610adc57600080fd5b8063c5ea963f116100dc578063c5ea963f146109c1578063c87b56dd146109f5578063cffb47cf14610a15578063d3921e6a14610a4957600080fd5b8063b29418d51461094d578063b88d4fde14610981578063c480e583146109a157600080fd5b80638da5cb5b1161017a57806397304ced1161014957806397304ced146108e457806397f2ab60146108f7578063a22cb46514610917578063aee37af31461093757600080fd5b80638da5cb5b146108585780638db8053b1461087657806390aa0b0f1461088957806395d89b41146108cf57600080fd5b80637ff9b596116101b65780637ff9b596146107c4578063822e4a81146107da57806387d760801461080e5780638c3ee95f1461084257600080fd5b8063725c8ee71461076157806375794a3c1461078e57806378cf19e9146107a457600080fd5b80632d0335ab116102c15780634f6ccce71161025f5780636a61e5fc1161022e5780636a61e5fc146106ec5780636e0e5b191461070c57806370a082311461072c578063715018a61461074c57600080fd5b80634f6ccce71461065357806361d027b3146106735780636352211e146106985780636453dadd146106b857600080fd5b80633408e4701161029b5780633408e470146105ea5780633644e515146105fd57806342842e0e1461061357806342966c681461063357600080fd5b80632d0335ab146105745780632f745c59146105aa57806330176e13146105ca57600080fd5b80630c53c51c1161032e57806320379ee51161030857806320379ee5146104eb57806321bdb26e1461050057806323b872dd1461053457806325fa79e41461055457600080fd5b80630c53c51c146104965780630f7e5970146104a957806318160ddd146104d657600080fd5b806306fdde031161036a57806306fdde031461040057806307ebec2714610422578063081812fc1461043c578063095ea7b31461047457600080fd5b806301ffc9a7146103915780630334fe07146103c657806306e82357146103ea575b600080fd5b34801561039d57600080fd5b506103b16103ac366004613930565b610bc1565b60405190151581526020015b60405180910390f35b3480156103d257600080fd5b506103dc600f5481565b6040519081526020016103bd565b3480156103f657600080fd5b506103dc60105481565b34801561040c57600080fd5b50610415610bec565b6040516103bd9190613b54565b34801561042e57600080fd5b506015546103b19060ff1681565b34801561044857600080fd5b5061045c6104573660046139f9565b610c7e565b6040516001600160a01b0390911681526020016103bd565b34801561048057600080fd5b5061049461048f36600461371b565b610d18565b005b6104156104a4366004613862565b610e40565b3480156104b557600080fd5b50610415604051806040016040528060018152602001603160f81b81525081565b3480156104e257600080fd5b506008546103dc565b3480156104f757600080fd5b50600b546103dc565b34801561050c57600080fd5b506103dc7f000000000000000000000000000000000000000000000000000000000000000081565b34801561054057600080fd5b5061049461054f366004613780565b61102a565b34801561056057600080fd5b5061049461056f366004613a12565b611062565b34801561058057600080fd5b506103dc61058f3660046136fe565b6001600160a01b03166000908152600c602052604090205490565b3480156105b657600080fd5b506103dc6105c536600461371b565b6111b2565b3480156105d657600080fd5b506104946105e5366004613987565b611248565b3480156105f657600080fd5b50466103dc565b34801561060957600080fd5b506103dc601a5481565b34801561061f57600080fd5b5061049461062e366004613780565b6112da565b34801561063f57600080fd5b5061049461064e3660046139f9565b6112f5565b34801561065f57600080fd5b506103dc61066e3660046139f9565b6113b4565b34801561067f57600080fd5b5060155461045c9061010090046001600160a01b031681565b3480156106a457600080fd5b5061045c6106b33660046139f9565b611447565b3480156106c457600080fd5b506103dc7f000000000000000000000000000000000000000000000000000000000000000081565b3480156106f857600080fd5b506104946107073660046139f9565b6114be565b34801561071857600080fd5b50610494610727366004613915565b611543565b34801561073857600080fd5b506103dc6107473660046136fe565b6115cd565b34801561075857600080fd5b50610494611654565b34801561076d57600080fd5b506103dc61077c3660046136fe565b60186020526000908152604090205481565b34801561079a57600080fd5b506103dc60145481565b3480156107b057600080fd5b506104946107bf36600461371b565b6116e7565b3480156107d057600080fd5b506103dc60165481565b3480156107e657600080fd5b506103dc7f000000000000000000000000000000000000000000000000000000000000000081565b34801561081a57600080fd5b506103dc7f000000000000000000000000000000000000000000000000000000000000000081565b34801561084e57600080fd5b506103dc600e5481565b34801561086457600080fd5b50600d546001600160a01b031661045c565b6104946108843660046139f9565b61180c565b34801561089557600080fd5b506019546108b29063ffffffff8082169164010000000090041682565b6040805163ffffffff9384168152929091166020830152016103bd565b3480156108db57600080fd5b50610415611d0c565b6104946108f23660046139f9565b611d1b565b34801561090357600080fd5b506104946109123660046138e0565b612197565b34801561092357600080fd5b5061049461093236600461382d565b612326565b34801561094357600080fd5b506103dc60115481565b34801561095957600080fd5b506103dc7f000000000000000000000000000000000000000000000000000000000000000081565b34801561098d57600080fd5b5061049461099c3660046137c1565b612428565b3480156109ad57600080fd5b506104946109bc36600461371b565b612467565b3480156109cd57600080fd5b506103dc7f000000000000000000000000000000000000000000000000000000000000000081565b348015610a0157600080fd5b50610415610a103660046139f9565b6124e6565b348015610a2157600080fd5b506103dc7f000000000000000000000000000000000000000000000000000000000000000081565b348015610a5557600080fd5b506103dc60125481565b348015610a6b57600080fd5b506103dc7f954c1b29eb96ae4246d32d2cc543b50838f63c704779fcaad14312a723b303a181565b348015610a9f57600080fd5b50610415612520565b348015610ab457600080fd5b506103dc7f000000000000000000000000000000000000000000000000000000000000000081565b348015610ae857600080fd5b50610494610af736600461371b565b61252f565b348015610b0857600080fd5b506103b1610b17366004613747565b6126c3565b348015610b2857600080fd5b50610494610b373660046136fe565b612793565b348015610b4857600080fd5b50610494610b573660046136fe565b612832565b348015610b6857600080fd5b50601754610b95906001600160a01b0381169063ffffffff600160a01b8204811691600160c01b90041683565b604080516001600160a01b03909416845263ffffffff92831660208501529116908201526060016103bd565b60006001600160e01b0319821663780e9d6360e01b1480610be65750610be682612999565b92915050565b606060008054610bfb90613e4a565b80601f0160208091040260200160405190810160405280929190818152602001828054610c2790613e4a565b8015610c745780601f10610c4957610100808354040283529160200191610c74565b820191906000526020600020905b815481529060010190602001808311610c5757829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610cfc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610d2382611447565b9050806001600160a01b0316836001600160a01b03161415610d915760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610cf3565b806001600160a01b0316610da36129e9565b6001600160a01b03161480610dbf5750610dbf81610b176129e9565b610e315760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610cf3565b610e3b83836129f8565b505050565b60408051606081810183526001600160a01b0388166000818152600c602090815290859020548452830152918101869052610e7e8782878787612a66565b610ed45760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b6064820152608401610cf3565b6001600160a01b0387166000908152600c6020526040902054610ef8906001612b56565b6001600160a01b0388166000908152600c60205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610f4890899033908a90613ae2565b60405180910390a1600080306001600160a01b0316888a604051602001610f70929190613a7c565b60408051601f1981840301815290829052610f8a91613a60565b6000604051808303816000865af19150503d8060008114610fc7576040519150601f19603f3d011682016040523d82523d6000602084013e610fcc565b606091505b50915091508161101e5760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610cf3565b98975050505050505050565b61103b6110356129e9565b82612b69565b6110575760405162461bcd60e51b8152600401610cf390613d6b565b610e3b838383612c38565b61106a6129e9565b6001600160a01b0316611085600d546001600160a01b031690565b6001600160a01b0316146110ab5760405162461bcd60e51b8152600401610cf390613d36565b60006110b683612de3565b905060006110c383612de3565b60175490915063ffffffff600160a01b9091048116908316108015906110f457508163ffffffff168163ffffffff16115b61113a5760405162461bcd60e51b8152602060048201526017602482015276486f463a20696e76616c69642074696d652072616e676560481b6044820152606401610cf3565b60408051808201825263ffffffff84811680835290841660209283018190526019805467ffffffffffffffff1916831764010000000083021790558351918252918101919091527fdeea4bc4c584249a0eee970a3b4f6d21bb13cdc2f6199522d5ea6db52fe6ade6910160405180910390a150505050565b60006111bd836115cd565b821061121f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610cf3565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6112506129e9565b6001600160a01b031661126b600d546001600160a01b031690565b6001600160a01b0316146112915760405162461bcd60e51b8152600401610cf390613d36565b61129d601b83836135cc565b507f228a3ac0675af69daeaaa5b8d369fe2faae665e7f340f0b78ccbb84e17b4f694601b6040516112ce9190613b67565b60405180910390a15050565b610e3b83838360405180602001604052806000815250612428565b60155460ff1661133f5760405162461bcd60e51b8152602060048201526015602482015274121bd18e88189d5c9b9a5b99c8191a5cd8589b1959605a1b6044820152606401610cf3565b6113493382612b69565b6113a85760405162461bcd60e51b815260206004820152602a60248201527f486f463a206275726e2063616c6c6572206973206e6f74206f776e6572206e6f6044820152691c88185c1c1c9bdd995960b21b6064820152608401610cf3565b6113b181612e4c565b50565b60006113bf60085490565b82106114225760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610cf3565b6008828154811061143557611435613ef6565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b031680610be65760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610cf3565b6114c66129e9565b6001600160a01b03166114e1600d546001600160a01b031690565b6001600160a01b0316146115075760405162461bcd60e51b8152600401610cf390613d36565b60168190556040518181527fac21bacd333b316c6640fca5086322638b0a7aa4367179afd5dfcbe0a5427bc7906020015b60405180910390a150565b61154b6129e9565b6001600160a01b0316611566600d546001600160a01b031690565b6001600160a01b03161461158c5760405162461bcd60e51b8152600401610cf390613d36565b6015805460ff19168215159081179091556040519081527f430864ad215aa849052adf33b0cae7eb033aa8a4f9cf45fb3973699038505ff390602001611538565b60006001600160a01b0382166116385760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610cf3565b506001600160a01b031660009081526003602052604090205490565b61165c6129e9565b6001600160a01b0316611677600d546001600160a01b031690565b6001600160a01b03161461169d5760405162461bcd60e51b8152600401610cf390613d36565b600d546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600d80546001600160a01b0319169055565b6116ef6129e9565b6001600160a01b031661170a600d546001600160a01b031690565b6001600160a01b0316146117305760405162461bcd60e51b8152600401610cf390613d36565b6001600160a01b0382166117565760405162461bcd60e51b8152600401610cf390613c61565b7f000000000000000000000000000000000000000000000000000000000000000081600e546117859190613dbc565b11156117a35760405162461bcd60e51b8152600401610cf390613cc3565b600e5460005b828110156117d6576117c4846117bf8385613dbc565b612ef3565b806117ce81613e85565b9150506117a9565b5081600e60008282546117e99190613dbc565b9250508190555081601260008282546118029190613dbc565b9091555050505050565b601454604080516060810182526017546001600160a01b03811680835263ffffffff600160a01b830481166020850152600160c01b909204909116928201929092529061189b5760405162461bcd60e51b815260206004820152601b60248201527f486f463a2070726573616c65206e6f7420636f6e6669677572656400000000006044820152606401610cf3565b60155461010090046001600160a01b03166118f05760405162461bcd60e51b8152602060048201526015602482015274121bd18e881d1c99585cdd5c9e481b9bdd081cd95d605a1b6044820152606401610cf3565b60006016541161193d5760405162461bcd60e51b8152602060048201526018602482015277121bd18e881d1bdad95b881c1c9a58d9481b9bdd081cd95d60421b6044820152606401610cf3565b6000831161195d5760405162461bcd60e51b8152600401610cf390613d0a565b7f00000000000000000000000000000000000000000000000000000000000000008311156119cd5760405162461bcd60e51b815260206004820152601e60248201527f486f463a206d617820636f756e742070657220747820657863656564656400006044820152606401610cf3565b806020015163ffffffff16421015611a275760405162461bcd60e51b815260206004820152601860248201527f486f463a2070726573616c65206e6f74207374617274656400000000000000006044820152606401610cf3565b806040015163ffffffff164210611a755760405162461bcd60e51b8152602060048201526012602482015271121bd18e881c1c995cd85b1948195b99195960721b6044820152606401610cf3565b7f0000000000000000000000000000000000000000000000000000000000000000611aa08484613dbc565b1115611abe5760405162461bcd60e51b8152600401610cf390613c8c565b7f000000000000000000000000000000000000000000000000000000000000000083600f54611aed9190613dbc565b1115611b3b5760405162461bcd60e51b815260206004820152601a60248201527f486f463a20696e636f72726563742045746865722076616c75650000000000006044820152606401610cf3565b336000908152601860205260409020547f000000000000000000000000000000000000000000000000000000000000000090611b78908590613dbc565b1115611bec5760405162461bcd60e51b815260206004820152603a60248201527f486f463a2070726573616c65206d61782070726573616c6520636f756e74206660448201527f6f722073696e676c65206163636f756e742065786365656465640000000000006064820152608401610cf3565b3360009081526018602052604081208054859290611c0b908490613dbc565b9250508190555082600f6000828254611c249190613dbc565b925050819055508260126000828254611c3d9190613dbc565b90915550503415611c8a576015546040516001600160a01b0361010090920491909116903480156108fc02916000818181858888f19350505050158015611c88573d6000803e3d6000fd5b505b60005b83811015611cb557611ca3336117bf8386613dbc565b80611cad81613e85565b915050611c8d565b508260146000828254611cc89190613dbc565b909155505060408051338152602081018590527ff5df7d07fef0d8ac7581015ebd1a3b7b7760da84b12f0c8174ae0dcd639cb6a391015b60405180910390a1505050565b606060018054610bfb90613e4a565b6014546040805180820190915260195463ffffffff808216808452640100000000909204166020830152611d915760405162461bcd60e51b815260206004820152601860248201527f486f463a2073616c65206e6f7420636f6e6669677572656400000000000000006044820152606401610cf3565b60155461010090046001600160a01b0316611de65760405162461bcd60e51b8152602060048201526015602482015274121bd18e881d1c99585cdd5c9e481b9bdd081cd95d605a1b6044820152606401610cf3565b600060165411611e335760405162461bcd60e51b8152602060048201526018602482015277121bd18e881d1bdad95b881c1c9a58d9481b9bdd081cd95d60421b6044820152606401610cf3565b600083118015611e6357507f00000000000000000000000000000000000000000000000000000000000000008311155b611e7f5760405162461bcd60e51b8152600401610cf390613d0a565b805163ffffffff16421015611ece5760405162461bcd60e51b8152602060048201526015602482015274121bd18e881cd85b19481b9bdd081cdd185c9d1959605a1b6044820152606401610cf3565b806020015163ffffffff164210611f195760405162461bcd60e51b815260206004820152600f60248201526e121bd18e881cd85b1948195b991959608a1b6044820152606401610cf3565b7f0000000000000000000000000000000000000000000000000000000000000000831115611f895760405162461bcd60e51b815260206004820152601e60248201527f486f463a206d617820636f756e742070657220747820657863656564656400006044820152606401610cf3565b7f0000000000000000000000000000000000000000000000000000000000000000611fb48484613dbc565b1115611fd25760405162461bcd60e51b8152600401610cf390613c8c565b7f0000000000000000000000000000000000000000000000000000000000000000836010546120019190613dbc565b111561204f5760405162461bcd60e51b815260206004820152601d60248201527f486f463a206d61782073616c6520737570706c792065786365656465640000006044820152606401610cf3565b348360165461205e9190613de8565b11156120ac5760405162461bcd60e51b815260206004820152601a60248201527f486f463a20696e636f72726563742045746865722076616c75650000000000006044820152606401610cf3565b6015546040516001600160a01b0361010090920491909116903480156108fc02916000818181858888f193505050501580156120ec573d6000803e3d6000fd5b5082601060008282546120ff9190613dbc565b9250508190555082601260008282546121189190613dbc565b90915550600090505b8381101561214957612137336117bf8386613dbc565b8061214181613e85565b915050612121565b50826014600082825461215c9190613dbc565b909155505060408051338152602081018590527f35b6d348af664cd334c7ec2746e1ab49907efa953fa3f622552cd0b19a828b3f9101611cff565b61219f6129e9565b6001600160a01b03166121ba600d546001600160a01b031690565b6001600160a01b0316146121e05760405162461bcd60e51b8152600401610cf390613d36565b60006121eb83612de3565b905060006121f883612de3565b90506001600160a01b0385166122205760405162461bcd60e51b8152600401610cf390613c61565b60008263ffffffff1611801561224157508163ffffffff168163ffffffff16115b6122875760405162461bcd60e51b8152602060048201526017602482015276486f463a20696e76616c69642074696d652072616e676560481b6044820152606401610cf3565b60408051606080820183526001600160a01b03881680835263ffffffff8681166020808601829052918716948601859052601780546001600160c01b0319168417600160a01b83021763ffffffff60c01b1916600160c01b8702179055855192835290820152928301919091527f883135fc965d7f7dbcc3014a73e1da89792169e1946b4fa2b4217cef2ae08003910160405180910390a15050505050565b61232e6129e9565b6001600160a01b0316826001600160a01b0316141561238f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610cf3565b806005600061239c6129e9565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556123e06129e9565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161241c911515815260200190565b60405180910390a35050565b6124396124336129e9565b83612b69565b6124555760405162461bcd60e51b8152600401610cf390613d6b565b61246184848484612f11565b50505050565b61246f6129e9565b6001600160a01b031661248a600d546001600160a01b031690565b6001600160a01b0316146124b05760405162461bcd60e51b8152600401610cf390613d36565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610e3b573d6000803e3d6000fd5b60606124f0612520565b6124f983612f44565b60405160200161250a929190613ab3565b6040516020818303038152906040529050919050565b6060601b8054610bfb90613e4a565b6125376129e9565b6001600160a01b0316612552600d546001600160a01b031690565b6001600160a01b0316146125785760405162461bcd60e51b8152600401610cf390613d36565b6001600160a01b03821661259e5760405162461bcd60e51b8152600401610cf390613c61565b601454816125be5760405162461bcd60e51b8152600401610cf390613d0a565b7f00000000000000000000000000000000000000000000000000000000000000006125e98383613dbc565b11156126075760405162461bcd60e51b8152600401610cf390613c8c565b7f0000000000000000000000000000000000000000000000000000000000000000826011546126369190613dbc565b11156126545760405162461bcd60e51b8152600401610cf390613cc3565b81601160008282546126669190613dbc565b92505081905550816012600082825461267f9190613dbc565b90915550600090505b828110156126b05761269e846117bf8385613dbc565b806126a881613e85565b915050612688565b5081601460008282546118029190613dbc565b60135460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b15801561271057600080fd5b505afa158015612724573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612748919061396a565b6001600160a01b03161415612761576001915050610be6565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b61279b6129e9565b6001600160a01b03166127b6600d546001600160a01b031690565b6001600160a01b0316146127dc5760405162461bcd60e51b8152600401610cf390613d36565b60158054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527fc714d22a2f08b695f81e7c707058db484aa5b4d6b4c9fd64beb10fe85832f60890602001611538565b61283a6129e9565b6001600160a01b0316612855600d546001600160a01b031690565b6001600160a01b03161461287b5760405162461bcd60e51b8152600401610cf390613d36565b6001600160a01b0381166128e05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cf3565b600d546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600d80546001600160a01b0319166001600160a01b0392909216919091179055565b60003330141561299357600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506129969050565b50335b90565b60006001600160e01b031982166380ac58cd60e01b14806129ca57506001600160e01b03198216635b5e139f60e01b145b80610be657506301ffc9a760e01b6001600160e01b0319831614610be6565b60006129f361293c565b905090565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612a2d82611447565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b038616612acc5760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b6064820152608401610cf3565b6001612adf612ada87613042565b6130bf565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015612b2d573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b6000612b628284613dbc565b9392505050565b6000818152600260205260408120546001600160a01b0316612be25760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610cf3565b6000612bed83611447565b9050806001600160a01b0316846001600160a01b03161480612c285750836001600160a01b0316612c1d84610c7e565b6001600160a01b0316145b8061278b575061278b81856126c3565b826001600160a01b0316612c4b82611447565b6001600160a01b031614612cb35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610cf3565b6001600160a01b038216612d155760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610cf3565b612d208383836130ef565b612d2b6000826129f8565b6001600160a01b0383166000908152600360205260408120805460019290612d54908490613e07565b90915550506001600160a01b0382166000908152600360205260408120805460019290612d82908490613dbc565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006401000000008210612e485760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b6064820152608401610cf3565b5090565b6000612e5782611447565b9050612e65816000846130ef565b612e706000836129f8565b6001600160a01b0381166000908152600360205260408120805460019290612e99908490613e07565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b612f0d8282604051806020016040528060008152506131a7565b5050565b612f1c848484612c38565b612f28848484846131da565b6124615760405162461bcd60e51b8152600401610cf390613c0f565b606081612f685750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612f925780612f7c81613e85565b9150612f8b9050600a83613dd4565b9150612f6c565b60008167ffffffffffffffff811115612fad57612fad613f0c565b6040519080825280601f01601f191660200182016040528015612fd7576020820181803683370190505b5090505b841561278b57612fec600183613e07565b9150612ff9600a86613ea0565b613004906030613dbc565b60f81b81838151811061301957613019613ef6565b60200101906001600160f81b031916908160001a90535061303b600a86613dd4565b9450612fdb565b6000604051806080016040528060438152602001613f4e60439139805160209182012083518483015160408087015180519086012090516130a2950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b60006130ca600b5490565b60405161190160f01b60208201526022810191909152604281018390526062016130a2565b6001600160a01b03831661314a5761314581600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61316d565b816001600160a01b0316836001600160a01b03161461316d5761316d83826132ee565b6001600160a01b03821661318457610e3b8161338b565b826001600160a01b0316826001600160a01b031614610e3b57610e3b828261343a565b6131b1838361347e565b6131be60008484846131da565b610e3b5760405162461bcd60e51b8152600401610cf390613c0f565b60006001600160a01b0384163b156132e357836001600160a01b031663150b7a026132036129e9565b8786866040518563ffffffff1660e01b81526004016132259493929190613b17565b602060405180830381600087803b15801561323f57600080fd5b505af192505050801561326f575060408051601f3d908101601f1916820190925261326c9181019061394d565b60015b6132c9573d80801561329d576040519150601f19603f3d011682016040523d82523d6000602084013e6132a2565b606091505b5080516132c15760405162461bcd60e51b8152600401610cf390613c0f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061278b565b506001949350505050565b600060016132fb846115cd565b6133059190613e07565b600083815260076020526040902054909150808214613358576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061339d90600190613e07565b600083815260096020526040812054600880549394509092849081106133c5576133c5613ef6565b9060005260206000200154905080600883815481106133e6576133e6613ef6565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061341e5761341e613ee0565b6001900381819060005260206000200160009055905550505050565b6000613445836115cd565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166134d45760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610cf3565b6000818152600260205260409020546001600160a01b0316156135395760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610cf3565b613545600083836130ef565b6001600160a01b038216600090815260036020526040812080546001929061356e908490613dbc565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546135d890613e4a565b90600052602060002090601f0160209004810192826135fa5760008555613640565b82601f106136135782800160ff19823516178555613640565b82800160010185558215613640579182015b82811115613640578235825591602001919060010190613625565b50612e489291505b80821115612e485760008155600101613648565b8035801515811461366c57600080fd5b919050565b600082601f83011261368257600080fd5b813567ffffffffffffffff8082111561369d5761369d613f0c565b604051601f8301601f19908116603f011681019082821181831017156136c5576136c5613f0c565b816040528381528660208588010111156136de57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60006020828403121561371057600080fd5b8135612b6281613f22565b6000806040838503121561372e57600080fd5b823561373981613f22565b946020939093013593505050565b6000806040838503121561375a57600080fd5b823561376581613f22565b9150602083013561377581613f22565b809150509250929050565b60008060006060848603121561379557600080fd5b83356137a081613f22565b925060208401356137b081613f22565b929592945050506040919091013590565b600080600080608085870312156137d757600080fd5b84356137e281613f22565b935060208501356137f281613f22565b925060408501359150606085013567ffffffffffffffff81111561381557600080fd5b61382187828801613671565b91505092959194509250565b6000806040838503121561384057600080fd5b823561384b81613f22565b91506138596020840161365c565b90509250929050565b600080600080600060a0868803121561387a57600080fd5b853561388581613f22565b9450602086013567ffffffffffffffff8111156138a157600080fd5b6138ad88828901613671565b9450506040860135925060608601359150608086013560ff811681146138d257600080fd5b809150509295509295909350565b6000806000606084860312156138f557600080fd5b833561390081613f22565b95602085013595506040909401359392505050565b60006020828403121561392757600080fd5b612b628261365c565b60006020828403121561394257600080fd5b8135612b6281613f37565b60006020828403121561395f57600080fd5b8151612b6281613f37565b60006020828403121561397c57600080fd5b8151612b6281613f22565b6000806020838503121561399a57600080fd5b823567ffffffffffffffff808211156139b257600080fd5b818501915085601f8301126139c657600080fd5b8135818111156139d557600080fd5b8660208285010111156139e757600080fd5b60209290920196919550909350505050565b600060208284031215613a0b57600080fd5b5035919050565b60008060408385031215613a2557600080fd5b50508035926020909101359150565b60008151808452613a4c816020860160208601613e1e565b601f01601f19169290920160200192915050565b60008251613a72818460208701613e1e565b9190910192915050565b60008351613a8e818460208801613e1e565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b60008351613ac5818460208801613e1e565b835190830190613ad9818360208801613e1e565b01949350505050565b6001600160a01b03848116825283166020820152606060408201819052600090613b0e90830184613a34565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613b4a90830184613a34565b9695505050505050565b602081526000612b626020830184613a34565b600060208083526000845481600182811c915080831680613b8957607f831692505b858310811415613ba757634e487b7160e01b85526022600452602485fd5b878601838152602001818015613bc45760018114613bd557613c00565b60ff19861682528782019650613c00565b60008b81526020902060005b86811015613bfa57815484820152908501908901613be1565b83019750505b50949998505050505050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b602080825260119082015270486f463a207a65726f206164647265737360781b604082015260600190565b60208082526018908201527f486f463a206d617820737570706c792065786365656465640000000000000000604082015260600190565b60208082526027908201527f486f463a206d617820636f6d6d6f6e207265736572766520737570706c7920656040820152661e18d95959195960ca1b606082015260800190565b602080825260129082015271121bd18e881a5b9d985b1a590818dbdd5b9d60721b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115613dcf57613dcf613eb4565b500190565b600082613de357613de3613eca565b500490565b6000816000190483118215151615613e0257613e02613eb4565b500290565b600082821015613e1957613e19613eb4565b500390565b60005b83811015613e39578181015183820152602001613e21565b838111156124615750506000910152565b600181811c90821680613e5e57607f821691505b60208210811415613e7f57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613e9957613e99613eb4565b5060010190565b600082613eaf57613eaf613eca565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146113b157600080fd5b6001600160e01b0319811681146113b157600080fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a2646970667358221220218bb719088beb742bc5baf14f91c63c43202e05c3b66d3716eb88472aeb1f8a64736f6c63430008070033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c7429c89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Deployed Bytecode
0x60806040526004361061038c5760003560e01c8063725c8ee7116101dc578063b29418d511610102578063d4ae7522116100a0578063e985e9c51161006f578063e985e9c514610afc578063f0f4426014610b1c578063f2fde38b14610b3c578063fd88fa6914610b5c57600080fd5b8063d4ae752214610a5f578063d547cfb714610a93578063d5abeb0114610aa8578063dca8603b14610adc57600080fd5b8063c5ea963f116100dc578063c5ea963f146109c1578063c87b56dd146109f5578063cffb47cf14610a15578063d3921e6a14610a4957600080fd5b8063b29418d51461094d578063b88d4fde14610981578063c480e583146109a157600080fd5b80638da5cb5b1161017a57806397304ced1161014957806397304ced146108e457806397f2ab60146108f7578063a22cb46514610917578063aee37af31461093757600080fd5b80638da5cb5b146108585780638db8053b1461087657806390aa0b0f1461088957806395d89b41146108cf57600080fd5b80637ff9b596116101b65780637ff9b596146107c4578063822e4a81146107da57806387d760801461080e5780638c3ee95f1461084257600080fd5b8063725c8ee71461076157806375794a3c1461078e57806378cf19e9146107a457600080fd5b80632d0335ab116102c15780634f6ccce71161025f5780636a61e5fc1161022e5780636a61e5fc146106ec5780636e0e5b191461070c57806370a082311461072c578063715018a61461074c57600080fd5b80634f6ccce71461065357806361d027b3146106735780636352211e146106985780636453dadd146106b857600080fd5b80633408e4701161029b5780633408e470146105ea5780633644e515146105fd57806342842e0e1461061357806342966c681461063357600080fd5b80632d0335ab146105745780632f745c59146105aa57806330176e13146105ca57600080fd5b80630c53c51c1161032e57806320379ee51161030857806320379ee5146104eb57806321bdb26e1461050057806323b872dd1461053457806325fa79e41461055457600080fd5b80630c53c51c146104965780630f7e5970146104a957806318160ddd146104d657600080fd5b806306fdde031161036a57806306fdde031461040057806307ebec2714610422578063081812fc1461043c578063095ea7b31461047457600080fd5b806301ffc9a7146103915780630334fe07146103c657806306e82357146103ea575b600080fd5b34801561039d57600080fd5b506103b16103ac366004613930565b610bc1565b60405190151581526020015b60405180910390f35b3480156103d257600080fd5b506103dc600f5481565b6040519081526020016103bd565b3480156103f657600080fd5b506103dc60105481565b34801561040c57600080fd5b50610415610bec565b6040516103bd9190613b54565b34801561042e57600080fd5b506015546103b19060ff1681565b34801561044857600080fd5b5061045c6104573660046139f9565b610c7e565b6040516001600160a01b0390911681526020016103bd565b34801561048057600080fd5b5061049461048f36600461371b565b610d18565b005b6104156104a4366004613862565b610e40565b3480156104b557600080fd5b50610415604051806040016040528060018152602001603160f81b81525081565b3480156104e257600080fd5b506008546103dc565b3480156104f757600080fd5b50600b546103dc565b34801561050c57600080fd5b506103dc7f000000000000000000000000000000000000000000000000000000000000032081565b34801561054057600080fd5b5061049461054f366004613780565b61102a565b34801561056057600080fd5b5061049461056f366004613a12565b611062565b34801561058057600080fd5b506103dc61058f3660046136fe565b6001600160a01b03166000908152600c602052604090205490565b3480156105b657600080fd5b506103dc6105c536600461371b565b6111b2565b3480156105d657600080fd5b506104946105e5366004613987565b611248565b3480156105f657600080fd5b50466103dc565b34801561060957600080fd5b506103dc601a5481565b34801561061f57600080fd5b5061049461062e366004613780565b6112da565b34801561063f57600080fd5b5061049461064e3660046139f9565b6112f5565b34801561065f57600080fd5b506103dc61066e3660046139f9565b6113b4565b34801561067f57600080fd5b5060155461045c9061010090046001600160a01b031681565b3480156106a457600080fd5b5061045c6106b33660046139f9565b611447565b3480156106c457600080fd5b506103dc7f000000000000000000000000000000000000000000000000000000000000000181565b3480156106f857600080fd5b506104946107073660046139f9565b6114be565b34801561071857600080fd5b50610494610727366004613915565b611543565b34801561073857600080fd5b506103dc6107473660046136fe565b6115cd565b34801561075857600080fd5b50610494611654565b34801561076d57600080fd5b506103dc61077c3660046136fe565b60186020526000908152604090205481565b34801561079a57600080fd5b506103dc60145481565b3480156107b057600080fd5b506104946107bf36600461371b565b6116e7565b3480156107d057600080fd5b506103dc60165481565b3480156107e657600080fd5b506103dc7f000000000000000000000000000000000000000000000000000000000000000a81565b34801561081a57600080fd5b506103dc7f000000000000000000000000000000000000000000000000000000000000003281565b34801561084e57600080fd5b506103dc600e5481565b34801561086457600080fd5b50600d546001600160a01b031661045c565b6104946108843660046139f9565b61180c565b34801561089557600080fd5b506019546108b29063ffffffff8082169164010000000090041682565b6040805163ffffffff9384168152929091166020830152016103bd565b3480156108db57600080fd5b50610415611d0c565b6104946108f23660046139f9565b611d1b565b34801561090357600080fd5b506104946109123660046138e0565b612197565b34801561092357600080fd5b5061049461093236600461382d565b612326565b34801561094357600080fd5b506103dc60115481565b34801561095957600080fd5b506103dc7f0000000000000000000000000000000000000000000000000000000000001b5881565b34801561098d57600080fd5b5061049461099c3660046137c1565b612428565b3480156109ad57600080fd5b506104946109bc36600461371b565b612467565b3480156109cd57600080fd5b506103dc7f000000000000000000000000000000000000000000000000000000000000000181565b348015610a0157600080fd5b50610415610a103660046139f9565b6124e6565b348015610a2157600080fd5b506103dc7f000000000000000000000000000000000000000000000000000000000000009781565b348015610a5557600080fd5b506103dc60125481565b348015610a6b57600080fd5b506103dc7f954c1b29eb96ae4246d32d2cc543b50838f63c704779fcaad14312a723b303a181565b348015610a9f57600080fd5b50610415612520565b348015610ab457600080fd5b506103dc7f0000000000000000000000000000000000000000000000000000000000001f4181565b348015610ae857600080fd5b50610494610af736600461371b565b61252f565b348015610b0857600080fd5b506103b1610b17366004613747565b6126c3565b348015610b2857600080fd5b50610494610b373660046136fe565b612793565b348015610b4857600080fd5b50610494610b573660046136fe565b612832565b348015610b6857600080fd5b50601754610b95906001600160a01b0381169063ffffffff600160a01b8204811691600160c01b90041683565b604080516001600160a01b03909416845263ffffffff92831660208501529116908201526060016103bd565b60006001600160e01b0319821663780e9d6360e01b1480610be65750610be682612999565b92915050565b606060008054610bfb90613e4a565b80601f0160208091040260200160405190810160405280929190818152602001828054610c2790613e4a565b8015610c745780601f10610c4957610100808354040283529160200191610c74565b820191906000526020600020905b815481529060010190602001808311610c5757829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610cfc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610d2382611447565b9050806001600160a01b0316836001600160a01b03161415610d915760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610cf3565b806001600160a01b0316610da36129e9565b6001600160a01b03161480610dbf5750610dbf81610b176129e9565b610e315760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610cf3565b610e3b83836129f8565b505050565b60408051606081810183526001600160a01b0388166000818152600c602090815290859020548452830152918101869052610e7e8782878787612a66565b610ed45760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b6064820152608401610cf3565b6001600160a01b0387166000908152600c6020526040902054610ef8906001612b56565b6001600160a01b0388166000908152600c60205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610f4890899033908a90613ae2565b60405180910390a1600080306001600160a01b0316888a604051602001610f70929190613a7c565b60408051601f1981840301815290829052610f8a91613a60565b6000604051808303816000865af19150503d8060008114610fc7576040519150601f19603f3d011682016040523d82523d6000602084013e610fcc565b606091505b50915091508161101e5760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610cf3565b98975050505050505050565b61103b6110356129e9565b82612b69565b6110575760405162461bcd60e51b8152600401610cf390613d6b565b610e3b838383612c38565b61106a6129e9565b6001600160a01b0316611085600d546001600160a01b031690565b6001600160a01b0316146110ab5760405162461bcd60e51b8152600401610cf390613d36565b60006110b683612de3565b905060006110c383612de3565b60175490915063ffffffff600160a01b9091048116908316108015906110f457508163ffffffff168163ffffffff16115b61113a5760405162461bcd60e51b8152602060048201526017602482015276486f463a20696e76616c69642074696d652072616e676560481b6044820152606401610cf3565b60408051808201825263ffffffff84811680835290841660209283018190526019805467ffffffffffffffff1916831764010000000083021790558351918252918101919091527fdeea4bc4c584249a0eee970a3b4f6d21bb13cdc2f6199522d5ea6db52fe6ade6910160405180910390a150505050565b60006111bd836115cd565b821061121f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610cf3565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6112506129e9565b6001600160a01b031661126b600d546001600160a01b031690565b6001600160a01b0316146112915760405162461bcd60e51b8152600401610cf390613d36565b61129d601b83836135cc565b507f228a3ac0675af69daeaaa5b8d369fe2faae665e7f340f0b78ccbb84e17b4f694601b6040516112ce9190613b67565b60405180910390a15050565b610e3b83838360405180602001604052806000815250612428565b60155460ff1661133f5760405162461bcd60e51b8152602060048201526015602482015274121bd18e88189d5c9b9a5b99c8191a5cd8589b1959605a1b6044820152606401610cf3565b6113493382612b69565b6113a85760405162461bcd60e51b815260206004820152602a60248201527f486f463a206275726e2063616c6c6572206973206e6f74206f776e6572206e6f6044820152691c88185c1c1c9bdd995960b21b6064820152608401610cf3565b6113b181612e4c565b50565b60006113bf60085490565b82106114225760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610cf3565b6008828154811061143557611435613ef6565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b031680610be65760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610cf3565b6114c66129e9565b6001600160a01b03166114e1600d546001600160a01b031690565b6001600160a01b0316146115075760405162461bcd60e51b8152600401610cf390613d36565b60168190556040518181527fac21bacd333b316c6640fca5086322638b0a7aa4367179afd5dfcbe0a5427bc7906020015b60405180910390a150565b61154b6129e9565b6001600160a01b0316611566600d546001600160a01b031690565b6001600160a01b03161461158c5760405162461bcd60e51b8152600401610cf390613d36565b6015805460ff19168215159081179091556040519081527f430864ad215aa849052adf33b0cae7eb033aa8a4f9cf45fb3973699038505ff390602001611538565b60006001600160a01b0382166116385760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610cf3565b506001600160a01b031660009081526003602052604090205490565b61165c6129e9565b6001600160a01b0316611677600d546001600160a01b031690565b6001600160a01b03161461169d5760405162461bcd60e51b8152600401610cf390613d36565b600d546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600d80546001600160a01b0319169055565b6116ef6129e9565b6001600160a01b031661170a600d546001600160a01b031690565b6001600160a01b0316146117305760405162461bcd60e51b8152600401610cf390613d36565b6001600160a01b0382166117565760405162461bcd60e51b8152600401610cf390613c61565b7f000000000000000000000000000000000000000000000000000000000000009781600e546117859190613dbc565b11156117a35760405162461bcd60e51b8152600401610cf390613cc3565b600e5460005b828110156117d6576117c4846117bf8385613dbc565b612ef3565b806117ce81613e85565b9150506117a9565b5081600e60008282546117e99190613dbc565b9250508190555081601260008282546118029190613dbc565b9091555050505050565b601454604080516060810182526017546001600160a01b03811680835263ffffffff600160a01b830481166020850152600160c01b909204909116928201929092529061189b5760405162461bcd60e51b815260206004820152601b60248201527f486f463a2070726573616c65206e6f7420636f6e6669677572656400000000006044820152606401610cf3565b60155461010090046001600160a01b03166118f05760405162461bcd60e51b8152602060048201526015602482015274121bd18e881d1c99585cdd5c9e481b9bdd081cd95d605a1b6044820152606401610cf3565b60006016541161193d5760405162461bcd60e51b8152602060048201526018602482015277121bd18e881d1bdad95b881c1c9a58d9481b9bdd081cd95d60421b6044820152606401610cf3565b6000831161195d5760405162461bcd60e51b8152600401610cf390613d0a565b7f00000000000000000000000000000000000000000000000000000000000000018311156119cd5760405162461bcd60e51b815260206004820152601e60248201527f486f463a206d617820636f756e742070657220747820657863656564656400006044820152606401610cf3565b806020015163ffffffff16421015611a275760405162461bcd60e51b815260206004820152601860248201527f486f463a2070726573616c65206e6f74207374617274656400000000000000006044820152606401610cf3565b806040015163ffffffff164210611a755760405162461bcd60e51b8152602060048201526012602482015271121bd18e881c1c995cd85b1948195b99195960721b6044820152606401610cf3565b7f0000000000000000000000000000000000000000000000000000000000001f41611aa08484613dbc565b1115611abe5760405162461bcd60e51b8152600401610cf390613c8c565b7f000000000000000000000000000000000000000000000000000000000000032083600f54611aed9190613dbc565b1115611b3b5760405162461bcd60e51b815260206004820152601a60248201527f486f463a20696e636f72726563742045746865722076616c75650000000000006044820152606401610cf3565b336000908152601860205260409020547f000000000000000000000000000000000000000000000000000000000000000190611b78908590613dbc565b1115611bec5760405162461bcd60e51b815260206004820152603a60248201527f486f463a2070726573616c65206d61782070726573616c6520636f756e74206660448201527f6f722073696e676c65206163636f756e742065786365656465640000000000006064820152608401610cf3565b3360009081526018602052604081208054859290611c0b908490613dbc565b9250508190555082600f6000828254611c249190613dbc565b925050819055508260126000828254611c3d9190613dbc565b90915550503415611c8a576015546040516001600160a01b0361010090920491909116903480156108fc02916000818181858888f19350505050158015611c88573d6000803e3d6000fd5b505b60005b83811015611cb557611ca3336117bf8386613dbc565b80611cad81613e85565b915050611c8d565b508260146000828254611cc89190613dbc565b909155505060408051338152602081018590527ff5df7d07fef0d8ac7581015ebd1a3b7b7760da84b12f0c8174ae0dcd639cb6a391015b60405180910390a1505050565b606060018054610bfb90613e4a565b6014546040805180820190915260195463ffffffff808216808452640100000000909204166020830152611d915760405162461bcd60e51b815260206004820152601860248201527f486f463a2073616c65206e6f7420636f6e6669677572656400000000000000006044820152606401610cf3565b60155461010090046001600160a01b0316611de65760405162461bcd60e51b8152602060048201526015602482015274121bd18e881d1c99585cdd5c9e481b9bdd081cd95d605a1b6044820152606401610cf3565b600060165411611e335760405162461bcd60e51b8152602060048201526018602482015277121bd18e881d1bdad95b881c1c9a58d9481b9bdd081cd95d60421b6044820152606401610cf3565b600083118015611e6357507f000000000000000000000000000000000000000000000000000000000000000a8311155b611e7f5760405162461bcd60e51b8152600401610cf390613d0a565b805163ffffffff16421015611ece5760405162461bcd60e51b8152602060048201526015602482015274121bd18e881cd85b19481b9bdd081cdd185c9d1959605a1b6044820152606401610cf3565b806020015163ffffffff164210611f195760405162461bcd60e51b815260206004820152600f60248201526e121bd18e881cd85b1948195b991959608a1b6044820152606401610cf3565b7f000000000000000000000000000000000000000000000000000000000000000a831115611f895760405162461bcd60e51b815260206004820152601e60248201527f486f463a206d617820636f756e742070657220747820657863656564656400006044820152606401610cf3565b7f0000000000000000000000000000000000000000000000000000000000001f41611fb48484613dbc565b1115611fd25760405162461bcd60e51b8152600401610cf390613c8c565b7f0000000000000000000000000000000000000000000000000000000000001b58836010546120019190613dbc565b111561204f5760405162461bcd60e51b815260206004820152601d60248201527f486f463a206d61782073616c6520737570706c792065786365656465640000006044820152606401610cf3565b348360165461205e9190613de8565b11156120ac5760405162461bcd60e51b815260206004820152601a60248201527f486f463a20696e636f72726563742045746865722076616c75650000000000006044820152606401610cf3565b6015546040516001600160a01b0361010090920491909116903480156108fc02916000818181858888f193505050501580156120ec573d6000803e3d6000fd5b5082601060008282546120ff9190613dbc565b9250508190555082601260008282546121189190613dbc565b90915550600090505b8381101561214957612137336117bf8386613dbc565b8061214181613e85565b915050612121565b50826014600082825461215c9190613dbc565b909155505060408051338152602081018590527f35b6d348af664cd334c7ec2746e1ab49907efa953fa3f622552cd0b19a828b3f9101611cff565b61219f6129e9565b6001600160a01b03166121ba600d546001600160a01b031690565b6001600160a01b0316146121e05760405162461bcd60e51b8152600401610cf390613d36565b60006121eb83612de3565b905060006121f883612de3565b90506001600160a01b0385166122205760405162461bcd60e51b8152600401610cf390613c61565b60008263ffffffff1611801561224157508163ffffffff168163ffffffff16115b6122875760405162461bcd60e51b8152602060048201526017602482015276486f463a20696e76616c69642074696d652072616e676560481b6044820152606401610cf3565b60408051606080820183526001600160a01b03881680835263ffffffff8681166020808601829052918716948601859052601780546001600160c01b0319168417600160a01b83021763ffffffff60c01b1916600160c01b8702179055855192835290820152928301919091527f883135fc965d7f7dbcc3014a73e1da89792169e1946b4fa2b4217cef2ae08003910160405180910390a15050505050565b61232e6129e9565b6001600160a01b0316826001600160a01b0316141561238f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610cf3565b806005600061239c6129e9565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556123e06129e9565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161241c911515815260200190565b60405180910390a35050565b6124396124336129e9565b83612b69565b6124555760405162461bcd60e51b8152600401610cf390613d6b565b61246184848484612f11565b50505050565b61246f6129e9565b6001600160a01b031661248a600d546001600160a01b031690565b6001600160a01b0316146124b05760405162461bcd60e51b8152600401610cf390613d36565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610e3b573d6000803e3d6000fd5b60606124f0612520565b6124f983612f44565b60405160200161250a929190613ab3565b6040516020818303038152906040529050919050565b6060601b8054610bfb90613e4a565b6125376129e9565b6001600160a01b0316612552600d546001600160a01b031690565b6001600160a01b0316146125785760405162461bcd60e51b8152600401610cf390613d36565b6001600160a01b03821661259e5760405162461bcd60e51b8152600401610cf390613c61565b601454816125be5760405162461bcd60e51b8152600401610cf390613d0a565b7f0000000000000000000000000000000000000000000000000000000000001f416125e98383613dbc565b11156126075760405162461bcd60e51b8152600401610cf390613c8c565b7f0000000000000000000000000000000000000000000000000000000000000032826011546126369190613dbc565b11156126545760405162461bcd60e51b8152600401610cf390613cc3565b81601160008282546126669190613dbc565b92505081905550816012600082825461267f9190613dbc565b90915550600090505b828110156126b05761269e846117bf8385613dbc565b806126a881613e85565b915050612688565b5081601460008282546118029190613dbc565b60135460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b15801561271057600080fd5b505afa158015612724573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612748919061396a565b6001600160a01b03161415612761576001915050610be6565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b61279b6129e9565b6001600160a01b03166127b6600d546001600160a01b031690565b6001600160a01b0316146127dc5760405162461bcd60e51b8152600401610cf390613d36565b60158054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527fc714d22a2f08b695f81e7c707058db484aa5b4d6b4c9fd64beb10fe85832f60890602001611538565b61283a6129e9565b6001600160a01b0316612855600d546001600160a01b031690565b6001600160a01b03161461287b5760405162461bcd60e51b8152600401610cf390613d36565b6001600160a01b0381166128e05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cf3565b600d546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600d80546001600160a01b0319166001600160a01b0392909216919091179055565b60003330141561299357600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506129969050565b50335b90565b60006001600160e01b031982166380ac58cd60e01b14806129ca57506001600160e01b03198216635b5e139f60e01b145b80610be657506301ffc9a760e01b6001600160e01b0319831614610be6565b60006129f361293c565b905090565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612a2d82611447565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b038616612acc5760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b6064820152608401610cf3565b6001612adf612ada87613042565b6130bf565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015612b2d573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b6000612b628284613dbc565b9392505050565b6000818152600260205260408120546001600160a01b0316612be25760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610cf3565b6000612bed83611447565b9050806001600160a01b0316846001600160a01b03161480612c285750836001600160a01b0316612c1d84610c7e565b6001600160a01b0316145b8061278b575061278b81856126c3565b826001600160a01b0316612c4b82611447565b6001600160a01b031614612cb35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610cf3565b6001600160a01b038216612d155760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610cf3565b612d208383836130ef565b612d2b6000826129f8565b6001600160a01b0383166000908152600360205260408120805460019290612d54908490613e07565b90915550506001600160a01b0382166000908152600360205260408120805460019290612d82908490613dbc565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006401000000008210612e485760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b6064820152608401610cf3565b5090565b6000612e5782611447565b9050612e65816000846130ef565b612e706000836129f8565b6001600160a01b0381166000908152600360205260408120805460019290612e99908490613e07565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b612f0d8282604051806020016040528060008152506131a7565b5050565b612f1c848484612c38565b612f28848484846131da565b6124615760405162461bcd60e51b8152600401610cf390613c0f565b606081612f685750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612f925780612f7c81613e85565b9150612f8b9050600a83613dd4565b9150612f6c565b60008167ffffffffffffffff811115612fad57612fad613f0c565b6040519080825280601f01601f191660200182016040528015612fd7576020820181803683370190505b5090505b841561278b57612fec600183613e07565b9150612ff9600a86613ea0565b613004906030613dbc565b60f81b81838151811061301957613019613ef6565b60200101906001600160f81b031916908160001a90535061303b600a86613dd4565b9450612fdb565b6000604051806080016040528060438152602001613f4e60439139805160209182012083518483015160408087015180519086012090516130a2950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b60006130ca600b5490565b60405161190160f01b60208201526022810191909152604281018390526062016130a2565b6001600160a01b03831661314a5761314581600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61316d565b816001600160a01b0316836001600160a01b03161461316d5761316d83826132ee565b6001600160a01b03821661318457610e3b8161338b565b826001600160a01b0316826001600160a01b031614610e3b57610e3b828261343a565b6131b1838361347e565b6131be60008484846131da565b610e3b5760405162461bcd60e51b8152600401610cf390613c0f565b60006001600160a01b0384163b156132e357836001600160a01b031663150b7a026132036129e9565b8786866040518563ffffffff1660e01b81526004016132259493929190613b17565b602060405180830381600087803b15801561323f57600080fd5b505af192505050801561326f575060408051601f3d908101601f1916820190925261326c9181019061394d565b60015b6132c9573d80801561329d576040519150601f19603f3d011682016040523d82523d6000602084013e6132a2565b606091505b5080516132c15760405162461bcd60e51b8152600401610cf390613c0f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061278b565b506001949350505050565b600060016132fb846115cd565b6133059190613e07565b600083815260076020526040902054909150808214613358576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061339d90600190613e07565b600083815260096020526040812054600880549394509092849081106133c5576133c5613ef6565b9060005260206000200154905080600883815481106133e6576133e6613ef6565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061341e5761341e613ee0565b6001900381819060005260206000200160009055905550505050565b6000613445836115cd565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166134d45760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610cf3565b6000818152600260205260409020546001600160a01b0316156135395760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610cf3565b613545600083836130ef565b6001600160a01b038216600090815260036020526040812080546001929061356e908490613dbc565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546135d890613e4a565b90600052602060002090601f0160209004810192826135fa5760008555613640565b82601f106136135782800160ff19823516178555613640565b82800160010185558215613640579182015b82811115613640578235825591602001919060010190613625565b50612e489291505b80821115612e485760008155600101613648565b8035801515811461366c57600080fd5b919050565b600082601f83011261368257600080fd5b813567ffffffffffffffff8082111561369d5761369d613f0c565b604051601f8301601f19908116603f011681019082821181831017156136c5576136c5613f0c565b816040528381528660208588010111156136de57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60006020828403121561371057600080fd5b8135612b6281613f22565b6000806040838503121561372e57600080fd5b823561373981613f22565b946020939093013593505050565b6000806040838503121561375a57600080fd5b823561376581613f22565b9150602083013561377581613f22565b809150509250929050565b60008060006060848603121561379557600080fd5b83356137a081613f22565b925060208401356137b081613f22565b929592945050506040919091013590565b600080600080608085870312156137d757600080fd5b84356137e281613f22565b935060208501356137f281613f22565b925060408501359150606085013567ffffffffffffffff81111561381557600080fd5b61382187828801613671565b91505092959194509250565b6000806040838503121561384057600080fd5b823561384b81613f22565b91506138596020840161365c565b90509250929050565b600080600080600060a0868803121561387a57600080fd5b853561388581613f22565b9450602086013567ffffffffffffffff8111156138a157600080fd5b6138ad88828901613671565b9450506040860135925060608601359150608086013560ff811681146138d257600080fd5b809150509295509295909350565b6000806000606084860312156138f557600080fd5b833561390081613f22565b95602085013595506040909401359392505050565b60006020828403121561392757600080fd5b612b628261365c565b60006020828403121561394257600080fd5b8135612b6281613f37565b60006020828403121561395f57600080fd5b8151612b6281613f37565b60006020828403121561397c57600080fd5b8151612b6281613f22565b6000806020838503121561399a57600080fd5b823567ffffffffffffffff808211156139b257600080fd5b818501915085601f8301126139c657600080fd5b8135818111156139d557600080fd5b8660208285010111156139e757600080fd5b60209290920196919550909350505050565b600060208284031215613a0b57600080fd5b5035919050565b60008060408385031215613a2557600080fd5b50508035926020909101359150565b60008151808452613a4c816020860160208601613e1e565b601f01601f19169290920160200192915050565b60008251613a72818460208701613e1e565b9190910192915050565b60008351613a8e818460208801613e1e565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b60008351613ac5818460208801613e1e565b835190830190613ad9818360208801613e1e565b01949350505050565b6001600160a01b03848116825283166020820152606060408201819052600090613b0e90830184613a34565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613b4a90830184613a34565b9695505050505050565b602081526000612b626020830184613a34565b600060208083526000845481600182811c915080831680613b8957607f831692505b858310811415613ba757634e487b7160e01b85526022600452602485fd5b878601838152602001818015613bc45760018114613bd557613c00565b60ff19861682528782019650613c00565b60008b81526020902060005b86811015613bfa57815484820152908501908901613be1565b83019750505b50949998505050505050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b602080825260119082015270486f463a207a65726f206164647265737360781b604082015260600190565b60208082526018908201527f486f463a206d617820737570706c792065786365656465640000000000000000604082015260600190565b60208082526027908201527f486f463a206d617820636f6d6d6f6e207265736572766520737570706c7920656040820152661e18d95959195960ca1b606082015260800190565b602080825260129082015271121bd18e881a5b9d985b1a590818dbdd5b9d60721b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115613dcf57613dcf613eb4565b500190565b600082613de357613de3613eca565b500490565b6000816000190483118215151615613e0257613e02613eb4565b500290565b600082821015613e1957613e19613eb4565b500390565b60005b83811015613e39578181015183820152602001613e21565b838111156124615750506000910152565b600181811c90821680613e5e57607f821691505b60208210811415613e7f57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613e9957613e99613eb4565b5060010190565b600082613eaf57613eaf613eca565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146113b157600080fd5b6001600160e01b0319811681146113b157600080fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a2646970667358221220218bb719088beb742bc5baf14f91c63c43202e05c3b66d3716eb88472aeb1f8a64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
-----Decoded View---------------
Arg [0] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
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.