ERC-721
Overview
Max Total Supply
885 HC
Holders
265
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
7 HCLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
HashCats
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.9; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import './Delegated.sol'; import './ERC721Batch.sol'; import './Merkle.sol'; import './Royalties.sol'; interface IERC20Withdraw{ function balanceOf(address account) external view returns (uint256); function transfer(address to, uint256 amount) external returns (bool); } interface IERC721Withdraw{ function transferFrom(address from, address to, uint256 tokenId) external; } contract HashCats is Delegated, ERC721Batch, Royalties, Merkle { using Address for address; using Strings for uint256; enum SaleState{ NONE, PRESALE, MAINSALE } struct MintConfig{ uint16 maxMint; uint16 maxOrder; uint16 maxSupply; uint8 saleState; } struct PriceCurve{ uint16 mark; uint256 price; } MintConfig public config = MintConfig( 20, //maxMint 20, //maxOrder 10000, //maxSupply uint8(SaleState.NONE) ); address public withdrawTo = 0x49bdF5aFDF2dfF8a0890c7A37fEc90c3ae816187; PriceCurve[] public pricing; string public tokenURIPrefix = "https://www.hashcats.io/metadata/prereveal.json?"; string public finalURIPrefix = ""; string public tokenURISuffix = ""; constructor() ERC721B("HashCats", "HC" ) Royalties( address(this), 500, 10000 ){ pricing.push( PriceCurve( 5, 0.030 ether ) ); pricing.push( PriceCurve( 10, 0.025 ether ) ); pricing.push( PriceCurve( 10000, 0.020 ether ) ); } //safety first receive() external payable {} //payable function mint( uint16 quantity, bytes32[] calldata proof ) external payable { MintConfig memory cfg = config; uint16 ownerBalance = owners[ msg.sender ].balance; require( quantity > 0, "Must order 1+" ); require( quantity <= cfg.maxOrder, "Order too big" ); require( ownerBalance + quantity <= cfg.maxMint, "Wallet limit reached" ); require( totalSupply() + quantity <= cfg.maxSupply, "Mint/Order exceeds supply" ); uint256 totalPrice = calculateTotal( msg.sender, quantity ); require( msg.value == totalPrice, "Ether sent is not correct" ); if( cfg.saleState == uint8(SaleState.MAINSALE) ){ //no-op } else if( cfg.saleState == uint8(SaleState.PRESALE) ){ require( _isValidProof( keccak256( abi.encodePacked( msg.sender ) ), proof ), "You are not on the access list" ); } else{ revert( "Sale is not active" ); } owners[ msg.sender ].balance += quantity; owners[ msg.sender ].purchased += quantity; for( uint256 i = 0; i < quantity; ++i ){ _mint(Token( msg.sender, 9 )); } } //onlyDelegates function mintTo(uint16[] calldata quantity, address[] calldata recipient) external payable onlyDelegates{ require(quantity.length == recipient.length, "Must provide equal quantities and recipients" ); uint256 totalQuantity; uint256 supply = totalSupply(); for(uint256 i; i < quantity.length; ++i){ totalQuantity += quantity[i]; } require( supply + totalQuantity <= config.maxSupply, "Mint/order exceeds supply" ); for(uint256 i; i < recipient.length; ++i){ owners[ recipient[i] ].balance += quantity[i]; for(uint256 j; j < quantity[i]; ++j){ Token memory token = Token( recipient[i], 9 ); _mint( token ); } } } function burnFrom( address account, uint16[] calldata tokenIds ) external onlyDelegates{ owners[ account ].balance -= uint16(tokenIds.length); for(uint i; i < tokenIds.length; ++i ){ _burn( account, tokenIds[i] ); } } function setConfig( MintConfig calldata config_ ) external onlyDelegates{ require( config_.maxOrder <= config_.maxSupply, "max order must be lte max supply" ); require( totalSupply() <= config_.maxSupply, "max supply must be gte total supply" ); config = config_; } function setPricingCurve( uint16[] calldata marks, uint256[] calldata newPrices ) external onlyDelegates { require( marks.length == newPrices.length, "must provide equal marks and prices" ); while( marks.length > pricing.length ){ pricing.pop(); } uint16 prevMark = 0; for( uint256 i = 0; i < marks.length; ++i ){ require( i > 0 && marks[i] > prevMark, "quantity marks must increase" ); prevMark = marks[i]; if( i == pricing.length ) pricing.push(); pricing[ i ] = PriceCurve( prevMark, newPrices[i] ); } } function setTokenURI( string calldata prefix, string calldata finalPrefix, string calldata suffix ) external onlyDelegates{ tokenURIPrefix = prefix; finalURIPrefix = finalPrefix; tokenURISuffix = suffix; } //onlyOwner function setDefaultRoyalty( address receiver, uint16 royaltyNum, uint16 royaltyDenom ) external onlyOwner { _setDefaultRoyalty( receiver, royaltyNum, royaltyDenom ); } function setWithdrawTo( address newRecipient ) external { withdrawTo = newRecipient; } //withdraw function withdraw() external onlyOwner { uint256 totalBalance = address(this).balance; require(totalBalance > 0, "no funds available"); Address.sendValue(payable(withdrawTo), totalBalance); } function withdraw(address token) external { IERC20Withdraw erc20 = IERC20Withdraw(token); erc20.transfer( withdrawTo, erc20.balanceOf(address(this)) ); } function withdraw(address token, uint256[] calldata tokenId) external { for( uint256 i = 0; i < tokenId.length; ++i ){ IERC721Withdraw(token).transferFrom( address(this), withdrawTo, tokenId[i] ); } } //view function calculateTotal( address account, uint16 quantity ) public view returns( uint256 totalPrice ){ uint256 p = 0; uint16 ownerBalance = owners[ account ].balance; for( uint256 i = 0; i < quantity; ++i ){ for( ; p < pricing.length; ++p ){ if(( ownerBalance + 1 + i ) < pricing[ p ].mark ){ totalPrice += pricing[ p ].price; break; } } } } //view: IERC721Metadata function tokenURI( uint256 tokenId ) public view override returns( string memory ){ require(_exists(tokenId), "query for nonexistent token"); Token memory token = tokens[ tokenId ]; if( token.lives > 0 ){ return bytes(tokenURIPrefix).length > 0 ? string(abi.encodePacked(tokenURIPrefix, tokenId.toString(), tokenURISuffix)): ""; } else{ return bytes(finalURIPrefix).length > 0 ? string(abi.encodePacked(finalURIPrefix, tokenId.toString(), tokenURISuffix)): ""; } } //view: IERC165 function supportsInterface( bytes4 interfaceId ) public view override( ERC721EnumerableB, Royalties ) returns( bool ){ return ERC721EnumerableB.supportsInterface( interfaceId ) || Royalties.supportsInterface( interfaceId ); } //internal function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override { Token storage token = tokens[ tokenId ]; if( token.lives > 0 ){ if( from != address(0) && to != address(0) ) --token.lives; } super._beforeTokenTransfer( from, to, tokenId ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; contract Royalties is IERC2981{ struct Fraction{ uint16 numerator; uint16 denominator; } struct Royalty{ address receiver; Fraction fraction; } Royalty public defaultRoyalty; constructor( address receiver, uint16 royaltyNum, uint16 royaltyDenom ){ _setDefaultRoyalty( receiver, royaltyNum, royaltyDenom ); } //view: IERC2981 /** * @dev See {IERC2981-royaltyInfo}. **/ function royaltyInfo(uint256, uint256 _salePrice) external view virtual returns (address, uint256) { /* Royalty memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } */ uint256 royaltyAmount = (_salePrice * defaultRoyalty.fraction.numerator) / defaultRoyalty.fraction.denominator; return (defaultRoyalty.receiver, royaltyAmount); } //view: IERC165 /** * @dev See {IERC165-supportsInterface}. **/ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC2981).interfaceId; } function _setDefaultRoyalty( address receiver, uint16 royaltyNum, uint16 royaltyDenom ) internal { defaultRoyalty.receiver = receiver; defaultRoyalty.fraction = Fraction(royaltyNum, royaltyDenom); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "./Delegated.sol"; contract Merkle is Delegated{ bytes32 internal merkleRoot = ""; function setMerkleRoot( bytes32 merkleRoot_ ) external onlyDelegates{ merkleRoot = merkleRoot_; } function _isValidProof(bytes32 leaf, bytes32[] memory proof) internal view returns( bool ){ return MerkleProof.processProof( proof, leaf ) == merkleRoot; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface IERC721Batch { function isOwnerOf( address account, uint[] calldata tokenIds ) external view returns( bool ); function safeTransferBatch( address from, address to, uint[] calldata tokenIds, bytes calldata data ) external; function transferBatch( address from, address to, uint[] calldata tokenIds ) external; function walletOfOwner( address account ) external view returns( uint[] memory ); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "./ERC721B.sol"; abstract contract ERC721EnumerableB is ERC721B, IERC721Enumerable { function supportsInterface( bytes4 interfaceId ) public view virtual override( ERC721B, IERC165 ) returns( bool ){ return ERC721B.supportsInterface(interfaceId) || interfaceId == type(IERC721Enumerable).interfaceId; } function tokenOfOwnerByIndex( address owner, uint256 index ) external view override returns( uint ){ require( owners[ owner ].balance > index, "ERC721EnumerableB: owner index out of bounds" ); uint256 count; uint256 tokenId; for( tokenId = 0; tokenId < tokens.length; ++tokenId ){ if( owner != tokens[tokenId].owner ) continue; if( index == count++ ) break; } return tokenId; } function tokenByIndex( uint256 index ) external view override returns( uint ){ require( _exists( index ), "ERC721EnumerableB: query for nonexistent token"); return index; } function totalSupply() public view virtual override( ERC721B, IERC721Enumerable ) returns( uint ){ return super.totalSupply(); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "./IERC721Batch.sol"; import "./ERC721EnumerableB.sol"; abstract contract ERC721Batch is ERC721EnumerableB, IERC721Batch { function isOwnerOf( address account, uint[] calldata tokenIds ) external view override returns( bool ){ for(uint i; i < tokenIds.length; ++i ){ if( account != tokens[ tokenIds[i] ].owner ) return false; } return true; } function safeTransferBatch( address from, address to, uint256[] calldata tokenIds, bytes calldata data ) external override{ for(uint i; i < tokenIds.length; ++i ){ safeTransferFrom( from, to, tokenIds[i], data ); } } function transferBatch( address from, address to, uint256[] calldata tokenIds ) external override{ for(uint i; i < tokenIds.length; ++i ){ transferFrom( from, to, tokenIds[i] ); } } function walletOfOwner( address account ) external view override returns( uint[] memory ){ uint256 count; uint256 quantity = owners[ account ].balance; uint256[] memory wallet = new uint[]( quantity ); for( uint i = 0; i < tokens.length; ++i ){ if( account == tokens[i].owner ){ wallet[ count++ ] = i; if( count == quantity ) break; } } return wallet; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; abstract contract ERC721B is Context, ERC165, IERC721, IERC721Metadata { using Address for address; struct Owner{ uint16 balance; uint16 claimed; uint16 purchased; } struct Token{ address owner; uint8 lives; } uint256 public burned; Token[] public tokens; mapping(address => Owner) public owners; string private _name; string private _symbol; mapping(uint256 => address) internal _tokenApprovals; mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_ ){ _name = name_; _symbol = symbol_; } //public view function balanceOf(address owner) external view override returns( uint256 balance ){ require(owner != address(0), "ERC721B: balance query for the zero address"); return owners[owner].balance; } function name() external view override returns( string memory name_ ){ return _name; } function ownerOf(uint256 tokenId) public view override returns( address owner ){ require(_exists(tokenId), "ERC721B: query for nonexistent token"); return tokens[tokenId].owner; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns( bool isSupported ){ return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } function symbol() external view override returns( string memory symbol_ ){ return _symbol; } function totalSupply() public view virtual returns( uint256 ){ return tokens.length - burned; } //approvals function approve(address to, uint tokenId) external override { address owner = ownerOf(tokenId); require(to != owner, "ERC721B: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721B: caller is not owner nor approved for all" ); _approve(to, tokenId); } function getApproved(uint256 tokenId) public view override returns( address approver ){ require(_exists(tokenId), "ERC721: query for nonexistent token"); return _tokenApprovals[tokenId]; } function isApprovedForAll(address owner, address operator) public view override returns( bool isApproved ){ return _operatorApprovals[owner][operator]; } function setApprovalForAll(address operator, bool approved) external override { _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } //transfers function safeTransferFrom(address from, address to, uint256 tokenId) external override{ safeTransferFrom(from, to, tokenId, ""); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721B: caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } function transferFrom(address from, address to, uint256 tokenId) public override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721B: caller is not owner nor approved"); _transfer(from, to, tokenId); } //internal function _approve(address to, uint tokenId) internal{ _tokenApprovals[tokenId] = to; emit Approval(ownerOf(tokenId), to, tokenId); } function _beforeTokenTransfer(address from, address to, uint256) internal virtual {} function _burn(address from, uint256 tokenId) internal { require(ownerOf(tokenId) == from, "ERC721B: burn of token that is not own"); // Clear approvals delete _tokenApprovals[tokenId]; ++burned; tokens[tokenId].owner = address(0); emit Transfer(from, address(0), tokenId); } function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data) private returns( bool ){ if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721B: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } function _exists(uint256 tokenId) internal view returns( bool ){ return tokenId < tokens.length && tokens[tokenId].owner != address(0); } function _isApprovedOrOwner(address spender, uint256 tokenId) internal view returns( bool isApproved ){ require(_exists(tokenId), "ERC721B: query for nonexistent token"); address owner = ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } function _mint( Token memory token ) internal virtual{ uint256 tokenId = tokens.length; tokens.push( token ); emit Transfer( address(0), token.owner, tokenId ); } function _next() internal view virtual returns(uint){ return tokens.length; } function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal{ _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721B: transfer to non ERC721Receiver implementer"); } function _transfer(address from, address to, uint256 tokenId) internal virtual { require(ownerOf(tokenId) == from, "ERC721B: transfer of token that is not own"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; _beforeTokenTransfer(from, to, tokenId); unchecked { --owners[from].balance; ++owners[to].balance; } tokens[tokenId].owner = to; emit Transfer(from, to, tokenId); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; contract Delegated is Ownable{ mapping(address => bool) internal _delegates; modifier onlyDelegates { require(_delegates[msg.sender], "Invalid delegate" ); _; } constructor() Ownable(){ setDelegate( owner(), true ); } //onlyOwner function isDelegate( address addr ) external view onlyOwner returns( bool ){ return _delegates[addr]; } function setDelegate( address addr, bool isDelegate_ ) public onlyOwner{ _delegates[addr] = isDelegate_; } function transferOwnership(address newOwner) public virtual override onlyOwner { _delegates[newOwner] = true; super.transferOwnership( newOwner ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * 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; /** * @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 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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"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":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint16[]","name":"tokenIds","type":"uint16[]"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint16","name":"quantity","type":"uint16"}],"name":"calculateTotal","outputs":[{"internalType":"uint256","name":"totalPrice","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"config","outputs":[{"internalType":"uint16","name":"maxMint","type":"uint16"},{"internalType":"uint16","name":"maxOrder","type":"uint16"},{"internalType":"uint16","name":"maxSupply","type":"uint16"},{"internalType":"uint8","name":"saleState","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultRoyalty","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"components":[{"internalType":"uint16","name":"numerator","type":"uint16"},{"internalType":"uint16","name":"denominator","type":"uint16"}],"internalType":"struct Royalties.Fraction","name":"fraction","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finalURIPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"approver","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"isApproved","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isDelegate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"isOwnerOf","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"quantity","type":"uint16"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"quantity","type":"uint16[]"},{"internalType":"address[]","name":"recipient","type":"address[]"}],"name":"mintTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"name_","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"owners","outputs":[{"internalType":"uint16","name":"balance","type":"uint16"},{"internalType":"uint16","name":"claimed","type":"uint16"},{"internalType":"uint16","name":"purchased","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"pricing","outputs":[{"internalType":"uint16","name":"mark","type":"uint16"},{"internalType":"uint256","name":"price","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"tokenIds","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint16","name":"maxMint","type":"uint16"},{"internalType":"uint16","name":"maxOrder","type":"uint16"},{"internalType":"uint16","name":"maxSupply","type":"uint16"},{"internalType":"uint8","name":"saleState","type":"uint8"}],"internalType":"struct HashCats.MintConfig","name":"config_","type":"tuple"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint16","name":"royaltyNum","type":"uint16"},{"internalType":"uint16","name":"royaltyDenom","type":"uint16"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"isDelegate_","type":"bool"}],"name":"setDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot_","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"marks","type":"uint16[]"},{"internalType":"uint256[]","name":"newPrices","type":"uint256[]"}],"name":"setPricingCurve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"prefix","type":"string"},{"internalType":"string","name":"finalPrefix","type":"string"},{"internalType":"string","name":"suffix","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRecipient","type":"address"}],"name":"setWithdrawTo","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":"symbol_","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenURIPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenURISuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokens","outputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint8","name":"lives","type":"uint8"}],"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":"tokenIds","type":"uint256[]"}],"name":"transferBatch","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":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256[]","name":"tokenId","type":"uint256[]"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawTo","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6000600b8190556014608081905260a05261271060c05260e052600c805466ffffffffffffff191665271000140014179055600d80546001600160a01b0319167349bdf5afdf2dff8a0890c7a37fec90c3ae81618717905561016060405260306101008181529062003ff76101203980516200008491600f91602090910190620003c6565b50604080516020810191829052600090819052620000a591601091620003c6565b50604080516020810191829052600090819052620000c691601191620003c6565b50348015620000d457600080fd5b506040805180820182526008815267486173684361747360c01b602080830191825283518085019094526002845261484360f01b90840152815130936101f4936127109390926200012891600391620003c6565b5080516200013e906004906020840190620003c6565b5050506200015b62000155620002e660201b60201c565b620002ea565b6200017a620001726007546001600160a01b031690565b60016200033c565b600980546001600160a01b0319166001600160a01b0385161790556040805180820190915261ffff8084168083529083166020909201829052600a805463ffffffff191690911762010000909202919091179055505060408051808201825260058152666a94d74f4300006020808301918252600e805460018082018355600083815295517fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd6002938402818101805461ffff1990811661ffff9586161790915597517fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fe918201558951808b018b52600a81526658d15e1762800081890190815287548087018955888c52915191870280850180548c169387169390931790925551908201558951808b01909a526127108a5266470de4df820000968a0196875285549384018655949097529651910294850180549094169516949094179091555191015550620004a9565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6007546001600160a01b031633146200039b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b6001600160a01b03919091166000908152600860205260409020805460ff1916911515919091179055565b828054620003d4906200046c565b90600052602060002090601f016020900481019282620003f8576000855562000443565b82601f106200041357805160ff191683800117855562000443565b8280016001018555821562000443579182015b828111156200044357825182559160200191906001019062000426565b506200045192915062000455565b5090565b5b8082111562000451576000815560010162000456565b600181811c908216806200048157607f821691505b60208210811415620004a357634e487b7160e01b600052602260045260246000fd5b50919050565b613b3e80620004b96000396000f3fe6080604052600436106102b25760003560e01c8063715018a611610175578063ae7bf4c8116100dc578063c0ac998311610095578063dbbc853b1161006f578063dbbc853b146109a9578063e985e9c5146109be578063ececaf0014610a07578063f2fde38b14610a2757600080fd5b8063c0ac998314610961578063c87b56dd14610976578063da41bfe11461099657600080fd5b8063ae7bf4c8146108b9578063b83c673b146108cc578063b88d4fde146108ec578063ba19d3cb1461090c578063bc42f4df14610921578063c04231451461094157600080fd5b80638bcd3e931161012e5780638bcd3e93146108065780638da5cb5b1461082657806395d89b4114610844578063a22cb46514610859578063aaa09d9814610879578063aaf26b1a1461089957600080fd5b8063715018a6146106b757806373f42561146106cc5780637885fdc7146106e257806379502c551461075a5780637cb64759146107c65780638293744b146107e657600080fd5b806342842e0e1161021957806351cff8d9116101d257806351cff8d9146105c057806361c3243b146105e05780636352211e146106005780636945d800146106205780636b33e45d1461065a57806370a082311461069757600080fd5b806342842e0e146104d2578063438b6300146104f25780634a994eef1461051f5780634d44660c1461053f5780634f64b2be1461055f5780634f6ccce7146105a057600080fd5b806318160ddd1161026b57806318160ddd146103fb57806323b872dd1461041e5780632a55205a1461043e5780632f745c591461047d5780633ccfd60b1461049d57806341acc66a146104b257600080fd5b806301ffc9a7146102be578063022914a7146102f357806306fdde031461035f5780630777962714610381578063081812fc146103a1578063095ea7b3146103d957600080fd5b366102b957005b600080fd5b3480156102ca57600080fd5b506102de6102d9366004612fb9565b610a47565b60405190151581526020015b60405180910390f35b3480156102ff57600080fd5b5061033a61030e366004612fed565b60026020526000908152604090205461ffff808216916201000081048216916401000000009091041683565b6040805161ffff948516815292841660208401529216918101919091526060016102ea565b34801561036b57600080fd5b50610374610a73565b6040516102ea9190613060565b34801561038d57600080fd5b506102de61039c366004612fed565b610b05565b3480156103ad57600080fd5b506103c16103bc366004613073565b610b5e565b6040516001600160a01b0390911681526020016102ea565b3480156103e557600080fd5b506103f96103f436600461308c565b610bdd565b005b34801561040757600080fd5b50610410610ce8565b6040519081526020016102ea565b34801561042a57600080fd5b506103f96104393660046130b6565b610cf7565b34801561044a57600080fd5b5061045e6104593660046130f2565b610d28565b604080516001600160a01b0390931683526020830191909152016102ea565b34801561048957600080fd5b5061041061049836600461308c565b610d6c565b3480156104a957600080fd5b506103f9610e60565b3480156104be57600080fd5b506103f96104cd366004613124565b610ee6565b3480156104de57600080fd5b506103f96104ed3660046130b6565b610f69565b3480156104fe57600080fd5b5061051261050d366004612fed565b610f84565b6040516102ea919061316d565b34801561052b57600080fd5b506103f961053a3660046131bf565b61107a565b34801561054b57600080fd5b506102de61055a36600461323b565b6110cf565b34801561056b57600080fd5b5061057f61057a366004613073565b61114b565b604080516001600160a01b03909316835260ff9091166020830152016102ea565b3480156105ac57600080fd5b506104106105bb366004613073565b611180565b3480156105cc57600080fd5b506103f96105db366004612fed565b6111f2565b3480156105ec57600080fd5b506103f96105fb3660046132d0565b6112fa565b34801561060c57600080fd5b506103c161061b366004613073565b611358565b34801561062c57600080fd5b5061064061063b366004613073565b6113ad565b6040805161ffff90931683526020830191909152016102ea565b34801561066657600080fd5b506103f9610675366004612fed565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b3480156106a357600080fd5b506104106106b2366004612fed565b6113e0565b3480156106c357600080fd5b506103f961146c565b3480156106d857600080fd5b5061041060005481565b3480156106ee57600080fd5b5060095460408051808201909152600a5461ffff808216835262010000909104166020820152610725916001600160a01b03169082565b604080516001600160a01b039093168352815161ffff90811660208086019190915290920151909116908201526060016102ea565b34801561076657600080fd5b50600c546107989061ffff80821691620100008104821691640100000000820416906601000000000000900460ff1684565b6040805161ffff95861681529385166020850152919093169082015260ff90911660608201526080016102ea565b3480156107d257600080fd5b506103f96107e1366004613073565b6114a2565b3480156107f257600080fd5b506103f961080136600461323b565b6114d6565b34801561081257600080fd5b50600d546103c1906001600160a01b031681565b34801561083257600080fd5b506007546001600160a01b03166103c1565b34801561085057600080fd5b50610374611591565b34801561086557600080fd5b506103f96108743660046131bf565b6115a0565b34801561088557600080fd5b506103f961089436600461323b565b61160c565b3480156108a557600080fd5b506103f96108b436600461336a565b6116d0565b6103f96108c736600461337c565b6117f8565b3480156108d857600080fd5b506104106108e73660046133e8565b611aa1565b3480156108f857600080fd5b506103f961090736600461342a565b611b81565b34801561091857600080fd5b50610374611bb3565b34801561092d57600080fd5b506103f961093c36600461337c565b611c41565b34801561094d57600080fd5b506103f961095c366004613506565b611e71565b34801561096d57600080fd5b50610374611eb6565b34801561098257600080fd5b50610374610991366004613073565b611ec3565b6103f96109a436600461355b565b612006565b3480156109b557600080fd5b506103746123f5565b3480156109ca57600080fd5b506102de6109d936600461357b565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610a1357600080fd5b506103f9610a223660046135ae565b612402565b348015610a3357600080fd5b506103f9610a42366004612fed565b612477565b6000610a52826124cd565b80610a6d575063152a902d60e11b6001600160e01b03198316145b92915050565b606060038054610a8290613620565b80601f0160208091040260200160405190810160405280929190818152602001828054610aae90613620565b8015610afb5780601f10610ad057610100808354040283529160200191610afb565b820191906000526020600020905b815481529060010190602001808311610ade57829003601f168201915b5050505050905090565b6007546000906001600160a01b03163314610b3b5760405162461bcd60e51b8152600401610b3290613655565b60405180910390fd5b506001600160a01b03811660009081526008602052604090205460ff165b919050565b6000610b69826124f8565b610bc15760405162461bcd60e51b815260206004820152602360248201527f4552433732313a20717565727920666f72206e6f6e6578697374656e7420746f60448201526235b2b760e91b6064820152608401610b32565b506000908152600560205260409020546001600160a01b031690565b6000610be882611358565b9050806001600160a01b0316836001600160a01b03161415610c575760405162461bcd60e51b815260206004820152602260248201527f455243373231423a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610b32565b336001600160a01b0382161480610c735750610c7381336109d9565b610cd95760405162461bcd60e51b815260206004820152603160248201527f455243373231423a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527008185c1c1c9bdd995908199bdc88185b1b607a1b6064820152608401610b32565b610ce38383612542565b505050565b6000610cf26125b0565b905090565b610d0133826125c1565b610d1d5760405162461bcd60e51b8152600401610b329061368a565b610ce3838383612662565b600a546000908190819061ffff620100008204811691610d499116866136e9565b610d53919061371e565b6009546001600160a01b031693509150505b9250929050565b6001600160a01b03821660009081526002602052604081205461ffff168210610dec5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c65423a206f776e657220696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610b32565b6000805b600154811015610e585760018181548110610e0d57610e0d613732565b6000918252602090912001546001600160a01b03868116911614610e3057610e48565b81610e3a81613748565b9250841415610e4857610e58565b610e5181613748565b9050610df0565b949350505050565b6007546001600160a01b03163314610e8a5760405162461bcd60e51b8152600401610b3290613655565b4780610ecd5760405162461bcd60e51b81526020600482015260126024820152716e6f2066756e647320617661696c61626c6560701b6044820152606401610b32565b600d54610ee3906001600160a01b0316826127c4565b50565b6007546001600160a01b03163314610f105760405162461bcd60e51b8152600401610b3290613655565b600980546001600160a01b0319166001600160a01b0385161790556040805180820190915261ffff8084168083529083166020909201829052600a805463ffffffff191690911762010000909202919091179055505050565b610ce383838360405180602001604052806000815250611b81565b6001600160a01b0381166000908152600260205260408120546060919061ffff16818167ffffffffffffffff811115610fbf57610fbf613414565b604051908082528060200260200182016040528015610fe8578160200160208202803683370190505b50905060005b600154811015611071576001818154811061100b5761100b613732565b6000918252602090912001546001600160a01b03878116911614156110615780828561103681613748565b96508151811061104857611048613732565b6020026020010181815250508284141561106157611071565b61106a81613748565b9050610fee565b50949350505050565b6007546001600160a01b031633146110a45760405162461bcd60e51b8152600401610b3290613655565b6001600160a01b03919091166000908152600860205260409020805460ff1916911515919091179055565b6000805b8281101561113e5760018484838181106110ef576110ef613732565b905060200201358154811061110657611106613732565b6000918252602090912001546001600160a01b0386811691161461112e576000915050611144565b61113781613748565b90506110d3565b50600190505b9392505050565b6001818154811061115b57600080fd5b6000918252602090912001546001600160a01b0381169150600160a01b900460ff1682565b600061118b826124f8565b6111ee5760405162461bcd60e51b815260206004820152602e60248201527f455243373231456e756d657261626c65423a20717565727920666f72206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610b32565b5090565b600d546040516370a0823160e01b815230600482015282916001600160a01b038084169263a9059cbb92919091169083906370a082319060240160206040518083038186803b15801561124457600080fd5b505afa158015611258573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061127c9190613763565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b1580156112c257600080fd5b505af11580156112d6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce3919061377c565b3360009081526008602052604090205460ff166113295760405162461bcd60e51b8152600401610b3290613799565b611335600f8787612f13565b5061134260108585612f13565b5061134f60118383612f13565b50505050505050565b6000611363826124f8565b61137f5760405162461bcd60e51b8152600401610b32906137c3565b6001828154811061139257611392613732565b6000918252602090912001546001600160a01b031692915050565b600e81815481106113bd57600080fd5b60009182526020909120600290910201805460019091015461ffff909116915082565b60006001600160a01b03821661144c5760405162461bcd60e51b815260206004820152602b60248201527f455243373231423a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610b32565b506001600160a01b031660009081526002602052604090205461ffff1690565b6007546001600160a01b031633146114965760405162461bcd60e51b8152600401610b3290613655565b6114a060006128dd565b565b3360009081526008602052604090205460ff166114d15760405162461bcd60e51b8152600401610b3290613799565b600b55565b60005b8181101561158b57600d546001600160a01b03808616916323b872dd9130911686868681811061150b5761150b613732565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b15801561156257600080fd5b505af1158015611576573d6000803e3d6000fd5b505050508061158490613748565b90506114d9565b50505050565b606060048054610a8290613620565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3360009081526008602052604090205460ff1661163b5760405162461bcd60e51b8152600401610b3290613799565b6001600160a01b0383166000908152600260205260408120805483929061166790849061ffff16613807565b92506101000a81548161ffff021916908361ffff16021790555060005b8181101561158b576116c0848484848181106116a2576116a2613732565b90506020020160208101906116b7919061382a565b61ffff1661292f565b6116c981613748565b9050611684565b3360009081526008602052604090205460ff166116ff5760405162461bcd60e51b8152600401610b3290613799565b61170f606082016040830161382a565b61ffff16611723604083016020840161382a565b61ffff1611156117755760405162461bcd60e51b815260206004820181905260248201527f6d6178206f72646572206d757374206265206c7465206d617820737570706c796044820152606401610b32565b611785606082016040830161382a565b61ffff16611791610ce8565b11156117eb5760405162461bcd60e51b815260206004820152602360248201527f6d617820737570706c79206d7573742062652067746520746f74616c20737570604482015262706c7960e81b6064820152608401610b32565b80600c610ce38282613847565b3360009081526008602052604090205460ff166118275760405162461bcd60e51b8152600401610b3290613799565b82811461188b5760405162461bcd60e51b815260206004820152602c60248201527f4d7573742070726f7669646520657175616c207175616e74697469657320616e60448201526b6420726563697069656e747360a01b6064820152608401610b32565b600080611896610ce8565b905060005b858110156118ea578686828181106118b5576118b5613732565b90506020020160208101906118ca919061382a565b6118d89061ffff16846138f2565b92506118e381613748565b905061189b565b50600c54640100000000900461ffff1661190483836138f2565b11156119525760405162461bcd60e51b815260206004820152601960248201527f4d696e742f6f72646572206578636565647320737570706c79000000000000006044820152606401610b32565b60005b8381101561134f5786868281811061196f5761196f613732565b9050602002016020810190611984919061382a565b6002600087878581811061199a5761199a613732565b90506020020160208101906119af9190612fed565b6001600160a01b031681526020810191909152604001600090812080549091906119de90849061ffff1661390a565b92506101000a81548161ffff021916908361ffff16021790555060005b878783818110611a0d57611a0d613732565b9050602002016020810190611a22919061382a565b61ffff16811015611a905760006040518060400160405280888886818110611a4c57611a4c613732565b9050602002016020810190611a619190612fed565b6001600160a01b0316815260096020909101529050611a7f81612a41565b50611a8981613748565b90506119fb565b50611a9a81613748565b9050611955565b6001600160a01b038216600090815260026020526040812054819061ffff16815b8461ffff16811015611b78575b600e54831015611b6857600e8381548110611aec57611aec613732565b600091825260209091206002909102015461ffff1681611b0d84600161390a565b61ffff16611b1b91906138f2565b1015611b5857600e8381548110611b3457611b34613732565b90600052602060002090600202016001015484611b5191906138f2565b9350611b68565b611b6183613748565b9250611acf565b611b7181613748565b9050611ac2565b50505092915050565b611b8b33836125c1565b611ba75760405162461bcd60e51b8152600401610b329061368a565b61158b84848484612ad1565b60108054611bc090613620565b80601f0160208091040260200160405190810160405280929190818152602001828054611bec90613620565b8015611c395780601f10611c0e57610100808354040283529160200191611c39565b820191906000526020600020905b815481529060010190602001808311611c1c57829003601f168201915b505050505081565b3360009081526008602052604090205460ff16611c705760405162461bcd60e51b8152600401610b3290613799565b828114611ccb5760405162461bcd60e51b815260206004820152602360248201527f6d7573742070726f7669646520657175616c206d61726b7320616e642070726960448201526263657360e81b6064820152608401610b32565b600e54831115611d0f57600e805480611ce657611ce6613930565b600082815260208120600260001990930192830201805461ffff19168155600101559055611ccb565b6000805b84811015611e6957600081118015611d5857508161ffff16868683818110611d3d57611d3d613732565b9050602002016020810190611d52919061382a565b61ffff16115b611da45760405162461bcd60e51b815260206004820152601c60248201527f7175616e74697479206d61726b73206d75737420696e637265617365000000006044820152606401610b32565b858582818110611db657611db6613732565b9050602002016020810190611dcb919061382a565b600e54909250811415611de557600e805460010181556000525b60405180604001604052808361ffff168152602001858584818110611e0c57611e0c613732565b90506020020135815250600e8281548110611e2957611e29613732565b6000918252602091829020835160029290920201805461ffff191661ffff909216919091178155910151600190910155611e6281613748565b9050611d13565b505050505050565b60005b81811015611eaf57611e9f8585858585818110611e9357611e93613732565b90506020020135610cf7565b611ea881613748565b9050611e74565b5050505050565b600f8054611bc090613620565b6060611ece826124f8565b611f1a5760405162461bcd60e51b815260206004820152601b60248201527f717565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610b32565b600060018381548110611f2f57611f2f613732565b6000918252602091829020604080518082019091529101546001600160a01b0381168252600160a01b900460ff16918101829052915015611fca576000600f8054611f7990613620565b905011611f955760405180602001604052806000815250611144565b600f611fa084612b04565b6011604051602001611fb4939291906139e0565b6040516020818303038152906040529392505050565b600060108054611fd990613620565b905011611ff55760405180602001604052806000815250611144565b6010611fa084612b04565b50919050565b60408051608081018252600c5461ffff808216835262010000820481166020808501919091526401000000008304821684860152660100000000000090920460ff16606084015233600090815260029092529290205490919081169085166120a05760405162461bcd60e51b815260206004820152600d60248201526c4d757374206f7264657220312b60981b6044820152606401610b32565b816020015161ffff168561ffff1611156120ec5760405162461bcd60e51b815260206004820152600d60248201526c4f7264657220746f6f2062696760981b6044820152606401610b32565b815161ffff166120fc868361390a565b61ffff1611156121455760405162461bcd60e51b815260206004820152601460248201527315d85b1b195d081b1a5b5a5d081c995858da195960621b6044820152606401610b32565b816040015161ffff168561ffff1661215b610ce8565b61216591906138f2565b11156121b35760405162461bcd60e51b815260206004820152601960248201527f4d696e742f4f72646572206578636565647320737570706c79000000000000006044820152606401610b32565b60006121bf3387611aa1565b90508034146122105760405162461bcd60e51b815260206004820152601960248201527f45746865722073656e74206973206e6f7420636f7272656374000000000000006044820152606401610b32565b606083015160ff166002141561222557612334565b606083015160ff16600114156122f7576040516bffffffffffffffffffffffff193360601b1660208201526122a69060340160405160208183030381529060405280519060200120868680806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250612c0292505050565b6122f25760405162461bcd60e51b815260206004820152601e60248201527f596f7520617265206e6f74206f6e2074686520616363657373206c69737400006044820152606401610b32565b612334565b60405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610b32565b336000908152600260205260408120805488929061235790849061ffff1661390a565b82546101009290920a61ffff8181021990931691831602179091553360009081526002602052604090208054899350909160049161239f91859164010000000090041661390a565b92506101000a81548161ffff021916908361ffff16021790555060005b8661ffff1681101561134f5760408051808201909152338152600960208201526123e590612a41565b6123ee81613748565b90506123bc565b60118054611bc090613620565b60005b8381101561134f57612467878787878581811061242457612424613732565b9050602002013586868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611b8192505050565b61247081613748565b9050612405565b6007546001600160a01b031633146124a15760405162461bcd60e51b8152600401610b3290613655565b6001600160a01b0381166000908152600860205260409020805460ff19166001179055610ee381612c19565b60006124d882612cb1565b80610a6d57506001600160e01b0319821663780e9d6360e01b1492915050565b60015460009082108015610a6d575060006001600160a01b03166001838154811061252557612525613732565b6000918252602090912001546001600160a01b0316141592915050565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061257782611358565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008054600154610cf29190613a13565b60006125cc826124f8565b6125e85760405162461bcd60e51b8152600401610b32906137c3565b60006125f383611358565b9050806001600160a01b0316846001600160a01b0316148061262e5750836001600160a01b031661262384610b5e565b6001600160a01b0316145b80610e5857506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff16610e58565b826001600160a01b031661267582611358565b6001600160a01b0316146126de5760405162461bcd60e51b815260206004820152602a60248201527f455243373231423a207472616e73666572206f6620746f6b656e20746861742060448201526934b9903737ba1037bbb760b11b6064820152608401610b32565b600081815260056020526040902080546001600160a01b0319169055612705838383612d01565b6001600160a01b03838116600090815260026020526040808220805461ffff1980821661ffff92831660001901831617909255938616835291208054918216918316600190810190931691909117905580548391908390811061276a5761276a613732565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b804710156128145760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610b32565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612861576040519150601f19603f3d011682016040523d82523d6000602084013e612866565b606091505b5050905080610ce35760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610b32565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b031661294282611358565b6001600160a01b0316146129a75760405162461bcd60e51b815260206004820152602660248201527f455243373231423a206275726e206f6620746f6b656e2074686174206973206e60448201526537ba1037bbb760d11b6064820152608401610b32565b600081815260056020526040812080546001600160a01b0319169055805481906129d090613748565b919050819055506000600182815481106129ec576129ec613732565b6000918252602082200180546001600160a01b0319166001600160a01b0393841617905560405183928516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600180548082018255600091825282517fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf682018054602086015160ff16600160a01b026001600160a81b03199091166001600160a01b03909316928317179055604051919283927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b612adc848484612662565b612ae884848484612d92565b61158b5760405162461bcd60e51b8152600401610b3290613a2a565b606081612b285750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612b525780612b3c81613748565b9150612b4b9050600a8361371e565b9150612b2c565b60008167ffffffffffffffff811115612b6d57612b6d613414565b6040519080825280601f01601f191660200182016040528015612b97576020820181803683370190505b5090505b8415610e5857612bac600183613a13565b9150612bb9600a86613a7d565b612bc49060306138f2565b60f81b818381518110612bd957612bd9613732565b60200101906001600160f81b031916908160001a905350612bfb600a8661371e565b9450612b9b565b6000600b54612c118385612e9f565b149392505050565b6007546001600160a01b03163314612c435760405162461bcd60e51b8152600401610b3290613655565b6001600160a01b038116612ca85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b32565b610ee3816128dd565b60006001600160e01b031982166380ac58cd60e01b1480612ce257506001600160e01b03198216635b5e139f60e01b145b80610a6d57506301ffc9a760e01b6001600160e01b0319831614610a6d565b600060018281548110612d1657612d16613732565b60009182526020909120018054909150600160a01b900460ff1615612d8d576001600160a01b03841615801590612d5557506001600160a01b03831615155b15612d8d5780548190601490612d7490600160a01b900460ff16613a91565b91906101000a81548160ff021916908360ff1602179055505b61158b565b60006001600160a01b0384163b15612e9457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612dd6903390899088908890600401613aae565b602060405180830381600087803b158015612df057600080fd5b505af1925050508015612e20575060408051601f3d908101601f19168201909252612e1d91810190613aeb565b60015b612e7a573d808015612e4e576040519150601f19603f3d011682016040523d82523d6000602084013e612e53565b606091505b508051612e725760405162461bcd60e51b8152600401610b3290613a2a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610e58565b506001949350505050565b600081815b8451811015612f0b576000858281518110612ec157612ec1613732565b60200260200101519050808311612ee75760008381526020829052604090209250612ef8565b600081815260208490526040902092505b5080612f0381613748565b915050612ea4565b509392505050565b828054612f1f90613620565b90600052602060002090601f016020900481019282612f415760008555612f87565b82601f10612f5a5782800160ff19823516178555612f87565b82800160010185558215612f87579182015b82811115612f87578235825591602001919060010190612f6c565b506111ee9291505b808211156111ee5760008155600101612f8f565b6001600160e01b031981168114610ee357600080fd5b600060208284031215612fcb57600080fd5b813561114481612fa3565b80356001600160a01b0381168114610b5957600080fd5b600060208284031215612fff57600080fd5b61114482612fd6565b60005b8381101561302357818101518382015260200161300b565b8381111561158b5750506000910152565b6000815180845261304c816020860160208601613008565b601f01601f19169290920160200192915050565b6020815260006111446020830184613034565b60006020828403121561308557600080fd5b5035919050565b6000806040838503121561309f57600080fd5b6130a883612fd6565b946020939093013593505050565b6000806000606084860312156130cb57600080fd5b6130d484612fd6565b92506130e260208501612fd6565b9150604084013590509250925092565b6000806040838503121561310557600080fd5b50508035926020909101359150565b61ffff81168114610ee357600080fd5b60008060006060848603121561313957600080fd5b61314284612fd6565b9250602084013561315281613114565b9150604084013561316281613114565b809150509250925092565b6020808252825182820181905260009190848201906040850190845b818110156131a557835183529284019291840191600101613189565b50909695505050505050565b8015158114610ee357600080fd5b600080604083850312156131d257600080fd5b6131db83612fd6565b915060208301356131eb816131b1565b809150509250929050565b60008083601f84011261320857600080fd5b50813567ffffffffffffffff81111561322057600080fd5b6020830191508360208260051b8501011115610d6557600080fd5b60008060006040848603121561325057600080fd5b61325984612fd6565b9250602084013567ffffffffffffffff81111561327557600080fd5b613281868287016131f6565b9497909650939450505050565b60008083601f8401126132a057600080fd5b50813567ffffffffffffffff8111156132b857600080fd5b602083019150836020828501011115610d6557600080fd5b600080600080600080606087890312156132e957600080fd5b863567ffffffffffffffff8082111561330157600080fd5b61330d8a838b0161328e565b9098509650602089013591508082111561332657600080fd5b6133328a838b0161328e565b9096509450604089013591508082111561334b57600080fd5b5061335889828a0161328e565b979a9699509497509295939492505050565b60006080828403121561200057600080fd5b6000806000806040858703121561339257600080fd5b843567ffffffffffffffff808211156133aa57600080fd5b6133b6888389016131f6565b909650945060208701359150808211156133cf57600080fd5b506133dc878288016131f6565b95989497509550505050565b600080604083850312156133fb57600080fd5b61340483612fd6565b915060208301356131eb81613114565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561344057600080fd5b61344985612fd6565b935061345760208601612fd6565b925060408501359150606085013567ffffffffffffffff8082111561347b57600080fd5b818701915087601f83011261348f57600080fd5b8135818111156134a1576134a1613414565b604051601f8201601f19908116603f011681019083821181831017156134c9576134c9613414565b816040528281528a60208487010111156134e257600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806000806060858703121561351c57600080fd5b61352585612fd6565b935061353360208601612fd6565b9250604085013567ffffffffffffffff81111561354f57600080fd5b6133dc878288016131f6565b60008060006040848603121561357057600080fd5b833561325981613114565b6000806040838503121561358e57600080fd5b61359783612fd6565b91506135a560208401612fd6565b90509250929050565b600080600080600080608087890312156135c757600080fd5b6135d087612fd6565b95506135de60208801612fd6565b9450604087013567ffffffffffffffff808211156135fb57600080fd5b6136078a838b016131f6565b9096509450606089013591508082111561334b57600080fd5b600181811c9082168061363457607f821691505b6020821081141561200057634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f455243373231423a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613703576137036136d3565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261372d5761372d613708565b500490565b634e487b7160e01b600052603260045260246000fd5b600060001982141561375c5761375c6136d3565b5060010190565b60006020828403121561377557600080fd5b5051919050565b60006020828403121561378e57600080fd5b8151611144816131b1565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b60208082526024908201527f455243373231423a20717565727920666f72206e6f6e6578697374656e74207460408201526337b5b2b760e11b606082015260800190565b600061ffff83811690831681811015613822576138226136d3565b039392505050565b60006020828403121561383c57600080fd5b813561114481613114565b813561385281613114565b61ffff8116905081548161ffff198216178355602084013561387381613114565b63ffff00008160101b169050808363ffffffff19841617178455604085013561389b81613114565b65ffff000000008160201b168465ffffffffffff19851617831717855550505050606082013560ff811681146138d057600080fd5b815466ff0000000000001916603082901b66ff00000000000016178255505050565b60008219821115613905576139056136d3565b500190565b600061ffff808316818516808303821115613927576139276136d3565b01949350505050565b634e487b7160e01b600052603160045260246000fd5b8054600090600181811c908083168061396057607f831692505b602080841082141561398257634e487b7160e01b600052602260045260246000fd5b81801561399657600181146139a7576139d4565b60ff198616895284890196506139d4565b60008881526020902060005b868110156139cc5781548b8201529085019083016139b3565b505084890196505b50505050505092915050565b60006139ec8286613946565b84516139fc818360208901613008565b613a0881830186613946565b979650505050505050565b600082821015613a2557613a256136d3565b500390565b60208082526033908201527f455243373231423a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b600082613a8c57613a8c613708565b500690565b600060ff821680613aa457613aa46136d3565b6000190192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613ae190830184613034565b9695505050505050565b600060208284031215613afd57600080fd5b815161114481612fa356fea2646970667358221220ff7d914eb0eff5dd07fc43c6726a6e09bc8bd3b381fff843c43bdad96fec00c164736f6c6343000809003368747470733a2f2f7777772e68617368636174732e696f2f6d657461646174612f70726572657665616c2e6a736f6e3f
Deployed Bytecode
0x6080604052600436106102b25760003560e01c8063715018a611610175578063ae7bf4c8116100dc578063c0ac998311610095578063dbbc853b1161006f578063dbbc853b146109a9578063e985e9c5146109be578063ececaf0014610a07578063f2fde38b14610a2757600080fd5b8063c0ac998314610961578063c87b56dd14610976578063da41bfe11461099657600080fd5b8063ae7bf4c8146108b9578063b83c673b146108cc578063b88d4fde146108ec578063ba19d3cb1461090c578063bc42f4df14610921578063c04231451461094157600080fd5b80638bcd3e931161012e5780638bcd3e93146108065780638da5cb5b1461082657806395d89b4114610844578063a22cb46514610859578063aaa09d9814610879578063aaf26b1a1461089957600080fd5b8063715018a6146106b757806373f42561146106cc5780637885fdc7146106e257806379502c551461075a5780637cb64759146107c65780638293744b146107e657600080fd5b806342842e0e1161021957806351cff8d9116101d257806351cff8d9146105c057806361c3243b146105e05780636352211e146106005780636945d800146106205780636b33e45d1461065a57806370a082311461069757600080fd5b806342842e0e146104d2578063438b6300146104f25780634a994eef1461051f5780634d44660c1461053f5780634f64b2be1461055f5780634f6ccce7146105a057600080fd5b806318160ddd1161026b57806318160ddd146103fb57806323b872dd1461041e5780632a55205a1461043e5780632f745c591461047d5780633ccfd60b1461049d57806341acc66a146104b257600080fd5b806301ffc9a7146102be578063022914a7146102f357806306fdde031461035f5780630777962714610381578063081812fc146103a1578063095ea7b3146103d957600080fd5b366102b957005b600080fd5b3480156102ca57600080fd5b506102de6102d9366004612fb9565b610a47565b60405190151581526020015b60405180910390f35b3480156102ff57600080fd5b5061033a61030e366004612fed565b60026020526000908152604090205461ffff808216916201000081048216916401000000009091041683565b6040805161ffff948516815292841660208401529216918101919091526060016102ea565b34801561036b57600080fd5b50610374610a73565b6040516102ea9190613060565b34801561038d57600080fd5b506102de61039c366004612fed565b610b05565b3480156103ad57600080fd5b506103c16103bc366004613073565b610b5e565b6040516001600160a01b0390911681526020016102ea565b3480156103e557600080fd5b506103f96103f436600461308c565b610bdd565b005b34801561040757600080fd5b50610410610ce8565b6040519081526020016102ea565b34801561042a57600080fd5b506103f96104393660046130b6565b610cf7565b34801561044a57600080fd5b5061045e6104593660046130f2565b610d28565b604080516001600160a01b0390931683526020830191909152016102ea565b34801561048957600080fd5b5061041061049836600461308c565b610d6c565b3480156104a957600080fd5b506103f9610e60565b3480156104be57600080fd5b506103f96104cd366004613124565b610ee6565b3480156104de57600080fd5b506103f96104ed3660046130b6565b610f69565b3480156104fe57600080fd5b5061051261050d366004612fed565b610f84565b6040516102ea919061316d565b34801561052b57600080fd5b506103f961053a3660046131bf565b61107a565b34801561054b57600080fd5b506102de61055a36600461323b565b6110cf565b34801561056b57600080fd5b5061057f61057a366004613073565b61114b565b604080516001600160a01b03909316835260ff9091166020830152016102ea565b3480156105ac57600080fd5b506104106105bb366004613073565b611180565b3480156105cc57600080fd5b506103f96105db366004612fed565b6111f2565b3480156105ec57600080fd5b506103f96105fb3660046132d0565b6112fa565b34801561060c57600080fd5b506103c161061b366004613073565b611358565b34801561062c57600080fd5b5061064061063b366004613073565b6113ad565b6040805161ffff90931683526020830191909152016102ea565b34801561066657600080fd5b506103f9610675366004612fed565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b3480156106a357600080fd5b506104106106b2366004612fed565b6113e0565b3480156106c357600080fd5b506103f961146c565b3480156106d857600080fd5b5061041060005481565b3480156106ee57600080fd5b5060095460408051808201909152600a5461ffff808216835262010000909104166020820152610725916001600160a01b03169082565b604080516001600160a01b039093168352815161ffff90811660208086019190915290920151909116908201526060016102ea565b34801561076657600080fd5b50600c546107989061ffff80821691620100008104821691640100000000820416906601000000000000900460ff1684565b6040805161ffff95861681529385166020850152919093169082015260ff90911660608201526080016102ea565b3480156107d257600080fd5b506103f96107e1366004613073565b6114a2565b3480156107f257600080fd5b506103f961080136600461323b565b6114d6565b34801561081257600080fd5b50600d546103c1906001600160a01b031681565b34801561083257600080fd5b506007546001600160a01b03166103c1565b34801561085057600080fd5b50610374611591565b34801561086557600080fd5b506103f96108743660046131bf565b6115a0565b34801561088557600080fd5b506103f961089436600461323b565b61160c565b3480156108a557600080fd5b506103f96108b436600461336a565b6116d0565b6103f96108c736600461337c565b6117f8565b3480156108d857600080fd5b506104106108e73660046133e8565b611aa1565b3480156108f857600080fd5b506103f961090736600461342a565b611b81565b34801561091857600080fd5b50610374611bb3565b34801561092d57600080fd5b506103f961093c36600461337c565b611c41565b34801561094d57600080fd5b506103f961095c366004613506565b611e71565b34801561096d57600080fd5b50610374611eb6565b34801561098257600080fd5b50610374610991366004613073565b611ec3565b6103f96109a436600461355b565b612006565b3480156109b557600080fd5b506103746123f5565b3480156109ca57600080fd5b506102de6109d936600461357b565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610a1357600080fd5b506103f9610a223660046135ae565b612402565b348015610a3357600080fd5b506103f9610a42366004612fed565b612477565b6000610a52826124cd565b80610a6d575063152a902d60e11b6001600160e01b03198316145b92915050565b606060038054610a8290613620565b80601f0160208091040260200160405190810160405280929190818152602001828054610aae90613620565b8015610afb5780601f10610ad057610100808354040283529160200191610afb565b820191906000526020600020905b815481529060010190602001808311610ade57829003601f168201915b5050505050905090565b6007546000906001600160a01b03163314610b3b5760405162461bcd60e51b8152600401610b3290613655565b60405180910390fd5b506001600160a01b03811660009081526008602052604090205460ff165b919050565b6000610b69826124f8565b610bc15760405162461bcd60e51b815260206004820152602360248201527f4552433732313a20717565727920666f72206e6f6e6578697374656e7420746f60448201526235b2b760e91b6064820152608401610b32565b506000908152600560205260409020546001600160a01b031690565b6000610be882611358565b9050806001600160a01b0316836001600160a01b03161415610c575760405162461bcd60e51b815260206004820152602260248201527f455243373231423a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610b32565b336001600160a01b0382161480610c735750610c7381336109d9565b610cd95760405162461bcd60e51b815260206004820152603160248201527f455243373231423a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527008185c1c1c9bdd995908199bdc88185b1b607a1b6064820152608401610b32565b610ce38383612542565b505050565b6000610cf26125b0565b905090565b610d0133826125c1565b610d1d5760405162461bcd60e51b8152600401610b329061368a565b610ce3838383612662565b600a546000908190819061ffff620100008204811691610d499116866136e9565b610d53919061371e565b6009546001600160a01b031693509150505b9250929050565b6001600160a01b03821660009081526002602052604081205461ffff168210610dec5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c65423a206f776e657220696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610b32565b6000805b600154811015610e585760018181548110610e0d57610e0d613732565b6000918252602090912001546001600160a01b03868116911614610e3057610e48565b81610e3a81613748565b9250841415610e4857610e58565b610e5181613748565b9050610df0565b949350505050565b6007546001600160a01b03163314610e8a5760405162461bcd60e51b8152600401610b3290613655565b4780610ecd5760405162461bcd60e51b81526020600482015260126024820152716e6f2066756e647320617661696c61626c6560701b6044820152606401610b32565b600d54610ee3906001600160a01b0316826127c4565b50565b6007546001600160a01b03163314610f105760405162461bcd60e51b8152600401610b3290613655565b600980546001600160a01b0319166001600160a01b0385161790556040805180820190915261ffff8084168083529083166020909201829052600a805463ffffffff191690911762010000909202919091179055505050565b610ce383838360405180602001604052806000815250611b81565b6001600160a01b0381166000908152600260205260408120546060919061ffff16818167ffffffffffffffff811115610fbf57610fbf613414565b604051908082528060200260200182016040528015610fe8578160200160208202803683370190505b50905060005b600154811015611071576001818154811061100b5761100b613732565b6000918252602090912001546001600160a01b03878116911614156110615780828561103681613748565b96508151811061104857611048613732565b6020026020010181815250508284141561106157611071565b61106a81613748565b9050610fee565b50949350505050565b6007546001600160a01b031633146110a45760405162461bcd60e51b8152600401610b3290613655565b6001600160a01b03919091166000908152600860205260409020805460ff1916911515919091179055565b6000805b8281101561113e5760018484838181106110ef576110ef613732565b905060200201358154811061110657611106613732565b6000918252602090912001546001600160a01b0386811691161461112e576000915050611144565b61113781613748565b90506110d3565b50600190505b9392505050565b6001818154811061115b57600080fd5b6000918252602090912001546001600160a01b0381169150600160a01b900460ff1682565b600061118b826124f8565b6111ee5760405162461bcd60e51b815260206004820152602e60248201527f455243373231456e756d657261626c65423a20717565727920666f72206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610b32565b5090565b600d546040516370a0823160e01b815230600482015282916001600160a01b038084169263a9059cbb92919091169083906370a082319060240160206040518083038186803b15801561124457600080fd5b505afa158015611258573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061127c9190613763565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b1580156112c257600080fd5b505af11580156112d6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce3919061377c565b3360009081526008602052604090205460ff166113295760405162461bcd60e51b8152600401610b3290613799565b611335600f8787612f13565b5061134260108585612f13565b5061134f60118383612f13565b50505050505050565b6000611363826124f8565b61137f5760405162461bcd60e51b8152600401610b32906137c3565b6001828154811061139257611392613732565b6000918252602090912001546001600160a01b031692915050565b600e81815481106113bd57600080fd5b60009182526020909120600290910201805460019091015461ffff909116915082565b60006001600160a01b03821661144c5760405162461bcd60e51b815260206004820152602b60248201527f455243373231423a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610b32565b506001600160a01b031660009081526002602052604090205461ffff1690565b6007546001600160a01b031633146114965760405162461bcd60e51b8152600401610b3290613655565b6114a060006128dd565b565b3360009081526008602052604090205460ff166114d15760405162461bcd60e51b8152600401610b3290613799565b600b55565b60005b8181101561158b57600d546001600160a01b03808616916323b872dd9130911686868681811061150b5761150b613732565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b15801561156257600080fd5b505af1158015611576573d6000803e3d6000fd5b505050508061158490613748565b90506114d9565b50505050565b606060048054610a8290613620565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3360009081526008602052604090205460ff1661163b5760405162461bcd60e51b8152600401610b3290613799565b6001600160a01b0383166000908152600260205260408120805483929061166790849061ffff16613807565b92506101000a81548161ffff021916908361ffff16021790555060005b8181101561158b576116c0848484848181106116a2576116a2613732565b90506020020160208101906116b7919061382a565b61ffff1661292f565b6116c981613748565b9050611684565b3360009081526008602052604090205460ff166116ff5760405162461bcd60e51b8152600401610b3290613799565b61170f606082016040830161382a565b61ffff16611723604083016020840161382a565b61ffff1611156117755760405162461bcd60e51b815260206004820181905260248201527f6d6178206f72646572206d757374206265206c7465206d617820737570706c796044820152606401610b32565b611785606082016040830161382a565b61ffff16611791610ce8565b11156117eb5760405162461bcd60e51b815260206004820152602360248201527f6d617820737570706c79206d7573742062652067746520746f74616c20737570604482015262706c7960e81b6064820152608401610b32565b80600c610ce38282613847565b3360009081526008602052604090205460ff166118275760405162461bcd60e51b8152600401610b3290613799565b82811461188b5760405162461bcd60e51b815260206004820152602c60248201527f4d7573742070726f7669646520657175616c207175616e74697469657320616e60448201526b6420726563697069656e747360a01b6064820152608401610b32565b600080611896610ce8565b905060005b858110156118ea578686828181106118b5576118b5613732565b90506020020160208101906118ca919061382a565b6118d89061ffff16846138f2565b92506118e381613748565b905061189b565b50600c54640100000000900461ffff1661190483836138f2565b11156119525760405162461bcd60e51b815260206004820152601960248201527f4d696e742f6f72646572206578636565647320737570706c79000000000000006044820152606401610b32565b60005b8381101561134f5786868281811061196f5761196f613732565b9050602002016020810190611984919061382a565b6002600087878581811061199a5761199a613732565b90506020020160208101906119af9190612fed565b6001600160a01b031681526020810191909152604001600090812080549091906119de90849061ffff1661390a565b92506101000a81548161ffff021916908361ffff16021790555060005b878783818110611a0d57611a0d613732565b9050602002016020810190611a22919061382a565b61ffff16811015611a905760006040518060400160405280888886818110611a4c57611a4c613732565b9050602002016020810190611a619190612fed565b6001600160a01b0316815260096020909101529050611a7f81612a41565b50611a8981613748565b90506119fb565b50611a9a81613748565b9050611955565b6001600160a01b038216600090815260026020526040812054819061ffff16815b8461ffff16811015611b78575b600e54831015611b6857600e8381548110611aec57611aec613732565b600091825260209091206002909102015461ffff1681611b0d84600161390a565b61ffff16611b1b91906138f2565b1015611b5857600e8381548110611b3457611b34613732565b90600052602060002090600202016001015484611b5191906138f2565b9350611b68565b611b6183613748565b9250611acf565b611b7181613748565b9050611ac2565b50505092915050565b611b8b33836125c1565b611ba75760405162461bcd60e51b8152600401610b329061368a565b61158b84848484612ad1565b60108054611bc090613620565b80601f0160208091040260200160405190810160405280929190818152602001828054611bec90613620565b8015611c395780601f10611c0e57610100808354040283529160200191611c39565b820191906000526020600020905b815481529060010190602001808311611c1c57829003601f168201915b505050505081565b3360009081526008602052604090205460ff16611c705760405162461bcd60e51b8152600401610b3290613799565b828114611ccb5760405162461bcd60e51b815260206004820152602360248201527f6d7573742070726f7669646520657175616c206d61726b7320616e642070726960448201526263657360e81b6064820152608401610b32565b600e54831115611d0f57600e805480611ce657611ce6613930565b600082815260208120600260001990930192830201805461ffff19168155600101559055611ccb565b6000805b84811015611e6957600081118015611d5857508161ffff16868683818110611d3d57611d3d613732565b9050602002016020810190611d52919061382a565b61ffff16115b611da45760405162461bcd60e51b815260206004820152601c60248201527f7175616e74697479206d61726b73206d75737420696e637265617365000000006044820152606401610b32565b858582818110611db657611db6613732565b9050602002016020810190611dcb919061382a565b600e54909250811415611de557600e805460010181556000525b60405180604001604052808361ffff168152602001858584818110611e0c57611e0c613732565b90506020020135815250600e8281548110611e2957611e29613732565b6000918252602091829020835160029290920201805461ffff191661ffff909216919091178155910151600190910155611e6281613748565b9050611d13565b505050505050565b60005b81811015611eaf57611e9f8585858585818110611e9357611e93613732565b90506020020135610cf7565b611ea881613748565b9050611e74565b5050505050565b600f8054611bc090613620565b6060611ece826124f8565b611f1a5760405162461bcd60e51b815260206004820152601b60248201527f717565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610b32565b600060018381548110611f2f57611f2f613732565b6000918252602091829020604080518082019091529101546001600160a01b0381168252600160a01b900460ff16918101829052915015611fca576000600f8054611f7990613620565b905011611f955760405180602001604052806000815250611144565b600f611fa084612b04565b6011604051602001611fb4939291906139e0565b6040516020818303038152906040529392505050565b600060108054611fd990613620565b905011611ff55760405180602001604052806000815250611144565b6010611fa084612b04565b50919050565b60408051608081018252600c5461ffff808216835262010000820481166020808501919091526401000000008304821684860152660100000000000090920460ff16606084015233600090815260029092529290205490919081169085166120a05760405162461bcd60e51b815260206004820152600d60248201526c4d757374206f7264657220312b60981b6044820152606401610b32565b816020015161ffff168561ffff1611156120ec5760405162461bcd60e51b815260206004820152600d60248201526c4f7264657220746f6f2062696760981b6044820152606401610b32565b815161ffff166120fc868361390a565b61ffff1611156121455760405162461bcd60e51b815260206004820152601460248201527315d85b1b195d081b1a5b5a5d081c995858da195960621b6044820152606401610b32565b816040015161ffff168561ffff1661215b610ce8565b61216591906138f2565b11156121b35760405162461bcd60e51b815260206004820152601960248201527f4d696e742f4f72646572206578636565647320737570706c79000000000000006044820152606401610b32565b60006121bf3387611aa1565b90508034146122105760405162461bcd60e51b815260206004820152601960248201527f45746865722073656e74206973206e6f7420636f7272656374000000000000006044820152606401610b32565b606083015160ff166002141561222557612334565b606083015160ff16600114156122f7576040516bffffffffffffffffffffffff193360601b1660208201526122a69060340160405160208183030381529060405280519060200120868680806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250612c0292505050565b6122f25760405162461bcd60e51b815260206004820152601e60248201527f596f7520617265206e6f74206f6e2074686520616363657373206c69737400006044820152606401610b32565b612334565b60405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610b32565b336000908152600260205260408120805488929061235790849061ffff1661390a565b82546101009290920a61ffff8181021990931691831602179091553360009081526002602052604090208054899350909160049161239f91859164010000000090041661390a565b92506101000a81548161ffff021916908361ffff16021790555060005b8661ffff1681101561134f5760408051808201909152338152600960208201526123e590612a41565b6123ee81613748565b90506123bc565b60118054611bc090613620565b60005b8381101561134f57612467878787878581811061242457612424613732565b9050602002013586868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611b8192505050565b61247081613748565b9050612405565b6007546001600160a01b031633146124a15760405162461bcd60e51b8152600401610b3290613655565b6001600160a01b0381166000908152600860205260409020805460ff19166001179055610ee381612c19565b60006124d882612cb1565b80610a6d57506001600160e01b0319821663780e9d6360e01b1492915050565b60015460009082108015610a6d575060006001600160a01b03166001838154811061252557612525613732565b6000918252602090912001546001600160a01b0316141592915050565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061257782611358565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008054600154610cf29190613a13565b60006125cc826124f8565b6125e85760405162461bcd60e51b8152600401610b32906137c3565b60006125f383611358565b9050806001600160a01b0316846001600160a01b0316148061262e5750836001600160a01b031661262384610b5e565b6001600160a01b0316145b80610e5857506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff16610e58565b826001600160a01b031661267582611358565b6001600160a01b0316146126de5760405162461bcd60e51b815260206004820152602a60248201527f455243373231423a207472616e73666572206f6620746f6b656e20746861742060448201526934b9903737ba1037bbb760b11b6064820152608401610b32565b600081815260056020526040902080546001600160a01b0319169055612705838383612d01565b6001600160a01b03838116600090815260026020526040808220805461ffff1980821661ffff92831660001901831617909255938616835291208054918216918316600190810190931691909117905580548391908390811061276a5761276a613732565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b804710156128145760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610b32565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612861576040519150601f19603f3d011682016040523d82523d6000602084013e612866565b606091505b5050905080610ce35760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610b32565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b031661294282611358565b6001600160a01b0316146129a75760405162461bcd60e51b815260206004820152602660248201527f455243373231423a206275726e206f6620746f6b656e2074686174206973206e60448201526537ba1037bbb760d11b6064820152608401610b32565b600081815260056020526040812080546001600160a01b0319169055805481906129d090613748565b919050819055506000600182815481106129ec576129ec613732565b6000918252602082200180546001600160a01b0319166001600160a01b0393841617905560405183928516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600180548082018255600091825282517fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf682018054602086015160ff16600160a01b026001600160a81b03199091166001600160a01b03909316928317179055604051919283927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b612adc848484612662565b612ae884848484612d92565b61158b5760405162461bcd60e51b8152600401610b3290613a2a565b606081612b285750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612b525780612b3c81613748565b9150612b4b9050600a8361371e565b9150612b2c565b60008167ffffffffffffffff811115612b6d57612b6d613414565b6040519080825280601f01601f191660200182016040528015612b97576020820181803683370190505b5090505b8415610e5857612bac600183613a13565b9150612bb9600a86613a7d565b612bc49060306138f2565b60f81b818381518110612bd957612bd9613732565b60200101906001600160f81b031916908160001a905350612bfb600a8661371e565b9450612b9b565b6000600b54612c118385612e9f565b149392505050565b6007546001600160a01b03163314612c435760405162461bcd60e51b8152600401610b3290613655565b6001600160a01b038116612ca85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b32565b610ee3816128dd565b60006001600160e01b031982166380ac58cd60e01b1480612ce257506001600160e01b03198216635b5e139f60e01b145b80610a6d57506301ffc9a760e01b6001600160e01b0319831614610a6d565b600060018281548110612d1657612d16613732565b60009182526020909120018054909150600160a01b900460ff1615612d8d576001600160a01b03841615801590612d5557506001600160a01b03831615155b15612d8d5780548190601490612d7490600160a01b900460ff16613a91565b91906101000a81548160ff021916908360ff1602179055505b61158b565b60006001600160a01b0384163b15612e9457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612dd6903390899088908890600401613aae565b602060405180830381600087803b158015612df057600080fd5b505af1925050508015612e20575060408051601f3d908101601f19168201909252612e1d91810190613aeb565b60015b612e7a573d808015612e4e576040519150601f19603f3d011682016040523d82523d6000602084013e612e53565b606091505b508051612e725760405162461bcd60e51b8152600401610b3290613a2a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610e58565b506001949350505050565b600081815b8451811015612f0b576000858281518110612ec157612ec1613732565b60200260200101519050808311612ee75760008381526020829052604090209250612ef8565b600081815260208490526040902092505b5080612f0381613748565b915050612ea4565b509392505050565b828054612f1f90613620565b90600052602060002090601f016020900481019282612f415760008555612f87565b82601f10612f5a5782800160ff19823516178555612f87565b82800160010185558215612f87579182015b82811115612f87578235825591602001919060010190612f6c565b506111ee9291505b808211156111ee5760008155600101612f8f565b6001600160e01b031981168114610ee357600080fd5b600060208284031215612fcb57600080fd5b813561114481612fa3565b80356001600160a01b0381168114610b5957600080fd5b600060208284031215612fff57600080fd5b61114482612fd6565b60005b8381101561302357818101518382015260200161300b565b8381111561158b5750506000910152565b6000815180845261304c816020860160208601613008565b601f01601f19169290920160200192915050565b6020815260006111446020830184613034565b60006020828403121561308557600080fd5b5035919050565b6000806040838503121561309f57600080fd5b6130a883612fd6565b946020939093013593505050565b6000806000606084860312156130cb57600080fd5b6130d484612fd6565b92506130e260208501612fd6565b9150604084013590509250925092565b6000806040838503121561310557600080fd5b50508035926020909101359150565b61ffff81168114610ee357600080fd5b60008060006060848603121561313957600080fd5b61314284612fd6565b9250602084013561315281613114565b9150604084013561316281613114565b809150509250925092565b6020808252825182820181905260009190848201906040850190845b818110156131a557835183529284019291840191600101613189565b50909695505050505050565b8015158114610ee357600080fd5b600080604083850312156131d257600080fd5b6131db83612fd6565b915060208301356131eb816131b1565b809150509250929050565b60008083601f84011261320857600080fd5b50813567ffffffffffffffff81111561322057600080fd5b6020830191508360208260051b8501011115610d6557600080fd5b60008060006040848603121561325057600080fd5b61325984612fd6565b9250602084013567ffffffffffffffff81111561327557600080fd5b613281868287016131f6565b9497909650939450505050565b60008083601f8401126132a057600080fd5b50813567ffffffffffffffff8111156132b857600080fd5b602083019150836020828501011115610d6557600080fd5b600080600080600080606087890312156132e957600080fd5b863567ffffffffffffffff8082111561330157600080fd5b61330d8a838b0161328e565b9098509650602089013591508082111561332657600080fd5b6133328a838b0161328e565b9096509450604089013591508082111561334b57600080fd5b5061335889828a0161328e565b979a9699509497509295939492505050565b60006080828403121561200057600080fd5b6000806000806040858703121561339257600080fd5b843567ffffffffffffffff808211156133aa57600080fd5b6133b6888389016131f6565b909650945060208701359150808211156133cf57600080fd5b506133dc878288016131f6565b95989497509550505050565b600080604083850312156133fb57600080fd5b61340483612fd6565b915060208301356131eb81613114565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561344057600080fd5b61344985612fd6565b935061345760208601612fd6565b925060408501359150606085013567ffffffffffffffff8082111561347b57600080fd5b818701915087601f83011261348f57600080fd5b8135818111156134a1576134a1613414565b604051601f8201601f19908116603f011681019083821181831017156134c9576134c9613414565b816040528281528a60208487010111156134e257600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806000806060858703121561351c57600080fd5b61352585612fd6565b935061353360208601612fd6565b9250604085013567ffffffffffffffff81111561354f57600080fd5b6133dc878288016131f6565b60008060006040848603121561357057600080fd5b833561325981613114565b6000806040838503121561358e57600080fd5b61359783612fd6565b91506135a560208401612fd6565b90509250929050565b600080600080600080608087890312156135c757600080fd5b6135d087612fd6565b95506135de60208801612fd6565b9450604087013567ffffffffffffffff808211156135fb57600080fd5b6136078a838b016131f6565b9096509450606089013591508082111561334b57600080fd5b600181811c9082168061363457607f821691505b6020821081141561200057634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f455243373231423a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613703576137036136d3565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261372d5761372d613708565b500490565b634e487b7160e01b600052603260045260246000fd5b600060001982141561375c5761375c6136d3565b5060010190565b60006020828403121561377557600080fd5b5051919050565b60006020828403121561378e57600080fd5b8151611144816131b1565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b60208082526024908201527f455243373231423a20717565727920666f72206e6f6e6578697374656e74207460408201526337b5b2b760e11b606082015260800190565b600061ffff83811690831681811015613822576138226136d3565b039392505050565b60006020828403121561383c57600080fd5b813561114481613114565b813561385281613114565b61ffff8116905081548161ffff198216178355602084013561387381613114565b63ffff00008160101b169050808363ffffffff19841617178455604085013561389b81613114565b65ffff000000008160201b168465ffffffffffff19851617831717855550505050606082013560ff811681146138d057600080fd5b815466ff0000000000001916603082901b66ff00000000000016178255505050565b60008219821115613905576139056136d3565b500190565b600061ffff808316818516808303821115613927576139276136d3565b01949350505050565b634e487b7160e01b600052603160045260246000fd5b8054600090600181811c908083168061396057607f831692505b602080841082141561398257634e487b7160e01b600052602260045260246000fd5b81801561399657600181146139a7576139d4565b60ff198616895284890196506139d4565b60008881526020902060005b868110156139cc5781548b8201529085019083016139b3565b505084890196505b50505050505092915050565b60006139ec8286613946565b84516139fc818360208901613008565b613a0881830186613946565b979650505050505050565b600082821015613a2557613a256136d3565b500390565b60208082526033908201527f455243373231423a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b600082613a8c57613a8c613708565b500690565b600060ff821680613aa457613aa46136d3565b6000190192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613ae190830184613034565b9695505050505050565b600060208284031215613afd57600080fd5b815161114481612fa356fea2646970667358221220ff7d914eb0eff5dd07fc43c6726a6e09bc8bd3b381fff843c43bdad96fec00c164736f6c63430008090033
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.