Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
0 IRI-DO
Holders
321
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 IRI-DOLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AllowedlistERC721
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: Unlicense pragma solidity ^0.8.17; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "operator-filter-registry/src/DefaultOperatorFilterer.sol"; /** * @title AllowedlistERC721 collection. * @author SBINFT Co., Ltd. */ contract AllowedlistERC721 is ERC721, Ownable, DefaultOperatorFilterer { using Counters for Counters.Counter; using Strings for uint256; Counters.Counter private _tokenIdCounter; string private _baseTokenURI; uint256 private _currentPriceGold; uint256 private _currentPriceSilver; uint256 private _currentPricePublic; // @notice account for payable function dest. address payable private _withdrawAccount; // @notice uppler bounds for each phase. uint16 private _tokenUpperBounds = 3333; // @notice 0 for phase1, 1 for phase2, 2 for phase3. uint8 private _currentPhase = 0; // @notice 0 = gold, 1 = silver, 2=public uint8 private _currentAllowedRank = 0; mapping(uint8 => mapping(address => uint16)) private _allowedUserListGold; mapping(uint8 => mapping(address => uint16)) private _allowedUserListSilver; /** * @dev AllowedlistERC721 constructor * * @param name_ string name of the token * @param symbol_ string symbol of the token * @param baseTokenURI string base URI * @param owner_ address of owner of the contract * @param priceGold uint256 price of gold token * @param priceSilver uint256 price of gold token * @param pricePublic uint256 price of public token * @param withdrawAccount address payable */ constructor( string memory name_, string memory symbol_, string memory baseTokenURI, address owner_, uint256 priceGold, uint256 priceSilver, uint256 pricePublic, address payable withdrawAccount ) ERC721(name_, symbol_) { transferOwnership(owner_); _baseTokenURI = baseTokenURI; _currentPriceGold = priceGold; _currentPriceSilver = priceSilver; _currentPricePublic = pricePublic; _withdrawAccount = withdrawAccount; } /** * @dev Mint a NFT * * @param to address to which NFT to be minted * @param amount uint16 count of NFT to be minted */ function mint(address to, uint16 amount) external payable { require( amount != 0, "AllowedlistERC721:mint: amount should be greater than zero" ); uint256 price = getPrice(_currentAllowedRank); require( msg.value == price * amount, "AllowedlistERC721:mint: Not enough value received for mint" ); // @notice total minted token should be less than 3,333 by each phase. require( getRemainingTokenByAddress(to, _currentAllowedRank) >= amount && getRemainingToken(_currentPhase) >= amount, "AllowedlistERC721:mint: to address is not in the AllowedList or No token left for mint" ); // @dev allowedList management. if (_currentAllowedRank == 0) { // For gold _allowedUserListGold[_currentPhase][to] = _allowedUserListGold[_currentPhase][to] - amount; } else if (_currentAllowedRank == 1) { // For silver _allowedUserListSilver[_currentPhase][to] = _allowedUserListSilver[_currentPhase][to] - amount; } for (uint16 i = 0; i < amount; i++) { // @dev TokenId management. _tokenIdCounter.increment(); uint256 tokenId = _tokenIdCounter.current(); // @dev mint. _safeMint(to, tokenId); } // @dev transfer amount to withdraw account.abi _withdrawAccount.transfer(msg.value); } /** * @dev Function for owner free mint needed for ops reason. * * @param to address to which NFT to be minted * @param amount uint256 count of NFT to be minted * * Requirement * - onlyOwner can call */ function ownerMint(address to, uint256 amount) external onlyOwner { // @notice total minted token should be less than 3,333 by each phase. require( getRemainingToken(_currentPhase) >= amount, "AllowedlistERC721:ownerMint: Already reached Token Upper bounds." ); for (uint256 i = 0; i < amount; i++) { _tokenIdCounter.increment(); uint256 tokenId = _tokenIdCounter.current(); _safeMint(to, tokenId); } } /** * @dev Returns Token Upper Bounds */ function getTokenUpperBounds() public view returns (uint256) { return _tokenUpperBounds; } /** * @dev Update Token Upper Bounds * * @param upper uint16 update upper limit * * Requirement * - onlyOwner can call */ function setTokenUpperBounds(uint16 upper) external onlyOwner returns (uint256) { _tokenUpperBounds = upper; return _tokenUpperBounds; } /** * @dev Allowed List checker * * @param addr address * @param rank uint8 * @return upper limit of respective rank */ function getRemainingTokenByAddress(address addr, uint8 rank) public view returns (uint256) { if (rank == 0) { // For gold return _allowedUserListGold[_currentPhase][addr]; } else if (rank == 1) { // For silver return _allowedUserListSilver[_currentPhase][addr]; } else { return getRemainingToken(_currentPhase); } } /** * @dev Set Allowed User List * * @param phase uint8 Mint Sale phase(1~3) * @param rank uint8 parameter for allowedList gold/silver. * @param users address[] calldata user address array * @param amount uint16[] calldata amount for each user mint-cap * * Requirement * - onlyOwner can call */ function setAllowedUserList( uint8 phase, uint8 rank, address[] calldata users, uint16[] calldata amount ) external onlyOwner { require( users.length == amount.length, "AllowedlistERC721:setAllowedUserList: users and amount list must be same length." ); require( rank == 0 || rank == 1, "AllowedlistERC721:setAllowedUserList: rank is only 0 for gold, 1 for silver." ); if (rank == 0) { for (uint256 i = 0; i < users.length; i++) { _allowedUserListGold[phase][users[i]] = amount[i]; } } else if (rank == 1) { for (uint256 i = 0; i < users.length; i++) { _allowedUserListSilver[phase][users[i]] = amount[i]; } } } /** * @dev Returns remaining token count * * @param phase uint8 Mint Sale phase(1~3) * @return amount of remaining token that user can mint for respective phase */ function getRemainingToken(uint8 phase) public view returns (uint256) { return _tokenUpperBounds * (phase + 1) - _tokenIdCounter.current(); } /** * @dev Returns price for respective rank * * @param rank uint8 rank * @return price for respective rank */ function getPrice(uint8 rank) public view returns (uint256) { uint256 price; if (rank == 0) { // For gold price = _currentPriceGold; } else if (rank == 1) { // For silver price = _currentPriceSilver; } else { // For public price = _currentPricePublic; } return price; } /** * @dev Sets price of respective rank * * @param price uint256 * @param rank uint8 * * Requirement * - onlyOwner can call */ function setPrice(uint256 price, uint8 rank) external onlyOwner { require( rank == 0 || rank == 1 || rank == 2, "AllowedlistERC721:setPrice: invalid rank" ); if (rank == 0) { // For gold _currentPriceGold = price; } else if (rank == 1) { // For silver _currentPriceSilver = price; } else { // For public _currentPricePublic = price; } } /** * @dev Returns current phase */ function getCurrentPhase() public view returns (uint256) { return _currentPhase; } /** * @dev Set current phase * * @param phase uint8 * * Requirement * - onlyOwner can call */ function setCurrentPhase(uint8 phase) external onlyOwner { _currentPhase = phase; } /** * @dev Returns current allowed rank * * @return uint256 current allowed rank */ function getCurrentAllowedRank() public view returns (uint256) { return _currentAllowedRank; } /** * @dev Set current allowed rank * * @param rank uint8 * * Requirement * - onlyOwner can call */ function setCurrentAllowedRank(uint8 rank) external onlyOwner { _currentAllowedRank = rank; } /** * @dev Set withdraw account address * * @param to address * * Requirement * - onlyOwner can call */ function setWithdrawAccount(address payable to) external onlyOwner { require( to != address(0), "AllowedlistERC721:setWithdrawAccount: to address can't be zero address" ); _withdrawAccount = to; } /** * @dev Returns withdraw account address * * @return withdraw account address */ function getWithdrawAccount() external view returns (address) { return _withdrawAccount; } /** * @dev Expose burn function * * @param tokenId uint256 * * Requirements: * - token owner can burn own token. * - collection owner can burn token. * */ function burn(uint256 tokenId) external { require( ownerOf(tokenId) == _msgSender() || _msgSender() == owner(), "AllowedlistERC721:burn: only token owner can burn." ); super._burn(tokenId); } /** * @dev Returns token URI of respective tokenId * * @param tokenId uint256 * @return string of token URI */ function tokenURI(uint256 tokenId) public view override(ERC721) returns (string memory) { return string(abi.encodePacked(_baseTokenURI, tokenId.toString(), ".json")); } /** * @dev for opensea royalty on-chain enforcement tools * check following for getting more detail. * https://twitter.com/opensea/status/1590466349683576832?s=20 * https://github.com/ProjectOpenSea/operator-filter-registry#filtered-addresses */ function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom( address from, address to, uint256 tokenId ) public override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId ) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {OperatorFilterer} from "./OperatorFilterer.sol"; import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol"; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. * @dev Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { /// @dev The constructor that is called when the contract is being deployed. constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol"; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. * Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract OperatorFilterer { /// @dev Emitted when an operator is not allowed. error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS); /// @dev The constructor that is called when the contract is being deployed. constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } /** * @dev A helper function to check if an operator is allowed. */ modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } /** * @dev A helper function to check if an operator approval is allowed. */ modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @dev A helper function to check if an operator is allowed. */ function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // under normal circumstances, this function will revert rather than return false, but inheriting contracts // may specify their own OperatorFilterRegistry implementations, which may behave differently if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E; address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { /** * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns * true if supplied registrant address is not registered. */ function isOperatorAllowed(address registrant, address operator) external view returns (bool); /** * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner. */ function register(address registrant) external; /** * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes. */ function registerAndSubscribe(address registrant, address subscription) external; /** * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another * address without subscribing. */ function registerAndCopyEntries(address registrant, address registrantToCopy) external; /** * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner. * Note that this does not remove any filtered addresses or codeHashes. * Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes. */ function unregister(address addr) external; /** * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered. */ function updateOperator(address registrant, address operator, bool filtered) external; /** * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates. */ function updateOperators(address registrant, address[] calldata operators, bool filtered) external; /** * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered. */ function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; /** * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates. */ function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; /** * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous * subscription if present. * Note that accounts with subscriptions may go on to subscribe to other accounts - in this case, * subscriptions will not be forwarded. Instead the former subscription's existing entries will still be * used. */ function subscribe(address registrant, address registrantToSubscribe) external; /** * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes. */ function unsubscribe(address registrant, bool copyExistingEntries) external; /** * @notice Get the subscription address of a given registrant, if any. */ function subscriptionOf(address addr) external returns (address registrant); /** * @notice Get the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscribers(address registrant) external returns (address[] memory); /** * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscriberAt(address registrant, uint256 index) external returns (address); /** * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr. */ function copyEntriesOf(address registrant, address registrantToCopy) external; /** * @notice Returns true if operator is filtered by a given address or its subscription. */ function isOperatorFiltered(address registrant, address operator) external returns (bool); /** * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription. */ function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); /** * @notice Returns true if a codeHash is filtered by a given address or its subscription. */ function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); /** * @notice Returns a list of filtered operators for a given address or its subscription. */ function filteredOperators(address addr) external returns (address[] memory); /** * @notice Returns the set of filtered codeHashes for a given address or its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashes(address addr) external returns (bytes32[] memory); /** * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredOperatorAt(address registrant, uint256 index) external returns (address); /** * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); /** * @notice Returns true if an address has registered */ function isRegistered(address addr) external returns (bool); /** * @dev Convenience method to compute the code hash of an arbitrary contract */ function codeHashOf(address addr) external returns (bytes32); }
{ "optimizer": { "enabled": true, "runs": 200 }, "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":"string","name":"baseTokenURI","type":"string"},{"internalType":"address","name":"owner_","type":"address"},{"internalType":"uint256","name":"priceGold","type":"uint256"},{"internalType":"uint256","name":"priceSilver","type":"uint256"},{"internalType":"uint256","name":"pricePublic","type":"uint256"},{"internalType":"address payable","name":"withdrawAccount","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentAllowedRank","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentPhase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"rank","type":"uint8"}],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"phase","type":"uint8"}],"name":"getRemainingToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint8","name":"rank","type":"uint8"}],"name":"getRemainingTokenByAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenUpperBounds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWithdrawAccount","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":"uint16","name":"amount","type":"uint16"}],"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":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"phase","type":"uint8"},{"internalType":"uint8","name":"rank","type":"uint8"},{"internalType":"address[]","name":"users","type":"address[]"},{"internalType":"uint16[]","name":"amount","type":"uint16[]"}],"name":"setAllowedUserList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"rank","type":"uint8"}],"name":"setCurrentAllowedRank","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"phase","type":"uint8"}],"name":"setCurrentPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint8","name":"rank","type":"uint8"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"upper","type":"uint16"}],"name":"setTokenUpperBounds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"}],"name":"setWithdrawAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600c805463ffffffff60a01b1916610d0560a01b1790553480156200002857600080fd5b5060405162002e3a38038062002e3a8339810160408190526200004b9162000452565b733cc6cdda760b79bafa08df41ecfa224f810dceb6600189896000620000728382620005b5565b506001620000818282620005b5565b5050506200009e620000986200023960201b60201c565b6200023d565b6daaeb6d7670e522a718067333cd4e3b15620001e35780156200013157604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200011257600080fd5b505af115801562000127573d6000803e3d6000fd5b50505050620001e3565b6001600160a01b03821615620001825760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401620000f7565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620001c957600080fd5b505af1158015620001de573d6000803e3d6000fd5b505050505b50620001f19050856200028f565b6008620001ff8782620005b5565b50600993909355600a91909155600b55600c80546001600160a01b0319166001600160a01b03909216919091179055506200068192505050565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200029962000312565b6001600160a01b038116620003045760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6200030f816200023d565b50565b6006546001600160a01b031633146200036e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401620002fb565b565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200039857600080fd5b81516001600160401b0380821115620003b557620003b562000370565b604051601f8301601f19908116603f01168101908282118183101715620003e057620003e062000370565b81604052838152602092508683858801011115620003fd57600080fd5b600091505b8382101562000421578582018301518183018401529082019062000402565b600093810190920192909252949350505050565b80516001600160a01b03811681146200044d57600080fd5b919050565b600080600080600080600080610100898b0312156200047057600080fd5b88516001600160401b03808211156200048857600080fd5b620004968c838d0162000386565b995060208b0151915080821115620004ad57600080fd5b620004bb8c838d0162000386565b985060408b0151915080821115620004d257600080fd5b50620004e18b828c0162000386565b965050620004f260608a0162000435565b94506080890151935060a0890151925060c089015191506200051760e08a0162000435565b90509295985092959890939650565b600181811c908216806200053b57607f821691505b6020821081036200055c57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620005b057600081815260208120601f850160051c810160208610156200058b5750805b601f850160051c820191505b81811015620005ac5782815560010162000597565b5050505b505050565b81516001600160401b03811115620005d157620005d162000370565b620005e981620005e2845462000526565b8462000562565b602080601f831160018114620006215760008415620006085750858301515b600019600386901b1c1916600185901b178555620005ac565b600085815260208120601f198616915b82811015620006525788860151825594840194600190910190840162000631565b5085821015620006715787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6127a980620006916000396000f3fe6080604052600436106101ee5760003560e01c8063715018a61161010d578063ad0be4bd116100a0578063c87b56dd1161006f578063c87b56dd14610587578063cd3f2910146105a7578063e985e9c5146105c7578063ea4be154146105e7578063f2fde38b1461060757600080fd5b8063ad0be4bd14610516578063b48efc4114610529578063b88d4fde14610549578063bcbffe2d1461056957600080fd5b806396383c04116100dc57806396383c0414610497578063a22cb465146104b7578063a3a40ea5146104d7578063a7b1b6b4146104f657600080fd5b8063715018a61461043057806387d3f563146104455780638da5cb5b1461046457806395d89b411461048257600080fd5b806341cc236a11610185578063484b973c11610154578063484b973c146103b05780635c73e853146103d05780636352211e146103f057806370a082311461041057600080fd5b806341cc236a1461032e57806341f434341461034e57806342842e0e1461037057806342966c681461039057600080fd5b8063232f73d7116101c1578063232f73d7146102a457806323b872dd146102ce57806335a9a5c7146102ee57806337f1e7f21461030e57600080fd5b806301ffc9a7146101f357806306fdde0314610228578063081812fc1461024a578063095ea7b314610282575b600080fd5b3480156101ff57600080fd5b5061021361020e366004611fa2565b610627565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d610679565b60405161021f9190612016565b34801561025657600080fd5b5061026a610265366004612029565b61070b565b6040516001600160a01b03909116815260200161021f565b34801561028e57600080fd5b506102a261029d366004612057565b610732565b005b3480156102b057600080fd5b50600c54600160a01b900461ffff165b60405190815260200161021f565b3480156102da57600080fd5b506102a26102e9366004612083565b61074b565b3480156102fa57600080fd5b506102a26103093660046120c4565b610776565b34801561031a57600080fd5b506102c06103293660046120f2565b610830565b34801561033a57600080fd5b506102a26103493660046120f2565b610865565b34801561035a57600080fd5b5061026a6daaeb6d7670e522a718067333cd4e81565b34801561037c57600080fd5b506102a261038b366004612083565b61088d565b34801561039c57600080fd5b506102a26103ab366004612029565b6108b2565b3480156103bc57600080fd5b506102a26103cb366004612057565b61094e565b3480156103dc57600080fd5b506102c06103eb36600461211f565b610a27565b3480156103fc57600080fd5b5061026a61040b366004612029565b610a5d565b34801561041c57600080fd5b506102c061042b3660046120c4565b610abd565b34801561043c57600080fd5b506102a2610b43565b34801561045157600080fd5b50600c54600160b81b900460ff166102c0565b34801561047057600080fd5b506006546001600160a01b031661026a565b34801561048e57600080fd5b5061023d610b57565b3480156104a357600080fd5b506102a26104b236600461213a565b610b66565b3480156104c357600080fd5b506102a26104d2366004612174565b610c18565b3480156104e357600080fd5b50600c54600160b01b900460ff166102c0565b34801561050257600080fd5b506102c06105113660046120f2565b610c2c565b6102a26105243660046121ad565b610c6b565b34801561053557600080fd5b506102a2610544366004612225565b611010565b34801561055557600080fd5b506102a26105643660046122cc565b6112bc565b34801561057557600080fd5b50600c546001600160a01b031661026a565b34801561059357600080fd5b5061023d6105a2366004612029565b6112e9565b3480156105b357600080fd5b506102a26105c23660046120f2565b61131d565b3480156105d357600080fd5b506102136105e23660046123ac565b611345565b3480156105f357600080fd5b506102c06106023660046123da565b611373565b34801561061357600080fd5b506102a26106223660046120c4565b61141c565b60006001600160e01b031982166380ac58cd60e01b148061065857506001600160e01b03198216635b5e139f60e01b145b8061067357506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461068890612406565b80601f01602080910402602001604051908101604052809291908181526020018280546106b490612406565b80156107015780601f106106d657610100808354040283529160200191610701565b820191906000526020600020905b8154815290600101906020018083116106e457829003601f168201915b5050505050905090565b600061071682611492565b506000908152600460205260409020546001600160a01b031690565b8161073c816114f1565b61074683836115aa565b505050565b826001600160a01b038116331461076557610765336114f1565b6107708484846116ba565b50505050565b61077e6116eb565b6001600160a01b03811661080e5760405162461bcd60e51b815260206004820152604660248201527f416c6c6f7765646c6973744552433732313a736574576974686472617741636360448201527f6f756e743a20746f20616464726573732063616e2774206265207a65726f206160648201526564647265737360d01b608482015260a4015b60405180910390fd5b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6000808260ff166000036108475750600954610673565b8260ff1660010361085b5750600a54610673565b50600b5492915050565b61086d6116eb565b600c805460ff909216600160b81b0260ff60b81b19909216919091179055565b826001600160a01b03811633146108a7576108a7336114f1565b610770848484611745565b336108bc82610a5d565b6001600160a01b031614806108db57506006546001600160a01b031633145b6109425760405162461bcd60e51b815260206004820152603260248201527f416c6c6f7765646c6973744552433732313a6275726e3a206f6e6c7920746f6b60448201527132b71037bbb732b91031b0b710313ab9371760711b6064820152608401610805565b61094b81611760565b50565b6109566116eb565b600c54819061096e90600160b01b900460ff16610c2c565b10156109e4576040805162461bcd60e51b81526020600482015260248101919091527f416c6c6f7765646c6973744552433732313a6f776e65724d696e743a20416c7260448201527f65616479207265616368656420546f6b656e20557070657220626f756e64732e6064820152608401610805565b60005b81811015610746576109fd600780546001019055565b6000610a0860075490565b9050610a1484826117fb565b5080610a1f81612456565b9150506109e7565b6000610a316116eb565b50600c805461ffff60a01b1916600160a01b61ffff84811682029290921792839055909104165b919050565b6000818152600260205260408120546001600160a01b0316806106735760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610805565b60006001600160a01b038216610b275760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610805565b506001600160a01b031660009081526003602052604090205490565b610b4b6116eb565b610b556000611815565b565b60606001805461068890612406565b610b6e6116eb565b60ff81161580610b8157508060ff166001145b80610b8f57508060ff166002145b610bec5760405162461bcd60e51b815260206004820152602860248201527f416c6c6f7765646c6973744552433732313a73657450726963653a20696e76616044820152676c69642072616e6b60c01b6064820152608401610805565b8060ff16600003610bfd5750600955565b8060ff16600103610c0e5750600a55565b600b8290555b5050565b81610c22816114f1565b6107468383611867565b6000610c3760075490565b610c4283600161246f565b600c54610c5d9160ff1690600160a01b900461ffff16612488565b61ffff1661067391906124ae565b8061ffff16600003610ce55760405162461bcd60e51b815260206004820152603a60248201527f416c6c6f7765646c6973744552433732313a6d696e743a20616d6f756e74207360448201527f686f756c642062652067726561746572207468616e207a65726f0000000000006064820152608401610805565b600c54600090610cfe90600160b81b900460ff16610830565b9050610d0e61ffff8316826124c1565b3414610d825760405162461bcd60e51b815260206004820152603a60248201527f416c6c6f7765646c6973744552433732313a6d696e743a204e6f7420656e6f7560448201527f67682076616c756520726563656976656420666f72206d696e740000000000006064820152608401610805565b8161ffff16610da084600c60179054906101000a900460ff16611373565b10158015610dc85750600c5461ffff831690610dc590600160b01b900460ff16610c2c565b10155b610e595760405162461bcd60e51b815260206004820152605660248201527f416c6c6f7765646c6973744552433732313a6d696e743a20746f20616464726560448201527f7373206973206e6f7420696e2074686520416c6c6f7765644c697374206f7220606482015275139bc81d1bdad95b881b19599d08199bdc881b5a5b9d60521b608482015260a401610805565b600c54600160b81b900460ff16600003610ef457600c54600160b01b900460ff166000908152600d602090815260408083206001600160a01b0387168452909152902054610eac90839061ffff166124d8565b600c54600160b01b900460ff166000908152600d602090815260408083206001600160a01b03881684529091529020805461ffff191661ffff92909216919091179055610f8b565b600c54600160b81b900460ff16600103610f8b57600c54600160b01b900460ff166000908152600e602090815260408083206001600160a01b0387168452909152902054610f4790839061ffff166124d8565b600c54600160b01b900460ff166000908152600e602090815260408083206001600160a01b03881684529091529020805461ffff191661ffff929092169190911790555b60005b8261ffff168161ffff161015610fd657610fac600780546001019055565b6000610fb760075490565b9050610fc385826117fb565b5080610fce816124fa565b915050610f8e565b50600c546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015610770573d6000803e3d6000fd5b6110186116eb565b8281146110a65760405162461bcd60e51b815260206004820152605060248201527f416c6c6f7765646c6973744552433732313a736574416c6c6f7765645573657260448201527f4c6973743a20757365727320616e6420616d6f756e74206c697374206d75737460648201526f1031329039b0b6b2903632b733ba341760811b608482015260a401610805565b60ff851615806110b957508460ff166001145b6111405760405162461bcd60e51b815260206004820152604c60248201527f416c6c6f7765646c6973744552433732313a736574416c6c6f7765645573657260448201527f4c6973743a2072616e6b206973206f6e6c79203020666f7220676f6c642c203160648201526b103337b91039b4b63b32b91760a11b608482015260a401610805565b8460ff166000036111fc5760005b838110156111f6578282828181106111685761116861251b565b905060200201602081019061117d919061211f565b60ff88166000908152600d60205260408120908787858181106111a2576111a261251b565b90506020020160208101906111b791906120c4565b6001600160a01b031681526020810191909152604001600020805461ffff191661ffff92909216919091179055806111ee81612456565b91505061114e565b506112b4565b8460ff166001036112b45760005b838110156112b2578282828181106112245761122461251b565b9050602002016020810190611239919061211f565b60ff88166000908152600e602052604081209087878581811061125e5761125e61251b565b905060200201602081019061127391906120c4565b6001600160a01b031681526020810191909152604001600020805461ffff191661ffff92909216919091179055806112aa81612456565b91505061120a565b505b505050505050565b836001600160a01b03811633146112d6576112d6336114f1565b6112e285858585611872565b5050505050565b606060086112f6836118a4565b60405160200161130792919061254d565b6040516020818303038152906040529050919050565b6113256116eb565b600c805460ff909216600160b01b0260ff60b01b19909216919091179055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60008160ff166000036113ba5750600c54600160b01b900460ff166000908152600d602090815260408083206001600160a01b038616845290915290205461ffff16610673565b8160ff166001036113ff5750600c54600160b01b900460ff166000908152600e602090815260408083206001600160a01b038616845290915290205461ffff16610673565b600c5461141590600160b01b900460ff16610c2c565b9050610673565b6114246116eb565b6001600160a01b0381166114895760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610805565b61094b81611815565b6000818152600260205260409020546001600160a01b031661094b5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610805565b6daaeb6d7670e522a718067333cd4e3b1561094b57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561155e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611582919061260b565b61094b57604051633b79c77360e21b81526001600160a01b0382166004820152602401610805565b60006115b582610a5d565b9050806001600160a01b0316836001600160a01b0316036116225760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610805565b336001600160a01b038216148061163e575061163e8133611345565b6116b05760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610805565b61074683836119ad565b6116c43382611a1b565b6116e05760405162461bcd60e51b815260040161080590612628565b610746838383611a79565b6006546001600160a01b03163314610b555760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610805565b610746838383604051806020016040528060008152506112bc565b600061176b82610a5d565b90506117786000836119ad565b6001600160a01b03811660009081526003602052604081208054600192906117a19084906124ae565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b610c14828260405180602001604052806000815250611c15565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610c14338383611c48565b61187c3383611a1b565b6118985760405162461bcd60e51b815260040161080590612628565b61077084848484611d16565b6060816000036118cb5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156118f557806118df81612456565b91506118ee9050600a8361268c565b91506118cf565b60008167ffffffffffffffff811115611910576119106122b6565b6040519080825280601f01601f19166020018201604052801561193a576020820181803683370190505b5090505b84156119a55761194f6001836124ae565b915061195c600a866126a0565b6119679060306126b4565b60f81b81838151811061197c5761197c61251b565b60200101906001600160f81b031916908160001a90535061199e600a8661268c565b945061193e565b949350505050565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906119e282610a5d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611a2783610a5d565b9050806001600160a01b0316846001600160a01b03161480611a4e5750611a4e8185611345565b806119a55750836001600160a01b0316611a678461070b565b6001600160a01b031614949350505050565b826001600160a01b0316611a8c82610a5d565b6001600160a01b031614611af05760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610805565b6001600160a01b038216611b525760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610805565b611b5d6000826119ad565b6001600160a01b0383166000908152600360205260408120805460019290611b869084906124ae565b90915550506001600160a01b0382166000908152600360205260408120805460019290611bb49084906126b4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611c1f8383611d49565b611c2c6000848484611e8b565b6107465760405162461bcd60e51b8152600401610805906126c7565b816001600160a01b0316836001600160a01b031603611ca95760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610805565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611d21848484611a79565b611d2d84848484611e8b565b6107705760405162461bcd60e51b8152600401610805906126c7565b6001600160a01b038216611d9f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610805565b6000818152600260205260409020546001600160a01b031615611e045760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610805565b6001600160a01b0382166000908152600360205260408120805460019290611e2d9084906126b4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15611f8157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611ecf903390899088908890600401612719565b6020604051808303816000875af1925050508015611f0a575060408051601f3d908101601f19168201909252611f0791810190612756565b60015b611f67573d808015611f38576040519150601f19603f3d011682016040523d82523d6000602084013e611f3d565b606091505b508051600003611f5f5760405162461bcd60e51b8152600401610805906126c7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506119a5565b506001949350505050565b6001600160e01b03198116811461094b57600080fd5b600060208284031215611fb457600080fd5b8135611fbf81611f8c565b9392505050565b60005b83811015611fe1578181015183820152602001611fc9565b50506000910152565b60008151808452612002816020860160208601611fc6565b601f01601f19169290920160200192915050565b602081526000611fbf6020830184611fea565b60006020828403121561203b57600080fd5b5035919050565b6001600160a01b038116811461094b57600080fd5b6000806040838503121561206a57600080fd5b823561207581612042565b946020939093013593505050565b60008060006060848603121561209857600080fd5b83356120a381612042565b925060208401356120b381612042565b929592945050506040919091013590565b6000602082840312156120d657600080fd5b8135611fbf81612042565b803560ff81168114610a5857600080fd5b60006020828403121561210457600080fd5b611fbf826120e1565b803561ffff81168114610a5857600080fd5b60006020828403121561213157600080fd5b611fbf8261210d565b6000806040838503121561214d57600080fd5b8235915061215d602084016120e1565b90509250929050565b801515811461094b57600080fd5b6000806040838503121561218757600080fd5b823561219281612042565b915060208301356121a281612166565b809150509250929050565b600080604083850312156121c057600080fd5b82356121cb81612042565b915061215d6020840161210d565b60008083601f8401126121eb57600080fd5b50813567ffffffffffffffff81111561220357600080fd5b6020830191508360208260051b850101111561221e57600080fd5b9250929050565b6000806000806000806080878903121561223e57600080fd5b612247876120e1565b9550612255602088016120e1565b9450604087013567ffffffffffffffff8082111561227257600080fd5b61227e8a838b016121d9565b9096509450606089013591508082111561229757600080fd5b506122a489828a016121d9565b979a9699509497509295939492505050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156122e257600080fd5b84356122ed81612042565b935060208501356122fd81612042565b925060408501359150606085013567ffffffffffffffff8082111561232157600080fd5b818701915087601f83011261233557600080fd5b813581811115612347576123476122b6565b604051601f8201601f19908116603f0116810190838211818310171561236f5761236f6122b6565b816040528281528a602084870101111561238857600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156123bf57600080fd5b82356123ca81612042565b915060208301356121a281612042565b600080604083850312156123ed57600080fd5b82356123f881612042565b915061215d602084016120e1565b600181811c9082168061241a57607f821691505b60208210810361243a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60006001820161246857612468612440565b5060010190565b60ff818116838216019081111561067357610673612440565b61ffff8181168382160280821691908281146124a6576124a6612440565b505092915050565b8181038181111561067357610673612440565b808202811582820484141761067357610673612440565b61ffff8281168282160390808211156124f3576124f3612440565b5092915050565b600061ffff80831681810361251157612511612440565b6001019392505050565b634e487b7160e01b600052603260045260246000fd5b60008151612543818560208601611fc6565b9290920192915050565b600080845481600182811c91508083168061256957607f831692505b6020808410820361258857634e487b7160e01b86526022600452602486fd5b81801561259c57600181146125b1576125de565b60ff19861689528415158502890196506125de565b60008b81526020902060005b868110156125d65781548b8201529085019083016125bd565b505084890196505b5050505050506126026125f18286612531565b64173539b7b760d91b815260050190565b95945050505050565b60006020828403121561261d57600080fd5b8151611fbf81612166565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b60008261269b5761269b612676565b500490565b6000826126af576126af612676565b500690565b8082018082111561067357610673612440565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061274c90830184611fea565b9695505050505050565b60006020828403121561276857600080fd5b8151611fbf81611f8c56fea2646970667358221220bda04e7079b0119e9e698e103134fe9057f921b8d748bce211f762e917ef8f0c64736f6c634300081100330000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001800000000000000000000000009bfa4c4912ca65919102e5d221404703a089e90400000000000000000000000000000000000000000000000000470de4df8200000000000000000000000000000000000000000000000000000058d15e176280000000000000000000000000000000000000000000000000000058d15e176280000000000000000000000000002c85e185e4f82b931d5e8ae9b7090e7b75def27e00000000000000000000000000000000000000000000000000000000000000174952492d444f5f4d6574726f706f6c6974616e5f4e465400000000000000000000000000000000000000000000000000000000000000000000000000000000064952492d444f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004468747470733a2f2f6d657461646174612e6e616e616b7573612e696f2f6a736f6e2f4952492d444f5f4d6574726f706f6c6974616e5f4e46542f4952492d444f5f4d505f00000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101ee5760003560e01c8063715018a61161010d578063ad0be4bd116100a0578063c87b56dd1161006f578063c87b56dd14610587578063cd3f2910146105a7578063e985e9c5146105c7578063ea4be154146105e7578063f2fde38b1461060757600080fd5b8063ad0be4bd14610516578063b48efc4114610529578063b88d4fde14610549578063bcbffe2d1461056957600080fd5b806396383c04116100dc57806396383c0414610497578063a22cb465146104b7578063a3a40ea5146104d7578063a7b1b6b4146104f657600080fd5b8063715018a61461043057806387d3f563146104455780638da5cb5b1461046457806395d89b411461048257600080fd5b806341cc236a11610185578063484b973c11610154578063484b973c146103b05780635c73e853146103d05780636352211e146103f057806370a082311461041057600080fd5b806341cc236a1461032e57806341f434341461034e57806342842e0e1461037057806342966c681461039057600080fd5b8063232f73d7116101c1578063232f73d7146102a457806323b872dd146102ce57806335a9a5c7146102ee57806337f1e7f21461030e57600080fd5b806301ffc9a7146101f357806306fdde0314610228578063081812fc1461024a578063095ea7b314610282575b600080fd5b3480156101ff57600080fd5b5061021361020e366004611fa2565b610627565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d610679565b60405161021f9190612016565b34801561025657600080fd5b5061026a610265366004612029565b61070b565b6040516001600160a01b03909116815260200161021f565b34801561028e57600080fd5b506102a261029d366004612057565b610732565b005b3480156102b057600080fd5b50600c54600160a01b900461ffff165b60405190815260200161021f565b3480156102da57600080fd5b506102a26102e9366004612083565b61074b565b3480156102fa57600080fd5b506102a26103093660046120c4565b610776565b34801561031a57600080fd5b506102c06103293660046120f2565b610830565b34801561033a57600080fd5b506102a26103493660046120f2565b610865565b34801561035a57600080fd5b5061026a6daaeb6d7670e522a718067333cd4e81565b34801561037c57600080fd5b506102a261038b366004612083565b61088d565b34801561039c57600080fd5b506102a26103ab366004612029565b6108b2565b3480156103bc57600080fd5b506102a26103cb366004612057565b61094e565b3480156103dc57600080fd5b506102c06103eb36600461211f565b610a27565b3480156103fc57600080fd5b5061026a61040b366004612029565b610a5d565b34801561041c57600080fd5b506102c061042b3660046120c4565b610abd565b34801561043c57600080fd5b506102a2610b43565b34801561045157600080fd5b50600c54600160b81b900460ff166102c0565b34801561047057600080fd5b506006546001600160a01b031661026a565b34801561048e57600080fd5b5061023d610b57565b3480156104a357600080fd5b506102a26104b236600461213a565b610b66565b3480156104c357600080fd5b506102a26104d2366004612174565b610c18565b3480156104e357600080fd5b50600c54600160b01b900460ff166102c0565b34801561050257600080fd5b506102c06105113660046120f2565b610c2c565b6102a26105243660046121ad565b610c6b565b34801561053557600080fd5b506102a2610544366004612225565b611010565b34801561055557600080fd5b506102a26105643660046122cc565b6112bc565b34801561057557600080fd5b50600c546001600160a01b031661026a565b34801561059357600080fd5b5061023d6105a2366004612029565b6112e9565b3480156105b357600080fd5b506102a26105c23660046120f2565b61131d565b3480156105d357600080fd5b506102136105e23660046123ac565b611345565b3480156105f357600080fd5b506102c06106023660046123da565b611373565b34801561061357600080fd5b506102a26106223660046120c4565b61141c565b60006001600160e01b031982166380ac58cd60e01b148061065857506001600160e01b03198216635b5e139f60e01b145b8061067357506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461068890612406565b80601f01602080910402602001604051908101604052809291908181526020018280546106b490612406565b80156107015780601f106106d657610100808354040283529160200191610701565b820191906000526020600020905b8154815290600101906020018083116106e457829003601f168201915b5050505050905090565b600061071682611492565b506000908152600460205260409020546001600160a01b031690565b8161073c816114f1565b61074683836115aa565b505050565b826001600160a01b038116331461076557610765336114f1565b6107708484846116ba565b50505050565b61077e6116eb565b6001600160a01b03811661080e5760405162461bcd60e51b815260206004820152604660248201527f416c6c6f7765646c6973744552433732313a736574576974686472617741636360448201527f6f756e743a20746f20616464726573732063616e2774206265207a65726f206160648201526564647265737360d01b608482015260a4015b60405180910390fd5b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6000808260ff166000036108475750600954610673565b8260ff1660010361085b5750600a54610673565b50600b5492915050565b61086d6116eb565b600c805460ff909216600160b81b0260ff60b81b19909216919091179055565b826001600160a01b03811633146108a7576108a7336114f1565b610770848484611745565b336108bc82610a5d565b6001600160a01b031614806108db57506006546001600160a01b031633145b6109425760405162461bcd60e51b815260206004820152603260248201527f416c6c6f7765646c6973744552433732313a6275726e3a206f6e6c7920746f6b60448201527132b71037bbb732b91031b0b710313ab9371760711b6064820152608401610805565b61094b81611760565b50565b6109566116eb565b600c54819061096e90600160b01b900460ff16610c2c565b10156109e4576040805162461bcd60e51b81526020600482015260248101919091527f416c6c6f7765646c6973744552433732313a6f776e65724d696e743a20416c7260448201527f65616479207265616368656420546f6b656e20557070657220626f756e64732e6064820152608401610805565b60005b81811015610746576109fd600780546001019055565b6000610a0860075490565b9050610a1484826117fb565b5080610a1f81612456565b9150506109e7565b6000610a316116eb565b50600c805461ffff60a01b1916600160a01b61ffff84811682029290921792839055909104165b919050565b6000818152600260205260408120546001600160a01b0316806106735760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610805565b60006001600160a01b038216610b275760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610805565b506001600160a01b031660009081526003602052604090205490565b610b4b6116eb565b610b556000611815565b565b60606001805461068890612406565b610b6e6116eb565b60ff81161580610b8157508060ff166001145b80610b8f57508060ff166002145b610bec5760405162461bcd60e51b815260206004820152602860248201527f416c6c6f7765646c6973744552433732313a73657450726963653a20696e76616044820152676c69642072616e6b60c01b6064820152608401610805565b8060ff16600003610bfd5750600955565b8060ff16600103610c0e5750600a55565b600b8290555b5050565b81610c22816114f1565b6107468383611867565b6000610c3760075490565b610c4283600161246f565b600c54610c5d9160ff1690600160a01b900461ffff16612488565b61ffff1661067391906124ae565b8061ffff16600003610ce55760405162461bcd60e51b815260206004820152603a60248201527f416c6c6f7765646c6973744552433732313a6d696e743a20616d6f756e74207360448201527f686f756c642062652067726561746572207468616e207a65726f0000000000006064820152608401610805565b600c54600090610cfe90600160b81b900460ff16610830565b9050610d0e61ffff8316826124c1565b3414610d825760405162461bcd60e51b815260206004820152603a60248201527f416c6c6f7765646c6973744552433732313a6d696e743a204e6f7420656e6f7560448201527f67682076616c756520726563656976656420666f72206d696e740000000000006064820152608401610805565b8161ffff16610da084600c60179054906101000a900460ff16611373565b10158015610dc85750600c5461ffff831690610dc590600160b01b900460ff16610c2c565b10155b610e595760405162461bcd60e51b815260206004820152605660248201527f416c6c6f7765646c6973744552433732313a6d696e743a20746f20616464726560448201527f7373206973206e6f7420696e2074686520416c6c6f7765644c697374206f7220606482015275139bc81d1bdad95b881b19599d08199bdc881b5a5b9d60521b608482015260a401610805565b600c54600160b81b900460ff16600003610ef457600c54600160b01b900460ff166000908152600d602090815260408083206001600160a01b0387168452909152902054610eac90839061ffff166124d8565b600c54600160b01b900460ff166000908152600d602090815260408083206001600160a01b03881684529091529020805461ffff191661ffff92909216919091179055610f8b565b600c54600160b81b900460ff16600103610f8b57600c54600160b01b900460ff166000908152600e602090815260408083206001600160a01b0387168452909152902054610f4790839061ffff166124d8565b600c54600160b01b900460ff166000908152600e602090815260408083206001600160a01b03881684529091529020805461ffff191661ffff929092169190911790555b60005b8261ffff168161ffff161015610fd657610fac600780546001019055565b6000610fb760075490565b9050610fc385826117fb565b5080610fce816124fa565b915050610f8e565b50600c546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015610770573d6000803e3d6000fd5b6110186116eb565b8281146110a65760405162461bcd60e51b815260206004820152605060248201527f416c6c6f7765646c6973744552433732313a736574416c6c6f7765645573657260448201527f4c6973743a20757365727320616e6420616d6f756e74206c697374206d75737460648201526f1031329039b0b6b2903632b733ba341760811b608482015260a401610805565b60ff851615806110b957508460ff166001145b6111405760405162461bcd60e51b815260206004820152604c60248201527f416c6c6f7765646c6973744552433732313a736574416c6c6f7765645573657260448201527f4c6973743a2072616e6b206973206f6e6c79203020666f7220676f6c642c203160648201526b103337b91039b4b63b32b91760a11b608482015260a401610805565b8460ff166000036111fc5760005b838110156111f6578282828181106111685761116861251b565b905060200201602081019061117d919061211f565b60ff88166000908152600d60205260408120908787858181106111a2576111a261251b565b90506020020160208101906111b791906120c4565b6001600160a01b031681526020810191909152604001600020805461ffff191661ffff92909216919091179055806111ee81612456565b91505061114e565b506112b4565b8460ff166001036112b45760005b838110156112b2578282828181106112245761122461251b565b9050602002016020810190611239919061211f565b60ff88166000908152600e602052604081209087878581811061125e5761125e61251b565b905060200201602081019061127391906120c4565b6001600160a01b031681526020810191909152604001600020805461ffff191661ffff92909216919091179055806112aa81612456565b91505061120a565b505b505050505050565b836001600160a01b03811633146112d6576112d6336114f1565b6112e285858585611872565b5050505050565b606060086112f6836118a4565b60405160200161130792919061254d565b6040516020818303038152906040529050919050565b6113256116eb565b600c805460ff909216600160b01b0260ff60b01b19909216919091179055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60008160ff166000036113ba5750600c54600160b01b900460ff166000908152600d602090815260408083206001600160a01b038616845290915290205461ffff16610673565b8160ff166001036113ff5750600c54600160b01b900460ff166000908152600e602090815260408083206001600160a01b038616845290915290205461ffff16610673565b600c5461141590600160b01b900460ff16610c2c565b9050610673565b6114246116eb565b6001600160a01b0381166114895760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610805565b61094b81611815565b6000818152600260205260409020546001600160a01b031661094b5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610805565b6daaeb6d7670e522a718067333cd4e3b1561094b57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561155e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611582919061260b565b61094b57604051633b79c77360e21b81526001600160a01b0382166004820152602401610805565b60006115b582610a5d565b9050806001600160a01b0316836001600160a01b0316036116225760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610805565b336001600160a01b038216148061163e575061163e8133611345565b6116b05760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610805565b61074683836119ad565b6116c43382611a1b565b6116e05760405162461bcd60e51b815260040161080590612628565b610746838383611a79565b6006546001600160a01b03163314610b555760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610805565b610746838383604051806020016040528060008152506112bc565b600061176b82610a5d565b90506117786000836119ad565b6001600160a01b03811660009081526003602052604081208054600192906117a19084906124ae565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b610c14828260405180602001604052806000815250611c15565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610c14338383611c48565b61187c3383611a1b565b6118985760405162461bcd60e51b815260040161080590612628565b61077084848484611d16565b6060816000036118cb5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156118f557806118df81612456565b91506118ee9050600a8361268c565b91506118cf565b60008167ffffffffffffffff811115611910576119106122b6565b6040519080825280601f01601f19166020018201604052801561193a576020820181803683370190505b5090505b84156119a55761194f6001836124ae565b915061195c600a866126a0565b6119679060306126b4565b60f81b81838151811061197c5761197c61251b565b60200101906001600160f81b031916908160001a90535061199e600a8661268c565b945061193e565b949350505050565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906119e282610a5d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611a2783610a5d565b9050806001600160a01b0316846001600160a01b03161480611a4e5750611a4e8185611345565b806119a55750836001600160a01b0316611a678461070b565b6001600160a01b031614949350505050565b826001600160a01b0316611a8c82610a5d565b6001600160a01b031614611af05760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610805565b6001600160a01b038216611b525760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610805565b611b5d6000826119ad565b6001600160a01b0383166000908152600360205260408120805460019290611b869084906124ae565b90915550506001600160a01b0382166000908152600360205260408120805460019290611bb49084906126b4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611c1f8383611d49565b611c2c6000848484611e8b565b6107465760405162461bcd60e51b8152600401610805906126c7565b816001600160a01b0316836001600160a01b031603611ca95760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610805565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611d21848484611a79565b611d2d84848484611e8b565b6107705760405162461bcd60e51b8152600401610805906126c7565b6001600160a01b038216611d9f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610805565b6000818152600260205260409020546001600160a01b031615611e045760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610805565b6001600160a01b0382166000908152600360205260408120805460019290611e2d9084906126b4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b15611f8157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611ecf903390899088908890600401612719565b6020604051808303816000875af1925050508015611f0a575060408051601f3d908101601f19168201909252611f0791810190612756565b60015b611f67573d808015611f38576040519150601f19603f3d011682016040523d82523d6000602084013e611f3d565b606091505b508051600003611f5f5760405162461bcd60e51b8152600401610805906126c7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506119a5565b506001949350505050565b6001600160e01b03198116811461094b57600080fd5b600060208284031215611fb457600080fd5b8135611fbf81611f8c565b9392505050565b60005b83811015611fe1578181015183820152602001611fc9565b50506000910152565b60008151808452612002816020860160208601611fc6565b601f01601f19169290920160200192915050565b602081526000611fbf6020830184611fea565b60006020828403121561203b57600080fd5b5035919050565b6001600160a01b038116811461094b57600080fd5b6000806040838503121561206a57600080fd5b823561207581612042565b946020939093013593505050565b60008060006060848603121561209857600080fd5b83356120a381612042565b925060208401356120b381612042565b929592945050506040919091013590565b6000602082840312156120d657600080fd5b8135611fbf81612042565b803560ff81168114610a5857600080fd5b60006020828403121561210457600080fd5b611fbf826120e1565b803561ffff81168114610a5857600080fd5b60006020828403121561213157600080fd5b611fbf8261210d565b6000806040838503121561214d57600080fd5b8235915061215d602084016120e1565b90509250929050565b801515811461094b57600080fd5b6000806040838503121561218757600080fd5b823561219281612042565b915060208301356121a281612166565b809150509250929050565b600080604083850312156121c057600080fd5b82356121cb81612042565b915061215d6020840161210d565b60008083601f8401126121eb57600080fd5b50813567ffffffffffffffff81111561220357600080fd5b6020830191508360208260051b850101111561221e57600080fd5b9250929050565b6000806000806000806080878903121561223e57600080fd5b612247876120e1565b9550612255602088016120e1565b9450604087013567ffffffffffffffff8082111561227257600080fd5b61227e8a838b016121d9565b9096509450606089013591508082111561229757600080fd5b506122a489828a016121d9565b979a9699509497509295939492505050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156122e257600080fd5b84356122ed81612042565b935060208501356122fd81612042565b925060408501359150606085013567ffffffffffffffff8082111561232157600080fd5b818701915087601f83011261233557600080fd5b813581811115612347576123476122b6565b604051601f8201601f19908116603f0116810190838211818310171561236f5761236f6122b6565b816040528281528a602084870101111561238857600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156123bf57600080fd5b82356123ca81612042565b915060208301356121a281612042565b600080604083850312156123ed57600080fd5b82356123f881612042565b915061215d602084016120e1565b600181811c9082168061241a57607f821691505b60208210810361243a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60006001820161246857612468612440565b5060010190565b60ff818116838216019081111561067357610673612440565b61ffff8181168382160280821691908281146124a6576124a6612440565b505092915050565b8181038181111561067357610673612440565b808202811582820484141761067357610673612440565b61ffff8281168282160390808211156124f3576124f3612440565b5092915050565b600061ffff80831681810361251157612511612440565b6001019392505050565b634e487b7160e01b600052603260045260246000fd5b60008151612543818560208601611fc6565b9290920192915050565b600080845481600182811c91508083168061256957607f831692505b6020808410820361258857634e487b7160e01b86526022600452602486fd5b81801561259c57600181146125b1576125de565b60ff19861689528415158502890196506125de565b60008b81526020902060005b868110156125d65781548b8201529085019083016125bd565b505084890196505b5050505050506126026125f18286612531565b64173539b7b760d91b815260050190565b95945050505050565b60006020828403121561261d57600080fd5b8151611fbf81612166565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b60008261269b5761269b612676565b500490565b6000826126af576126af612676565b500690565b8082018082111561067357610673612440565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061274c90830184611fea565b9695505050505050565b60006020828403121561276857600080fd5b8151611fbf81611f8c56fea2646970667358221220bda04e7079b0119e9e698e103134fe9057f921b8d748bce211f762e917ef8f0c64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001800000000000000000000000009bfa4c4912ca65919102e5d221404703a089e90400000000000000000000000000000000000000000000000000470de4df8200000000000000000000000000000000000000000000000000000058d15e176280000000000000000000000000000000000000000000000000000058d15e176280000000000000000000000000002c85e185e4f82b931d5e8ae9b7090e7b75def27e00000000000000000000000000000000000000000000000000000000000000174952492d444f5f4d6574726f706f6c6974616e5f4e465400000000000000000000000000000000000000000000000000000000000000000000000000000000064952492d444f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004468747470733a2f2f6d657461646174612e6e616e616b7573612e696f2f6a736f6e2f4952492d444f5f4d6574726f706f6c6974616e5f4e46542f4952492d444f5f4d505f00000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): IRI-DO_Metropolitan_NFT
Arg [1] : symbol_ (string): IRI-DO
Arg [2] : baseTokenURI (string): https://metadata.nanakusa.io/json/IRI-DO_Metropolitan_NFT/IRI-DO_MP_
Arg [3] : owner_ (address): 0x9bfA4C4912CA65919102e5d221404703a089e904
Arg [4] : priceGold (uint256): 20000000000000000
Arg [5] : priceSilver (uint256): 25000000000000000
Arg [6] : pricePublic (uint256): 25000000000000000
Arg [7] : withdrawAccount (address): 0x2C85e185e4f82b931D5e8ae9B7090E7b75deF27e
-----Encoded View---------------
16 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [3] : 0000000000000000000000009bfa4c4912ca65919102e5d221404703a089e904
Arg [4] : 00000000000000000000000000000000000000000000000000470de4df820000
Arg [5] : 0000000000000000000000000000000000000000000000000058d15e17628000
Arg [6] : 0000000000000000000000000000000000000000000000000058d15e17628000
Arg [7] : 0000000000000000000000002c85e185e4f82b931d5e8ae9b7090e7b75def27e
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000017
Arg [9] : 4952492d444f5f4d6574726f706f6c6974616e5f4e4654000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [11] : 4952492d444f0000000000000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000044
Arg [13] : 68747470733a2f2f6d657461646174612e6e616e616b7573612e696f2f6a736f
Arg [14] : 6e2f4952492d444f5f4d6574726f706f6c6974616e5f4e46542f4952492d444f
Arg [15] : 5f4d505f00000000000000000000000000000000000000000000000000000000
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.