Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
85 GOODBYEWORLD
Holders
33
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 GOODBYEWORLDLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GoodbyeWorld
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"; interface IFont { function font() external view returns (string memory); } contract GoodbyeWorld is ERC721, ERC2981, ReentrancyGuard, RevokableDefaultOperatorFilterer, Ownable { uint256 private _tokenSupply; bool public isActive; string private _description; string private _baseExternalURI; address[] private _allowAddresses; IFont private font; constructor(address _fontAddress) ERC721("GoodbyeWorld", "GOODBYEWORLD") { font = IFont(_fontAddress); _setDefaultRoyalty(owner(), 1000); } function mint() external nonReentrant { require(isActive, "INACTIVE"); require(available(), "NOT AVAILABLE"); _safeMint(_msgSender(), _tokenSupply); _tokenSupply++; } function available() public view returns (bool) { if (_allowAddresses.length == 0) return true; for (uint256 i; i < _allowAddresses.length; i++) { if (IERC721(_allowAddresses[i]).balanceOf(_msgSender()) > 0) { return true; } } return false; } /* token utility */ function setIsActive(bool _isActive) external onlyOwner { isActive = _isActive; } function setDescription(string memory desc) public onlyOwner { _description = desc; } function setBaseExternalURI(string memory URI) external onlyOwner { _baseExternalURI = URI; } function setAllowAddresses(address[] memory _addresses) external onlyOwner { _allowAddresses = _addresses; } function random(uint256 _seed) private pure returns (uint256) { return uint256(keccak256(abi.encodePacked(_seed))); } function rowBody( uint256 _seed, uint256 _index, string memory _width ) private pure returns (string memory) { uint256 rand = uint256(keccak256(abi.encodePacked("GBW", _index, _seed))); string memory body; { for (uint256 i = 0; i < 10; i++) { rand = random(rand); string memory amount = Strings.toString(1 + (rand % 10)); rand = random(rand); string memory direction = rand % 2 == 0 ? "right" : "left"; rand = random(rand); string memory behavior = rand % 5 == 0 ? "alternate" : "scroll"; rand = random(rand); string memory color = string( abi.encodePacked("hsl(", Strings.toString(rand % 361), ",100%,40%)") ); rand = uint256(keccak256(abi.encodePacked(rand))); string memory bg = string( abi.encodePacked("hsl(", Strings.toString(rand % 361), ",100%,50%)") ); body = string( abi.encodePacked( body, "<div class='w'><marquee style='color:", color, ";background-color:", bg, "' scrollamount='", amount, "' direction='", direction, "' behavior='", behavior, "'>GOODBYE WORLD</marquee></div>" ) ); } } return string( abi.encodePacked( "<div style='height:100%;width:", _width, "%;float:left'>", body, "</div>" ) ); } function tokenHTML(uint256 _tokenId) private view returns (string memory) { uint256 rand = uint256(keccak256(abi.encodePacked("GBW", _tokenId))); uint256 rows = 1 + (uint256(keccak256(abi.encodePacked("GBWR", _tokenId))) % 4); string[4] memory widths = ["100", "50", "33.3", "25"]; string memory body; { for (uint256 i = 0; i < rows; i++) { body = string(abi.encodePacked(body, rowBody(rand, i, widths[rows - 1]))); } } return string( abi.encodePacked( "<body xmlns='http://www.w3.org/1999/xhtml'><style>", "html,body{width:100%;height:100%;line-height:1;overflow:hidden}", "@font-face {font-family:'GBW';font-display:block;src:url(", font.font(), ") format('woff2');}", "*{padding:0;margin:0;font-size:10vh;font-weight:900;font-family:'GBW',monospace;box-sizing:border-box}.w{height:10%;width:100%;}</style>", body, "</body>" ) ); } function getMetaData(uint256 _tokenId) private view returns (string memory) { string memory html = tokenHTML(_tokenId); return string( abi.encodePacked( '{"name":"Goodbye World #', Strings.toString(_tokenId), '","description":"', _description, '","image":"data:image/svg+xml;utf8,', "<svg viewBox='0 0 500 500' xmlns='http://www.w3.org/2000/svg' fill='none'><foreignObject width='500' height='500'>", html, "</foreignObject><style>*{font-size:50px}</style></svg>", '","animation_url":"data:text/html;base64,', Base64.encode( bytes(string(abi.encodePacked("<!DOCTYPE html><html>", html, "</html>"))) ), '","external_url":"', _baseExternalURI, Strings.toString(_tokenId), '"}' ) ); } function tokenURI(uint256 _tokenId) public view override returns (string memory) { return string(abi.encodePacked("data:application/json;utf8,", getMetaData(_tokenId))); } function totalSupply() external view returns (uint256) { return _tokenSupply; } 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(); } } library Base64 { bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /// @notice Encodes some bytes to the base64 representation function encode(bytes memory data) internal pure returns (string memory) { uint256 len = data.length; if (len == 0) return ""; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((len + 2) / 3); // Add some extra buffer at the end bytes memory result = new bytes(encodedLen + 32); bytes memory table = TABLE; assembly { let tablePtr := add(table, 1) let resultPtr := add(result, 32) for { let i := 0 } lt(i, len) { } { i := add(i, 3) let input := and(mload(add(data, i)), 0xffffff) let out := mload(add(tablePtr, and(shr(18, input), 0x3F))) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF)) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF)) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF)) out := shl(224, out) mstore(resultPtr, out) resultPtr := add(resultPtr, 4) } switch mod(len, 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } mstore(result, encodedLen) } return string(result); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (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.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":"_fontAddress","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":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":[],"name":"available","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[],"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":"nonpayable","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":[],"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":"_addresses","type":"address[]"}],"name":"setAllowAddresses","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":"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"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620038d9380380620038d98339810160408190526200003491620003e1565b6daaeb6d7670e522a718067333cd4e733cc6cdda760b79bafa08df41ecfa224f810dceb660018282826040518060400160405280600c81526020016b11dbdbd9189e5955dbdc9b1960a21b8152506040518060400160405280600c81526020016b11d3d3d110965155d3d4931160a21b8152508160009081620000b8919062000521565b506001620000c7828262000521565b5050600160085550600980546001600160a01b0319166001600160a01b03851690811790915583903b156200020a5781156200016757604051633e9f1edf60e11b81526001600160a01b03821690637d3e3dbe906200012d903090879060040162000602565b600060405180830381600087803b1580156200014857600080fd5b505af11580156200015d573d6000803e3d6000fd5b505050506200020a565b6001600160a01b03831615620001a75760405163a0af290360e01b81526001600160a01b0382169063a0af2903906200012d903090879060040162000602565b604051632210724360e11b81526001600160a01b03821690634420e48690620001d590309060040162000628565b600060405180830381600087803b158015620001f057600080fd5b505af115801562000205573d6000803e3d6000fd5b505050505b5050506001600160a01b0384169050620002375760405163c49d17ad60e01b815260040160405180910390fd5b505050620002546200024e6200028d60201b60201c565b62000291565b601080546001600160a01b0319166001600160a01b038316179055620002866200027d620002e3565b6103e8620002ff565b50620006c3565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000620002fa6200039860201b62000a681760201c565b905090565b6127106001600160601b0382161115620003365760405162461bcd60e51b81526004016200032d9062000638565b60405180910390fd5b6001600160a01b0382166200035f5760405162461bcd60e51b81526004016200032d9062000687565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600655565b600a546001600160a01b031690565b60006001600160a01b0382165b92915050565b620003c581620003a7565b8114620003d157600080fd5b50565b8051620003b481620003ba565b600060208284031215620003f857620003f8600080fd5b6000620004068484620003d4565b949350505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052602260045260246000fd5b6002810460018216806200044f57607f821691505b60208210810362000464576200046462000424565b50919050565b6000620003b4620004788381565b90565b62000486836200046a565b81546008840282811b60001990911b908116901990911617825550505050565b6000620004b58184846200047b565b505050565b81811015620004d957620004d0600082620004a6565b600101620004ba565b5050565b601f821115620004b5576000818152602090206020601f85010481016020851015620005065750805b6200051a6020601f860104830182620004ba565b5050505050565b81516001600160401b038111156200053d576200053d6200040e565b6200054982546200043a565b62000556828285620004dd565b6020601f8311600181146200058d5760008415620005745750858201515b600019600886021c1981166002860217865550620005e9565b600085815260208120601f198616915b82811015620005bf57888501518255602094850194600190920191016200059d565b86831015620005dc5784890151600019601f89166008021c191682555b6001600288020188555050505b505050505050565b620005fc81620003a7565b82525050565b60408101620006128285620005f1565b620006216020830184620005f1565b9392505050565b60208101620003b48284620005f1565b60208082528101620003b481602a81527f455243323938313a20726f79616c7479206665652077696c6c206578636565646020820152692073616c65507269636560b01b604082015260600190565b60208082528101620003b481601981527f455243323938313a20696e76616c696420726563656976657200000000000000602082015260400190565b61320680620006d36000396000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c806370a0823111610104578063b88d4fde116100a2578063e985e9c511610071578063e985e9c5146103c5578063ecba222a146103d8578063f2fde38b146103ec578063f803f410146103ff57600080fd5b8063b88d4fde14610379578063b8d1e5321461038c578063c87b56dd1461039f578063df22bc29146103b257600080fd5b806390c3f38f116100de57806390c3f38f1461032b57806395d89b411461033e578063a22cb46514610346578063b0ccc31e1461035957600080fd5b806370a0823114610308578063715018a61461031b5780638da5cb5b1461032357600080fd5b806322f3e2d41161017c57806342842e0e1161014b57806342842e0e146102d257806348a0d754146102e55780635ef9432a146102ed5780636352211e146102f557600080fd5b806322f3e2d41461027e57806323b872dd1461028b5780632750fc781461029e5780632a55205a146102b157600080fd5b8063081812fc116101b8578063081812fc14610232578063095ea7b3146102525780631249c58b1461026557806318160ddd1461026d57600080fd5b806301ffc9a7146101df57806302fa7c471461020857806306fdde031461021d575b600080fd5b6101f26101ed366004611af1565b610412565b6040516101ff9190611b1c565b60405180910390f35b61021b610216366004611b69565b610423565b005b610225610439565b6040516101ff9190611bfc565b610245610240366004611c1e565b6104cb565b6040516101ff9190611c48565b61021b610260366004611c56565b6104f2565b61021b61050b565b600b545b6040516101ff9190611c8f565b600c546101f29060ff1681565b61021b610299366004611c9d565b6105a9565b61021b6102ac366004611d00565b6105d4565b6102c46102bf366004611d21565b6105ef565b6040516101ff929190611d43565b61021b6102e0366004611c9d565b61069b565b6101f26106c0565b61021b610794565b610245610303366004611c1e565b610810565b610271610316366004611d5e565b610845565b61021b610889565b61024561089d565b61021b610339366004611e7a565b6108b6565b6102256108ca565b61021b610354366004611eb5565b6108d9565b60095461036c906001600160a01b031681565b6040516101ff9190611f2a565b61021b610387366004611f38565b6108ed565b61021b61039a366004611d5e565b61091a565b6102256103ad366004611c1e565b6109a0565b61021b6103c036600461205a565b6109d1565b6101f26103d3366004612095565b6109ec565b6009546101f290600160a01b900460ff1681565b61021b6103fa366004611d5e565b610a1a565b61021b61040d366004611e7a565b610a54565b600061041d82610a77565b92915050565b61042b610a9c565b6104358282610acb565b5050565b606060008054610448906120de565b80601f0160208091040260200160405190810160405280929190818152602001828054610474906120de565b80156104c15780601f10610496576101008083540402835291602001916104c1565b820191906000526020600020905b8154815290600101906020018083116104a457829003601f168201915b5050505050905090565b60006104d682610b55565b506000908152600460205260409020546001600160a01b031690565b816104fc81610b89565b6105068383610ba3565b505050565b6002600854036105365760405162461bcd60e51b815260040161052d90612141565b60405180910390fd5b6002600855600c5460ff1661055d5760405162461bcd60e51b815260040161052d90612170565b6105656106c0565b6105815760405162461bcd60e51b815260040161052d906121a4565b61058d33600b54610c23565b600b805490600061059d836121ca565b90915550506001600855565b826001600160a01b03811633146105c3576105c333610b89565b6105ce848484610c3d565b50505050565b6105dc610a9c565b600c805460ff1916911515919091179055565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916106645750604080518082019091526006546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610683906001600160601b0316876121e4565b61068d9190612219565b915196919550909350505050565b826001600160a01b03811633146106b5576106b533610b89565b6105ce848484610c6e565b600f5460009081036106d25750600190565b60005b600f5481101561078c576000600f82815481106106f4576106f461222d565b6000918252602090912001546001600160a01b03166370a08231336040518263ffffffff1660e01b815260040161072b9190611c48565b602060405180830381865afa158015610748573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076c919061224e565b111561077a57600191505090565b80610784816121ca565b9150506106d5565b506000905090565b61079c61089d565b6001600160a01b0316336001600160a01b0316146107cd57604051635fc483c560e01b815260040160405180910390fd5b600954600160a01b900460ff16156107f857604051631551a48f60e11b815260040160405180910390fd5b600980546001600160a81b031916600160a01b179055565b6000818152600260205260408120546001600160a01b03168061041d5760405162461bcd60e51b815260040161052d906122a3565b60006001600160a01b03821661086d5760405162461bcd60e51b815260040161052d906122fc565b506001600160a01b031660009081526003602052604090205490565b610891610a9c565b61089b6000610c89565b565b60006108b1600a546001600160a01b031690565b905090565b6108be610a9c565b600d61043582826123a2565b606060018054610448906120de565b816108e381610b89565b6105068383610cdb565b836001600160a01b03811633146109075761090733610b89565b61091385858585610ce6565b5050505050565b61092261089d565b6001600160a01b0316336001600160a01b03161461095357604051635fc483c560e01b815260040160405180910390fd5b600954600160a01b900460ff161561097e57604051631551a48f60e11b815260040160405180910390fd5b600980546001600160a01b0319166001600160a01b0392909216919091179055565b60606109ab82610d18565b6040516020016109bb9190612488565b6040516020818303038152906040529050919050565b6109d9610a9c565b805161043590600f906020840190611a55565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610a22610a9c565b6001600160a01b038116610a485760405162461bcd60e51b815260040161052d906124fd565b610a5181610c89565b50565b610a5c610a9c565b600e61043582826123a2565b600a546001600160a01b031690565b60006001600160e01b0319821663152a902d60e11b148061041d575061041d82610d92565b33610aa561089d565b6001600160a01b03161461089b5760405162461bcd60e51b815260040161052d9061253f565b6127106001600160601b0382161115610af65760405162461bcd60e51b815260040161052d90612596565b6001600160a01b038216610b1c5760405162461bcd60e51b815260040161052d906125da565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600655565b6000818152600260205260409020546001600160a01b0316610a515760405162461bcd60e51b815260040161052d906122a3565b6009546001600160a01b031615610a5157610a5181610de2565b6000610bae82610810565b9050806001600160a01b0316836001600160a01b031603610be15760405162461bcd60e51b815260040161052d90612628565b336001600160a01b0382161480610bfd5750610bfd81336109ec565b610c195760405162461bcd60e51b815260040161052d90612692565b6105068383610e9a565b610435828260405180602001604052806000815250610f08565b610c473382610f3b565b610c635760405162461bcd60e51b815260040161052d906126ed565b610506838383610f9a565b610506838383604051806020016040528060008152506108ed565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6104353383836110bc565b610cf03383610f3b565b610d0c5760405162461bcd60e51b815260040161052d906126ed565b6105ce8484848461115e565b60606000610d2583611191565b9050610d3083611396565b600d82610d5b84604051602001610d479190612714565b604051602081830303815290604052611497565b600e610d6688611396565b604051602001610d7b969594939291906127dd565b604051602081830303815290604052915050919050565b60006001600160e01b031982166380ac58cd60e01b1480610dc357506001600160e01b03198216635b5e139f60e01b145b8061041d57506301ffc9a760e01b6001600160e01b031983161461041d565b6009546001600160a01b03168015801590610e0757506000816001600160a01b03163b115b1561043557604051633185c44d60e21b81526001600160a01b0382169063c617113490610e3a90309086906004016129c7565b602060405180830381865afa158015610e57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e7b91906129ed565b6104355781604051633b79c77360e21b815260040161052d9190611c48565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610ecf82610810565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b610f128383611601565b610f1f60008484846116e3565b6105065760405162461bcd60e51b815260040161052d90612a5d565b600080610f4783610810565b9050806001600160a01b0316846001600160a01b03161480610f6e5750610f6e81856109ec565b80610f925750836001600160a01b0316610f87846104cb565b6001600160a01b0316145b949350505050565b826001600160a01b0316610fad82610810565b6001600160a01b031614610fd35760405162461bcd60e51b815260040161052d90612aaf565b6001600160a01b038216610ff95760405162461bcd60e51b815260040161052d90612b00565b611004600082610e9a565b6001600160a01b038316600090815260036020526040812080546001929061102d908490612b10565b90915550506001600160a01b038216600090815260036020526040812080546001929061105b908490612b23565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816001600160a01b0316836001600160a01b0316036110ed5760405162461bcd60e51b815260040161052d90612b6a565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611151908590611b1c565b60405180910390a3505050565b611169848484610f9a565b611175848484846116e3565b6105ce5760405162461bcd60e51b815260040161052d90612a5d565b60606000826040516020016111a69190612b7a565b6040516020818303038152906040528051906020012060001c905060006004846040516020016111d69190612bb3565b6040516020818303038152906040528051906020012060001c6111f99190612bbe565b611204906001612b23565b6040805160c0810182526003608082019081526203130360ec1b60a0830152815281518083018352600280825261035360f41b6020838101919091528084019290925283518085018552600481526333332e3360e01b81840152838501528351808501909452835261323560f01b9083015260608082019290925291925060005b838110156112ee57816112b986838661129f60018a612b10565b600481106112af576112af61222d565b60200201516117e4565b6040516020016112ca929190612bd2565b604051602081830303815290604052915080806112e6906121ca565b915050611285565b50601060009054906101000a90046001600160a01b03166001600160a01b0316639d37bc7c6040518163ffffffff1660e01b8152600401600060405180830381865afa158015611342573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261136a9190810190612c42565b8160405160200161137c929190612c91565b604051602081830303815290604052945050505050919050565b6060816000036113bd5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156113e757806113d1816121ca565b91506113e09050600a83612219565b91506113c1565b60008167ffffffffffffffff81111561140257611402611d7f565b6040519080825280601f01601f19166020018201604052801561142c576020820181803683370190505b5090505b8415610f9257611441600183612b10565b915061144e600a86612bbe565b611459906030612b23565b60f81b81838151811061146e5761146e61222d565b60200101906001600160f81b031916908160001a905350611490600a86612219565b9450611430565b805160609060008190036114bb575050604080516020810190915260008152919050565b600060036114ca836002612b23565b6114d49190612219565b6114df9060046121e4565b905060006114ee826020612b23565b67ffffffffffffffff81111561150657611506611d7f565b6040519080825280601f01601f191660200182016040528015611530576020820181803683370190505b5090506000604051806060016040528060408152602001613191604091399050600181016020830160005b868110156115bc576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b83526004909201910161155b565b5060038606600181146115d657600281146115e7576115f3565b613d3d60f01b6001198301526115f3565b603d60f81b6000198301525b505050918152949350505050565b6001600160a01b0382166116275760405162461bcd60e51b815260040161052d90612e84565b6000818152600260205260409020546001600160a01b03161561165c5760405162461bcd60e51b815260040161052d90612ec8565b6001600160a01b0382166000908152600360205260408120805460019290611685908490612b23565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b156117d957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611727903390899088908890600401612ed8565b6020604051808303816000875af1925050508015611762575060408051601f3d908101601f1916820190925261175f91810190612f27565b60015b6117bf573d808015611790576040519150601f19603f3d011682016040523d82523d6000602084013e611795565b606091505b5080516000036117b75760405162461bcd60e51b815260040161052d90612a5d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610f92565b506001949350505050565b6060600083856040516020016117fb929190612f48565b6040516020818303038152906040528051906020012060001c9050606060005b600a8110156119f55761182d83611a24565b9250600061184f61183f600a86612bbe565b61184a906001612b23565b611396565b905061185a84611a24565b93506000611869600286612bbe565b1561189057604051806040016040528060048152602001631b19599d60e21b8152506118af565b604051806040016040528060058152602001641c9a59da1d60da1b8152505b90506118ba85611a24565b945060006118c9600587612bbe565b156118f257604051806040016040528060068152602001651cd8dc9bdb1b60d21b815250611915565b60405180604001604052806009815260200168616c7465726e61746560b81b8152505b905061192086611a24565b9550600061193361184a61016989612bbe565b6040516020016119439190612fa5565b6040516020818303038152906040529050866040516020016119659190612fc7565b60408051601f1981840301815291905280516020909101209650600061199061184a6101698a612bbe565b6040516020016119a09190612fea565b60405160208183030381529060405290508682828787876040516020016119cc9695949392919061302b565b6040516020818303038152906040529650505050505080806119ed906121ca565b91505061181b565b508381604051602001611a09929190613124565b604051602081830303815290604052925050505b9392505050565b600081604051602001611a379190612fc7565b60408051601f19818403018152919052805160209091012092915050565b828054828255906000526020600020908101928215611aaa579160200282015b82811115611aaa57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190611a75565b50611ab6929150611aba565b5090565b5b80821115611ab65760008155600101611abb565b6001600160e01b031981165b8114610a5157600080fd5b803561041d81611acf565b600060208284031215611b0657611b06600080fd5b6000610f928484611ae6565b8015155b82525050565b6020810161041d8284611b12565b60006001600160a01b03821661041d565b611adb81611b2a565b803561041d81611b3b565b6001600160601b038116611adb565b803561041d81611b4f565b60008060408385031215611b7f57611b7f600080fd5b6000611b8b8585611b44565b9250506020611b9c85828601611b5e565b9150509250929050565b60005b83811015611bc1578181015183820152602001611ba9565b50506000910152565b6000611bd4825190565b808452602084019350611beb818560208601611ba6565b601f01601f19169290920192915050565b60208082528101611a1d8184611bca565b80611adb565b803561041d81611c0d565b600060208284031215611c3357611c33600080fd5b6000610f928484611c13565b611b1681611b2a565b6020810161041d8284611c3f565b60008060408385031215611c6c57611c6c600080fd5b6000611c788585611b44565b9250506020611b9c85828601611c13565b80611b16565b6020810161041d8284611c89565b600080600060608486031215611cb557611cb5600080fd5b6000611cc18686611b44565b9350506020611cd286828701611b44565b9250506040611ce386828701611c13565b9150509250925092565b801515611adb565b803561041d81611ced565b600060208284031215611d1557611d15600080fd5b6000610f928484611cf5565b60008060408385031215611d3757611d37600080fd5b6000611c788585611c13565b60408101611d518285611c3f565b611a1d6020830184611c89565b600060208284031215611d7357611d73600080fd5b6000610f928484611b44565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff82111715611dbb57611dbb611d7f565b6040525050565b6000611dcd60405190565b9050611dd98282611d95565b919050565b600067ffffffffffffffff821115611df857611df8611d7f565b601f19601f83011660200192915050565b82818337506000910152565b6000611e28611e2384611dde565b611dc2565b905082815260208101848484011115611e4357611e43600080fd5b611e4e848285611e09565b509392505050565b600082601f830112611e6a57611e6a600080fd5b8135610f92848260208601611e15565b600060208284031215611e8f57611e8f600080fd5b813567ffffffffffffffff811115611ea957611ea9600080fd5b610f9284828501611e56565b60008060408385031215611ecb57611ecb600080fd5b6000611ed78585611b44565b9250506020611b9c85828601611cf5565b600061041d6001600160a01b038316611eff565b90565b6001600160a01b031690565b600061041d82611ee8565b600061041d82611f0b565b611b1681611f16565b6020810161041d8284611f21565b60008060008060808587031215611f5157611f51600080fd5b6000611f5d8787611b44565b9450506020611f6e87828801611b44565b9350506040611f7f87828801611c13565b925050606085013567ffffffffffffffff811115611f9f57611f9f600080fd5b611fab87828801611e56565b91505092959194509250565b600067ffffffffffffffff821115611fd157611fd1611d7f565b5060209081020190565b6000611fe9611e2384611fb7565b8381529050602080820190840283018581111561200857612008600080fd5b835b8181101561202c578061201d8882611b44565b8452506020928301920161200a565b5050509392505050565b600082601f83011261204a5761204a600080fd5b8135610f92848260208601611fdb565b60006020828403121561206f5761206f600080fd5b813567ffffffffffffffff81111561208957612089600080fd5b610f9284828501612036565b600080604083850312156120ab576120ab600080fd5b60006120b78585611b44565b9250506020611b9c85828601611b44565b634e487b7160e01b600052602260045260246000fd5b6002810460018216806120f257607f821691505b602082108103612104576121046120c8565b50919050565b601f81526000602082017f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00815291505b5060200190565b6020808252810161041d8161210a565b6008815260006020820167494e41435449564560c01b8152915061213a565b6020808252810161041d81612151565b600d81526000602082016c4e4f5420415641494c41424c4560981b8152915061213a565b6020808252810161041d81612180565b634e487b7160e01b600052601160045260246000fd5b600060001982036121dd576121dd6121b4565b5060010190565b8181028082158382048514176121fc576121fc6121b4565b5092915050565b634e487b7160e01b600052601260045260246000fd5b60008261222857612228612203565b500490565b634e487b7160e01b600052603260045260246000fd5b805161041d81611c0d565b60006020828403121561226357612263600080fd5b6000610f928484612243565b601881526000602082017f4552433732313a20696e76616c696420746f6b656e20494400000000000000008152915061213a565b6020808252810161041d8161226f565b602981526000602082017f4552433732313a2061646472657373207a65726f206973206e6f7420612076618152683634b21037bbb732b960b91b602082015291505b5060400190565b6020808252810161041d816122b3565b600061041d611efc8381565b6123218361230c565b81546008840282811b60001990911b908116901990911617825550505050565b6000610506818484612318565b8181101561043557612361600082612341565b60010161234e565b601f821115610506576000818152602090206020601f850104810160208510156123905750805b6109136020601f86010483018261234e565b815167ffffffffffffffff8111156123bc576123bc611d7f565b6123c682546120de565b6123d1828285612369565b6020601f83116001811461240557600084156123ed5750858201515b600019600886021c198116600286021786555061245e565b600085815260208120601f198616915b828110156124355788850151825560209485019460019092019101612415565b868310156124515784890151600019601f89166008021c191682555b6001600288020188555050505b505050505050565b6000612470825190565b61247e818560208601611ba6565b9290920192915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c00000000008152601b016000611a1d8284612466565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b602082015291506122f5565b6020808252810161041d816124ba565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65729101908152600061213a565b6020808252810161041d8161250d565b602a81526000602082017f455243323938313a20726f79616c7479206665652077696c6c206578636565648152692073616c65507269636560b01b602082015291506122f5565b6020808252810161041d8161254f565b601981526000602082017f455243323938313a20696e76616c6964207265636569766572000000000000008152915061213a565b6020808252810161041d816125a6565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015291506122f5565b6020808252810161041d816125ea565b603e81526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f81527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015291506122f5565b6020808252810161041d81612638565b602e81526000602082017f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6581526d1c881b9bdc88185c1c1c9bdd995960921b602082015291506122f5565b6020808252810161041d816126a2565b661e17b43a36b61f60c91b815260005b5060070190565b741e10a227a1aa2ca82290343a36b61f1e343a36b61f60591b8152601501600061273e8284612466565b9150611a1d826126fd565b60008154612756816120de565b60018216801561276d5760018114612782576127b2565b60ff19831686528115158202860193506127b2565b60008581526020902060005b838110156127aa5781548882015260019091019060200161278e565b838801955050505b50505092915050565b7111161132bc3a32b93730b62fbab936111d1160711b815260005b5060120190565b7f7b226e616d65223a22476f6f6462796520576f726c64202300000000000000008152601801600061280f8289612466565b701116113232b9b1b934b83a34b7b7111d1160791b815260110191506128358288612749565b7f222c22696d616765223a22646174613a696d6167652f7376672b786d6c3b7574815262198e0b60ea1b60208201527f3c7376672076696577426f783d2730203020353030203530302720786d6c6e7360238201527f3d27687474703a2f2f7777772e77332e6f72672f323030302f7376672720666960438201527f6c6c3d276e6f6e65273e3c666f726569676e4f626a6563742077696474683d276063820152711a981813903432b4b3b43a1e939a9818139f60711b608382015260950191506129008287612466565b7f3c2f666f726569676e4f626a6563743e3c7374796c653e2a7b666f6e742d73698152753d329d1a98383c3e9e17b9ba3cb6329f1e17b9bb339f60511b60208201527f222c22616e696d6174696f6e5f75726c223a22646174613a746578742f68746d6036820152681b0ed8985cd94d8d0b60ba1b6056820152605f0191506129898286612466565b9150612994826127bb565b91506129a08285612749565b91506129ac8284612466565b61227d60f01b81529150600282015b98975050505050505050565b604081016129d58285611c3f565b611a1d6020830184611c3f565b805161041d81611ced565b600060208284031215612a0257612a02600080fd5b6000610f9284846129e2565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015291506122f5565b6020808252810161041d81612a0e565b602581526000602082017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081526437bbb732b960d91b602082015291506122f5565b6020808252810161041d81612a6d565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015291506122f5565b6020808252810161041d81612abf565b8181038181111561041d5761041d6121b4565b8082018082111561041d5761041d6121b4565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c6572000000000000008152915061213a565b6020808252810161041d81612b36565b6247425760e81b81526000600382015b9150612b968284611c89565b50602001919050565b6323a12ba960e11b815260005b5060040190565b6000612b8a82612b9f565b600082612bcd57612bcd612203565b500690565b6000612bde8285612466565b9150610f928284612466565b6000612bf8611e2384611dde565b905082815260208101848484011115612c1357612c13600080fd5b611e4e848285611ba6565b600082601f830112612c3257612c32600080fd5b8151610f92848260208601612bea565b600060208284031215612c5757612c57600080fd5b815167ffffffffffffffff811115612c7157612c71600080fd5b610f9284828501612c1e565b661e17b137b23c9f60c91b8152600061270d565b7f3c626f647920786d6c6e733d27687474703a2f2f7777772e77332e6f72672f318152711c9c9c97bc343a36b6139f1e39ba3cb6329f60711b60208201527f68746d6c2c626f64797b77696474683a313030253b6865696768743a3130302560328201527f3b6c696e652d6865696768743a313b6f766572666c6f773a68696464656e7d0060528201527f40666f6e742d66616365207b666f6e742d66616d696c793a27474257273b666f60718201527f6e742d646973706c61793a626c6f636b3b7372633a75726c2800000000000000609182015260aa016000612d768285612466565b722920666f726d61742827776f66663227293b7d60681b81527f2a7b70616464696e673a303b6d617267696e3a303b666f6e742d73697a653a3160138201527f3076683b666f6e742d7765696768743a3930303b666f6e742d66616d696c793a60338201527f27474257272c6d6f6e6f73706163653b626f782d73697a696e673a626f72646560538201527f722d626f787d2e777b6865696768743a3130253b77696474683a313030253b7d6073820152671e17b9ba3cb6329f60c11b6093820152609b019150612e478284612466565b9150610f9282612c7d565b60208082527f4552433732313a206d696e7420746f20746865207a65726f20616464726573739101908152600061213a565b6020808252810161041d81612e52565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e746564000000008152915061213a565b6020808252810161041d81612e94565b60808101612ee68287611c3f565b612ef36020830186611c3f565b612f006040830185611c89565b8181036060830152612f128184611bca565b9695505050505050565b805161041d81611acf565b600060208284031215612f3c57612f3c600080fd5b6000610f928484612f1c565b6247425760e81b81526003016000612f608285611c89565b602082019150612f708284611c89565b5060200192915050565b630d0e6d8560e31b81526000612bac565b692c313030252c3430252960b01b815260005b50600a0190565b6000612fb082612f7a565b9150612fbc8284612466565b9150611a1d82612f8b565b6000612b968284611c89565b692c313030252c3530252960b01b81526000612f9e565b6000612ff582612f7a565b91506130018284612466565b9150611a1d82612fd3565b711db130b1b5b3b937bab73216b1b7b637b91d60711b815260006127d6565b60006130378289612466565b7f3c64697620636c6173733d2777273e3c6d617271756565207374796c653d276381526437b637b91d60d91b602082015260250191506130778288612466565b91506130828261300c565b915061308e8287612466565b6f27207363726f6c6c616d6f756e743d2760801b815260100191506130b38286612466565b6c2720646972656374696f6e3d2760981b8152600d0191506130d58285612466565b6b27206265686176696f723d2760a01b8152600c0191506130f68284612466565b7f273e474f4f4442594520574f524c443c2f6d6172717565653e3c2f6469763e0081529150601f82016129bb565b7f3c646976207374796c653d276865696768743a313030253b77696474683a00008152601e0160006131568285612466565b6d129db33637b0ba1d3632b33a139f60911b8152600e0191506131798284612466565b651e17b234bb1f60d11b8152915060068201610f9256fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220a82abdac18e757389376f4d1c792dfa1ba3f22e39c5f6eaff4afe54d62c0ba0564736f6c63430008110033000000000000000000000000eb65382a2658cabec85ecbe88e3d3f09defa9594
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101da5760003560e01c806370a0823111610104578063b88d4fde116100a2578063e985e9c511610071578063e985e9c5146103c5578063ecba222a146103d8578063f2fde38b146103ec578063f803f410146103ff57600080fd5b8063b88d4fde14610379578063b8d1e5321461038c578063c87b56dd1461039f578063df22bc29146103b257600080fd5b806390c3f38f116100de57806390c3f38f1461032b57806395d89b411461033e578063a22cb46514610346578063b0ccc31e1461035957600080fd5b806370a0823114610308578063715018a61461031b5780638da5cb5b1461032357600080fd5b806322f3e2d41161017c57806342842e0e1161014b57806342842e0e146102d257806348a0d754146102e55780635ef9432a146102ed5780636352211e146102f557600080fd5b806322f3e2d41461027e57806323b872dd1461028b5780632750fc781461029e5780632a55205a146102b157600080fd5b8063081812fc116101b8578063081812fc14610232578063095ea7b3146102525780631249c58b1461026557806318160ddd1461026d57600080fd5b806301ffc9a7146101df57806302fa7c471461020857806306fdde031461021d575b600080fd5b6101f26101ed366004611af1565b610412565b6040516101ff9190611b1c565b60405180910390f35b61021b610216366004611b69565b610423565b005b610225610439565b6040516101ff9190611bfc565b610245610240366004611c1e565b6104cb565b6040516101ff9190611c48565b61021b610260366004611c56565b6104f2565b61021b61050b565b600b545b6040516101ff9190611c8f565b600c546101f29060ff1681565b61021b610299366004611c9d565b6105a9565b61021b6102ac366004611d00565b6105d4565b6102c46102bf366004611d21565b6105ef565b6040516101ff929190611d43565b61021b6102e0366004611c9d565b61069b565b6101f26106c0565b61021b610794565b610245610303366004611c1e565b610810565b610271610316366004611d5e565b610845565b61021b610889565b61024561089d565b61021b610339366004611e7a565b6108b6565b6102256108ca565b61021b610354366004611eb5565b6108d9565b60095461036c906001600160a01b031681565b6040516101ff9190611f2a565b61021b610387366004611f38565b6108ed565b61021b61039a366004611d5e565b61091a565b6102256103ad366004611c1e565b6109a0565b61021b6103c036600461205a565b6109d1565b6101f26103d3366004612095565b6109ec565b6009546101f290600160a01b900460ff1681565b61021b6103fa366004611d5e565b610a1a565b61021b61040d366004611e7a565b610a54565b600061041d82610a77565b92915050565b61042b610a9c565b6104358282610acb565b5050565b606060008054610448906120de565b80601f0160208091040260200160405190810160405280929190818152602001828054610474906120de565b80156104c15780601f10610496576101008083540402835291602001916104c1565b820191906000526020600020905b8154815290600101906020018083116104a457829003601f168201915b5050505050905090565b60006104d682610b55565b506000908152600460205260409020546001600160a01b031690565b816104fc81610b89565b6105068383610ba3565b505050565b6002600854036105365760405162461bcd60e51b815260040161052d90612141565b60405180910390fd5b6002600855600c5460ff1661055d5760405162461bcd60e51b815260040161052d90612170565b6105656106c0565b6105815760405162461bcd60e51b815260040161052d906121a4565b61058d33600b54610c23565b600b805490600061059d836121ca565b90915550506001600855565b826001600160a01b03811633146105c3576105c333610b89565b6105ce848484610c3d565b50505050565b6105dc610a9c565b600c805460ff1916911515919091179055565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916106645750604080518082019091526006546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610683906001600160601b0316876121e4565b61068d9190612219565b915196919550909350505050565b826001600160a01b03811633146106b5576106b533610b89565b6105ce848484610c6e565b600f5460009081036106d25750600190565b60005b600f5481101561078c576000600f82815481106106f4576106f461222d565b6000918252602090912001546001600160a01b03166370a08231336040518263ffffffff1660e01b815260040161072b9190611c48565b602060405180830381865afa158015610748573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076c919061224e565b111561077a57600191505090565b80610784816121ca565b9150506106d5565b506000905090565b61079c61089d565b6001600160a01b0316336001600160a01b0316146107cd57604051635fc483c560e01b815260040160405180910390fd5b600954600160a01b900460ff16156107f857604051631551a48f60e11b815260040160405180910390fd5b600980546001600160a81b031916600160a01b179055565b6000818152600260205260408120546001600160a01b03168061041d5760405162461bcd60e51b815260040161052d906122a3565b60006001600160a01b03821661086d5760405162461bcd60e51b815260040161052d906122fc565b506001600160a01b031660009081526003602052604090205490565b610891610a9c565b61089b6000610c89565b565b60006108b1600a546001600160a01b031690565b905090565b6108be610a9c565b600d61043582826123a2565b606060018054610448906120de565b816108e381610b89565b6105068383610cdb565b836001600160a01b03811633146109075761090733610b89565b61091385858585610ce6565b5050505050565b61092261089d565b6001600160a01b0316336001600160a01b03161461095357604051635fc483c560e01b815260040160405180910390fd5b600954600160a01b900460ff161561097e57604051631551a48f60e11b815260040160405180910390fd5b600980546001600160a01b0319166001600160a01b0392909216919091179055565b60606109ab82610d18565b6040516020016109bb9190612488565b6040516020818303038152906040529050919050565b6109d9610a9c565b805161043590600f906020840190611a55565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610a22610a9c565b6001600160a01b038116610a485760405162461bcd60e51b815260040161052d906124fd565b610a5181610c89565b50565b610a5c610a9c565b600e61043582826123a2565b600a546001600160a01b031690565b60006001600160e01b0319821663152a902d60e11b148061041d575061041d82610d92565b33610aa561089d565b6001600160a01b03161461089b5760405162461bcd60e51b815260040161052d9061253f565b6127106001600160601b0382161115610af65760405162461bcd60e51b815260040161052d90612596565b6001600160a01b038216610b1c5760405162461bcd60e51b815260040161052d906125da565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600655565b6000818152600260205260409020546001600160a01b0316610a515760405162461bcd60e51b815260040161052d906122a3565b6009546001600160a01b031615610a5157610a5181610de2565b6000610bae82610810565b9050806001600160a01b0316836001600160a01b031603610be15760405162461bcd60e51b815260040161052d90612628565b336001600160a01b0382161480610bfd5750610bfd81336109ec565b610c195760405162461bcd60e51b815260040161052d90612692565b6105068383610e9a565b610435828260405180602001604052806000815250610f08565b610c473382610f3b565b610c635760405162461bcd60e51b815260040161052d906126ed565b610506838383610f9a565b610506838383604051806020016040528060008152506108ed565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6104353383836110bc565b610cf03383610f3b565b610d0c5760405162461bcd60e51b815260040161052d906126ed565b6105ce8484848461115e565b60606000610d2583611191565b9050610d3083611396565b600d82610d5b84604051602001610d479190612714565b604051602081830303815290604052611497565b600e610d6688611396565b604051602001610d7b969594939291906127dd565b604051602081830303815290604052915050919050565b60006001600160e01b031982166380ac58cd60e01b1480610dc357506001600160e01b03198216635b5e139f60e01b145b8061041d57506301ffc9a760e01b6001600160e01b031983161461041d565b6009546001600160a01b03168015801590610e0757506000816001600160a01b03163b115b1561043557604051633185c44d60e21b81526001600160a01b0382169063c617113490610e3a90309086906004016129c7565b602060405180830381865afa158015610e57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e7b91906129ed565b6104355781604051633b79c77360e21b815260040161052d9190611c48565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610ecf82610810565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b610f128383611601565b610f1f60008484846116e3565b6105065760405162461bcd60e51b815260040161052d90612a5d565b600080610f4783610810565b9050806001600160a01b0316846001600160a01b03161480610f6e5750610f6e81856109ec565b80610f925750836001600160a01b0316610f87846104cb565b6001600160a01b0316145b949350505050565b826001600160a01b0316610fad82610810565b6001600160a01b031614610fd35760405162461bcd60e51b815260040161052d90612aaf565b6001600160a01b038216610ff95760405162461bcd60e51b815260040161052d90612b00565b611004600082610e9a565b6001600160a01b038316600090815260036020526040812080546001929061102d908490612b10565b90915550506001600160a01b038216600090815260036020526040812080546001929061105b908490612b23565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816001600160a01b0316836001600160a01b0316036110ed5760405162461bcd60e51b815260040161052d90612b6a565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611151908590611b1c565b60405180910390a3505050565b611169848484610f9a565b611175848484846116e3565b6105ce5760405162461bcd60e51b815260040161052d90612a5d565b60606000826040516020016111a69190612b7a565b6040516020818303038152906040528051906020012060001c905060006004846040516020016111d69190612bb3565b6040516020818303038152906040528051906020012060001c6111f99190612bbe565b611204906001612b23565b6040805160c0810182526003608082019081526203130360ec1b60a0830152815281518083018352600280825261035360f41b6020838101919091528084019290925283518085018552600481526333332e3360e01b81840152838501528351808501909452835261323560f01b9083015260608082019290925291925060005b838110156112ee57816112b986838661129f60018a612b10565b600481106112af576112af61222d565b60200201516117e4565b6040516020016112ca929190612bd2565b604051602081830303815290604052915080806112e6906121ca565b915050611285565b50601060009054906101000a90046001600160a01b03166001600160a01b0316639d37bc7c6040518163ffffffff1660e01b8152600401600060405180830381865afa158015611342573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261136a9190810190612c42565b8160405160200161137c929190612c91565b604051602081830303815290604052945050505050919050565b6060816000036113bd5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156113e757806113d1816121ca565b91506113e09050600a83612219565b91506113c1565b60008167ffffffffffffffff81111561140257611402611d7f565b6040519080825280601f01601f19166020018201604052801561142c576020820181803683370190505b5090505b8415610f9257611441600183612b10565b915061144e600a86612bbe565b611459906030612b23565b60f81b81838151811061146e5761146e61222d565b60200101906001600160f81b031916908160001a905350611490600a86612219565b9450611430565b805160609060008190036114bb575050604080516020810190915260008152919050565b600060036114ca836002612b23565b6114d49190612219565b6114df9060046121e4565b905060006114ee826020612b23565b67ffffffffffffffff81111561150657611506611d7f565b6040519080825280601f01601f191660200182016040528015611530576020820181803683370190505b5090506000604051806060016040528060408152602001613191604091399050600181016020830160005b868110156115bc576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b83526004909201910161155b565b5060038606600181146115d657600281146115e7576115f3565b613d3d60f01b6001198301526115f3565b603d60f81b6000198301525b505050918152949350505050565b6001600160a01b0382166116275760405162461bcd60e51b815260040161052d90612e84565b6000818152600260205260409020546001600160a01b03161561165c5760405162461bcd60e51b815260040161052d90612ec8565b6001600160a01b0382166000908152600360205260408120805460019290611685908490612b23565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b156117d957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611727903390899088908890600401612ed8565b6020604051808303816000875af1925050508015611762575060408051601f3d908101601f1916820190925261175f91810190612f27565b60015b6117bf573d808015611790576040519150601f19603f3d011682016040523d82523d6000602084013e611795565b606091505b5080516000036117b75760405162461bcd60e51b815260040161052d90612a5d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610f92565b506001949350505050565b6060600083856040516020016117fb929190612f48565b6040516020818303038152906040528051906020012060001c9050606060005b600a8110156119f55761182d83611a24565b9250600061184f61183f600a86612bbe565b61184a906001612b23565b611396565b905061185a84611a24565b93506000611869600286612bbe565b1561189057604051806040016040528060048152602001631b19599d60e21b8152506118af565b604051806040016040528060058152602001641c9a59da1d60da1b8152505b90506118ba85611a24565b945060006118c9600587612bbe565b156118f257604051806040016040528060068152602001651cd8dc9bdb1b60d21b815250611915565b60405180604001604052806009815260200168616c7465726e61746560b81b8152505b905061192086611a24565b9550600061193361184a61016989612bbe565b6040516020016119439190612fa5565b6040516020818303038152906040529050866040516020016119659190612fc7565b60408051601f1981840301815291905280516020909101209650600061199061184a6101698a612bbe565b6040516020016119a09190612fea565b60405160208183030381529060405290508682828787876040516020016119cc9695949392919061302b565b6040516020818303038152906040529650505050505080806119ed906121ca565b91505061181b565b508381604051602001611a09929190613124565b604051602081830303815290604052925050505b9392505050565b600081604051602001611a379190612fc7565b60408051601f19818403018152919052805160209091012092915050565b828054828255906000526020600020908101928215611aaa579160200282015b82811115611aaa57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190611a75565b50611ab6929150611aba565b5090565b5b80821115611ab65760008155600101611abb565b6001600160e01b031981165b8114610a5157600080fd5b803561041d81611acf565b600060208284031215611b0657611b06600080fd5b6000610f928484611ae6565b8015155b82525050565b6020810161041d8284611b12565b60006001600160a01b03821661041d565b611adb81611b2a565b803561041d81611b3b565b6001600160601b038116611adb565b803561041d81611b4f565b60008060408385031215611b7f57611b7f600080fd5b6000611b8b8585611b44565b9250506020611b9c85828601611b5e565b9150509250929050565b60005b83811015611bc1578181015183820152602001611ba9565b50506000910152565b6000611bd4825190565b808452602084019350611beb818560208601611ba6565b601f01601f19169290920192915050565b60208082528101611a1d8184611bca565b80611adb565b803561041d81611c0d565b600060208284031215611c3357611c33600080fd5b6000610f928484611c13565b611b1681611b2a565b6020810161041d8284611c3f565b60008060408385031215611c6c57611c6c600080fd5b6000611c788585611b44565b9250506020611b9c85828601611c13565b80611b16565b6020810161041d8284611c89565b600080600060608486031215611cb557611cb5600080fd5b6000611cc18686611b44565b9350506020611cd286828701611b44565b9250506040611ce386828701611c13565b9150509250925092565b801515611adb565b803561041d81611ced565b600060208284031215611d1557611d15600080fd5b6000610f928484611cf5565b60008060408385031215611d3757611d37600080fd5b6000611c788585611c13565b60408101611d518285611c3f565b611a1d6020830184611c89565b600060208284031215611d7357611d73600080fd5b6000610f928484611b44565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff82111715611dbb57611dbb611d7f565b6040525050565b6000611dcd60405190565b9050611dd98282611d95565b919050565b600067ffffffffffffffff821115611df857611df8611d7f565b601f19601f83011660200192915050565b82818337506000910152565b6000611e28611e2384611dde565b611dc2565b905082815260208101848484011115611e4357611e43600080fd5b611e4e848285611e09565b509392505050565b600082601f830112611e6a57611e6a600080fd5b8135610f92848260208601611e15565b600060208284031215611e8f57611e8f600080fd5b813567ffffffffffffffff811115611ea957611ea9600080fd5b610f9284828501611e56565b60008060408385031215611ecb57611ecb600080fd5b6000611ed78585611b44565b9250506020611b9c85828601611cf5565b600061041d6001600160a01b038316611eff565b90565b6001600160a01b031690565b600061041d82611ee8565b600061041d82611f0b565b611b1681611f16565b6020810161041d8284611f21565b60008060008060808587031215611f5157611f51600080fd5b6000611f5d8787611b44565b9450506020611f6e87828801611b44565b9350506040611f7f87828801611c13565b925050606085013567ffffffffffffffff811115611f9f57611f9f600080fd5b611fab87828801611e56565b91505092959194509250565b600067ffffffffffffffff821115611fd157611fd1611d7f565b5060209081020190565b6000611fe9611e2384611fb7565b8381529050602080820190840283018581111561200857612008600080fd5b835b8181101561202c578061201d8882611b44565b8452506020928301920161200a565b5050509392505050565b600082601f83011261204a5761204a600080fd5b8135610f92848260208601611fdb565b60006020828403121561206f5761206f600080fd5b813567ffffffffffffffff81111561208957612089600080fd5b610f9284828501612036565b600080604083850312156120ab576120ab600080fd5b60006120b78585611b44565b9250506020611b9c85828601611b44565b634e487b7160e01b600052602260045260246000fd5b6002810460018216806120f257607f821691505b602082108103612104576121046120c8565b50919050565b601f81526000602082017f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00815291505b5060200190565b6020808252810161041d8161210a565b6008815260006020820167494e41435449564560c01b8152915061213a565b6020808252810161041d81612151565b600d81526000602082016c4e4f5420415641494c41424c4560981b8152915061213a565b6020808252810161041d81612180565b634e487b7160e01b600052601160045260246000fd5b600060001982036121dd576121dd6121b4565b5060010190565b8181028082158382048514176121fc576121fc6121b4565b5092915050565b634e487b7160e01b600052601260045260246000fd5b60008261222857612228612203565b500490565b634e487b7160e01b600052603260045260246000fd5b805161041d81611c0d565b60006020828403121561226357612263600080fd5b6000610f928484612243565b601881526000602082017f4552433732313a20696e76616c696420746f6b656e20494400000000000000008152915061213a565b6020808252810161041d8161226f565b602981526000602082017f4552433732313a2061646472657373207a65726f206973206e6f7420612076618152683634b21037bbb732b960b91b602082015291505b5060400190565b6020808252810161041d816122b3565b600061041d611efc8381565b6123218361230c565b81546008840282811b60001990911b908116901990911617825550505050565b6000610506818484612318565b8181101561043557612361600082612341565b60010161234e565b601f821115610506576000818152602090206020601f850104810160208510156123905750805b6109136020601f86010483018261234e565b815167ffffffffffffffff8111156123bc576123bc611d7f565b6123c682546120de565b6123d1828285612369565b6020601f83116001811461240557600084156123ed5750858201515b600019600886021c198116600286021786555061245e565b600085815260208120601f198616915b828110156124355788850151825560209485019460019092019101612415565b868310156124515784890151600019601f89166008021c191682555b6001600288020188555050505b505050505050565b6000612470825190565b61247e818560208601611ba6565b9290920192915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c00000000008152601b016000611a1d8284612466565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b602082015291506122f5565b6020808252810161041d816124ba565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65729101908152600061213a565b6020808252810161041d8161250d565b602a81526000602082017f455243323938313a20726f79616c7479206665652077696c6c206578636565648152692073616c65507269636560b01b602082015291506122f5565b6020808252810161041d8161254f565b601981526000602082017f455243323938313a20696e76616c6964207265636569766572000000000000008152915061213a565b6020808252810161041d816125a6565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015291506122f5565b6020808252810161041d816125ea565b603e81526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f81527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015291506122f5565b6020808252810161041d81612638565b602e81526000602082017f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6581526d1c881b9bdc88185c1c1c9bdd995960921b602082015291506122f5565b6020808252810161041d816126a2565b661e17b43a36b61f60c91b815260005b5060070190565b741e10a227a1aa2ca82290343a36b61f1e343a36b61f60591b8152601501600061273e8284612466565b9150611a1d826126fd565b60008154612756816120de565b60018216801561276d5760018114612782576127b2565b60ff19831686528115158202860193506127b2565b60008581526020902060005b838110156127aa5781548882015260019091019060200161278e565b838801955050505b50505092915050565b7111161132bc3a32b93730b62fbab936111d1160711b815260005b5060120190565b7f7b226e616d65223a22476f6f6462796520576f726c64202300000000000000008152601801600061280f8289612466565b701116113232b9b1b934b83a34b7b7111d1160791b815260110191506128358288612749565b7f222c22696d616765223a22646174613a696d6167652f7376672b786d6c3b7574815262198e0b60ea1b60208201527f3c7376672076696577426f783d2730203020353030203530302720786d6c6e7360238201527f3d27687474703a2f2f7777772e77332e6f72672f323030302f7376672720666960438201527f6c6c3d276e6f6e65273e3c666f726569676e4f626a6563742077696474683d276063820152711a981813903432b4b3b43a1e939a9818139f60711b608382015260950191506129008287612466565b7f3c2f666f726569676e4f626a6563743e3c7374796c653e2a7b666f6e742d73698152753d329d1a98383c3e9e17b9ba3cb6329f1e17b9bb339f60511b60208201527f222c22616e696d6174696f6e5f75726c223a22646174613a746578742f68746d6036820152681b0ed8985cd94d8d0b60ba1b6056820152605f0191506129898286612466565b9150612994826127bb565b91506129a08285612749565b91506129ac8284612466565b61227d60f01b81529150600282015b98975050505050505050565b604081016129d58285611c3f565b611a1d6020830184611c3f565b805161041d81611ced565b600060208284031215612a0257612a02600080fd5b6000610f9284846129e2565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015291506122f5565b6020808252810161041d81612a0e565b602581526000602082017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081526437bbb732b960d91b602082015291506122f5565b6020808252810161041d81612a6d565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015291506122f5565b6020808252810161041d81612abf565b8181038181111561041d5761041d6121b4565b8082018082111561041d5761041d6121b4565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c6572000000000000008152915061213a565b6020808252810161041d81612b36565b6247425760e81b81526000600382015b9150612b968284611c89565b50602001919050565b6323a12ba960e11b815260005b5060040190565b6000612b8a82612b9f565b600082612bcd57612bcd612203565b500690565b6000612bde8285612466565b9150610f928284612466565b6000612bf8611e2384611dde565b905082815260208101848484011115612c1357612c13600080fd5b611e4e848285611ba6565b600082601f830112612c3257612c32600080fd5b8151610f92848260208601612bea565b600060208284031215612c5757612c57600080fd5b815167ffffffffffffffff811115612c7157612c71600080fd5b610f9284828501612c1e565b661e17b137b23c9f60c91b8152600061270d565b7f3c626f647920786d6c6e733d27687474703a2f2f7777772e77332e6f72672f318152711c9c9c97bc343a36b6139f1e39ba3cb6329f60711b60208201527f68746d6c2c626f64797b77696474683a313030253b6865696768743a3130302560328201527f3b6c696e652d6865696768743a313b6f766572666c6f773a68696464656e7d0060528201527f40666f6e742d66616365207b666f6e742d66616d696c793a27474257273b666f60718201527f6e742d646973706c61793a626c6f636b3b7372633a75726c2800000000000000609182015260aa016000612d768285612466565b722920666f726d61742827776f66663227293b7d60681b81527f2a7b70616464696e673a303b6d617267696e3a303b666f6e742d73697a653a3160138201527f3076683b666f6e742d7765696768743a3930303b666f6e742d66616d696c793a60338201527f27474257272c6d6f6e6f73706163653b626f782d73697a696e673a626f72646560538201527f722d626f787d2e777b6865696768743a3130253b77696474683a313030253b7d6073820152671e17b9ba3cb6329f60c11b6093820152609b019150612e478284612466565b9150610f9282612c7d565b60208082527f4552433732313a206d696e7420746f20746865207a65726f20616464726573739101908152600061213a565b6020808252810161041d81612e52565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e746564000000008152915061213a565b6020808252810161041d81612e94565b60808101612ee68287611c3f565b612ef36020830186611c3f565b612f006040830185611c89565b8181036060830152612f128184611bca565b9695505050505050565b805161041d81611acf565b600060208284031215612f3c57612f3c600080fd5b6000610f928484612f1c565b6247425760e81b81526003016000612f608285611c89565b602082019150612f708284611c89565b5060200192915050565b630d0e6d8560e31b81526000612bac565b692c313030252c3430252960b01b815260005b50600a0190565b6000612fb082612f7a565b9150612fbc8284612466565b9150611a1d82612f8b565b6000612b968284611c89565b692c313030252c3530252960b01b81526000612f9e565b6000612ff582612f7a565b91506130018284612466565b9150611a1d82612fd3565b711db130b1b5b3b937bab73216b1b7b637b91d60711b815260006127d6565b60006130378289612466565b7f3c64697620636c6173733d2777273e3c6d617271756565207374796c653d276381526437b637b91d60d91b602082015260250191506130778288612466565b91506130828261300c565b915061308e8287612466565b6f27207363726f6c6c616d6f756e743d2760801b815260100191506130b38286612466565b6c2720646972656374696f6e3d2760981b8152600d0191506130d58285612466565b6b27206265686176696f723d2760a01b8152600c0191506130f68284612466565b7f273e474f4f4442594520574f524c443c2f6d6172717565653e3c2f6469763e0081529150601f82016129bb565b7f3c646976207374796c653d276865696768743a313030253b77696474683a00008152601e0160006131568285612466565b6d129db33637b0ba1d3632b33a139f60911b8152600e0191506131798284612466565b651e17b234bb1f60d11b8152915060068201610f9256fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220a82abdac18e757389376f4d1c792dfa1ba3f22e39c5f6eaff4afe54d62c0ba0564736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000eb65382a2658cabec85ecbe88e3d3f09defa9594
-----Decoded View---------------
Arg [0] : _fontAddress (address): 0xeB65382a2658cABEC85ecBe88e3D3f09DEfa9594
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000eb65382a2658cabec85ecbe88e3d3f09defa9594
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.