Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
10,000 GOHIP
Holders
1,754
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
5 GOHIPLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GoblinHipsters
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
Yes with 10000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL 3.0 pragma solidity >=0.8.10 <0.9.0; import "@divergencetech/ethier/contracts/erc721/BaseTokenURI.sol"; import "@divergencetech/ethier/contracts/erc721/ERC721ACommon.sol"; import "@divergencetech/ethier/contracts/sales/FixedPriceSeller.sol"; import "@divergencetech/ethier/contracts/utils/Monotonic.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; interface ITokenURIGenerator { function tokenURI(uint256 tokenId) external view returns (string memory); } contract GoblinHipsters is ERC721ACommon, BaseTokenURI, FixedPriceSeller, ERC2981 { using Monotonic for Monotonic.Increaser; constructor( string memory name, string memory symbol, address payable beneficiary, address payable royaltyReceiver ) ERC721ACommon(name, symbol) BaseTokenURI("") FixedPriceSeller( 0.00 ether, Seller.SellerConfig({ totalInventory: 10000, lockTotalInventory: true, maxPerAddress: 5, maxPerTx: 5, freeQuota: 1000, lockFreeQuota: true, reserveFreeQuota: true }), beneficiary ) { _setDefaultRoyalty(royaltyReceiver, 750); } /** @dev Mint tokens purchased via the Seller. */ function _handlePurchase( address to, uint256 n, bool ) internal override { _safeMint(to, n); } /** @dev Required override to select the correct baseTokenURI. */ function _baseURI() internal view override(BaseTokenURI, ERC721A) returns (string memory) { return BaseTokenURI._baseURI(); } /** @notice Mint as a non-holder of PROOF tokens. */ function mint( address to, uint256 amount ) external payable { _purchase(to, amount); } /** @notice If set, contract to which tokenURI() calls are proxied. */ ITokenURIGenerator public renderingContract; /** @notice Sets the optional tokenURI override contract. */ function setRenderingContract(ITokenURIGenerator _contract) external onlyOwner { renderingContract = _contract; } /** @notice If renderingContract is set then returns its tokenURI(tokenId) return value, otherwise returns the standard baseTokenURI + tokenId. */ function tokenURI(uint256 tokenId) public view override returns (string memory) { if (address(renderingContract) != address(0)) { return renderingContract.tokenURI(tokenId); } return super.tokenURI(tokenId); } /** @notice Sets the contract-wide royalty info. */ function setRoyaltyInfo(address receiver, uint96 feeBasisPoints) external onlyOwner { _setDefaultRoyalty(receiver, feeBasisPoints); } function supportsInterface(bytes4 interfaceId) public view override(ERC721ACommon, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier) pragma solidity >=0.8.0 <0.9.0; import "@openzeppelin/contracts/access/Ownable.sol"; /** @notice ERC721 extension that overrides the OpenZeppelin _baseURI() function to return a prefix that can be set by the contract owner. */ contract BaseTokenURI is Ownable { /// @notice Base token URI used as a prefix by tokenURI(). string public baseTokenURI; constructor(string memory _baseTokenURI) { setBaseTokenURI(_baseTokenURI); } /// @notice Sets the base token URI prefix. function setBaseTokenURI(string memory _baseTokenURI) public onlyOwner { baseTokenURI = _baseTokenURI; } /** @notice Concatenates and returns the base token URI and the token ID without any additional characters (e.g. a slash). @dev This requires that an inheriting contract that also inherits from OZ's ERC721 will have to override both contracts; although we could simply require that users implement their own _baseURI() as here, this can easily be forgotten and the current approach guides them with compiler errors. This favours the latter half of "APIs should be easy to use and hard to misuse" from https://www.infoq.com/articles/API-Design-Joshua-Bloch/. */ function _baseURI() internal view virtual returns (string memory) { return baseTokenURI; } }
// SPDX-License-Identifier: MIT // Copyright (c) 2022 the ethier authors (github.com/divergencetech/ethier) pragma solidity >=0.8.0 <0.9.0; import "./ERC721APreApproval.sol"; import "../utils/OwnerPausable.sol"; /** @notice An ERC721A contract with common functionality: - OpenSea gas-free listings - Pausable with toggling functions exposed to Owner only */ contract ERC721ACommon is ERC721APreApproval, OwnerPausable { constructor(string memory name, string memory symbol) ERC721A(name, symbol) {} // solhint-disable-line no-empty-blocks /// @notice Requires that the token exists. modifier tokenExists(uint256 tokenId) { require(ERC721A._exists(tokenId), "ERC721ACommon: Token doesn't exist"); _; } /// @notice Requires that msg.sender owns or is approved for the token. modifier onlyApprovedOrOwner(uint256 tokenId) { require( _ownershipOf(tokenId).addr == _msgSender() || getApproved(tokenId) == _msgSender(), "ERC721ACommon: Not approved nor owner" ); _; } function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual override { require(!paused(), "ERC721ACommon: paused"); super._beforeTokenTransfers(from, to, startTokenId, quantity); } /// @notice Overrides supportsInterface as required by inheritance. function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier) pragma solidity >=0.8.0 <0.9.0; import "./Seller.sol"; /// @notice A Seller with fixed per-item price. abstract contract FixedPriceSeller is Seller { constructor( uint256 _price, Seller.SellerConfig memory sellerConfig, address payable _beneficiary ) Seller(sellerConfig, _beneficiary) { setPrice(_price); } /** @notice The fixed per-item price. @dev Fixed as in not changing with time nor number of items, but not a constant. */ uint256 public price; /// @notice Sets the per-item price. function setPrice(uint256 _price) public onlyOwner { price = _price; } /** @notice Override of Seller.cost() with fixed price. @dev The second parameter, metadata propagated from the call to _purchase(), is ignored. */ function cost(uint256 n, uint256) public view override returns (uint256) { return n * price; } }
// SPDX-License-Identifier: MIT // Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier) pragma solidity >=0.8.0 <0.9.0; /** @notice Provides monotonic increasing and decreasing values, similar to OpenZeppelin's Counter but (a) limited in direction, and (b) allowing for steps > 1. */ library Monotonic { /** @notice Holds a value that can only increase. @dev The internal value MUST NOT be accessed directly. Instead use current() and add(). */ struct Increaser { uint256 value; } /// @notice Returns the current value of the Increaser. function current(Increaser storage incr) internal view returns (uint256) { return incr.value; } /// @notice Adds x to the Increaser's value. function add(Increaser storage incr, uint256 x) internal { incr.value += x; } /** @notice Holds a value that can only decrease. @dev The internal value MUST NOT be accessed directly. Instead use current() and subtract(). */ struct Decreaser { uint256 value; } /// @notice Returns the current value of the Decreaser. function current(Decreaser storage decr) internal view returns (uint256) { return decr.value; } /// @notice Subtracts x from the Decreaser's value. function subtract(Decreaser storage decr, uint256 x) internal { decr.value -= x; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.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: * * - `tokenId` must be already minted. * - `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 v4.4.1 (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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _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 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 // Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier) pragma solidity >=0.8.0 <0.9.0; import "../thirdparty/opensea/OpenSeaGasFreeListing.sol"; import "erc721a/contracts/ERC721A.sol"; /// @notice Pre-approval of OpenSea proxies for gas-less listing /// @dev This wrapper allows users to revoke the pre-approval of their /// associated proxy and emits the corresponding events. This is necessary for /// external tools to index approvals correctly and inform the user. /// @dev The pre-approval is triggered on a per-wallet basis during the first /// transfer transactions. It will only be enabled for wallets with an existing /// proxy. Not having a proxy incurs a gas overhead. /// @dev This wrapper optimizes for the following scenario: /// - The majority of users already have a wyvern proxy /// - Most of them want to transfer tokens via wyvern exchanges abstract contract ERC721APreApproval is ERC721A { /// @dev It is important that Active remains at first position, since this /// is the scenario that we are trying to optimize for. enum State { Active, Inactive } /// @notice The state of the pre-approval for a given owner mapping(address => State) private state; /// @dev Returns true if either standard `isApprovedForAll()` or if the /// `operator` is the OpenSea proxy for the `owner` provided the /// pre-approval is active. function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { if (super.isApprovedForAll(owner, operator)) { return true; } return state[owner] == State.Active && OpenSeaGasFreeListing.isApprovedForAll(owner, operator); } /// @dev Uses the standard `setApprovalForAll` or toggles the pre-approval /// state if `operator` is the OpenSea proxy for the sender. function setApprovalForAll(address operator, bool approved) public virtual override { address owner = _msgSender(); if (operator == OpenSeaGasFreeListing.proxyFor(owner)) { state[owner] = approved ? State.Active : State.Inactive; emit ApprovalForAll(owner, operator, approved); } else { super.setApprovalForAll(operator, approved); } } /// @dev Checks if the receiver has an existing proxy. If not, the /// pre-approval is disabled. function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual override { super._beforeTokenTransfers(from, to, startTokenId, quantity); // Exclude burns and inactive pre-approvals if (to == address(0) || state[to] == State.Inactive) { return; } address operator = OpenSeaGasFreeListing.proxyFor(to); // Disable if `to` has no proxy if (operator == address(0)) { state[to] = State.Inactive; return; } // Avoid emitting unnecessary events. if (balanceOf(to) == 0) { emit ApprovalForAll(to, operator, true); } } }
// SPDX-License-Identifier: MIT // Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier) pragma solidity >=0.8.0 <0.9.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; /// @notice A Pausable contract that can only be toggled by the Owner. contract OwnerPausable is Ownable, Pausable { /// @notice Pauses the contract. function pause() public onlyOwner { Pausable._pause(); } /// @notice Unpauses the contract. function unpause() public onlyOwner { Pausable._unpause(); } }
// SPDX-License-Identifier: MIT // Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier) pragma solidity >=0.8.0 <0.9.0; // Inspired by BaseOpenSea by Simon Fremaux (@dievardump) but without the need // to pass specific addresses depending on deployment network. // https://gist.github.com/dievardump/483eb43bc6ed30b14f01e01842e3339b/ import "./ProxyRegistry.sol"; /// @notice Library to achieve gas-free listings on OpenSea. library OpenSeaGasFreeListing { /** @notice Returns whether the operator is an OpenSea proxy for the owner, thus allowing it to list without the token owner paying gas. @dev ERC{721,1155}.isApprovedForAll should be overriden to also check if this function returns true. */ function isApprovedForAll(address owner, address operator) internal view returns (bool) { address proxy = proxyFor(owner); return proxy != address(0) && proxy == operator; } /** @notice Returns the OpenSea proxy address for the owner. */ function proxyFor(address owner) internal view returns (address) { address registry; uint256 chainId; assembly { chainId := chainid() switch chainId // Production networks are placed higher to minimise the number of // checks performed and therefore reduce gas. By the same rationale, // mainnet comes before Polygon as it's more expensive. case 1 { // mainnet registry := 0xa5409ec958c83c3f309868babaca7c86dcb077c1 } case 137 { // polygon registry := 0x58807baD0B376efc12F5AD86aAc70E78ed67deaE } case 4 { // rinkeby registry := 0xf57b2c51ded3a29e6891aba85459d600256cf317 } case 80001 { // mumbai registry := 0xff7Ca10aF37178BdD056628eF42fD7F799fAc77c } case 1337 { // The geth SimulatedBackend iff used with the ethier // openseatest package. This is mocked as a Wyvern proxy as it's // more complex than the 0x ones. registry := 0xE1a2bbc877b29ADBC56D2659DBcb0ae14ee62071 } } // Unlike Wyvern, the registry itself is the proxy for all owners on 0x // chains. if (registry == address(0) || chainId == 137 || chainId == 80001) { return registry; } return address(ProxyRegistry(registry).proxies(owner)); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721A { using Address for address; using Strings for uint256; // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // 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; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @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 override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @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) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner) if(!isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _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 { _transfer(from, to, tokenId); if (to.isContract()) if(!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * 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, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier) pragma solidity >=0.8.0 <0.9.0; /// @notice A minimal interface describing OpenSea's Wyvern proxy registry. contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } /** @dev This pattern of using an empty contract is cargo-culted directly from OpenSea's example code. TODO: it's likely that the above mapping can be changed to address => address without affecting anything, but further investigation is needed (i.e. is there a subtle reason that OpenSea released it like this?). */ // solhint-disable-next-line no-empty-blocks contract OwnableDelegateProxy { }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A is IERC721, IERC721Metadata { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); }
// 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.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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 (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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 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 v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier) pragma solidity >=0.8.0 <0.9.0; import "../utils/Monotonic.sol"; import "../utils/OwnerPausable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/math/Math.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; /** @notice An abstract contract providing the _purchase() function to: - Enforce per-wallet / per-transaction limits - Calculate required cost, forwarding to a beneficiary, and refunding extra */ abstract contract Seller is OwnerPausable, ReentrancyGuard { using Address for address payable; using Monotonic for Monotonic.Increaser; using Strings for uint256; /** @dev Note that the address limits are vulnerable to wallet farming. @param maxPerAddress Unlimited if zero. @param maxPerTex Unlimited if zero. @param freeQuota Maximum number that can be purchased free of charge by the contract owner. @param reserveFreeQuota Whether to excplitly reserve the freeQuota amount and not let it be eroded by regular purchases. @param lockFreeQuota If true, calls to setSellerConfig() will ignore changes to freeQuota. Can be locked after initial setting, but not unlocked. This allows a contract owner to commit to a maximum number of reserved items. @param lockTotalInventory Similar to lockFreeQuota but applied to totalInventory. */ struct SellerConfig { uint256 totalInventory; uint256 maxPerAddress; uint256 maxPerTx; uint248 freeQuota; bool reserveFreeQuota; bool lockFreeQuota; bool lockTotalInventory; } constructor(SellerConfig memory config, address payable _beneficiary) { setSellerConfig(config); setBeneficiary(_beneficiary); } /// @notice Configuration of purchase limits. SellerConfig public sellerConfig; /// @notice Sets the seller config. function setSellerConfig(SellerConfig memory config) public onlyOwner { require( config.totalInventory >= config.freeQuota, "Seller: excessive free quota" ); require( config.totalInventory >= _totalSold.current(), "Seller: inventory < already sold" ); require( config.freeQuota >= purchasedFreeOfCharge.current(), "Seller: free quota < already used" ); // Overriding the in-memory fields before copying the whole struct, as // against writing individual fields, gives a greater guarantee of // correctness as the code is simpler to read. if (sellerConfig.lockTotalInventory) { config.lockTotalInventory = true; config.totalInventory = sellerConfig.totalInventory; } if (sellerConfig.lockFreeQuota) { config.lockFreeQuota = true; config.freeQuota = sellerConfig.freeQuota; } sellerConfig = config; } /// @notice Recipient of revenues. address payable public beneficiary; /// @notice Sets the recipient of revenues. function setBeneficiary(address payable _beneficiary) public onlyOwner { beneficiary = _beneficiary; } /** @dev Must return the current cost of a batch of items. This may be constant or, for example, decreasing for a Dutch auction or increasing for a bonding curve. @param n The number of items being purchased. @param metadata Arbitrary data, propagated by the call to _purchase() that can be used to charge different prices. This value is a uint256 instead of bytes as this allows simple passing of a set cost (see ArbitraryPriceSeller). */ function cost(uint256 n, uint256 metadata) public view virtual returns (uint256); /** @dev Called by both _purchase() and purchaseFreeOfCharge() after all limits have been put in place; must perform all contract-specific sale logic, e.g. ERC721 minting. When _handlePurchase() is called, the value returned by Seller.totalSold() will be the pre-purchase amount. @param to The recipient of the item(s). @param n The number of items allowed to be purchased, which MAY be less than to the number passed to _purchase() but SHALL be greater than zero. @param freeOfCharge Indicates that the call originated from purchaseFreeOfCharge() and not _purchase(). */ function _handlePurchase( address to, uint256 n, bool freeOfCharge ) internal virtual; /** @notice Tracks total number of items sold by this contract, including those purchased free of charge by the contract owner. */ Monotonic.Increaser private _totalSold; /// @notice Returns the total number of items sold by this contract. function totalSold() public view returns (uint256) { return _totalSold.current(); } /** @notice Tracks the number of items already bought by an address, regardless of transferring out (in the case of ERC721). @dev This isn't public as it may be skewed due to differences in msg.sender and tx.origin, which it treats in the same way such that sum(_bought)>=totalSold(). */ mapping(address => uint256) private _bought; /** @notice Returns min(n, max(extra items addr can purchase)) and reverts if 0. @param zeroMsg The message with which to revert on 0 extra. */ function _capExtra( uint256 n, address addr, string memory zeroMsg ) internal view returns (uint256) { uint256 extra = sellerConfig.maxPerAddress - _bought[addr]; if (extra == 0) { revert(string(abi.encodePacked("Seller: ", zeroMsg))); } return Math.min(n, extra); } /// @notice Emitted when a buyer is refunded. event Refund(address indexed buyer, uint256 amount); /// @notice Emitted on all purchases of non-zero amount. event Revenue( address indexed beneficiary, uint256 numPurchased, uint256 amount ); /// @notice Tracks number of items purchased free of charge. Monotonic.Increaser private purchasedFreeOfCharge; /** @notice Allows the contract owner to purchase without payment, within the quota enforced by the SellerConfig. */ function purchaseFreeOfCharge(address to, uint256 n) public onlyOwner whenNotPaused { uint256 freeQuota = sellerConfig.freeQuota; n = Math.min(n, freeQuota - purchasedFreeOfCharge.current()); require(n > 0, "Seller: Free quota exceeded"); uint256 totalInventory = sellerConfig.totalInventory; n = Math.min(n, totalInventory - _totalSold.current()); require(n > 0, "Seller: Sold out"); _handlePurchase(to, n, true); _totalSold.add(n); purchasedFreeOfCharge.add(n); assert(_totalSold.current() <= totalInventory); assert(purchasedFreeOfCharge.current() <= freeQuota); } /** @notice Convenience function for calling _purchase() with empty costMetadata when unneeded. */ function _purchase(address to, uint256 requested) internal virtual { _purchase(to, requested, 0); } /** @notice Enforces all purchase limits (counts and costs) before calling _handlePurchase(), after which the received funds are disbursed to the beneficiary, less any required refunds. @param to The final recipient of the item(s). @param requested The number of items requested for purchase, which MAY be reduced when passed to _handlePurchase(). @param costMetadata Arbitrary data, propagated in the call to cost(), to be optionally used in determining the price. */ function _purchase( address to, uint256 requested, uint256 costMetadata ) internal nonReentrant whenNotPaused { /** * ##### CHECKS */ SellerConfig memory config = sellerConfig; uint256 n = config.maxPerTx == 0 ? requested : Math.min(requested, config.maxPerTx); uint256 maxAvailable; uint256 sold; if (config.reserveFreeQuota) { maxAvailable = config.totalInventory - config.freeQuota; sold = _totalSold.current() - purchasedFreeOfCharge.current(); } else { maxAvailable = config.totalInventory; sold = _totalSold.current(); } n = Math.min(n, maxAvailable - sold); require(n > 0, "Seller: Sold out"); if (config.maxPerAddress > 0) { bool alsoLimitSender = _msgSender() != to; // solhint-disable-next-line avoid-tx-origin bool alsoLimitOrigin = tx.origin != _msgSender() && tx.origin != to; n = _capExtra(n, to, "Buyer limit"); if (alsoLimitSender) { n = _capExtra(n, _msgSender(), "Sender limit"); } if (alsoLimitOrigin) { // solhint-disable-next-line avoid-tx-origin n = _capExtra(n, tx.origin, "Origin limit"); } _bought[to] += n; if (alsoLimitSender) { _bought[_msgSender()] += n; } if (alsoLimitOrigin) { // solhint-disable-next-line avoid-tx-origin _bought[tx.origin] += n; } } uint256 _cost = cost(n, costMetadata); if (msg.value < _cost) { revert( string( abi.encodePacked( "Seller: Costs ", (_cost / 1e9).toString(), " GWei" ) ) ); } /** * ##### EFFECTS */ _handlePurchase(to, n, false); _totalSold.add(n); assert(_totalSold.current() <= config.totalInventory); /** * ##### INTERACTIONS */ // Ideally we'd be using a PullPayment here, but the user experience is // poor when there's a variable cost or the number of items purchased // has been capped. We've addressed reentrancy with both a nonReentrant // modifier and the checks, effects, interactions pattern. if (_cost > 0) { beneficiary.sendValue(_cost); emit Revenue(beneficiary, n, _cost); } if (msg.value > _cost) { address payable reimburse = payable(_msgSender()); uint256 refund = msg.value - _cost; // Using Address.sendValue() here would mask the revertMsg upon // reentrancy, but we want to expose it to allow for more precise // testing. This otherwise uses the exact same pattern as // Address.sendValue(). // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returnData) = reimburse.call{ value: refund }(""); // Although `returnData` will have a spurious prefix, all we really // care about is that it contains the ReentrancyGuard reversion // message so we can check in the tests. require(success, string(returnData)); emit Refund(reimburse, refund); } } }
// 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.5.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } }
// 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); }
{ "optimizer": { "enabled": true, "runs": 10000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address payable","name":"beneficiary","type":"address"},{"internalType":"address payable","name":"royaltyReceiver","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Refund","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"numPurchased","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Revenue","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beneficiary","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"n","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"n","type":"uint256"}],"name":"purchaseFreeOfCharge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renderingContract","outputs":[{"internalType":"contract ITokenURIGenerator","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","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":[],"name":"sellerConfig","outputs":[{"internalType":"uint256","name":"totalInventory","type":"uint256"},{"internalType":"uint256","name":"maxPerAddress","type":"uint256"},{"internalType":"uint256","name":"maxPerTx","type":"uint256"},{"internalType":"uint248","name":"freeQuota","type":"uint248"},{"internalType":"bool","name":"reserveFreeQuota","type":"bool"},{"internalType":"bool","name":"lockFreeQuota","type":"bool"},{"internalType":"bool","name":"lockTotalInventory","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_beneficiary","type":"address"}],"name":"setBeneficiary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ITokenURIGenerator","name":"_contract","type":"address"}],"name":"setRenderingContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeBasisPoints","type":"uint96"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"totalInventory","type":"uint256"},{"internalType":"uint256","name":"maxPerAddress","type":"uint256"},{"internalType":"uint256","name":"maxPerTx","type":"uint256"},{"internalType":"uint248","name":"freeQuota","type":"uint248"},{"internalType":"bool","name":"reserveFreeQuota","type":"bool"},{"internalType":"bool","name":"lockFreeQuota","type":"bool"},{"internalType":"bool","name":"lockTotalInventory","type":"bool"}],"internalType":"struct Seller.SellerConfig","name":"config","type":"tuple"}],"name":"setSellerConfig","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":"totalSold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200440a3803806200440a833981016040819052620000349162000788565b60006040518060e00160405280612710815260200160058152602001600581526020016103e86001600160f81b031681526020016001151581526020016001151581526020016001151581525083818160405180602001604052806000815250898981818160029080519060200190620000b0929190620005f8565b508051620000c6906003906020840190620005f8565b50506000805550620000d8336200013d565b50506009805460ff60a01b19169055620000f2816200018f565b506001600b556200010382620001f7565b6200010e8162000436565b506200011c905083620004a3565b50505062000133816102ee620004f360201b60201c565b5050505062000854565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6009546001600160a01b03163314620001de5760405162461bcd60e51b81526020600482018190526024820152600080516020620043ea83398151915260448201526064015b60405180910390fd5b8051620001f390600a906020840190620005f8565b5050565b6009546001600160a01b03163314620002425760405162461bcd60e51b81526020600482018190526024820152600080516020620043ea8339815191526044820152606401620001d5565b80606001516001600160f81b031681600001511015620002a55760405162461bcd60e51b815260206004820152601c60248201527f53656c6c65723a2065786365737369766520667265652071756f7461000000006044820152606401620001d5565b620002bc6012620005f460201b620017641760201c565b815110156200030e5760405162461bcd60e51b815260206004820181905260248201527f53656c6c65723a20696e76656e746f7279203c20616c726561647920736f6c646044820152606401620001d5565b620003256014620005f460201b620017641760201c565b81606001516001600160f81b031610156200038d5760405162461bcd60e51b815260206004820152602160248201527f53656c6c65723a20667265652071756f7461203c20616c7265616479207573656044820152601960fa1b6064820152608401620001d5565b601054610100900460ff1615620003ab57600160c0820152600c5481525b60105460ff1615620003d057600160a0820152600f546001600160f81b031660608201525b8051600c556020810151600d556040810151600e55606081015160808201511515600160f81b026001600160f81b0390911617600f5560a08101516010805460c09093015115156101000261ff00199215159290921661ffff1990931692909217179055565b6009546001600160a01b03163314620004815760405162461bcd60e51b81526020600482018190526024820152600080516020620043ea8339815191526044820152606401620001d5565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b6009546001600160a01b03163314620004ee5760405162461bcd60e51b81526020600482018190526024820152600080516020620043ea8339815191526044820152606401620001d5565b601555565b6127106001600160601b0382161115620005635760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401620001d5565b6001600160a01b038216620005bb5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620001d5565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217601655565b5490565b828054620006069062000817565b90600052602060002090601f0160209004810192826200062a576000855562000675565b82601f106200064557805160ff191683800117855562000675565b8280016001018555821562000675579182015b828111156200067557825182559160200191906001019062000658565b506200068392915062000687565b5090565b5b8082111562000683576000815560010162000688565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620006c657600080fd5b81516001600160401b0380821115620006e357620006e36200069e565b604051601f8301601f19908116603f011681019082821181831017156200070e576200070e6200069e565b816040528381526020925086838588010111156200072b57600080fd5b600091505b838210156200074f578582018301518183018401529082019062000730565b83821115620007615760008385830101525b9695505050505050565b80516001600160a01b03811681146200078357600080fd5b919050565b600080600080608085870312156200079f57600080fd5b84516001600160401b0380821115620007b757600080fd5b620007c588838901620006b4565b95506020870151915080821115620007dc57600080fd5b50620007eb87828801620006b4565b935050620007fc604086016200076b565b91506200080c606086016200076b565b905092959194509250565b600181811c908216806200082c57607f821691505b602082108114156200084e57634e487b7160e01b600052602260045260246000fd5b50919050565b613b8680620008646000396000f3fe60806040526004361061024f5760003560e01c806370a0823111610138578063b7f1d072116100b0578063c7fecbcc1161007f578063d547cfb711610064578063d547cfb71461073e578063e985e9c514610753578063f2fde38b1461077357600080fd5b8063c7fecbcc146106fe578063c87b56dd1461071e57600080fd5b8063b7f1d072146105c7578063b88d4fde146105e7578063bb69b7ef14610607578063bf62e21d146106de57600080fd5b80639106d7ba1161010757806395d89b41116100ec57806395d89b411461057c578063a035b1fe14610591578063a22cb465146105a757600080fd5b80639106d7ba1461054757806391b7f5ed1461055c57600080fd5b806370a08231146104df578063715018a6146104ff5780638456cb59146105145780638da5cb5b1461052957600080fd5b80632f274bd4116101cb5780633f4ba83a1161019a57806342842e0e1161017f57806342842e0e1461046f5780635c975abb1461048f5780636352211e146104bf57600080fd5b80633f4ba83a1461044757806340c10f191461045c57600080fd5b80632f274bd4146103c757806330176e13146103e757806338af3eed146104075780633ec02e141461042757600080fd5b8063095ea7b3116102225780631c31f710116102075780631c31f7101461034857806323b872dd146103685780632a55205a1461038857600080fd5b8063095ea7b31461030557806318160ddd1461032557600080fd5b806301ffc9a71461025457806302fa7c471461028957806306fdde03146102ab578063081812fc146102cd575b600080fd5b34801561026057600080fd5b5061027461026f366004613301565b610793565b60405190151581526020015b60405180910390f35b34801561029557600080fd5b506102a96102a4366004613333565b6107a4565b005b3480156102b757600080fd5b506102c0610811565b60405161028091906133d5565b3480156102d957600080fd5b506102ed6102e83660046133e8565b6108a3565b6040516001600160a01b039091168152602001610280565b34801561031157600080fd5b506102a9610320366004613401565b610900565b34801561033157600080fd5b50600154600054035b604051908152602001610280565b34801561035457600080fd5b506102a961036336600461342d565b6109b9565b34801561037457600080fd5b506102a961038336600461344a565b610a4d565b34801561039457600080fd5b506103a86103a336600461348b565b610a58565b604080516001600160a01b039093168352602083019190915201610280565b3480156103d357600080fd5b506102a96103e236600461354b565b610b35565b3480156103f357600080fd5b506102a9610402366004613654565b610e25565b34801561041357600080fd5b506011546102ed906001600160a01b031681565b34801561043357600080fd5b5061033a61044236600461348b565b610e92565b34801561045357600080fd5b506102a9610ea9565b6102a961046a366004613401565b610f0d565b34801561047b57600080fd5b506102a961048a36600461344a565b610f17565b34801561049b57600080fd5b5060095474010000000000000000000000000000000000000000900460ff16610274565b3480156104cb57600080fd5b506102ed6104da3660046133e8565b610f32565b3480156104eb57600080fd5b5061033a6104fa36600461342d565b610f44565b34801561050b57600080fd5b506102a9610fac565b34801561052057600080fd5b506102a9611010565b34801561053557600080fd5b506009546001600160a01b03166102ed565b34801561055357600080fd5b5061033a611072565b34801561056857600080fd5b506102a96105773660046133e8565b611082565b34801561058857600080fd5b506102c06110e1565b34801561059d57600080fd5b5061033a60155481565b3480156105b357600080fd5b506102a96105c236600461369d565b6110f0565b3480156105d357600080fd5b506102a96105e236600461342d565b6111d4565b3480156105f357600080fd5b506102a96106023660046136d2565b611268565b34801561061357600080fd5b50600c54600d54600e54600f54601054610683949392917effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81169160ff7f01000000000000000000000000000000000000000000000000000000000000009092048216918181169161010090041687565b604080519788526020880196909652948601939093527effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff909116606085015215156080840152151560a0830152151560c082015260e001610280565b3480156106ea57600080fd5b506102a96106f9366004613401565b6112cb565b34801561070a57600080fd5b506018546102ed906001600160a01b031681565b34801561072a57600080fd5b506102c06107393660046133e8565b6114d6565b34801561074a57600080fd5b506102c061157d565b34801561075f57600080fd5b5061027461076e366004613752565b61160b565b34801561077f57600080fd5b506102a961078e36600461342d565b611682565b600061079e82611768565b92915050565b6009546001600160a01b031633146108035760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b61080d82826117be565b5050565b60606002805461082090613780565b80601f016020809104026020016040519081016040528092919081815260200182805461084c90613780565b80156108995780601f1061086e57610100808354040283529160200191610899565b820191906000526020600020905b81548152906001019060200180831161087c57829003601f168201915b5050505050905090565b60006108ae826118e9565b6108e4576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061090b82610f32565b9050806001600160a01b0316836001600160a01b03161415610959576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b038216146109a957610973813361160b565b6109a9576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109b483838361192d565b505050565b6009546001600160a01b03163314610a135760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fa565b601180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6109b48383836119a1565b60008281526017602090815260408083208151808301909252546001600160a01b038116808352740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff16928201929092528291610af95750604080518082019091526016546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1660208201525b602081015160009061271090610b1d906bffffffffffffffffffffffff1687613803565b610b27919061386f565b915196919550909350505050565b6009546001600160a01b03163314610b8f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fa565b80606001517effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1681600001511015610c085760405162461bcd60e51b815260206004820152601c60248201527f53656c6c65723a2065786365737369766520667265652071756f74610000000060448201526064016107fa565b60125481511015610c5b5760405162461bcd60e51b815260206004820181905260248201527f53656c6c65723a20696e76656e746f7279203c20616c726561647920736f6c6460448201526064016107fa565b60145481606001517effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff161015610cf85760405162461bcd60e51b815260206004820152602160248201527f53656c6c65723a20667265652071756f7461203c20616c72656164792075736560448201527f640000000000000000000000000000000000000000000000000000000000000060648201526084016107fa565b601054610100900460ff1615610d1557600160c0820152600c5481525b60105460ff1615610d5157600160a0820152600f547effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1660608201525b8051600c556020810151600d556040810151600e556060810151608082015115157f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90911617600f5560a08101516010805460c0909301511515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff921515929092167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000090931692909217179055565b6009546001600160a01b03163314610e7f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fa565b805161080d90600a90602084019061323a565b600060155483610ea29190613803565b9392505050565b6009546001600160a01b03163314610f035760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fa565b610f0b611c71565b565b61080d8282611d43565b6109b483838360405180602001604052806000815250611268565b6000610f3d82611d4f565b5192915050565b60006001600160a01b038216610f86576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6009546001600160a01b031633146110065760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fa565b610f0b6000611ef6565b6009546001600160a01b0316331461106a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fa565b610f0b611f60565b600061107d60125490565b905090565b6009546001600160a01b031633146110dc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fa565b601555565b60606003805461082090613780565b336110fa81612032565b6001600160a01b0316836001600160a01b031614156111ca578161111f576001611122565b60005b6001600160a01b038216600090815260086020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001838181111561117157611171613883565b0217905550826001600160a01b0316816001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31846040516111bd911515815260200190565b60405180910390a3505050565b6109b483836121aa565b6009546001600160a01b0316331461122e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fa565b601880547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6112738484846119a1565b6001600160a01b0383163b156112c55761128f84848484612277565b6112c5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6009546001600160a01b031633146113255760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fa565b60095474010000000000000000000000000000000000000000900460ff16156113905760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016107fa565b600f547effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff166113d0826113c160145490565b6113cb90846138b2565b6123c2565b9150600082116114225760405162461bcd60e51b815260206004820152601b60248201527f53656c6c65723a20467265652071756f7461206578636565646564000000000060448201526064016107fa565b600c54611432836113c160125490565b9250600083116114845760405162461bcd60e51b815260206004820152601060248201527f53656c6c65723a20536f6c64206f75740000000000000000000000000000000060448201526064016107fa565b611490848460016123d8565b61149b6012846123e2565b6114a66014846123e2565b806114b060125490565b11156114be576114be6138c9565b816114c860145490565b11156112c5576112c56138c9565b6018546060906001600160a01b031615611574576018546040517fc87b56dd000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b039091169063c87b56dd90602401600060405180830381865afa15801561154c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261079e91908101906138f8565b61079e826123ff565b600a805461158a90613780565b80601f01602080910402602001604051908101604052809291908181526020018280546115b690613780565b80156116035780601f106115d857610100808354040283529160200191611603565b820191906000526020600020905b8154815290600101906020018083116115e657829003601f168201915b505050505081565b6001600160a01b03808316600090815260076020908152604080832093851683529290529081205460ff16156116435750600161079e565b6001600160a01b03831660009081526008602052604081205460ff16600181111561167057611670613883565b148015610ea25750610ea2838361249c565b6009546001600160a01b031633146116dc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fa565b6001600160a01b0381166117585760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107fa565b61176181611ef6565b50565b5490565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a00000000000000000000000000000000000000000000000000000000148061079e575061079e826124da565b6127106bffffffffffffffffffffffff821611156118445760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c6550726963650000000000000000000000000000000000000000000060648201526084016107fa565b6001600160a01b03821661189a5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016107fa565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff90911660209092018290527401000000000000000000000000000000000000000090910217601655565b600080548210801561079e5750506000908152600460205260409020547c0100000000000000000000000000000000000000000000000000000000900460ff161590565b60008281526006602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006119ac82611d4f565b9050836001600160a01b031681600001516001600160a01b0316146119fd576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b0386161480611a1b5750611a1b853361160b565b80611a36575033611a2b846108a3565b6001600160a01b0316145b905080611a6f576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416611aaf576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611abc85858560016124e5565b611ac86000848761192d565b6001600160a01b03858116600090815260056020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000080821667ffffffffffffffff9283167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080547fffffffff00000000000000000000000000000000000000000000000000000000169094177401000000000000000000000000000000000000000042909216919091021783558701808452922080549193909116611c25576000548214611c25578054602086015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff000000000000000000000000000000000000000000000000000000009091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b60095474010000000000000000000000000000000000000000900460ff16611cdb5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016107fa565b600980547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b61080d8282600061255c565b604080516060810182526000808252602082018190529181019190915281600054811015611ec457600081815260046020908152604091829020825160608101845290546001600160a01b038116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff16151591810182905290611ec25780516001600160a01b031615611e10579392505050565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01600081815260046020908152604091829020825160608101845290546001600160a01b03811680835274010000000000000000000000000000000000000000820467ffffffffffffffff16938301939093527c0100000000000000000000000000000000000000000000000000000000900460ff1615159281019290925215611ebd579392505050565b611e10565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600980546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60095474010000000000000000000000000000000000000000900460ff1615611fcb5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016107fa565b600980547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611d263390565b6000804680600181146120675760898114612083576004811461209f576201388181146120bb5761053981146120d7576120ef565b73a5409ec958c83c3f309868babaca7c86dcb077c192506120ef565b7358807bad0b376efc12f5ad86aac70e78ed67deae92506120ef565b73f57b2c51ded3a29e6891aba85459d600256cf31792506120ef565b73ff7ca10af37178bdd056628ef42fd7f799fac77c92506120ef565b73e1a2bbc877b29adbc56d2659dbcb0ae14ee6207192505b506001600160a01b03821615806121065750806089145b8061211357508062013881145b1561211f575092915050565b6040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b03858116600483015283169063c455279190602401602060405180830381865afa15801561217e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121a29190613966565b949350505050565b6001600160a01b0382163314156121ed576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a02906122c5903390899088908890600401613983565b6020604051808303816000875af1925050508015612300575060408051601f3d908101601f191682019092526122fd918101906139bf565b60015b612374573d80801561232e576040519150601f19603f3d011682016040523d82523d6000602084013e612333565b606091505b50805161236c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050949350505050565b60008183106123d15781610ea2565b5090919050565b6109b48383612b08565b808260000160008282546123f691906139dc565b90915550505050565b606061240a826118e9565b612440576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061244a612b22565b905080516000141561246b5760405180602001604052806000815250610ea2565b8061247584612b2c565b6040516020016124869291906139f4565b6040516020818303038152906040529392505050565b6000806124a884612032565b90506001600160a01b038116158015906121a25750826001600160a01b0316816001600160a01b031614949350505050565b600061079e82612c5e565b60095474010000000000000000000000000000000000000000900460ff16156125505760405162461bcd60e51b815260206004820152601560248201527f45524337323141436f6d6d6f6e3a20706175736564000000000000000000000060448201526064016107fa565b6112c584848484612d41565b6002600b5414156125af5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107fa565b6002600b5560095474010000000000000000000000000000000000000000900460ff161561261f5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016107fa565b6040805160e081018252600c548152600d546020820152600e54918101829052600f547effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8116606083015260ff7f0100000000000000000000000000000000000000000000000000000000000000909104811615156080830152601054808216151560a0840152610100900416151560c082015290600090156126ce576126c98483604001516123c2565b6126d0565b835b90506000808360800151156127305760608401518451612711917effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16906138b2565b915061271c60145490565b60125461272991906138b2565b9050612740565b8351915061273d60125490565b90505b61274e836113cb83856138b2565b9250600083116127a05760405162461bcd60e51b815260206004820152601060248201527f53656c6c65723a20536f6c64206f75740000000000000000000000000000000060448201526064016107fa565b60208401511561293057336001600160a01b0388168114159060009032148015906127d45750326001600160a01b038a1614155b9050612816858a6040518060400160405280600b81526020017f4275796572206c696d6974000000000000000000000000000000000000000000815250612e53565b945081156128615761285e85336040518060400160405280600c81526020017f53656e646572206c696d69740000000000000000000000000000000000000000815250612e53565b94505b80156128aa576128a785326040518060400160405280600c81526020017f4f726967696e206c696d69740000000000000000000000000000000000000000815250612e53565b94505b6001600160a01b038916600090815260136020526040812080548792906128d29084906139dc565b909155505081156129025733600090815260136020526040812080548792906128fc9084906139dc565b90915550505b801561292d5732600090815260136020526040812080548792906129279084906139dc565b90915550505b50505b600061293c8487610e92565b9050803410156129925761295c612957633b9aca008361386f565b612b2c565b60405160200161296c9190613a23565b60408051601f198184030181529082905262461bcd60e51b82526107fa916004016133d5565b61299e888560006123d8565b6129a96012856123e2565b845160125411156129bc576129bc6138c9565b8015612a21576011546129d8906001600160a01b031682612ea5565b60115460408051868152602081018490526001600160a01b03909216917f01f51b99bd1c3cca301836178e5dee13aadfe44eff06dc3ddcbf3c9d058454f8910160405180910390a25b80341115612af957336000612a3683346138b2565b9050600080836001600160a01b03168360405160006040518083038185875af1925050503d8060008114612a86576040519150601f19603f3d011682016040523d82523d6000602084013e612a8b565b606091505b5091509150818190612ab05760405162461bcd60e51b81526004016107fa91906133d5565b50836001600160a01b03167fbb28353e4598c3b9199101a66e0989549b659a59a54d2c27fbb183f1932c8e6d84604051612aec91815260200190565b60405180910390a2505050505b50506001600b55505050505050565b61080d828260405180602001604052806000815250612fbe565b606061107d61322b565b606081612b6c57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612b965780612b8081613a8f565b9150612b8f9050600a8361386f565b9150612b70565b60008167ffffffffffffffff811115612bb157612bb16134ad565b6040519080825280601f01601f191660200182016040528015612bdb576020820181803683370190505b5090505b84156121a257612bf06001836138b2565b9150612bfd600a86613ac8565b612c089060306139dc565b60f81b818381518110612c1d57612c1d613adc565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612c57600a8661386f565b9450612bdf565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480612cf157507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061079e57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083161461079e565b6001600160a01b0383161580612d83575060016001600160a01b03841660009081526008602052604090205460ff166001811115612d8157612d81613883565b145b15612d8d576112c5565b6000612d9884612032565b90506001600160a01b038116612def57506001600160a01b038316600090815260086020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556112c5565b612df884610f44565b611c6a57806001600160a01b0316846001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c316001604051612e44911515815260200190565b60405180910390a35050505050565b6001600160a01b038216600090815260136020526040812054600d548291612e7a916138b2565b905080612e92578260405160200161296c9190613b0b565b612e9c85826123c2565b95945050505050565b80471015612ef55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016107fa565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612f42576040519150601f19603f3d011682016040523d82523d6000602084013e612f47565b606091505b50509050806109b45760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016107fa565b6000546001600160a01b038416613001576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82613038576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61304560008583866124e5565b6001600160a01b038416600081815260056020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168b018116918217680100000000000000007fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090941690921783900481168b01811690920217909155858452600490925290912080547fffffffff000000000000000000000000000000000000000000000000000000001683177401000000000000000000000000000000000000000042909316929092029190911790558190818501903b156131d6575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46131866000878480600101955087612277565b6131bc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80821061313b5782600054146131d157600080fd5b61321b565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106131d7575b5060009081556112c59085838684565b6060600a805461082090613780565b82805461324690613780565b90600052602060002090601f01602090048101928261326857600085556132ae565b82601f1061328157805160ff19168380011785556132ae565b828001600101855582156132ae579182015b828111156132ae578251825591602001919060010190613293565b506132ba9291506132be565b5090565b5b808211156132ba57600081556001016132bf565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461176157600080fd5b60006020828403121561331357600080fd5b8135610ea2816132d3565b6001600160a01b038116811461176157600080fd5b6000806040838503121561334657600080fd5b82356133518161331e565b915060208301356bffffffffffffffffffffffff8116811461337257600080fd5b809150509250929050565b60005b83811015613398578181015183820152602001613380565b838111156112c55750506000910152565b600081518084526133c181602086016020860161337d565b601f01601f19169290920160200192915050565b602081526000610ea260208301846133a9565b6000602082840312156133fa57600080fd5b5035919050565b6000806040838503121561341457600080fd5b823561341f8161331e565b946020939093013593505050565b60006020828403121561343f57600080fd5b8135610ea28161331e565b60008060006060848603121561345f57600080fd5b833561346a8161331e565b9250602084013561347a8161331e565b929592945050506040919091013590565b6000806040838503121561349e57600080fd5b50508035926020909101359150565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405160e0810167ffffffffffffffff811182821017156134ff576134ff6134ad565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561352e5761352e6134ad565b604052919050565b8035801515811461354657600080fd5b919050565b600060e0828403121561355d57600080fd5b6135656134dc565b82358152602083013560208201526040830135604082015260608301357effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811681146135af57600080fd5b60608201526135c060808401613536565b60808201526135d160a08401613536565b60a08201526135e260c08401613536565b60c08201529392505050565b600067ffffffffffffffff821115613608576136086134ad565b50601f01601f191660200190565b6000613629613624846135ee565b613505565b905082815283838301111561363d57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561366657600080fd5b813567ffffffffffffffff81111561367d57600080fd5b8201601f8101841361368e57600080fd5b6121a284823560208401613616565b600080604083850312156136b057600080fd5b82356136bb8161331e565b91506136c960208401613536565b90509250929050565b600080600080608085870312156136e857600080fd5b84356136f38161331e565b935060208501356137038161331e565b925060408501359150606085013567ffffffffffffffff81111561372657600080fd5b8501601f8101871361373757600080fd5b61374687823560208401613616565b91505092959194509250565b6000806040838503121561376557600080fd5b82356137708161331e565b915060208301356133728161331e565b600181811c9082168061379457607f821691505b602082108114156137ce577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561383b5761383b6137d4565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261387e5761387e613840565b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000828210156138c4576138c46137d4565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b60006020828403121561390a57600080fd5b815167ffffffffffffffff81111561392157600080fd5b8201601f8101841361393257600080fd5b8051613940613624826135ee565b81815285602083850101111561395557600080fd5b612e9c82602083016020860161337d565b60006020828403121561397857600080fd5b8151610ea28161331e565b60006001600160a01b038087168352808616602084015250836040830152608060608301526139b560808301846133a9565b9695505050505050565b6000602082840312156139d157600080fd5b8151610ea2816132d3565b600082198211156139ef576139ef6137d4565b500190565b60008351613a0681846020880161337d565b835190830190613a1a81836020880161337d565b01949350505050565b7f53656c6c65723a20436f73747320000000000000000000000000000000000000815260008251613a5b81600e85016020870161337d565b7f2047576569000000000000000000000000000000000000000000000000000000600e939091019283015250601301919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613ac157613ac16137d4565b5060010190565b600082613ad757613ad7613840565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f53656c6c65723a20000000000000000000000000000000000000000000000000815260008251613b4381600885016020870161337d565b919091016008019291505056fea26469706673582212204c1369dc0fb5cda8f5aaec009f59dc778b0266fe3f5100deeed731543eb4d83264736f6c634300080c00334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000f271043cb470856e834b7af79b531c874a770e9f000000000000000000000000f271043cb470856e834b7af79b531c874a770e9f000000000000000000000000000000000000000000000000000000000000000f476f626c696e20486970737465727300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005474f484950000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061024f5760003560e01c806370a0823111610138578063b7f1d072116100b0578063c7fecbcc1161007f578063d547cfb711610064578063d547cfb71461073e578063e985e9c514610753578063f2fde38b1461077357600080fd5b8063c7fecbcc146106fe578063c87b56dd1461071e57600080fd5b8063b7f1d072146105c7578063b88d4fde146105e7578063bb69b7ef14610607578063bf62e21d146106de57600080fd5b80639106d7ba1161010757806395d89b41116100ec57806395d89b411461057c578063a035b1fe14610591578063a22cb465146105a757600080fd5b80639106d7ba1461054757806391b7f5ed1461055c57600080fd5b806370a08231146104df578063715018a6146104ff5780638456cb59146105145780638da5cb5b1461052957600080fd5b80632f274bd4116101cb5780633f4ba83a1161019a57806342842e0e1161017f57806342842e0e1461046f5780635c975abb1461048f5780636352211e146104bf57600080fd5b80633f4ba83a1461044757806340c10f191461045c57600080fd5b80632f274bd4146103c757806330176e13146103e757806338af3eed146104075780633ec02e141461042757600080fd5b8063095ea7b3116102225780631c31f710116102075780631c31f7101461034857806323b872dd146103685780632a55205a1461038857600080fd5b8063095ea7b31461030557806318160ddd1461032557600080fd5b806301ffc9a71461025457806302fa7c471461028957806306fdde03146102ab578063081812fc146102cd575b600080fd5b34801561026057600080fd5b5061027461026f366004613301565b610793565b60405190151581526020015b60405180910390f35b34801561029557600080fd5b506102a96102a4366004613333565b6107a4565b005b3480156102b757600080fd5b506102c0610811565b60405161028091906133d5565b3480156102d957600080fd5b506102ed6102e83660046133e8565b6108a3565b6040516001600160a01b039091168152602001610280565b34801561031157600080fd5b506102a9610320366004613401565b610900565b34801561033157600080fd5b50600154600054035b604051908152602001610280565b34801561035457600080fd5b506102a961036336600461342d565b6109b9565b34801561037457600080fd5b506102a961038336600461344a565b610a4d565b34801561039457600080fd5b506103a86103a336600461348b565b610a58565b604080516001600160a01b039093168352602083019190915201610280565b3480156103d357600080fd5b506102a96103e236600461354b565b610b35565b3480156103f357600080fd5b506102a9610402366004613654565b610e25565b34801561041357600080fd5b506011546102ed906001600160a01b031681565b34801561043357600080fd5b5061033a61044236600461348b565b610e92565b34801561045357600080fd5b506102a9610ea9565b6102a961046a366004613401565b610f0d565b34801561047b57600080fd5b506102a961048a36600461344a565b610f17565b34801561049b57600080fd5b5060095474010000000000000000000000000000000000000000900460ff16610274565b3480156104cb57600080fd5b506102ed6104da3660046133e8565b610f32565b3480156104eb57600080fd5b5061033a6104fa36600461342d565b610f44565b34801561050b57600080fd5b506102a9610fac565b34801561052057600080fd5b506102a9611010565b34801561053557600080fd5b506009546001600160a01b03166102ed565b34801561055357600080fd5b5061033a611072565b34801561056857600080fd5b506102a96105773660046133e8565b611082565b34801561058857600080fd5b506102c06110e1565b34801561059d57600080fd5b5061033a60155481565b3480156105b357600080fd5b506102a96105c236600461369d565b6110f0565b3480156105d357600080fd5b506102a96105e236600461342d565b6111d4565b3480156105f357600080fd5b506102a96106023660046136d2565b611268565b34801561061357600080fd5b50600c54600d54600e54600f54601054610683949392917effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81169160ff7f01000000000000000000000000000000000000000000000000000000000000009092048216918181169161010090041687565b604080519788526020880196909652948601939093527effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff909116606085015215156080840152151560a0830152151560c082015260e001610280565b3480156106ea57600080fd5b506102a96106f9366004613401565b6112cb565b34801561070a57600080fd5b506018546102ed906001600160a01b031681565b34801561072a57600080fd5b506102c06107393660046133e8565b6114d6565b34801561074a57600080fd5b506102c061157d565b34801561075f57600080fd5b5061027461076e366004613752565b61160b565b34801561077f57600080fd5b506102a961078e36600461342d565b611682565b600061079e82611768565b92915050565b6009546001600160a01b031633146108035760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b61080d82826117be565b5050565b60606002805461082090613780565b80601f016020809104026020016040519081016040528092919081815260200182805461084c90613780565b80156108995780601f1061086e57610100808354040283529160200191610899565b820191906000526020600020905b81548152906001019060200180831161087c57829003601f168201915b5050505050905090565b60006108ae826118e9565b6108e4576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061090b82610f32565b9050806001600160a01b0316836001600160a01b03161415610959576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b038216146109a957610973813361160b565b6109a9576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109b483838361192d565b505050565b6009546001600160a01b03163314610a135760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fa565b601180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6109b48383836119a1565b60008281526017602090815260408083208151808301909252546001600160a01b038116808352740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff16928201929092528291610af95750604080518082019091526016546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1660208201525b602081015160009061271090610b1d906bffffffffffffffffffffffff1687613803565b610b27919061386f565b915196919550909350505050565b6009546001600160a01b03163314610b8f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fa565b80606001517effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1681600001511015610c085760405162461bcd60e51b815260206004820152601c60248201527f53656c6c65723a2065786365737369766520667265652071756f74610000000060448201526064016107fa565b60125481511015610c5b5760405162461bcd60e51b815260206004820181905260248201527f53656c6c65723a20696e76656e746f7279203c20616c726561647920736f6c6460448201526064016107fa565b60145481606001517effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff161015610cf85760405162461bcd60e51b815260206004820152602160248201527f53656c6c65723a20667265652071756f7461203c20616c72656164792075736560448201527f640000000000000000000000000000000000000000000000000000000000000060648201526084016107fa565b601054610100900460ff1615610d1557600160c0820152600c5481525b60105460ff1615610d5157600160a0820152600f547effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1660608201525b8051600c556020810151600d556040810151600e556060810151608082015115157f0100000000000000000000000000000000000000000000000000000000000000027effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90911617600f5560a08101516010805460c0909301511515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff921515929092167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000090931692909217179055565b6009546001600160a01b03163314610e7f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fa565b805161080d90600a90602084019061323a565b600060155483610ea29190613803565b9392505050565b6009546001600160a01b03163314610f035760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fa565b610f0b611c71565b565b61080d8282611d43565b6109b483838360405180602001604052806000815250611268565b6000610f3d82611d4f565b5192915050565b60006001600160a01b038216610f86576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6009546001600160a01b031633146110065760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fa565b610f0b6000611ef6565b6009546001600160a01b0316331461106a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fa565b610f0b611f60565b600061107d60125490565b905090565b6009546001600160a01b031633146110dc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fa565b601555565b60606003805461082090613780565b336110fa81612032565b6001600160a01b0316836001600160a01b031614156111ca578161111f576001611122565b60005b6001600160a01b038216600090815260086020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001838181111561117157611171613883565b0217905550826001600160a01b0316816001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31846040516111bd911515815260200190565b60405180910390a3505050565b6109b483836121aa565b6009546001600160a01b0316331461122e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fa565b601880547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6112738484846119a1565b6001600160a01b0383163b156112c55761128f84848484612277565b6112c5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6009546001600160a01b031633146113255760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fa565b60095474010000000000000000000000000000000000000000900460ff16156113905760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016107fa565b600f547effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff166113d0826113c160145490565b6113cb90846138b2565b6123c2565b9150600082116114225760405162461bcd60e51b815260206004820152601b60248201527f53656c6c65723a20467265652071756f7461206578636565646564000000000060448201526064016107fa565b600c54611432836113c160125490565b9250600083116114845760405162461bcd60e51b815260206004820152601060248201527f53656c6c65723a20536f6c64206f75740000000000000000000000000000000060448201526064016107fa565b611490848460016123d8565b61149b6012846123e2565b6114a66014846123e2565b806114b060125490565b11156114be576114be6138c9565b816114c860145490565b11156112c5576112c56138c9565b6018546060906001600160a01b031615611574576018546040517fc87b56dd000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b039091169063c87b56dd90602401600060405180830381865afa15801561154c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261079e91908101906138f8565b61079e826123ff565b600a805461158a90613780565b80601f01602080910402602001604051908101604052809291908181526020018280546115b690613780565b80156116035780601f106115d857610100808354040283529160200191611603565b820191906000526020600020905b8154815290600101906020018083116115e657829003601f168201915b505050505081565b6001600160a01b03808316600090815260076020908152604080832093851683529290529081205460ff16156116435750600161079e565b6001600160a01b03831660009081526008602052604081205460ff16600181111561167057611670613883565b148015610ea25750610ea2838361249c565b6009546001600160a01b031633146116dc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fa565b6001600160a01b0381166117585760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107fa565b61176181611ef6565b50565b5490565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a00000000000000000000000000000000000000000000000000000000148061079e575061079e826124da565b6127106bffffffffffffffffffffffff821611156118445760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c6550726963650000000000000000000000000000000000000000000060648201526084016107fa565b6001600160a01b03821661189a5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016107fa565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff90911660209092018290527401000000000000000000000000000000000000000090910217601655565b600080548210801561079e5750506000908152600460205260409020547c0100000000000000000000000000000000000000000000000000000000900460ff161590565b60008281526006602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006119ac82611d4f565b9050836001600160a01b031681600001516001600160a01b0316146119fd576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b0386161480611a1b5750611a1b853361160b565b80611a36575033611a2b846108a3565b6001600160a01b0316145b905080611a6f576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416611aaf576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611abc85858560016124e5565b611ac86000848761192d565b6001600160a01b03858116600090815260056020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000080821667ffffffffffffffff9283167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080547fffffffff00000000000000000000000000000000000000000000000000000000169094177401000000000000000000000000000000000000000042909216919091021783558701808452922080549193909116611c25576000548214611c25578054602086015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff000000000000000000000000000000000000000000000000000000009091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b60095474010000000000000000000000000000000000000000900460ff16611cdb5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016107fa565b600980547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b61080d8282600061255c565b604080516060810182526000808252602082018190529181019190915281600054811015611ec457600081815260046020908152604091829020825160608101845290546001600160a01b038116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff16151591810182905290611ec25780516001600160a01b031615611e10579392505050565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01600081815260046020908152604091829020825160608101845290546001600160a01b03811680835274010000000000000000000000000000000000000000820467ffffffffffffffff16938301939093527c0100000000000000000000000000000000000000000000000000000000900460ff1615159281019290925215611ebd579392505050565b611e10565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600980546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60095474010000000000000000000000000000000000000000900460ff1615611fcb5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016107fa565b600980547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611d263390565b6000804680600181146120675760898114612083576004811461209f576201388181146120bb5761053981146120d7576120ef565b73a5409ec958c83c3f309868babaca7c86dcb077c192506120ef565b7358807bad0b376efc12f5ad86aac70e78ed67deae92506120ef565b73f57b2c51ded3a29e6891aba85459d600256cf31792506120ef565b73ff7ca10af37178bdd056628ef42fd7f799fac77c92506120ef565b73e1a2bbc877b29adbc56d2659dbcb0ae14ee6207192505b506001600160a01b03821615806121065750806089145b8061211357508062013881145b1561211f575092915050565b6040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b03858116600483015283169063c455279190602401602060405180830381865afa15801561217e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121a29190613966565b949350505050565b6001600160a01b0382163314156121ed576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a02906122c5903390899088908890600401613983565b6020604051808303816000875af1925050508015612300575060408051601f3d908101601f191682019092526122fd918101906139bf565b60015b612374573d80801561232e576040519150601f19603f3d011682016040523d82523d6000602084013e612333565b606091505b50805161236c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050949350505050565b60008183106123d15781610ea2565b5090919050565b6109b48383612b08565b808260000160008282546123f691906139dc565b90915550505050565b606061240a826118e9565b612440576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061244a612b22565b905080516000141561246b5760405180602001604052806000815250610ea2565b8061247584612b2c565b6040516020016124869291906139f4565b6040516020818303038152906040529392505050565b6000806124a884612032565b90506001600160a01b038116158015906121a25750826001600160a01b0316816001600160a01b031614949350505050565b600061079e82612c5e565b60095474010000000000000000000000000000000000000000900460ff16156125505760405162461bcd60e51b815260206004820152601560248201527f45524337323141436f6d6d6f6e3a20706175736564000000000000000000000060448201526064016107fa565b6112c584848484612d41565b6002600b5414156125af5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107fa565b6002600b5560095474010000000000000000000000000000000000000000900460ff161561261f5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016107fa565b6040805160e081018252600c548152600d546020820152600e54918101829052600f547effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8116606083015260ff7f0100000000000000000000000000000000000000000000000000000000000000909104811615156080830152601054808216151560a0840152610100900416151560c082015290600090156126ce576126c98483604001516123c2565b6126d0565b835b90506000808360800151156127305760608401518451612711917effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16906138b2565b915061271c60145490565b60125461272991906138b2565b9050612740565b8351915061273d60125490565b90505b61274e836113cb83856138b2565b9250600083116127a05760405162461bcd60e51b815260206004820152601060248201527f53656c6c65723a20536f6c64206f75740000000000000000000000000000000060448201526064016107fa565b60208401511561293057336001600160a01b0388168114159060009032148015906127d45750326001600160a01b038a1614155b9050612816858a6040518060400160405280600b81526020017f4275796572206c696d6974000000000000000000000000000000000000000000815250612e53565b945081156128615761285e85336040518060400160405280600c81526020017f53656e646572206c696d69740000000000000000000000000000000000000000815250612e53565b94505b80156128aa576128a785326040518060400160405280600c81526020017f4f726967696e206c696d69740000000000000000000000000000000000000000815250612e53565b94505b6001600160a01b038916600090815260136020526040812080548792906128d29084906139dc565b909155505081156129025733600090815260136020526040812080548792906128fc9084906139dc565b90915550505b801561292d5732600090815260136020526040812080548792906129279084906139dc565b90915550505b50505b600061293c8487610e92565b9050803410156129925761295c612957633b9aca008361386f565b612b2c565b60405160200161296c9190613a23565b60408051601f198184030181529082905262461bcd60e51b82526107fa916004016133d5565b61299e888560006123d8565b6129a96012856123e2565b845160125411156129bc576129bc6138c9565b8015612a21576011546129d8906001600160a01b031682612ea5565b60115460408051868152602081018490526001600160a01b03909216917f01f51b99bd1c3cca301836178e5dee13aadfe44eff06dc3ddcbf3c9d058454f8910160405180910390a25b80341115612af957336000612a3683346138b2565b9050600080836001600160a01b03168360405160006040518083038185875af1925050503d8060008114612a86576040519150601f19603f3d011682016040523d82523d6000602084013e612a8b565b606091505b5091509150818190612ab05760405162461bcd60e51b81526004016107fa91906133d5565b50836001600160a01b03167fbb28353e4598c3b9199101a66e0989549b659a59a54d2c27fbb183f1932c8e6d84604051612aec91815260200190565b60405180910390a2505050505b50506001600b55505050505050565b61080d828260405180602001604052806000815250612fbe565b606061107d61322b565b606081612b6c57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612b965780612b8081613a8f565b9150612b8f9050600a8361386f565b9150612b70565b60008167ffffffffffffffff811115612bb157612bb16134ad565b6040519080825280601f01601f191660200182016040528015612bdb576020820181803683370190505b5090505b84156121a257612bf06001836138b2565b9150612bfd600a86613ac8565b612c089060306139dc565b60f81b818381518110612c1d57612c1d613adc565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612c57600a8661386f565b9450612bdf565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480612cf157507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061079e57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083161461079e565b6001600160a01b0383161580612d83575060016001600160a01b03841660009081526008602052604090205460ff166001811115612d8157612d81613883565b145b15612d8d576112c5565b6000612d9884612032565b90506001600160a01b038116612def57506001600160a01b038316600090815260086020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556112c5565b612df884610f44565b611c6a57806001600160a01b0316846001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c316001604051612e44911515815260200190565b60405180910390a35050505050565b6001600160a01b038216600090815260136020526040812054600d548291612e7a916138b2565b905080612e92578260405160200161296c9190613b0b565b612e9c85826123c2565b95945050505050565b80471015612ef55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016107fa565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612f42576040519150601f19603f3d011682016040523d82523d6000602084013e612f47565b606091505b50509050806109b45760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016107fa565b6000546001600160a01b038416613001576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82613038576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61304560008583866124e5565b6001600160a01b038416600081815260056020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168b018116918217680100000000000000007fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090941690921783900481168b01811690920217909155858452600490925290912080547fffffffff000000000000000000000000000000000000000000000000000000001683177401000000000000000000000000000000000000000042909316929092029190911790558190818501903b156131d6575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46131866000878480600101955087612277565b6131bc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80821061313b5782600054146131d157600080fd5b61321b565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106131d7575b5060009081556112c59085838684565b6060600a805461082090613780565b82805461324690613780565b90600052602060002090601f01602090048101928261326857600085556132ae565b82601f1061328157805160ff19168380011785556132ae565b828001600101855582156132ae579182015b828111156132ae578251825591602001919060010190613293565b506132ba9291506132be565b5090565b5b808211156132ba57600081556001016132bf565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461176157600080fd5b60006020828403121561331357600080fd5b8135610ea2816132d3565b6001600160a01b038116811461176157600080fd5b6000806040838503121561334657600080fd5b82356133518161331e565b915060208301356bffffffffffffffffffffffff8116811461337257600080fd5b809150509250929050565b60005b83811015613398578181015183820152602001613380565b838111156112c55750506000910152565b600081518084526133c181602086016020860161337d565b601f01601f19169290920160200192915050565b602081526000610ea260208301846133a9565b6000602082840312156133fa57600080fd5b5035919050565b6000806040838503121561341457600080fd5b823561341f8161331e565b946020939093013593505050565b60006020828403121561343f57600080fd5b8135610ea28161331e565b60008060006060848603121561345f57600080fd5b833561346a8161331e565b9250602084013561347a8161331e565b929592945050506040919091013590565b6000806040838503121561349e57600080fd5b50508035926020909101359150565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405160e0810167ffffffffffffffff811182821017156134ff576134ff6134ad565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561352e5761352e6134ad565b604052919050565b8035801515811461354657600080fd5b919050565b600060e0828403121561355d57600080fd5b6135656134dc565b82358152602083013560208201526040830135604082015260608301357effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811681146135af57600080fd5b60608201526135c060808401613536565b60808201526135d160a08401613536565b60a08201526135e260c08401613536565b60c08201529392505050565b600067ffffffffffffffff821115613608576136086134ad565b50601f01601f191660200190565b6000613629613624846135ee565b613505565b905082815283838301111561363d57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561366657600080fd5b813567ffffffffffffffff81111561367d57600080fd5b8201601f8101841361368e57600080fd5b6121a284823560208401613616565b600080604083850312156136b057600080fd5b82356136bb8161331e565b91506136c960208401613536565b90509250929050565b600080600080608085870312156136e857600080fd5b84356136f38161331e565b935060208501356137038161331e565b925060408501359150606085013567ffffffffffffffff81111561372657600080fd5b8501601f8101871361373757600080fd5b61374687823560208401613616565b91505092959194509250565b6000806040838503121561376557600080fd5b82356137708161331e565b915060208301356133728161331e565b600181811c9082168061379457607f821691505b602082108114156137ce577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561383b5761383b6137d4565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261387e5761387e613840565b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000828210156138c4576138c46137d4565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b60006020828403121561390a57600080fd5b815167ffffffffffffffff81111561392157600080fd5b8201601f8101841361393257600080fd5b8051613940613624826135ee565b81815285602083850101111561395557600080fd5b612e9c82602083016020860161337d565b60006020828403121561397857600080fd5b8151610ea28161331e565b60006001600160a01b038087168352808616602084015250836040830152608060608301526139b560808301846133a9565b9695505050505050565b6000602082840312156139d157600080fd5b8151610ea2816132d3565b600082198211156139ef576139ef6137d4565b500190565b60008351613a0681846020880161337d565b835190830190613a1a81836020880161337d565b01949350505050565b7f53656c6c65723a20436f73747320000000000000000000000000000000000000815260008251613a5b81600e85016020870161337d565b7f2047576569000000000000000000000000000000000000000000000000000000600e939091019283015250601301919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613ac157613ac16137d4565b5060010190565b600082613ad757613ad7613840565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f53656c6c65723a20000000000000000000000000000000000000000000000000815260008251613b4381600885016020870161337d565b919091016008019291505056fea26469706673582212204c1369dc0fb5cda8f5aaec009f59dc778b0266fe3f5100deeed731543eb4d83264736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000f271043cb470856e834b7af79b531c874a770e9f000000000000000000000000f271043cb470856e834b7af79b531c874a770e9f000000000000000000000000000000000000000000000000000000000000000f476f626c696e20486970737465727300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005474f484950000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): Goblin Hipsters
Arg [1] : symbol (string): GOHIP
Arg [2] : beneficiary (address): 0xF271043cb470856e834B7aF79B531c874A770e9F
Arg [3] : royaltyReceiver (address): 0xF271043cb470856e834B7aF79B531c874A770e9F
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 000000000000000000000000f271043cb470856e834b7af79b531c874a770e9f
Arg [3] : 000000000000000000000000f271043cb470856e834b7af79b531c874a770e9f
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [5] : 476f626c696e2048697073746572730000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [7] : 474f484950000000000000000000000000000000000000000000000000000000
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.