Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 497 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Safe Transfer Fr... | 21146652 | 18 days ago | IN | 0 ETH | 0.00073368 | ||||
Set Approval For... | 21146057 | 18 days ago | IN | 0 ETH | 0.00056813 | ||||
Safe Transfer Fr... | 20946887 | 46 days ago | IN | 0 ETH | 0.00062683 | ||||
Safe Transfer Fr... | 20624330 | 91 days ago | IN | 0 ETH | 0.00005783 | ||||
Safe Transfer Fr... | 20624320 | 91 days ago | IN | 0 ETH | 0.00007835 | ||||
Safe Transfer Fr... | 19671975 | 224 days ago | IN | 0 ETH | 0.0002989 | ||||
Set Approval For... | 18838445 | 341 days ago | IN | 0 ETH | 0.00129681 | ||||
Safe Transfer Fr... | 18838032 | 341 days ago | IN | 0 ETH | 0.00113387 | ||||
Safe Transfer Fr... | 18838028 | 341 days ago | IN | 0 ETH | 0.00164805 | ||||
Set Base URI | 18753198 | 353 days ago | IN | 0 ETH | 0.0014336 | ||||
Safe Transfer Fr... | 18022827 | 455 days ago | IN | 0 ETH | 0.00258568 | ||||
Safe Transfer Fr... | 17803536 | 486 days ago | IN | 0 ETH | 0.00141037 | ||||
Set Approval For... | 17669321 | 505 days ago | IN | 0 ETH | 0.0007099 | ||||
Transfer From | 17598979 | 515 days ago | IN | 0 ETH | 0.00089262 | ||||
Safe Transfer Fr... | 17325036 | 553 days ago | IN | 0 ETH | 0.00159755 | ||||
Safe Transfer Fr... | 17325013 | 553 days ago | IN | 0 ETH | 0.00256933 | ||||
Safe Transfer Fr... | 17140311 | 579 days ago | IN | 0 ETH | 0.00198912 | ||||
Safe Transfer Fr... | 16962883 | 604 days ago | IN | 0 ETH | 0.00127234 | ||||
Transfer From | 16962740 | 604 days ago | IN | 0 ETH | 0.0010821 | ||||
Safe Transfer Fr... | 16699611 | 641 days ago | IN | 0 ETH | 0.00258568 | ||||
Safe Transfer Fr... | 16602490 | 655 days ago | IN | 0 ETH | 0.00115668 | ||||
Safe Transfer Fr... | 16501396 | 669 days ago | IN | 0 ETH | 0.00156679 | ||||
Safe Transfer Fr... | 16475498 | 673 days ago | IN | 0 ETH | 0.00125366 | ||||
Safe Transfer Fr... | 16472529 | 673 days ago | IN | 0 ETH | 0.0020372 | ||||
Safe Transfer Fr... | 16423893 | 680 days ago | IN | 0 ETH | 0.00121451 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
13352933 | 1150 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Contract Name:
NiftyBuilderInstance
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
Yes with 1500 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-03-10 */ // File: contracts/core/NiftyEntity.sol /** * @dev Authenticator of state mutating operations for Nifty Gateway contracts. * * addresses for stateful operations. * * Rinkeby: 0xCefBf44ff649B6E0Bc63785699c6F1690b8cF73b * Mainnet: 0x6e53130dDfF21E3BC963Ee902005223b9A202106 */ contract NiftyEntity { // Address of {NiftyRegistry} contract. address internal immutable niftyRegistryContract; /** * @dev Determines whether accounts are allowed to invoke state mutating operations on child contracts. */ modifier onlyValidSender() { NiftyRegistry niftyRegistry = NiftyRegistry(niftyRegistryContract); bool isValid = niftyRegistry.isValidNiftySender(msg.sender); require(isValid, "NiftyEntity: Invalid msg.sender"); _; } /** * @param _niftyRegistryContract Points to the repository of authenticated */ constructor(address _niftyRegistryContract) { niftyRegistryContract = _niftyRegistryContract; } } /** * @dev Defined to mediate interaction with externally deployed {NiftyRegistry} dependency. */ interface NiftyRegistry { function isValidNiftySender(address sending_key) external view returns (bool); } // File: contracts/interface/IERC165.sol /** * @title IERC165 * @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md */ interface IERC165 { /** * @notice Query if a contract implements an interface * @param interfaceId The interface identifier, as specified in ERC-165 * @dev Interface identification is specified in ERC-165. This function * uses less than 30,000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: contracts/interface/IERC721.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; } // File: contracts/interface/IERC721Receiver.sol /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4); } // File: contracts/interface/IERC721Metadata.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); } // File: contracts/util/Context.sol /* * @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; } } // File: contracts/util/Strings.sol /** * @dev String operations. */ library Strings { bytes16 private constant alphabet = "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); } } // File: contracts/standard/ERC165.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; } } // File: contracts/core/ERC721.sol /** * @dev Nifty Gateway implementation of Non-Fungible Token Standard. */ contract ERC721 is NiftyEntity, Context, ERC165, IERC721, IERC721Metadata { // Tracked individual instance spawned by {BuilderShop} contract. uint immutable public _id; // Number of distinct NFTs housed in this contract. uint immutable public _typeCount; // Intial receiver of all newly minted NFTs. address immutable public _defaultOwner; // Component(s) of 'tokenId' calculation. uint immutable internal topLevelMultiplier; uint immutable internal midLevelMultiplier; // Token name. string private _name; // Token symbol. string private _symbol; // Token artifact location. string private _baseURI; // Mapping from Nifty type to name of token. mapping(uint256 => string) private _niftyTypeName; // Mapping from Nifty type to IPFS hash of canonical artifcat file. mapping(uint256 => string) private _niftyTypeIPFSHashes; // Mapping from token ID to owner address. mapping (uint256 => address) internal _owners; // Mapping owner address to token count, by aggregating all _typeCount NFTs in the contact. mapping (address => uint256) internal _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 token collection. * * @param name_ Of the collection being deployed. * @param symbol_ Shorthand token identifier, for wallets, etc. * @param id_ Number instance deployed by {BuilderShop} contract. * @param baseURI_ The location where the artifact assets are stored. * @param typeCount_ The number of different Nifty types (different * individual NFTs) associated with the deployed collection. * @param defaultOwner_ Intial receiver of all newly minted NFTs. * @param niftyRegistryContract Points to the repository of authenticated * addresses for stateful operations. */ constructor(string memory name_, string memory symbol_, uint256 id_, string memory baseURI_, uint256 typeCount_, address defaultOwner_, address niftyRegistryContract) NiftyEntity(niftyRegistryContract) { _name = name_; _symbol = symbol_; _id = id_; _baseURI = baseURI_; _typeCount = typeCount_; _defaultOwner = defaultOwner_; midLevelMultiplier = 10000; topLevelMultiplier = id_ * 100000000; } /** * @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 Returns the link to artificat location for a given token by 'tokenId'. * Throws if the token ID does not exist. May return an empty string. * @param tokenId uint256 ID of the token to query. * @return The location where the artifact assets are stored. */ function tokenURI(uint256 tokenId) external view override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory tokenIdStr = Strings.toString(tokenId); return string(abi.encodePacked(_baseURI, tokenIdStr)); } /** * @dev Returns an IPFS hash for a given token ID. * Throws if the token ID does not exist. May return an empty string. * @param tokenId uint256 ID of the token to query. * @return IPFS hash for this (_typeCount) NFT. */ function tokenIPFSHash(uint256 tokenId) external view returns (string memory) { require(_exists(tokenId), "ERC721Metadata: IPFS hash query for nonexistent token"); uint256 niftyType = _getNiftyTypeId(tokenId); return _niftyTypeIPFSHashes[niftyType]; } /** * @dev Determine which NFT in the contract (_typeCount) is associated * with this 'tokenId'. */ function _getNiftyTypeId(uint256 tokenId) private view returns (uint256) { return (tokenId - topLevelMultiplier) / midLevelMultiplier; } /** * @dev Returns the Name for a given token ID. * Throws if the token ID does not exist. May return an empty string. * @param tokenId uint256 ID of the token to query */ function tokenName(uint256 tokenId) external view returns (string memory) { require(_exists(tokenId), "ERC721Metadata: Name query for nonexistent token"); uint256 niftyType = _getNiftyTypeId(tokenId); return _niftyTypeName[niftyType]; } /** * @dev Internal function to set the token IPFS hash for a nifty type. * @param niftyType uint256 ID component of the token to set its IPFS hash * @param ipfs_hash string IPFS link to assign */ function _setTokenIPFSHashNiftyType(uint256 niftyType, string memory ipfs_hash) internal { require(bytes(_niftyTypeIPFSHashes[niftyType]).length == 0, "ERC721Metadata: IPFS hash already set"); _niftyTypeIPFSHashes[niftyType] = ipfs_hash; } /** * @dev Internal function to set the name for a nifty type. * @param niftyType uint256 of nifty type name to be set * @param nifty_type_name name of nifty type */ function _setNiftyTypeName(uint256 niftyType, string memory nifty_type_name) internal { _niftyTypeName[niftyType] = nifty_type_name; } /** * @dev Base URI for computing {tokenURI}. */ function _setBaseURI(string memory baseURI_) internal { _baseURI = baseURI_; } /** * @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 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); // 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"); // 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 (isContract(to)) { 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 { // solhint-disable-next-line no-inline-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } } // File: contracts/standard/ERC721Burnable.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); } } // File: contracts/core/NiftyBuilderInstance.sol /** * XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX * XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX .*** XXXXXXXXXXXXXXXXXX * XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ,********* XXXXXXXXXXXXXXXX * XXXXXXXXXXXXXXXXXXXXXXXXXXXX *************** XXXXXXXXXXXXX * XXXXXXXXXXXXXXXXXXXXXXXXX .******************* XXXXXXXXXXX * XXXXXXXXXXXXXXXXXXXXXXX *********** ********** XXXXXXXX * XXXXXXXXXXXXXXXXXXXX *********** *********** XXXXXX * XXXXXXXXXXXXXXXXXX *********** *************** XXX * XXXXXXXXXXXXXXXX *********** **** ********* XX * XXXXXXXXXXXXXXXX ********* *** *** ********* X * XXXXXXXXXXXXXXXX ********** ***** *********** XXX * XXXXXXXXXXXX /////.************* *********** XXXX * XXXXXXXXX /////////...*********** ************ XXXXXX * XXXXXXX/ ///////////..... ///////// /////////// XXXXXXXX * XXXXXX / //////........./////////////////// XXXXXXXXXX * XXXXXXXXXX .///////...........////////////// XXXXXXXXXXXXX * XXXXXXXXX .///////.....//..//// ///////// XXXXXXXXXXXXXXXX * XXXXXXX# ///////////////////// XXXXXXXXXXXXXXXXXXXXXXXXXXXX * XXXXX //////////////////// XXXXXXXXXXXXXXXXXXXXXXXXXXXXX * XX ////////////// ////// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX * XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX * * @dev Nifty Gateway extension of customized NFT contract, encapsulates * logic for minting new tokens, and concluding the minting process. */ contract NiftyBuilderInstance is ERC721, ERC721Burnable { // The artist associated with the collection. string private _creator; // Number of NFTs minted for a given 'typeCount'. mapping (uint256 => uint256) public _mintCount; /** * @dev Serves as a gas cost optimized boolean flag * to indicate whether the minting process has been * concluded for a given 'typeCount', correspinds * to the {_getFinalized} and {setFinalized}. */ mapping (uint256 => bytes32) private _finalized; /** * @dev Emitted when tokens are created. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed fromAddress, address indexed toAddress); /** * @dev Ultimate instantiation of a Nifty Gateway NFT collection. * * @param name Of the collection being deployed. * @param symbol Shorthand token identifier, for wallets, etc. * @param id Number instance deployed by {BuilderShop} contract. * @param typeCount The number of different Nifty types (different * individual NFTs) associated with the deployed collection. * @param baseURI The location where the artifact assets are stored. * @param creator_ The artist associated with the collection. * @param niftyRegistryContract Points to the repository of authenticated * addresses for stateful operations. * @param defaultOwner Intial receiver of all newly minted NFTs. */ constructor( string memory name, string memory symbol, uint256 id, uint256 typeCount, string memory baseURI, string memory creator_, address niftyRegistryContract, address defaultOwner) ERC721(name, symbol, id, baseURI, typeCount, defaultOwner, niftyRegistryContract) { _creator = creator_; } /** * @dev Generate canonical Nifty Gateway token representation. * Nifty contracts have a data model called a 'niftyType' (typeCount) * The 'niftyType' refers to a specific nifty in our contract, note * that it gives no information about the edition size. In a given * contract, 'niftyType' 1 could be an edition of 10, while 'niftyType' * 2 is a 1/1, etc. * The token IDs are encoded as follows: {id}{niftyType}{edition #} * 'niftyType' has 4 digits, and edition number does as well, to allow * for 9999 possible 'niftyType' and 9999 of each edition in each contract. * Example token id: [500010270] * This is from contract #5, it is 'niftyType' 1 in the contract, and it is * edition #270 of 'niftyType' 1. */ function _encodeTokenId(uint256 niftyType, uint256 tokenNumber) private view returns (uint256) { return (topLevelMultiplier + (niftyType * midLevelMultiplier) + tokenNumber); } /** * @dev Determine whether it is possible to mint additional NFTs for this 'niftyType'. */ function _getFinalized(uint256 niftyType) public view returns (bool) { bytes32 chunk = _finalized[niftyType / 256]; return (chunk & bytes32(1 << (niftyType % 256))) != 0x0; } /** * @dev Prevent the minting of additional NFTs of this 'niftyType'. */ function setFinalized(uint256 niftyType) public onlyValidSender { uint256 quotient = niftyType / 256; bytes32 chunk = _finalized[quotient]; _finalized[quotient] = chunk | bytes32(1 << (niftyType % 256)); } /** * @dev The artist of this collection. */ function creator() public view virtual returns (string memory) { return _creator; } /** * @dev Assign the root location where the artifact assets are stored. */ function setBaseURI(string memory baseURI) public onlyValidSender { _setBaseURI(baseURI); } /** * @dev Allow owner to change nifty name, by 'niftyType'. */ function setNiftyName(uint256 niftyType, string memory niftyName) public onlyValidSender { _setNiftyTypeName(niftyType, niftyName); } /** * @dev Assign the IPFS hash of canonical artifcat file, by 'niftyType'. */ function setNiftyIPFSHash(uint256 niftyType, string memory hashIPFS) public onlyValidSender { _setTokenIPFSHashNiftyType(niftyType, hashIPFS); } /** * @dev Create specified number of nifties en masse. * Once an NFT collection is spawned by the factory contract, we make calls to set the IPFS * hash (above) for each Nifty type in the collection. * Subsequently calls are issued to this function to mint the appropriate number of tokens * for the project. */ function mintNifty(uint256 niftyType, uint256 count) public onlyValidSender { require(!_getFinalized(niftyType), "NiftyBuilderInstance: minting concluded for nifty type"); uint256 tokenNumber = _mintCount[niftyType] + 1; uint256 tokenId00 = _encodeTokenId(niftyType, tokenNumber); uint256 tokenId01 = tokenId00 + count - 1; for (uint256 tokenId = tokenId00; tokenId <= tokenId01; tokenId++) { _owners[tokenId] = _defaultOwner; } _mintCount[niftyType] += count; _balances[_defaultOwner] += count; emit ConsecutiveTransfer(tokenId00, tokenId01, address(0), _defaultOwner); } } // File: contracts/core/BuilderShop.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.6; /** * :::::::::::::::::::::::::::::::::::::::::::: * :::::::::::::::::::::::::::::::::::::::::::::::: * :::::::::::::::::::::::::::::::::::::::::::::::: * ::::::::::::NNNNNNNNN:::::::NNNNNNNN:::::::::::: * ::::::::::::NNNNNNNNNN::::::NNNNNNNN:::::::::::: * ::::::::::::NNNNNNNNNNN:::::NNNNNNNN:::::::::::: * ::::::::::::NNNNNNNNNNNN::::NNNNNNNN:::::::::::: * ::::::::::::NNNNNNNNNNNNN:::NNNNNNNN:::::::::::: * ::::::::::::NNNNNNNNNNNNNN::NNNNNNNN:::::::::::: * ::::::::::::NNNNNNNN:NNNNNN:NNNNNNNN:::::::::::: * ::::::::::::NNNNNNNN::NNNNNNNNNNNNNN:::::::::::: * ::::::::::::NNNNNNNN:::NNNNNNNNNNNNN:::::::::::: * ::::::::::::NNNNNNNN::::NNNNNNNNNNNN:::::::::::: * ::::::::::::NNNNNNNN:::::NNNNNNNNNNN:::::::::::: * ::::::::::::NNNNNNNN::::::NNNNNNNNNN:::::::::::: * ::::::::::::NNNNNNNN:::::::NNNNNNNNN:::::::::::: * :::::::::::::::::::::::::::::::::::::::::::::::: * :::::::::::::::::::::::::::::::::::::::::::::::: * :::::::::::::::::::::::::::::::::::::::::::: * * @dev Nexus of the Nifty Gateway smartcontract constellation. * {BuilderShop} is a factory contract, when a new collection * is slated for deployment, a call is made to this factory * contract to create it. */ contract BuilderShop is NiftyEntity { /** * @dev Tracks the latest {NiftyBuilderInstance} deployment, supplied as constructor * argument. Every time a new contract is deployed from this "master" factory contract, * it is given a contract id that is one higher than the previous contract deployed. */ uint public _id; // Provided as a argument to {NiftyBuilderInstance} deployment. address public _defaultOwner; // Reference for validation of posible {NiftyBuilderInstance} by address. mapping (address => bool) public validBuilderInstance; // Log the creation of each {NiftyBuilderInstance} deployment. event BuilderInstanceCreated(address instanceAddress, uint id); /** * @param niftyRegistryContract Points to the mainnet repository of addresses * allowed to invoke state mutating operations via the modifier 'onlyValidSender'. * @param defaultOwner_ The address to which all tokens are initially minted. */ constructor(address niftyRegistryContract, address defaultOwner_) NiftyEntity(niftyRegistryContract) { _defaultOwner = defaultOwner_; } /** * @dev Configurable address for defaultOwner. * @param defaultOwner account to which newly minted tokens are allocated. */ function setDefaultOwner(address defaultOwner) onlyValidSender external { _defaultOwner = defaultOwner; } /** * @dev Allow anyone to check if a contract address is a valid nifty gateway contract. * @param instanceAddress address of potential spawned {NiftyBuilderInstance}. * @return bool whether or not the contract was initialized by this {BuilderShop}. */ function isValidBuilderInstance(address instanceAddress) external view returns (bool) { return (validBuilderInstance[instanceAddress]); } /** * @dev Collections on the platform are associated with a call to this * function which will generate a {NiftyBuilderInstance} to house the * NFTs for that particular artist release. * * @param name Of the collection being deployed. * @param symbol Shorthand token identifier, for wallets, etc. * @param typeCount The number of different Nifty types (different * individual NFTs) associated with the deployed collection. * @param baseURI The location where the artifact assets are stored. * @param creator The artist associated with the collection. */ function createNewBuilderInstance( string memory name, string memory symbol, uint256 typeCount, string memory baseURI, string memory creator) external onlyValidSender { _id += 1; NiftyBuilderInstance instance = new NiftyBuilderInstance( name, symbol, _id, typeCount, baseURI, creator, niftyRegistryContract, _defaultOwner ); address instanceAddress = address(instance); validBuilderInstance[instanceAddress] = true; emit BuilderInstanceCreated(instanceAddress, _id); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"typeCount","type":"uint256"},{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"string","name":"creator_","type":"string"},{"internalType":"address","name":"niftyRegistryContract","type":"address"},{"internalType":"address","name":"defaultOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"},{"indexed":true,"internalType":"address","name":"toAddress","type":"address"}],"name":"ConsecutiveTransfer","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":[],"name":"_defaultOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"niftyType","type":"uint256"}],"name":"_getFinalized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_id","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_mintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_typeCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"creator","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":[{"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":"uint256","name":"niftyType","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"mintNifty","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":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"niftyType","type":"uint256"}],"name":"setFinalized","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"niftyType","type":"uint256"},{"internalType":"string","name":"hashIPFS","type":"string"}],"name":"setNiftyIPFSHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"niftyType","type":"uint256"},{"internalType":"string","name":"niftyName","type":"string"}],"name":"setNiftyName","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":"tokenId","type":"uint256"}],"name":"tokenIPFSHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","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"}]
Contract Creation Code
6101406040523480156200001257600080fd5b506040516200290138038062002901833981016040819052620000359162000275565b6001600160601b0319606083901b16608052875188908890889087908990869088906200006a9060009060208a0190620000fb565b50855162000080906001906020890190620000fb565b5060a085905283516200009b906002906020870190620000fb565b5060c08390526001600160601b0319606083901b1660e05261271061012052620000ca856305f5e10062000367565b6101005250508751620000ec9550600994506020890193509150620000fb9050565b505050505050505050620003e8565b828054620001099062000395565b90600052602060002090601f0160209004810192826200012d576000855562000178565b82601f106200014857805160ff191683800117855562000178565b8280016001018555821562000178579182015b82811115620001785782518255916020019190600101906200015b565b50620001869291506200018a565b5090565b5b808211156200018657600081556001016200018b565b80516001600160a01b0381168114620001b957600080fd5b919050565b600082601f830112620001d057600080fd5b81516001600160401b0380821115620001ed57620001ed620003d2565b604051601f8301601f19908116603f01168101908282118183101715620002185762000218620003d2565b816040528381526020925086838588010111156200023557600080fd5b600091505b838210156200025957858201830151818301840152908201906200023a565b838211156200026b5760008385830101525b9695505050505050565b600080600080600080600080610100898b0312156200029357600080fd5b88516001600160401b0380821115620002ab57600080fd5b620002b98c838d01620001be565b995060208b0151915080821115620002d057600080fd5b620002de8c838d01620001be565b985060408b0151975060608b0151965060808b01519150808211156200030357600080fd5b620003118c838d01620001be565b955060a08b01519150808211156200032857600080fd5b50620003378b828c01620001be565b9350506200034860c08a01620001a1565b91506200035860e08a01620001a1565b90509295985092959890939650565b60008160001904831182151516156200039057634e487b7160e01b600052601160045260246000fd5b500290565b600181811c90821680620003aa57607f821691505b60208210811415620003cc57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160601c60a05160c05160e05160601c61010051610120516124846200047d600039600081816119da0152611c10015260008181611a050152611c3401526000818161028f01528181610bb401528181610c1f0152610c72015260006102b60152600061021201526000818161084f015281816109ec01528181610ce301528181610f0b015261138b01526124846000f3fe608060405234801561001057600080fd5b50600436106101b85760003560e01c80634fba84ca116100f9578063a22cb46511610097578063d371663011610071578063d3716630146103e4578063d7a853be146103f7578063e725f8771461040a578063e985e9c51461041d57600080fd5b8063a22cb465146103ab578063b88d4fde146103be578063c87b56dd146103d157600080fd5b80636352211e116100d35780636352211e1461036a57806370a082311461037d57806395d89b41146103905780639dd5e4811461039857600080fd5b80634fba84ca1461032457806355f804b3146103375780635f2ef9dc1461034a57600080fd5b8063095ea7b31161016657806323b872dd1161014057806323b872dd146102d85780632b6db055146102eb57806342842e0e146102fe57806342966c681461031157600080fd5b8063095ea7b314610275578063139fed7c1461028a5780632276f3f2146102b157600080fd5b80630518023711610197578063051802371461020d57806306fdde0314610242578063081812fc1461024a57600080fd5b8062cd587c146101bd57806301ffc9a7146101e557806302d05d3f146101f8575b600080fd5b6101d06101cb36600461211a565b610459565b60405190151581526020015b60405180910390f35b6101d06101f33660046120ab565b610497565b610200610534565b6040516101dc91906122c7565b6102347f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020016101dc565b6102006105c6565b61025d61025836600461211a565b6105d5565b6040516001600160a01b0390911681526020016101dc565b610288610283366004612064565b610680565b005b61025d7f000000000000000000000000000000000000000000000000000000000000000081565b6102347f000000000000000000000000000000000000000000000000000000000000000081565b6102886102e6366004611f75565b6107b2565b6102886102f9366004612133565b61083a565b61028861030c366004611f75565b610935565b61028861031f36600461211a565b610950565b61028861033236600461217a565b6109d7565b6102886103453660046120e5565b610cce565b61023461035836600461211a565b600a6020526000908152604090205481565b61025d61037836600461211a565b610dc2565b61023461038b366004611f27565b610e4d565b610200610ee7565b6102886103a636600461211a565b610ef6565b6102886103b936600461202d565b611029565b6102886103cc366004611fb1565b6110ee565b6102006103df36600461211a565b611176565b6102006103f236600461211a565b61123b565b610288610405366004612133565b611376565b61020061041836600461211a565b61146b565b6101d061042b366004611f42565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b600080600b8161046b610100866122f2565b81526020019081526020016000205490506101008361048a91906123be565b6001901b16151592915050565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806104fa57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061052e57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60606009805461054390612368565b80601f016020809104026020016040519081016040528092919081815260200182805461056f90612368565b80156105bc5780601f10610591576101008083540402835291602001916105bc565b820191906000526020600020905b81548152906001019060200180831161059f57829003601f168201915b5050505050905090565b60606000805461054390612368565b6000818152600560205260408120546001600160a01b03166106645760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600061068b82610dc2565b9050806001600160a01b0316836001600160a01b031614156107155760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161065b565b336001600160a01b03821614806107315750610731813361042b565b6107a35760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161065b565b6107ad8383611520565b505050565b6107bd335b8261159b565b61082f5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161065b565b6107ad8383836116a3565b6040516371be737d60e11b81523360048201527f0000000000000000000000000000000000000000000000000000000000000000906000906001600160a01b0383169063e37ce6fa9060240160206040518083038186803b15801561089e57600080fd5b505afa1580156108b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108d6919061208e565b9050806109255760405162461bcd60e51b815260206004820152601f60248201527f4e69667479456e746974793a20496e76616c6964206d73672e73656e64657200604482015260640161065b565b61092f848461187d565b50505050565b6107ad838383604051806020016040528060008152506110ee565b610959336107b7565b6109cb5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000606482015260840161065b565b6109d48161192a565b50565b6040516371be737d60e11b81523360048201527f0000000000000000000000000000000000000000000000000000000000000000906000906001600160a01b0383169063e37ce6fa9060240160206040518083038186803b158015610a3b57600080fd5b505afa158015610a4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a73919061208e565b905080610ac25760405162461bcd60e51b815260206004820152601f60248201527f4e69667479456e746974793a20496e76616c6964206d73672e73656e64657200604482015260640161065b565b610acb84610459565b15610b3e5760405162461bcd60e51b815260206004820152603660248201527f4e696674794275696c646572496e7374616e63653a206d696e74696e6720636f60448201527f6e636c7564656420666f72206e69667479207479706500000000000000000000606482015260840161065b565b6000848152600a6020526040812054610b589060016122da565b90506000610b6686836119d2565b905060006001610b7687846122da565b610b809190612325565b9050815b818111610bf1576000818152600560205260409020805473ffffffffffffffffffffffffffffffffffffffff19167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031617905580610be9816123a3565b915050610b84565b506000878152600a602052604081208054889290610c109084906122da565b90915550506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001660009081526006602052604081208054889290610c5d9084906122da565b90915550506040518181526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169060009084907fdeaa91b6123d068f5821d0fb0678463d1a8a6079fe8af5de3ce5e896dcf9133d9060200160405180910390a450505050505050565b6040516371be737d60e11b81523360048201527f0000000000000000000000000000000000000000000000000000000000000000906000906001600160a01b0383169063e37ce6fa9060240160206040518083038186803b158015610d3257600080fd5b505afa158015610d46573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d6a919061208e565b905080610db95760405162461bcd60e51b815260206004820152601f60248201527f4e69667479456e746974793a20496e76616c6964206d73672e73656e64657200604482015260640161065b565b6107ad83611a3a565b6000818152600560205260408120546001600160a01b03168061052e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161065b565b60006001600160a01b038216610ecb5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161065b565b506001600160a01b031660009081526006602052604090205490565b60606001805461054390612368565b6040516371be737d60e11b81523360048201527f0000000000000000000000000000000000000000000000000000000000000000906000906001600160a01b0383169063e37ce6fa9060240160206040518083038186803b158015610f5a57600080fd5b505afa158015610f6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f92919061208e565b905080610fe15760405162461bcd60e51b815260206004820152601f60248201527f4e69667479456e746974793a20496e76616c6964206d73672e73656e64657200604482015260640161065b565b6000610fef610100856122f2565b6000818152600b602052604090205490915061100d610100866123be565b6000928352600b6020526040909220600190921b179055505050565b6001600160a01b0382163314156110825760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161065b565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6110f8338361159b565b61116a5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161065b565b61092f84848484611a51565b6000818152600560205260409020546060906001600160a01b03166112035760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606482015260840161065b565b600061120e83611ada565b90506002816040516020016112249291906121e4565b604051602081830303815290604052915050919050565b6000818152600560205260409020546060906001600160a01b03166112c85760405162461bcd60e51b815260206004820152603560248201527f4552433732314d657461646174613a204950465320686173682071756572792060448201527f666f72206e6f6e6578697374656e7420746f6b656e0000000000000000000000606482015260840161065b565b60006112d383611c0c565b60008181526004602052604090208054919250906112f090612368565b80601f016020809104026020016040519081016040528092919081815260200182805461131c90612368565b80156113695780601f1061133e57610100808354040283529160200191611369565b820191906000526020600020905b81548152906001019060200180831161134c57829003601f168201915b5050505050915050919050565b6040516371be737d60e11b81523360048201527f0000000000000000000000000000000000000000000000000000000000000000906000906001600160a01b0383169063e37ce6fa9060240160206040518083038186803b1580156113da57600080fd5b505afa1580156113ee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611412919061208e565b9050806114615760405162461bcd60e51b815260206004820152601f60248201527f4e69667479456e746974793a20496e76616c6964206d73672e73656e64657200604482015260640161065b565b61092f8484611c63565b6000818152600560205260409020546060906001600160a01b03166114f85760405162461bcd60e51b815260206004820152603060248201527f4552433732314d657461646174613a204e616d6520717565727920666f72206e60448201527f6f6e6578697374656e7420746f6b656e00000000000000000000000000000000606482015260840161065b565b600061150383611c0c565b60008181526003602052604090208054919250906112f090612368565b6000818152600760205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155819061156282610dc2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600560205260408120546001600160a01b03166116255760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606482015260840161065b565b600061163083610dc2565b9050806001600160a01b0316846001600160a01b0316148061166b5750836001600160a01b0316611660846105d5565b6001600160a01b0316145b8061169b57506001600160a01b0380821660009081526008602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166116b682610dc2565b6001600160a01b0316146117325760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606482015260840161065b565b6001600160a01b0382166117ad5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161065b565b6117b8600082611520565b6001600160a01b03831660009081526006602052604081208054600192906117e1908490612325565b90915550506001600160a01b038216600090815260066020526040812080546001929061180f9084906122da565b9091555050600081815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828152600460205260409020805461189690612368565b15905061190b5760405162461bcd60e51b815260206004820152602560248201527f4552433732314d657461646174613a2049504653206861736820616c7265616460448201527f7920736574000000000000000000000000000000000000000000000000000000606482015260840161065b565b600082815260046020908152604090912082516107ad92840190611ddc565b600061193582610dc2565b9050611942600083611520565b6001600160a01b038116600090815260066020526040812080546001929061196b908490612325565b9091555050600082815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff19169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000816119ff7f000000000000000000000000000000000000000000000000000000000000000085612306565b611a29907f00000000000000000000000000000000000000000000000000000000000000006122da565b611a3391906122da565b9392505050565b8051611a4d906002906020840190611ddc565b5050565b611a5c8484846116a3565b611a6884848484611c82565b61092f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161065b565b606081611b1a57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611b445780611b2e816123a3565b9150611b3d9050600a836122f2565b9150611b1e565b60008167ffffffffffffffff811115611b5f57611b5f612414565b6040519080825280601f01601f191660200182016040528015611b89576020820181803683370190505b5090505b841561169b57611b9e600183612325565b9150611bab600a866123be565b611bb69060306122da565b60f81b818381518110611bcb57611bcb6123fe565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611c05600a866122f2565b9450611b8d565b60007f0000000000000000000000000000000000000000000000000000000000000000611c597f000000000000000000000000000000000000000000000000000000000000000084612325565b61052e91906122f2565b600082815260036020908152604090912082516107ad92840190611ddc565b6000833b15611dd157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611cbd90339089908890889060040161228b565b602060405180830381600087803b158015611cd757600080fd5b505af1925050508015611d07575060408051601f3d908101601f19168201909252611d04918101906120c8565b60015b611db7573d808015611d35576040519150601f19603f3d011682016040523d82523d6000602084013e611d3a565b606091505b508051611daf5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161065b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061169b565b506001949350505050565b828054611de890612368565b90600052602060002090601f016020900481019282611e0a5760008555611e50565b82601f10611e2357805160ff1916838001178555611e50565b82800160010185558215611e50579182015b82811115611e50578251825591602001919060010190611e35565b50611e5c929150611e60565b5090565b5b80821115611e5c5760008155600101611e61565b600067ffffffffffffffff80841115611e9057611e90612414565b604051601f8501601f19908116603f01168101908282118183101715611eb857611eb8612414565b81604052809350858152868686011115611ed157600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114611f0257600080fd5b919050565b600082601f830112611f1857600080fd5b611a3383833560208501611e75565b600060208284031215611f3957600080fd5b611a3382611eeb565b60008060408385031215611f5557600080fd5b611f5e83611eeb565b9150611f6c60208401611eeb565b90509250929050565b600080600060608486031215611f8a57600080fd5b611f9384611eeb565b9250611fa160208501611eeb565b9150604084013590509250925092565b60008060008060808587031215611fc757600080fd5b611fd085611eeb565b9350611fde60208601611eeb565b925060408501359150606085013567ffffffffffffffff81111561200157600080fd5b8501601f8101871361201257600080fd5b61202187823560208401611e75565b91505092959194509250565b6000806040838503121561204057600080fd5b61204983611eeb565b915060208301356120598161242a565b809150509250929050565b6000806040838503121561207757600080fd5b61208083611eeb565b946020939093013593505050565b6000602082840312156120a057600080fd5b8151611a338161242a565b6000602082840312156120bd57600080fd5b8135611a3381612438565b6000602082840312156120da57600080fd5b8151611a3381612438565b6000602082840312156120f757600080fd5b813567ffffffffffffffff81111561210e57600080fd5b61169b84828501611f07565b60006020828403121561212c57600080fd5b5035919050565b6000806040838503121561214657600080fd5b82359150602083013567ffffffffffffffff81111561216457600080fd5b61217085828601611f07565b9150509250929050565b6000806040838503121561218d57600080fd5b50508035926020909101359150565b600081518084526121b481602086016020860161233c565b601f01601f19169290920160200192915050565b600081516121da81856020860161233c565b9290920192915050565b600080845481600182811c91508083168061220057607f831692505b602080841082141561222057634e487b7160e01b86526022600452602486fd5b818015612234576001811461224557612272565b60ff19861689528489019650612272565b60008b81526020902060005b8681101561226a5781548b820152908501908301612251565b505084890196505b50505050505061228281856121c8565b95945050505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526122bd608083018461219c565b9695505050505050565b602081526000611a33602083018461219c565b600082198211156122ed576122ed6123d2565b500190565b600082612301576123016123e8565b500490565b6000816000190483118215151615612320576123206123d2565b500290565b600082821015612337576123376123d2565b500390565b60005b8381101561235757818101518382015260200161233f565b8381111561092f5750506000910152565b600181811c9082168061237c57607f821691505b6020821081141561239d57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156123b7576123b76123d2565b5060010190565b6000826123cd576123cd6123e8565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b80151581146109d457600080fd5b6001600160e01b0319811681146109d457600080fdfea264697066735822122084cb93f1d50584cd83d27598c0729904f23c6ecd86e9e526947315bdf6862c3c64736f6c63430008060033000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000083000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002200000000000000000000000006e53130ddff21e3bc963ee902005223b9a202106000000000000000000000000e052113bd7d7700d623414a0a4585bcae754e9d5000000000000000000000000000000000000000000000000000000000000002844657374726f7920546f20437265617465204f70656e2045646974696f6e73206279205668696c73000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002244455354524f59544f4352454154454f50454e45444954494f4e5342595648494c53000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e68747470733a2f2f6170692e6e69667479676174657761792e636f6d2f7668696c7364657374726f796f70656e2f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055668696c73000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101b85760003560e01c80634fba84ca116100f9578063a22cb46511610097578063d371663011610071578063d3716630146103e4578063d7a853be146103f7578063e725f8771461040a578063e985e9c51461041d57600080fd5b8063a22cb465146103ab578063b88d4fde146103be578063c87b56dd146103d157600080fd5b80636352211e116100d35780636352211e1461036a57806370a082311461037d57806395d89b41146103905780639dd5e4811461039857600080fd5b80634fba84ca1461032457806355f804b3146103375780635f2ef9dc1461034a57600080fd5b8063095ea7b31161016657806323b872dd1161014057806323b872dd146102d85780632b6db055146102eb57806342842e0e146102fe57806342966c681461031157600080fd5b8063095ea7b314610275578063139fed7c1461028a5780632276f3f2146102b157600080fd5b80630518023711610197578063051802371461020d57806306fdde0314610242578063081812fc1461024a57600080fd5b8062cd587c146101bd57806301ffc9a7146101e557806302d05d3f146101f8575b600080fd5b6101d06101cb36600461211a565b610459565b60405190151581526020015b60405180910390f35b6101d06101f33660046120ab565b610497565b610200610534565b6040516101dc91906122c7565b6102347f000000000000000000000000000000000000000000000000000000000000008381565b6040519081526020016101dc565b6102006105c6565b61025d61025836600461211a565b6105d5565b6040516001600160a01b0390911681526020016101dc565b610288610283366004612064565b610680565b005b61025d7f000000000000000000000000e052113bd7d7700d623414a0a4585bcae754e9d581565b6102347f000000000000000000000000000000000000000000000000000000000000000281565b6102886102e6366004611f75565b6107b2565b6102886102f9366004612133565b61083a565b61028861030c366004611f75565b610935565b61028861031f36600461211a565b610950565b61028861033236600461217a565b6109d7565b6102886103453660046120e5565b610cce565b61023461035836600461211a565b600a6020526000908152604090205481565b61025d61037836600461211a565b610dc2565b61023461038b366004611f27565b610e4d565b610200610ee7565b6102886103a636600461211a565b610ef6565b6102886103b936600461202d565b611029565b6102886103cc366004611fb1565b6110ee565b6102006103df36600461211a565b611176565b6102006103f236600461211a565b61123b565b610288610405366004612133565b611376565b61020061041836600461211a565b61146b565b6101d061042b366004611f42565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b600080600b8161046b610100866122f2565b81526020019081526020016000205490506101008361048a91906123be565b6001901b16151592915050565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806104fa57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061052e57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60606009805461054390612368565b80601f016020809104026020016040519081016040528092919081815260200182805461056f90612368565b80156105bc5780601f10610591576101008083540402835291602001916105bc565b820191906000526020600020905b81548152906001019060200180831161059f57829003601f168201915b5050505050905090565b60606000805461054390612368565b6000818152600560205260408120546001600160a01b03166106645760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600061068b82610dc2565b9050806001600160a01b0316836001600160a01b031614156107155760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161065b565b336001600160a01b03821614806107315750610731813361042b565b6107a35760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161065b565b6107ad8383611520565b505050565b6107bd335b8261159b565b61082f5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161065b565b6107ad8383836116a3565b6040516371be737d60e11b81523360048201527f0000000000000000000000006e53130ddff21e3bc963ee902005223b9a202106906000906001600160a01b0383169063e37ce6fa9060240160206040518083038186803b15801561089e57600080fd5b505afa1580156108b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108d6919061208e565b9050806109255760405162461bcd60e51b815260206004820152601f60248201527f4e69667479456e746974793a20496e76616c6964206d73672e73656e64657200604482015260640161065b565b61092f848461187d565b50505050565b6107ad838383604051806020016040528060008152506110ee565b610959336107b7565b6109cb5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000606482015260840161065b565b6109d48161192a565b50565b6040516371be737d60e11b81523360048201527f0000000000000000000000006e53130ddff21e3bc963ee902005223b9a202106906000906001600160a01b0383169063e37ce6fa9060240160206040518083038186803b158015610a3b57600080fd5b505afa158015610a4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a73919061208e565b905080610ac25760405162461bcd60e51b815260206004820152601f60248201527f4e69667479456e746974793a20496e76616c6964206d73672e73656e64657200604482015260640161065b565b610acb84610459565b15610b3e5760405162461bcd60e51b815260206004820152603660248201527f4e696674794275696c646572496e7374616e63653a206d696e74696e6720636f60448201527f6e636c7564656420666f72206e69667479207479706500000000000000000000606482015260840161065b565b6000848152600a6020526040812054610b589060016122da565b90506000610b6686836119d2565b905060006001610b7687846122da565b610b809190612325565b9050815b818111610bf1576000818152600560205260409020805473ffffffffffffffffffffffffffffffffffffffff19167f000000000000000000000000e052113bd7d7700d623414a0a4585bcae754e9d56001600160a01b031617905580610be9816123a3565b915050610b84565b506000878152600a602052604081208054889290610c109084906122da565b90915550506001600160a01b037f000000000000000000000000e052113bd7d7700d623414a0a4585bcae754e9d51660009081526006602052604081208054889290610c5d9084906122da565b90915550506040518181526001600160a01b037f000000000000000000000000e052113bd7d7700d623414a0a4585bcae754e9d5169060009084907fdeaa91b6123d068f5821d0fb0678463d1a8a6079fe8af5de3ce5e896dcf9133d9060200160405180910390a450505050505050565b6040516371be737d60e11b81523360048201527f0000000000000000000000006e53130ddff21e3bc963ee902005223b9a202106906000906001600160a01b0383169063e37ce6fa9060240160206040518083038186803b158015610d3257600080fd5b505afa158015610d46573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d6a919061208e565b905080610db95760405162461bcd60e51b815260206004820152601f60248201527f4e69667479456e746974793a20496e76616c6964206d73672e73656e64657200604482015260640161065b565b6107ad83611a3a565b6000818152600560205260408120546001600160a01b03168061052e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161065b565b60006001600160a01b038216610ecb5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161065b565b506001600160a01b031660009081526006602052604090205490565b60606001805461054390612368565b6040516371be737d60e11b81523360048201527f0000000000000000000000006e53130ddff21e3bc963ee902005223b9a202106906000906001600160a01b0383169063e37ce6fa9060240160206040518083038186803b158015610f5a57600080fd5b505afa158015610f6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f92919061208e565b905080610fe15760405162461bcd60e51b815260206004820152601f60248201527f4e69667479456e746974793a20496e76616c6964206d73672e73656e64657200604482015260640161065b565b6000610fef610100856122f2565b6000818152600b602052604090205490915061100d610100866123be565b6000928352600b6020526040909220600190921b179055505050565b6001600160a01b0382163314156110825760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161065b565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6110f8338361159b565b61116a5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161065b565b61092f84848484611a51565b6000818152600560205260409020546060906001600160a01b03166112035760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606482015260840161065b565b600061120e83611ada565b90506002816040516020016112249291906121e4565b604051602081830303815290604052915050919050565b6000818152600560205260409020546060906001600160a01b03166112c85760405162461bcd60e51b815260206004820152603560248201527f4552433732314d657461646174613a204950465320686173682071756572792060448201527f666f72206e6f6e6578697374656e7420746f6b656e0000000000000000000000606482015260840161065b565b60006112d383611c0c565b60008181526004602052604090208054919250906112f090612368565b80601f016020809104026020016040519081016040528092919081815260200182805461131c90612368565b80156113695780601f1061133e57610100808354040283529160200191611369565b820191906000526020600020905b81548152906001019060200180831161134c57829003601f168201915b5050505050915050919050565b6040516371be737d60e11b81523360048201527f0000000000000000000000006e53130ddff21e3bc963ee902005223b9a202106906000906001600160a01b0383169063e37ce6fa9060240160206040518083038186803b1580156113da57600080fd5b505afa1580156113ee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611412919061208e565b9050806114615760405162461bcd60e51b815260206004820152601f60248201527f4e69667479456e746974793a20496e76616c6964206d73672e73656e64657200604482015260640161065b565b61092f8484611c63565b6000818152600560205260409020546060906001600160a01b03166114f85760405162461bcd60e51b815260206004820152603060248201527f4552433732314d657461646174613a204e616d6520717565727920666f72206e60448201527f6f6e6578697374656e7420746f6b656e00000000000000000000000000000000606482015260840161065b565b600061150383611c0c565b60008181526003602052604090208054919250906112f090612368565b6000818152600760205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155819061156282610dc2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600560205260408120546001600160a01b03166116255760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606482015260840161065b565b600061163083610dc2565b9050806001600160a01b0316846001600160a01b0316148061166b5750836001600160a01b0316611660846105d5565b6001600160a01b0316145b8061169b57506001600160a01b0380821660009081526008602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166116b682610dc2565b6001600160a01b0316146117325760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606482015260840161065b565b6001600160a01b0382166117ad5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161065b565b6117b8600082611520565b6001600160a01b03831660009081526006602052604081208054600192906117e1908490612325565b90915550506001600160a01b038216600090815260066020526040812080546001929061180f9084906122da565b9091555050600081815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828152600460205260409020805461189690612368565b15905061190b5760405162461bcd60e51b815260206004820152602560248201527f4552433732314d657461646174613a2049504653206861736820616c7265616460448201527f7920736574000000000000000000000000000000000000000000000000000000606482015260840161065b565b600082815260046020908152604090912082516107ad92840190611ddc565b600061193582610dc2565b9050611942600083611520565b6001600160a01b038116600090815260066020526040812080546001929061196b908490612325565b9091555050600082815260056020526040808220805473ffffffffffffffffffffffffffffffffffffffff19169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000816119ff7f000000000000000000000000000000000000000000000000000000000000271085612306565b611a29907f000000000000000000000000000000000000000000000000000000030cd223006122da565b611a3391906122da565b9392505050565b8051611a4d906002906020840190611ddc565b5050565b611a5c8484846116a3565b611a6884848484611c82565b61092f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161065b565b606081611b1a57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611b445780611b2e816123a3565b9150611b3d9050600a836122f2565b9150611b1e565b60008167ffffffffffffffff811115611b5f57611b5f612414565b6040519080825280601f01601f191660200182016040528015611b89576020820181803683370190505b5090505b841561169b57611b9e600183612325565b9150611bab600a866123be565b611bb69060306122da565b60f81b818381518110611bcb57611bcb6123fe565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611c05600a866122f2565b9450611b8d565b60007f0000000000000000000000000000000000000000000000000000000000002710611c597f000000000000000000000000000000000000000000000000000000030cd2230084612325565b61052e91906122f2565b600082815260036020908152604090912082516107ad92840190611ddc565b6000833b15611dd157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611cbd90339089908890889060040161228b565b602060405180830381600087803b158015611cd757600080fd5b505af1925050508015611d07575060408051601f3d908101601f19168201909252611d04918101906120c8565b60015b611db7573d808015611d35576040519150601f19603f3d011682016040523d82523d6000602084013e611d3a565b606091505b508051611daf5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161065b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061169b565b506001949350505050565b828054611de890612368565b90600052602060002090601f016020900481019282611e0a5760008555611e50565b82601f10611e2357805160ff1916838001178555611e50565b82800160010185558215611e50579182015b82811115611e50578251825591602001919060010190611e35565b50611e5c929150611e60565b5090565b5b80821115611e5c5760008155600101611e61565b600067ffffffffffffffff80841115611e9057611e90612414565b604051601f8501601f19908116603f01168101908282118183101715611eb857611eb8612414565b81604052809350858152868686011115611ed157600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114611f0257600080fd5b919050565b600082601f830112611f1857600080fd5b611a3383833560208501611e75565b600060208284031215611f3957600080fd5b611a3382611eeb565b60008060408385031215611f5557600080fd5b611f5e83611eeb565b9150611f6c60208401611eeb565b90509250929050565b600080600060608486031215611f8a57600080fd5b611f9384611eeb565b9250611fa160208501611eeb565b9150604084013590509250925092565b60008060008060808587031215611fc757600080fd5b611fd085611eeb565b9350611fde60208601611eeb565b925060408501359150606085013567ffffffffffffffff81111561200157600080fd5b8501601f8101871361201257600080fd5b61202187823560208401611e75565b91505092959194509250565b6000806040838503121561204057600080fd5b61204983611eeb565b915060208301356120598161242a565b809150509250929050565b6000806040838503121561207757600080fd5b61208083611eeb565b946020939093013593505050565b6000602082840312156120a057600080fd5b8151611a338161242a565b6000602082840312156120bd57600080fd5b8135611a3381612438565b6000602082840312156120da57600080fd5b8151611a3381612438565b6000602082840312156120f757600080fd5b813567ffffffffffffffff81111561210e57600080fd5b61169b84828501611f07565b60006020828403121561212c57600080fd5b5035919050565b6000806040838503121561214657600080fd5b82359150602083013567ffffffffffffffff81111561216457600080fd5b61217085828601611f07565b9150509250929050565b6000806040838503121561218d57600080fd5b50508035926020909101359150565b600081518084526121b481602086016020860161233c565b601f01601f19169290920160200192915050565b600081516121da81856020860161233c565b9290920192915050565b600080845481600182811c91508083168061220057607f831692505b602080841082141561222057634e487b7160e01b86526022600452602486fd5b818015612234576001811461224557612272565b60ff19861689528489019650612272565b60008b81526020902060005b8681101561226a5781548b820152908501908301612251565b505084890196505b50505050505061228281856121c8565b95945050505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526122bd608083018461219c565b9695505050505050565b602081526000611a33602083018461219c565b600082198211156122ed576122ed6123d2565b500190565b600082612301576123016123e8565b500490565b6000816000190483118215151615612320576123206123d2565b500290565b600082821015612337576123376123d2565b500390565b60005b8381101561235757818101518382015260200161233f565b8381111561092f5750506000910152565b600181811c9082168061237c57607f821691505b6020821081141561239d57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156123b7576123b76123d2565b5060010190565b6000826123cd576123cd6123e8565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b80151581146109d457600080fd5b6001600160e01b0319811681146109d457600080fdfea264697066735822122084cb93f1d50584cd83d27598c0729904f23c6ecd86e9e526947315bdf6862c3c64736f6c63430008060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000083000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002200000000000000000000000006e53130ddff21e3bc963ee902005223b9a202106000000000000000000000000e052113bd7d7700d623414a0a4585bcae754e9d5000000000000000000000000000000000000000000000000000000000000002844657374726f7920546f20437265617465204f70656e2045646974696f6e73206279205668696c73000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002244455354524f59544f4352454154454f50454e45444954494f4e5342595648494c53000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e68747470733a2f2f6170692e6e69667479676174657761792e636f6d2f7668696c7364657374726f796f70656e2f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055668696c73000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): Destroy To Create Open Editions by Vhils
Arg [1] : symbol (string): DESTROYTOCREATEOPENEDITIONSBYVHILS
Arg [2] : id (uint256): 131
Arg [3] : typeCount (uint256): 2
Arg [4] : baseURI (string): https://api.niftygateway.com/vhilsdestroyopen/
Arg [5] : creator_ (string): Vhils
Arg [6] : niftyRegistryContract (address): 0x6e53130dDfF21E3BC963Ee902005223b9A202106
Arg [7] : defaultOwner (address): 0xE052113bd7D7700d623414a0a4585BCaE754E9d5
-----Encoded View---------------
19 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000083
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [6] : 0000000000000000000000006e53130ddff21e3bc963ee902005223b9a202106
Arg [7] : 000000000000000000000000e052113bd7d7700d623414a0a4585bcae754e9d5
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000028
Arg [9] : 44657374726f7920546f20437265617465204f70656e2045646974696f6e7320
Arg [10] : 6279205668696c73000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000022
Arg [12] : 44455354524f59544f4352454154454f50454e45444954494f4e534259564849
Arg [13] : 4c53000000000000000000000000000000000000000000000000000000000000
Arg [14] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [15] : 68747470733a2f2f6170692e6e69667479676174657761792e636f6d2f766869
Arg [16] : 6c7364657374726f796f70656e2f000000000000000000000000000000000000
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [18] : 5668696c73000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.