Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
3,333 TGDTC
Holders
349
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
11 TGDTCLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TopG
Compiler Version
v0.8.15+commit.e14f2714
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-12-17 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts/security/ReentrancyGuard.sol // OpenZeppelin Contracts v4.4.1 (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; } } // FILE 2: 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) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File 3: Strings.sol // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } } // File: @openzeppelin/contracts/utils/Counters.sol // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } } // File 4: Ownable.sol pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File 5: 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); } // File 6: IERC721.sol pragma solidity ^0.8.0; /** * @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; } // File 7: IERC721Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; /** * @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 returns (string memory); } // File 8: ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @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; } } // File 9: ERC721.sol // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; /** * @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 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 overridden 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" ); if (to.isContract()) { revert ("Token transfer to contract address is not allowed."); } else { _approve(to, tokenId); } // _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); _afterTokenTransfer(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); _afterTokenTransfer(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 from incorrect owner"); 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); _afterTokenTransfer(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 {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} } // File 10: IERC721Enumerable.sol pragma solidity ^0.8.0; /** * @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); } // File 11: ERC721Enumerable.sol pragma solidity ^0.8.0; /** * @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(); } } // File 12: IERC721Receiver.sol // OpenZeppelin Contracts v4.4.1 (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); } // File 13: ERC721A.sol pragma solidity ^0.8.0; contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 internal currentIndex; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // 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; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override virtual returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), 'ERC721A: global index out of bounds'); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), 'ERC721A: owner index out of bounds'); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx; address currOwnershipAddr; // Counter overflow is impossible as the loop breaks when uint256 i is equal to another uint256 numMintedSoFar. unchecked { for (uint256 i; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } } revert('ERC721A: unable to get token of owner by index'); } /** * @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 || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), 'ERC721A: balance query for the zero address'); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require(owner != address(0), 'ERC721A: number minted query for the zero address'); return uint256(_addressData[owner].numberMinted); } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), 'ERC721A: owner query for nonexistent token'); unchecked { for (uint256 curr = tokenId; curr >= 0; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } revert('ERC721A: unable to determine the owner of token'); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @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(), ".json")) : ''; } /** * @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 override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, 'ERC721A: approval to current owner'); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), 'ERC721A: approve caller is not owner nor approved for all' ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), 'ERC721A: approved query for nonexistent token'); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), 'ERC721A: approve to caller'); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), 'ERC721A: 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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = currentIndex; require(to != address(0), 'ERC721A: mint to the zero address'); require(quantity != 0, 'ERC721A: quantity must be greater than 0'); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 3.4e38 (2**128) - 1 // updatedIndex overflows if currentIndex + quantity > 1.56e77 (2**256) - 1 unchecked { _addressData[to].balance += uint128(quantity); _addressData[to].numberMinted += uint128(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; for (uint256 i; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); if (safe) { require( _checkOnERC721Received(address(0), to, updatedIndex, _data), 'ERC721A: transfer to non ERC721Receiver implementer' ); } updatedIndex++; } currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require(isApprovedOrOwner, 'ERC721A: transfer caller is not owner nor approved'); require(prevOwnership.addr == from, 'ERC721A: transfer from incorrect owner'); require(to != address(0), 'ERC721A: transfer to the zero address'); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId].addr = to; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert('ERC721A: transfer to non ERC721Receiver implementer'); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * 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`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} } pragma solidity ^0.8.0; contract TopG is ERC721A, Ownable, ReentrancyGuard { using Strings for uint256; using Counters for Counters.Counter; string private uriPrefix = ""; string public uriSuffix = ".json"; string private hiddenMetadataUri; constructor() ERC721A("Top G Digital Trading Cards", "TGDTC") { setHiddenMetadataUri("ipfs://Qmdpn5pgG9AQgdGVcH6xZAN3sR32UY4revtL8XqHFSeroD/hidden.json"); } uint256 public price = 0 ether; uint256 public maxPerWallet = 11; uint256 public maxSupply = 3333; bool public paused = true; bool public revealed = false; mapping(address => uint) public addressToMinted; function changePrice(uint256 _newPrice) external onlyOwner { price = _newPrice; } function withdraw() external onlyOwner { (bool success, ) = payable(msg.sender).call{value: address(this).balance}(""); require(success, "Transfer failed."); } function mint(uint256 mintAmount) public payable { require(!paused, "The contract is paused!"); require(addressToMinted[msg.sender] + mintAmount <= maxPerWallet, "TOO MANY."); require(totalSupply() + mintAmount <= maxSupply, "NO MORE."); require(msg.value >= (price * mintAmount), "MORE MONEY."); addressToMinted[msg.sender] += mintAmount; _safeMint(msg.sender, mintAmount); } function walletOfOwner(address _owner) public view returns (uint256[] memory) { uint256 ownerTokenCount = balanceOf(_owner); uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount); uint256 currentTokenId = 1; uint256 ownedTokenIndex = 0; while (ownedTokenIndex < ownerTokenCount && currentTokenId <= maxSupply) { address currentTokenOwner = ownerOf(currentTokenId); if (currentTokenOwner == _owner) { ownedTokenIds[ownedTokenIndex] = currentTokenId; ownedTokenIndex++; } currentTokenId++; } return ownedTokenIds; } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require( _exists(_tokenId), "ERC721Metadata: URI query for nonexistent token" ); if (revealed == false) { return hiddenMetadataUri; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, _tokenId.toString(), uriSuffix)) : ""; } function setPaused(bool _state) public onlyOwner { paused = _state; } function setRevealed(bool _state) public onlyOwner { revealed = _state; } function setmaxSupply(uint256 _maxSupply) public onlyOwner { maxSupply = _maxSupply; } function setHiddenMetadataUri(string memory _hiddenMetadataUri) public onlyOwner { hiddenMetadataUri = _hiddenMetadataUri; } function setUriPrefix(string memory _uriPrefix) public onlyOwner { uriPrefix = _uriPrefix; } function setUriSuffix(string memory _uriSuffix) public onlyOwner { uriSuffix = _uriSuffix; } function _baseURI() internal view virtual override returns (string memory) { return uriPrefix; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressToMinted","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":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"changePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"maxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hiddenMetadataUri","type":"string"}],"name":"setHiddenMetadataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriPrefix","type":"string"}],"name":"setUriPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setmaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a0604052600060809081526009906200001a908262000296565b50604080518082019091526005815264173539b7b760d91b6020820152600a9062000046908262000296565b506000600c55600b600d55610d05600e55600f805461ffff191660011790553480156200007257600080fd5b506040518060400160405280601b81526020017f546f702047204469676974616c2054726164696e67204361726473000000000081525060405180604001604052806005815260200164544744544360d81b8152508160019081620000d8919062000296565b506002620000e7828262000296565b5050506000620000fc6200017c60201b60201c565b600780546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600881905550620001766040518060800160405280604181526020016200279a6041913962000180565b62000362565b3390565b6007546001600160a01b03163314620001df5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b600b620001ed828262000296565b5050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200021c57607f821691505b6020821081036200023d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200029157600081815260208120601f850160051c810160208610156200026c5750805b601f850160051c820191505b818110156200028d5782815560010162000278565b5050505b505050565b81516001600160401b03811115620002b257620002b2620001f1565b620002ca81620002c3845462000207565b8462000243565b602080601f831160018114620003025760008415620002e95750858301515b600019600386901b1c1916600185901b1785556200028d565b600085815260208120601f198616915b82811015620003335788860151825594840194600190910190840162000312565b5085821015620003525787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61242880620003726000396000f3fe60806040526004361061020f5760003560e01c80635c975abb11610118578063a0712d68116100a0578063c87b56dd1161006f578063c87b56dd146105e8578063d5abeb0114610608578063e0a808531461061e578063e985e9c51461063e578063f2fde38b1461068757600080fd5b8063a0712d6814610575578063a22cb46514610588578063a2b40d19146105a8578063b88d4fde146105c857600080fd5b80637ec4a659116100e75780637ec4a659146104df5780638da5cb5b146104ff57806395d89b411461051d5780639ec00c9514610532578063a035b1fe1461055f57600080fd5b80635c975abb146104705780636352211e1461048a57806370a08231146104aa578063715018a6146104ca57600080fd5b80632f745c591161019b578063453c23101161016a578063453c2310146103e65780634f6ccce7146103fc5780634fdd43cb1461041c578063518302271461043c5780635503a0e81461045b57600080fd5b80632f745c59146103645780633ccfd60b1461038457806342842e0e14610399578063438b6300146103b957600080fd5b806316ba10e0116101e257806316ba10e0146102c557806316c38b3c146102e557806318160ddd14610305578063228025e81461032457806323b872dd1461034457600080fd5b806301ffc9a71461021457806306fdde0314610249578063081812fc1461026b578063095ea7b3146102a3575b600080fd5b34801561022057600080fd5b5061023461022f366004611cfc565b6106a7565b60405190151581526020015b60405180910390f35b34801561025557600080fd5b5061025e610714565b6040516102409190611d71565b34801561027757600080fd5b5061028b610286366004611d84565b6107a6565b6040516001600160a01b039091168152602001610240565b3480156102af57600080fd5b506102c36102be366004611db9565b610836565b005b3480156102d157600080fd5b506102c36102e0366004611e6f565b61094d565b3480156102f157600080fd5b506102c3610300366004611ec8565b610987565b34801561031157600080fd5b506000545b604051908152602001610240565b34801561033057600080fd5b506102c361033f366004611d84565b6109c4565b34801561035057600080fd5b506102c361035f366004611ee3565b6109f3565b34801561037057600080fd5b5061031661037f366004611db9565b6109fe565b34801561039057600080fd5b506102c3610b59565b3480156103a557600080fd5b506102c36103b4366004611ee3565b610c11565b3480156103c557600080fd5b506103d96103d4366004611f1f565b610c2c565b6040516102409190611f3a565b3480156103f257600080fd5b50610316600d5481565b34801561040857600080fd5b50610316610417366004611d84565b610d0c565b34801561042857600080fd5b506102c3610437366004611e6f565b610d6e565b34801561044857600080fd5b50600f5461023490610100900460ff1681565b34801561046757600080fd5b5061025e610da4565b34801561047c57600080fd5b50600f546102349060ff1681565b34801561049657600080fd5b5061028b6104a5366004611d84565b610e32565b3480156104b657600080fd5b506103166104c5366004611f1f565b610e44565b3480156104d657600080fd5b506102c3610ed5565b3480156104eb57600080fd5b506102c36104fa366004611e6f565b610f49565b34801561050b57600080fd5b506007546001600160a01b031661028b565b34801561052957600080fd5b5061025e610f7f565b34801561053e57600080fd5b5061031661054d366004611f1f565b60106020526000908152604090205481565b34801561056b57600080fd5b50610316600c5481565b6102c3610583366004611d84565b610f8e565b34801561059457600080fd5b506102c36105a3366004611f7e565b611103565b3480156105b457600080fd5b506102c36105c3366004611d84565b6111c7565b3480156105d457600080fd5b506102c36105e3366004611fb1565b6111f6565b3480156105f457600080fd5b5061025e610603366004611d84565b61122f565b34801561061457600080fd5b50610316600e5481565b34801561062a57600080fd5b506102c3610639366004611ec8565b6113a5565b34801561064a57600080fd5b5061023461065936600461202d565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561069357600080fd5b506102c36106a2366004611f1f565b6113e9565b60006001600160e01b031982166380ac58cd60e01b14806106d857506001600160e01b03198216635b5e139f60e01b145b806106f357506001600160e01b0319821663780e9d6360e01b145b8061070e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606001805461072390612057565b80601f016020809104026020016040519081016040528092919081815260200182805461074f90612057565b801561079c5780601f106107715761010080835404028352916020019161079c565b820191906000526020600020905b81548152906001019060200180831161077f57829003601f168201915b5050505050905090565b60006107b3826000541190565b61081a5760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061084182610e32565b9050806001600160a01b0316836001600160a01b0316036108af5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610811565b336001600160a01b03821614806108cb57506108cb8133610659565b61093d5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610811565b6109488383836114d4565b505050565b6007546001600160a01b031633146109775760405162461bcd60e51b815260040161081190612091565b600a6109838282612114565b5050565b6007546001600160a01b031633146109b15760405162461bcd60e51b815260040161081190612091565b600f805460ff1916911515919091179055565b6007546001600160a01b031633146109ee5760405162461bcd60e51b815260040161081190612091565b600e55565b610948838383611530565b6000610a0983610e44565b8210610a625760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610811565b600080549080805b83811015610af9576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215610abd57805192505b876001600160a01b0316836001600160a01b031603610af057868403610ae95750935061070e92505050565b6001909301925b50600101610a6a565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608401610811565b6007546001600160a01b03163314610b835760405162461bcd60e51b815260040161081190612091565b604051600090339047908381818185875af1925050503d8060008114610bc5576040519150601f19603f3d011682016040523d82523d6000602084013e610bca565b606091505b5050905080610c0e5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610811565b50565b610948838383604051806020016040528060008152506111f6565b60606000610c3983610e44565b905060008167ffffffffffffffff811115610c5657610c56611de3565b604051908082528060200260200182016040528015610c7f578160200160208202803683370190505b509050600160005b8381108015610c985750600e548211155b15610d02576000610ca883610e32565b9050866001600160a01b0316816001600160a01b031603610cef5782848381518110610cd657610cd66121d4565b602090810291909101015281610ceb81612200565b9250505b82610cf981612200565b93505050610c87565b5090949350505050565b600080548210610d6a5760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610811565b5090565b6007546001600160a01b03163314610d985760405162461bcd60e51b815260040161081190612091565b600b6109838282612114565b600a8054610db190612057565b80601f0160208091040260200160405190810160405280929190818152602001828054610ddd90612057565b8015610e2a5780601f10610dff57610100808354040283529160200191610e2a565b820191906000526020600020905b815481529060010190602001808311610e0d57829003601f168201915b505050505081565b6000610e3d82611815565b5192915050565b60006001600160a01b038216610eb05760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610811565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6007546001600160a01b03163314610eff5760405162461bcd60e51b815260040161081190612091565b6007546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600780546001600160a01b0319169055565b6007546001600160a01b03163314610f735760405162461bcd60e51b815260040161081190612091565b60096109838282612114565b60606002805461072390612057565b600f5460ff1615610fe15760405162461bcd60e51b815260206004820152601760248201527f54686520636f6e747261637420697320706175736564210000000000000000006044820152606401610811565b600d5433600090815260106020526040902054610fff908390612219565b11156110395760405162461bcd60e51b81526020600482015260096024820152682a27a79026a0a72c9760b91b6044820152606401610811565b600e548161104660005490565b6110509190612219565b11156110895760405162461bcd60e51b815260206004820152600860248201526727279026a7a9229760c11b6044820152606401610811565b80600c546110979190612231565b3410156110d45760405162461bcd60e51b815260206004820152600b60248201526a26a7a9229026a7a722ac9760a91b6044820152606401610811565b33600090815260106020526040812080548392906110f3908490612219565b90915550610c0e905033826118ec565b336001600160a01b0383160361115b5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610811565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6007546001600160a01b031633146111f15760405162461bcd60e51b815260040161081190612091565b600c55565b611201848484611530565b61120d84848484611906565b6112295760405162461bcd60e51b815260040161081190612250565b50505050565b606061123c826000541190565b6112a05760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610811565b600f54610100900460ff16151560000361134657600b80546112c190612057565b80601f01602080910402602001604051908101604052809291908181526020018280546112ed90612057565b801561133a5780601f1061130f5761010080835404028352916020019161133a565b820191906000526020600020905b81548152906001019060200180831161131d57829003601f168201915b50505050509050919050565b6000611350611a08565b90506000815111611370576040518060200160405280600081525061139e565b8061137a84611a17565b600a60405160200161138e939291906122a3565b6040516020818303038152906040525b9392505050565b6007546001600160a01b031633146113cf5760405162461bcd60e51b815260040161081190612091565b600f80549115156101000261ff0019909216919091179055565b6007546001600160a01b031633146114135760405162461bcd60e51b815260040161081190612091565b6001600160a01b0381166114785760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610811565b6007546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600780546001600160a01b0319166001600160a01b0392909216919091179055565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061153b82611815565b80519091506000906001600160a01b0316336001600160a01b03161480611572575033611567846107a6565b6001600160a01b0316145b80611584575081516115849033610659565b9050806115ee5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610811565b846001600160a01b031682600001516001600160a01b0316146116625760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608401610811565b6001600160a01b0384166116c65760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610811565b6116d660008484600001516114d4565b6001600160a01b03858116600090815260046020908152604080832080546001600160801b03198082166001600160801b03928316600019018316179092558986168086528386208054938416938316600190810190931693909317909255888552600390935281842080546001600160e01b031916909117600160a01b4267ffffffffffffffff16021790559086018083529120549091166117cb5761177e816000541190565b156117cb578251600082815260036020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b6040805180820190915260008082526020820152611834826000541190565b6118935760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610811565b815b6000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff1691830191909152156118e2579392505050565b5060001901611895565b610983828260405180602001604052806000815250611b18565b60006001600160a01b0384163b156119fc57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061194a903390899088908890600401612343565b6020604051808303816000875af1925050508015611985575060408051601f3d908101601f1916820190925261198291810190612380565b60015b6119e2573d8080156119b3576040519150601f19603f3d011682016040523d82523d6000602084013e6119b8565b606091505b5080516000036119da5760405162461bcd60e51b815260040161081190612250565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a00565b5060015b949350505050565b60606009805461072390612057565b606081600003611a3e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611a685780611a5281612200565b9150611a619050600a836123b3565b9150611a42565b60008167ffffffffffffffff811115611a8357611a83611de3565b6040519080825280601f01601f191660200182016040528015611aad576020820181803683370190505b5090505b8415611a0057611ac26001836123c7565b9150611acf600a866123de565b611ada906030612219565b60f81b818381518110611aef57611aef6121d4565b60200101906001600160f81b031916908160001a905350611b11600a866123b3565b9450611ab1565b61094883838360016000546001600160a01b038516611b835760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610811565b83600003611be45760405162461bcd60e51b815260206004820152602860248201527f455243373231413a207175616e74697479206d75737420626520677265617465604482015267072207468616e20360c41b6064820152608401610811565b6001600160a01b03851660008181526004602090815260408083208054600160801b6001600160801b031982166001600160801b039283168c01831690811782900483168c01909216021790558483526003909152812080546001600160e01b031916909217600160a01b4267ffffffffffffffff16021790915581905b85811015611cdd5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48315611cd157611cb56000888488611906565b611cd15760405162461bcd60e51b815260040161081190612250565b60019182019101611c62565b5060005561180e565b6001600160e01b031981168114610c0e57600080fd5b600060208284031215611d0e57600080fd5b813561139e81611ce6565b60005b83811015611d34578181015183820152602001611d1c565b838111156112295750506000910152565b60008151808452611d5d816020860160208601611d19565b601f01601f19169290920160200192915050565b60208152600061139e6020830184611d45565b600060208284031215611d9657600080fd5b5035919050565b80356001600160a01b0381168114611db457600080fd5b919050565b60008060408385031215611dcc57600080fd5b611dd583611d9d565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611e1457611e14611de3565b604051601f8501601f19908116603f01168101908282118183101715611e3c57611e3c611de3565b81604052809350858152868686011115611e5557600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611e8157600080fd5b813567ffffffffffffffff811115611e9857600080fd5b8201601f81018413611ea957600080fd5b611a0084823560208401611df9565b80358015158114611db457600080fd5b600060208284031215611eda57600080fd5b61139e82611eb8565b600080600060608486031215611ef857600080fd5b611f0184611d9d565b9250611f0f60208501611d9d565b9150604084013590509250925092565b600060208284031215611f3157600080fd5b61139e82611d9d565b6020808252825182820181905260009190848201906040850190845b81811015611f7257835183529284019291840191600101611f56565b50909695505050505050565b60008060408385031215611f9157600080fd5b611f9a83611d9d565b9150611fa860208401611eb8565b90509250929050565b60008060008060808587031215611fc757600080fd5b611fd085611d9d565b9350611fde60208601611d9d565b925060408501359150606085013567ffffffffffffffff81111561200157600080fd5b8501601f8101871361201257600080fd5b61202187823560208401611df9565b91505092959194509250565b6000806040838503121561204057600080fd5b61204983611d9d565b9150611fa860208401611d9d565b600181811c9082168061206b57607f821691505b60208210810361208b57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b601f82111561094857600081815260208120601f850160051c810160208610156120ed5750805b601f850160051c820191505b8181101561210c578281556001016120f9565b505050505050565b815167ffffffffffffffff81111561212e5761212e611de3565b6121428161213c8454612057565b846120c6565b602080601f831160018114612177576000841561215f5750858301515b600019600386901b1c1916600185901b17855561210c565b600085815260208120601f198616915b828110156121a657888601518255948401946001909101908401612187565b50858210156121c45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201612212576122126121ea565b5060010190565b6000821982111561222c5761222c6121ea565b500190565b600081600019048311821515161561224b5761224b6121ea565b500290565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b6000845160206122b68285838a01611d19565b8551918401916122c98184848a01611d19565b85549201916000906122da81612057565b600182811680156122f2576001811461230757612333565b60ff1984168752821515830287019450612333565b896000528560002060005b8481101561232b57815489820152908301908701612312565b505082870194505b50929a9950505050505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061237690830184611d45565b9695505050505050565b60006020828403121561239257600080fd5b815161139e81611ce6565b634e487b7160e01b600052601260045260246000fd5b6000826123c2576123c261239d565b500490565b6000828210156123d9576123d96121ea565b500390565b6000826123ed576123ed61239d565b50069056fea2646970667358221220fa59b6802b99f09b772a43517eadf9366cad0846a7dc852ca81972a64120f7cc64736f6c634300080f0033697066733a2f2f516d64706e3570674739415167644756634836785a414e3373523332555934726576744c38587148465365726f442f68696464656e2e6a736f6e
Deployed Bytecode
0x60806040526004361061020f5760003560e01c80635c975abb11610118578063a0712d68116100a0578063c87b56dd1161006f578063c87b56dd146105e8578063d5abeb0114610608578063e0a808531461061e578063e985e9c51461063e578063f2fde38b1461068757600080fd5b8063a0712d6814610575578063a22cb46514610588578063a2b40d19146105a8578063b88d4fde146105c857600080fd5b80637ec4a659116100e75780637ec4a659146104df5780638da5cb5b146104ff57806395d89b411461051d5780639ec00c9514610532578063a035b1fe1461055f57600080fd5b80635c975abb146104705780636352211e1461048a57806370a08231146104aa578063715018a6146104ca57600080fd5b80632f745c591161019b578063453c23101161016a578063453c2310146103e65780634f6ccce7146103fc5780634fdd43cb1461041c578063518302271461043c5780635503a0e81461045b57600080fd5b80632f745c59146103645780633ccfd60b1461038457806342842e0e14610399578063438b6300146103b957600080fd5b806316ba10e0116101e257806316ba10e0146102c557806316c38b3c146102e557806318160ddd14610305578063228025e81461032457806323b872dd1461034457600080fd5b806301ffc9a71461021457806306fdde0314610249578063081812fc1461026b578063095ea7b3146102a3575b600080fd5b34801561022057600080fd5b5061023461022f366004611cfc565b6106a7565b60405190151581526020015b60405180910390f35b34801561025557600080fd5b5061025e610714565b6040516102409190611d71565b34801561027757600080fd5b5061028b610286366004611d84565b6107a6565b6040516001600160a01b039091168152602001610240565b3480156102af57600080fd5b506102c36102be366004611db9565b610836565b005b3480156102d157600080fd5b506102c36102e0366004611e6f565b61094d565b3480156102f157600080fd5b506102c3610300366004611ec8565b610987565b34801561031157600080fd5b506000545b604051908152602001610240565b34801561033057600080fd5b506102c361033f366004611d84565b6109c4565b34801561035057600080fd5b506102c361035f366004611ee3565b6109f3565b34801561037057600080fd5b5061031661037f366004611db9565b6109fe565b34801561039057600080fd5b506102c3610b59565b3480156103a557600080fd5b506102c36103b4366004611ee3565b610c11565b3480156103c557600080fd5b506103d96103d4366004611f1f565b610c2c565b6040516102409190611f3a565b3480156103f257600080fd5b50610316600d5481565b34801561040857600080fd5b50610316610417366004611d84565b610d0c565b34801561042857600080fd5b506102c3610437366004611e6f565b610d6e565b34801561044857600080fd5b50600f5461023490610100900460ff1681565b34801561046757600080fd5b5061025e610da4565b34801561047c57600080fd5b50600f546102349060ff1681565b34801561049657600080fd5b5061028b6104a5366004611d84565b610e32565b3480156104b657600080fd5b506103166104c5366004611f1f565b610e44565b3480156104d657600080fd5b506102c3610ed5565b3480156104eb57600080fd5b506102c36104fa366004611e6f565b610f49565b34801561050b57600080fd5b506007546001600160a01b031661028b565b34801561052957600080fd5b5061025e610f7f565b34801561053e57600080fd5b5061031661054d366004611f1f565b60106020526000908152604090205481565b34801561056b57600080fd5b50610316600c5481565b6102c3610583366004611d84565b610f8e565b34801561059457600080fd5b506102c36105a3366004611f7e565b611103565b3480156105b457600080fd5b506102c36105c3366004611d84565b6111c7565b3480156105d457600080fd5b506102c36105e3366004611fb1565b6111f6565b3480156105f457600080fd5b5061025e610603366004611d84565b61122f565b34801561061457600080fd5b50610316600e5481565b34801561062a57600080fd5b506102c3610639366004611ec8565b6113a5565b34801561064a57600080fd5b5061023461065936600461202d565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561069357600080fd5b506102c36106a2366004611f1f565b6113e9565b60006001600160e01b031982166380ac58cd60e01b14806106d857506001600160e01b03198216635b5e139f60e01b145b806106f357506001600160e01b0319821663780e9d6360e01b145b8061070e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606001805461072390612057565b80601f016020809104026020016040519081016040528092919081815260200182805461074f90612057565b801561079c5780601f106107715761010080835404028352916020019161079c565b820191906000526020600020905b81548152906001019060200180831161077f57829003601f168201915b5050505050905090565b60006107b3826000541190565b61081a5760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061084182610e32565b9050806001600160a01b0316836001600160a01b0316036108af5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610811565b336001600160a01b03821614806108cb57506108cb8133610659565b61093d5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610811565b6109488383836114d4565b505050565b6007546001600160a01b031633146109775760405162461bcd60e51b815260040161081190612091565b600a6109838282612114565b5050565b6007546001600160a01b031633146109b15760405162461bcd60e51b815260040161081190612091565b600f805460ff1916911515919091179055565b6007546001600160a01b031633146109ee5760405162461bcd60e51b815260040161081190612091565b600e55565b610948838383611530565b6000610a0983610e44565b8210610a625760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610811565b600080549080805b83811015610af9576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215610abd57805192505b876001600160a01b0316836001600160a01b031603610af057868403610ae95750935061070e92505050565b6001909301925b50600101610a6a565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608401610811565b6007546001600160a01b03163314610b835760405162461bcd60e51b815260040161081190612091565b604051600090339047908381818185875af1925050503d8060008114610bc5576040519150601f19603f3d011682016040523d82523d6000602084013e610bca565b606091505b5050905080610c0e5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610811565b50565b610948838383604051806020016040528060008152506111f6565b60606000610c3983610e44565b905060008167ffffffffffffffff811115610c5657610c56611de3565b604051908082528060200260200182016040528015610c7f578160200160208202803683370190505b509050600160005b8381108015610c985750600e548211155b15610d02576000610ca883610e32565b9050866001600160a01b0316816001600160a01b031603610cef5782848381518110610cd657610cd66121d4565b602090810291909101015281610ceb81612200565b9250505b82610cf981612200565b93505050610c87565b5090949350505050565b600080548210610d6a5760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610811565b5090565b6007546001600160a01b03163314610d985760405162461bcd60e51b815260040161081190612091565b600b6109838282612114565b600a8054610db190612057565b80601f0160208091040260200160405190810160405280929190818152602001828054610ddd90612057565b8015610e2a5780601f10610dff57610100808354040283529160200191610e2a565b820191906000526020600020905b815481529060010190602001808311610e0d57829003601f168201915b505050505081565b6000610e3d82611815565b5192915050565b60006001600160a01b038216610eb05760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610811565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6007546001600160a01b03163314610eff5760405162461bcd60e51b815260040161081190612091565b6007546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600780546001600160a01b0319169055565b6007546001600160a01b03163314610f735760405162461bcd60e51b815260040161081190612091565b60096109838282612114565b60606002805461072390612057565b600f5460ff1615610fe15760405162461bcd60e51b815260206004820152601760248201527f54686520636f6e747261637420697320706175736564210000000000000000006044820152606401610811565b600d5433600090815260106020526040902054610fff908390612219565b11156110395760405162461bcd60e51b81526020600482015260096024820152682a27a79026a0a72c9760b91b6044820152606401610811565b600e548161104660005490565b6110509190612219565b11156110895760405162461bcd60e51b815260206004820152600860248201526727279026a7a9229760c11b6044820152606401610811565b80600c546110979190612231565b3410156110d45760405162461bcd60e51b815260206004820152600b60248201526a26a7a9229026a7a722ac9760a91b6044820152606401610811565b33600090815260106020526040812080548392906110f3908490612219565b90915550610c0e905033826118ec565b336001600160a01b0383160361115b5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610811565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6007546001600160a01b031633146111f15760405162461bcd60e51b815260040161081190612091565b600c55565b611201848484611530565b61120d84848484611906565b6112295760405162461bcd60e51b815260040161081190612250565b50505050565b606061123c826000541190565b6112a05760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610811565b600f54610100900460ff16151560000361134657600b80546112c190612057565b80601f01602080910402602001604051908101604052809291908181526020018280546112ed90612057565b801561133a5780601f1061130f5761010080835404028352916020019161133a565b820191906000526020600020905b81548152906001019060200180831161131d57829003601f168201915b50505050509050919050565b6000611350611a08565b90506000815111611370576040518060200160405280600081525061139e565b8061137a84611a17565b600a60405160200161138e939291906122a3565b6040516020818303038152906040525b9392505050565b6007546001600160a01b031633146113cf5760405162461bcd60e51b815260040161081190612091565b600f80549115156101000261ff0019909216919091179055565b6007546001600160a01b031633146114135760405162461bcd60e51b815260040161081190612091565b6001600160a01b0381166114785760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610811565b6007546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600780546001600160a01b0319166001600160a01b0392909216919091179055565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061153b82611815565b80519091506000906001600160a01b0316336001600160a01b03161480611572575033611567846107a6565b6001600160a01b0316145b80611584575081516115849033610659565b9050806115ee5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610811565b846001600160a01b031682600001516001600160a01b0316146116625760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608401610811565b6001600160a01b0384166116c65760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610811565b6116d660008484600001516114d4565b6001600160a01b03858116600090815260046020908152604080832080546001600160801b03198082166001600160801b03928316600019018316179092558986168086528386208054938416938316600190810190931693909317909255888552600390935281842080546001600160e01b031916909117600160a01b4267ffffffffffffffff16021790559086018083529120549091166117cb5761177e816000541190565b156117cb578251600082815260036020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b6040805180820190915260008082526020820152611834826000541190565b6118935760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610811565b815b6000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff1691830191909152156118e2579392505050565b5060001901611895565b610983828260405180602001604052806000815250611b18565b60006001600160a01b0384163b156119fc57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061194a903390899088908890600401612343565b6020604051808303816000875af1925050508015611985575060408051601f3d908101601f1916820190925261198291810190612380565b60015b6119e2573d8080156119b3576040519150601f19603f3d011682016040523d82523d6000602084013e6119b8565b606091505b5080516000036119da5760405162461bcd60e51b815260040161081190612250565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a00565b5060015b949350505050565b60606009805461072390612057565b606081600003611a3e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611a685780611a5281612200565b9150611a619050600a836123b3565b9150611a42565b60008167ffffffffffffffff811115611a8357611a83611de3565b6040519080825280601f01601f191660200182016040528015611aad576020820181803683370190505b5090505b8415611a0057611ac26001836123c7565b9150611acf600a866123de565b611ada906030612219565b60f81b818381518110611aef57611aef6121d4565b60200101906001600160f81b031916908160001a905350611b11600a866123b3565b9450611ab1565b61094883838360016000546001600160a01b038516611b835760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610811565b83600003611be45760405162461bcd60e51b815260206004820152602860248201527f455243373231413a207175616e74697479206d75737420626520677265617465604482015267072207468616e20360c41b6064820152608401610811565b6001600160a01b03851660008181526004602090815260408083208054600160801b6001600160801b031982166001600160801b039283168c01831690811782900483168c01909216021790558483526003909152812080546001600160e01b031916909217600160a01b4267ffffffffffffffff16021790915581905b85811015611cdd5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48315611cd157611cb56000888488611906565b611cd15760405162461bcd60e51b815260040161081190612250565b60019182019101611c62565b5060005561180e565b6001600160e01b031981168114610c0e57600080fd5b600060208284031215611d0e57600080fd5b813561139e81611ce6565b60005b83811015611d34578181015183820152602001611d1c565b838111156112295750506000910152565b60008151808452611d5d816020860160208601611d19565b601f01601f19169290920160200192915050565b60208152600061139e6020830184611d45565b600060208284031215611d9657600080fd5b5035919050565b80356001600160a01b0381168114611db457600080fd5b919050565b60008060408385031215611dcc57600080fd5b611dd583611d9d565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611e1457611e14611de3565b604051601f8501601f19908116603f01168101908282118183101715611e3c57611e3c611de3565b81604052809350858152868686011115611e5557600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611e8157600080fd5b813567ffffffffffffffff811115611e9857600080fd5b8201601f81018413611ea957600080fd5b611a0084823560208401611df9565b80358015158114611db457600080fd5b600060208284031215611eda57600080fd5b61139e82611eb8565b600080600060608486031215611ef857600080fd5b611f0184611d9d565b9250611f0f60208501611d9d565b9150604084013590509250925092565b600060208284031215611f3157600080fd5b61139e82611d9d565b6020808252825182820181905260009190848201906040850190845b81811015611f7257835183529284019291840191600101611f56565b50909695505050505050565b60008060408385031215611f9157600080fd5b611f9a83611d9d565b9150611fa860208401611eb8565b90509250929050565b60008060008060808587031215611fc757600080fd5b611fd085611d9d565b9350611fde60208601611d9d565b925060408501359150606085013567ffffffffffffffff81111561200157600080fd5b8501601f8101871361201257600080fd5b61202187823560208401611df9565b91505092959194509250565b6000806040838503121561204057600080fd5b61204983611d9d565b9150611fa860208401611d9d565b600181811c9082168061206b57607f821691505b60208210810361208b57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b601f82111561094857600081815260208120601f850160051c810160208610156120ed5750805b601f850160051c820191505b8181101561210c578281556001016120f9565b505050505050565b815167ffffffffffffffff81111561212e5761212e611de3565b6121428161213c8454612057565b846120c6565b602080601f831160018114612177576000841561215f5750858301515b600019600386901b1c1916600185901b17855561210c565b600085815260208120601f198616915b828110156121a657888601518255948401946001909101908401612187565b50858210156121c45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201612212576122126121ea565b5060010190565b6000821982111561222c5761222c6121ea565b500190565b600081600019048311821515161561224b5761224b6121ea565b500290565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b6000845160206122b68285838a01611d19565b8551918401916122c98184848a01611d19565b85549201916000906122da81612057565b600182811680156122f2576001811461230757612333565b60ff1984168752821515830287019450612333565b896000528560002060005b8481101561232b57815489820152908301908701612312565b505082870194505b50929a9950505050505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061237690830184611d45565b9695505050505050565b60006020828403121561239257600080fd5b815161139e81611ce6565b634e487b7160e01b600052601260045260246000fd5b6000826123c2576123c261239d565b500490565b6000828210156123d9576123d96121ea565b500390565b6000826123ed576123ed61239d565b50069056fea2646970667358221220fa59b6802b99f09b772a43517eadf9366cad0846a7dc852ca81972a64120f7cc64736f6c634300080f0033
Deployed Bytecode Sourcemap
65008:3355:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51846:372;;;;;;;;;;-1:-1:-1;51846:372:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;51846:372:0;;;;;;;;53732:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;55303:214::-;;;;;;;;;;-1:-1:-1;55303:214:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1692:32:1;;;1674:51;;1662:2;1647:18;55303:214:0;1528:203:1;54824:413:0;;;;;;;;;;-1:-1:-1;54824:413:0;;;;;:::i;:::-;;:::i;:::-;;68150:100;;;;;;;;;;-1:-1:-1;68150:100:0;;;;;:::i;:::-;;:::i;67630:77::-;;;;;;;;;;-1:-1:-1;67630:77:0;;;;;:::i;:::-;;:::i;50095:108::-;;;;;;;;;;-1:-1:-1;50156:7:0;50183:12;50095:108;;;3894:25:1;;;3882:2;3867:18;50095:108:0;3748:177:1;67802:94:0;;;;;;;;;;-1:-1:-1;67802:94:0;;;;;:::i;:::-;;:::i;56179:162::-;;;;;;;;;;-1:-1:-1;56179:162:0;;;;;:::i;:::-;;:::i;50767:1007::-;;;;;;;;;;-1:-1:-1;50767:1007:0;;;;;:::i;:::-;;:::i;65776:182::-;;;;;;;;;;;;;:::i;56412:177::-;;;;;;;;;;-1:-1:-1;56412:177:0;;;;;:::i;:::-;;:::i;66423:703::-;;;;;;;;;;-1:-1:-1;66423:703:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;65464:32::-;;;;;;;;;;;;;;;;50280:187;;;;;;;;;;-1:-1:-1;50280:187:0;;;;;:::i;:::-;;:::i;67902:132::-;;;;;;;;;;-1:-1:-1;67902:132:0;;;;;:::i;:::-;;:::i;65580:28::-;;;;;;;;;;-1:-1:-1;65580:28:0;;;;;;;;;;;65170:33;;;;;;;;;;;;;:::i;65548:25::-;;;;;;;;;;-1:-1:-1;65548:25:0;;;;;;;;53541:124;;;;;;;;;;-1:-1:-1;53541:124:0;;;;;:::i;:::-;;:::i;52282:221::-;;;;;;;;;;-1:-1:-1;52282:221:0;;;;;:::i;:::-;;:::i;17385:148::-;;;;;;;;;;;;;:::i;68042:100::-;;;;;;;;;;-1:-1:-1;68042:100:0;;;;;:::i;:::-;;:::i;16734:87::-;;;;;;;;;;-1:-1:-1;16807:6:0;;-1:-1:-1;;;;;16807:6:0;16734:87;;53901:104;;;;;;;;;;;;;:::i;65617:47::-;;;;;;;;;;-1:-1:-1;65617:47:0;;;;;:::i;:::-;;;;;;;;;;;;;;65427:30;;;;;;;;;;;;;;;;65966:449;;;;;;:::i;:::-;;:::i;55589:288::-;;;;;;;;;;-1:-1:-1;55589:288:0;;;;;:::i;:::-;;:::i;65673:95::-;;;;;;;;;;-1:-1:-1;65673:95:0;;;;;:::i;:::-;;:::i;56660:355::-;;;;;;;;;;-1:-1:-1;56660:355:0;;;;;:::i;:::-;;:::i;67134:490::-;;;;;;;;;;-1:-1:-1;67134:490:0;;;;;:::i;:::-;;:::i;65503:31::-;;;;;;;;;;;;;;;;67713:81;;;;;;;;;;-1:-1:-1;67713:81:0;;;;;:::i;:::-;;:::i;55948:164::-;;;;;;;;;;-1:-1:-1;55948:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;56069:25:0;;;56045:4;56069:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;55948:164;17688:244;;;;;;;;;;-1:-1:-1;17688:244:0;;;;;:::i;:::-;;:::i;51846:372::-;51948:4;-1:-1:-1;;;;;;51985:40:0;;-1:-1:-1;;;51985:40:0;;:105;;-1:-1:-1;;;;;;;52042:48:0;;-1:-1:-1;;;52042:48:0;51985:105;:172;;;-1:-1:-1;;;;;;;52107:50:0;;-1:-1:-1;;;52107:50:0;51985:172;:225;;;-1:-1:-1;;;;;;;;;;25117:40:0;;;52174:36;51965:245;51846:372;-1:-1:-1;;51846:372:0:o;53732:100::-;53786:13;53819:5;53812:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53732:100;:::o;55303:214::-;55371:7;55399:16;55407:7;57327:4;57361:12;-1:-1:-1;57351:22:0;57270:111;55399:16;55391:74;;;;-1:-1:-1;;;55391:74:0;;6874:2:1;55391:74:0;;;6856:21:1;6913:2;6893:18;;;6886:30;6952:34;6932:18;;;6925:62;-1:-1:-1;;;7003:18:1;;;6996:43;7056:19;;55391:74:0;;;;;;;;;-1:-1:-1;55485:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;55485:24:0;;55303:214::o;54824:413::-;54897:13;54913:24;54929:7;54913:15;:24::i;:::-;54897:40;;54962:5;-1:-1:-1;;;;;54956:11:0;:2;-1:-1:-1;;;;;54956:11:0;;54948:58;;;;-1:-1:-1;;;54948:58:0;;7288:2:1;54948:58:0;;;7270:21:1;7327:2;7307:18;;;7300:30;7366:34;7346:18;;;7339:62;-1:-1:-1;;;7417:18:1;;;7410:32;7459:19;;54948:58:0;7086:398:1;54948:58:0;11840:10;-1:-1:-1;;;;;55041:21:0;;;;:62;;-1:-1:-1;55066:37:0;55083:5;11840:10;55948:164;:::i;55066:37::-;55019:169;;;;-1:-1:-1;;;55019:169:0;;7691:2:1;55019:169:0;;;7673:21:1;7730:2;7710:18;;;7703:30;7769:34;7749:18;;;7742:62;7840:27;7820:18;;;7813:55;7885:19;;55019:169:0;7489:421:1;55019:169:0;55201:28;55210:2;55214:7;55223:5;55201:8;:28::i;:::-;54886:351;54824:413;;:::o;68150:100::-;16807:6;;-1:-1:-1;;;;;16807:6:0;11840:10;16954:23;16946:68;;;;-1:-1:-1;;;16946:68:0;;;;;;;:::i;:::-;68222:9:::1;:22;68234:10:::0;68222:9;:22:::1;:::i;:::-;;68150:100:::0;:::o;67630:77::-;16807:6;;-1:-1:-1;;;;;16807:6:0;11840:10;16954:23;16946:68;;;;-1:-1:-1;;;16946:68:0;;;;;;;:::i;:::-;67686:6:::1;:15:::0;;-1:-1:-1;;67686:15:0::1;::::0;::::1;;::::0;;;::::1;::::0;;67630:77::o;67802:94::-;16807:6;;-1:-1:-1;;;;;16807:6:0;11840:10;16954:23;16946:68;;;;-1:-1:-1;;;16946:68:0;;;;;;;:::i;:::-;67868:9:::1;:22:::0;67802:94::o;56179:162::-;56305:28;56315:4;56321:2;56325:7;56305:9;:28::i;50767:1007::-;50856:7;50892:16;50902:5;50892:9;:16::i;:::-;50884:5;:24;50876:71;;;;-1:-1:-1;;;50876:71:0;;10682:2:1;50876:71:0;;;10664:21:1;10721:2;10701:18;;;10694:30;10760:34;10740:18;;;10733:62;-1:-1:-1;;;10811:18:1;;;10804:32;10853:19;;50876:71:0;10480:398:1;50876:71:0;50958:22;50183:12;;;50958:22;;51221:466;51241:14;51237:1;:18;51221:466;;;51281:31;51315:14;;;:11;:14;;;;;;;;;51281:48;;;;;;;;;-1:-1:-1;;;;;51281:48:0;;;;;-1:-1:-1;;;51281:48:0;;;;;;;;;;;;51352:28;51348:111;;51425:14;;;-1:-1:-1;51348:111:0;51502:5;-1:-1:-1;;;;;51481:26:0;:17;-1:-1:-1;;;;;51481:26:0;;51477:195;;51551:5;51536:11;:20;51532:85;;-1:-1:-1;51592:1:0;-1:-1:-1;51585:8:0;;-1:-1:-1;;;51585:8:0;51532:85;51639:13;;;;;51477:195;-1:-1:-1;51257:3:0;;51221:466;;;-1:-1:-1;51710:56:0;;-1:-1:-1;;;51710:56:0;;11085:2:1;51710:56:0;;;11067:21:1;11124:2;11104:18;;;11097:30;11163:34;11143:18;;;11136:62;-1:-1:-1;;;11214:18:1;;;11207:44;11268:19;;51710:56:0;10883:410:1;65776:182:0;16807:6;;-1:-1:-1;;;;;16807:6:0;11840:10;16954:23;16946:68;;;;-1:-1:-1;;;16946:68:0;;;;;;;:::i;:::-;65845:58:::1;::::0;65827:12:::1;::::0;65853:10:::1;::::0;65877:21:::1;::::0;65827:12;65845:58;65827:12;65845:58;65877:21;65853:10;65845:58:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;65826:77;;;65922:7;65914:36;;;::::0;-1:-1:-1;;;65914:36:0;;11710:2:1;65914:36:0::1;::::0;::::1;11692:21:1::0;11749:2;11729:18;;;11722:30;-1:-1:-1;;;11768:18:1;;;11761:46;11824:18;;65914:36:0::1;11508:340:1::0;65914:36:0::1;65815:143;65776:182::o:0;56412:177::-;56542:39;56559:4;56565:2;56569:7;56542:39;;;;;;;;;;;;:16;:39::i;66423:703::-;66510:16;66544:23;66570:17;66580:6;66570:9;:17::i;:::-;66544:43;;66598:30;66645:15;66631:30;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;66631:30:0;-1:-1:-1;66598:63:0;-1:-1:-1;66697:1:0;66672:22;66749:339;66774:15;66756;:33;:64;;;;;66811:9;;66793:14;:27;;66756:64;66749:339;;;66833:25;66861:23;66869:14;66861:7;:23::i;:::-;66833:51;;66924:6;-1:-1:-1;;;;;66903:27:0;:17;-1:-1:-1;;;;;66903:27:0;;66899:151;;66984:14;66951:13;66965:15;66951:30;;;;;;;;:::i;:::-;;;;;;;;;;:47;67017:17;;;;:::i;:::-;;;;66899:151;67060:16;;;;:::i;:::-;;;;66822:266;66749:339;;;-1:-1:-1;67105:13:0;;66423:703;-1:-1:-1;;;;66423:703:0:o;50280:187::-;50347:7;50183:12;;50375:5;:21;50367:69;;;;-1:-1:-1;;;50367:69:0;;12459:2:1;50367:69:0;;;12441:21:1;12498:2;12478:18;;;12471:30;12537:34;12517:18;;;12510:62;-1:-1:-1;;;12588:18:1;;;12581:33;12631:19;;50367:69:0;12257:399:1;50367:69:0;-1:-1:-1;50454:5:0;50280:187::o;67902:132::-;16807:6;;-1:-1:-1;;;;;16807:6:0;11840:10;16954:23;16946:68;;;;-1:-1:-1;;;16946:68:0;;;;;;;:::i;:::-;67990:17:::1;:38;68010:18:::0;67990:17;:38:::1;:::i;65170:33::-:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;53541:124::-;53605:7;53632:20;53644:7;53632:11;:20::i;:::-;:25;;53541:124;-1:-1:-1;;53541:124:0:o;52282:221::-;52346:7;-1:-1:-1;;;;;52374:19:0;;52366:75;;;;-1:-1:-1;;;52366:75:0;;12863:2:1;52366:75:0;;;12845:21:1;12902:2;12882:18;;;12875:30;12941:34;12921:18;;;12914:62;-1:-1:-1;;;12992:18:1;;;12985:41;13043:19;;52366:75:0;12661:407:1;52366:75:0;-1:-1:-1;;;;;;52467:19:0;;;;;:12;:19;;;;;:27;-1:-1:-1;;;;;52467:27:0;;52282:221::o;17385:148::-;16807:6;;-1:-1:-1;;;;;16807:6:0;11840:10;16954:23;16946:68;;;;-1:-1:-1;;;16946:68:0;;;;;;;:::i;:::-;17476:6:::1;::::0;17455:40:::1;::::0;17492:1:::1;::::0;-1:-1:-1;;;;;17476:6:0::1;::::0;17455:40:::1;::::0;17492:1;;17455:40:::1;17506:6;:19:::0;;-1:-1:-1;;;;;;17506:19:0::1;::::0;;17385:148::o;68042:100::-;16807:6;;-1:-1:-1;;;;;16807:6:0;11840:10;16954:23;16946:68;;;;-1:-1:-1;;;16946:68:0;;;;;;;:::i;:::-;68114:9:::1;:22;68126:10:::0;68114:9;:22:::1;:::i;53901:104::-:0;53957:13;53990:7;53983:14;;;;;:::i;65966:449::-;66035:6;;;;66034:7;66026:43;;;;-1:-1:-1;;;66026:43:0;;13275:2:1;66026:43:0;;;13257:21:1;13314:2;13294:18;;;13287:30;13353:25;13333:18;;;13326:53;13396:18;;66026:43:0;13073:347:1;66026:43:0;66132:12;;66104:10;66088:27;;;;:15;:27;;;;;;:40;;66118:10;;66088:40;:::i;:::-;:56;;66080:78;;;;-1:-1:-1;;;66080:78:0;;13760:2:1;66080:78:0;;;13742:21:1;13799:1;13779:18;;;13772:29;-1:-1:-1;;;13817:18:1;;;13810:39;13866:18;;66080:78:0;13558:332:1;66080:78:0;66207:9;;66193:10;66177:13;50156:7;50183:12;;50095:108;66177:13;:26;;;;:::i;:::-;:39;;66169:60;;;;-1:-1:-1;;;66169:60:0;;14097:2:1;66169:60:0;;;14079:21:1;14136:1;14116:18;;;14109:29;-1:-1:-1;;;14154:18:1;;;14147:38;14202:18;;66169:60:0;13895:331:1;66169:60:0;66272:10;66264:5;;:18;;;;:::i;:::-;66250:9;:33;;66242:57;;;;-1:-1:-1;;;66242:57:0;;14606:2:1;66242:57:0;;;14588:21:1;14645:2;14625:18;;;14618:30;-1:-1:-1;;;14664:18:1;;;14657:41;14715:18;;66242:57:0;14404:335:1;66242:57:0;66336:10;66320:27;;;;:15;:27;;;;;:41;;66351:10;;66320:27;:41;;66351:10;;66320:41;:::i;:::-;;;;-1:-1:-1;66374:33:0;;-1:-1:-1;66384:10:0;66396;66374:9;:33::i;55589:288::-;11840:10;-1:-1:-1;;;;;55684:24:0;;;55676:63;;;;-1:-1:-1;;;55676:63:0;;14946:2:1;55676:63:0;;;14928:21:1;14985:2;14965:18;;;14958:30;15024:28;15004:18;;;14997:56;15070:18;;55676:63:0;14744:350:1;55676:63:0;11840:10;55752:32;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;55752:42:0;;;;;;;;;;;;:53;;-1:-1:-1;;55752:53:0;;;;;;;;;;55821:48;;540:41:1;;;55752:42:0;;11840:10;55821:48;;513:18:1;55821:48:0;;;;;;;55589:288;;:::o;65673:95::-;16807:6;;-1:-1:-1;;;;;16807:6:0;11840:10;16954:23;16946:68;;;;-1:-1:-1;;;16946:68:0;;;;;;;:::i;:::-;65743:5:::1;:17:::0;65673:95::o;56660:355::-;56819:28;56829:4;56835:2;56839:7;56819:9;:28::i;:::-;56880:48;56903:4;56909:2;56913:7;56922:5;56880:22;:48::i;:::-;56858:149;;;;-1:-1:-1;;;56858:149:0;;;;;;;:::i;:::-;56660:355;;;;:::o;67134:490::-;67233:13;67274:17;67282:8;57327:4;57361:12;-1:-1:-1;57351:22:0;57270:111;67274:17;67258:98;;;;-1:-1:-1;;;67258:98:0;;15721:2:1;67258:98:0;;;15703:21:1;15760:2;15740:18;;;15733:30;15799:34;15779:18;;;15772:62;-1:-1:-1;;;15850:18:1;;;15843:45;15905:19;;67258:98:0;15519:411:1;67258:98:0;67367:8;;;;;;;:17;;67379:5;67367:17;67363:64;;67402:17;67395:24;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67134:490;;;:::o;67363:64::-;67433:28;67464:10;:8;:10::i;:::-;67433:41;;67519:1;67494:14;67488:28;:32;:130;;;;;;;;;;;;;;;;;67556:14;67572:19;:8;:17;:19::i;:::-;67593:9;67539:64;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;67488:130;67481:137;67134:490;-1:-1:-1;;;67134:490:0:o;67713:81::-;16807:6;;-1:-1:-1;;;;;16807:6:0;11840:10;16954:23;16946:68;;;;-1:-1:-1;;;16946:68:0;;;;;;;:::i;:::-;67771:8:::1;:17:::0;;;::::1;;;;-1:-1:-1::0;;67771:17:0;;::::1;::::0;;;::::1;::::0;;67713:81::o;17688:244::-;16807:6;;-1:-1:-1;;;;;16807:6:0;11840:10;16954:23;16946:68;;;;-1:-1:-1;;;16946:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;17777:22:0;::::1;17769:73;;;::::0;-1:-1:-1;;;17769:73:0;;17372:2:1;17769:73:0::1;::::0;::::1;17354:21:1::0;17411:2;17391:18;;;17384:30;17450:34;17430:18;;;17423:62;-1:-1:-1;;;17501:18:1;;;17494:36;17547:19;;17769:73:0::1;17170:402:1::0;17769:73:0::1;17879:6;::::0;17858:38:::1;::::0;-1:-1:-1;;;;;17858:38:0;;::::1;::::0;17879:6:::1;::::0;17858:38:::1;::::0;17879:6:::1;::::0;17858:38:::1;17907:6;:17:::0;;-1:-1:-1;;;;;;17907:17:0::1;-1:-1:-1::0;;;;;17907:17:0;;;::::1;::::0;;;::::1;::::0;;17688:244::o;62190:196::-;62305:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;62305:29:0;-1:-1:-1;;;;;62305:29:0;;;;;;;;;62350:28;;62305:24;;62350:28;;;;;;;62190:196;;;:::o;60070:2002::-;60185:35;60223:20;60235:7;60223:11;:20::i;:::-;60298:18;;60185:58;;-1:-1:-1;60256:22:0;;-1:-1:-1;;;;;60282:34:0;11840:10;-1:-1:-1;;;;;60282:34:0;;:87;;;-1:-1:-1;11840:10:0;60333:20;60345:7;60333:11;:20::i;:::-;-1:-1:-1;;;;;60333:36:0;;60282:87;:154;;;-1:-1:-1;60403:18:0;;60386:50;;11840:10;55948:164;:::i;60386:50::-;60256:181;;60458:17;60450:80;;;;-1:-1:-1;;;60450:80:0;;17779:2:1;60450:80:0;;;17761:21:1;17818:2;17798:18;;;17791:30;17857:34;17837:18;;;17830:62;-1:-1:-1;;;17908:18:1;;;17901:48;17966:19;;60450:80:0;17577:414:1;60450:80:0;60573:4;-1:-1:-1;;;;;60551:26:0;:13;:18;;;-1:-1:-1;;;;;60551:26:0;;60543:77;;;;-1:-1:-1;;;60543:77:0;;18198:2:1;60543:77:0;;;18180:21:1;18237:2;18217:18;;;18210:30;18276:34;18256:18;;;18249:62;-1:-1:-1;;;18327:18:1;;;18320:36;18373:19;;60543:77:0;17996:402:1;60543:77:0;-1:-1:-1;;;;;60639:16:0;;60631:66;;;;-1:-1:-1;;;60631:66:0;;18605:2:1;60631:66:0;;;18587:21:1;18644:2;18624:18;;;18617:30;18683:34;18663:18;;;18656:62;-1:-1:-1;;;18734:18:1;;;18727:35;18779:19;;60631:66:0;18403:401:1;60631:66:0;60818:49;60835:1;60839:7;60848:13;:18;;;60818:8;:49::i;:::-;-1:-1:-1;;;;;61163:18:0;;;;;;;:12;:18;;;;;;;;:31;;-1:-1:-1;;;;;;61163:31:0;;;-1:-1:-1;;;;;61163:31:0;;;-1:-1:-1;;61163:31:0;;;;;;;61209:16;;;;;;;;;:29;;;;;;;;-1:-1:-1;61209:29:0;;;;;;;;;;;;;61255:20;;;:11;:20;;;;;;:30;;-1:-1:-1;;;;;;61300:61:0;;;;-1:-1:-1;;;61345:15:0;61300:61;;;;;;61635:11;;;61665:24;;;;;:29;61635:11;;61665:29;61661:295;;61733:20;61741:11;57327:4;57361:12;-1:-1:-1;57351:22:0;57270:111;61733:20;61729:212;;;61810:18;;;61778:24;;;:11;:24;;;;;;;;:50;;61893:28;;;;61851:70;;-1:-1:-1;;;61851:70:0;-1:-1:-1;;;;;;61851:70:0;;;-1:-1:-1;;;;;61778:50:0;;;61851:70;;;;;;;61729:212;61138:829;62003:7;61999:2;-1:-1:-1;;;;;61984:27:0;61993:4;-1:-1:-1;;;;;61984:27:0;;;;;;;;;;;62022:42;60174:1898;;60070:2002;;;:::o;52942:537::-;-1:-1:-1;;;;;;;;;;;;;;;;;53045:16:0;53053:7;57327:4;57361:12;-1:-1:-1;57351:22:0;57270:111;53045:16;53037:71;;;;-1:-1:-1;;;53037:71:0;;19011:2:1;53037:71:0;;;18993:21:1;19050:2;19030:18;;;19023:30;19089:34;19069:18;;;19062:62;-1:-1:-1;;;19140:18:1;;;19133:40;19190:19;;53037:71:0;18809:406:1;53037:71:0;53166:7;53146:245;53213:31;53247:17;;;:11;:17;;;;;;;;;53213:51;;;;;;;;;-1:-1:-1;;;;;53213:51:0;;;;;-1:-1:-1;;;53213:51:0;;;;;;;;;;;;53287:28;53283:93;;53347:9;52942:537;-1:-1:-1;;;52942:537:0:o;53283:93::-;-1:-1:-1;;;53186:6:0;53146:245;;57389:104;57458:27;57468:2;57472:8;57458:27;;;;;;;;;;;;:9;:27::i;62951:804::-;63106:4;-1:-1:-1;;;;;63127:13:0;;1436:19;:23;63123:625;;63163:72;;-1:-1:-1;;;63163:72:0;;-1:-1:-1;;;;;63163:36:0;;;;;:72;;11840:10;;63214:4;;63220:7;;63229:5;;63163:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;63163:72:0;;;;;;;;-1:-1:-1;;63163:72:0;;;;;;;;;;;;:::i;:::-;;;63159:534;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63409:6;:13;63426:1;63409:18;63405:273;;63452:61;;-1:-1:-1;;;63452:61:0;;;;;;;:::i;63405:273::-;63628:6;63622:13;63613:6;63609:2;63605:15;63598:38;63159:534;-1:-1:-1;;;;;;63286:55:0;-1:-1:-1;;;63286:55:0;;-1:-1:-1;63279:62:0;;63123:625;-1:-1:-1;63732:4:0;63123:625;62951:804;;;;;;:::o;68256:104::-;68316:13;68345:9;68338:16;;;;;:::i;12443:723::-;12499:13;12720:5;12729:1;12720:10;12716:53;;-1:-1:-1;;12747:10:0;;;;;;;;;;;;-1:-1:-1;;;12747:10:0;;;;;12443:723::o;12716:53::-;12794:5;12779:12;12835:78;12842:9;;12835:78;;12868:8;;;;:::i;:::-;;-1:-1:-1;12891:10:0;;-1:-1:-1;12899:2:0;12891:10;;:::i;:::-;;;12835:78;;;12923:19;12955:6;12945:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12945:17:0;;12923:39;;12973:154;12980:10;;12973:154;;13007:11;13017:1;13007:11;;:::i;:::-;;-1:-1:-1;13076:10:0;13084:2;13076:5;:10;:::i;:::-;13063:24;;:2;:24;:::i;:::-;13050:39;;13033:6;13040;13033:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;13033:56:0;;;;;;;;-1:-1:-1;13104:11:0;13113:2;13104:11;;:::i;:::-;;;12973:154;;57856:163;57979:32;57985:2;57989:8;57999:5;58006:4;58417:20;58440:12;-1:-1:-1;;;;;58471:16:0;;58463:62;;;;-1:-1:-1;;;58463:62:0;;21090:2:1;58463:62:0;;;21072:21:1;21129:2;21109:18;;;21102:30;21168:34;21148:18;;;21141:62;-1:-1:-1;;;21219:18:1;;;21212:31;21260:19;;58463:62:0;20888:397:1;58463:62:0;58544:8;58556:1;58544:13;58536:66;;;;-1:-1:-1;;;58536:66:0;;21492:2:1;58536:66:0;;;21474:21:1;21531:2;21511:18;;;21504:30;21570:34;21550:18;;;21543:62;-1:-1:-1;;;21621:18:1;;;21614:38;21669:19;;58536:66:0;21290:404:1;58536:66:0;-1:-1:-1;;;;;58954:16:0;;;;;;:12;:16;;;;;;;;:45;;-1:-1:-1;;;;;;;;;58954:45:0;;-1:-1:-1;;;;;58954:45:0;;;;;;;;;;59014:50;;;;;;;;;;;;;;59081:25;;;:11;:25;;;;;:35;;-1:-1:-1;;;;;;59131:66:0;;;;-1:-1:-1;;;59181:15:0;59131:66;;;;;;;59081:25;;59266:415;59286:8;59282:1;:12;59266:415;;;59325:38;;59350:12;;-1:-1:-1;;;;;59325:38:0;;;59342:1;;59325:38;;59342:1;;59325:38;59386:4;59382:249;;;59449:59;59480:1;59484:2;59488:12;59502:5;59449:22;:59::i;:::-;59415:196;;;;-1:-1:-1;;;59415:196:0;;;;;;;:::i;:::-;59651:14;;;;;59296:3;59266:415;;;-1:-1:-1;59697:12:0;:27;59748:60;56660:355;14:131:1;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:258::-;664:1;674:113;688:6;685:1;682:13;674:113;;;764:11;;;758:18;745:11;;;738:39;710:2;703:10;674:113;;;805:6;802:1;799:13;796:48;;;-1:-1:-1;;840:1:1;822:16;;815:27;592:258::o;855:::-;897:3;935:5;929:12;962:6;957:3;950:19;978:63;1034:6;1027:4;1022:3;1018:14;1011:4;1004:5;1000:16;978:63;:::i;:::-;1095:2;1074:15;-1:-1:-1;;1070:29:1;1061:39;;;;1102:4;1057:50;;855:258;-1:-1:-1;;855:258:1:o;1118:220::-;1267:2;1256:9;1249:21;1230:4;1287:45;1328:2;1317:9;1313:18;1305:6;1287:45;:::i;1343:180::-;1402:6;1455:2;1443:9;1434:7;1430:23;1426:32;1423:52;;;1471:1;1468;1461:12;1423:52;-1:-1:-1;1494:23:1;;1343:180;-1:-1:-1;1343:180:1:o;1736:173::-;1804:20;;-1:-1:-1;;;;;1853:31:1;;1843:42;;1833:70;;1899:1;1896;1889:12;1833:70;1736:173;;;:::o;1914:254::-;1982:6;1990;2043:2;2031:9;2022:7;2018:23;2014:32;2011:52;;;2059:1;2056;2049:12;2011:52;2082:29;2101:9;2082:29;:::i;:::-;2072:39;2158:2;2143:18;;;;2130:32;;-1:-1:-1;;;1914:254:1:o;2173:127::-;2234:10;2229:3;2225:20;2222:1;2215:31;2265:4;2262:1;2255:15;2289:4;2286:1;2279:15;2305:632;2370:5;2400:18;2441:2;2433:6;2430:14;2427:40;;;2447:18;;:::i;:::-;2522:2;2516:9;2490:2;2576:15;;-1:-1:-1;;2572:24:1;;;2598:2;2568:33;2564:42;2552:55;;;2622:18;;;2642:22;;;2619:46;2616:72;;;2668:18;;:::i;:::-;2708:10;2704:2;2697:22;2737:6;2728:15;;2767:6;2759;2752:22;2807:3;2798:6;2793:3;2789:16;2786:25;2783:45;;;2824:1;2821;2814:12;2783:45;2874:6;2869:3;2862:4;2854:6;2850:17;2837:44;2929:1;2922:4;2913:6;2905;2901:19;2897:30;2890:41;;;;2305:632;;;;;:::o;2942:451::-;3011:6;3064:2;3052:9;3043:7;3039:23;3035:32;3032:52;;;3080:1;3077;3070:12;3032:52;3120:9;3107:23;3153:18;3145:6;3142:30;3139:50;;;3185:1;3182;3175:12;3139:50;3208:22;;3261:4;3253:13;;3249:27;-1:-1:-1;3239:55:1;;3290:1;3287;3280:12;3239:55;3313:74;3379:7;3374:2;3361:16;3356:2;3352;3348:11;3313:74;:::i;3398:160::-;3463:20;;3519:13;;3512:21;3502:32;;3492:60;;3548:1;3545;3538:12;3563:180;3619:6;3672:2;3660:9;3651:7;3647:23;3643:32;3640:52;;;3688:1;3685;3678:12;3640:52;3711:26;3727:9;3711:26;:::i;3930:328::-;4007:6;4015;4023;4076:2;4064:9;4055:7;4051:23;4047:32;4044:52;;;4092:1;4089;4082:12;4044:52;4115:29;4134:9;4115:29;:::i;:::-;4105:39;;4163:38;4197:2;4186:9;4182:18;4163:38;:::i;:::-;4153:48;;4248:2;4237:9;4233:18;4220:32;4210:42;;3930:328;;;;;:::o;4263:186::-;4322:6;4375:2;4363:9;4354:7;4350:23;4346:32;4343:52;;;4391:1;4388;4381:12;4343:52;4414:29;4433:9;4414:29;:::i;4454:632::-;4625:2;4677:21;;;4747:13;;4650:18;;;4769:22;;;4596:4;;4625:2;4848:15;;;;4822:2;4807:18;;;4596:4;4891:169;4905:6;4902:1;4899:13;4891:169;;;4966:13;;4954:26;;5035:15;;;;5000:12;;;;4927:1;4920:9;4891:169;;;-1:-1:-1;5077:3:1;;4454:632;-1:-1:-1;;;;;;4454:632:1:o;5091:254::-;5156:6;5164;5217:2;5205:9;5196:7;5192:23;5188:32;5185:52;;;5233:1;5230;5223:12;5185:52;5256:29;5275:9;5256:29;:::i;:::-;5246:39;;5304:35;5335:2;5324:9;5320:18;5304:35;:::i;:::-;5294:45;;5091:254;;;;;:::o;5350:667::-;5445:6;5453;5461;5469;5522:3;5510:9;5501:7;5497:23;5493:33;5490:53;;;5539:1;5536;5529:12;5490:53;5562:29;5581:9;5562:29;:::i;:::-;5552:39;;5610:38;5644:2;5633:9;5629:18;5610:38;:::i;:::-;5600:48;;5695:2;5684:9;5680:18;5667:32;5657:42;;5750:2;5739:9;5735:18;5722:32;5777:18;5769:6;5766:30;5763:50;;;5809:1;5806;5799:12;5763:50;5832:22;;5885:4;5877:13;;5873:27;-1:-1:-1;5863:55:1;;5914:1;5911;5904:12;5863:55;5937:74;6003:7;5998:2;5985:16;5980:2;5976;5972:11;5937:74;:::i;:::-;5927:84;;;5350:667;;;;;;;:::o;6022:260::-;6090:6;6098;6151:2;6139:9;6130:7;6126:23;6122:32;6119:52;;;6167:1;6164;6157:12;6119:52;6190:29;6209:9;6190:29;:::i;:::-;6180:39;;6238:38;6272:2;6261:9;6257:18;6238:38;:::i;6287:380::-;6366:1;6362:12;;;;6409;;;6430:61;;6484:4;6476:6;6472:17;6462:27;;6430:61;6537:2;6529:6;6526:14;6506:18;6503:38;6500:161;;6583:10;6578:3;6574:20;6571:1;6564:31;6618:4;6615:1;6608:15;6646:4;6643:1;6636:15;6500:161;;6287:380;;;:::o;7915:356::-;8117:2;8099:21;;;8136:18;;;8129:30;8195:34;8190:2;8175:18;;8168:62;8262:2;8247:18;;7915:356::o;8402:545::-;8504:2;8499:3;8496:11;8493:448;;;8540:1;8565:5;8561:2;8554:17;8610:4;8606:2;8596:19;8680:2;8668:10;8664:19;8661:1;8657:27;8651:4;8647:38;8716:4;8704:10;8701:20;8698:47;;;-1:-1:-1;8739:4:1;8698:47;8794:2;8789:3;8785:12;8782:1;8778:20;8772:4;8768:31;8758:41;;8849:82;8867:2;8860:5;8857:13;8849:82;;;8912:17;;;8893:1;8882:13;8849:82;;;8853:3;;;8402:545;;;:::o;9123:1352::-;9249:3;9243:10;9276:18;9268:6;9265:30;9262:56;;;9298:18;;:::i;:::-;9327:97;9417:6;9377:38;9409:4;9403:11;9377:38;:::i;:::-;9371:4;9327:97;:::i;:::-;9479:4;;9543:2;9532:14;;9560:1;9555:663;;;;10262:1;10279:6;10276:89;;;-1:-1:-1;10331:19:1;;;10325:26;10276:89;-1:-1:-1;;9080:1:1;9076:11;;;9072:24;9068:29;9058:40;9104:1;9100:11;;;9055:57;10378:81;;9525:944;;9555:663;8349:1;8342:14;;;8386:4;8373:18;;-1:-1:-1;;9591:20:1;;;9709:236;9723:7;9720:1;9717:14;9709:236;;;9812:19;;;9806:26;9791:42;;9904:27;;;;9872:1;9860:14;;;;9739:19;;9709:236;;;9713:3;9973:6;9964:7;9961:19;9958:201;;;10034:19;;;10028:26;-1:-1:-1;;10117:1:1;10113:14;;;10129:3;10109:24;10105:37;10101:42;10086:58;10071:74;;9958:201;-1:-1:-1;;;;;10205:1:1;10189:14;;;10185:22;10172:36;;-1:-1:-1;9123:1352:1:o;11853:127::-;11914:10;11909:3;11905:20;11902:1;11895:31;11945:4;11942:1;11935:15;11969:4;11966:1;11959:15;11985:127;12046:10;12041:3;12037:20;12034:1;12027:31;12077:4;12074:1;12067:15;12101:4;12098:1;12091:15;12117:135;12156:3;12177:17;;;12174:43;;12197:18;;:::i;:::-;-1:-1:-1;12244:1:1;12233:13;;12117:135::o;13425:128::-;13465:3;13496:1;13492:6;13489:1;13486:13;13483:39;;;13502:18;;:::i;:::-;-1:-1:-1;13538:9:1;;13425:128::o;14231:168::-;14271:7;14337:1;14333;14329:6;14325:14;14322:1;14319:21;14314:1;14307:9;14300:17;14296:45;14293:71;;;14344:18;;:::i;:::-;-1:-1:-1;14384:9:1;;14231:168::o;15099:415::-;15301:2;15283:21;;;15340:2;15320:18;;;15313:30;15379:34;15374:2;15359:18;;15352:62;-1:-1:-1;;;15445:2:1;15430:18;;15423:49;15504:3;15489:19;;15099:415::o;15935:1230::-;16159:3;16197:6;16191:13;16223:4;16236:51;16280:6;16275:3;16270:2;16262:6;16258:15;16236:51;:::i;:::-;16350:13;;16309:16;;;;16372:55;16350:13;16309:16;16394:15;;;16372:55;:::i;:::-;16516:13;;16449:20;;;16489:1;;16554:36;16516:13;16554:36;:::i;:::-;16609:1;16626:18;;;16653:141;;;;16808:1;16803:337;;;;16619:521;;16653:141;-1:-1:-1;;16688:24:1;;16674:39;;16765:16;;16758:24;16744:39;;16733:51;;;-1:-1:-1;16653:141:1;;16803:337;16834:6;16831:1;16824:17;16882:2;16879:1;16869:16;16907:1;16921:169;16935:8;16932:1;16929:15;16921:169;;;17017:14;;17002:13;;;16995:37;17060:16;;;;16952:10;;16921:169;;;16925:3;;17121:8;17114:5;17110:20;17103:27;;16619:521;-1:-1:-1;17156:3:1;;15935:1230;-1:-1:-1;;;;;;;;;;15935:1230:1:o;19636:489::-;-1:-1:-1;;;;;19905:15:1;;;19887:34;;19957:15;;19952:2;19937:18;;19930:43;20004:2;19989:18;;19982:34;;;20052:3;20047:2;20032:18;;20025:31;;;19830:4;;20073:46;;20099:19;;20091:6;20073:46;:::i;:::-;20065:54;19636:489;-1:-1:-1;;;;;;19636:489:1:o;20130:249::-;20199:6;20252:2;20240:9;20231:7;20227:23;20223:32;20220:52;;;20268:1;20265;20258:12;20220:52;20300:9;20294:16;20319:30;20343:5;20319:30;:::i;20384:127::-;20445:10;20440:3;20436:20;20433:1;20426:31;20476:4;20473:1;20466:15;20500:4;20497:1;20490:15;20516:120;20556:1;20582;20572:35;;20587:18;;:::i;:::-;-1:-1:-1;20621:9:1;;20516:120::o;20641:125::-;20681:4;20709:1;20706;20703:8;20700:34;;;20714:18;;:::i;:::-;-1:-1:-1;20751:9:1;;20641:125::o;20771:112::-;20803:1;20829;20819:35;;20834:18;;:::i;:::-;-1:-1:-1;20868:9:1;;20771:112::o
Swarm Source
ipfs://fa59b6802b99f09b772a43517eadf9366cad0846a7dc852ca81972a64120f7cc
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.