Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
WrappedBustOfRomeOneYear
Compiler Version
v0.8.4+commit.c7e474f2
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.0; /// @title WrappedBustOfRomeOneYear /// @author jpegmint.xyz import "./INiftyBuilder.sol"; import "./@jpegmint/contracts/ERC721Wrapper.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; /** * _ __ __ ___ __ ___ ___ * | | /| / /______ ____ ___ ___ ___/ / / _ )__ _____ / /_ ___ / _/ / _ \___ __ _ ___ * | |/ |/ / __/ _ `/ _ \/ _ \/ -_) _ / / _ / // (_-</ __/ / _ \/ _/ / , _/ _ \/ ' \/ -_) * |__/|__/_/ \_,_/ .__/ .__/\__/\_,_/ /____/\_,_/___/\__/ \___/_/ /_/|_|\___/_/_/_/\__/ * /_/ /_/ * * @dev Wrapping contract for ROME token to improve the TokenURI metadata. */ contract WrappedBustOfRomeOneYear is ERC721Wrapper, Ownable { using Strings for uint256; INiftyBuilder private immutable _niftyBuilderInstance; constructor(address niftyBuilderAddress) ERC721("Wrapped Bust of Rome (One Year)", "wROME") { _niftyBuilderInstance = INiftyBuilder(niftyBuilderAddress); } /** * @dev Add access control and force ROME contract address. */ function updateApprovedTokenRanges(address contract_, uint256 minTokenId, uint256 maxTokenId) public override onlyOwner { require(contract_ == address(_niftyBuilderInstance), 'wROME: Can only approve ROME contract tokens.'); _updateApprovedTokenRanges(contract_, minTokenId, maxTokenId); } /** * @dev TokenURI override to return metadata and IPFS/Arweave assets on-chain and dynamically. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "wROME: URI query for nonexistent token"); string memory mintNumber = (tokenId - 100010000).toString(); string memory ipfsHash = _niftyBuilderInstance.tokenIPFSHash(tokenId); string memory arweaveHash = _getTokenArweaveHash(ipfsHash); bytes memory byteString; byteString = abi.encodePacked(byteString, 'data:application/json;utf8,{'); byteString = abi.encodePacked(byteString, '"name": "Eroding and Reforming Bust of Rome (One Year) #', mintNumber, '/671",'); byteString = abi.encodePacked(byteString, '"created_by": "Daniel Arsham",'); byteString = abi.encodePacked(byteString ,'"description": "**Daniel Arsham** (b. 1980)\\n\\n' ,'***Eroding and Reforming Bust of Rome (One Year)***, 2021\\n\\n' ,'With his debut NFT release, Daniel Arsham introduces a concept never before seen on Nifty Gateway. ' ,'His piece will erode, reform, and change based on the time of year.",' ); byteString = abi.encodePacked(byteString, '"external_url": "https://niftygateway.com/collections/danielarsham",'); byteString = abi.encodePacked(byteString ,'"image": "https://arweave.net/', arweaveHash, '",' ,'"image_url": "https://arweave.net/', arweaveHash, '",' ,'"animation": "ipfs://', ipfsHash, '",' ,'"animation_url": "ipfs://', ipfsHash, '",' ); byteString = abi.encodePacked(byteString, '"attributes":[{"trait_type": "Edition", "display_type": "number", "value": ', mintNumber, ', "max_value": 671}]'); byteString = abi.encodePacked(byteString, '}'); return string(byteString); } /** * @dev Returns Arweave hash for the preview image matching given IPFS hash. */ function _getTokenArweaveHash(string memory ipfsHash) private pure returns (string memory) { bytes32 ipfsMatcher = keccak256(abi.encodePacked(ipfsHash)); if (ipfsMatcher == keccak256("QmQdb77jfHZSwk8dGpN3mqx8q4N7EUNytiAgEkXrMPbMVw")) return "iOKh8ppTX5831s9ip169PfcqZ265rlz_kH-oyDXELtA"; //State 1 else if (ipfsMatcher == keccak256("QmS3kaQnxb28vcXQg35PrGarJKkSysttZdNLdZp3JquttQ")) return "4iJ3Igr90bfEkBMeQv1t2S4ctK2X-I18hnbal2YFfWI"; //State 2 else if (ipfsMatcher == keccak256("QmX8beRtZAsed6naFWqddKejV33NoXotqZoGTuDaV5SHqN")) return "y4yuf5VvfAYOl3Rm5DTsAaneJDXwFJGBThI6VG3b7co"; //State 3 else if (ipfsMatcher == keccak256("QmQvsAMYzJm8kGQ7YNF5ziWUb6hr7vqdmkrn1qEPDykYi4")) return "29SOcovLFC5Q4B-YJzgisGgRXllDHoN_l5c8Tan3jHs"; //State 4 else if (ipfsMatcher == keccak256("QmZwHt9ZhCgVMqpcFDhwKSA3higVYQXzyaPqh2BPjjXJXU")) return "d8mJGLKJhg1Gl2OW1qQjcH8Y8tYBCvNWUuGH6iXd18U"; //State 5 else if (ipfsMatcher == keccak256("Qmd2MNfgzPYXGMS1ZgdsiWuAkriRRx15pfRXU7ZVK22jce")) return "siy0OInjmvElSk2ORJ4VNiQC1_dkdKzNRpmkOBBy2hA"; //State 6 else if (ipfsMatcher == keccak256("QmWcYzNdUYbMzrM7bGgTZXVE4GBm7v4dQneKb9fxgjMdAX")) return "5euBxS7JvRrqb7fxh4wLjEW5abPswocAGTHjqlrkyBE"; //State 7 else if (ipfsMatcher == keccak256("QmaXX7VuBY1dCeK78TTGEvYLTF76sf6fnzK7TJSni4PHxj")) return "7IK1u-DsuAj0nQzpwmQpo66dwpWx8PS9i-xv6aS6y6I"; //State 8 else if (ipfsMatcher == keccak256("QmaqeJnzF2cAdfDrYRAw6VwzNn9dY9bKTyUuTHg1gUSQY7")) return "LWpLIs3-PUvV6WvXa-onc5QZ5FeYiEpiIwRfc_u64ss"; //State 9 else if (ipfsMatcher == keccak256("QmSZquD6yGy5QvsJnygXUnWKrsKJvk942L8nzs6YZFKbxY")) return "vzLvsueGrzpVI_MZBogAw57Pi1OdynahcolZPpvhEQI"; //State 10 else if (ipfsMatcher == keccak256("QmYtdrfPd3jAWWpjkd24NzLGqH5TDsHNvB8Qtqu6xnBcJF")) return "iEh79QQjaMjKd0I6d6eM8UYcFw-pj5_gBdGhTOTB54g"; //State 11 else if (ipfsMatcher == keccak256("QmesagGNeyjDvJ2N5oc8ykBiwsiE7gdk9vnfjjAe3ipjx4")) return "b132CTM45LOEMwzOqxnPqtDqlPPwcaQ0ztQ5OWhBnvQ"; //State 12 revert('wROME: Invalid IPFS hash'); } /** * Recovery function to extract orphaned ROME tokens. Works only if wROME contract * owns unwrapped ROME token. */ function recoverOrphanedToken(uint256 tokenId) external onlyOwner { require(!_exists(tokenId), "wROME: can't recover wrapped token"); require(_niftyBuilderInstance.ownerOf(tokenId) == address(this), "wROME: can't recover token that is not own"); _niftyBuilderInstance.safeTransferFrom(address(this), msg.sender, tokenId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping (uint256 => address) private _owners; // Mapping owner address to token count mapping (address => uint256) private _balances; // Mapping from token ID to approved address mapping (uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping (address => mapping (address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor (string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. 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` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual { _mint(to, tokenId); require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev 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 { // solhint-disable-next-line no-inline-assembly 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` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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); } /** * @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] = alphabet[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author jpegmint.xyz import "./IERC721Wrapper.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; /** * @title ERC721 token wrapping base. */ abstract contract ERC721Wrapper is ERC721, IERC721Wrapper, ReentrancyGuard { struct TokenIdRange { uint256 minTokenId; uint256 maxTokenId; } mapping(address => TokenIdRange) private _approvedTokenRanges; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Wrapper).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Transfers contract/tokenId into contract and issues wrapping token. */ function wrap(address contract_, uint256 tokenId) external virtual override nonReentrant { require(IERC721(contract_).ownerOf(tokenId) == msg.sender, 'ERC721Wrapper: Caller must own NFT.'); require(IERC721(contract_).getApproved(tokenId) == address(this), 'ERC721Wrapper: Contract must be given approval to wrap NFT.'); require(isWrappable(contract_, tokenId), 'ERC721Wrapper: TokenId not within approved range.'); IERC721(contract_).transferFrom(msg.sender, address(this), tokenId); _wrap(msg.sender, tokenId); } /** * @dev Burns wrapped token and transfer original back to sender. */ function unwrap(address contract_, uint256 tokenId) external virtual override nonReentrant { require(msg.sender == ownerOf(tokenId), "ERC721Wrapper: Caller does not own wrapped token."); _burn(tokenId); IERC721(contract_).safeTransferFrom(address(this), msg.sender, tokenId); emit Unwrapped(msg.sender, tokenId); } /** * @dev Receives token and mints wrapped token back to sender. */ function onERC721Received(address, address from, uint256 tokenId, bytes calldata) external virtual override nonReentrant returns (bytes4) { require(isWrappable(msg.sender, tokenId), 'ERC721Wrapper: TokenId not within approved range.'); _wrap(from, tokenId); return this.onERC721Received.selector; } /** * @dev Mints wrapped token. */ function _wrap(address to, uint256 tokenId) internal virtual { _mint(to, tokenId); emit Wrapped(to, tokenId); } /** * @dev Returns whether the specified tokenId is approved to wrap. */ function isWrappable(address contract_, uint256 tokenId) public view virtual override returns (bool) { return ( _approvedTokenRanges[contract_].maxTokenId != 0 && tokenId >= _approvedTokenRanges[contract_].minTokenId && tokenId <= _approvedTokenRanges[contract_].maxTokenId ); } /** * @dev See {IERC721Wrapper-updateApprovedTokenRanges}. */ function updateApprovedTokenRanges(address contract_, uint256 minTokenId, uint256 maxTokenId) public virtual override; /** * @dev Updates approved contract/token ranges. Simple access control mechanism. */ function _updateApprovedTokenRanges(address contract_, uint256 minTokenId, uint256 maxTokenId) internal virtual { require(minTokenId <= maxTokenId, 'ERC721Wrapper: Min tokenId must be less-than/equal to max.'); if (_approvedTokenRanges[contract_].maxTokenId == 0) { _approvedTokenRanges[contract_] = TokenIdRange(minTokenId, maxTokenId); } else { _approvedTokenRanges[contract_].minTokenId = minTokenId; _approvedTokenRanges[contract_].maxTokenId = maxTokenId; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author jpegmint.xyz import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; /** * @dev NiftyBuilder interface stub for IPFS hash method. */ interface INiftyBuilder is IERC721 { /** * @dev Returns IPFS hash for the tokenId. */ function tokenIPFSHash(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author jpegmint.xyz import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; /** * @title ERC721 token wrapping interface. */ interface IERC721Wrapper is IERC721, IERC721Receiver { /** * @dev Emitted when `tokenId` token wrapped by `from`. */ event Wrapped(address indexed from, uint256 tokenId); /** * @dev Emitted when `tokenId` token is unwrapped by `from`. */ event Unwrapped(address indexed from, uint256 tokenId); /** * @dev Wraps `tokenId` by receiving token and minting matching token. * Emits a {Wrapped} event. */ function wrap(address contract_, uint256 tokenId) external; /** * @dev Unwraps `tokenId` by burning wrapped and returning original token. * Emits a {Unwrapped} event. */ function unwrap(address contract_, uint256 tokenId) external; /** * @dev Checks and returns whether the tokenId is wrappable. */ function isWrappable(address contract_, uint256 tokenId) external view returns (bool); /** * @dev Updates and maintains approved contract/tokenIds that contract can wrap. */ function updateApprovedTokenRanges(address contract_, uint256 minTokenId, uint256 maxTokenId) external; }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4); }
// SPDX-License-Identifier: MIT 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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"niftyBuilderAddress","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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Unwrapped","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Wrapped","type":"event"},{"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":"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":"address","name":"contract_","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isWrappable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"recoverOrphanedToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"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":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contract_","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"unwrap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contract_","type":"address"},{"internalType":"uint256","name":"minTokenId","type":"uint256"},{"internalType":"uint256","name":"maxTokenId","type":"uint256"}],"name":"updateApprovedTokenRanges","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contract_","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"wrap","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b50604051620030f1380380620030f18339810160408190526200003491620001b3565b604080518082018252601f81527f577261707065642042757374206f6620526f6d6520284f6e652059656172290060208083019182528351808501909452600584526477524f4d4560d81b90840152815191929162000096916000916200010d565b508051620000ac9060019060208401906200010d565b5050600160065550600880546001600160a01b0319163390811790915560405181906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060601b6001600160601b03191660805262000220565b8280546200011b90620001e3565b90600052602060002090601f0160209004810192826200013f57600085556200018a565b82601f106200015a57805160ff19168380011785556200018a565b828001600101855582156200018a579182015b828111156200018a5782518255916020019190600101906200016d565b50620001989291506200019c565b5090565b5b808211156200019857600081556001016200019d565b600060208284031215620001c5578081fd5b81516001600160a01b0381168114620001dc578182fd5b9392505050565b600181811c90821680620001f857607f821691505b602082108114156200021a57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160601c612e9d620002546000396000818161065c01528181610ed901528181611147015261124c0152612e9d6000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c806370a08231116100b8578063b88d4fde1161007c578063b88d4fde146102b7578063bf376c7a146102ca578063c87b56dd146102dd578063d3c62c81146102f0578063e985e9c514610303578063f2fde38b1461033f57600080fd5b806370a0823114610262578063715018a6146102835780638da5cb5b1461028b57806395d89b411461029c578063a22cb465146102a457600080fd5b8063163fb40f1161010a578063163fb40f146101f057806323b872dd1461020357806339f476931461021657806342842e0e146102295780636352211e1461023c5780636ae9c4c61461024f57600080fd5b806301ffc9a71461014757806306fdde031461016f578063081812fc14610184578063095ea7b3146101af578063150b7a02146101c4575b600080fd5b61015a6101553660046122c5565b610352565b60405190151581526020015b60405180910390f35b61017761037d565b604051610166919061294e565b610197610192366004612370565b61040f565b6040516001600160a01b039091168152602001610166565b6101c26101bd366004612266565b6104a9565b005b6101d76101d23660046120f4565b6105bf565b6040516001600160e01b03199091168152602001610166565b6101c26101fe366004612291565b610630565b6101c26102113660046120b4565b6106fc565b6101c2610224366004612266565b61072d565b6101c26102373660046120b4565b610885565b61019761024a366004612370565b6108a0565b61015a61025d366004612266565b610917565b610275610270366004612044565b610987565b604051908152602001610166565b6101c2610a0e565b6008546001600160a01b0316610197565b610177610a82565b6101c26102b2366004612235565b610a91565b6101c26102c536600461218e565b610b56565b6101c26102d8366004612266565b610b8e565b6101776102eb366004612370565b610e27565b6101c26102fe366004612370565b61108d565b61015a61031136600461207c565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6101c261034d366004612044565b6112b3565b60006001600160e01b031982166307d0ab5160e51b148061037757506103778261139e565b92915050565b60606000805461038c90612b89565b80601f01602080910402602001604051908101604052809291908181526020018280546103b890612b89565b80156104055780601f106103da57610100808354040283529160200191610405565b820191906000526020600020905b8154815290600101906020018083116103e857829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661048d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006104b4826108a0565b9050806001600160a01b0316836001600160a01b031614156105225760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610484565b336001600160a01b038216148061053e575061053e8133610311565b6105b05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610484565b6105ba83836113ee565b505050565b6000600260065414156105e45760405162461bcd60e51b815260040161048490612a8a565b60026006556105f33385610917565b61060f5760405162461bcd60e51b8152600401610484906129e8565b610619858561145c565b50630a85bd0160e11b600160065595945050505050565b6008546001600160a01b0316331461065a5760405162461bcd60e51b8152600401610484906129b3565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b0316146106f15760405162461bcd60e51b815260206004820152602d60248201527f77524f4d453a2043616e206f6e6c7920617070726f766520524f4d4520636f6e60448201526c3a3930b1ba103a37b5b2b7399760991b6064820152608401610484565b6105ba8383836114ad565b61070633826115a1565b6107225760405162461bcd60e51b815260040161048490612a39565b6105ba838383611698565b600260065414156107505760405162461bcd60e51b815260040161048490612a8a565b600260065561075e816108a0565b6001600160a01b0316336001600160a01b0316146107d85760405162461bcd60e51b815260206004820152603160248201527f455243373231577261707065723a2043616c6c657220646f6573206e6f74206f6044820152703bb7103bb930b83832b2103a37b5b2b71760791b6064820152608401610484565b6107e181611838565b604051632142170760e11b8152306004820152336024820152604481018290526001600160a01b038316906342842e0e90606401600060405180830381600087803b15801561082f57600080fd5b505af1158015610843573d6000803e3d6000fd5b50506040518381523392507f95ae649bfaaef9def56a52f4fb2d9e8fa5496bb7082930e442c74cc76b03dcb3915060200160405180910390a250506001600655565b6105ba83838360405180602001604052806000815250610b56565b6000818152600260205260408120546001600160a01b0316806103775760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610484565b6001600160a01b0382166000908152600760205260408120600101541580159061095957506001600160a01b0383166000908152600760205260409020548210155b801561098057506001600160a01b0383166000908152600760205260409020600101548211155b9392505050565b60006001600160a01b0382166109f25760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610484565b506001600160a01b031660009081526003602052604090205490565b6008546001600160a01b03163314610a385760405162461bcd60e51b8152600401610484906129b3565b6008546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600880546001600160a01b0319169055565b60606001805461038c90612b89565b6001600160a01b038216331415610aea5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610484565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610b6033836115a1565b610b7c5760405162461bcd60e51b815260040161048490612a39565b610b88848484846118d3565b50505050565b60026006541415610bb15760405162461bcd60e51b815260040161048490612a8a565b60026006556040516331a9108f60e11b81526004810182905233906001600160a01b03841690636352211e9060240160206040518083038186803b158015610bf857600080fd5b505afa158015610c0c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c309190612060565b6001600160a01b031614610c925760405162461bcd60e51b815260206004820152602360248201527f455243373231577261707065723a2043616c6c6572206d757374206f776e204e604482015262232a1760e91b6064820152608401610484565b60405163020604bf60e21b81526004810182905230906001600160a01b0384169063081812fc9060240160206040518083038186803b158015610cd457600080fd5b505afa158015610ce8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d0c9190612060565b6001600160a01b031614610d885760405162461bcd60e51b815260206004820152603b60248201527f455243373231577261707065723a20436f6e7472616374206d7573742062652060448201527f676976656e20617070726f76616c20746f2077726170204e46542e00000000006064820152608401610484565b610d928282610917565b610dae5760405162461bcd60e51b8152600401610484906129e8565b6040516323b872dd60e01b8152336004820152306024820152604481018290526001600160a01b038316906323b872dd90606401600060405180830381600087803b158015610dfc57600080fd5b505af1158015610e10573d6000803e3d6000fd5b50505050610e1e338261145c565b50506001600655565b6000818152600260205260409020546060906001600160a01b0316610e9d5760405162461bcd60e51b815260206004820152602660248201527f77524f4d453a2055524920717565727920666f72206e6f6e6578697374656e74604482015265103a37b5b2b760d11b6064820152608401610484565b6000610eb5610eb06305f6081085612b46565b611906565b604051630d37166360e41b8152600481018590529091506000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d37166309060240160006040518083038186803b158015610f1b57600080fd5b505afa158015610f2f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610f5791908101906122fd565b90506000610f6482611a20565b9050606080604051602001610f79919061276e565b60405160208183030381529060405290508084604051602001610f9d929190612863565b604051602081830303815290604052905080604051602001610fbf91906126b9565b604051602081830303815290604052905080604051602001610fe191906123d0565b60405160208183030381529060405290508060405160200161100391906126fa565b6040516020818303038152906040529050808283858660405160200161102d95949392919061254f565b604051602081830303815290604052905080846040516020016110519291906127af565b6040516020818303038152906040529050806040516020016110739190612694565b60408051601f198184030181529190529695505050505050565b6008546001600160a01b031633146110b75760405162461bcd60e51b8152600401610484906129b3565b6000818152600260205260409020546001600160a01b0316156111275760405162461bcd60e51b815260206004820152602260248201527f77524f4d453a2063616e2774207265636f766572207772617070656420746f6b60448201526132b760f11b6064820152608401610484565b6040516331a9108f60e11b81526004810182905230906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636352211e9060240160206040518083038186803b15801561118957600080fd5b505afa15801561119d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c19190612060565b6001600160a01b03161461122a5760405162461bcd60e51b815260206004820152602a60248201527f77524f4d453a2063616e2774207265636f76657220746f6b656e20746861742060448201526934b9903737ba1037bbb760b11b6064820152608401610484565b604051632142170760e11b8152306004820152336024820152604481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906342842e0e90606401600060405180830381600087803b15801561129857600080fd5b505af11580156112ac573d6000803e3d6000fd5b5050505050565b6008546001600160a01b031633146112dd5760405162461bcd60e51b8152600401610484906129b3565b6001600160a01b0381166113425760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610484565b6008546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b031982166380ac58cd60e01b14806113cf57506001600160e01b03198216635b5e139f60e01b145b8061037757506301ffc9a760e01b6001600160e01b0319831614610377565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611423826108a0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6114668282611df5565b816001600160a01b03167f4700c1726b4198077cd40320a32c45265a1910521eb0ef713dd1d8412413d7fc826040516114a191815260200190565b60405180910390a25050565b808211156115235760405162461bcd60e51b815260206004820152603a60248201527f455243373231577261707065723a204d696e20746f6b656e4964206d7573742060448201527f6265206c6573732d7468616e2f657175616c20746f206d61782e0000000000006064820152608401610484565b6001600160a01b03831660009081526007602052604090206001015461157e5760408051808201825292835260208084019283526001600160a01b039490941660009081526007909452909220905181559051600190910155565b6001600160a01b0392909216600090815260076020526040902090815560010155565b6000818152600260205260408120546001600160a01b031661161a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610484565b6000611625836108a0565b9050806001600160a01b0316846001600160a01b031614806116605750836001600160a01b03166116558461040f565b6001600160a01b0316145b8061169057506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166116ab826108a0565b6001600160a01b0316146117135760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610484565b6001600160a01b0382166117755760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610484565b6117806000826113ee565b6001600160a01b03831660009081526003602052604081208054600192906117a9908490612b46565b90915550506001600160a01b03821660009081526003602052604081208054600192906117d7908490612b1a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611843826108a0565b90506118506000836113ee565b6001600160a01b0381166000908152600360205260408120805460019290611879908490612b46565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6118de848484611698565b6118ea84848484611f37565b610b885760405162461bcd60e51b815260040161048490612961565b60608161192a5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611954578061193e81612bc4565b915061194d9050600a83612b32565b915061192e565b60008167ffffffffffffffff81111561197d57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156119a7576020820181803683370190505b5090505b8415611690576119bc600183612b46565b91506119c9600a86612bdf565b6119d4906030612b1a565b60f81b8183815181106119f757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611a19600a86612b32565b94506119ab565b6060600082604051602001611a3591906128f5565b6040516020818303038152906040528051906020012090507ffdd5330ab3dec43e32fb50274a014afe537628d3ba318a5ca6315d204828f012811415611a95576040518060600160405280602b8152602001612e3d602b91399392505050565b7f78442431b797b4edee94c35fadc70425985a7b584140f7613c9a7a1dccdea8a3811415611add576040518060600160405280602b8152602001612cba602b91399392505050565b7f2af630d7bba4eae040502ab5288b7bd739a55b39ace97ae9a1b214320f370ffe811415611b25576040518060600160405280602b8152602001612d10602b91399392505050565b7f6db27747d1206c90b6ecdf586d7eb0d8eacfc7debc6e91b0beb20fb723d3c628811415611b6d576040518060600160405280602b8152602001612d91602b91399392505050565b7f415a43053cf5f7a78a439ed4bdf256a798bd7d23793e75195d65386554ef73d9811415611bb5576040518060600160405280602b8152602001612e12602b91399392505050565b7f397ba1cbfda602d8a7f0bb8bf599a6edfb9e60108e95a94b660d3bdddb1f35e7811415611bfd576040518060600160405280602b8152602001612d66602b91399392505050565b7f6dd7b46cd1f04d0a0699d7b36f965ab3303fb6a59ef56c1e33ead74e94ca0614811415611c45576040518060600160405280602b8152602001612de7602b91399392505050565b7ff98ccf0fcefc57128de54b3ee783b7beb1f3d5cdc23fb03eb07150a596f110a4811415611c8d576040518060600160405280602b8152602001612c64602b91399392505050565b7fbbd5db3880e7e60ed1f5040bea0c091266392abef728b4dae32ccc926b36b041811415611cd5576040518060600160405280602b8152602001612ce5602b91399392505050565b7fba8dce1b228b60faaed255c962de146542582494a02b3fee7d91af094247a745811415611d1d576040518060600160405280602b8152602001612c8f602b91399392505050565b7f820f8f28da1166b6698bbf62b179ba30d238f07812c7bae8026f9c0b8aae55fc811415611d65576040518060600160405280602b8152602001612d3b602b91399392505050565b7fe3370b697b4eeb2c3d9b368999ba6c2c976a812832d43f0ecf353a84110e86ec811415611dad576040518060600160405280602b8152602001612dbc602b91399392505050565b60405162461bcd60e51b815260206004820152601860248201527f77524f4d453a20496e76616c69642049504653206861736800000000000000006044820152606401610484565b6001600160a01b038216611e4b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610484565b6000818152600260205260409020546001600160a01b031615611eb05760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610484565b6001600160a01b0382166000908152600360205260408120805460019290611ed9908490612b1a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b1561203957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611f7b903390899088908890600401612911565b602060405180830381600087803b158015611f9557600080fd5b505af1925050508015611fc5575060408051601f3d908101601f19168201909252611fc2918101906122e1565b60015b61201f573d808015611ff3576040519150601f19603f3d011682016040523d82523d6000602084013e611ff8565b606091505b5080516120175760405162461bcd60e51b815260040161048490612961565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611690565b506001949350505050565b600060208284031215612055578081fd5b813561098081612c35565b600060208284031215612071578081fd5b815161098081612c35565b6000806040838503121561208e578081fd5b823561209981612c35565b915060208301356120a981612c35565b809150509250929050565b6000806000606084860312156120c8578081fd5b83356120d381612c35565b925060208401356120e381612c35565b929592945050506040919091013590565b60008060008060006080868803121561210b578081fd5b853561211681612c35565b9450602086013561212681612c35565b935060408601359250606086013567ffffffffffffffff80821115612149578283fd5b818801915088601f83011261215c578283fd5b81358181111561216a578384fd5b89602082850101111561217b578384fd5b9699959850939650602001949392505050565b600080600080608085870312156121a3578384fd5b84356121ae81612c35565b935060208501356121be81612c35565b925060408501359150606085013567ffffffffffffffff8111156121e0578182fd5b8501601f810187136121f0578182fd5b80356122036121fe82612af2565b612ac1565b818152886020838501011115612217578384fd5b81602084016020830137908101602001929092525092959194509250565b60008060408385031215612247578182fd5b823561225281612c35565b9150602083013580151581146120a9578182fd5b60008060408385031215612278578182fd5b823561228381612c35565b946020939093013593505050565b6000806000606084860312156122a5578283fd5b83356122b081612c35565b95602085013595506040909401359392505050565b6000602082840312156122d6578081fd5b813561098081612c4d565b6000602082840312156122f2578081fd5b815161098081612c4d565b60006020828403121561230e578081fd5b815167ffffffffffffffff811115612324578182fd5b8201601f81018413612334578182fd5b80516123426121fe82612af2565b818152856020838501011115612356578384fd5b612367826020830160208601612b5d565b95945050505050565b600060208284031215612381578081fd5b5035919050565b600081518084526123a0816020860160208601612b5d565b601f01601f19169290920160200192915050565b600081516123c6818560208601612b5d565b9290920192915050565b600082516123e2818460208701612b5d565b7f226465736372697074696f6e223a20222a2a44616e69656c2041727368616d2a9201918252506e151014311710189c9c1814ae372e3760891b60208201527f2a2a2a45726f64696e6720616e64205265666f726d696e672042757374206f66602f8201527f20526f6d6520284f6e652059656172292a2a2a2c20323032315c6e5c6e000000604f8201527f5769746820686973206465627574204e46542072656c656173652c2044616e69606c8201527f656c2041727368616d20696e74726f6475636573206120636f6e63657074206e608c8201527f65766572206265666f7265207365656e206f6e204e696674792047617465776160ac8201526203c97160ed1b60cc8201527f4869732070696563652077696c6c2065726f64652c207265666f726d2c20616e60cf8201527f64206368616e6765206261736564206f6e207468652074696d65206f6620796560ef82015264185c8b888b60da1b61010f82015261011401919050565b60008651612561818460208b01612b5d565b7f22696d616765223a202268747470733a2f2f617277656176652e6e65742f0000908301908152865161259b81601e840160208b01612b5d565b80820191505061088b60f21b80601e8301527f22696d6167655f75726c223a202268747470733a2f2f617277656176652e6e65602083015261742f60f01b604083015286516125f1816042850160208b01612b5d565b60429201918201527422616e696d6174696f6e223a2022697066733a2f2f60581b6044820152845161262a816059840160208901612b5d565b61268761267961267361264a60598587010161088b60f21b815260020190565b7f22616e696d6174696f6e5f75726c223a2022697066733a2f2f00000000000000815260190190565b876123b4565b61088b60f21b815260020190565b9998505050505050505050565b600082516126a6818460208701612b5d565b607d60f81b920191825250600101919050565b600082516126cb818460208701612b5d565b7f22637265617465645f6279223a202244616e69656c2041727368616d222c0000920191825250601e01919050565b6000825161270c818460208701612b5d565b7f2265787465726e616c5f75726c223a202268747470733a2f2f6e6966747967619201918252507f74657761792e636f6d2f636f6c6c656374696f6e732f64616e69656c61727368602082015263185b488b60e21b6040820152604401919050565b60008251612780818460208701612b5d565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b00000000920191825250601c01919050565b600083516127c1818460208801612b5d565b80830190507f2261747472696275746573223a5b7b2274726169745f74797065223a2022456481527f6974696f6e222c2022646973706c61795f74797065223a20226e756d6265722260208201526a01610113b30b63ab2911d160ad1b6040820152835161283681604b840160208801612b5d565b732c20226d61785f76616c7565223a203637317d5d60601b604b9290910191820152605f01949350505050565b60008351612875818460208801612b5d565b80830190507f226e616d65223a202245726f64696e6720616e64205265666f726d696e67204281527f757374206f6620526f6d6520284f6e6520596561722920230000000000000000602082015283516128d6816038840160208801612b5d565b650bcd8dcc488b60d21b60389290910191820152603e01949350505050565b60008251612907818460208701612b5d565b9190910192915050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061294490830184612388565b9695505050505050565b6020815260006109806020830184612388565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f455243373231577261707065723a20546f6b656e4964206e6f74207769746869604082015270371030b8383937bb32b2103930b733b29760791b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f1916810167ffffffffffffffff81118282101715612aea57612aea612c1f565b604052919050565b600067ffffffffffffffff821115612b0c57612b0c612c1f565b50601f01601f191660200190565b60008219821115612b2d57612b2d612bf3565b500190565b600082612b4157612b41612c09565b500490565b600082821015612b5857612b58612bf3565b500390565b60005b83811015612b78578181015183820152602001612b60565b83811115610b885750506000910152565b600181811c90821680612b9d57607f821691505b60208210811415612bbe57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612bd857612bd8612bf3565b5060010190565b600082612bee57612bee612c09565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612c4a57600080fd5b50565b6001600160e01b031981168114612c4a57600080fdfe37494b31752d447375416a306e517a70776d51706f3636647770577838505339692d787636615336793649767a4c7673756547727a7056495f4d5a426f67417735375069314f64796e6168636f6c5a5070766845514934694a3349677239306266456b424d655176317432533463744b32582d493138686e62616c3259466657494c57704c4973332d5055765636577658612d6f6e6335515a354665596945706949775266635f753634737379347975663556766641594f6c33526d3544547341616e654a445877464a4742546849365647336237636f694568373951516a614d6a4b643049366436654d3855596346772d706a355f6742644768544f5442353467736979304f496e6a6d76456c536b324f524a34564e695143315f646b644b7a4e52706d6b4f4242793268413239534f636f764c4643355134422d594a7a676973476752586c6c44486f4e5f6c35633854616e336a48736231333243544d34354c4f454d777a4f71786e50717444716c505077636151307a7451354f5768426e7651356575427853374a76527271623766786834774c6a45573561625073776f63414754486a716c726b79424564386d4a474c4b4a686731476c324f573171516a634838593874594243764e575575474836695864313855694f4b6838707054583538333173396970313639506663715a323635726c7a5f6b482d6f794458454c7441a2646970667358221220a4f68b025d3b6a91622939e9e7affb12144abd9d5212c9b4a8e495dd4757296c64736f6c634300080400330000000000000000000000003e34556b7d6a6c79320168140e14c10d7a1febb7
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101425760003560e01c806370a08231116100b8578063b88d4fde1161007c578063b88d4fde146102b7578063bf376c7a146102ca578063c87b56dd146102dd578063d3c62c81146102f0578063e985e9c514610303578063f2fde38b1461033f57600080fd5b806370a0823114610262578063715018a6146102835780638da5cb5b1461028b57806395d89b411461029c578063a22cb465146102a457600080fd5b8063163fb40f1161010a578063163fb40f146101f057806323b872dd1461020357806339f476931461021657806342842e0e146102295780636352211e1461023c5780636ae9c4c61461024f57600080fd5b806301ffc9a71461014757806306fdde031461016f578063081812fc14610184578063095ea7b3146101af578063150b7a02146101c4575b600080fd5b61015a6101553660046122c5565b610352565b60405190151581526020015b60405180910390f35b61017761037d565b604051610166919061294e565b610197610192366004612370565b61040f565b6040516001600160a01b039091168152602001610166565b6101c26101bd366004612266565b6104a9565b005b6101d76101d23660046120f4565b6105bf565b6040516001600160e01b03199091168152602001610166565b6101c26101fe366004612291565b610630565b6101c26102113660046120b4565b6106fc565b6101c2610224366004612266565b61072d565b6101c26102373660046120b4565b610885565b61019761024a366004612370565b6108a0565b61015a61025d366004612266565b610917565b610275610270366004612044565b610987565b604051908152602001610166565b6101c2610a0e565b6008546001600160a01b0316610197565b610177610a82565b6101c26102b2366004612235565b610a91565b6101c26102c536600461218e565b610b56565b6101c26102d8366004612266565b610b8e565b6101776102eb366004612370565b610e27565b6101c26102fe366004612370565b61108d565b61015a61031136600461207c565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6101c261034d366004612044565b6112b3565b60006001600160e01b031982166307d0ab5160e51b148061037757506103778261139e565b92915050565b60606000805461038c90612b89565b80601f01602080910402602001604051908101604052809291908181526020018280546103b890612b89565b80156104055780601f106103da57610100808354040283529160200191610405565b820191906000526020600020905b8154815290600101906020018083116103e857829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661048d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006104b4826108a0565b9050806001600160a01b0316836001600160a01b031614156105225760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610484565b336001600160a01b038216148061053e575061053e8133610311565b6105b05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610484565b6105ba83836113ee565b505050565b6000600260065414156105e45760405162461bcd60e51b815260040161048490612a8a565b60026006556105f33385610917565b61060f5760405162461bcd60e51b8152600401610484906129e8565b610619858561145c565b50630a85bd0160e11b600160065595945050505050565b6008546001600160a01b0316331461065a5760405162461bcd60e51b8152600401610484906129b3565b7f0000000000000000000000003e34556b7d6a6c79320168140e14c10d7a1febb76001600160a01b0316836001600160a01b0316146106f15760405162461bcd60e51b815260206004820152602d60248201527f77524f4d453a2043616e206f6e6c7920617070726f766520524f4d4520636f6e60448201526c3a3930b1ba103a37b5b2b7399760991b6064820152608401610484565b6105ba8383836114ad565b61070633826115a1565b6107225760405162461bcd60e51b815260040161048490612a39565b6105ba838383611698565b600260065414156107505760405162461bcd60e51b815260040161048490612a8a565b600260065561075e816108a0565b6001600160a01b0316336001600160a01b0316146107d85760405162461bcd60e51b815260206004820152603160248201527f455243373231577261707065723a2043616c6c657220646f6573206e6f74206f6044820152703bb7103bb930b83832b2103a37b5b2b71760791b6064820152608401610484565b6107e181611838565b604051632142170760e11b8152306004820152336024820152604481018290526001600160a01b038316906342842e0e90606401600060405180830381600087803b15801561082f57600080fd5b505af1158015610843573d6000803e3d6000fd5b50506040518381523392507f95ae649bfaaef9def56a52f4fb2d9e8fa5496bb7082930e442c74cc76b03dcb3915060200160405180910390a250506001600655565b6105ba83838360405180602001604052806000815250610b56565b6000818152600260205260408120546001600160a01b0316806103775760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610484565b6001600160a01b0382166000908152600760205260408120600101541580159061095957506001600160a01b0383166000908152600760205260409020548210155b801561098057506001600160a01b0383166000908152600760205260409020600101548211155b9392505050565b60006001600160a01b0382166109f25760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610484565b506001600160a01b031660009081526003602052604090205490565b6008546001600160a01b03163314610a385760405162461bcd60e51b8152600401610484906129b3565b6008546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600880546001600160a01b0319169055565b60606001805461038c90612b89565b6001600160a01b038216331415610aea5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610484565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610b6033836115a1565b610b7c5760405162461bcd60e51b815260040161048490612a39565b610b88848484846118d3565b50505050565b60026006541415610bb15760405162461bcd60e51b815260040161048490612a8a565b60026006556040516331a9108f60e11b81526004810182905233906001600160a01b03841690636352211e9060240160206040518083038186803b158015610bf857600080fd5b505afa158015610c0c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c309190612060565b6001600160a01b031614610c925760405162461bcd60e51b815260206004820152602360248201527f455243373231577261707065723a2043616c6c6572206d757374206f776e204e604482015262232a1760e91b6064820152608401610484565b60405163020604bf60e21b81526004810182905230906001600160a01b0384169063081812fc9060240160206040518083038186803b158015610cd457600080fd5b505afa158015610ce8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d0c9190612060565b6001600160a01b031614610d885760405162461bcd60e51b815260206004820152603b60248201527f455243373231577261707065723a20436f6e7472616374206d7573742062652060448201527f676976656e20617070726f76616c20746f2077726170204e46542e00000000006064820152608401610484565b610d928282610917565b610dae5760405162461bcd60e51b8152600401610484906129e8565b6040516323b872dd60e01b8152336004820152306024820152604481018290526001600160a01b038316906323b872dd90606401600060405180830381600087803b158015610dfc57600080fd5b505af1158015610e10573d6000803e3d6000fd5b50505050610e1e338261145c565b50506001600655565b6000818152600260205260409020546060906001600160a01b0316610e9d5760405162461bcd60e51b815260206004820152602660248201527f77524f4d453a2055524920717565727920666f72206e6f6e6578697374656e74604482015265103a37b5b2b760d11b6064820152608401610484565b6000610eb5610eb06305f6081085612b46565b611906565b604051630d37166360e41b8152600481018590529091506000906001600160a01b037f0000000000000000000000003e34556b7d6a6c79320168140e14c10d7a1febb7169063d37166309060240160006040518083038186803b158015610f1b57600080fd5b505afa158015610f2f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610f5791908101906122fd565b90506000610f6482611a20565b9050606080604051602001610f79919061276e565b60405160208183030381529060405290508084604051602001610f9d929190612863565b604051602081830303815290604052905080604051602001610fbf91906126b9565b604051602081830303815290604052905080604051602001610fe191906123d0565b60405160208183030381529060405290508060405160200161100391906126fa565b6040516020818303038152906040529050808283858660405160200161102d95949392919061254f565b604051602081830303815290604052905080846040516020016110519291906127af565b6040516020818303038152906040529050806040516020016110739190612694565b60408051601f198184030181529190529695505050505050565b6008546001600160a01b031633146110b75760405162461bcd60e51b8152600401610484906129b3565b6000818152600260205260409020546001600160a01b0316156111275760405162461bcd60e51b815260206004820152602260248201527f77524f4d453a2063616e2774207265636f766572207772617070656420746f6b60448201526132b760f11b6064820152608401610484565b6040516331a9108f60e11b81526004810182905230906001600160a01b037f0000000000000000000000003e34556b7d6a6c79320168140e14c10d7a1febb71690636352211e9060240160206040518083038186803b15801561118957600080fd5b505afa15801561119d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c19190612060565b6001600160a01b03161461122a5760405162461bcd60e51b815260206004820152602a60248201527f77524f4d453a2063616e2774207265636f76657220746f6b656e20746861742060448201526934b9903737ba1037bbb760b11b6064820152608401610484565b604051632142170760e11b8152306004820152336024820152604481018290527f0000000000000000000000003e34556b7d6a6c79320168140e14c10d7a1febb76001600160a01b0316906342842e0e90606401600060405180830381600087803b15801561129857600080fd5b505af11580156112ac573d6000803e3d6000fd5b5050505050565b6008546001600160a01b031633146112dd5760405162461bcd60e51b8152600401610484906129b3565b6001600160a01b0381166113425760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610484565b6008546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b031982166380ac58cd60e01b14806113cf57506001600160e01b03198216635b5e139f60e01b145b8061037757506301ffc9a760e01b6001600160e01b0319831614610377565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611423826108a0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6114668282611df5565b816001600160a01b03167f4700c1726b4198077cd40320a32c45265a1910521eb0ef713dd1d8412413d7fc826040516114a191815260200190565b60405180910390a25050565b808211156115235760405162461bcd60e51b815260206004820152603a60248201527f455243373231577261707065723a204d696e20746f6b656e4964206d7573742060448201527f6265206c6573732d7468616e2f657175616c20746f206d61782e0000000000006064820152608401610484565b6001600160a01b03831660009081526007602052604090206001015461157e5760408051808201825292835260208084019283526001600160a01b039490941660009081526007909452909220905181559051600190910155565b6001600160a01b0392909216600090815260076020526040902090815560010155565b6000818152600260205260408120546001600160a01b031661161a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610484565b6000611625836108a0565b9050806001600160a01b0316846001600160a01b031614806116605750836001600160a01b03166116558461040f565b6001600160a01b0316145b8061169057506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166116ab826108a0565b6001600160a01b0316146117135760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610484565b6001600160a01b0382166117755760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610484565b6117806000826113ee565b6001600160a01b03831660009081526003602052604081208054600192906117a9908490612b46565b90915550506001600160a01b03821660009081526003602052604081208054600192906117d7908490612b1a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611843826108a0565b90506118506000836113ee565b6001600160a01b0381166000908152600360205260408120805460019290611879908490612b46565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6118de848484611698565b6118ea84848484611f37565b610b885760405162461bcd60e51b815260040161048490612961565b60608161192a5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611954578061193e81612bc4565b915061194d9050600a83612b32565b915061192e565b60008167ffffffffffffffff81111561197d57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156119a7576020820181803683370190505b5090505b8415611690576119bc600183612b46565b91506119c9600a86612bdf565b6119d4906030612b1a565b60f81b8183815181106119f757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611a19600a86612b32565b94506119ab565b6060600082604051602001611a3591906128f5565b6040516020818303038152906040528051906020012090507ffdd5330ab3dec43e32fb50274a014afe537628d3ba318a5ca6315d204828f012811415611a95576040518060600160405280602b8152602001612e3d602b91399392505050565b7f78442431b797b4edee94c35fadc70425985a7b584140f7613c9a7a1dccdea8a3811415611add576040518060600160405280602b8152602001612cba602b91399392505050565b7f2af630d7bba4eae040502ab5288b7bd739a55b39ace97ae9a1b214320f370ffe811415611b25576040518060600160405280602b8152602001612d10602b91399392505050565b7f6db27747d1206c90b6ecdf586d7eb0d8eacfc7debc6e91b0beb20fb723d3c628811415611b6d576040518060600160405280602b8152602001612d91602b91399392505050565b7f415a43053cf5f7a78a439ed4bdf256a798bd7d23793e75195d65386554ef73d9811415611bb5576040518060600160405280602b8152602001612e12602b91399392505050565b7f397ba1cbfda602d8a7f0bb8bf599a6edfb9e60108e95a94b660d3bdddb1f35e7811415611bfd576040518060600160405280602b8152602001612d66602b91399392505050565b7f6dd7b46cd1f04d0a0699d7b36f965ab3303fb6a59ef56c1e33ead74e94ca0614811415611c45576040518060600160405280602b8152602001612de7602b91399392505050565b7ff98ccf0fcefc57128de54b3ee783b7beb1f3d5cdc23fb03eb07150a596f110a4811415611c8d576040518060600160405280602b8152602001612c64602b91399392505050565b7fbbd5db3880e7e60ed1f5040bea0c091266392abef728b4dae32ccc926b36b041811415611cd5576040518060600160405280602b8152602001612ce5602b91399392505050565b7fba8dce1b228b60faaed255c962de146542582494a02b3fee7d91af094247a745811415611d1d576040518060600160405280602b8152602001612c8f602b91399392505050565b7f820f8f28da1166b6698bbf62b179ba30d238f07812c7bae8026f9c0b8aae55fc811415611d65576040518060600160405280602b8152602001612d3b602b91399392505050565b7fe3370b697b4eeb2c3d9b368999ba6c2c976a812832d43f0ecf353a84110e86ec811415611dad576040518060600160405280602b8152602001612dbc602b91399392505050565b60405162461bcd60e51b815260206004820152601860248201527f77524f4d453a20496e76616c69642049504653206861736800000000000000006044820152606401610484565b6001600160a01b038216611e4b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610484565b6000818152600260205260409020546001600160a01b031615611eb05760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610484565b6001600160a01b0382166000908152600360205260408120805460019290611ed9908490612b1a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b1561203957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611f7b903390899088908890600401612911565b602060405180830381600087803b158015611f9557600080fd5b505af1925050508015611fc5575060408051601f3d908101601f19168201909252611fc2918101906122e1565b60015b61201f573d808015611ff3576040519150601f19603f3d011682016040523d82523d6000602084013e611ff8565b606091505b5080516120175760405162461bcd60e51b815260040161048490612961565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611690565b506001949350505050565b600060208284031215612055578081fd5b813561098081612c35565b600060208284031215612071578081fd5b815161098081612c35565b6000806040838503121561208e578081fd5b823561209981612c35565b915060208301356120a981612c35565b809150509250929050565b6000806000606084860312156120c8578081fd5b83356120d381612c35565b925060208401356120e381612c35565b929592945050506040919091013590565b60008060008060006080868803121561210b578081fd5b853561211681612c35565b9450602086013561212681612c35565b935060408601359250606086013567ffffffffffffffff80821115612149578283fd5b818801915088601f83011261215c578283fd5b81358181111561216a578384fd5b89602082850101111561217b578384fd5b9699959850939650602001949392505050565b600080600080608085870312156121a3578384fd5b84356121ae81612c35565b935060208501356121be81612c35565b925060408501359150606085013567ffffffffffffffff8111156121e0578182fd5b8501601f810187136121f0578182fd5b80356122036121fe82612af2565b612ac1565b818152886020838501011115612217578384fd5b81602084016020830137908101602001929092525092959194509250565b60008060408385031215612247578182fd5b823561225281612c35565b9150602083013580151581146120a9578182fd5b60008060408385031215612278578182fd5b823561228381612c35565b946020939093013593505050565b6000806000606084860312156122a5578283fd5b83356122b081612c35565b95602085013595506040909401359392505050565b6000602082840312156122d6578081fd5b813561098081612c4d565b6000602082840312156122f2578081fd5b815161098081612c4d565b60006020828403121561230e578081fd5b815167ffffffffffffffff811115612324578182fd5b8201601f81018413612334578182fd5b80516123426121fe82612af2565b818152856020838501011115612356578384fd5b612367826020830160208601612b5d565b95945050505050565b600060208284031215612381578081fd5b5035919050565b600081518084526123a0816020860160208601612b5d565b601f01601f19169290920160200192915050565b600081516123c6818560208601612b5d565b9290920192915050565b600082516123e2818460208701612b5d565b7f226465736372697074696f6e223a20222a2a44616e69656c2041727368616d2a9201918252506e151014311710189c9c1814ae372e3760891b60208201527f2a2a2a45726f64696e6720616e64205265666f726d696e672042757374206f66602f8201527f20526f6d6520284f6e652059656172292a2a2a2c20323032315c6e5c6e000000604f8201527f5769746820686973206465627574204e46542072656c656173652c2044616e69606c8201527f656c2041727368616d20696e74726f6475636573206120636f6e63657074206e608c8201527f65766572206265666f7265207365656e206f6e204e696674792047617465776160ac8201526203c97160ed1b60cc8201527f4869732070696563652077696c6c2065726f64652c207265666f726d2c20616e60cf8201527f64206368616e6765206261736564206f6e207468652074696d65206f6620796560ef82015264185c8b888b60da1b61010f82015261011401919050565b60008651612561818460208b01612b5d565b7f22696d616765223a202268747470733a2f2f617277656176652e6e65742f0000908301908152865161259b81601e840160208b01612b5d565b80820191505061088b60f21b80601e8301527f22696d6167655f75726c223a202268747470733a2f2f617277656176652e6e65602083015261742f60f01b604083015286516125f1816042850160208b01612b5d565b60429201918201527422616e696d6174696f6e223a2022697066733a2f2f60581b6044820152845161262a816059840160208901612b5d565b61268761267961267361264a60598587010161088b60f21b815260020190565b7f22616e696d6174696f6e5f75726c223a2022697066733a2f2f00000000000000815260190190565b876123b4565b61088b60f21b815260020190565b9998505050505050505050565b600082516126a6818460208701612b5d565b607d60f81b920191825250600101919050565b600082516126cb818460208701612b5d565b7f22637265617465645f6279223a202244616e69656c2041727368616d222c0000920191825250601e01919050565b6000825161270c818460208701612b5d565b7f2265787465726e616c5f75726c223a202268747470733a2f2f6e6966747967619201918252507f74657761792e636f6d2f636f6c6c656374696f6e732f64616e69656c61727368602082015263185b488b60e21b6040820152604401919050565b60008251612780818460208701612b5d565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b00000000920191825250601c01919050565b600083516127c1818460208801612b5d565b80830190507f2261747472696275746573223a5b7b2274726169745f74797065223a2022456481527f6974696f6e222c2022646973706c61795f74797065223a20226e756d6265722260208201526a01610113b30b63ab2911d160ad1b6040820152835161283681604b840160208801612b5d565b732c20226d61785f76616c7565223a203637317d5d60601b604b9290910191820152605f01949350505050565b60008351612875818460208801612b5d565b80830190507f226e616d65223a202245726f64696e6720616e64205265666f726d696e67204281527f757374206f6620526f6d6520284f6e6520596561722920230000000000000000602082015283516128d6816038840160208801612b5d565b650bcd8dcc488b60d21b60389290910191820152603e01949350505050565b60008251612907818460208701612b5d565b9190910192915050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061294490830184612388565b9695505050505050565b6020815260006109806020830184612388565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f455243373231577261707065723a20546f6b656e4964206e6f74207769746869604082015270371030b8383937bb32b2103930b733b29760791b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f1916810167ffffffffffffffff81118282101715612aea57612aea612c1f565b604052919050565b600067ffffffffffffffff821115612b0c57612b0c612c1f565b50601f01601f191660200190565b60008219821115612b2d57612b2d612bf3565b500190565b600082612b4157612b41612c09565b500490565b600082821015612b5857612b58612bf3565b500390565b60005b83811015612b78578181015183820152602001612b60565b83811115610b885750506000910152565b600181811c90821680612b9d57607f821691505b60208210811415612bbe57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612bd857612bd8612bf3565b5060010190565b600082612bee57612bee612c09565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612c4a57600080fd5b50565b6001600160e01b031981168114612c4a57600080fdfe37494b31752d447375416a306e517a70776d51706f3636647770577838505339692d787636615336793649767a4c7673756547727a7056495f4d5a426f67417735375069314f64796e6168636f6c5a5070766845514934694a3349677239306266456b424d655176317432533463744b32582d493138686e62616c3259466657494c57704c4973332d5055765636577658612d6f6e6335515a354665596945706949775266635f753634737379347975663556766641594f6c33526d3544547341616e654a445877464a4742546849365647336237636f694568373951516a614d6a4b643049366436654d3855596346772d706a355f6742644768544f5442353467736979304f496e6a6d76456c536b324f524a34564e695143315f646b644b7a4e52706d6b4f4242793268413239534f636f764c4643355134422d594a7a676973476752586c6c44486f4e5f6c35633854616e336a48736231333243544d34354c4f454d777a4f71786e50717444716c505077636151307a7451354f5768426e7651356575427853374a76527271623766786834774c6a45573561625073776f63414754486a716c726b79424564386d4a474c4b4a686731476c324f573171516a634838593874594243764e575575474836695864313855694f4b6838707054583538333173396970313639506663715a323635726c7a5f6b482d6f794458454c7441a2646970667358221220a4f68b025d3b6a91622939e9e7affb12144abd9d5212c9b4a8e495dd4757296c64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000003e34556b7d6a6c79320168140e14c10d7a1febb7
-----Decoded View---------------
Arg [0] : niftyBuilderAddress (address): 0x3e34556b7d6a6c79320168140E14C10d7A1feBb7
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000003e34556b7d6a6c79320168140e14c10d7a1febb7
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ 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.