ERC-721
Overview
Max Total Supply
117 GCOT
Holders
43
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 GCOTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
GardenCenterOwnershipToken
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol"; import "@openzeppelin/contracts/access/AccessControlEnumerable.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; interface GardenCenter{ function transferOwnership(address _owner) external; } contract GardenCenterOwnershipToken is Context, AccessControlEnumerable, ERC721Enumerable, ERC721Burnable, ERC721Pausable { using Counters for Counters.Counter; using Strings for uint256; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); Counters.Counter private _tokenIdTracker; address public owner; mapping(uint256 => address) public tokenIdToCollection; mapping(address => uint256) public collectionToTokenId; mapping(address => address) public collectionToCenter; mapping(address => bool) public collectionExists; mapping(address => string) public altCollectionNames; constructor( string memory name, string memory symbol ) ERC721(name, symbol) { _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); _setupRole(MINTER_ROLE, _msgSender()); owner = _msgSender(); } function mint(address to, address collection, address center) public virtual { require(hasRole(MINTER_ROLE, _msgSender()), "mint: must have minter role to mint"); uint256 next = _tokenIdTracker.current(); require(!collectionExists[collection], "mint: collection exists already."); _tokenIdTracker.increment(); tokenIdToCollection[next] = collection; collectionToTokenId[collection] = next; collectionToCenter[collection] = center; collectionExists[collection] = true; _mint(to, next); } function getCollectionName(address collection) external view returns(string memory){ return ERC721(collection).name(); } function getSupportsInterface(address collection) external view returns(bool){ bytes4 InterfaceID_ERC165 = bytes4(keccak256('supportsInterface(bytes4)')); return ERC721(collection).supportsInterface(InterfaceID_ERC165); } function tokenURI(uint256 tokenId) public view override returns (string memory) { address collection = tokenIdToCollection[tokenId]; require(collection != address(0) && _exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory _collection = addressToString(collection); string memory collectionName = ""; string memory altName = altCollectionNames[collection]; if(bytes(altName).length > 0){ collectionName = altName; }else{ try GardenCenterOwnershipToken(this).getCollectionName(collection) returns(string memory _collectionName){ collectionName = filterString( _collectionName ); }catch{} } bool _supportsInterface = false; try GardenCenterOwnershipToken(this).getSupportsInterface(collection) returns(bool __supportsInterface){ _supportsInterface = __supportsInterface; }catch{} string[7] memory parts; parts[ 0 ] = '<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" viewBox="0 0 350 350"><rect width="100%" height="100%" fill="#f7c8d9" />'; parts[1] = '<text text-anchor="middle" x="50%" y="20%" stroke-width="4" dominant-baseline="hanging" paint-order="stroke" style="stroke:#c56ba3;fill:#ffffff;font-family:sans-serif;font-size:32px;">Garden Center</text><text text-anchor="middle" x="50%" y="60%" style="fill:#ffffff;font-family:sans-serif;font-size:15px;">'; parts[2] = string(abi.encodePacked(collectionName, '</text><text text-anchor="middle" x="50%" y="30%" stroke-width="4" dominant-baseline="hanging" paint-order="stroke" style="stroke:#c56ba3;fill:#ffffff;font-family:sans-serif;font-size:32px;">#',tokenId.toString())); parts[3] = '</text>'; parts[4] = '<text text-anchor="middle" x="50%" y="70%" style="fill:#ffffff;font-family:sans-serif;font-size:15px;">'; parts[5] = _collection; parts[6] = '</text></svg>'; string memory output = string( abi.encodePacked(parts[0], parts[1], parts[2], parts[3], parts[4], parts[5], parts[6]) ); string memory attrs = string( abi.encodePacked( 'attributes":[{"trait_type":"Collection", "value":"',_collection,'"},{"trait_type":"Name", "value":"',bytes(collectionName).length > 0 ? collectionName : "None",'"},{"trait_type":"ERC721 Compliant", "value":"',_supportsInterface ? "Yes" : "No",'"}]}' ) ); string memory json = Base64.encode( bytes( string( abi.encodePacked( '{"name": "Garden Center #', tokenId.toString(), '","external_url":"https://rarity.garden/collection/',_collection,'", "description": "This NFT is tradable proof of ownership for a Garden Center. The collection for your Garden Center must be listed on https://rarity.garden/ in order to allow trading. Once listed, it will be available under this link: https://rarity.garden/collection/', _collection, '. Collection owners holding this NFT may set custom royalties for trading on rarity.garden while any other holder earns fixed 0.5% trading fees. Setting up fees for your Garden Center has no impact on fees on other marketplaces.", "image": "data:image/svg+xml;base64,', Base64.encode(bytes(output)), '","',attrs ) ) ) ); output = string(abi.encodePacked("data:application/json;base64,", json)); return output; } function addMinter(address minter) external{ require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "addMinter: not the admin role"); _setupRole(MINTER_ROLE, minter); } function setCollectionName(address _collection, string calldata _name) external{ require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "setCollectionName: not the admin role"); altCollectionNames[_collection] = _name; } function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override{ if(from != address(0)){ GardenCenter(collectionToCenter[tokenIdToCollection[tokenId]]).transferOwnership(to); } } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override(ERC721, ERC721Enumerable, ERC721Pausable) { super._beforeTokenTransfer(from, to, tokenId); } function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControlEnumerable, ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } function filterString(string memory _string) internal pure returns(string memory){ uint k = 0; bytes memory out = new bytes(24); bytes memory byteString = bytes(_string); bytes memory allowed = bytes("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_ "); for(uint i=0; i < byteString.length ; i++){ if(i == 24){ break; } for(uint j=0; j<allowed.length; j++){ if(byteString[i] == allowed[j] && k < 24){ out[k] = allowed[j]; k++; } else if(k == 24){ break; } } } bytes memory _out = new bytes(k); for(uint i = 0; i < k; i++){ _out[i] = out[i]; } return string(_out); } function addressToString(address _address) internal pure returns(string memory) { bytes32 _bytes = bytes32(uint256(uint160(_address))); bytes memory HEX = "0123456789abcdef"; bytes memory _string = new bytes(42); _string[0] = '0'; _string[1] = 'x'; for(uint i = 0; i < 20; i++) { _string[2+i*2] = HEX[uint8(_bytes[i + 12] >> 4)]; _string[3+i*2] = HEX[uint8(_bytes[i + 12] & 0x0f)]; } return string(_string); } } /// [MIT License] /// @title Base64 /// @notice Provides a function for encoding some bytes in base64 /// @author Brecht Devos <[email protected]> library Base64 { bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /// @notice Encodes some bytes to the base64 representation function encode(bytes memory data) internal pure returns (string memory) { uint256 len = data.length; if (len == 0) return ""; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((len + 2) / 3); // Add some extra buffer at the end bytes memory result = new bytes(encodedLen + 32); bytes memory table = TABLE; assembly { let tablePtr := add(table, 1) let resultPtr := add(result, 32) for { let i := 0 } lt(i, len) { } { i := add(i, 3) let input := and(mload(add(data, i)), 0xffffff) let out := mload(add(tablePtr, and(shr(18, input), 0x3F))) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF)) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF)) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF)) out := shl(224, out) mstore(resultPtr, out) resultPtr := add(resultPtr, 4) } switch mod(len, 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } mstore(result, encodedLen) } return string(result); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol) pragma solidity ^0.8.0; import "./IAccessControlEnumerable.sol"; import "./AccessControl.sol"; import "../utils/structs/EnumerableSet.sol"; /** * @dev Extension of {AccessControl} that allows enumerating the members of each role. */ abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl { using EnumerableSet for EnumerableSet.AddressSet; mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) { return _roleMembers[role].at(index); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) { return _roleMembers[role].length(); } /** * @dev Overload {_grantRole} to track enumerable memberships */ function _grantRole(bytes32 role, address account) internal virtual override { super._grantRole(role, account); _roleMembers[role].add(account); } /** * @dev Overload {_revokeRole} to track enumerable memberships */ function _revokeRole(bytes32 role, address account) internal virtual override { super._revokeRole(role, account); _roleMembers[role].remove(account); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Pausable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../security/Pausable.sol"; /** * @dev ERC721 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */ abstract contract ERC721Pausable is ERC721, Pausable { /** * @dev See {ERC721-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); require(!paused(), "ERC721Pausable: token transfer while paused"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Burnable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _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 {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; /** * @dev External interface of AccessControlEnumerable declared to support ERC165 detection. */ interface IAccessControlEnumerable is IAccessControl { /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) external view returns (address); /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"addMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"altCollectionNames","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"collectionExists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"collectionToCenter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"collectionToTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"}],"name":"getCollectionName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"}],"name":"getSupportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"address","name":"collection","type":"address"},{"internalType":"address","name":"center","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_collection","type":"address"},{"internalType":"string","name":"_name","type":"string"}],"name":"setCollectionName","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":"uint256","name":"","type":"uint256"}],"name":"tokenIdToCollection","outputs":[{"internalType":"address","name":"","type":"address"}],"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"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620041113803806200411183398101604081905262000034916200039b565b8151829082906200004d90600290602085019062000228565b5080516200006390600390602084019062000228565b5050600c805460ff19169055506200007d600033620000c3565b620000a97f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633620000c3565b5050600e80546001600160a01b0319163317905562000441565b620000cf8282620000d3565b5050565b620000ea82826200011660201b620015061760201c565b6000828152600160209081526040909120620001119183906200158a620001b6821b17901c565b505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620000cf576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620001723390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000620001cd836001600160a01b038416620001d6565b90505b92915050565b60008181526001830160205260408120546200021f57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620001d0565b506000620001d0565b828054620002369062000405565b90600052602060002090601f0160209004810192826200025a5760008555620002a5565b82601f106200027557805160ff1916838001178555620002a5565b82800160010185558215620002a5579182015b82811115620002a557825182559160200191906001019062000288565b50620002b3929150620002b7565b5090565b5b80821115620002b35760008155600101620002b8565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620002f657600080fd5b81516001600160401b0380821115620003135762000313620002ce565b604051601f8301601f19908116603f011681019082821181831017156200033e576200033e620002ce565b816040528381526020925086838588010111156200035b57600080fd5b600091505b838210156200037f578582018301518183018401529082019062000360565b83821115620003915760008385830101525b9695505050505050565b60008060408385031215620003af57600080fd5b82516001600160401b0380821115620003c757600080fd5b620003d586838701620002e4565b93506020850151915080821115620003ec57600080fd5b50620003fb85828601620002e4565b9150509250929050565b600181811c908216806200041a57607f821691505b6020821081036200043b57634e487b7160e01b600052602260045260246000fd5b50919050565b613cc080620004516000396000f3fe608060405234801561001057600080fd5b50600436106102325760003560e01c80636d0175a611610130578063a217fddf116100b8578063ca15c8731161007c578063ca15c87314610515578063d539139314610528578063d547741f1461054f578063e4aad4fb14610562578063e985e9c51461057557600080fd5b8063a217fddf146104b1578063a22cb465146104b9578063accd0060146104cc578063b88d4fde146104ef578063c87b56dd1461050257600080fd5b80639010d07c116100ff5780639010d07c1461044757806391d148541461045a57806394b8ae9d1461046d57806395d89b4114610496578063983b2d561461049e57600080fd5b80636d0175a6146103ee57806370a082311461040e57806380f03b68146104215780638da5cb5b1461043457600080fd5b80632f745c59116101be5780634f6ccce7116101825780634f6ccce7146103975780635c975abb146103aa57806363185c42146103b55780636352211e146103c85780636869e3d5146103db57600080fd5b80632f745c591461032257806336568abe1461033557806342842e0e1461034857806342966c681461035b57806348c493851461036e57600080fd5b8063095ea7b311610205578063095ea7b3146102b257806318160ddd146102c757806323b872dd146102d9578063248a9ca3146102ec5780632f2ff15d1461030f57600080fd5b806301ffc9a71461023757806306ccbda51461025f57806306fdde031461027f578063081812fc14610287575b600080fd5b61024a610245366004612c40565b6105b1565b60405190151581526020015b60405180910390f35b61027261026d366004612c79565b6105c2565b6040516102569190612cec565b61027261065c565b61029a610295366004612cff565b6106ee565b6040516001600160a01b039091168152602001610256565b6102c56102c0366004612d18565b610788565b005b600a545b604051908152602001610256565b6102c56102e7366004612d42565b61089d565b6102cb6102fa366004612cff565b60009081526020819052604090206001015490565b6102c561031d366004612d7e565b6108cf565b6102cb610330366004612d18565b6108f5565b6102c5610343366004612d7e565b61098b565b6102c5610356366004612d42565b610a09565b6102c5610369366004612cff565b610a24565b61029a61037c366004612c79565b6011602052600090815260409020546001600160a01b031681565b6102cb6103a5366004612cff565b610a9e565b600c5460ff1661024a565b6102c56103c3366004612daa565b610b31565b61029a6103d6366004612cff565b610cab565b61024a6103e9366004612c79565b610d22565b6102cb6103fc366004612c79565b60106020526000908152604090205481565b6102cb61041c366004612c79565b610db6565b61027261042f366004612c79565b610e3d565b600e5461029a906001600160a01b031681565b61029a610455366004612ded565b610ea5565b61024a610468366004612d7e565b610ebd565b61029a61047b366004612cff565b600f602052600090815260409020546001600160a01b031681565b610272610ee6565b6102c56104ac366004612c79565b610ef5565b6102cb600081565b6102c56104c7366004612e1d565b610f76565b61024a6104da366004612c79565b60126020526000908152604090205460ff1681565b6102c56104fd366004612ec3565b610f81565b610272610510366004612cff565b610fb3565b6102cb610523366004612cff565b611441565b6102cb7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6102c561055d366004612d7e565b611458565b6102c5610570366004612f6e565b61147e565b61024a610583366004612ff1565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b60006105bc8261159f565b92915050565b601360205260009081526040902080546105db9061301b565b80601f01602080910402602001604051908101604052809291908181526020018280546106079061301b565b80156106545780601f1061062957610100808354040283529160200191610654565b820191906000526020600020905b81548152906001019060200180831161063757829003601f168201915b505050505081565b60606002805461066b9061301b565b80601f01602080910402602001604051908101604052809291908181526020018280546106979061301b565b80156106e45780601f106106b9576101008083540402835291602001916106e4565b820191906000526020600020905b8154815290600101906020018083116106c757829003601f168201915b5050505050905090565b6000818152600460205260408120546001600160a01b031661076c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061079382610cab565b9050806001600160a01b0316836001600160a01b0316036108005760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610763565b336001600160a01b038216148061081c575061081c8133610583565b61088e5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610763565b61089883836115c4565b505050565b6108a8335b82611632565b6108c45760405162461bcd60e51b815260040161076390613055565b610898838383611729565b6000828152602081905260409020600101546108eb81336118d6565b610898838361193a565b600061090083610db6565b82106109625760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610763565b506001600160a01b03919091166000908152600860209081526040808320938352929052205490565b6001600160a01b03811633146109fb5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610763565b610a05828261195c565b5050565b61089883838360405180602001604052806000815250610f81565b610a2d336108a2565b610a925760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610763565b610a9b8161197e565b50565b6000610aa9600a5490565b8210610b0c5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610763565b600a8281548110610b1f57610b1f6130a6565b90600052602060002001549050919050565b610b5b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610ebd565b610bb35760405162461bcd60e51b815260206004820152602360248201527f6d696e743a206d7573742068617665206d696e74657220726f6c6520746f206d6044820152621a5b9d60ea1b6064820152608401610763565b6000610bbe600d5490565b6001600160a01b03841660009081526012602052604090205490915060ff1615610c2a5760405162461bcd60e51b815260206004820181905260248201527f6d696e743a20636f6c6c656374696f6e2065786973747320616c72656164792e6044820152606401610763565b610c38600d80546001019055565b6000818152600f6020908152604080832080546001600160a01b03199081166001600160a01b0389811691821790935585526010845282852086905560118452828520805490911691871691909117905560129091529020805460ff19166001179055610ca58482611a2d565b50505050565b6000818152600460205260408120546001600160a01b0316806105bc5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610763565b6040516301ffc9a760e01b80825260048201526000907f01ffc9a7a5cef8baa21ed3c5c0d7e23accb804b619e9333b597f47a0d84076e2906001600160a01b038416906301ffc9a790602401602060405180830381865afa158015610d8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610daf91906130bc565b9392505050565b60006001600160a01b038216610e215760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610763565b506001600160a01b031660009081526005602052604090205490565b6060816001600160a01b03166306fdde036040518163ffffffff1660e01b8152600401600060405180830381865afa158015610e7d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526105bc91908101906130d9565b6000828152600160205260408120610daf9083611b83565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60606003805461066b9061301b565b610f00600033610ebd565b610f4c5760405162461bcd60e51b815260206004820152601d60248201527f6164644d696e7465723a206e6f74207468652061646d696e20726f6c650000006044820152606401610763565b610a9b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a682611b8f565b610a05338383611b99565b610f8b3383611632565b610fa75760405162461bcd60e51b815260040161076390613055565b610ca584848484611c67565b6000818152600f60205260409020546060906001600160a01b03168015801590610ff357506000838152600460205260409020546001600160a01b031615155b6110575760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610763565b600061106282611c9a565b604080516020808201835260008083526001600160a01b03871681526013909152918220805493945090926110969061301b565b80601f01602080910402602001604051908101604052809291908181526020018280546110c29061301b565b801561110f5780601f106110e45761010080835404028352916020019161110f565b820191906000526020600020905b8154815290600101906020018083116110f257829003601f168201915b505050505090506000815111156111285780915061119f565b60405163101e076d60e31b81526001600160a01b038516600482015230906380f03b6890602401600060405180830381865afa92505050801561118d57506040513d6000823e601f3d908101601f1916820160405261118a91908101906130d9565b60015b1561119f5761119b81611e85565b9250505b604051636869e3d560e01b81526001600160a01b03851660048201526000903090636869e3d590602401602060405180830381865afa925050508015611202575060408051601f3d908101601f191682019092526111ff918101906130bc565b60015b1561120a5790505b611212612b6a565b6040518060c0016040528060948152602001613b906094913981526040805161016081019091526101338082526139dc602083013960208201528361125689612084565b60405160200161126792919061316c565b60408051808303601f1901815291815282810191909152805180820190915260078152661e17ba32bc3a1f60c91b602082015281600360200201819052506040518060a0016040528060678152602001613c24606791396080820190815260a08201868152604080518082018252600d81526c1e17ba32bc3a1f1e17b9bb339f60991b60208083019190915260c0860182905285518187015184880151606089015197519651955160009861132798949793969295909493929101613283565b6040516020818303038152906040529050600086600087511161136657604051806040016040528060048152602001634e6f6e6560e01b815250611368565b865b8561138d57604051806040016040528060028152602001614e6f60f01b8152506113aa565b6040518060400160405280600381526020016259657360e81b8152505b6040516020016113bc93929190613315565b6040516020818303038152906040529050600061140f6113db8c612084565b898a6113e687612185565b866040516020016113fb959493929190613423565b604051602081830303815290604052612185565b905080604051602001611422919061378d565b60408051601f198184030181529190529b9a5050505050505050505050565b60008181526001602052604081206105bc906122ef565b60008281526020819052604090206001015461147481336118d6565b610898838361195c565b611489600033610ebd565b6114e35760405162461bcd60e51b815260206004820152602560248201527f736574436f6c6c656374696f6e4e616d653a206e6f74207468652061646d696e60448201526420726f6c6560d81b6064820152608401610763565b6001600160a01b0383166000908152601360205260409020610ca5908383612b91565b6115108282610ebd565b610a05576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556115463390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000610daf836001600160a01b0384166122f9565b60006001600160e01b0319821663780e9d6360e01b14806105bc57506105bc82612348565b600081815260066020526040902080546001600160a01b0319166001600160a01b03841690811790915581906115f982610cab565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600460205260408120546001600160a01b03166116ab5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610763565b60006116b683610cab565b9050806001600160a01b0316846001600160a01b031614806116f15750836001600160a01b03166116e6846106ee565b6001600160a01b0316145b8061172157506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661173c82610cab565b6001600160a01b0316146117a05760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610763565b6001600160a01b0382166118025760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610763565b61180d838383612388565b6118186000826115c4565b6001600160a01b03831660009081526005602052604081208054600192906118419084906137e8565b90915550506001600160a01b038216600090815260056020526040812080546001929061186f9084906137ff565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4610898838383612393565b6118e08282610ebd565b610a05576118f8816001600160a01b03166014612422565b611903836020612422565b604051602001611914929190613817565b60408051601f198184030181529082905262461bcd60e51b825261076391600401612cec565b6119448282611506565b6000828152600160205260409020610898908261158a565b61196682826125be565b60008281526001602052604090206108989082612623565b600061198982610cab565b905061199781600084612388565b6119a26000836115c4565b6001600160a01b03811660009081526005602052604081208054600192906119cb9084906137e8565b909155505060008281526004602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4610a0581600084612393565b6001600160a01b038216611a835760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610763565b6000818152600460205260409020546001600160a01b031615611ae85760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610763565b611af460008383612388565b6001600160a01b0382166000908152600560205260408120805460019290611b1d9084906137ff565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4610a0560008383612393565b6000610daf8383612638565b610a05828261193a565b816001600160a01b0316836001600160a01b031603611bfa5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610763565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611c72848484611729565b611c7e84848484612662565b610ca55760405162461bcd60e51b81526004016107639061388c565b604080518082018252601081526f181899199a1a9b1b9c1cb0b131b232b360811b60208201528151602a80825260608281019094526001600160a01b0385169291600091602082018180368337019050509050600360fc1b81600081518110611d0557611d056130a6565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611d3457611d346130a6565b60200101906001600160f81b031916908160001a90535060005b6014811015611e7c5782600485611d6684600c6137ff565b60208110611d7657611d766130a6565b1a60f81b6001600160f81b031916901c60f81c60ff1681518110611d9c57611d9c6130a6565b01602001516001600160f81b03191682611db78360026138de565b611dc29060026137ff565b81518110611dd257611dd26130a6565b60200101906001600160f81b031916908160001a9053508284611df683600c6137ff565b60208110611e0657611e066130a6565b825191901a600f16908110611e1d57611e1d6130a6565b01602001516001600160f81b03191682611e388360026138de565b611e439060036137ff565b81518110611e5357611e536130a6565b60200101906001600160f81b031916908160001a90535080611e74816138fd565b915050611d4e565b50949350505050565b604080516018808252818301909252606091600091829160208201818036833701905050905060008490506000604051806080016040528060418152602001613b4f60419139905060005b8251811015611fcd5760188114611fcd5760005b8251811015611fba57828181518110611eff57611eff6130a6565b602001015160f81c60f81b6001600160f81b031916848381518110611f2657611f266130a6565b01602001516001600160f81b031916148015611f425750601886105b15611f9f57828181518110611f5957611f596130a6565b602001015160f81c60f81b858781518110611f7657611f766130a6565b60200101906001600160f81b031916908160001a90535085611f97816138fd565b965050611fa8565b60188614611fba575b80611fb2816138fd565b915050611ee4565b5080611fc5816138fd565b915050611ed0565b5060008467ffffffffffffffff811115611fe957611fe9612e54565b6040519080825280601f01601f191660200182016040528015612013576020820181803683370190505b50905060005b8581101561207957848181518110612033576120336130a6565b602001015160f81c60f81b828281518110612050576120506130a6565b60200101906001600160f81b031916908160001a90535080612071816138fd565b915050612019565b509695505050505050565b6060816000036120ab5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156120d557806120bf816138fd565b91506120ce9050600a8361392c565b91506120af565b60008167ffffffffffffffff8111156120f0576120f0612e54565b6040519080825280601f01601f19166020018201604052801561211a576020820181803683370190505b5090505b84156117215761212f6001836137e8565b915061213c600a86613940565b6121479060306137ff565b60f81b81838151811061215c5761215c6130a6565b60200101906001600160f81b031916908160001a90535061217e600a8661392c565b945061211e565b805160609060008190036121a9575050604080516020810190915260008152919050565b600060036121b88360026137ff565b6121c2919061392c565b6121cd9060046138de565b905060006121dc8260206137ff565b67ffffffffffffffff8111156121f4576121f4612e54565b6040519080825280601f01601f19166020018201604052801561221e576020820181803683370190505b5090506000604051806060016040528060408152602001613b0f604091399050600181016020830160005b868110156122aa576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101612249565b5060038606600181146122c457600281146122d5576122e1565b613d3d60f01b6001198301526122e1565b603d60f81b6000198301525b505050918152949350505050565b60006105bc825490565b6000818152600183016020526040812054612340575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556105bc565b5060006105bc565b60006001600160e01b031982166380ac58cd60e01b148061237957506001600160e01b03198216635b5e139f60e01b145b806105bc57506105bc82612763565b610898838383612788565b6001600160a01b03831615610898576000818152600f60209081526040808320546001600160a01b03908116845260119092529182902054915163f2fde38b60e01b8152848216600482015291169063f2fde38b90602401600060405180830381600087803b15801561240557600080fd5b505af1158015612419573d6000803e3d6000fd5b50505050505050565b606060006124318360026138de565b61243c9060026137ff565b67ffffffffffffffff81111561245457612454612e54565b6040519080825280601f01601f19166020018201604052801561247e576020820181803683370190505b509050600360fc1b81600081518110612499576124996130a6565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106124c8576124c86130a6565b60200101906001600160f81b031916908160001a90535060006124ec8460026138de565b6124f79060016137ff565b90505b600181111561256f576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061252b5761252b6130a6565b1a60f81b828281518110612541576125416130a6565b60200101906001600160f81b031916908160001a90535060049490941c9361256881613954565b90506124fa565b508315610daf5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610763565b6125c88282610ebd565b15610a05576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000610daf836001600160a01b0384166127fa565b600082600001828154811061264f5761264f6130a6565b9060005260206000200154905092915050565b60006001600160a01b0384163b1561275857604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906126a690339089908890889060040161396b565b6020604051808303816000875af19250505080156126e1575060408051601f3d908101601f191682019092526126de918101906139a8565b60015b61273e573d80801561270f576040519150601f19603f3d011682016040523d82523d6000602084013e612714565b606091505b5080516000036127365760405162461bcd60e51b81526004016107639061388c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611721565b506001949350505050565b60006001600160e01b03198216635a05180f60e01b14806105bc57506105bc826128ed565b612793838383612922565b600c5460ff16156108985760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b6064820152608401610763565b600081815260018301602052604081205480156128e357600061281e6001836137e8565b8554909150600090612832906001906137e8565b9050818114612897576000866000018281548110612852576128526130a6565b9060005260206000200154905080876000018481548110612875576128756130a6565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806128a8576128a86139c5565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506105bc565b60009150506105bc565b60006001600160e01b03198216637965db0b60e01b14806105bc57506301ffc9a760e01b6001600160e01b03198316146105bc565b6001600160a01b03831661297d5761297881600a80546000838152600b60205260408120829055600182018355919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155565b6129a0565b816001600160a01b0316836001600160a01b0316146129a0576129a083826129da565b6001600160a01b0382166129b75761089881612a77565b826001600160a01b0316826001600160a01b031614610898576108988282612b26565b600060016129e784610db6565b6129f191906137e8565b600083815260096020526040902054909150808214612a44576001600160a01b03841660009081526008602090815260408083208584528252808320548484528184208190558352600990915290208190555b5060009182526009602090815260408084208490556001600160a01b039094168352600881528383209183525290812055565b600a54600090612a89906001906137e8565b6000838152600b6020526040812054600a8054939450909284908110612ab157612ab16130a6565b9060005260206000200154905080600a8381548110612ad257612ad26130a6565b6000918252602080832090910192909255828152600b9091526040808220849055858252812055600a805480612b0a57612b0a6139c5565b6001900381819060005260206000200160009055905550505050565b6000612b3183610db6565b6001600160a01b039093166000908152600860209081526040808320868452825280832085905593825260099052919091209190915550565b6040518060e001604052806007905b6060815260200190600190039081612b795790505090565b828054612b9d9061301b565b90600052602060002090601f016020900481019282612bbf5760008555612c05565b82601f10612bd85782800160ff19823516178555612c05565b82800160010185558215612c05579182015b82811115612c05578235825591602001919060010190612bea565b50612c11929150612c15565b5090565b5b80821115612c115760008155600101612c16565b6001600160e01b031981168114610a9b57600080fd5b600060208284031215612c5257600080fd5b8135610daf81612c2a565b80356001600160a01b0381168114612c7457600080fd5b919050565b600060208284031215612c8b57600080fd5b610daf82612c5d565b60005b83811015612caf578181015183820152602001612c97565b83811115610ca55750506000910152565b60008151808452612cd8816020860160208601612c94565b601f01601f19169290920160200192915050565b602081526000610daf6020830184612cc0565b600060208284031215612d1157600080fd5b5035919050565b60008060408385031215612d2b57600080fd5b612d3483612c5d565b946020939093013593505050565b600080600060608486031215612d5757600080fd5b612d6084612c5d565b9250612d6e60208501612c5d565b9150604084013590509250925092565b60008060408385031215612d9157600080fd5b82359150612da160208401612c5d565b90509250929050565b600080600060608486031215612dbf57600080fd5b612dc884612c5d565b9250612dd660208501612c5d565b9150612de460408501612c5d565b90509250925092565b60008060408385031215612e0057600080fd5b50508035926020909101359150565b8015158114610a9b57600080fd5b60008060408385031215612e3057600080fd5b612e3983612c5d565b91506020830135612e4981612e0f565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612e9357612e93612e54565b604052919050565b600067ffffffffffffffff821115612eb557612eb5612e54565b50601f01601f191660200190565b60008060008060808587031215612ed957600080fd5b612ee285612c5d565b9350612ef060208601612c5d565b925060408501359150606085013567ffffffffffffffff811115612f1357600080fd5b8501601f81018713612f2457600080fd5b8035612f37612f3282612e9b565b612e6a565b818152886020838501011115612f4c57600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b600080600060408486031215612f8357600080fd5b612f8c84612c5d565b9250602084013567ffffffffffffffff80821115612fa957600080fd5b818601915086601f830112612fbd57600080fd5b813581811115612fcc57600080fd5b876020828501011115612fde57600080fd5b6020830194508093505050509250925092565b6000806040838503121561300457600080fd5b61300d83612c5d565b9150612da160208401612c5d565b600181811c9082168061302f57607f821691505b60208210810361304f57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156130ce57600080fd5b8151610daf81612e0f565b6000602082840312156130eb57600080fd5b815167ffffffffffffffff81111561310257600080fd5b8201601f8101841361311357600080fd5b8051613121612f3282612e9b565b81815285602083850101111561313657600080fd5b613147826020830160208601612c94565b95945050505050565b60008151613162818560208601612c94565b9290920192915050565b6000835161317e818460208801612c94565b80830190507f3c2f746578743e3c7465787420746578742d616e63686f723d226d6964646c6581527f2220783d223530252220793d2233302522207374726f6b652d77696474683d2260208201527f342220646f6d696e616e742d626173656c696e653d2268616e67696e6722207060408201527f61696e742d6f726465723d227374726f6b6522207374796c653d227374726f6b60608201527f653a236335366261333b66696c6c3a236666666666663b666f6e742d66616d6960808201527f6c793a73616e732d73657269663b666f6e742d73697a653a333270783b223e2360a082015283516132778160c0840160208801612c94565b0160c001949350505050565b6000885160206132968285838e01612c94565b8951918401916132a98184848e01612c94565b89519201916132bb8184848d01612c94565b88519201916132cd8184848c01612c94565b87519201916132df8184848b01612c94565b86519201916132f18184848a01612c94565b85519201916133038184848901612c94565b919091019a9950505050505050505050565b7f61747472696275746573223a5b7b2274726169745f74797065223a22436f6c6c81527132b1ba34b7b7111610113b30b63ab2911d1160711b602082015260008451613368816032850160208901612c94565b7f227d2c7b2274726169745f74797065223a224e616d65222c202276616c756522603291840191820152611d1160f11b605282015284516133b0816054840160208901612c94565b7f227d2c7b2274726169745f74797065223a2245524337323120436f6d706c6961605492909101918201526d373a111610113b30b63ab2911d1160911b60748201528351613405816082840160208801612c94565b63227d5d7d60e01b6082929091019182015260860195945050505050565b7f7b226e616d65223a202247617264656e2043656e74657220230000000000000081526000865161345b816019850160208b01612c94565b7f222c2265787465726e616c5f75726c223a2268747470733a2f2f726172697479601991840191820152722e67617264656e2f636f6c6c656374696f6e2f60681b603982015286516134b481604c840160208b01612c94565b7f222c20226465736372697074696f6e223a202254686973204e46542069732074604c92909101918201527f72616461626c652070726f6f66206f66206f776e65727368697020666f722061606c8201527f2047617264656e2043656e7465722e2054686520636f6c6c656374696f6e2066608c8201527f6f7220796f75722047617264656e2043656e746572206d757374206265206c6960ac8201527f73746564206f6e2068747470733a2f2f7261726974792e67617264656e2f206960cc8201527f6e206f7264657220746f20616c6c6f772074726164696e672e204f6e6365206c60ec8201527f69737465642c2069742077696c6c20626520617661696c61626c6520756e646561010c8201527f722074686973206c696e6b3a2068747470733a2f2f7261726974792e6761726461012c8201526d656e2f636f6c6c656374696f6e2f60901b61014c82015261378161377b61376c61376661361d61015a86018b613150565b7f2e20436f6c6c656374696f6e206f776e65727320686f6c64696e67207468697381527f204e4654206d61792073657420637573746f6d20726f79616c7469657320666f60208201527f722074726164696e67206f6e207261726974792e67617264656e207768696c6560408201527f20616e79206f7468657220686f6c646572206561726e7320666978656420302e60608201527f35252074726164696e6720666565732e2053657474696e67207570206665657360808201527f20666f7220796f75722047617264656e2043656e74657220686173206e6f206960a08201527f6d70616374206f6e2066656573206f6e206f74686572206d61726b6574706c6160c08201527f6365732e222c2022696d616765223a2022646174613a696d6167652f7376672b60e08201526a1e1b5b0ed8985cd94d8d0b60aa1b61010082015261010b0190565b88613150565b6211161160e91b815260030190565b85613150565b98975050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516137c581601d850160208701612c94565b91909101601d0192915050565b634e487b7160e01b600052601160045260246000fd5b6000828210156137fa576137fa6137d2565b500390565b60008219821115613812576138126137d2565b500190565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161384f816017850160208801612c94565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613880816028840160208801612c94565b01602801949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008160001904831182151516156138f8576138f86137d2565b500290565b60006001820161390f5761390f6137d2565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261393b5761393b613916565b500490565b60008261394f5761394f613916565b500690565b600081613963576139636137d2565b506000190190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061399e90830184612cc0565b9695505050505050565b6000602082840312156139ba57600080fd5b8151610daf81612c2a565b634e487b7160e01b600052603160045260246000fdfe3c7465787420746578742d616e63686f723d226d6964646c652220783d223530252220793d2232302522207374726f6b652d77696474683d22342220646f6d696e616e742d626173656c696e653d2268616e67696e6722207061696e742d6f726465723d227374726f6b6522207374796c653d227374726f6b653a236335366261333b66696c6c3a236666666666663b666f6e742d66616d696c793a73616e732d73657269663b666f6e742d73697a653a333270783b223e47617264656e2043656e7465723c2f746578743e3c7465787420746578742d616e63686f723d226d6964646c652220783d223530252220793d2236302522207374796c653d2266696c6c3a236666666666663b666f6e742d66616d696c793a73616e732d73657269663b666f6e742d73697a653a313570783b223e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f6162636465666768696a6b6c6d6e6f707172737475767778797a4142434445464748494a4b4c4d4e4f505152535455565758595a303132333435363738392d5f203c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302033353020333530223e3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d222366376338643922202f3e3c7465787420746578742d616e63686f723d226d6964646c652220783d223530252220793d2237302522207374796c653d2266696c6c3a236666666666663b666f6e742d66616d696c793a73616e732d73657269663b666f6e742d73697a653a313570783b223ea26469706673582212201b112c961c02e78f30c4a1badb077cf4667a8920908b5574a6c94e8c8da3dc6264736f6c634300080d003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001d47617264656e2043656e746572204f776e65727368697020546f6b656e000000000000000000000000000000000000000000000000000000000000000000000447434f5400000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102325760003560e01c80636d0175a611610130578063a217fddf116100b8578063ca15c8731161007c578063ca15c87314610515578063d539139314610528578063d547741f1461054f578063e4aad4fb14610562578063e985e9c51461057557600080fd5b8063a217fddf146104b1578063a22cb465146104b9578063accd0060146104cc578063b88d4fde146104ef578063c87b56dd1461050257600080fd5b80639010d07c116100ff5780639010d07c1461044757806391d148541461045a57806394b8ae9d1461046d57806395d89b4114610496578063983b2d561461049e57600080fd5b80636d0175a6146103ee57806370a082311461040e57806380f03b68146104215780638da5cb5b1461043457600080fd5b80632f745c59116101be5780634f6ccce7116101825780634f6ccce7146103975780635c975abb146103aa57806363185c42146103b55780636352211e146103c85780636869e3d5146103db57600080fd5b80632f745c591461032257806336568abe1461033557806342842e0e1461034857806342966c681461035b57806348c493851461036e57600080fd5b8063095ea7b311610205578063095ea7b3146102b257806318160ddd146102c757806323b872dd146102d9578063248a9ca3146102ec5780632f2ff15d1461030f57600080fd5b806301ffc9a71461023757806306ccbda51461025f57806306fdde031461027f578063081812fc14610287575b600080fd5b61024a610245366004612c40565b6105b1565b60405190151581526020015b60405180910390f35b61027261026d366004612c79565b6105c2565b6040516102569190612cec565b61027261065c565b61029a610295366004612cff565b6106ee565b6040516001600160a01b039091168152602001610256565b6102c56102c0366004612d18565b610788565b005b600a545b604051908152602001610256565b6102c56102e7366004612d42565b61089d565b6102cb6102fa366004612cff565b60009081526020819052604090206001015490565b6102c561031d366004612d7e565b6108cf565b6102cb610330366004612d18565b6108f5565b6102c5610343366004612d7e565b61098b565b6102c5610356366004612d42565b610a09565b6102c5610369366004612cff565b610a24565b61029a61037c366004612c79565b6011602052600090815260409020546001600160a01b031681565b6102cb6103a5366004612cff565b610a9e565b600c5460ff1661024a565b6102c56103c3366004612daa565b610b31565b61029a6103d6366004612cff565b610cab565b61024a6103e9366004612c79565b610d22565b6102cb6103fc366004612c79565b60106020526000908152604090205481565b6102cb61041c366004612c79565b610db6565b61027261042f366004612c79565b610e3d565b600e5461029a906001600160a01b031681565b61029a610455366004612ded565b610ea5565b61024a610468366004612d7e565b610ebd565b61029a61047b366004612cff565b600f602052600090815260409020546001600160a01b031681565b610272610ee6565b6102c56104ac366004612c79565b610ef5565b6102cb600081565b6102c56104c7366004612e1d565b610f76565b61024a6104da366004612c79565b60126020526000908152604090205460ff1681565b6102c56104fd366004612ec3565b610f81565b610272610510366004612cff565b610fb3565b6102cb610523366004612cff565b611441565b6102cb7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6102c561055d366004612d7e565b611458565b6102c5610570366004612f6e565b61147e565b61024a610583366004612ff1565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b60006105bc8261159f565b92915050565b601360205260009081526040902080546105db9061301b565b80601f01602080910402602001604051908101604052809291908181526020018280546106079061301b565b80156106545780601f1061062957610100808354040283529160200191610654565b820191906000526020600020905b81548152906001019060200180831161063757829003601f168201915b505050505081565b60606002805461066b9061301b565b80601f01602080910402602001604051908101604052809291908181526020018280546106979061301b565b80156106e45780601f106106b9576101008083540402835291602001916106e4565b820191906000526020600020905b8154815290600101906020018083116106c757829003601f168201915b5050505050905090565b6000818152600460205260408120546001600160a01b031661076c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061079382610cab565b9050806001600160a01b0316836001600160a01b0316036108005760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610763565b336001600160a01b038216148061081c575061081c8133610583565b61088e5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610763565b61089883836115c4565b505050565b6108a8335b82611632565b6108c45760405162461bcd60e51b815260040161076390613055565b610898838383611729565b6000828152602081905260409020600101546108eb81336118d6565b610898838361193a565b600061090083610db6565b82106109625760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610763565b506001600160a01b03919091166000908152600860209081526040808320938352929052205490565b6001600160a01b03811633146109fb5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610763565b610a05828261195c565b5050565b61089883838360405180602001604052806000815250610f81565b610a2d336108a2565b610a925760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610763565b610a9b8161197e565b50565b6000610aa9600a5490565b8210610b0c5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610763565b600a8281548110610b1f57610b1f6130a6565b90600052602060002001549050919050565b610b5b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610ebd565b610bb35760405162461bcd60e51b815260206004820152602360248201527f6d696e743a206d7573742068617665206d696e74657220726f6c6520746f206d6044820152621a5b9d60ea1b6064820152608401610763565b6000610bbe600d5490565b6001600160a01b03841660009081526012602052604090205490915060ff1615610c2a5760405162461bcd60e51b815260206004820181905260248201527f6d696e743a20636f6c6c656374696f6e2065786973747320616c72656164792e6044820152606401610763565b610c38600d80546001019055565b6000818152600f6020908152604080832080546001600160a01b03199081166001600160a01b0389811691821790935585526010845282852086905560118452828520805490911691871691909117905560129091529020805460ff19166001179055610ca58482611a2d565b50505050565b6000818152600460205260408120546001600160a01b0316806105bc5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610763565b6040516301ffc9a760e01b80825260048201526000907f01ffc9a7a5cef8baa21ed3c5c0d7e23accb804b619e9333b597f47a0d84076e2906001600160a01b038416906301ffc9a790602401602060405180830381865afa158015610d8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610daf91906130bc565b9392505050565b60006001600160a01b038216610e215760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610763565b506001600160a01b031660009081526005602052604090205490565b6060816001600160a01b03166306fdde036040518163ffffffff1660e01b8152600401600060405180830381865afa158015610e7d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526105bc91908101906130d9565b6000828152600160205260408120610daf9083611b83565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60606003805461066b9061301b565b610f00600033610ebd565b610f4c5760405162461bcd60e51b815260206004820152601d60248201527f6164644d696e7465723a206e6f74207468652061646d696e20726f6c650000006044820152606401610763565b610a9b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a682611b8f565b610a05338383611b99565b610f8b3383611632565b610fa75760405162461bcd60e51b815260040161076390613055565b610ca584848484611c67565b6000818152600f60205260409020546060906001600160a01b03168015801590610ff357506000838152600460205260409020546001600160a01b031615155b6110575760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610763565b600061106282611c9a565b604080516020808201835260008083526001600160a01b03871681526013909152918220805493945090926110969061301b565b80601f01602080910402602001604051908101604052809291908181526020018280546110c29061301b565b801561110f5780601f106110e45761010080835404028352916020019161110f565b820191906000526020600020905b8154815290600101906020018083116110f257829003601f168201915b505050505090506000815111156111285780915061119f565b60405163101e076d60e31b81526001600160a01b038516600482015230906380f03b6890602401600060405180830381865afa92505050801561118d57506040513d6000823e601f3d908101601f1916820160405261118a91908101906130d9565b60015b1561119f5761119b81611e85565b9250505b604051636869e3d560e01b81526001600160a01b03851660048201526000903090636869e3d590602401602060405180830381865afa925050508015611202575060408051601f3d908101601f191682019092526111ff918101906130bc565b60015b1561120a5790505b611212612b6a565b6040518060c0016040528060948152602001613b906094913981526040805161016081019091526101338082526139dc602083013960208201528361125689612084565b60405160200161126792919061316c565b60408051808303601f1901815291815282810191909152805180820190915260078152661e17ba32bc3a1f60c91b602082015281600360200201819052506040518060a0016040528060678152602001613c24606791396080820190815260a08201868152604080518082018252600d81526c1e17ba32bc3a1f1e17b9bb339f60991b60208083019190915260c0860182905285518187015184880151606089015197519651955160009861132798949793969295909493929101613283565b6040516020818303038152906040529050600086600087511161136657604051806040016040528060048152602001634e6f6e6560e01b815250611368565b865b8561138d57604051806040016040528060028152602001614e6f60f01b8152506113aa565b6040518060400160405280600381526020016259657360e81b8152505b6040516020016113bc93929190613315565b6040516020818303038152906040529050600061140f6113db8c612084565b898a6113e687612185565b866040516020016113fb959493929190613423565b604051602081830303815290604052612185565b905080604051602001611422919061378d565b60408051601f198184030181529190529b9a5050505050505050505050565b60008181526001602052604081206105bc906122ef565b60008281526020819052604090206001015461147481336118d6565b610898838361195c565b611489600033610ebd565b6114e35760405162461bcd60e51b815260206004820152602560248201527f736574436f6c6c656374696f6e4e616d653a206e6f74207468652061646d696e60448201526420726f6c6560d81b6064820152608401610763565b6001600160a01b0383166000908152601360205260409020610ca5908383612b91565b6115108282610ebd565b610a05576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556115463390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000610daf836001600160a01b0384166122f9565b60006001600160e01b0319821663780e9d6360e01b14806105bc57506105bc82612348565b600081815260066020526040902080546001600160a01b0319166001600160a01b03841690811790915581906115f982610cab565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600460205260408120546001600160a01b03166116ab5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610763565b60006116b683610cab565b9050806001600160a01b0316846001600160a01b031614806116f15750836001600160a01b03166116e6846106ee565b6001600160a01b0316145b8061172157506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661173c82610cab565b6001600160a01b0316146117a05760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610763565b6001600160a01b0382166118025760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610763565b61180d838383612388565b6118186000826115c4565b6001600160a01b03831660009081526005602052604081208054600192906118419084906137e8565b90915550506001600160a01b038216600090815260056020526040812080546001929061186f9084906137ff565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4610898838383612393565b6118e08282610ebd565b610a05576118f8816001600160a01b03166014612422565b611903836020612422565b604051602001611914929190613817565b60408051601f198184030181529082905262461bcd60e51b825261076391600401612cec565b6119448282611506565b6000828152600160205260409020610898908261158a565b61196682826125be565b60008281526001602052604090206108989082612623565b600061198982610cab565b905061199781600084612388565b6119a26000836115c4565b6001600160a01b03811660009081526005602052604081208054600192906119cb9084906137e8565b909155505060008281526004602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4610a0581600084612393565b6001600160a01b038216611a835760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610763565b6000818152600460205260409020546001600160a01b031615611ae85760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610763565b611af460008383612388565b6001600160a01b0382166000908152600560205260408120805460019290611b1d9084906137ff565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4610a0560008383612393565b6000610daf8383612638565b610a05828261193a565b816001600160a01b0316836001600160a01b031603611bfa5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610763565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611c72848484611729565b611c7e84848484612662565b610ca55760405162461bcd60e51b81526004016107639061388c565b604080518082018252601081526f181899199a1a9b1b9c1cb0b131b232b360811b60208201528151602a80825260608281019094526001600160a01b0385169291600091602082018180368337019050509050600360fc1b81600081518110611d0557611d056130a6565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611d3457611d346130a6565b60200101906001600160f81b031916908160001a90535060005b6014811015611e7c5782600485611d6684600c6137ff565b60208110611d7657611d766130a6565b1a60f81b6001600160f81b031916901c60f81c60ff1681518110611d9c57611d9c6130a6565b01602001516001600160f81b03191682611db78360026138de565b611dc29060026137ff565b81518110611dd257611dd26130a6565b60200101906001600160f81b031916908160001a9053508284611df683600c6137ff565b60208110611e0657611e066130a6565b825191901a600f16908110611e1d57611e1d6130a6565b01602001516001600160f81b03191682611e388360026138de565b611e439060036137ff565b81518110611e5357611e536130a6565b60200101906001600160f81b031916908160001a90535080611e74816138fd565b915050611d4e565b50949350505050565b604080516018808252818301909252606091600091829160208201818036833701905050905060008490506000604051806080016040528060418152602001613b4f60419139905060005b8251811015611fcd5760188114611fcd5760005b8251811015611fba57828181518110611eff57611eff6130a6565b602001015160f81c60f81b6001600160f81b031916848381518110611f2657611f266130a6565b01602001516001600160f81b031916148015611f425750601886105b15611f9f57828181518110611f5957611f596130a6565b602001015160f81c60f81b858781518110611f7657611f766130a6565b60200101906001600160f81b031916908160001a90535085611f97816138fd565b965050611fa8565b60188614611fba575b80611fb2816138fd565b915050611ee4565b5080611fc5816138fd565b915050611ed0565b5060008467ffffffffffffffff811115611fe957611fe9612e54565b6040519080825280601f01601f191660200182016040528015612013576020820181803683370190505b50905060005b8581101561207957848181518110612033576120336130a6565b602001015160f81c60f81b828281518110612050576120506130a6565b60200101906001600160f81b031916908160001a90535080612071816138fd565b915050612019565b509695505050505050565b6060816000036120ab5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156120d557806120bf816138fd565b91506120ce9050600a8361392c565b91506120af565b60008167ffffffffffffffff8111156120f0576120f0612e54565b6040519080825280601f01601f19166020018201604052801561211a576020820181803683370190505b5090505b84156117215761212f6001836137e8565b915061213c600a86613940565b6121479060306137ff565b60f81b81838151811061215c5761215c6130a6565b60200101906001600160f81b031916908160001a90535061217e600a8661392c565b945061211e565b805160609060008190036121a9575050604080516020810190915260008152919050565b600060036121b88360026137ff565b6121c2919061392c565b6121cd9060046138de565b905060006121dc8260206137ff565b67ffffffffffffffff8111156121f4576121f4612e54565b6040519080825280601f01601f19166020018201604052801561221e576020820181803683370190505b5090506000604051806060016040528060408152602001613b0f604091399050600181016020830160005b868110156122aa576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101612249565b5060038606600181146122c457600281146122d5576122e1565b613d3d60f01b6001198301526122e1565b603d60f81b6000198301525b505050918152949350505050565b60006105bc825490565b6000818152600183016020526040812054612340575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556105bc565b5060006105bc565b60006001600160e01b031982166380ac58cd60e01b148061237957506001600160e01b03198216635b5e139f60e01b145b806105bc57506105bc82612763565b610898838383612788565b6001600160a01b03831615610898576000818152600f60209081526040808320546001600160a01b03908116845260119092529182902054915163f2fde38b60e01b8152848216600482015291169063f2fde38b90602401600060405180830381600087803b15801561240557600080fd5b505af1158015612419573d6000803e3d6000fd5b50505050505050565b606060006124318360026138de565b61243c9060026137ff565b67ffffffffffffffff81111561245457612454612e54565b6040519080825280601f01601f19166020018201604052801561247e576020820181803683370190505b509050600360fc1b81600081518110612499576124996130a6565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106124c8576124c86130a6565b60200101906001600160f81b031916908160001a90535060006124ec8460026138de565b6124f79060016137ff565b90505b600181111561256f576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061252b5761252b6130a6565b1a60f81b828281518110612541576125416130a6565b60200101906001600160f81b031916908160001a90535060049490941c9361256881613954565b90506124fa565b508315610daf5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610763565b6125c88282610ebd565b15610a05576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000610daf836001600160a01b0384166127fa565b600082600001828154811061264f5761264f6130a6565b9060005260206000200154905092915050565b60006001600160a01b0384163b1561275857604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906126a690339089908890889060040161396b565b6020604051808303816000875af19250505080156126e1575060408051601f3d908101601f191682019092526126de918101906139a8565b60015b61273e573d80801561270f576040519150601f19603f3d011682016040523d82523d6000602084013e612714565b606091505b5080516000036127365760405162461bcd60e51b81526004016107639061388c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611721565b506001949350505050565b60006001600160e01b03198216635a05180f60e01b14806105bc57506105bc826128ed565b612793838383612922565b600c5460ff16156108985760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b6064820152608401610763565b600081815260018301602052604081205480156128e357600061281e6001836137e8565b8554909150600090612832906001906137e8565b9050818114612897576000866000018281548110612852576128526130a6565b9060005260206000200154905080876000018481548110612875576128756130a6565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806128a8576128a86139c5565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506105bc565b60009150506105bc565b60006001600160e01b03198216637965db0b60e01b14806105bc57506301ffc9a760e01b6001600160e01b03198316146105bc565b6001600160a01b03831661297d5761297881600a80546000838152600b60205260408120829055600182018355919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155565b6129a0565b816001600160a01b0316836001600160a01b0316146129a0576129a083826129da565b6001600160a01b0382166129b75761089881612a77565b826001600160a01b0316826001600160a01b031614610898576108988282612b26565b600060016129e784610db6565b6129f191906137e8565b600083815260096020526040902054909150808214612a44576001600160a01b03841660009081526008602090815260408083208584528252808320548484528184208190558352600990915290208190555b5060009182526009602090815260408084208490556001600160a01b039094168352600881528383209183525290812055565b600a54600090612a89906001906137e8565b6000838152600b6020526040812054600a8054939450909284908110612ab157612ab16130a6565b9060005260206000200154905080600a8381548110612ad257612ad26130a6565b6000918252602080832090910192909255828152600b9091526040808220849055858252812055600a805480612b0a57612b0a6139c5565b6001900381819060005260206000200160009055905550505050565b6000612b3183610db6565b6001600160a01b039093166000908152600860209081526040808320868452825280832085905593825260099052919091209190915550565b6040518060e001604052806007905b6060815260200190600190039081612b795790505090565b828054612b9d9061301b565b90600052602060002090601f016020900481019282612bbf5760008555612c05565b82601f10612bd85782800160ff19823516178555612c05565b82800160010185558215612c05579182015b82811115612c05578235825591602001919060010190612bea565b50612c11929150612c15565b5090565b5b80821115612c115760008155600101612c16565b6001600160e01b031981168114610a9b57600080fd5b600060208284031215612c5257600080fd5b8135610daf81612c2a565b80356001600160a01b0381168114612c7457600080fd5b919050565b600060208284031215612c8b57600080fd5b610daf82612c5d565b60005b83811015612caf578181015183820152602001612c97565b83811115610ca55750506000910152565b60008151808452612cd8816020860160208601612c94565b601f01601f19169290920160200192915050565b602081526000610daf6020830184612cc0565b600060208284031215612d1157600080fd5b5035919050565b60008060408385031215612d2b57600080fd5b612d3483612c5d565b946020939093013593505050565b600080600060608486031215612d5757600080fd5b612d6084612c5d565b9250612d6e60208501612c5d565b9150604084013590509250925092565b60008060408385031215612d9157600080fd5b82359150612da160208401612c5d565b90509250929050565b600080600060608486031215612dbf57600080fd5b612dc884612c5d565b9250612dd660208501612c5d565b9150612de460408501612c5d565b90509250925092565b60008060408385031215612e0057600080fd5b50508035926020909101359150565b8015158114610a9b57600080fd5b60008060408385031215612e3057600080fd5b612e3983612c5d565b91506020830135612e4981612e0f565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612e9357612e93612e54565b604052919050565b600067ffffffffffffffff821115612eb557612eb5612e54565b50601f01601f191660200190565b60008060008060808587031215612ed957600080fd5b612ee285612c5d565b9350612ef060208601612c5d565b925060408501359150606085013567ffffffffffffffff811115612f1357600080fd5b8501601f81018713612f2457600080fd5b8035612f37612f3282612e9b565b612e6a565b818152886020838501011115612f4c57600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b600080600060408486031215612f8357600080fd5b612f8c84612c5d565b9250602084013567ffffffffffffffff80821115612fa957600080fd5b818601915086601f830112612fbd57600080fd5b813581811115612fcc57600080fd5b876020828501011115612fde57600080fd5b6020830194508093505050509250925092565b6000806040838503121561300457600080fd5b61300d83612c5d565b9150612da160208401612c5d565b600181811c9082168061302f57607f821691505b60208210810361304f57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156130ce57600080fd5b8151610daf81612e0f565b6000602082840312156130eb57600080fd5b815167ffffffffffffffff81111561310257600080fd5b8201601f8101841361311357600080fd5b8051613121612f3282612e9b565b81815285602083850101111561313657600080fd5b613147826020830160208601612c94565b95945050505050565b60008151613162818560208601612c94565b9290920192915050565b6000835161317e818460208801612c94565b80830190507f3c2f746578743e3c7465787420746578742d616e63686f723d226d6964646c6581527f2220783d223530252220793d2233302522207374726f6b652d77696474683d2260208201527f342220646f6d696e616e742d626173656c696e653d2268616e67696e6722207060408201527f61696e742d6f726465723d227374726f6b6522207374796c653d227374726f6b60608201527f653a236335366261333b66696c6c3a236666666666663b666f6e742d66616d6960808201527f6c793a73616e732d73657269663b666f6e742d73697a653a333270783b223e2360a082015283516132778160c0840160208801612c94565b0160c001949350505050565b6000885160206132968285838e01612c94565b8951918401916132a98184848e01612c94565b89519201916132bb8184848d01612c94565b88519201916132cd8184848c01612c94565b87519201916132df8184848b01612c94565b86519201916132f18184848a01612c94565b85519201916133038184848901612c94565b919091019a9950505050505050505050565b7f61747472696275746573223a5b7b2274726169745f74797065223a22436f6c6c81527132b1ba34b7b7111610113b30b63ab2911d1160711b602082015260008451613368816032850160208901612c94565b7f227d2c7b2274726169745f74797065223a224e616d65222c202276616c756522603291840191820152611d1160f11b605282015284516133b0816054840160208901612c94565b7f227d2c7b2274726169745f74797065223a2245524337323120436f6d706c6961605492909101918201526d373a111610113b30b63ab2911d1160911b60748201528351613405816082840160208801612c94565b63227d5d7d60e01b6082929091019182015260860195945050505050565b7f7b226e616d65223a202247617264656e2043656e74657220230000000000000081526000865161345b816019850160208b01612c94565b7f222c2265787465726e616c5f75726c223a2268747470733a2f2f726172697479601991840191820152722e67617264656e2f636f6c6c656374696f6e2f60681b603982015286516134b481604c840160208b01612c94565b7f222c20226465736372697074696f6e223a202254686973204e46542069732074604c92909101918201527f72616461626c652070726f6f66206f66206f776e65727368697020666f722061606c8201527f2047617264656e2043656e7465722e2054686520636f6c6c656374696f6e2066608c8201527f6f7220796f75722047617264656e2043656e746572206d757374206265206c6960ac8201527f73746564206f6e2068747470733a2f2f7261726974792e67617264656e2f206960cc8201527f6e206f7264657220746f20616c6c6f772074726164696e672e204f6e6365206c60ec8201527f69737465642c2069742077696c6c20626520617661696c61626c6520756e646561010c8201527f722074686973206c696e6b3a2068747470733a2f2f7261726974792e6761726461012c8201526d656e2f636f6c6c656374696f6e2f60901b61014c82015261378161377b61376c61376661361d61015a86018b613150565b7f2e20436f6c6c656374696f6e206f776e65727320686f6c64696e67207468697381527f204e4654206d61792073657420637573746f6d20726f79616c7469657320666f60208201527f722074726164696e67206f6e207261726974792e67617264656e207768696c6560408201527f20616e79206f7468657220686f6c646572206561726e7320666978656420302e60608201527f35252074726164696e6720666565732e2053657474696e67207570206665657360808201527f20666f7220796f75722047617264656e2043656e74657220686173206e6f206960a08201527f6d70616374206f6e2066656573206f6e206f74686572206d61726b6574706c6160c08201527f6365732e222c2022696d616765223a2022646174613a696d6167652f7376672b60e08201526a1e1b5b0ed8985cd94d8d0b60aa1b61010082015261010b0190565b88613150565b6211161160e91b815260030190565b85613150565b98975050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516137c581601d850160208701612c94565b91909101601d0192915050565b634e487b7160e01b600052601160045260246000fd5b6000828210156137fa576137fa6137d2565b500390565b60008219821115613812576138126137d2565b500190565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161384f816017850160208801612c94565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613880816028840160208801612c94565b01602801949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008160001904831182151516156138f8576138f86137d2565b500290565b60006001820161390f5761390f6137d2565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261393b5761393b613916565b500490565b60008261394f5761394f613916565b500690565b600081613963576139636137d2565b506000190190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061399e90830184612cc0565b9695505050505050565b6000602082840312156139ba57600080fd5b8151610daf81612c2a565b634e487b7160e01b600052603160045260246000fdfe3c7465787420746578742d616e63686f723d226d6964646c652220783d223530252220793d2232302522207374726f6b652d77696474683d22342220646f6d696e616e742d626173656c696e653d2268616e67696e6722207061696e742d6f726465723d227374726f6b6522207374796c653d227374726f6b653a236335366261333b66696c6c3a236666666666663b666f6e742d66616d696c793a73616e732d73657269663b666f6e742d73697a653a333270783b223e47617264656e2043656e7465723c2f746578743e3c7465787420746578742d616e63686f723d226d6964646c652220783d223530252220793d2236302522207374796c653d2266696c6c3a236666666666663b666f6e742d66616d696c793a73616e732d73657269663b666f6e742d73697a653a313570783b223e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f6162636465666768696a6b6c6d6e6f707172737475767778797a4142434445464748494a4b4c4d4e4f505152535455565758595a303132333435363738392d5f203c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302033353020333530223e3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d222366376338643922202f3e3c7465787420746578742d616e63686f723d226d6964646c652220783d223530252220793d2237302522207374796c653d2266696c6c3a236666666666663b666f6e742d66616d696c793a73616e732d73657269663b666f6e742d73697a653a313570783b223ea26469706673582212201b112c961c02e78f30c4a1badb077cf4667a8920908b5574a6c94e8c8da3dc6264736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001d47617264656e2043656e746572204f776e65727368697020546f6b656e000000000000000000000000000000000000000000000000000000000000000000000447434f5400000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): Garden Center Ownership Token
Arg [1] : symbol (string): GCOT
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 000000000000000000000000000000000000000000000000000000000000001d
Arg [3] : 47617264656e2043656e746572204f776e65727368697020546f6b656e000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [5] : 47434f5400000000000000000000000000000000000000000000000000000000
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.