ERC-721
NFT
Overview
Max Total Supply
9,999 THORGUARDS
Holders
3,171
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
6 THORGUARDSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ThorGuards
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-11-07 */ // Verified using https://dapp.tools // hevm: flattened sources of src/ThorGuards.sol // SPDX-License-Identifier: MIT AND AGPL-3.0-only pragma solidity >=0.8.0 <0.9.0; ////// lib/oz-contracts/contracts/utils/Context.sol // OpenZeppelin Contracts v4.3.2 (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; } } ////// lib/oz-contracts/contracts/access/Ownable.sol // OpenZeppelin Contracts v4.3.2 (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); } } ////// lib/oz-contracts/contracts/security/ReentrancyGuard.sol // OpenZeppelin Contracts v4.3.2 (security/ReentrancyGuard.sol) /* pragma solidity ^0.8.0; */ /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } ////// lib/oz-contracts/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.3.2 (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); } ////// lib/oz-contracts/contracts/token/ERC721/IERC721.sol // OpenZeppelin Contracts v4.3.2 (token/ERC721/IERC721.sol) /* pragma solidity ^0.8.0; */ /* import "../../utils/introspection/IERC165.sol"; */ /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; } ////// lib/oz-contracts/contracts/token/ERC721/IERC721Receiver.sol // OpenZeppelin Contracts v4.3.2 (token/ERC721/IERC721Receiver.sol) /* pragma solidity ^0.8.0; */ /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } ////// lib/oz-contracts/contracts/token/ERC721/extensions/IERC721Metadata.sol // OpenZeppelin Contracts v4.3.2 (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); } ////// lib/oz-contracts/contracts/utils/Address.sol // OpenZeppelin Contracts v4.3.2 (utils/Address.sol) /* pragma solidity ^0.8.0; */ /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } ////// lib/oz-contracts/contracts/utils/Strings.sol // OpenZeppelin Contracts v4.3.2 (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); } } ////// lib/oz-contracts/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.3.2 (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; } } ////// lib/oz-contracts/contracts/token/ERC721/ERC721.sol // OpenZeppelin Contracts v4.3.2 (token/ERC721/ERC721.sol) /* pragma solidity ^0.8.0; */ /* import "./IERC721.sol"; */ /* import "./IERC721Receiver.sol"; */ /* import "./extensions/IERC721Metadata.sol"; */ /* import "../../utils/Address.sol"; */ /* import "../../utils/Context.sol"; */ /* import "../../utils/Strings.sol"; */ /* import "../../utils/introspection/ERC165.sol"; */ /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} } ////// lib/oz-contracts/contracts/token/ERC721/extensions/IERC721Enumerable.sol // OpenZeppelin Contracts v4.3.2 (token/ERC721/extensions/IERC721Enumerable.sol) /* pragma solidity ^0.8.0; */ /* import "../IERC721.sol"; */ /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } ////// lib/oz-contracts/contracts/token/ERC721/extensions/ERC721Enumerable.sol // OpenZeppelin Contracts v4.3.2 (token/ERC721/extensions/ERC721Enumerable.sol) /* pragma solidity ^0.8.0; */ /* import "../ERC721.sol"; */ /* import "./IERC721Enumerable.sol"; */ /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } } ////// src/ThorGuards.sol /* pragma solidity ^0.8.0; */ /* import "@openzeppelin/contracts/utils/Strings.sol"; */ /* import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; */ /* import "@openzeppelin/contracts/access/Ownable.sol"; */ /* import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; */ /* import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; */ contract ThorGuards is Ownable, ERC721, ERC721Enumerable, ReentrancyGuard { using Strings for uint256; uint256 public constant MINT_COST = 0.08 ether; uint256 public immutable AVAILABLE_SUPPLY; uint256 public MINT_PRE_START_TIME; uint256 public MINT_START_TIME; uint256 public MINT_END_TIME; mapping(address => uint256) public whitelistPre; mapping(address => uint256) public whitelist; mapping(address => uint256) public entriesPerAddressPre; mapping(address => uint256) public entriesPerAddress; string public uri; string public provenance; bool public locked; bool public mintOpen; uint256 public entropy; uint256 public nftCount; event WhitelistedPre(address indexed user, uint256 entries); event Whitelisted(address indexed user, uint256 entries); event MintedPre(address indexed user, uint256 entries); event Minted(address indexed user, uint256 entries); event Claimed(address indexed owner, uint256 amount); event SetBaseURI(string baseUri); event SetProvenance(string provenance); event SetTimes(uint256 startPre, uint256 start, uint256 end); event Locked(); event ToggleOpen(); constructor( string memory _NFT_NAME, string memory _NFT_SYMBOL, uint256 _AVAILABLE_SUPPLY, uint256 _MINT_PRE_START_TIME, uint256 _MINT_START_TIME, uint256 _MINT_END_TIME ) ERC721(_NFT_NAME, _NFT_SYMBOL) Ownable() { AVAILABLE_SUPPLY = _AVAILABLE_SUPPLY; MINT_PRE_START_TIME = _MINT_PRE_START_TIME; MINT_START_TIME = _MINT_START_TIME; MINT_END_TIME = _MINT_END_TIME; emit SetTimes(_MINT_PRE_START_TIME, _MINT_START_TIME, _MINT_END_TIME); } function setBaseURI(string calldata _uri) public onlyOwner { require(!locked, "Metadata locked"); uri = _uri; emit SetBaseURI(_uri); } function setProvenance(string calldata _provenance) public onlyOwner { require(!locked, "Metadata locked"); provenance = _provenance; emit SetProvenance(_provenance); } function setMintTimes(uint256 _MINT_PRE_START_TIME, uint256 _MINT_START_TIME, uint256 _MINT_END_TIME) public onlyOwner { MINT_PRE_START_TIME = _MINT_PRE_START_TIME; MINT_START_TIME = _MINT_START_TIME; MINT_END_TIME = _MINT_END_TIME; emit SetTimes(_MINT_PRE_START_TIME, _MINT_START_TIME, _MINT_END_TIME); } function lockMetadata() public onlyOwner { locked = true; emit Locked(); } function setWhitelistPre(address[] calldata addresses, uint256[] calldata entries) public onlyOwner { require(addresses.length == entries.length, "Addresses length != entries length"); for (uint256 i = 0; i < addresses.length; i++) { require(addresses[i] != address(0), "zero"); whitelistPre[addresses[i]] = entries[i]; emit WhitelistedPre(addresses[i], entries[i]); } } function setWhitelist(address[] calldata addresses, uint256[] calldata entries) public onlyOwner { require(addresses.length == entries.length, "Addresses length != entries length"); for (uint256 i = 0; i < addresses.length; i++) { require(addresses[i] != address(0), "Zero"); whitelist[addresses[i]] = entries[i]; emit Whitelisted(addresses[i], entries[i]); } } function toggleOpen() public onlyOwner { mintOpen = !mintOpen; emit ToggleOpen(); } function _checkedMint(address to) internal { require(nftCount < AVAILABLE_SUPPLY, "Available supply reached"); _safeMint(msg.sender, nftCount + 1); nftCount++; } function mintPre(uint256 count) external payable nonReentrant { require(block.timestamp >= MINT_PRE_START_TIME, "Pre-Mint not started"); require(block.timestamp < MINT_START_TIME, "Pre-Mint ended"); require(count <= whitelistPre[msg.sender], "Max mints for address reached"); if (msg.sender != owner()) { require(msg.value == count * MINT_COST, "Incorrect payment"); } whitelistPre[msg.sender] -= count; entriesPerAddressPre[msg.sender] += count; entropy = block.number; for (uint256 i = 0; i < count; i++) { _checkedMint(msg.sender); } emit MintedPre(msg.sender, count); } function mint(uint256 count) external payable nonReentrant { require(block.timestamp >= MINT_START_TIME, "Mint not started"); if (!mintOpen) { require(block.timestamp < MINT_END_TIME, "Mint ended"); require(count <= whitelist[msg.sender], "Max mints for address reached"); whitelist[msg.sender] -= count; } if (msg.sender != owner()) { require(msg.value == count * MINT_COST, "Incorrect payment"); } entriesPerAddress[msg.sender] += count; entropy = block.number; for (uint256 i = 0; i < count; i++) { _checkedMint(msg.sender); } emit Minted(msg.sender, count); } function claimProceeds() external onlyOwner { require(block.timestamp >= MINT_END_TIME, "Mint has not ended"); uint256 proceeds = address(this).balance; (bool sent,) = msg.sender.call{value: proceeds}(""); require(sent, "Could not send proceeds"); emit Claimed(msg.sender, proceeds); } function startingIndex() public view returns (uint256) { return entropy % AVAILABLE_SUPPLY; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); return string(abi.encodePacked(uri, tokenId.toString(), ".json")); } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_NFT_NAME","type":"string"},{"internalType":"string","name":"_NFT_SYMBOL","type":"string"},{"internalType":"uint256","name":"_AVAILABLE_SUPPLY","type":"uint256"},{"internalType":"uint256","name":"_MINT_PRE_START_TIME","type":"uint256"},{"internalType":"uint256","name":"_MINT_START_TIME","type":"uint256"},{"internalType":"uint256","name":"_MINT_END_TIME","type":"uint256"}],"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":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[],"name":"Locked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"entries","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"entries","type":"uint256"}],"name":"MintedPre","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"baseUri","type":"string"}],"name":"SetBaseURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"provenance","type":"string"}],"name":"SetProvenance","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"startPre","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"start","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"end","type":"uint256"}],"name":"SetTimes","type":"event"},{"anonymous":false,"inputs":[],"name":"ToggleOpen","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"entries","type":"uint256"}],"name":"Whitelisted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"entries","type":"uint256"}],"name":"WhitelistedPre","type":"event"},{"inputs":[],"name":"AVAILABLE_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_COST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_END_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRE_START_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_START_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimProceeds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"entriesPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"entriesPerAddressPre","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"entropy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","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":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"mintPre","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenance","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_MINT_PRE_START_TIME","type":"uint256"},{"internalType":"uint256","name":"_MINT_START_TIME","type":"uint256"},{"internalType":"uint256","name":"_MINT_END_TIME","type":"uint256"}],"name":"setMintTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_provenance","type":"string"}],"name":"setProvenance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"entries","type":"uint256[]"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"entries","type":"uint256[]"}],"name":"setWhitelistPre","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startingIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistPre","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b506040516200330338038062003303833981016040819052620000349162000298565b85856200004133620000d5565b81516200005690600190602085019062000125565b5080516200006c90600290602084019062000125565b50506001600b55506080849052600c839055600d829055600e81905560408051848152602081018490529081018290527f3e5026851758e1ab6e995b071b048e26e92f459b047600ff68914479d5074c549060600160405180910390a150505050505062000364565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620001339062000327565b90600052602060002090601f016020900481019282620001575760008555620001a2565b82601f106200017257805160ff1916838001178555620001a2565b82800160010185558215620001a2579182015b82811115620001a257825182559160200191906001019062000185565b50620001b0929150620001b4565b5090565b5b80821115620001b05760008155600101620001b5565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620001f357600080fd5b81516001600160401b0380821115620002105762000210620001cb565b604051601f8301601f19908116603f011681019082821181831017156200023b576200023b620001cb565b816040528381526020925086838588010111156200025857600080fd5b600091505b838210156200027c57858201830151818301840152908201906200025d565b838211156200028e5760008385830101525b9695505050505050565b60008060008060008060c08789031215620002b257600080fd5b86516001600160401b0380821115620002ca57600080fd5b620002d88a838b01620001e1565b97506020890151915080821115620002ef57600080fd5b50620002fe89828a01620001e1565b95505060408701519350606087015192506080870151915060a087015190509295509295509295565b600181811c908216806200033c57607f821691505b602082108114156200035e57634e487b7160e01b600052602260045260246000fd5b50919050565b608051612f756200038e6000396000818161063d015281816117d20152611ebc0152612f756000f3fe6080604052600436106102725760003560e01c80637e2ade0c1161014f578063c492547a116100c1578063d3e966581161007a578063d3e966581461072d578063e985e9c51461074d578063eac989f814610796578063f013e0e1146107ab578063f2fde38b146107cb578063ffe630b5146107eb57600080fd5b8063c492547a1461067f578063c662e48114610695578063c87b56dd146106b1578063cb774d47146106d1578063cd983d8d146106e6578063cf3090121461071357600080fd5b80639b19251a116101135780639b19251a146105b6578063a0712d68146105e3578063a22cb465146105f6578063a7b7229414610616578063b438e12e1461062b578063b88d4fde1461065f57600080fd5b80637e2ade0c146105435780638c3b0ca8146105595780638da5cb5b1461056e57806395d89b411461058c578063989bdbb6146105a157600080fd5b806324bbd049116101e85780634f6ccce7116101ac5780634f6ccce71461048157806355f804b3146104a15780636352211e146104c157806370a08231146104e1578063715018a614610501578063736539291461051657600080fd5b806324bbd049146103f95780632f745c59146104185780633bbaac7b1461043857806342842e0e1461044b57806347ce07cc1461046b57600080fd5b80630af2c6ca1161023a5780630af2c6ca1461034c5780630f134ca4146103625780630f7309e81461038f57806318160ddd146103a457806322c24205146103b957806323b872dd146103d957600080fd5b806301ffc9a71461027757806306fdde03146102ac57806307bd6322146102ce578063081812fc146102f2578063095ea7b31461032a575b600080fd5b34801561028357600080fd5b506102976102923660046127a5565b61080b565b60405190151581526020015b60405180910390f35b3480156102b857600080fd5b506102c161081c565b6040516102a39190612821565b3480156102da57600080fd5b506102e4600e5481565b6040519081526020016102a3565b3480156102fe57600080fd5b5061031261030d366004612834565b6108ae565b6040516001600160a01b0390911681526020016102a3565b34801561033657600080fd5b5061034a610345366004612869565b610948565b005b34801561035857600080fd5b506102e460175481565b34801561036e57600080fd5b506102e461037d366004612893565b600f6020526000908152604090205481565b34801561039b57600080fd5b506102c1610a5e565b3480156103b057600080fd5b506009546102e4565b3480156103c557600080fd5b5061034a6103d43660046128fa565b610aec565b3480156103e557600080fd5b5061034a6103f4366004612966565b610ca1565b34801561040557600080fd5b5060155461029790610100900460ff1681565b34801561042457600080fd5b506102e4610433366004612869565b610cd2565b61034a610446366004612834565b610d68565b34801561045757600080fd5b5061034a610466366004612966565b610fc1565b34801561047757600080fd5b506102e460165481565b34801561048d57600080fd5b506102e461049c366004612834565b610fdc565b3480156104ad57600080fd5b5061034a6104bc3660046129a2565b61106f565b3480156104cd57600080fd5b506103126104dc366004612834565b611128565b3480156104ed57600080fd5b506102e46104fc366004612893565b61119f565b34801561050d57600080fd5b5061034a611226565b34801561052257600080fd5b506102e4610531366004612893565b60126020526000908152604090205481565b34801561054f57600080fd5b506102e4600d5481565b34801561056557600080fd5b5061034a61125c565b34801561057a57600080fd5b506000546001600160a01b0316610312565b34801561059857600080fd5b506102c16113a0565b3480156105ad57600080fd5b5061034a6113af565b3480156105c257600080fd5b506102e46105d1366004612893565b60106020526000908152604090205481565b61034a6105f1366004612834565b611411565b34801561060257600080fd5b5061034a610611366004612a14565b611666565b34801561062257600080fd5b5061034a611675565b34801561063757600080fd5b506102e47f000000000000000000000000000000000000000000000000000000000000000081565b34801561066b57600080fd5b5061034a61067a366004612a66565b6116e5565b34801561068b57600080fd5b506102e4600c5481565b3480156106a157600080fd5b506102e467011c37937e08000081565b3480156106bd57600080fd5b506102c16106cc366004612834565b61171d565b3480156106dd57600080fd5b506102e46117ce565b3480156106f257600080fd5b506102e4610701366004612893565b60116020526000908152604090205481565b34801561071f57600080fd5b506015546102979060ff1681565b34801561073957600080fd5b5061034a610748366004612b42565b611803565b34801561075957600080fd5b50610297610768366004612b6e565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b3480156107a257600080fd5b506102c1611882565b3480156107b757600080fd5b5061034a6107c63660046128fa565b61188f565b3480156107d757600080fd5b5061034a6107e6366004612893565b611a3d565b3480156107f757600080fd5b5061034a6108063660046129a2565b611ad8565b600061081682611b85565b92915050565b60606001805461082b90612ba1565b80601f016020809104026020016040519081016040528092919081815260200182805461085790612ba1565b80156108a45780601f10610879576101008083540402835291602001916108a4565b820191906000526020600020905b81548152906001019060200180831161088757829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b031661092c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061095382611128565b9050806001600160a01b0316836001600160a01b031614156109c15760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610923565b336001600160a01b03821614806109dd57506109dd8133610768565b610a4f5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610923565b610a598383611baa565b505050565b60148054610a6b90612ba1565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9790612ba1565b8015610ae45780601f10610ab957610100808354040283529160200191610ae4565b820191906000526020600020905b815481529060010190602001808311610ac757829003601f168201915b505050505081565b6000546001600160a01b03163314610b165760405162461bcd60e51b815260040161092390612bdc565b828114610b355760405162461bcd60e51b815260040161092390612c11565b60005b83811015610c9a576000858583818110610b5457610b54612c53565b9050602002016020810190610b699190612893565b6001600160a01b03161415610ba95760405162461bcd60e51b8152600401610923906020808252600490820152637a65726f60e01b604082015260600190565b828282818110610bbb57610bbb612c53565b90506020020135600f6000878785818110610bd857610bd8612c53565b9050602002016020810190610bed9190612893565b6001600160a01b03168152602081019190915260400160002055848482818110610c1957610c19612c53565b9050602002016020810190610c2e9190612893565b6001600160a01b03167f69561778ac97dfc2d31e860092bca67d1ebce2d3f486e1210aa13f0e9a2a6fe9848484818110610c6a57610c6a612c53565b90506020020135604051610c8091815260200190565b60405180910390a280610c9281612c7f565b915050610b38565b5050505050565b610cab3382611c18565b610cc75760405162461bcd60e51b815260040161092390612c9a565b610a59838383611d0f565b6000610cdd8361119f565b8210610d3f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610923565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6002600b541415610dbb5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610923565b6002600b55600c54421015610e095760405162461bcd60e51b8152602060048201526014602482015273141c994b535a5b9d081b9bdd081cdd185c9d195960621b6044820152606401610923565b600d544210610e4b5760405162461bcd60e51b815260206004820152600e60248201526d141c994b535a5b9d08195b99195960921b6044820152606401610923565b336000908152600f6020526040902054811115610eaa5760405162461bcd60e51b815260206004820152601d60248201527f4d6178206d696e747320666f72206164647265737320726561636865640000006044820152606401610923565b6000546001600160a01b03163314610f1057610ece67011c37937e08000082612ceb565b3414610f105760405162461bcd60e51b8152602060048201526011602482015270125b98dbdc9c9958dd081c185e5b595b9d607a1b6044820152606401610923565b336000908152600f602052604081208054839290610f2f908490612d0a565b90915550503360009081526011602052604081208054839290610f53908490612d21565b90915550504360165560005b81811015610f8257610f7033611eba565b80610f7a81612c7f565b915050610f5f565b5060405181815233907f925f730a5ad66a8169d9e681b6feed65b2a165b2d93d33fce9d83b699f247914906020015b60405180910390a2506001600b55565b610a59838383604051806020016040528060008152506116e5565b6000610fe760095490565b821061104a5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610923565b6009828154811061105d5761105d612c53565b90600052602060002001549050919050565b6000546001600160a01b031633146110995760405162461bcd60e51b815260040161092390612bdc565b60155460ff16156110de5760405162461bcd60e51b815260206004820152600f60248201526e13595d1859185d18481b1bd8dad959608a1b6044820152606401610923565b6110ea601383836126f6565b507f23c8c9488efebfd474e85a7956de6f39b17c7ab88502d42a623db2d8e382bbaa828260405161111c929190612d39565b60405180910390a15050565b6000818152600360205260408120546001600160a01b0316806108165760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610923565b60006001600160a01b03821661120a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610923565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146112505760405162461bcd60e51b815260040161092390612bdc565b61125a6000611f5b565b565b6000546001600160a01b031633146112865760405162461bcd60e51b815260040161092390612bdc565b600e544210156112cd5760405162461bcd60e51b8152602060048201526012602482015271135a5b9d081a185cc81b9bdd08195b99195960721b6044820152606401610923565b6040514790600090339083908381818185875af1925050503d8060008114611311576040519150601f19603f3d011682016040523d82523d6000602084013e611316565b606091505b50509050806113675760405162461bcd60e51b815260206004820152601760248201527f436f756c64206e6f742073656e642070726f63656564730000000000000000006044820152606401610923565b60405182815233907fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a9060200160405180910390a25050565b60606002805461082b90612ba1565b6000546001600160a01b031633146113d95760405162461bcd60e51b815260040161092390612bdc565b6015805460ff191660011790556040517f0f2e5b6c72c6a4491efd919a9f9a409f324ef0708c11ee57d410c2cb06c0992b90600090a1565b6002600b5414156114645760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610923565b6002600b55600d544210156114ae5760405162461bcd60e51b815260206004820152601060248201526f135a5b9d081b9bdd081cdd185c9d195960821b6044820152606401610923565b601554610100900460ff1661157f57600e5442106114fb5760405162461bcd60e51b815260206004820152600a602482015269135a5b9d08195b99195960b21b6044820152606401610923565b3360009081526010602052604090205481111561155a5760405162461bcd60e51b815260206004820152601d60248201527f4d6178206d696e747320666f72206164647265737320726561636865640000006044820152606401610923565b3360009081526010602052604081208054839290611579908490612d0a565b90915550505b6000546001600160a01b031633146115e5576115a367011c37937e08000082612ceb565b34146115e55760405162461bcd60e51b8152602060048201526011602482015270125b98dbdc9c9958dd081c185e5b595b9d607a1b6044820152606401610923565b3360009081526012602052604081208054839290611604908490612d21565b90915550504360165560005b818110156116335761162133611eba565b8061162b81612c7f565b915050611610565b5060405181815233907f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe90602001610fb1565b611671338383611fab565b5050565b6000546001600160a01b0316331461169f5760405162461bcd60e51b815260040161092390612bdc565b6015805461ff001981166101009182900460ff16159091021790556040517f98bc8e6193430ff4877b42d69dfbee87f60c67a35b201e9e9402fa4fc4befae690600090a1565b6116ef3383611c18565b61170b5760405162461bcd60e51b815260040161092390612c9a565b6117178484848461207a565b50505050565b6000818152600360205260409020546060906001600160a01b031661179c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610923565b60136117a7836120ad565b6040516020016117b8929190612d84565b6040516020818303038152906040529050919050565b60007f00000000000000000000000000000000000000000000000000000000000000006016546117fe9190612e55565b905090565b6000546001600160a01b0316331461182d5760405162461bcd60e51b815260040161092390612bdc565b600c839055600d829055600e81905560408051848152602081018490529081018290527f3e5026851758e1ab6e995b071b048e26e92f459b047600ff68914479d5074c549060600160405180910390a1505050565b60138054610a6b90612ba1565b6000546001600160a01b031633146118b95760405162461bcd60e51b815260040161092390612bdc565b8281146118d85760405162461bcd60e51b815260040161092390612c11565b60005b83811015610c9a5760008585838181106118f7576118f7612c53565b905060200201602081019061190c9190612893565b6001600160a01b0316141561194c5760405162461bcd60e51b8152600401610923906020808252600490820152635a65726f60e01b604082015260600190565b82828281811061195e5761195e612c53565b905060200201356010600087878581811061197b5761197b612c53565b90506020020160208101906119909190612893565b6001600160a01b031681526020810191909152604001600020558484828181106119bc576119bc612c53565b90506020020160208101906119d19190612893565b6001600160a01b03167f6ea640312e182de387819fbeb13be00db3171a445412852248559054871c4199848484818110611a0d57611a0d612c53565b90506020020135604051611a2391815260200190565b60405180910390a280611a3581612c7f565b9150506118db565b6000546001600160a01b03163314611a675760405162461bcd60e51b815260040161092390612bdc565b6001600160a01b038116611acc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610923565b611ad581611f5b565b50565b6000546001600160a01b03163314611b025760405162461bcd60e51b815260040161092390612bdc565b60155460ff1615611b475760405162461bcd60e51b815260206004820152600f60248201526e13595d1859185d18481b1bd8dad959608a1b6044820152606401610923565b611b53601483836126f6565b507f9a15466c5caef68c45172698c3e94fec7de42c88676fa00817bde701c8df8903828260405161111c929190612d39565b60006001600160e01b0319821663780e9d6360e01b14806108165750610816826121ab565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611bdf82611128565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b0316611c915760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610923565b6000611c9c83611128565b9050806001600160a01b0316846001600160a01b03161480611cd75750836001600160a01b0316611ccc846108ae565b6001600160a01b0316145b80611d0757506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611d2282611128565b6001600160a01b031614611d8a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610923565b6001600160a01b038216611dec5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610923565b611df78383836121fb565b611e02600082611baa565b6001600160a01b0383166000908152600460205260408120805460019290611e2b908490612d0a565b90915550506001600160a01b0382166000908152600460205260408120805460019290611e59908490612d21565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b7f000000000000000000000000000000000000000000000000000000000000000060175410611f2b5760405162461bcd60e51b815260206004820152601860248201527f417661696c61626c6520737570706c79207265616368656400000000000000006044820152606401610923565b611f43336017546001611f3e9190612d21565b612206565b60178054906000611f5383612c7f565b919050555050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b0316141561200d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610923565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612085848484611d0f565b61209184848484612220565b6117175760405162461bcd60e51b815260040161092390612e69565b6060816120d15750506040805180820190915260018152600360fc1b602082015290565b8160005b81156120fb57806120e581612c7f565b91506120f49050600a83612ebb565b91506120d5565b60008167ffffffffffffffff81111561211657612116612a50565b6040519080825280601f01601f191660200182016040528015612140576020820181803683370190505b5090505b8415611d0757612155600183612d0a565b9150612162600a86612e55565b61216d906030612d21565b60f81b81838151811061218257612182612c53565b60200101906001600160f81b031916908160001a9053506121a4600a86612ebb565b9450612144565b60006001600160e01b031982166380ac58cd60e01b14806121dc57506001600160e01b03198216635b5e139f60e01b145b8061081657506301ffc9a760e01b6001600160e01b0319831614610816565b610a5983838361232d565b6116718282604051806020016040528060008152506123e5565b60006001600160a01b0384163b1561232257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612264903390899088908890600401612ecf565b602060405180830381600087803b15801561227e57600080fd5b505af19250505080156122ae575060408051601f3d908101601f191682019092526122ab91810190612f0c565b60015b612308573d8080156122dc576040519150601f19603f3d011682016040523d82523d6000602084013e6122e1565b606091505b5080516123005760405162461bcd60e51b815260040161092390612e69565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611d07565b506001949350505050565b6001600160a01b0383166123885761238381600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b6123ab565b816001600160a01b0316836001600160a01b0316146123ab576123ab8382612418565b6001600160a01b0382166123c257610a59816124b5565b826001600160a01b0316826001600160a01b031614610a5957610a598282612564565b6123ef83836125a8565b6123fc6000848484612220565b610a595760405162461bcd60e51b815260040161092390612e69565b600060016124258461119f565b61242f9190612d0a565b600083815260086020526040902054909150808214612482576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b6009546000906124c790600190612d0a565b6000838152600a6020526040812054600980549394509092849081106124ef576124ef612c53565b90600052602060002001549050806009838154811061251057612510612c53565b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548061254857612548612f29565b6001900381819060005260206000200160009055905550505050565b600061256f8361119f565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6001600160a01b0382166125fe5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610923565b6000818152600360205260409020546001600160a01b0316156126635760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610923565b61266f600083836121fb565b6001600160a01b0382166000908152600460205260408120805460019290612698908490612d21565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461270290612ba1565b90600052602060002090601f016020900481019282612724576000855561276a565b82601f1061273d5782800160ff1982351617855561276a565b8280016001018555821561276a579182015b8281111561276a57823582559160200191906001019061274f565b5061277692915061277a565b5090565b5b80821115612776576000815560010161277b565b6001600160e01b031981168114611ad557600080fd5b6000602082840312156127b757600080fd5b81356127c28161278f565b9392505050565b60005b838110156127e45781810151838201526020016127cc565b838111156117175750506000910152565b6000815180845261280d8160208601602086016127c9565b601f01601f19169290920160200192915050565b6020815260006127c260208301846127f5565b60006020828403121561284657600080fd5b5035919050565b80356001600160a01b038116811461286457600080fd5b919050565b6000806040838503121561287c57600080fd5b6128858361284d565b946020939093013593505050565b6000602082840312156128a557600080fd5b6127c28261284d565b60008083601f8401126128c057600080fd5b50813567ffffffffffffffff8111156128d857600080fd5b6020830191508360208260051b85010111156128f357600080fd5b9250929050565b6000806000806040858703121561291057600080fd5b843567ffffffffffffffff8082111561292857600080fd5b612934888389016128ae565b9096509450602087013591508082111561294d57600080fd5b5061295a878288016128ae565b95989497509550505050565b60008060006060848603121561297b57600080fd5b6129848461284d565b92506129926020850161284d565b9150604084013590509250925092565b600080602083850312156129b557600080fd5b823567ffffffffffffffff808211156129cd57600080fd5b818501915085601f8301126129e157600080fd5b8135818111156129f057600080fd5b866020828501011115612a0257600080fd5b60209290920196919550909350505050565b60008060408385031215612a2757600080fd5b612a308361284d565b915060208301358015158114612a4557600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612a7c57600080fd5b612a858561284d565b9350612a936020860161284d565b925060408501359150606085013567ffffffffffffffff80821115612ab757600080fd5b818701915087601f830112612acb57600080fd5b813581811115612add57612add612a50565b604051601f8201601f19908116603f01168101908382118183101715612b0557612b05612a50565b816040528281528a6020848701011115612b1e57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080600060608486031215612b5757600080fd5b505081359360208301359350604090920135919050565b60008060408385031215612b8157600080fd5b612b8a8361284d565b9150612b986020840161284d565b90509250929050565b600181811c90821680612bb557607f821691505b60208210811415612bd657634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526022908201527f416464726573736573206c656e67746820213d20656e7472696573206c656e676040820152610e8d60f31b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415612c9357612c93612c69565b5060010190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000816000190483118215151615612d0557612d05612c69565b500290565b600082821015612d1c57612d1c612c69565b500390565b60008219821115612d3457612d34612c69565b500190565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b60008151612d7a8185602086016127c9565b9290920192915050565b600080845481600182811c915080831680612da057607f831692505b6020808410821415612dc057634e487b7160e01b86526022600452602486fd5b818015612dd45760018114612de557612e12565b60ff19861689528489019650612e12565b60008b81526020902060005b86811015612e0a5781548b820152908501908301612df1565b505084890196505b505050505050612e36612e258286612d68565b64173539b7b760d91b815260050190565b95945050505050565b634e487b7160e01b600052601260045260246000fd5b600082612e6457612e64612e3f565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082612eca57612eca612e3f565b500490565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612f02908301846127f5565b9695505050505050565b600060208284031215612f1e57600080fd5b81516127c28161278f565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220849f0010f9df03bddec7b0761ebc8f5e35790b087a2d7d8bddb8e2961a735a2464736f6c6343000809003300000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000270f000000000000000000000000000000000000000000000000000000006187e9f000000000000000000000000000000000000000000000000000000000618a8cf000000000000000000000000000000000000000000000000000000000618d4c10000000000000000000000000000000000000000000000000000000000000000a54686f7247756172647300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a54484f5247554152445300000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102725760003560e01c80637e2ade0c1161014f578063c492547a116100c1578063d3e966581161007a578063d3e966581461072d578063e985e9c51461074d578063eac989f814610796578063f013e0e1146107ab578063f2fde38b146107cb578063ffe630b5146107eb57600080fd5b8063c492547a1461067f578063c662e48114610695578063c87b56dd146106b1578063cb774d47146106d1578063cd983d8d146106e6578063cf3090121461071357600080fd5b80639b19251a116101135780639b19251a146105b6578063a0712d68146105e3578063a22cb465146105f6578063a7b7229414610616578063b438e12e1461062b578063b88d4fde1461065f57600080fd5b80637e2ade0c146105435780638c3b0ca8146105595780638da5cb5b1461056e57806395d89b411461058c578063989bdbb6146105a157600080fd5b806324bbd049116101e85780634f6ccce7116101ac5780634f6ccce71461048157806355f804b3146104a15780636352211e146104c157806370a08231146104e1578063715018a614610501578063736539291461051657600080fd5b806324bbd049146103f95780632f745c59146104185780633bbaac7b1461043857806342842e0e1461044b57806347ce07cc1461046b57600080fd5b80630af2c6ca1161023a5780630af2c6ca1461034c5780630f134ca4146103625780630f7309e81461038f57806318160ddd146103a457806322c24205146103b957806323b872dd146103d957600080fd5b806301ffc9a71461027757806306fdde03146102ac57806307bd6322146102ce578063081812fc146102f2578063095ea7b31461032a575b600080fd5b34801561028357600080fd5b506102976102923660046127a5565b61080b565b60405190151581526020015b60405180910390f35b3480156102b857600080fd5b506102c161081c565b6040516102a39190612821565b3480156102da57600080fd5b506102e4600e5481565b6040519081526020016102a3565b3480156102fe57600080fd5b5061031261030d366004612834565b6108ae565b6040516001600160a01b0390911681526020016102a3565b34801561033657600080fd5b5061034a610345366004612869565b610948565b005b34801561035857600080fd5b506102e460175481565b34801561036e57600080fd5b506102e461037d366004612893565b600f6020526000908152604090205481565b34801561039b57600080fd5b506102c1610a5e565b3480156103b057600080fd5b506009546102e4565b3480156103c557600080fd5b5061034a6103d43660046128fa565b610aec565b3480156103e557600080fd5b5061034a6103f4366004612966565b610ca1565b34801561040557600080fd5b5060155461029790610100900460ff1681565b34801561042457600080fd5b506102e4610433366004612869565b610cd2565b61034a610446366004612834565b610d68565b34801561045757600080fd5b5061034a610466366004612966565b610fc1565b34801561047757600080fd5b506102e460165481565b34801561048d57600080fd5b506102e461049c366004612834565b610fdc565b3480156104ad57600080fd5b5061034a6104bc3660046129a2565b61106f565b3480156104cd57600080fd5b506103126104dc366004612834565b611128565b3480156104ed57600080fd5b506102e46104fc366004612893565b61119f565b34801561050d57600080fd5b5061034a611226565b34801561052257600080fd5b506102e4610531366004612893565b60126020526000908152604090205481565b34801561054f57600080fd5b506102e4600d5481565b34801561056557600080fd5b5061034a61125c565b34801561057a57600080fd5b506000546001600160a01b0316610312565b34801561059857600080fd5b506102c16113a0565b3480156105ad57600080fd5b5061034a6113af565b3480156105c257600080fd5b506102e46105d1366004612893565b60106020526000908152604090205481565b61034a6105f1366004612834565b611411565b34801561060257600080fd5b5061034a610611366004612a14565b611666565b34801561062257600080fd5b5061034a611675565b34801561063757600080fd5b506102e47f000000000000000000000000000000000000000000000000000000000000270f81565b34801561066b57600080fd5b5061034a61067a366004612a66565b6116e5565b34801561068b57600080fd5b506102e4600c5481565b3480156106a157600080fd5b506102e467011c37937e08000081565b3480156106bd57600080fd5b506102c16106cc366004612834565b61171d565b3480156106dd57600080fd5b506102e46117ce565b3480156106f257600080fd5b506102e4610701366004612893565b60116020526000908152604090205481565b34801561071f57600080fd5b506015546102979060ff1681565b34801561073957600080fd5b5061034a610748366004612b42565b611803565b34801561075957600080fd5b50610297610768366004612b6e565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b3480156107a257600080fd5b506102c1611882565b3480156107b757600080fd5b5061034a6107c63660046128fa565b61188f565b3480156107d757600080fd5b5061034a6107e6366004612893565b611a3d565b3480156107f757600080fd5b5061034a6108063660046129a2565b611ad8565b600061081682611b85565b92915050565b60606001805461082b90612ba1565b80601f016020809104026020016040519081016040528092919081815260200182805461085790612ba1565b80156108a45780601f10610879576101008083540402835291602001916108a4565b820191906000526020600020905b81548152906001019060200180831161088757829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b031661092c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061095382611128565b9050806001600160a01b0316836001600160a01b031614156109c15760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610923565b336001600160a01b03821614806109dd57506109dd8133610768565b610a4f5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610923565b610a598383611baa565b505050565b60148054610a6b90612ba1565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9790612ba1565b8015610ae45780601f10610ab957610100808354040283529160200191610ae4565b820191906000526020600020905b815481529060010190602001808311610ac757829003601f168201915b505050505081565b6000546001600160a01b03163314610b165760405162461bcd60e51b815260040161092390612bdc565b828114610b355760405162461bcd60e51b815260040161092390612c11565b60005b83811015610c9a576000858583818110610b5457610b54612c53565b9050602002016020810190610b699190612893565b6001600160a01b03161415610ba95760405162461bcd60e51b8152600401610923906020808252600490820152637a65726f60e01b604082015260600190565b828282818110610bbb57610bbb612c53565b90506020020135600f6000878785818110610bd857610bd8612c53565b9050602002016020810190610bed9190612893565b6001600160a01b03168152602081019190915260400160002055848482818110610c1957610c19612c53565b9050602002016020810190610c2e9190612893565b6001600160a01b03167f69561778ac97dfc2d31e860092bca67d1ebce2d3f486e1210aa13f0e9a2a6fe9848484818110610c6a57610c6a612c53565b90506020020135604051610c8091815260200190565b60405180910390a280610c9281612c7f565b915050610b38565b5050505050565b610cab3382611c18565b610cc75760405162461bcd60e51b815260040161092390612c9a565b610a59838383611d0f565b6000610cdd8361119f565b8210610d3f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610923565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6002600b541415610dbb5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610923565b6002600b55600c54421015610e095760405162461bcd60e51b8152602060048201526014602482015273141c994b535a5b9d081b9bdd081cdd185c9d195960621b6044820152606401610923565b600d544210610e4b5760405162461bcd60e51b815260206004820152600e60248201526d141c994b535a5b9d08195b99195960921b6044820152606401610923565b336000908152600f6020526040902054811115610eaa5760405162461bcd60e51b815260206004820152601d60248201527f4d6178206d696e747320666f72206164647265737320726561636865640000006044820152606401610923565b6000546001600160a01b03163314610f1057610ece67011c37937e08000082612ceb565b3414610f105760405162461bcd60e51b8152602060048201526011602482015270125b98dbdc9c9958dd081c185e5b595b9d607a1b6044820152606401610923565b336000908152600f602052604081208054839290610f2f908490612d0a565b90915550503360009081526011602052604081208054839290610f53908490612d21565b90915550504360165560005b81811015610f8257610f7033611eba565b80610f7a81612c7f565b915050610f5f565b5060405181815233907f925f730a5ad66a8169d9e681b6feed65b2a165b2d93d33fce9d83b699f247914906020015b60405180910390a2506001600b55565b610a59838383604051806020016040528060008152506116e5565b6000610fe760095490565b821061104a5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610923565b6009828154811061105d5761105d612c53565b90600052602060002001549050919050565b6000546001600160a01b031633146110995760405162461bcd60e51b815260040161092390612bdc565b60155460ff16156110de5760405162461bcd60e51b815260206004820152600f60248201526e13595d1859185d18481b1bd8dad959608a1b6044820152606401610923565b6110ea601383836126f6565b507f23c8c9488efebfd474e85a7956de6f39b17c7ab88502d42a623db2d8e382bbaa828260405161111c929190612d39565b60405180910390a15050565b6000818152600360205260408120546001600160a01b0316806108165760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610923565b60006001600160a01b03821661120a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610923565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146112505760405162461bcd60e51b815260040161092390612bdc565b61125a6000611f5b565b565b6000546001600160a01b031633146112865760405162461bcd60e51b815260040161092390612bdc565b600e544210156112cd5760405162461bcd60e51b8152602060048201526012602482015271135a5b9d081a185cc81b9bdd08195b99195960721b6044820152606401610923565b6040514790600090339083908381818185875af1925050503d8060008114611311576040519150601f19603f3d011682016040523d82523d6000602084013e611316565b606091505b50509050806113675760405162461bcd60e51b815260206004820152601760248201527f436f756c64206e6f742073656e642070726f63656564730000000000000000006044820152606401610923565b60405182815233907fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a9060200160405180910390a25050565b60606002805461082b90612ba1565b6000546001600160a01b031633146113d95760405162461bcd60e51b815260040161092390612bdc565b6015805460ff191660011790556040517f0f2e5b6c72c6a4491efd919a9f9a409f324ef0708c11ee57d410c2cb06c0992b90600090a1565b6002600b5414156114645760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610923565b6002600b55600d544210156114ae5760405162461bcd60e51b815260206004820152601060248201526f135a5b9d081b9bdd081cdd185c9d195960821b6044820152606401610923565b601554610100900460ff1661157f57600e5442106114fb5760405162461bcd60e51b815260206004820152600a602482015269135a5b9d08195b99195960b21b6044820152606401610923565b3360009081526010602052604090205481111561155a5760405162461bcd60e51b815260206004820152601d60248201527f4d6178206d696e747320666f72206164647265737320726561636865640000006044820152606401610923565b3360009081526010602052604081208054839290611579908490612d0a565b90915550505b6000546001600160a01b031633146115e5576115a367011c37937e08000082612ceb565b34146115e55760405162461bcd60e51b8152602060048201526011602482015270125b98dbdc9c9958dd081c185e5b595b9d607a1b6044820152606401610923565b3360009081526012602052604081208054839290611604908490612d21565b90915550504360165560005b818110156116335761162133611eba565b8061162b81612c7f565b915050611610565b5060405181815233907f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe90602001610fb1565b611671338383611fab565b5050565b6000546001600160a01b0316331461169f5760405162461bcd60e51b815260040161092390612bdc565b6015805461ff001981166101009182900460ff16159091021790556040517f98bc8e6193430ff4877b42d69dfbee87f60c67a35b201e9e9402fa4fc4befae690600090a1565b6116ef3383611c18565b61170b5760405162461bcd60e51b815260040161092390612c9a565b6117178484848461207a565b50505050565b6000818152600360205260409020546060906001600160a01b031661179c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610923565b60136117a7836120ad565b6040516020016117b8929190612d84565b6040516020818303038152906040529050919050565b60007f000000000000000000000000000000000000000000000000000000000000270f6016546117fe9190612e55565b905090565b6000546001600160a01b0316331461182d5760405162461bcd60e51b815260040161092390612bdc565b600c839055600d829055600e81905560408051848152602081018490529081018290527f3e5026851758e1ab6e995b071b048e26e92f459b047600ff68914479d5074c549060600160405180910390a1505050565b60138054610a6b90612ba1565b6000546001600160a01b031633146118b95760405162461bcd60e51b815260040161092390612bdc565b8281146118d85760405162461bcd60e51b815260040161092390612c11565b60005b83811015610c9a5760008585838181106118f7576118f7612c53565b905060200201602081019061190c9190612893565b6001600160a01b0316141561194c5760405162461bcd60e51b8152600401610923906020808252600490820152635a65726f60e01b604082015260600190565b82828281811061195e5761195e612c53565b905060200201356010600087878581811061197b5761197b612c53565b90506020020160208101906119909190612893565b6001600160a01b031681526020810191909152604001600020558484828181106119bc576119bc612c53565b90506020020160208101906119d19190612893565b6001600160a01b03167f6ea640312e182de387819fbeb13be00db3171a445412852248559054871c4199848484818110611a0d57611a0d612c53565b90506020020135604051611a2391815260200190565b60405180910390a280611a3581612c7f565b9150506118db565b6000546001600160a01b03163314611a675760405162461bcd60e51b815260040161092390612bdc565b6001600160a01b038116611acc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610923565b611ad581611f5b565b50565b6000546001600160a01b03163314611b025760405162461bcd60e51b815260040161092390612bdc565b60155460ff1615611b475760405162461bcd60e51b815260206004820152600f60248201526e13595d1859185d18481b1bd8dad959608a1b6044820152606401610923565b611b53601483836126f6565b507f9a15466c5caef68c45172698c3e94fec7de42c88676fa00817bde701c8df8903828260405161111c929190612d39565b60006001600160e01b0319821663780e9d6360e01b14806108165750610816826121ab565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611bdf82611128565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b0316611c915760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610923565b6000611c9c83611128565b9050806001600160a01b0316846001600160a01b03161480611cd75750836001600160a01b0316611ccc846108ae565b6001600160a01b0316145b80611d0757506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611d2282611128565b6001600160a01b031614611d8a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610923565b6001600160a01b038216611dec5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610923565b611df78383836121fb565b611e02600082611baa565b6001600160a01b0383166000908152600460205260408120805460019290611e2b908490612d0a565b90915550506001600160a01b0382166000908152600460205260408120805460019290611e59908490612d21565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b7f000000000000000000000000000000000000000000000000000000000000270f60175410611f2b5760405162461bcd60e51b815260206004820152601860248201527f417661696c61626c6520737570706c79207265616368656400000000000000006044820152606401610923565b611f43336017546001611f3e9190612d21565b612206565b60178054906000611f5383612c7f565b919050555050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b0316141561200d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610923565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612085848484611d0f565b61209184848484612220565b6117175760405162461bcd60e51b815260040161092390612e69565b6060816120d15750506040805180820190915260018152600360fc1b602082015290565b8160005b81156120fb57806120e581612c7f565b91506120f49050600a83612ebb565b91506120d5565b60008167ffffffffffffffff81111561211657612116612a50565b6040519080825280601f01601f191660200182016040528015612140576020820181803683370190505b5090505b8415611d0757612155600183612d0a565b9150612162600a86612e55565b61216d906030612d21565b60f81b81838151811061218257612182612c53565b60200101906001600160f81b031916908160001a9053506121a4600a86612ebb565b9450612144565b60006001600160e01b031982166380ac58cd60e01b14806121dc57506001600160e01b03198216635b5e139f60e01b145b8061081657506301ffc9a760e01b6001600160e01b0319831614610816565b610a5983838361232d565b6116718282604051806020016040528060008152506123e5565b60006001600160a01b0384163b1561232257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612264903390899088908890600401612ecf565b602060405180830381600087803b15801561227e57600080fd5b505af19250505080156122ae575060408051601f3d908101601f191682019092526122ab91810190612f0c565b60015b612308573d8080156122dc576040519150601f19603f3d011682016040523d82523d6000602084013e6122e1565b606091505b5080516123005760405162461bcd60e51b815260040161092390612e69565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611d07565b506001949350505050565b6001600160a01b0383166123885761238381600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b6123ab565b816001600160a01b0316836001600160a01b0316146123ab576123ab8382612418565b6001600160a01b0382166123c257610a59816124b5565b826001600160a01b0316826001600160a01b031614610a5957610a598282612564565b6123ef83836125a8565b6123fc6000848484612220565b610a595760405162461bcd60e51b815260040161092390612e69565b600060016124258461119f565b61242f9190612d0a565b600083815260086020526040902054909150808214612482576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b6009546000906124c790600190612d0a565b6000838152600a6020526040812054600980549394509092849081106124ef576124ef612c53565b90600052602060002001549050806009838154811061251057612510612c53565b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548061254857612548612f29565b6001900381819060005260206000200160009055905550505050565b600061256f8361119f565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6001600160a01b0382166125fe5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610923565b6000818152600360205260409020546001600160a01b0316156126635760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610923565b61266f600083836121fb565b6001600160a01b0382166000908152600460205260408120805460019290612698908490612d21565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461270290612ba1565b90600052602060002090601f016020900481019282612724576000855561276a565b82601f1061273d5782800160ff1982351617855561276a565b8280016001018555821561276a579182015b8281111561276a57823582559160200191906001019061274f565b5061277692915061277a565b5090565b5b80821115612776576000815560010161277b565b6001600160e01b031981168114611ad557600080fd5b6000602082840312156127b757600080fd5b81356127c28161278f565b9392505050565b60005b838110156127e45781810151838201526020016127cc565b838111156117175750506000910152565b6000815180845261280d8160208601602086016127c9565b601f01601f19169290920160200192915050565b6020815260006127c260208301846127f5565b60006020828403121561284657600080fd5b5035919050565b80356001600160a01b038116811461286457600080fd5b919050565b6000806040838503121561287c57600080fd5b6128858361284d565b946020939093013593505050565b6000602082840312156128a557600080fd5b6127c28261284d565b60008083601f8401126128c057600080fd5b50813567ffffffffffffffff8111156128d857600080fd5b6020830191508360208260051b85010111156128f357600080fd5b9250929050565b6000806000806040858703121561291057600080fd5b843567ffffffffffffffff8082111561292857600080fd5b612934888389016128ae565b9096509450602087013591508082111561294d57600080fd5b5061295a878288016128ae565b95989497509550505050565b60008060006060848603121561297b57600080fd5b6129848461284d565b92506129926020850161284d565b9150604084013590509250925092565b600080602083850312156129b557600080fd5b823567ffffffffffffffff808211156129cd57600080fd5b818501915085601f8301126129e157600080fd5b8135818111156129f057600080fd5b866020828501011115612a0257600080fd5b60209290920196919550909350505050565b60008060408385031215612a2757600080fd5b612a308361284d565b915060208301358015158114612a4557600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612a7c57600080fd5b612a858561284d565b9350612a936020860161284d565b925060408501359150606085013567ffffffffffffffff80821115612ab757600080fd5b818701915087601f830112612acb57600080fd5b813581811115612add57612add612a50565b604051601f8201601f19908116603f01168101908382118183101715612b0557612b05612a50565b816040528281528a6020848701011115612b1e57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080600060608486031215612b5757600080fd5b505081359360208301359350604090920135919050565b60008060408385031215612b8157600080fd5b612b8a8361284d565b9150612b986020840161284d565b90509250929050565b600181811c90821680612bb557607f821691505b60208210811415612bd657634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526022908201527f416464726573736573206c656e67746820213d20656e7472696573206c656e676040820152610e8d60f31b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415612c9357612c93612c69565b5060010190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000816000190483118215151615612d0557612d05612c69565b500290565b600082821015612d1c57612d1c612c69565b500390565b60008219821115612d3457612d34612c69565b500190565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b60008151612d7a8185602086016127c9565b9290920192915050565b600080845481600182811c915080831680612da057607f831692505b6020808410821415612dc057634e487b7160e01b86526022600452602486fd5b818015612dd45760018114612de557612e12565b60ff19861689528489019650612e12565b60008b81526020902060005b86811015612e0a5781548b820152908501908301612df1565b505084890196505b505050505050612e36612e258286612d68565b64173539b7b760d91b815260050190565b95945050505050565b634e487b7160e01b600052601260045260246000fd5b600082612e6457612e64612e3f565b500690565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082612eca57612eca612e3f565b500490565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612f02908301846127f5565b9695505050505050565b600060208284031215612f1e57600080fd5b81516127c28161278f565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220849f0010f9df03bddec7b0761ebc8f5e35790b087a2d7d8bddb8e2961a735a2464736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000270f000000000000000000000000000000000000000000000000000000006187e9f000000000000000000000000000000000000000000000000000000000618a8cf000000000000000000000000000000000000000000000000000000000618d4c10000000000000000000000000000000000000000000000000000000000000000a54686f7247756172647300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a54484f5247554152445300000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _NFT_NAME (string): ThorGuards
Arg [1] : _NFT_SYMBOL (string): THORGUARDS
Arg [2] : _AVAILABLE_SUPPLY (uint256): 9999
Arg [3] : _MINT_PRE_START_TIME (uint256): 1636297200
Arg [4] : _MINT_START_TIME (uint256): 1636470000
Arg [5] : _MINT_END_TIME (uint256): 1636650000
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 000000000000000000000000000000000000000000000000000000000000270f
Arg [3] : 000000000000000000000000000000000000000000000000000000006187e9f0
Arg [4] : 00000000000000000000000000000000000000000000000000000000618a8cf0
Arg [5] : 00000000000000000000000000000000000000000000000000000000618d4c10
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [7] : 54686f7247756172647300000000000000000000000000000000000000000000
Arg [8] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [9] : 54484f5247554152445300000000000000000000000000000000000000000000
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.