ERC-721
Overview
Max Total Supply
540 RECEIPT
Holders
303
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
0 RECEIPTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Receipt
Compiler Version
v0.8.17+commit.8df45f5f
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.17; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "operator-filter-registry/src/UpdatableOperatorFilterer.sol"; import "operator-filter-registry/src/RevokableDefaultOperatorFilterer.sol"; import "./IReceiptArt.sol"; contract Receipt is ERC721, ERC2981, ReentrancyGuard, RevokableDefaultOperatorFilterer, Ownable { uint256 private _tokenSupply; uint256 private _mintGas = 177012; mapping(uint256 => IReceiptArt.TxContext) private _txData; mapping(uint256 => IReceiptArt.TransferContext[]) private _transferData; mapping(uint256 => uint256) public priceToTokenId; bool public isActive = true; string private _description; string private _baseExternalURI; IReceiptArt private art; event Mint(uint256 _tokenId, uint256 _value, uint256 _gas, uint256 _time, address _from); constructor(address _artAddress) ERC721("Receipt", "RECEIPT") { art = IReceiptArt(_artAddress); _setDefaultRoyalty(owner(), 1000); } function mint() external payable nonReentrant { require(isActive, "INACTIVE"); require(priceToTokenId[msg.value] == 0, "Already minted"); require(msg.value % 0.0001 ether == 0, "Invalid value"); _tokenSupply++; uint256 gas = _mintGas * tx.gasprice; _txData[_tokenSupply] = IReceiptArt.TxContext( msg.value, gas, block.timestamp, _msgSender() ); priceToTokenId[msg.value] = _tokenSupply; _safeMint(_msgSender(), _tokenSupply); emit Mint(_tokenSupply, msg.value, gas, block.timestamp, _msgSender()); } function getReceipt(uint256 _price) external view returns ( uint256 tokenId, string memory svg, uint256 price ) { tokenId = priceToTokenId[_price]; IReceiptArt.TxContext memory txContext; txContext.value = _price; svg = art.tokenSVG(txContext, new IReceiptArt.TransferContext[](0), 0); price = _price; } /* token utility */ function setIsActive(bool _isActive) external onlyOwner { isActive = _isActive; } function setDescription(string memory desc) external onlyOwner { _description = desc; } function setBaseExternalURI(string memory URI) external onlyOwner { _baseExternalURI = URI; } function setMintGas(uint256 _gas) external onlyOwner { _mintGas = _gas; } /* nft utility */ function getMetaData(uint256 _tokenId) private view returns (string memory) { IReceiptArt.TxContext memory txContext = _txData[_tokenId]; string memory value = art.weiToEtherStr(txContext.value); return string( abi.encodePacked( '{"name":"Receipt ', value, ' ETH","description":"', _description, '","image":"data:image/svg+xml;utf8,', art.tokenSVG(txContext, _transferData[_tokenId], _tokenId), '","external_url":"', _baseExternalURI, Strings.toString(_tokenId), '","background_color":"C3C3C3","attributes":[{"trait_type":"Value","value":', value, '},{"trait_type":"Transfers","value":', Strings.toString(_transferData[_tokenId].length), '},{"trait_type":"Lines","value":', Strings.toString(art.linesCount(txContext.value)), "}]}" ) ); } function tokenURI(uint256 _tokenId) public view override returns (string memory) { require(_exists(_tokenId)); return string(abi.encodePacked("data:application/json;utf8,", getMetaData(_tokenId))); } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override(ERC721) { super._beforeTokenTransfer(from, to, tokenId); if (from != address(0)) { (string memory day, string memory time) = art.timestampToString(block.timestamp); _transferData[tokenId].push( IReceiptArt.TransferContext(string(abi.encodePacked(day, " ", time)), to) ); } } function totalSupply() external view returns (uint256) { return _tokenSupply; } function withdrawBalance() external onlyOwner { (bool success, ) = msg.sender.call{value: address(this).balance}(""); require(success); } function setRoyaltyInfo(address receiver_, uint96 royaltyBps_) external onlyOwner { _setDefaultRoyalty(receiver_, royaltyBps_); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC2981, ERC721) returns (bool) { return super.supportsInterface(interfaceId); } /* OperatorFilter */ function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom( address from, address to, uint256 tokenId ) public override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId ) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } function owner() public view virtual override(Ownable, UpdatableOperatorFilterer) returns (address) { return Ownable.owner(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) 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() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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 { _transferOwnership(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"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); 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: invalid token ID"); 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) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token 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: caller is not token 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) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-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` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.17; interface IReceiptArt { struct TxContext { uint256 value; uint256 gas; uint256 timestamp; address from; } struct TransferContext { string datetime; address from; } function linesCount(uint256 _value) external pure returns (uint256); function timestampToString(uint256 _timestamp) external view returns (string memory, string memory); function tokenSVG( TxContext memory _txContext, TransferContext[] memory _transfers, uint256 _tokenId ) external view returns (string memory); function weiToEtherStr(uint256 _wei) external pure returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function unregister(address addr) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {RevokableOperatorFilterer} from "./RevokableOperatorFilterer.sol"; /** * @title RevokableDefaultOperatorFilterer * @notice Inherits from RevokableOperatorFilterer and automatically subscribes to the default OpenSea subscription. * Note that OpenSea will disable creator fee enforcement if filtered operators begin fulfilling orders * on-chain, eg, if the registry is revoked or bypassed. */ abstract contract RevokableDefaultOperatorFilterer is RevokableOperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() RevokableOperatorFilterer(0x000000000000AAeB6D7670E522A718067333cd4E, DEFAULT_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {UpdatableOperatorFilterer} from "./UpdatableOperatorFilterer.sol"; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; /** * @title RevokableOperatorFilterer * @notice This contract is meant to allow contracts to permanently skip OperatorFilterRegistry checks if desired. The * Registry itself has an "unregister" function, but if the contract is ownable, the owner can re-register at * any point. As implemented, this abstract contract allows the contract owner to permanently skip the * OperatorFilterRegistry checks by calling revokeOperatorFilterRegistry. Once done, the registry * address cannot be further updated. * Note that OpenSea will still disable creator fee enforcement if filtered operators begin fulfilling orders * on-chain, eg, if the registry is revoked or bypassed. */ abstract contract RevokableOperatorFilterer is UpdatableOperatorFilterer { error RegistryHasBeenRevoked(); error InitialRegistryAddressCannotBeZeroAddress(); bool public isOperatorFilterRegistryRevoked; constructor(address _registry, address subscriptionOrRegistrantToCopy, bool subscribe) UpdatableOperatorFilterer(_registry, subscriptionOrRegistrantToCopy, subscribe) { // don't allow creating a contract with a permanently revoked registry if (_registry == address(0)) { revert InitialRegistryAddressCannotBeZeroAddress(); } } function _checkFilterOperator(address operator) internal view virtual override { if (address(operatorFilterRegistry) != address(0)) { super._checkFilterOperator(operator); } } /** * @notice Update the address that the contract will make OperatorFilter checks against. When set to the zero * address, checks will be permanently bypassed, and the address cannot be updated again. OnlyOwner. */ function updateOperatorFilterRegistryAddress(address newRegistry) public override { if (msg.sender != owner()) { revert OnlyOwner(); } // if registry has been revoked, do not allow further updates if (isOperatorFilterRegistryRevoked) { revert RegistryHasBeenRevoked(); } operatorFilterRegistry = IOperatorFilterRegistry(newRegistry); } /** * @notice Revoke the OperatorFilterRegistry address, permanently bypassing checks. OnlyOwner. */ function revokeOperatorFilterRegistry() public { if (msg.sender != owner()) { revert OnlyOwner(); } // if registry has been revoked, do not allow further updates if (isOperatorFilterRegistryRevoked) { revert RegistryHasBeenRevoked(); } // set to zero address to bypass checks operatorFilterRegistry = IOperatorFilterRegistry(address(0)); isOperatorFilterRegistryRevoked = true; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; /** * @title UpdatableOperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. This contract allows the Owner to update the * OperatorFilterRegistry address via updateOperatorFilterRegistryAddress, including to the zero address, * which will bypass registry checks. * Note that OpenSea will still disable creator fee enforcement if filtered operators begin fulfilling orders * on-chain, eg, if the registry is revoked or bypassed. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. */ abstract contract UpdatableOperatorFilterer { error OperatorNotAllowed(address operator); error OnlyOwner(); IOperatorFilterRegistry public operatorFilterRegistry; constructor(address _registry, address subscriptionOrRegistrantToCopy, bool subscribe) { IOperatorFilterRegistry registry = IOperatorFilterRegistry(_registry); operatorFilterRegistry = registry; // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(registry).code.length > 0) { if (subscribe) { registry.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { registry.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { registry.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @notice Update the address that the contract will make OperatorFilter checks against. When set to the zero * address, checks will be bypassed. OnlyOwner. */ function updateOperatorFilterRegistryAddress(address newRegistry) public virtual { if (msg.sender != owner()) { revert OnlyOwner(); } operatorFilterRegistry = IOperatorFilterRegistry(newRegistry); } /** * @dev assume the contract has an owner, but leave specific Ownable implementation up to inheriting contract */ function owner() public view virtual returns (address); function _checkFilterOperator(address operator) internal view virtual { IOperatorFilterRegistry registry = operatorFilterRegistry; // Check registry code length to facilitate testing in environments without a deployed registry. if (address(registry) != address(0) && address(registry).code.length > 0) { if (!registry.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
{ "optimizer": { "enabled": true, "runs": 200, "details": { "yul": false } }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_artAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InitialRegistryAddressCannotBeZeroAddress","type":"error"},{"inputs":[],"name":"OnlyOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"RegistryHasBeenRevoked","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_gas","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_time","type":"uint256"},{"indexed":false,"internalType":"address","name":"_from","type":"address"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"operator","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":"uint256","name":"_price","type":"uint256"}],"name":"getReceipt","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"svg","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOperatorFilterRegistryRevoked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorFilterRegistry","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"priceToTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revokeOperatorFilterRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"URI","type":"string"}],"name":"setBaseExternalURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"desc","type":"string"}],"name":"setDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isActive","type":"bool"}],"name":"setIsActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_gas","type":"uint256"}],"name":"setMintGas","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver_","type":"address"},{"internalType":"uint96","name":"royaltyBps_","type":"uint96"}],"name":"setRoyaltyInfo","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":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRegistry","type":"address"}],"name":"updateOperatorFilterRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawBalance","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526202b374600c556010805460ff191660011790553480156200002557600080fd5b50604051620036be380380620036be8339810160408190526200004891620003eb565b6daaeb6d7670e522a718067333cd4e733cc6cdda760b79bafa08df41ecfa224f810dceb6600182828260405180604001604052806007815260200166149958d95a5c1d60ca1b81525060405180604001604052806007815260200166149150d152541560ca1b8152508160009081620000c291906200052b565b506001620000d182826200052b565b5050600160085550600980546001600160a01b0319166001600160a01b03851690811790915583903b15620002145781156200017157604051633e9f1edf60e11b81526001600160a01b03821690637d3e3dbe906200013790309087906004016200060c565b600060405180830381600087803b1580156200015257600080fd5b505af115801562000167573d6000803e3d6000fd5b5050505062000214565b6001600160a01b03831615620001b15760405163a0af290360e01b81526001600160a01b0382169063a0af2903906200013790309087906004016200060c565b604051632210724360e11b81526001600160a01b03821690634420e48690620001df90309060040162000632565b600060405180830381600087803b158015620001fa57600080fd5b505af11580156200020f573d6000803e3d6000fd5b505050505b5050506001600160a01b0384169050620002415760405163c49d17ad60e01b815260040160405180910390fd5b5050506200025e620002586200029760201b60201c565b6200029b565b601380546001600160a01b0319166001600160a01b0383161790556200029062000287620002ed565b6103e862000309565b50620006cd565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600062000304620003a260201b62000e181760201c565b905090565b6127106001600160601b0382161115620003405760405162461bcd60e51b8152600401620003379062000642565b60405180910390fd5b6001600160a01b038216620003695760405162461bcd60e51b8152600401620003379062000691565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600655565b600a546001600160a01b031690565b60006001600160a01b0382165b92915050565b620003cf81620003b1565b8114620003db57600080fd5b50565b8051620003be81620003c4565b600060208284031215620004025762000402600080fd5b6000620004108484620003de565b949350505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052602260045260246000fd5b6002810460018216806200045957607f821691505b6020821081036200046e576200046e6200042e565b50919050565b6000620003be620004828381565b90565b620004908362000474565b81546008840282811b60001990911b908116901990911617825550505050565b6000620004bf81848462000485565b505050565b81811015620004e357620004da600082620004b0565b600101620004c4565b5050565b601f821115620004bf576000818152602090206020601f85010481016020851015620005105750805b620005246020601f860104830182620004c4565b5050505050565b81516001600160401b0381111562000547576200054762000418565b62000553825462000444565b62000560828285620004e7565b6020601f8311600181146200059757600084156200057e5750858201515b600019600886021c1981166002860217865550620005f3565b600085815260208120601f198616915b82811015620005c95788850151825560209485019460019092019101620005a7565b86831015620005e65784890151600019601f89166008021c191682555b6001600288020188555050505b505050505050565b6200060681620003b1565b82525050565b604081016200061c8285620005fb565b6200062b6020830184620005fb565b9392505050565b60208101620003be8284620005fb565b60208082528101620003be81602a81527f455243323938313a20726f79616c7479206665652077696c6c206578636565646020820152692073616c65507269636560b01b604082015260600190565b60208082528101620003be81601981527f455243323938313a20696e76616c696420726563656976657200000000000000602082015260400190565b612fe180620006dd6000396000f3fe6080604052600436106101e35760003560e01c80636352211e11610102578063b63e6ac311610095578063e985e9c511610064578063e985e9c51461056f578063ecba222a1461058f578063f2fde38b146105b0578063f803f410146105d057600080fd5b8063b63e6ac3146104e0578063b88d4fde1461050f578063b8d1e5321461052f578063c87b56dd1461054f57600080fd5b806390c3f38f116100d157806390c3f38f1461045e57806395d89b411461047e578063a22cb46514610493578063b0ccc31e146104b357600080fd5b80636352211e146103f457806370a0823114610414578063715018a6146104345780638da5cb5b1461044957600080fd5b806322f3e2d41161017a57806342842e0e1161014957806342842e0e1461038a578063560e9c11146103aa5780635ef9432a146103ca5780635fd8c710146103df57600080fd5b806322f3e2d41461030257806323b872dd1461031c5780632750fc781461033c5780632a55205a1461035c57600080fd5b8063095ea7b3116101b6578063095ea7b31461028f5780631249c58b146102af57806318160ddd146102b75780631e495dc4146102d557600080fd5b806301ffc9a7146101e857806302fa7c471461021e57806306fdde0314610240578063081812fc14610262575b600080fd5b3480156101f457600080fd5b50610208610203366004611b28565b6105f0565b6040516102159190611b53565b60405180910390f35b34801561022a57600080fd5b5061023e610239366004611ba0565b610601565b005b34801561024c57600080fd5b50610255610617565b6040516102159190611c33565b34801561026e57600080fd5b5061028261027d366004611c5c565b6106a9565b6040516102159190611c86565b34801561029b57600080fd5b5061023e6102aa366004611c94565b6106d0565b61023e6106e9565b3480156102c357600080fd5b50600b545b6040516102159190611ccd565b3480156102e157600080fd5b506102c86102f0366004611c5c565b600f6020526000908152604090205481565b34801561030e57600080fd5b506010546102089060ff1681565b34801561032857600080fd5b5061023e610337366004611cdb565b6108a5565b34801561034857600080fd5b5061023e610357366004611d3e565b6108d0565b34801561036857600080fd5b5061037c610377366004611d5f565b6108eb565b604051610215929190611d81565b34801561039657600080fd5b5061023e6103a5366004611cdb565b610997565b3480156103b657600080fd5b5061023e6103c5366004611c5c565b6109bc565b3480156103d657600080fd5b5061023e6109c9565b3480156103eb57600080fd5b5061023e610a45565b34801561040057600080fd5b5061028261040f366004611c5c565b610ab9565b34801561042057600080fd5b506102c861042f366004611d9c565b610aee565b34801561044057600080fd5b5061023e610b32565b34801561045557600080fd5b50610282610b46565b34801561046a57600080fd5b5061023e610479366004611eb8565b610b5f565b34801561048a57600080fd5b50610255610b73565b34801561049f57600080fd5b5061023e6104ae366004611ef3565b610b82565b3480156104bf57600080fd5b506009546104d3906001600160a01b031681565b6040516102159190611f68565b3480156104ec57600080fd5b506105006104fb366004611c5c565b610b96565b60405161021593929190611f76565b34801561051b57600080fd5b5061023e61052a366004611fa5565b610c99565b34801561053b57600080fd5b5061023e61054a366004611d9c565b610cc6565b34801561055b57600080fd5b5061025561056a366004611c5c565b610d4c565b34801561057b57600080fd5b5061020861058a366004612024565b610d9f565b34801561059b57600080fd5b5060095461020890600160a01b900460ff1681565b3480156105bc57600080fd5b5061023e6105cb366004611d9c565b610dcd565b3480156105dc57600080fd5b5061023e6105eb366004611eb8565b610e04565b60006105fb82610e27565b92915050565b610609610e4c565b6106138282610e7b565b5050565b6060600080546106269061206d565b80601f01602080910402602001604051908101604052809291908181526020018280546106529061206d565b801561069f5780601f106106745761010080835404028352916020019161069f565b820191906000526020600020905b81548152906001019060200180831161068257829003601f168201915b5050505050905090565b60006106b482610f05565b506000908152600460205260409020546001600160a01b031690565b816106da81610f39565b6106e48383610f53565b505050565b6002600854036107145760405162461bcd60e51b815260040161070b906120d0565b60405180910390fd5b600260085560105460ff1661073b5760405162461bcd60e51b815260040161070b906120ff565b346000908152600f6020526040902054156107685760405162461bcd60e51b815260040161070b90612134565b610778655af3107a40003461215a565b156107955760405162461bcd60e51b815260040161070b90612192565b600b80549060006107a5836121b8565b919050555060003a600c546107ba91906121d2565b905060405180608001604052803481526020018281526020014281526020016107e03390565b6001600160a01b03908116909152600b80546000908152600d6020908152604080832086518155868301516001820155868201516002820155606090960151600390960180546001600160a01b03191696909516959095179093559054348252600f909252919091205561085633600b54610fd3565b7f5e9f1b91ac2555aca8bb40a54c7f2dce80d64e6691479bdaa76d263ecdf0422a600b543483426108843390565b6040516108959594939291906121f1565b60405180910390a1506001600855565b826001600160a01b03811633146108bf576108bf33610f39565b6108ca848484610fed565b50505050565b6108d8610e4c565b6010805460ff1916911515919091179055565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916109605750604080518082019091526006546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061097f906001600160601b0316876121d2565b610989919061223d565b915196919550909350505050565b826001600160a01b03811633146109b1576109b133610f39565b6108ca84848461101e565b6109c4610e4c565b600c55565b6109d1610b46565b6001600160a01b0316336001600160a01b031614610a0257604051635fc483c560e01b815260040160405180910390fd5b600954600160a01b900460ff1615610a2d57604051631551a48f60e11b815260040160405180910390fd5b600980546001600160a81b031916600160a01b179055565b610a4d610e4c565b6000336001600160a01b031647604051610a6690612251565b60006040518083038185875af1925050503d8060008114610aa3576040519150601f19603f3d011682016040523d82523d6000602084013e610aa8565b606091505b5050905080610ab657600080fd5b50565b6000818152600260205260408120546001600160a01b0316806105fb5760405162461bcd60e51b815260040161070b90612290565b60006001600160a01b038216610b165760405162461bcd60e51b815260040161070b906122e9565b506001600160a01b031660009081526003602052604090205490565b610b3a610e4c565b610b446000611039565b565b6000610b5a600a546001600160a01b031690565b905090565b610b67610e4c565b6011610613828261238f565b6060600180546106269061206d565b81610b8c81610f39565b6106e4838361108b565b6000818152600f602090815260408083205481516080810183528481529283018490529082018390526060828101849052909290918481526013546001600160a01b03166384796ebe826000604051908082528060200260200182016040528015610c2857816020015b604080518082019091526060815260006020820152815260200190600190039081610c005790505b5060006040518463ffffffff1660e01b8152600401610c4993929190612545565b600060405180830381865afa158015610c66573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610c8e91908101906125cc565b939593949392505050565b836001600160a01b0381163314610cb357610cb333610f39565b610cbf85858585611096565b5050505050565b610cce610b46565b6001600160a01b0316336001600160a01b031614610cff57604051635fc483c560e01b815260040160405180910390fd5b600954600160a01b900460ff1615610d2a57604051631551a48f60e11b815260040160405180910390fd5b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600260205260409020546060906001600160a01b0316610d7057600080fd5b610d79826110c8565b604051602001610d899190612629565b6040516020818303038152906040529050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610dd5610e4c565b6001600160a01b038116610dfb5760405162461bcd60e51b815260040161070b9061269e565b610ab681611039565b610e0c610e4c565b6012610613828261238f565b600a546001600160a01b031690565b60006001600160e01b0319821663152a902d60e11b14806105fb57506105fb826112df565b33610e55610b46565b6001600160a01b031614610b445760405162461bcd60e51b815260040161070b906126e0565b6127106001600160601b0382161115610ea65760405162461bcd60e51b815260040161070b90612737565b6001600160a01b038216610ecc5760405162461bcd60e51b815260040161070b9061277b565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600655565b6000818152600260205260409020546001600160a01b0316610ab65760405162461bcd60e51b815260040161070b90612290565b6009546001600160a01b031615610ab657610ab68161132f565b6000610f5e82610ab9565b9050806001600160a01b0316836001600160a01b031603610f915760405162461bcd60e51b815260040161070b906127c9565b336001600160a01b0382161480610fad5750610fad8133610d9f565b610fc95760405162461bcd60e51b815260040161070b90612833565b6106e483836113e7565b610613828260405180602001604052806000815250611455565b610ff73382611488565b6110135760405162461bcd60e51b815260040161070b9061288e565b6106e48383836114e7565b6106e483838360405180602001604052806000815250610c99565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610613338383611614565b6110a03383611488565b6110bc5760405162461bcd60e51b815260040161070b9061288e565b6108ca848484846116b6565b6000818152600d60209081526040808320815160808101835281548082526001830154948201949094526002820154818401526003909101546001600160a01b039081166060838101919091526013549351633dcfd17560e21b81529095929492939091169163f73f45d4916111419190600401611ccd565b600060405180830381865afa15801561115e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261118691908101906125cc565b6013546000868152600e602052604090819020905163423cb75f60e11b815292935083926011926001600160a01b0316916384796ebe916111cd9188918b906004016129cd565b600060405180830381865afa1580156111ea573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261121291908101906125cc565b601261121d886116e9565b6000898152600e60205260409020548690611237906116e9565b6013548951604051639098444f60e01b81526112b0926001600160a01b031691639098444f9161126a9190600401611ccd565b602060405180830381865afa158015611287573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ab9190612a07565b6116e9565b6040516020016112c7989796959493929190612ac1565b60405160208183030381529060405292505050919050565b60006001600160e01b031982166380ac58cd60e01b148061131057506001600160e01b03198216635b5e139f60e01b145b806105fb57506301ffc9a760e01b6001600160e01b03198316146105fb565b6009546001600160a01b0316801580159061135457506000816001600160a01b03163b115b1561061357604051633185c44d60e21b81526001600160a01b0382169063c6171134906113879030908690600401612c5d565b602060405180830381865afa1580156113a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113c89190612c83565b6106135781604051633b79c77360e21b815260040161070b9190611c86565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061141c82610ab9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61145f83836117ea565b61146c60008484846118d8565b6106e45760405162461bcd60e51b815260040161070b90612cf3565b60008061149483610ab9565b9050806001600160a01b0316846001600160a01b031614806114bb57506114bb8185610d9f565b806114df5750836001600160a01b03166114d4846106a9565b6001600160a01b0316145b949350505050565b826001600160a01b03166114fa82610ab9565b6001600160a01b0316146115205760405162461bcd60e51b815260040161070b90612d45565b6001600160a01b0382166115465760405162461bcd60e51b815260040161070b90612d96565b6115518383836119d9565b61155c6000826113e7565b6001600160a01b0383166000908152600360205260408120805460019290611585908490612da6565b90915550506001600160a01b03821660009081526003602052604081208054600192906115b3908490612db9565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816001600160a01b0316836001600160a01b0316036116455760405162461bcd60e51b815260040161070b90612e00565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906116a9908590611b53565b60405180910390a3505050565b6116c18484846114e7565b6116cd848484846118d8565b6108ca5760405162461bcd60e51b815260040161070b90612cf3565b6060816000036117105750506040805180820190915260018152600360fc1b602082015290565b8160005b811561173a5780611724816121b8565b91506117339050600a8361223d565b9150611714565b60008167ffffffffffffffff81111561175557611755611dbd565b6040519080825280601f01601f19166020018201604052801561177f576020820181803683370190505b5090505b84156114df57611794600183612da6565b91506117a1600a8661215a565b6117ac906030612db9565b60f81b8183815181106117c1576117c1612e10565b60200101906001600160f81b031916908160001a9053506117e3600a8661223d565b9450611783565b6001600160a01b0382166118105760405162461bcd60e51b815260040161070b90612e58565b6000818152600260205260409020546001600160a01b0316156118455760405162461bcd60e51b815260040161070b90612e9c565b611851600083836119d9565b6001600160a01b038216600090815260036020526040812080546001929061187a908490612db9565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b156119ce57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061191c903390899088908890600401612eac565b6020604051808303816000875af1925050508015611957575060408051601f3d908101601f1916820190925261195491810190612ef1565b60015b6119b4573d808015611985576040519150601f19603f3d011682016040523d82523d6000602084013e61198a565b606091505b5080516000036119ac5760405162461bcd60e51b815260040161070b90612cf3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506114df565b506001949350505050565b6001600160a01b038316156106e457601354604051630b11527160e31b815260009182916001600160a01b039091169063588a938890611a1d904290600401611ccd565b600060405180830381865afa158015611a3a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611a629190810190612f12565b6000858152600e602052604090819020815180830190925292945090925080611a8f858560608401612f88565b60408051601f1981840301815291905281526001600160a01b0387166020918201528254600181018455600093845292208151919260020201908190611ad5908261238f565b5060209190910151600190910180546001600160a01b0319166001600160a01b039092169190911790555050505050565b6001600160e01b031981165b8114610ab657600080fd5b80356105fb81611b06565b600060208284031215611b3d57611b3d600080fd5b60006114df8484611b1d565b8015155b82525050565b602081016105fb8284611b49565b60006001600160a01b0382166105fb565b611b1281611b61565b80356105fb81611b72565b6001600160601b038116611b12565b80356105fb81611b86565b60008060408385031215611bb657611bb6600080fd5b6000611bc28585611b7b565b9250506020611bd385828601611b95565b9150509250929050565b60005b83811015611bf8578181015183820152602001611be0565b50506000910152565b6000611c0b825190565b808452602084019350611c22818560208601611bdd565b601f01601f19169290920192915050565b60208082528101611c448184611c01565b9392505050565b80611b12565b80356105fb81611c4b565b600060208284031215611c7157611c71600080fd5b60006114df8484611c51565b611b4d81611b61565b602081016105fb8284611c7d565b60008060408385031215611caa57611caa600080fd5b6000611cb68585611b7b565b9250506020611bd385828601611c51565b80611b4d565b602081016105fb8284611cc7565b600080600060608486031215611cf357611cf3600080fd5b6000611cff8686611b7b565b9350506020611d1086828701611b7b565b9250506040611d2186828701611c51565b9150509250925092565b801515611b12565b80356105fb81611d2b565b600060208284031215611d5357611d53600080fd5b60006114df8484611d33565b60008060408385031215611d7557611d75600080fd5b6000611cb68585611c51565b60408101611d8f8285611c7d565b611c446020830184611cc7565b600060208284031215611db157611db1600080fd5b60006114df8484611b7b565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff82111715611df957611df9611dbd565b6040525050565b6000611e0b60405190565b9050611e178282611dd3565b919050565b600067ffffffffffffffff821115611e3657611e36611dbd565b601f19601f83011660200192915050565b82818337506000910152565b6000611e66611e6184611e1c565b611e00565b905082815260208101848484011115611e8157611e81600080fd5b611e8c848285611e47565b509392505050565b600082601f830112611ea857611ea8600080fd5b81356114df848260208601611e53565b600060208284031215611ecd57611ecd600080fd5b813567ffffffffffffffff811115611ee757611ee7600080fd5b6114df84828501611e94565b60008060408385031215611f0957611f09600080fd5b6000611f158585611b7b565b9250506020611bd385828601611d33565b60006105fb6001600160a01b038316611f3d565b90565b6001600160a01b031690565b60006105fb82611f26565b60006105fb82611f49565b611b4d81611f54565b602081016105fb8284611f5f565b60608101611f848286611cc7565b8181036020830152611f968185611c01565b90506114df6040830184611cc7565b60008060008060808587031215611fbe57611fbe600080fd5b6000611fca8787611b7b565b9450506020611fdb87828801611b7b565b9350506040611fec87828801611c51565b925050606085013567ffffffffffffffff81111561200c5761200c600080fd5b61201887828801611e94565b91505092959194509250565b6000806040838503121561203a5761203a600080fd5b60006120468585611b7b565b9250506020611bd385828601611b7b565b634e487b7160e01b600052602260045260246000fd5b60028104600182168061208157607f821691505b60208210810361209357612093612057565b50919050565b601f81526000602082017f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00815291505b5060200190565b602080825281016105fb81612099565b6008815260006020820167494e41435449564560c01b815291506120c9565b602080825281016105fb816120e0565b600e81526000602082016d105b1c9958591e481b5a5b9d195960921b815291506120c9565b602080825281016105fb8161210f565b634e487b7160e01b600052601260045260246000fd5b60008261216957612169612144565b500690565b600d81526000602082016c496e76616c69642076616c756560981b815291506120c9565b602080825281016105fb8161216e565b634e487b7160e01b600052601160045260246000fd5b600060001982036121cb576121cb6121a2565b5060010190565b8181028082158382048514176121ea576121ea6121a2565b5092915050565b60a081016121ff8288611cc7565b61220c6020830187611cc7565b6122196040830186611cc7565b6122266060830185611cc7565b6122336080830184611c7d565b9695505050505050565b60008261224c5761224c612144565b500490565b60006105fb82611f3a565b601881526000602082017f4552433732313a20696e76616c696420746f6b656e2049440000000000000000815291506120c9565b602080825281016105fb8161225c565b602981526000602082017f4552433732313a2061646472657373207a65726f206973206e6f7420612076618152683634b21037bbb732b960b91b602082015291505b5060400190565b602080825281016105fb816122a0565b60006105fb611f3a8381565b61230e836122f9565b81546008840282811b60001990911b908116901990911617825550505050565b60006106e4818484612305565b818110156106135761234e60008261232e565b60010161233b565b601f8211156106e4576000818152602090206020601f8501048101602085101561237d5750805b610cbf6020601f86010483018261233b565b815167ffffffffffffffff8111156123a9576123a9611dbd565b6123b3825461206d565b6123be828285612356565b6020601f8311600181146123f257600084156123da5750858201515b600019600886021c198116600286021786555061244b565b600085815260208120601f198616915b828110156124225788850151825560209485019460019092019101612402565b8683101561243e5784890151600019601f89166008021c191682555b6001600288020188555050505b505050505050565b805160808301906124648482611cc7565b5060208201516124776020850182611cc7565b50604082015161248a6040850182611cc7565b5060608201516108ca6060850182611c7d565b80516040808452600091908401906124b58282611c01565b9150506020830151611e8c6020860182611c7d565b6000611c44838361249d565b60006124e0825190565b808452602084019350836020820285016124fa8560200190565b8060005b8581101561252f578484038952815161251785826124ca565b94506020830160209a909a01999250506001016124fe565b5091979650505050505050565b611b4d816122f9565b60c081016125538286612453565b818103608083015261256581856124d6565b90506114df60a083018461253c565b6000612582611e6184611e1c565b90508281526020810184848401111561259d5761259d600080fd5b611e8c848285611bdd565b600082601f8301126125bc576125bc600080fd5b81516114df848260208601612574565b6000602082840312156125e1576125e1600080fd5b815167ffffffffffffffff8111156125fb576125fb600080fd5b6114df848285016125a8565b6000612611825190565b61261f818560208601611bdd565b9290920192915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c00000000008152601b016000611c448284612607565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b602082015291506122e2565b602080825281016105fb8161265b565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572910190815260006120c9565b602080825281016105fb816126ae565b602a81526000602082017f455243323938313a20726f79616c7479206665652077696c6c206578636565648152692073616c65507269636560b01b602082015291506122e2565b602080825281016105fb816126f0565b601981526000602082017f455243323938313a20696e76616c696420726563656976657200000000000000815291506120c9565b602080825281016105fb81612747565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015291506122e2565b602080825281016105fb8161278b565b603e81526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f81527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015291506122e2565b602080825281016105fb816127d9565b602e81526000602082017f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6581526d1c881b9bdc88185c1c1c9bdd995960921b602082015291506122e2565b602080825281016105fb81612843565b600081546128ab8161206d565b8085526020850194506001821680156128cb57600181146128e15761290f565b60ff19831686526020821515028601935061290f565b60008581526020902060005b83811015612909578154888201526001909101906020016128ed565b87019450505b50505092915050565b60006105fb82611f3d565b604080835260009083018183612939838261289e565b9250506001840154905061294c81612918565b6129596020870182611c7d565b5090949350505050565b6000611c448383612923565b6000612979825490565b808452602084019350836020820285016129998560009081526020902090565b8060005b8581101561252f578484038952816129b58582612963565b94506002830160209a909a019992505060010161299d565b60c081016129db8286612453565b81810360808301526129ed818561296f565b90506114df60a0830184611cc7565b80516105fb81611c4b565b600060208284031215612a1c57612a1c600080fd5b60006114df84846129fc565b60008154612a358161206d565b600182168015612a4c5760018114612a615761290f565b60ff198316865281151582028601935061290f565b60008581526020902060005b83811015612a8957815488820152600190910190602001612a6d565b505050939093019392505050565b7f7d2c7b2274726169745f74797065223a224c696e6573222c2276616c7565223a815260006120c9565b7003d913730b6b2911d112932b1b2b4b83a1607d1b81526011016000612ae7828b612607565b741022aa241116113232b9b1b934b83a34b7b7111d1160591b81526015019150612b11828a612a28565b7f222c22696d616765223a22646174613a696d6167652f7376672b786d6c3b7574815262198e0b60ea1b60208201526023019150612b4f8289612607565b7111161132bc3a32b93730b62fbab936111d1160711b81526012019150612b768288612a28565b9150612b828287612607565b7f222c226261636b67726f756e645f636f6c6f72223a22433343334333222c226181527f747472696275746573223a5b7b2274726169745f74797065223a2256616c75656020820152691116113b30b63ab2911d60b11b6040820152604a019150612bed8286612607565b7f7d2c7b2274726169745f74797065223a225472616e7366657273222c2276616c8152633ab2911d60e11b60208201526024019150612c2c8285612607565b9150612c3782612a97565b9150612c438284612607565b627d5d7d60e81b81526003019a9950505050505050505050565b60408101612c6b8285611c7d565b611c446020830184611c7d565b80516105fb81611d2b565b600060208284031215612c9857612c98600080fd5b60006114df8484612c78565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015291506122e2565b602080825281016105fb81612ca4565b602581526000602082017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081526437bbb732b960d91b602082015291506122e2565b602080825281016105fb81612d03565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015291506122e2565b602080825281016105fb81612d55565b818103818111156105fb576105fb6121a2565b808201808211156105fb576105fb6121a2565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c657200000000000000815291506120c9565b602080825281016105fb81612dcc565b634e487b7160e01b600052603260045260246000fd5b60208082527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373910190815260006120c9565b602080825281016105fb81612e26565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815291506120c9565b602080825281016105fb81612e68565b60808101612eba8287611c7d565b612ec76020830186611c7d565b612ed46040830185611cc7565b81810360608301526122338184611c01565b80516105fb81611b06565b600060208284031215612f0657612f06600080fd5b60006114df8484612ee6565b60008060408385031215612f2857612f28600080fd5b825167ffffffffffffffff811115612f4257612f42600080fd5b612f4e858286016125a8565b925050602083015167ffffffffffffffff811115612f6e57612f6e600080fd5b611bd3858286016125a8565b600160fd1b815260006121cb565b6000612f948285612607565b9150612f9f82612f7a565b91506114df828461260756fea26469706673582212208d5d6393ecf3e97140964b5c5b3dd034c7cef264086ba802e49114e412451a5764736f6c634300081100330000000000000000000000009c8cbd69fe1c9a6976e3a97e4a17a33d3a8b4b8b
Deployed Bytecode
0x6080604052600436106101e35760003560e01c80636352211e11610102578063b63e6ac311610095578063e985e9c511610064578063e985e9c51461056f578063ecba222a1461058f578063f2fde38b146105b0578063f803f410146105d057600080fd5b8063b63e6ac3146104e0578063b88d4fde1461050f578063b8d1e5321461052f578063c87b56dd1461054f57600080fd5b806390c3f38f116100d157806390c3f38f1461045e57806395d89b411461047e578063a22cb46514610493578063b0ccc31e146104b357600080fd5b80636352211e146103f457806370a0823114610414578063715018a6146104345780638da5cb5b1461044957600080fd5b806322f3e2d41161017a57806342842e0e1161014957806342842e0e1461038a578063560e9c11146103aa5780635ef9432a146103ca5780635fd8c710146103df57600080fd5b806322f3e2d41461030257806323b872dd1461031c5780632750fc781461033c5780632a55205a1461035c57600080fd5b8063095ea7b3116101b6578063095ea7b31461028f5780631249c58b146102af57806318160ddd146102b75780631e495dc4146102d557600080fd5b806301ffc9a7146101e857806302fa7c471461021e57806306fdde0314610240578063081812fc14610262575b600080fd5b3480156101f457600080fd5b50610208610203366004611b28565b6105f0565b6040516102159190611b53565b60405180910390f35b34801561022a57600080fd5b5061023e610239366004611ba0565b610601565b005b34801561024c57600080fd5b50610255610617565b6040516102159190611c33565b34801561026e57600080fd5b5061028261027d366004611c5c565b6106a9565b6040516102159190611c86565b34801561029b57600080fd5b5061023e6102aa366004611c94565b6106d0565b61023e6106e9565b3480156102c357600080fd5b50600b545b6040516102159190611ccd565b3480156102e157600080fd5b506102c86102f0366004611c5c565b600f6020526000908152604090205481565b34801561030e57600080fd5b506010546102089060ff1681565b34801561032857600080fd5b5061023e610337366004611cdb565b6108a5565b34801561034857600080fd5b5061023e610357366004611d3e565b6108d0565b34801561036857600080fd5b5061037c610377366004611d5f565b6108eb565b604051610215929190611d81565b34801561039657600080fd5b5061023e6103a5366004611cdb565b610997565b3480156103b657600080fd5b5061023e6103c5366004611c5c565b6109bc565b3480156103d657600080fd5b5061023e6109c9565b3480156103eb57600080fd5b5061023e610a45565b34801561040057600080fd5b5061028261040f366004611c5c565b610ab9565b34801561042057600080fd5b506102c861042f366004611d9c565b610aee565b34801561044057600080fd5b5061023e610b32565b34801561045557600080fd5b50610282610b46565b34801561046a57600080fd5b5061023e610479366004611eb8565b610b5f565b34801561048a57600080fd5b50610255610b73565b34801561049f57600080fd5b5061023e6104ae366004611ef3565b610b82565b3480156104bf57600080fd5b506009546104d3906001600160a01b031681565b6040516102159190611f68565b3480156104ec57600080fd5b506105006104fb366004611c5c565b610b96565b60405161021593929190611f76565b34801561051b57600080fd5b5061023e61052a366004611fa5565b610c99565b34801561053b57600080fd5b5061023e61054a366004611d9c565b610cc6565b34801561055b57600080fd5b5061025561056a366004611c5c565b610d4c565b34801561057b57600080fd5b5061020861058a366004612024565b610d9f565b34801561059b57600080fd5b5060095461020890600160a01b900460ff1681565b3480156105bc57600080fd5b5061023e6105cb366004611d9c565b610dcd565b3480156105dc57600080fd5b5061023e6105eb366004611eb8565b610e04565b60006105fb82610e27565b92915050565b610609610e4c565b6106138282610e7b565b5050565b6060600080546106269061206d565b80601f01602080910402602001604051908101604052809291908181526020018280546106529061206d565b801561069f5780601f106106745761010080835404028352916020019161069f565b820191906000526020600020905b81548152906001019060200180831161068257829003601f168201915b5050505050905090565b60006106b482610f05565b506000908152600460205260409020546001600160a01b031690565b816106da81610f39565b6106e48383610f53565b505050565b6002600854036107145760405162461bcd60e51b815260040161070b906120d0565b60405180910390fd5b600260085560105460ff1661073b5760405162461bcd60e51b815260040161070b906120ff565b346000908152600f6020526040902054156107685760405162461bcd60e51b815260040161070b90612134565b610778655af3107a40003461215a565b156107955760405162461bcd60e51b815260040161070b90612192565b600b80549060006107a5836121b8565b919050555060003a600c546107ba91906121d2565b905060405180608001604052803481526020018281526020014281526020016107e03390565b6001600160a01b03908116909152600b80546000908152600d6020908152604080832086518155868301516001820155868201516002820155606090960151600390960180546001600160a01b03191696909516959095179093559054348252600f909252919091205561085633600b54610fd3565b7f5e9f1b91ac2555aca8bb40a54c7f2dce80d64e6691479bdaa76d263ecdf0422a600b543483426108843390565b6040516108959594939291906121f1565b60405180910390a1506001600855565b826001600160a01b03811633146108bf576108bf33610f39565b6108ca848484610fed565b50505050565b6108d8610e4c565b6010805460ff1916911515919091179055565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916109605750604080518082019091526006546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061097f906001600160601b0316876121d2565b610989919061223d565b915196919550909350505050565b826001600160a01b03811633146109b1576109b133610f39565b6108ca84848461101e565b6109c4610e4c565b600c55565b6109d1610b46565b6001600160a01b0316336001600160a01b031614610a0257604051635fc483c560e01b815260040160405180910390fd5b600954600160a01b900460ff1615610a2d57604051631551a48f60e11b815260040160405180910390fd5b600980546001600160a81b031916600160a01b179055565b610a4d610e4c565b6000336001600160a01b031647604051610a6690612251565b60006040518083038185875af1925050503d8060008114610aa3576040519150601f19603f3d011682016040523d82523d6000602084013e610aa8565b606091505b5050905080610ab657600080fd5b50565b6000818152600260205260408120546001600160a01b0316806105fb5760405162461bcd60e51b815260040161070b90612290565b60006001600160a01b038216610b165760405162461bcd60e51b815260040161070b906122e9565b506001600160a01b031660009081526003602052604090205490565b610b3a610e4c565b610b446000611039565b565b6000610b5a600a546001600160a01b031690565b905090565b610b67610e4c565b6011610613828261238f565b6060600180546106269061206d565b81610b8c81610f39565b6106e4838361108b565b6000818152600f602090815260408083205481516080810183528481529283018490529082018390526060828101849052909290918481526013546001600160a01b03166384796ebe826000604051908082528060200260200182016040528015610c2857816020015b604080518082019091526060815260006020820152815260200190600190039081610c005790505b5060006040518463ffffffff1660e01b8152600401610c4993929190612545565b600060405180830381865afa158015610c66573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610c8e91908101906125cc565b939593949392505050565b836001600160a01b0381163314610cb357610cb333610f39565b610cbf85858585611096565b5050505050565b610cce610b46565b6001600160a01b0316336001600160a01b031614610cff57604051635fc483c560e01b815260040160405180910390fd5b600954600160a01b900460ff1615610d2a57604051631551a48f60e11b815260040160405180910390fd5b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600260205260409020546060906001600160a01b0316610d7057600080fd5b610d79826110c8565b604051602001610d899190612629565b6040516020818303038152906040529050919050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610dd5610e4c565b6001600160a01b038116610dfb5760405162461bcd60e51b815260040161070b9061269e565b610ab681611039565b610e0c610e4c565b6012610613828261238f565b600a546001600160a01b031690565b60006001600160e01b0319821663152a902d60e11b14806105fb57506105fb826112df565b33610e55610b46565b6001600160a01b031614610b445760405162461bcd60e51b815260040161070b906126e0565b6127106001600160601b0382161115610ea65760405162461bcd60e51b815260040161070b90612737565b6001600160a01b038216610ecc5760405162461bcd60e51b815260040161070b9061277b565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600655565b6000818152600260205260409020546001600160a01b0316610ab65760405162461bcd60e51b815260040161070b90612290565b6009546001600160a01b031615610ab657610ab68161132f565b6000610f5e82610ab9565b9050806001600160a01b0316836001600160a01b031603610f915760405162461bcd60e51b815260040161070b906127c9565b336001600160a01b0382161480610fad5750610fad8133610d9f565b610fc95760405162461bcd60e51b815260040161070b90612833565b6106e483836113e7565b610613828260405180602001604052806000815250611455565b610ff73382611488565b6110135760405162461bcd60e51b815260040161070b9061288e565b6106e48383836114e7565b6106e483838360405180602001604052806000815250610c99565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610613338383611614565b6110a03383611488565b6110bc5760405162461bcd60e51b815260040161070b9061288e565b6108ca848484846116b6565b6000818152600d60209081526040808320815160808101835281548082526001830154948201949094526002820154818401526003909101546001600160a01b039081166060838101919091526013549351633dcfd17560e21b81529095929492939091169163f73f45d4916111419190600401611ccd565b600060405180830381865afa15801561115e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261118691908101906125cc565b6013546000868152600e602052604090819020905163423cb75f60e11b815292935083926011926001600160a01b0316916384796ebe916111cd9188918b906004016129cd565b600060405180830381865afa1580156111ea573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261121291908101906125cc565b601261121d886116e9565b6000898152600e60205260409020548690611237906116e9565b6013548951604051639098444f60e01b81526112b0926001600160a01b031691639098444f9161126a9190600401611ccd565b602060405180830381865afa158015611287573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ab9190612a07565b6116e9565b6040516020016112c7989796959493929190612ac1565b60405160208183030381529060405292505050919050565b60006001600160e01b031982166380ac58cd60e01b148061131057506001600160e01b03198216635b5e139f60e01b145b806105fb57506301ffc9a760e01b6001600160e01b03198316146105fb565b6009546001600160a01b0316801580159061135457506000816001600160a01b03163b115b1561061357604051633185c44d60e21b81526001600160a01b0382169063c6171134906113879030908690600401612c5d565b602060405180830381865afa1580156113a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113c89190612c83565b6106135781604051633b79c77360e21b815260040161070b9190611c86565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061141c82610ab9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61145f83836117ea565b61146c60008484846118d8565b6106e45760405162461bcd60e51b815260040161070b90612cf3565b60008061149483610ab9565b9050806001600160a01b0316846001600160a01b031614806114bb57506114bb8185610d9f565b806114df5750836001600160a01b03166114d4846106a9565b6001600160a01b0316145b949350505050565b826001600160a01b03166114fa82610ab9565b6001600160a01b0316146115205760405162461bcd60e51b815260040161070b90612d45565b6001600160a01b0382166115465760405162461bcd60e51b815260040161070b90612d96565b6115518383836119d9565b61155c6000826113e7565b6001600160a01b0383166000908152600360205260408120805460019290611585908490612da6565b90915550506001600160a01b03821660009081526003602052604081208054600192906115b3908490612db9565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816001600160a01b0316836001600160a01b0316036116455760405162461bcd60e51b815260040161070b90612e00565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906116a9908590611b53565b60405180910390a3505050565b6116c18484846114e7565b6116cd848484846118d8565b6108ca5760405162461bcd60e51b815260040161070b90612cf3565b6060816000036117105750506040805180820190915260018152600360fc1b602082015290565b8160005b811561173a5780611724816121b8565b91506117339050600a8361223d565b9150611714565b60008167ffffffffffffffff81111561175557611755611dbd565b6040519080825280601f01601f19166020018201604052801561177f576020820181803683370190505b5090505b84156114df57611794600183612da6565b91506117a1600a8661215a565b6117ac906030612db9565b60f81b8183815181106117c1576117c1612e10565b60200101906001600160f81b031916908160001a9053506117e3600a8661223d565b9450611783565b6001600160a01b0382166118105760405162461bcd60e51b815260040161070b90612e58565b6000818152600260205260409020546001600160a01b0316156118455760405162461bcd60e51b815260040161070b90612e9c565b611851600083836119d9565b6001600160a01b038216600090815260036020526040812080546001929061187a908490612db9565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b156119ce57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061191c903390899088908890600401612eac565b6020604051808303816000875af1925050508015611957575060408051601f3d908101601f1916820190925261195491810190612ef1565b60015b6119b4573d808015611985576040519150601f19603f3d011682016040523d82523d6000602084013e61198a565b606091505b5080516000036119ac5760405162461bcd60e51b815260040161070b90612cf3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506114df565b506001949350505050565b6001600160a01b038316156106e457601354604051630b11527160e31b815260009182916001600160a01b039091169063588a938890611a1d904290600401611ccd565b600060405180830381865afa158015611a3a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611a629190810190612f12565b6000858152600e602052604090819020815180830190925292945090925080611a8f858560608401612f88565b60408051601f1981840301815291905281526001600160a01b0387166020918201528254600181018455600093845292208151919260020201908190611ad5908261238f565b5060209190910151600190910180546001600160a01b0319166001600160a01b039092169190911790555050505050565b6001600160e01b031981165b8114610ab657600080fd5b80356105fb81611b06565b600060208284031215611b3d57611b3d600080fd5b60006114df8484611b1d565b8015155b82525050565b602081016105fb8284611b49565b60006001600160a01b0382166105fb565b611b1281611b61565b80356105fb81611b72565b6001600160601b038116611b12565b80356105fb81611b86565b60008060408385031215611bb657611bb6600080fd5b6000611bc28585611b7b565b9250506020611bd385828601611b95565b9150509250929050565b60005b83811015611bf8578181015183820152602001611be0565b50506000910152565b6000611c0b825190565b808452602084019350611c22818560208601611bdd565b601f01601f19169290920192915050565b60208082528101611c448184611c01565b9392505050565b80611b12565b80356105fb81611c4b565b600060208284031215611c7157611c71600080fd5b60006114df8484611c51565b611b4d81611b61565b602081016105fb8284611c7d565b60008060408385031215611caa57611caa600080fd5b6000611cb68585611b7b565b9250506020611bd385828601611c51565b80611b4d565b602081016105fb8284611cc7565b600080600060608486031215611cf357611cf3600080fd5b6000611cff8686611b7b565b9350506020611d1086828701611b7b565b9250506040611d2186828701611c51565b9150509250925092565b801515611b12565b80356105fb81611d2b565b600060208284031215611d5357611d53600080fd5b60006114df8484611d33565b60008060408385031215611d7557611d75600080fd5b6000611cb68585611c51565b60408101611d8f8285611c7d565b611c446020830184611cc7565b600060208284031215611db157611db1600080fd5b60006114df8484611b7b565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff82111715611df957611df9611dbd565b6040525050565b6000611e0b60405190565b9050611e178282611dd3565b919050565b600067ffffffffffffffff821115611e3657611e36611dbd565b601f19601f83011660200192915050565b82818337506000910152565b6000611e66611e6184611e1c565b611e00565b905082815260208101848484011115611e8157611e81600080fd5b611e8c848285611e47565b509392505050565b600082601f830112611ea857611ea8600080fd5b81356114df848260208601611e53565b600060208284031215611ecd57611ecd600080fd5b813567ffffffffffffffff811115611ee757611ee7600080fd5b6114df84828501611e94565b60008060408385031215611f0957611f09600080fd5b6000611f158585611b7b565b9250506020611bd385828601611d33565b60006105fb6001600160a01b038316611f3d565b90565b6001600160a01b031690565b60006105fb82611f26565b60006105fb82611f49565b611b4d81611f54565b602081016105fb8284611f5f565b60608101611f848286611cc7565b8181036020830152611f968185611c01565b90506114df6040830184611cc7565b60008060008060808587031215611fbe57611fbe600080fd5b6000611fca8787611b7b565b9450506020611fdb87828801611b7b565b9350506040611fec87828801611c51565b925050606085013567ffffffffffffffff81111561200c5761200c600080fd5b61201887828801611e94565b91505092959194509250565b6000806040838503121561203a5761203a600080fd5b60006120468585611b7b565b9250506020611bd385828601611b7b565b634e487b7160e01b600052602260045260246000fd5b60028104600182168061208157607f821691505b60208210810361209357612093612057565b50919050565b601f81526000602082017f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00815291505b5060200190565b602080825281016105fb81612099565b6008815260006020820167494e41435449564560c01b815291506120c9565b602080825281016105fb816120e0565b600e81526000602082016d105b1c9958591e481b5a5b9d195960921b815291506120c9565b602080825281016105fb8161210f565b634e487b7160e01b600052601260045260246000fd5b60008261216957612169612144565b500690565b600d81526000602082016c496e76616c69642076616c756560981b815291506120c9565b602080825281016105fb8161216e565b634e487b7160e01b600052601160045260246000fd5b600060001982036121cb576121cb6121a2565b5060010190565b8181028082158382048514176121ea576121ea6121a2565b5092915050565b60a081016121ff8288611cc7565b61220c6020830187611cc7565b6122196040830186611cc7565b6122266060830185611cc7565b6122336080830184611c7d565b9695505050505050565b60008261224c5761224c612144565b500490565b60006105fb82611f3a565b601881526000602082017f4552433732313a20696e76616c696420746f6b656e2049440000000000000000815291506120c9565b602080825281016105fb8161225c565b602981526000602082017f4552433732313a2061646472657373207a65726f206973206e6f7420612076618152683634b21037bbb732b960b91b602082015291505b5060400190565b602080825281016105fb816122a0565b60006105fb611f3a8381565b61230e836122f9565b81546008840282811b60001990911b908116901990911617825550505050565b60006106e4818484612305565b818110156106135761234e60008261232e565b60010161233b565b601f8211156106e4576000818152602090206020601f8501048101602085101561237d5750805b610cbf6020601f86010483018261233b565b815167ffffffffffffffff8111156123a9576123a9611dbd565b6123b3825461206d565b6123be828285612356565b6020601f8311600181146123f257600084156123da5750858201515b600019600886021c198116600286021786555061244b565b600085815260208120601f198616915b828110156124225788850151825560209485019460019092019101612402565b8683101561243e5784890151600019601f89166008021c191682555b6001600288020188555050505b505050505050565b805160808301906124648482611cc7565b5060208201516124776020850182611cc7565b50604082015161248a6040850182611cc7565b5060608201516108ca6060850182611c7d565b80516040808452600091908401906124b58282611c01565b9150506020830151611e8c6020860182611c7d565b6000611c44838361249d565b60006124e0825190565b808452602084019350836020820285016124fa8560200190565b8060005b8581101561252f578484038952815161251785826124ca565b94506020830160209a909a01999250506001016124fe565b5091979650505050505050565b611b4d816122f9565b60c081016125538286612453565b818103608083015261256581856124d6565b90506114df60a083018461253c565b6000612582611e6184611e1c565b90508281526020810184848401111561259d5761259d600080fd5b611e8c848285611bdd565b600082601f8301126125bc576125bc600080fd5b81516114df848260208601612574565b6000602082840312156125e1576125e1600080fd5b815167ffffffffffffffff8111156125fb576125fb600080fd5b6114df848285016125a8565b6000612611825190565b61261f818560208601611bdd565b9290920192915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c00000000008152601b016000611c448284612607565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b602082015291506122e2565b602080825281016105fb8161265b565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572910190815260006120c9565b602080825281016105fb816126ae565b602a81526000602082017f455243323938313a20726f79616c7479206665652077696c6c206578636565648152692073616c65507269636560b01b602082015291506122e2565b602080825281016105fb816126f0565b601981526000602082017f455243323938313a20696e76616c696420726563656976657200000000000000815291506120c9565b602080825281016105fb81612747565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015291506122e2565b602080825281016105fb8161278b565b603e81526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f81527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015291506122e2565b602080825281016105fb816127d9565b602e81526000602082017f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6581526d1c881b9bdc88185c1c1c9bdd995960921b602082015291506122e2565b602080825281016105fb81612843565b600081546128ab8161206d565b8085526020850194506001821680156128cb57600181146128e15761290f565b60ff19831686526020821515028601935061290f565b60008581526020902060005b83811015612909578154888201526001909101906020016128ed565b87019450505b50505092915050565b60006105fb82611f3d565b604080835260009083018183612939838261289e565b9250506001840154905061294c81612918565b6129596020870182611c7d565b5090949350505050565b6000611c448383612923565b6000612979825490565b808452602084019350836020820285016129998560009081526020902090565b8060005b8581101561252f578484038952816129b58582612963565b94506002830160209a909a019992505060010161299d565b60c081016129db8286612453565b81810360808301526129ed818561296f565b90506114df60a0830184611cc7565b80516105fb81611c4b565b600060208284031215612a1c57612a1c600080fd5b60006114df84846129fc565b60008154612a358161206d565b600182168015612a4c5760018114612a615761290f565b60ff198316865281151582028601935061290f565b60008581526020902060005b83811015612a8957815488820152600190910190602001612a6d565b505050939093019392505050565b7f7d2c7b2274726169745f74797065223a224c696e6573222c2276616c7565223a815260006120c9565b7003d913730b6b2911d112932b1b2b4b83a1607d1b81526011016000612ae7828b612607565b741022aa241116113232b9b1b934b83a34b7b7111d1160591b81526015019150612b11828a612a28565b7f222c22696d616765223a22646174613a696d6167652f7376672b786d6c3b7574815262198e0b60ea1b60208201526023019150612b4f8289612607565b7111161132bc3a32b93730b62fbab936111d1160711b81526012019150612b768288612a28565b9150612b828287612607565b7f222c226261636b67726f756e645f636f6c6f72223a22433343334333222c226181527f747472696275746573223a5b7b2274726169745f74797065223a2256616c75656020820152691116113b30b63ab2911d60b11b6040820152604a019150612bed8286612607565b7f7d2c7b2274726169745f74797065223a225472616e7366657273222c2276616c8152633ab2911d60e11b60208201526024019150612c2c8285612607565b9150612c3782612a97565b9150612c438284612607565b627d5d7d60e81b81526003019a9950505050505050505050565b60408101612c6b8285611c7d565b611c446020830184611c7d565b80516105fb81611d2b565b600060208284031215612c9857612c98600080fd5b60006114df8484612c78565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015291506122e2565b602080825281016105fb81612ca4565b602581526000602082017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081526437bbb732b960d91b602082015291506122e2565b602080825281016105fb81612d03565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015291506122e2565b602080825281016105fb81612d55565b818103818111156105fb576105fb6121a2565b808201808211156105fb576105fb6121a2565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c657200000000000000815291506120c9565b602080825281016105fb81612dcc565b634e487b7160e01b600052603260045260246000fd5b60208082527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373910190815260006120c9565b602080825281016105fb81612e26565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815291506120c9565b602080825281016105fb81612e68565b60808101612eba8287611c7d565b612ec76020830186611c7d565b612ed46040830185611cc7565b81810360608301526122338184611c01565b80516105fb81611b06565b600060208284031215612f0657612f06600080fd5b60006114df8484612ee6565b60008060408385031215612f2857612f28600080fd5b825167ffffffffffffffff811115612f4257612f42600080fd5b612f4e858286016125a8565b925050602083015167ffffffffffffffff811115612f6e57612f6e600080fd5b611bd3858286016125a8565b600160fd1b815260006121cb565b6000612f948285612607565b9150612f9f82612f7a565b91506114df828461260756fea26469706673582212208d5d6393ecf3e97140964b5c5b3dd034c7cef264086ba802e49114e412451a5764736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000009c8cbd69fe1c9a6976e3a97e4a17a33d3a8b4b8b
-----Decoded View---------------
Arg [0] : _artAddress (address): 0x9C8CBD69fE1C9a6976e3a97e4A17A33D3a8B4B8B
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000009c8cbd69fe1c9a6976e3a97e4a17a33d3a8b4b8b
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.