Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
0 SIGN
Holders
106
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 SIGNLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
SignatureNFT
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.7; import {ERC721Tradable} from "./base/ERC721Tradable.sol"; import { Counters } from "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/Base64.sol"; // ,,_ // zd$$??= // z$$P? F:`c, _ // d$$, `c'we&&i ,=caRe // $$$$ sign,?888i ,=P"2?us" // $" " ?$$$,?888. ,-''`>, bee // $'joy,?$$,?888 ,h' "I$'J$e // ... `?$$$,"88,`$$h 88love'd$" // d$PP""?-,"?$$,?8h`$$,,88'$Q42" // ?,,_`=4c,?=,"?ye$s`?E2$'? ' // `""?==""=-"" `""-`'_,,,, // .eco?qualiJC,-,"=? // """=='?" contract SignatureNFT is ERC721Tradable { using Counters for Counters.Counter; Counters.Counter private _tokenIdCounter; error NotAuthorized(); struct Highlight { uint16 start; uint16 end; } // maps tokenId to the start and end of the highlighted text mapping(uint256 => Highlight) public selection; // stores IPFS gateway, in case it ever changes string public gateway = "https://ipfs.io/ipfs/"; // stores hash of image generator app string public imgHash = "QmYHGGTbqwFtfLFhhAKojVbmJwkVMNyqrniG9HLL1PYpyD"; // stores an arweave backup of the image generator for the external url metadata string public backup = "https://arweave.net/0b5HtyTwPgtWY72OENfI3Jz7ugkCzYDKcnRkpgLCx64"; //stores a reference to the final essay text string public essay = "https://arweave.net/wmn665qjC5J58QyFvaSJNEUpCmss1rfF-1b6xbTsxp4"; // A Kernel address for proper attribution address public creator; event NewSignature(address signer, uint256 indexed tokenId, uint16 start, uint16 end); modifier onlyCreator() { if (msg.sender != creator) { revert NotAuthorized(); } _; } constructor(address _proxyRegistryAddress, address _creator) ERC721Tradable("Signature Economies", "SIGN", _proxyRegistryAddress) { creator = _creator; } /** * @notice Link to contract metadata */ function contractURI() external pure returns (string memory) { return "https://arweave.net/hh7ANFDf_LvzktqhwOzMkIaOlvdh_T2_WQRY1kQsc1Y"; } /** @notice Set the royalties for the whole contract. Our intention is to set it to 10% in perpetuity. * @param recipient the royalties recipient - will always be pr1s0nart, for regulatory reasons. * @param value royalties value (between 0 and 10000) */ function setRoyalties(address recipient, uint256 value) external onlyCreator { _setRoyalties(recipient, value); } /** * @notice mints a unique NFT from some user-selected piece of text (which we make into an image & store in Arweave) * @param start the word index the chosen highlight starts on * @param end the word index where the chosen highlight ends */ function mintSelected(uint16 start, uint16 end) external { // The 510 character limit here is an arbitrary limit of our p5.js rendering script. We have to draw the line somewhere, // so long as you remember that this is merely a convention, waiting to be transcended. require(start < end && start >= 0 && end <= 13083 && end - start <= 463, "Invalid index"); uint256 newTokenId = _tokenIdCounter.current(); selection[newTokenId] = Highlight(start, end); _safeMint(creator, msg.sender, newTokenId); _tokenIdCounter.increment(); emit NewSignature(msg.sender, newTokenId, start, end); } /** * @notice this overrides the usual tokenURI to return base64 encoded metadata and, in particular, an animation_url rather than an * image field, because that is how secondary marketplaces will display the image generated by our little React img generator * living immutably on IPFS. * @param id the tokenId for which we are querying the metadata */ function tokenURI(uint256 id) public view override returns (string memory) { require(_exists(id), "not exist"); Highlight memory highlight = selection[id]; string memory image = string(abi.encodePacked(gateway,imgHash,'/#',Strings.toString(highlight.start),'-',Strings.toString(highlight.end))); string memory url = string(abi.encodePacked(backup,'/#',Strings.toString(highlight.start),'-',Strings.toString(highlight.end))); return string( abi.encodePacked( 'data:application/json;base64,', Base64.encode( bytes( abi.encodePacked( '{"name":"Signature NFT #',Strings.toString(id),'","description":"A unique sign of our times, selected to represent increasingly significant money in this infinite game we are playing together. As you consider these unique symbols, remember that wealth truly means having enough to share.","external_url":"',url,'","animation_url":"',image,'"}' ) ) ) ) ); } /** * @notice in case the IPFS gateway ever goes down and we need to move to another, more local, solution */ function updateGateway(string memory newGateway) external onlyCreator { gateway = newGateway; } }
// SPDX-License-Identifier: MIT /// @title ERC721Tradable /// /// An ERC721 contract that whitelists the OpenSea Proxy for easy listing & trading and allows us to set contract-wide royalty information. /// /// Based on work done originally by Dynamic Culture /// https://github.com/Dynamiculture/neurapunks-contract/blob/d250e955453773566ba54e64fdea39ee221bc3d4/contracts/ERC721Tradable.sol pragma solidity 0.8.7; import { ERC721 } from "./ERC721.sol"; import { ERC721URIStorage } from "./ERC721URIStorage.sol"; import { ERC2981ContractWideRoyalties, ERC2981Royalties } from "./ERC2981ContractWideRoyalties.sol"; contract OwnableDelegateProxy {} contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } contract ERC721Tradable is ERC721URIStorage, ERC2981ContractWideRoyalties { // OpenSea's Proxy Registry address proxyRegistryAddress; constructor( string memory _name, string memory _symbol, address _proxyRegistryAddress ) ERC721(_name, _symbol) { proxyRegistryAddress = _proxyRegistryAddress; } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721) { super._beforeTokenTransfer(from, to, tokenId); } function tokenURI(uint256 tokenId) public view virtual override(ERC721URIStorage) returns (string memory) { return super.tokenURI(tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC2981Royalties) returns (bool) { return super.supportsInterface(interfaceId); } /** * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings. */ function isApprovedForAll(address owner, address operator) public view override returns (bool) { // Whitelist OpenSea proxy contract for easy trading. ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); if (address(proxyRegistry.proxies(owner)) == operator) { return true; } return super.isApprovedForAll(owner, operator); } }
// 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/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 (last updated v4.5.0) (utils/Base64.sol) pragma solidity ^0.8.0; /** * @dev Provides a set of functions to operate with Base64 strings. * * _Available since v4.5._ */ library Base64 { /** * @dev Base64 Encoding/Decoding Table */ string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /** * @dev Converts a `bytes` to its Bytes64 `string` representation. */ function encode(bytes memory data) internal pure returns (string memory) { /** * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol */ if (data.length == 0) return ""; // Loads the table into memory string memory table = _TABLE; // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter // and split into 4 numbers of 6 bits. // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up // - `data.length + 2` -> Round up // - `/ 3` -> Number of 3-bytes chunks // - `4 *` -> 4 characters for each chunk string memory result = new string(4 * ((data.length + 2) / 3)); assembly { // Prepare the lookup table (skip the first "length" byte) let tablePtr := add(table, 1) // Prepare result pointer, jump over length let resultPtr := add(result, 32) // Run over the input, 3 bytes at a time for { let dataPtr := data let endPtr := add(data, mload(data)) } lt(dataPtr, endPtr) { } { // Advance 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // To write each character, shift the 3 bytes (18 bits) chunk // 4 times in blocks of 6 bits for each character (18, 12, 6, 0) // and apply logical AND with 0x3F which is the number of // the previous character in the ASCII table prior to the Base64 Table // The result is then added to the table to get the character to write, // and finally write it in the result pointer but with a left shift // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F)))) resultPtr := add(resultPtr, 1) // Advance } // When data `bytes` is not exactly 3 bytes long // it is padded with `=` characters at the end switch mod(mload(data), 3) case 1 { mstore8(sub(resultPtr, 1), 0x3d) mstore8(sub(resultPtr, 2), 0x3d) } case 2 { mstore8(sub(resultPtr, 1), 0x3d) } } return result; } }
// SPDX-License-Identifier: MIT /// @title ERC721 Token Implementation // LICENSE // ERC721.sol modifies OpenZeppelin's ERC721.sol: // https://github.com/OpenZeppelin/openzeppelin-contracts/blob/6618f9f18424ade44116d0221719f4c93be6a078/contracts/token/ERC721/ERC721.sol // // ERC721.sol source code copyright OpenZeppelin licensed under the MIT License. // With modifications by Nounders DAO. // // // MODIFICATIONS: // `_safeMint` and `_mint` contain an additional `creator` argument and // emit two `Transfer` logs, rather than one. The first log displays the // transfer (mint) from `address(0)` to the `creator`. The second displays the // transfer from the `creator` to the `to` address. This enables correct // attribution on various NFT marketplaces. pragma solidity 0.8.7; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/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 { require(operator != _msgSender(), 'ERC721: approve to caller'); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), 'ERC721: transfer caller is not owner nor approved'); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), 'ERC721: transfer caller is not owner nor approved'); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), 'ERC721: transfer to non ERC721Receiver implementer'); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), 'ERC721: operator query for nonexistent token'); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId`, transfers it to `to`, and emits two log events - * 1. Credits the `minter` with the mint. * 2. Shows transfer from the `minter` 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 creator, address to, uint256 tokenId ) internal virtual { _safeMint(creator, 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 creator, address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(creator, to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), 'ERC721: transfer to non ERC721Receiver implementer' ); } /** * @dev Mints `tokenId`, transfers it to `to`, and emits two log events - * 1. Credits the `creator` with the mint. * 2. Shows transfer from the `creator` 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 creator, 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), creator, tokenId); emit Transfer(creator, to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, 'ERC721: transfer of token that is not own'); require(to != address(0), 'ERC721: transfer to the zero address'); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert('ERC721: transfer to non ERC721Receiver implementer'); } else { 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 {} }
// SPDX-License-Identifier: MIT /// @title ERC721 URI Storage Extension // LICENSE // ERC721.sol modifies OpenZeppelin's ERC721URIStorage.sol: // https://github.com/OpenZeppelin/openzeppelin-contracts/blob/6618f9f18424ade44116d0221719f4c93be6a078/contracts/token/ERC721/extensions/ERC721URIStorage.sol // // ERC721URIStorage.sol source code copyright OpenZeppelin licensed under the MIT License. // With modifications by Nounders DAO. // // MODIFICATIONS: // Consumes modified `ERC721` contract. See notes in `ERC721.sol`. pragma solidity 0.8.7; import "./ERC721.sol"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @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 override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } }
// SPDX-License-Identifier: MIT /// @title ERC721 URI Storage Extension /// This contract and the contracts it imports are copied from our good friend dievardump, with deep thanks and love. /// https://github.com/dievardump/EIP2981-implementation/blob/9d7da405f16adfddb2b9a528d146e1049fcf5e5d/contracts/ERC2981ContractWideRoyalties.sol /// /// We have modified the pragma and the way imports are specified. pragma solidity 0.8.7; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; import { ERC2981Royalties, IERC2981Royalties } from './ERC2981Royalties.sol'; /// @dev This is a contract used to add ERC2981 support to ERC721 contracts /// @dev This implementation has the same royalties for each and every token abstract contract ERC2981ContractWideRoyalties is ERC2981Royalties { RoyaltyInfo private _royalties; /// @dev Sets token royalties /// @param recipient recipient of the royalties /// @param value percentage (using 2 decimals - 10000 = 100, 0 = 0) function _setRoyalties(address recipient, uint256 value) internal { require(value <= 10000, 'ERC2981Royalties: Too high'); _royalties = RoyaltyInfo(recipient, uint24(value)); } /// @inheritdoc IERC2981Royalties function royaltyInfo(uint256, uint256 value) external view override returns (address receiver, uint256 royaltyAmount) { RoyaltyInfo memory royalties = _royalties; receiver = royalties.recipient; royaltyAmount = (value * royalties.amount) / 10000; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (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 (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 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 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 pragma solidity 0.8.7; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; import { IERC2981Royalties } from '../interfaces/IERC2981Royalties.sol'; /// @dev This is a contract used to add ERC2981 support to ERC721 and 1155 abstract contract ERC2981Royalties is ERC165, IERC2981Royalties { struct RoyaltyInfo { address recipient; uint24 amount; } /// @inheritdoc ERC165 function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC2981Royalties).interfaceId || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.7; /// @title IERC2981Royalties /// @dev Interface for the ERC2981 - Token Royalty standard interface IERC2981Royalties { /// @notice Called with the sale price to determine how much royalty // is owed and to whom. /// @param _tokenId - the NFT asset queried for royalty information /// @param _value - the sale price of the NFT asset specified by _tokenId /// @return _receiver - address of who should be sent the royalty payment /// @return _royaltyAmount - the royalty payment amount for value sale price function royaltyInfo(uint256 _tokenId, uint256 _value) external view returns (address _receiver, uint256 _royaltyAmount); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"},{"internalType":"address","name":"_creator","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"NotAuthorized","type":"error"},{"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":"signer","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint16","name":"start","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"end","type":"uint16"}],"name":"NewSignature","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"backup","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"creator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"essay","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gateway","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"imgHash","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"uint16","name":"start","type":"uint16"},{"internalType":"uint16","name":"end","type":"uint16"}],"name":"mintSelected","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"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":"uint256","name":"","type":"uint256"}],"name":"selection","outputs":[{"internalType":"uint16","name":"start","type":"uint16"},{"internalType":"uint16","name":"end","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setRoyalties","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":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newGateway","type":"string"}],"name":"updateGateway","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c0604052601560808190527f68747470733a2f2f697066732e696f2f697066732f000000000000000000000060a09081526200004091600b9190620001c4565b506040518060600160405280602e815260200162002425602e913980516200007191600c91602090910190620001c4565b506040518060600160405280603f815260200162002492603f91398051620000a291600d91602090910190620001c4565b506040518060600160405280603f815260200162002453603f91398051620000d391600e91602090910190620001c4565b50348015620000e157600080fd5b50604051620024d1380380620024d1833981016040819052620001049162000287565b6040518060400160405280601381526020017f5369676e61747572652045636f6e6f6d696573000000000000000000000000008152506040518060400160405280600481526020016329a4a3a760e11b815250838282816000908051906020019062000172929190620001c4565b50805162000188906001906020840190620001c4565b5050600880546001600160a01b039384166001600160a01b031991821617909155600f805496909316951694909417905550620002fc92505050565b828054620001d290620002bf565b90600052602060002090601f016020900481019282620001f6576000855562000241565b82601f106200021157805160ff191683800117855562000241565b8280016001018555821562000241579182015b828111156200024157825182559160200191906001019062000224565b506200024f92915062000253565b5090565b5b808211156200024f576000815560010162000254565b80516001600160a01b03811681146200028257600080fd5b919050565b600080604083850312156200029b57600080fd5b620002a6836200026a565b9150620002b6602084016200026a565b90509250929050565b600181811c90821680620002d457607f821691505b60208210811415620002f657634e487b7160e01b600052602260045260246000fd5b50919050565b612119806200030c6000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c80636352211e116100c3578063b88d4fde1161007c578063b88d4fde146102da578063c87b56dd146102ed578063d016fc2214610300578063e726168714610349578063e8a3d4851461035c578063e985e9c51461036457600080fd5b80636352211e146102655780636f951f381461027857806370a082311461028b5780638c7ea24b146102ac57806395d89b41146102bf578063a22cb465146102c757600080fd5b806323b872dd1161011557806323b872dd146101f55780632a55205a14610208578063427158f61461023a57806342842e0e1461024257806350a9e127146102555780635a41c8551461025d57600080fd5b806301ffc9a71461015d57806302d05d3f1461018557806306fdde03146101b0578063081812fc146101c5578063095ea7b3146101d8578063116191b6146101ed575b600080fd5b61017061016b366004611924565b610377565b60405190151581526020015b60405180910390f35b600f54610198906001600160a01b031681565b6040516001600160a01b03909116815260200161017c565b6101b8610388565b60405161017c9190611e0d565b6101986101d33660046119f7565b61041a565b6101eb6101e63660046118f8565b6104b4565b005b6101b86105ca565b6101eb610203366004611804565b610658565b61021b610216366004611a10565b610689565b604080516001600160a01b03909316835260208301919091520161017c565b6101b86106de565b6101eb610250366004611804565b6106eb565b6101b8610706565b6101b8610713565b6101986102733660046119f7565b610720565b6101eb6102863660046119c4565b610797565b61029e6102993660046117a7565b6108dd565b60405190815260200161017c565b6101eb6102ba3660046118f8565b610964565b6101b861099d565b6101eb6102d53660046118c5565b6109ac565b6101eb6102e8366004611845565b610a71565b6101b86102fb3660046119f7565b610aa9565b61032e61030e3660046119f7565b600a6020526000908152604090205461ffff808216916201000090041682565b6040805161ffff93841681529290911660208301520161017c565b6101eb61035736600461197b565b610c1a565b6101b8610c58565b6101706103723660046117cb565b610c78565b600061038282610d48565b92915050565b60606000805461039790611f74565b80601f01602080910402602001604051908101604052809291908181526020018280546103c390611f74565b80156104105780601f106103e557610100808354040283529160200191610410565b820191906000526020600020905b8154815290600101906020018083116103f357829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166104985760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006104bf82610720565b9050806001600160a01b0316836001600160a01b0316141561052d5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161048f565b336001600160a01b038216148061054957506105498133610c78565b6105bb5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161048f565b6105c58383610d6d565b505050565b600b80546105d790611f74565b80601f016020809104026020016040519081016040528092919081815260200182805461060390611f74565b80156106505780601f1061062557610100808354040283529160200191610650565b820191906000526020600020905b81548152906001019060200180831161063357829003601f168201915b505050505081565b6106623382610ddb565b61067e5760405162461bcd60e51b815260040161048f90611e72565b6105c5838383610eaa565b604080518082019091526007546001600160a01b038116808352600160a01b90910462ffffff16602083018190529091600091612710906106ca9086611eef565b6106d49190611edb565b9150509250929050565b600e80546105d790611f74565b6105c583838360405180602001604052806000815250610a71565b600d80546105d790611f74565b600c80546105d790611f74565b6000818152600260205260408120546001600160a01b0316806103825760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161048f565b8061ffff168261ffff161080156107ac575060015b80156107be575061331b8161ffff1611155b80156107d957506101cf6107d28383611f0e565b61ffff1611155b6108155760405162461bcd60e51b815260206004820152600d60248201526c092dcecc2d8d2c840d2dcc8caf609b1b604482015260640161048f565b600061082060095490565b60408051808201825261ffff808716825285811660208084019182526000868152600a909152939093209151825493518216620100000263ffffffff19909416911617919091179055600f54909150610883906001600160a01b0316338361104a565b610891600980546001019055565b6040805133815261ffff8581166020830152841681830152905182917f33544f5c3a1a056bc1ca444c63ba29f441dad27582b6fe53231f9ba7f197c52b919081900360600190a2505050565b60006001600160a01b0382166109485760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161048f565b506001600160a01b031660009081526003602052604090205490565b600f546001600160a01b0316331461098f5760405163ea8e4eb560e01b815260040160405180910390fd5b6109998282611065565b5050565b60606001805461039790611f74565b6001600160a01b038216331415610a055760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161048f565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610a7b3383610ddb565b610a975760405162461bcd60e51b815260040161048f90611e72565b610aa384848484611101565b50505050565b6000818152600260205260409020546060906001600160a01b0316610afc5760405162461bcd60e51b81526020600482015260096024820152681b9bdd08195e1a5cdd60ba1b604482015260640161048f565b6000828152600a6020908152604080832081518083019092525461ffff8082168084526201000090920416928201929092529190600b90600c90610b3f90611134565b610b50856020015161ffff16611134565b604051602001610b639493929190611b14565b60405160208183030381529060405290506000600d610b89846000015161ffff16611134565b610b9a856020015161ffff16611134565b604051602001610bac93929190611b74565b6040516020818303038152906040529050610bf1610bc986611134565b8284604051602001610bdd93929190611bca565b604051602081830303815290604052611232565b604051602001610c019190611d95565b6040516020818303038152906040529350505050919050565b600f546001600160a01b03163314610c455760405163ea8e4eb560e01b815260040160405180910390fd5b805161099990600b906020840190611681565b60606040518060600160405280603f81526020016120a5603f9139905090565b60085460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b158015610cc557600080fd5b505afa158015610cd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cfd919061195e565b6001600160a01b03161415610d16576001915050610382565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b60006001600160e01b0319821663152a902d60e11b1480610382575061038282611386565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610da282610720565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316610e545760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161048f565b6000610e5f83610720565b9050806001600160a01b0316846001600160a01b03161480610e9a5750836001600160a01b0316610e8f8461041a565b6001600160a01b0316145b80610d405750610d408185610c78565b826001600160a01b0316610ebd82610720565b6001600160a01b031614610f255760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161048f565b6001600160a01b038216610f875760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161048f565b610f92600082610d6d565b6001600160a01b0383166000908152600360205260408120805460019290610fbb908490611f31565b90915550506001600160a01b0382166000908152600360205260408120805460019290610fe9908490611ec3565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6105c5838383604051806020016040528060008152506113d6565b6127108111156110b75760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f2068696768000000000000604482015260640161048f565b604080518082019091526001600160a01b0390921680835262ffffff909116602090920182905260078054600160a01b9093026001600160b81b0319909316909117919091179055565b61110c848484610eaa565b611118848484846113ea565b610aa35760405162461bcd60e51b815260040161048f90611e20565b6060816111585750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611182578061116c81611faf565b915061117b9050600a83611edb565b915061115c565b60008167ffffffffffffffff81111561119d5761119d612020565b6040519080825280601f01601f1916602001820160405280156111c7576020820181803683370190505b5090505b8415610d40576111dc600183611f31565b91506111e9600a86611fca565b6111f4906030611ec3565b60f81b8183815181106112095761120961200a565b60200101906001600160f81b031916908160001a90535061122b600a86611edb565b94506111cb565b606081516000141561125257505060408051602081019091526000815290565b600060405180606001604052806040815260200161206560409139905060006003845160026112819190611ec3565b61128b9190611edb565b611296906004611eef565b67ffffffffffffffff8111156112ae576112ae612020565b6040519080825280601f01601f1916602001820160405280156112d8576020820181803683370190505b509050600182016020820185865187015b80821015611344576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f81168501518453506001830192506112e9565b505060038651066001811461136057600281146113735761137b565b603d6001830353603d600283035361137b565b603d60018303535b509195945050505050565b60006001600160e01b031982166380ac58cd60e01b14806113b757506001600160e01b03198216635b5e139f60e01b145b8061038257506301ffc9a760e01b6001600160e01b0319831614610382565b6113e18484846114f7565b61111860008484845b60006001600160a01b0384163b156114ec57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061142e903390899088908890600401611dda565b602060405180830381600087803b15801561144857600080fd5b505af1925050508015611478575060408051601f3d908101601f1916820190925261147591810190611941565b60015b6114d2573d8080156114a6576040519150601f19603f3d011682016040523d82523d6000602084013e6114ab565b606091505b5080516114ca5760405162461bcd60e51b815260040161048f90611e20565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610d40565b506001949350505050565b6001600160a01b03821661154d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161048f565b6000818152600260205260409020546001600160a01b0316156115b25760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161048f565b6001600160a01b03821660009081526003602052604081208054600192906115db908490611ec3565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03868116919091179091559051839291861691907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b82805461168d90611f74565b90600052602060002090601f0160209004810192826116af57600085556116f5565b82601f106116c857805160ff19168380011785556116f5565b828001600101855582156116f5579182015b828111156116f55782518255916020019190600101906116da565b50611701929150611705565b5090565b5b808211156117015760008155600101611706565b600067ffffffffffffffff8084111561173557611735612020565b604051601f8501601f19908116603f0116810190828211818310171561175d5761175d612020565b8160405280935085815286868601111561177657600080fd5b858560208301376000602087830101525050509392505050565b803561ffff811681146117a257600080fd5b919050565b6000602082840312156117b957600080fd5b81356117c481612036565b9392505050565b600080604083850312156117de57600080fd5b82356117e981612036565b915060208301356117f981612036565b809150509250929050565b60008060006060848603121561181957600080fd5b833561182481612036565b9250602084013561183481612036565b929592945050506040919091013590565b6000806000806080858703121561185b57600080fd5b843561186681612036565b9350602085013561187681612036565b925060408501359150606085013567ffffffffffffffff81111561189957600080fd5b8501601f810187136118aa57600080fd5b6118b98782356020840161171a565b91505092959194509250565b600080604083850312156118d857600080fd5b82356118e381612036565b9150602083013580151581146117f957600080fd5b6000806040838503121561190b57600080fd5b823561191681612036565b946020939093013593505050565b60006020828403121561193657600080fd5b81356117c48161204e565b60006020828403121561195357600080fd5b81516117c48161204e565b60006020828403121561197057600080fd5b81516117c481612036565b60006020828403121561198d57600080fd5b813567ffffffffffffffff8111156119a457600080fd5b8201601f810184136119b557600080fd5b610d408482356020840161171a565b600080604083850312156119d757600080fd5b6119e083611790565b91506119ee60208401611790565b90509250929050565b600060208284031215611a0957600080fd5b5035919050565b60008060408385031215611a2357600080fd5b50508035926020909101359150565b60008151808452611a4a816020860160208601611f48565b601f01601f19169290920160200192915050565b60008151611a70818560208601611f48565b9290920192915050565b8054600090600181811c9080831680611a9457607f831692505b6020808410821415611ab657634e487b7160e01b600052602260045260246000fd5b818015611aca5760018114611adb57611b08565b60ff19861689528489019650611b08565b60008881526020902060005b86811015611b005781548b820152908501908301611ae7565b505084890196505b50505050505092915050565b6000611b29611b238388611a7a565b86611a7a565b612f2360f01b81528451611b44816002840160208901611f48565b602d60f81b600292909101918201528351611b66816003840160208801611f48565b016003019695505050505050565b6000611b808286611a7a565b612f2360f01b81528451611b9b816002840160208901611f48565b602d60f81b600292909101918201528351611bbd816003840160208801611f48565b0160030195945050505050565b7f7b226e616d65223a225369676e6174757265204e465420230000000000000000815260008451611c02816018850160208901611f48565b7f222c226465736372697074696f6e223a224120756e69717565207369676e206f6018918401918201527f66206f75722074696d65732c2073656c656374656420746f207265707265736560388201527f6e7420696e6372656173696e676c79207369676e69666963616e74206d6f6e6560588201527f7920696e207468697320696e66696e6974652067616d6520776520617265207060788201527f6c6179696e6720746f6765746865722e20417320796f7520636f6e736964657260988201527f20746865736520756e697175652073796d626f6c732c2072656d656d6265722060b88201527f74686174207765616c7468207472756c79206d65616e7320686176696e67206560d88201527f6e6f75676820746f2073686172652e222c2265787465726e616c5f75726c223a60f8820152601160f91b610118820152611d8b611d7d611d77611d58610119850189611a5e565b7211161130b734b6b0ba34b7b72fbab936111d1160691b815260130190565b86611a5e565b61227d60f01b815260020190565b9695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251611dcd81601d850160208701611f48565b91909101601d0192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611d8b90830184611a32565b6020815260006117c46020830184611a32565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115611ed657611ed6611fde565b500190565b600082611eea57611eea611ff4565b500490565b6000816000190483118215151615611f0957611f09611fde565b500290565b600061ffff83811690831681811015611f2957611f29611fde565b039392505050565b600082821015611f4357611f43611fde565b500390565b60005b83811015611f63578181015183820152602001611f4b565b83811115610aa35750506000910152565b600181811c90821680611f8857607f821691505b60208210811415611fa957634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611fc357611fc3611fde565b5060010190565b600082611fd957611fd9611ff4565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461204b57600080fd5b50565b6001600160e01b03198116811461204b57600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f68747470733a2f2f617277656176652e6e65742f686837414e4644665f4c767a6b747168774f7a4d6b49614f6c7664685f54325f57515259316b5173633159a2646970667358221220e39c27ea85b88e391d135c02ef5076ec05ac6c4109589180b4bcc7d561e4c9be64736f6c63430008070033516d59484747546271774674664c466868414b6f6a56626d4a776b564d4e7971726e694739484c4c31505970794468747470733a2f2f617277656176652e6e65742f776d6e363635716a43354a35385179467661534a4e455570436d7373317266462d3162367862547378703468747470733a2f2f617277656176652e6e65742f3062354874795477506774575937324f454e6649334a7a3775676b437a59444b636e526b70674c43783634000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000007dac9fc15c1db4379d75a6e3f330ae849dffce18
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101585760003560e01c80636352211e116100c3578063b88d4fde1161007c578063b88d4fde146102da578063c87b56dd146102ed578063d016fc2214610300578063e726168714610349578063e8a3d4851461035c578063e985e9c51461036457600080fd5b80636352211e146102655780636f951f381461027857806370a082311461028b5780638c7ea24b146102ac57806395d89b41146102bf578063a22cb465146102c757600080fd5b806323b872dd1161011557806323b872dd146101f55780632a55205a14610208578063427158f61461023a57806342842e0e1461024257806350a9e127146102555780635a41c8551461025d57600080fd5b806301ffc9a71461015d57806302d05d3f1461018557806306fdde03146101b0578063081812fc146101c5578063095ea7b3146101d8578063116191b6146101ed575b600080fd5b61017061016b366004611924565b610377565b60405190151581526020015b60405180910390f35b600f54610198906001600160a01b031681565b6040516001600160a01b03909116815260200161017c565b6101b8610388565b60405161017c9190611e0d565b6101986101d33660046119f7565b61041a565b6101eb6101e63660046118f8565b6104b4565b005b6101b86105ca565b6101eb610203366004611804565b610658565b61021b610216366004611a10565b610689565b604080516001600160a01b03909316835260208301919091520161017c565b6101b86106de565b6101eb610250366004611804565b6106eb565b6101b8610706565b6101b8610713565b6101986102733660046119f7565b610720565b6101eb6102863660046119c4565b610797565b61029e6102993660046117a7565b6108dd565b60405190815260200161017c565b6101eb6102ba3660046118f8565b610964565b6101b861099d565b6101eb6102d53660046118c5565b6109ac565b6101eb6102e8366004611845565b610a71565b6101b86102fb3660046119f7565b610aa9565b61032e61030e3660046119f7565b600a6020526000908152604090205461ffff808216916201000090041682565b6040805161ffff93841681529290911660208301520161017c565b6101eb61035736600461197b565b610c1a565b6101b8610c58565b6101706103723660046117cb565b610c78565b600061038282610d48565b92915050565b60606000805461039790611f74565b80601f01602080910402602001604051908101604052809291908181526020018280546103c390611f74565b80156104105780601f106103e557610100808354040283529160200191610410565b820191906000526020600020905b8154815290600101906020018083116103f357829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166104985760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006104bf82610720565b9050806001600160a01b0316836001600160a01b0316141561052d5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161048f565b336001600160a01b038216148061054957506105498133610c78565b6105bb5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161048f565b6105c58383610d6d565b505050565b600b80546105d790611f74565b80601f016020809104026020016040519081016040528092919081815260200182805461060390611f74565b80156106505780601f1061062557610100808354040283529160200191610650565b820191906000526020600020905b81548152906001019060200180831161063357829003601f168201915b505050505081565b6106623382610ddb565b61067e5760405162461bcd60e51b815260040161048f90611e72565b6105c5838383610eaa565b604080518082019091526007546001600160a01b038116808352600160a01b90910462ffffff16602083018190529091600091612710906106ca9086611eef565b6106d49190611edb565b9150509250929050565b600e80546105d790611f74565b6105c583838360405180602001604052806000815250610a71565b600d80546105d790611f74565b600c80546105d790611f74565b6000818152600260205260408120546001600160a01b0316806103825760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161048f565b8061ffff168261ffff161080156107ac575060015b80156107be575061331b8161ffff1611155b80156107d957506101cf6107d28383611f0e565b61ffff1611155b6108155760405162461bcd60e51b815260206004820152600d60248201526c092dcecc2d8d2c840d2dcc8caf609b1b604482015260640161048f565b600061082060095490565b60408051808201825261ffff808716825285811660208084019182526000868152600a909152939093209151825493518216620100000263ffffffff19909416911617919091179055600f54909150610883906001600160a01b0316338361104a565b610891600980546001019055565b6040805133815261ffff8581166020830152841681830152905182917f33544f5c3a1a056bc1ca444c63ba29f441dad27582b6fe53231f9ba7f197c52b919081900360600190a2505050565b60006001600160a01b0382166109485760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161048f565b506001600160a01b031660009081526003602052604090205490565b600f546001600160a01b0316331461098f5760405163ea8e4eb560e01b815260040160405180910390fd5b6109998282611065565b5050565b60606001805461039790611f74565b6001600160a01b038216331415610a055760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161048f565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610a7b3383610ddb565b610a975760405162461bcd60e51b815260040161048f90611e72565b610aa384848484611101565b50505050565b6000818152600260205260409020546060906001600160a01b0316610afc5760405162461bcd60e51b81526020600482015260096024820152681b9bdd08195e1a5cdd60ba1b604482015260640161048f565b6000828152600a6020908152604080832081518083019092525461ffff8082168084526201000090920416928201929092529190600b90600c90610b3f90611134565b610b50856020015161ffff16611134565b604051602001610b639493929190611b14565b60405160208183030381529060405290506000600d610b89846000015161ffff16611134565b610b9a856020015161ffff16611134565b604051602001610bac93929190611b74565b6040516020818303038152906040529050610bf1610bc986611134565b8284604051602001610bdd93929190611bca565b604051602081830303815290604052611232565b604051602001610c019190611d95565b6040516020818303038152906040529350505050919050565b600f546001600160a01b03163314610c455760405163ea8e4eb560e01b815260040160405180910390fd5b805161099990600b906020840190611681565b60606040518060600160405280603f81526020016120a5603f9139905090565b60085460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b158015610cc557600080fd5b505afa158015610cd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cfd919061195e565b6001600160a01b03161415610d16576001915050610382565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b60006001600160e01b0319821663152a902d60e11b1480610382575061038282611386565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610da282610720565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316610e545760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161048f565b6000610e5f83610720565b9050806001600160a01b0316846001600160a01b03161480610e9a5750836001600160a01b0316610e8f8461041a565b6001600160a01b0316145b80610d405750610d408185610c78565b826001600160a01b0316610ebd82610720565b6001600160a01b031614610f255760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161048f565b6001600160a01b038216610f875760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161048f565b610f92600082610d6d565b6001600160a01b0383166000908152600360205260408120805460019290610fbb908490611f31565b90915550506001600160a01b0382166000908152600360205260408120805460019290610fe9908490611ec3565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6105c5838383604051806020016040528060008152506113d6565b6127108111156110b75760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f2068696768000000000000604482015260640161048f565b604080518082019091526001600160a01b0390921680835262ffffff909116602090920182905260078054600160a01b9093026001600160b81b0319909316909117919091179055565b61110c848484610eaa565b611118848484846113ea565b610aa35760405162461bcd60e51b815260040161048f90611e20565b6060816111585750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611182578061116c81611faf565b915061117b9050600a83611edb565b915061115c565b60008167ffffffffffffffff81111561119d5761119d612020565b6040519080825280601f01601f1916602001820160405280156111c7576020820181803683370190505b5090505b8415610d40576111dc600183611f31565b91506111e9600a86611fca565b6111f4906030611ec3565b60f81b8183815181106112095761120961200a565b60200101906001600160f81b031916908160001a90535061122b600a86611edb565b94506111cb565b606081516000141561125257505060408051602081019091526000815290565b600060405180606001604052806040815260200161206560409139905060006003845160026112819190611ec3565b61128b9190611edb565b611296906004611eef565b67ffffffffffffffff8111156112ae576112ae612020565b6040519080825280601f01601f1916602001820160405280156112d8576020820181803683370190505b509050600182016020820185865187015b80821015611344576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f81168501518453506001830192506112e9565b505060038651066001811461136057600281146113735761137b565b603d6001830353603d600283035361137b565b603d60018303535b509195945050505050565b60006001600160e01b031982166380ac58cd60e01b14806113b757506001600160e01b03198216635b5e139f60e01b145b8061038257506301ffc9a760e01b6001600160e01b0319831614610382565b6113e18484846114f7565b61111860008484845b60006001600160a01b0384163b156114ec57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061142e903390899088908890600401611dda565b602060405180830381600087803b15801561144857600080fd5b505af1925050508015611478575060408051601f3d908101601f1916820190925261147591810190611941565b60015b6114d2573d8080156114a6576040519150601f19603f3d011682016040523d82523d6000602084013e6114ab565b606091505b5080516114ca5760405162461bcd60e51b815260040161048f90611e20565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610d40565b506001949350505050565b6001600160a01b03821661154d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161048f565b6000818152600260205260409020546001600160a01b0316156115b25760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161048f565b6001600160a01b03821660009081526003602052604081208054600192906115db908490611ec3565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03868116919091179091559051839291861691907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b82805461168d90611f74565b90600052602060002090601f0160209004810192826116af57600085556116f5565b82601f106116c857805160ff19168380011785556116f5565b828001600101855582156116f5579182015b828111156116f55782518255916020019190600101906116da565b50611701929150611705565b5090565b5b808211156117015760008155600101611706565b600067ffffffffffffffff8084111561173557611735612020565b604051601f8501601f19908116603f0116810190828211818310171561175d5761175d612020565b8160405280935085815286868601111561177657600080fd5b858560208301376000602087830101525050509392505050565b803561ffff811681146117a257600080fd5b919050565b6000602082840312156117b957600080fd5b81356117c481612036565b9392505050565b600080604083850312156117de57600080fd5b82356117e981612036565b915060208301356117f981612036565b809150509250929050565b60008060006060848603121561181957600080fd5b833561182481612036565b9250602084013561183481612036565b929592945050506040919091013590565b6000806000806080858703121561185b57600080fd5b843561186681612036565b9350602085013561187681612036565b925060408501359150606085013567ffffffffffffffff81111561189957600080fd5b8501601f810187136118aa57600080fd5b6118b98782356020840161171a565b91505092959194509250565b600080604083850312156118d857600080fd5b82356118e381612036565b9150602083013580151581146117f957600080fd5b6000806040838503121561190b57600080fd5b823561191681612036565b946020939093013593505050565b60006020828403121561193657600080fd5b81356117c48161204e565b60006020828403121561195357600080fd5b81516117c48161204e565b60006020828403121561197057600080fd5b81516117c481612036565b60006020828403121561198d57600080fd5b813567ffffffffffffffff8111156119a457600080fd5b8201601f810184136119b557600080fd5b610d408482356020840161171a565b600080604083850312156119d757600080fd5b6119e083611790565b91506119ee60208401611790565b90509250929050565b600060208284031215611a0957600080fd5b5035919050565b60008060408385031215611a2357600080fd5b50508035926020909101359150565b60008151808452611a4a816020860160208601611f48565b601f01601f19169290920160200192915050565b60008151611a70818560208601611f48565b9290920192915050565b8054600090600181811c9080831680611a9457607f831692505b6020808410821415611ab657634e487b7160e01b600052602260045260246000fd5b818015611aca5760018114611adb57611b08565b60ff19861689528489019650611b08565b60008881526020902060005b86811015611b005781548b820152908501908301611ae7565b505084890196505b50505050505092915050565b6000611b29611b238388611a7a565b86611a7a565b612f2360f01b81528451611b44816002840160208901611f48565b602d60f81b600292909101918201528351611b66816003840160208801611f48565b016003019695505050505050565b6000611b808286611a7a565b612f2360f01b81528451611b9b816002840160208901611f48565b602d60f81b600292909101918201528351611bbd816003840160208801611f48565b0160030195945050505050565b7f7b226e616d65223a225369676e6174757265204e465420230000000000000000815260008451611c02816018850160208901611f48565b7f222c226465736372697074696f6e223a224120756e69717565207369676e206f6018918401918201527f66206f75722074696d65732c2073656c656374656420746f207265707265736560388201527f6e7420696e6372656173696e676c79207369676e69666963616e74206d6f6e6560588201527f7920696e207468697320696e66696e6974652067616d6520776520617265207060788201527f6c6179696e6720746f6765746865722e20417320796f7520636f6e736964657260988201527f20746865736520756e697175652073796d626f6c732c2072656d656d6265722060b88201527f74686174207765616c7468207472756c79206d65616e7320686176696e67206560d88201527f6e6f75676820746f2073686172652e222c2265787465726e616c5f75726c223a60f8820152601160f91b610118820152611d8b611d7d611d77611d58610119850189611a5e565b7211161130b734b6b0ba34b7b72fbab936111d1160691b815260130190565b86611a5e565b61227d60f01b815260020190565b9695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251611dcd81601d850160208701611f48565b91909101601d0192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611d8b90830184611a32565b6020815260006117c46020830184611a32565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115611ed657611ed6611fde565b500190565b600082611eea57611eea611ff4565b500490565b6000816000190483118215151615611f0957611f09611fde565b500290565b600061ffff83811690831681811015611f2957611f29611fde565b039392505050565b600082821015611f4357611f43611fde565b500390565b60005b83811015611f63578181015183820152602001611f4b565b83811115610aa35750506000910152565b600181811c90821680611f8857607f821691505b60208210811415611fa957634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611fc357611fc3611fde565b5060010190565b600082611fd957611fd9611ff4565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461204b57600080fd5b50565b6001600160e01b03198116811461204b57600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f68747470733a2f2f617277656176652e6e65742f686837414e4644665f4c767a6b747168774f7a4d6b49614f6c7664685f54325f57515259316b5173633159a2646970667358221220e39c27ea85b88e391d135c02ef5076ec05ac6c4109589180b4bcc7d561e4c9be64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000007dac9fc15c1db4379d75a6e3f330ae849dffce18
-----Decoded View---------------
Arg [0] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [1] : _creator (address): 0x7DAC9Fc15C1Db4379D75A6E3f330aE849dFfcE18
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [1] : 0000000000000000000000007dac9fc15c1db4379d75a6e3f330ae849dffce18
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.