Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 249 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 15920959 | 769 days ago | IN | 0 ETH | 0.00041236 | ||||
Set Approval For... | 15814464 | 784 days ago | IN | 0 ETH | 0.00033514 | ||||
Set Approval For... | 15807300 | 785 days ago | IN | 0 ETH | 0.00035644 | ||||
Set Approval For... | 15807291 | 785 days ago | IN | 0 ETH | 0.00072134 | ||||
Set Approval For... | 15311464 | 859 days ago | IN | 0 ETH | 0.00019563 | ||||
Set Approval For... | 15311462 | 859 days ago | IN | 0 ETH | 0.00021148 | ||||
Set Approval For... | 15291189 | 862 days ago | IN | 0 ETH | 0.00021567 | ||||
Set Approval For... | 15144591 | 885 days ago | IN | 0 ETH | 0.00064856 | ||||
Set Approval For... | 15144374 | 885 days ago | IN | 0 ETH | 0.0013549 | ||||
Set Approval For... | 15143345 | 885 days ago | IN | 0 ETH | 0.01433791 | ||||
Set Approval For... | 15124388 | 888 days ago | IN | 0 ETH | 0.00064118 | ||||
Set Approval For... | 15123783 | 888 days ago | IN | 0 ETH | 0.00211294 | ||||
Transfer From | 14741849 | 952 days ago | IN | 0 ETH | 0.00181138 | ||||
Set Approval For... | 14731529 | 953 days ago | IN | 0 ETH | 0.00183127 | ||||
Set Approval For... | 14691816 | 960 days ago | IN | 0 ETH | 0.00132781 | ||||
Set Approval For... | 14663090 | 964 days ago | IN | 0 ETH | 0.00308285 | ||||
Set Approval For... | 14568204 | 979 days ago | IN | 0 ETH | 0.00220508 | ||||
Safe Transfer Fr... | 14431168 | 1000 days ago | IN | 0 ETH | 0.00582978 | ||||
Set Approval For... | 14417596 | 1002 days ago | IN | 0 ETH | 0.00135861 | ||||
Set Approval For... | 14404395 | 1004 days ago | IN | 0 ETH | 0.00451191 | ||||
Set Approval For... | 14401090 | 1005 days ago | IN | 0 ETH | 0.00064021 | ||||
Set Approval For... | 14386672 | 1007 days ago | IN | 0 ETH | 0.00230775 | ||||
Safe Transfer Fr... | 14376599 | 1009 days ago | IN | 0 ETH | 0.00185832 | ||||
Set Approval For... | 14304425 | 1020 days ago | IN | 0 ETH | 0.00232117 | ||||
Transfer From | 14240271 | 1030 days ago | IN | 0 ETH | 0.00645853 |
Latest 9 internal transactions
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
14134490 | 1046 days ago | 45.9 ETH | ||||
14111396 | 1050 days ago | Contract Creation | 0 ETH | |||
14111386 | 1050 days ago | Contract Creation | 0 ETH | |||
14111335 | 1050 days ago | Contract Creation | 0 ETH | |||
14111329 | 1050 days ago | Contract Creation | 0 ETH | |||
14108450 | 1050 days ago | 10.1 ETH | ||||
14107889 | 1050 days ago | Contract Creation | 0 ETH | |||
14107686 | 1050 days ago | Contract Creation | 0 ETH | |||
14105392 | 1051 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Contract Name:
DragonRascal
Compiler Version
v0.8.10+commit.fc410830
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "LibPart.sol"; import "LibRoyaltiesV2.sol"; import "RoyaltiesV2.sol"; import "ERC721.sol"; import "ERC721Enumerable.sol"; import "ERC721Burnable.sol"; import "Pausable.sol"; import "Ownable.sol"; import "Counters.sol"; import "Strings.sol"; import "ReentrancyGuard.sol"; import "Whitelist.sol"; contract DragonRascal is RoyaltiesV2, ERC721, ERC721Enumerable, ERC721Burnable, Pausable, Ownable, ReentrancyGuard { bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a; uint256 public balanceLimit; // max dragons per address uint96 public royaltyRate; // in basis points, i.e. 500 == 5% address public royaltiesReceiver; // where the royalities are paid uint256 public price; // price per dragon uint256 public tokenLimit; // total available dragons string public baseURI; // the prefix for tokenURI string public suffixURI; // the suffix for the tokenURI Whitelist[] public whitelists; uint256 public mintStart; // the time public mint starts using Counters for Counters.Counter; Counters.Counter private _tokenIdCounter; constructor( string memory _initBaseURI, address _royaltiesRecipient, uint256 _mintStart ) ERC721("Dragon Rascals", "DRAGON") { balanceLimit = 10; royaltyRate = 500; // 5% royaltiesReceiver = _royaltiesRecipient; price = 100000000000000000; // 0.1 ether tokenLimit = 8888; baseURI = _initBaseURI; suffixURI = ".json"; _tokenIdCounter.increment(); // start tokenId at 1 mintStart = _mintStart; } function setMintStart(uint256 _mintStart) external onlyOwner { mintStart = _mintStart; } // start is sale period start // end is period end or 0 for no end // addresses is the array to whitelist // entries is the corresponding number of tokens availble to mint function createWhitelist( uint256 start, uint256 end, address[] calldata addresses, uint256[] calldata entries ) external onlyOwner { Whitelist whitelist = new Whitelist(start, end); whitelist.set(addresses, entries); whitelists.push(whitelist); } // Set the prefix for the tokenURI function setBaseURI(string memory _newBaseURI) external onlyOwner { baseURI = _newBaseURI; } // Set the suffix for the tokenURI function setSuffixURI(string memory _suffixURI) external onlyOwner { suffixURI = _suffixURI; } // Set the price per dragon function setPrice(uint256 _price) external onlyOwner { price = _price; } // Set the total available dragons function setTokenLimit(uint256 _tokenLimit) external onlyOwner { tokenLimit = _tokenLimit; } // Set the maximum number of tokens per address function setBalanceLimit(uint256 _balanceLimit) external onlyOwner { balanceLimit = _balanceLimit; } // Set the royalties rate in basis points function setRoyaltyRate(uint96 _royaltyRate) external onlyOwner { royaltyRate = _royaltyRate; } // Set the recipient address for royalties function setRoyaltiesReceiver(address _royaltiesReceiver) external onlyOwner { royaltiesReceiver = _royaltiesReceiver; } function withdraw(address _recipient) external payable onlyOwner { require(_recipient != address(0), "zero address"); payable(_recipient).transfer(address(this).balance); } function _isMintable(uint256 qty) private returns (bool) { for (uint8 i = 0; i < whitelists.length; i++) { if (whitelists[i].isMintable(qty, msg.sender)) { return true; } } // not on a whitelist return (block.timestamp > mintStart) && ((balanceOf(msg.sender) + qty) <= balanceLimit); } function _doMint(address to, uint256 qty) private { for (uint256 i = 0; i < qty; i++) { uint256 tokenId = _tokenIdCounter.current(); _tokenIdCounter.increment(); _safeMint(to, tokenId); emit RoyaltiesSet(tokenId, _getRoyalties(tokenId)); emit Transfer(owner(), to, tokenId); } } function airdrop(address to, uint256 qty) external onlyOwner { _doMint(to, qty); } // Mint qty tokens to address to function mint(address to, uint256 qty) external payable nonReentrant { require((qty + totalSupply()) <= tokenLimit, "sold out"); require(_isMintable(qty), "denied"); // skip payment check for owner so we can airdop require(msg.value >= (price * qty), "insufficient funds"); _doMint(to, qty); } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } // the tokenURI is the concat of baseURI + tokenId + suffixURI function tokenURI(uint256 tokenId) public view override(ERC721) returns (string memory) { ownerOf(tokenId); // raises on non-existent tokenId return string( abi.encodePacked(baseURI, Strings.toString(tokenId), suffixURI) ); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable) returns (bool) { return (interfaceId == LibRoyaltiesV2._INTERFACE_ID_ROYALTIES) || (interfaceId == _INTERFACE_ID_ERC2981) || super.supportsInterface(interfaceId); } // ERC2981 function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view returns (address receiver, uint256 royaltyAmount) { return (royaltiesReceiver, (_salePrice * royaltyRate) / 10000); } function _getRoyalties(uint256 tokenId) private view returns (LibPart.Part[] memory) { LibPart.Part[] memory _royalties = new LibPart.Part[](1); _royalties[0].value = royaltyRate; _royalties[0].account = payable(royaltiesReceiver); return _royalties; } function getRaribleV2Royalties(uint256 id) external view override returns (LibPart.Part[] memory) { return _getRoyalties(id); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library LibPart { bytes32 public constant TYPE_HASH = keccak256("Part(address account,uint96 value)"); struct Part { address payable account; uint96 value; } function hash(Part memory part) internal pure returns (bytes32) { return keccak256(abi.encode(TYPE_HASH, part.account, part.value)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library LibRoyaltiesV2 { /* * bytes4(keccak256('getRoyalties(LibAsset.AssetType)')) == 0xcad96cca */ bytes4 constant _INTERFACE_ID_ROYALTIES = 0xcad96cca; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "LibPart.sol"; interface RoyaltiesV2 { event RoyaltiesSet(uint256 tokenId, LibPart.Part[] royalties); function getRaribleV2Royalties(uint256 id) external view returns (LibPart.Part[] memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC721.sol"; import "IERC721Receiver.sol"; import "IERC721Metadata.sol"; import "Address.sol"; import "Context.sol"; import "Strings.sol"; import "ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { 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 {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev 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.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "ERC721.sol"; import "IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "ERC721.sol"; import "Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "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() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT 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.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Whitelist { mapping(address => uint256) public whitelist; // address => count permitted during presale uint256 public start; // sale period start uint256 public end; // optional sale period end // _end == 0 skips period end check constructor(uint256 _start, uint256 _end) { start = _start; end = _end; } function setTimes(uint256 _start, uint256 _end) external { start = _start; end = _end; } function set(address[] calldata addresses, uint256[] calldata entries) external { require( addresses.length == entries.length, "addresses length != entries length" ); for (uint256 i = 0; i < addresses.length; i++) { require(addresses[i] != address(0), "zero"); whitelist[addresses[i]] = entries[i]; } } function isMintable(uint256 qty, address to) public returns (bool) { // if we're in the whitelist period if ( (block.timestamp > start) && (end == 0 || (block.timestamp < end)) ) { // grab the current balance for this address uint256 balance = whitelist[to]; // if the requested qty is greater than the balance if (qty > balance) { return false; // nope } // update the balance for this address whitelist[to] = balance - qty; return true; // yep! } return false; } }
{ "evmVersion": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "libraries": { "DragonRascal.sol": {} }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_initBaseURI","type":"string"},{"internalType":"address","name":"_royaltiesRecipient","type":"address"},{"internalType":"uint256","name":"_mintStart","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"indexed":false,"internalType":"struct LibPart.Part[]","name":"royalties","type":"tuple[]"}],"name":"RoyaltiesSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"balanceLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"},{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"entries","type":"uint256[]"}],"name":"createWhitelist","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":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getRaribleV2Royalties","outputs":[{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"internalType":"struct LibPart.Part[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltiesReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyRate","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_balanceLimit","type":"uint256"}],"name":"setBalanceLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintStart","type":"uint256"}],"name":"setMintStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_royaltiesReceiver","type":"address"}],"name":"setRoyaltiesReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint96","name":"_royaltyRate","type":"uint96"}],"name":"setRoyaltyRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_suffixURI","type":"string"}],"name":"setSuffixURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenLimit","type":"uint256"}],"name":"setTokenLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"suffixURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"whitelists","outputs":[{"internalType":"contract Whitelist","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200387f3803806200387f833981016040819052620000349162000296565b604080518082018252600e81526d447261676f6e2052617363616c7360901b602080830191825283518085019094526006845265222920a3a7a760d11b9084015281519192916200008891600091620001bd565b5080516200009e906001906020840190620001bd565b5050600a805460ff1916905550620000b6336200015a565b6001600b55600a600c556001600160a01b0382166c01000000000000000000000000026101f417600d5567016345785d8a0000600e556122b8600f55825162000107906010906020860190620001bd565b5060408051808201909152600580825264173539b7b760d91b60209092019182526200013691601191620001bd565b506200014e6014620001b460201b620017c01760201c565b60135550620003cd9050565b600a80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80546001019055565b828054620001cb9062000390565b90600052602060002090601f016020900481019282620001ef57600085556200023a565b82601f106200020a57805160ff19168380011785556200023a565b828001600101855582156200023a579182015b828111156200023a5782518255916020019190600101906200021d565b50620002489291506200024c565b5090565b5b808211156200024857600081556001016200024d565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200029157600080fd5b919050565b600080600060608486031215620002ac57600080fd5b83516001600160401b0380821115620002c457600080fd5b818601915086601f830112620002d957600080fd5b815181811115620002ee57620002ee62000263565b604051601f8201601f19908116603f0116810190838211818310171562000319576200031962000263565b816040528281526020935089848487010111156200033657600080fd5b600091505b828210156200035a57848201840151818301850152908301906200033b565b828211156200036c5760008484830101525b96506200037e91505086820162000279565b93505050604084015190509250925092565b600181811c90821680620003a557607f821691505b60208210811415620003c757634e487b7160e01b600052602260045260246000fd5b50919050565b6134a280620003dd6000396000f3fe6080604052600436106200029b5760003560e01c8063715018a6116200015f578063b3bcea4811620000c5578063c87b56dd1162000084578063c87b56dd14620007f7578063cad96cca146200081c578063e985e9c51462000850578063f2fde38b146200089d578063f520c6c114620008c2578063fe4d5add14620008e757600080fd5b8063b3bcea481462000735578063b5143715146200074d578063b88d4fde1462000772578063c0e68fec1462000797578063c4d1510d14620007bc57600080fd5b80638da5cb5b116200011e5780638da5cb5b146200066d57806391b7f5ed146200069257806395d89b4114620006b7578063a035b1fe14620006cf578063a22cb46514620006e7578063a3a51bd5146200070c57600080fd5b8063715018a614620005ce578063762bb28214620005e65780637960c27f14620005fe5780638ba4cc3c14620006235780638be18e57146200064857600080fd5b806340c10f19116200020557806355f804b311620001c457806355f804b3146200051557806356c7627e146200053a5780635c975abb14620005525780636352211e146200056c5780636c0360eb146200059157806370a0823114620005a957600080fd5b806340c10f19146200047857806342842e0e146200048f57806342966c6814620004b45780634f6ccce714620004d957806351cff8d914620004fe57600080fd5b806318160ddd116200025e57806318160ddd146200038b57806323b872dd14620003ac578063255e468514620003d15780632a55205a14620003e95780632ce0a6ee146200042e5780632f745c59146200045357600080fd5b806301ffc9a714620002a057806306fdde0314620002da578063081812fc1462000301578063093cde58146200033f578063095ea7b31462000366575b600080fd5b348015620002ad57600080fd5b50620002c5620002bf36600462002636565b6200090c565b60405190151581526020015b60405180910390f35b348015620002e757600080fd5b50620002f262000956565b604051620002d19190620026ba565b3480156200030e57600080fd5b506200032662000320366004620026cf565b620009f0565b6040516001600160a01b039091168152602001620002d1565b3480156200034c57600080fd5b50620003646200035e366004620026e9565b62000a8b565b005b3480156200037357600080fd5b50620003646200038536600462002731565b62000ae5565b3480156200039857600080fd5b506008545b604051908152602001620002d1565b348015620003b957600080fd5b5062000364620003cb3660046200275e565b62000c06565b348015620003de57600080fd5b506200039d60135481565b348015620003f657600080fd5b506200040e620004083660046200279f565b62000c3f565b604080516001600160a01b039093168352602083019190915201620002d1565b3480156200043b57600080fd5b50620003646200044d366004620026cf565b62000c89565b3480156200046057600080fd5b506200039d6200047236600462002731565b62000cc1565b620003646200048936600462002731565b62000d5b565b3480156200049c57600080fd5b5062000364620004ae3660046200275e565b62000eaf565b348015620004c157600080fd5b5062000364620004d3366004620026cf565b62000ecc565b348015620004e657600080fd5b506200039d620004f8366004620026cf565b62000f4c565b620003646200050f366004620027c2565b62000fe5565b3480156200052257600080fd5b50620003646200053436600462002873565b62001099565b3480156200054757600080fd5b506200039d600f5481565b3480156200055f57600080fd5b50600a5460ff16620002c5565b3480156200057957600080fd5b50620003266200058b366004620026cf565b620010e1565b3480156200059e57600080fd5b50620002f26200115a565b348015620005b657600080fd5b506200039d620005c8366004620027c2565b620011f0565b348015620005db57600080fd5b506200036462001279565b348015620005f357600080fd5b506200039d600c5481565b3480156200060b57600080fd5b50620003646200061d366004620026cf565b620012ba565b3480156200063057600080fd5b50620003646200064236600462002731565b620012f2565b3480156200065557600080fd5b50620003646200066736600462002873565b62001331565b3480156200067a57600080fd5b50600a5461010090046001600160a01b031662000326565b3480156200069f57600080fd5b5062000364620006b1366004620026cf565b62001379565b348015620006c457600080fd5b50620002f2620013b1565b348015620006dc57600080fd5b506200039d600e5481565b348015620006f457600080fd5b506200036462000706366004620028d0565b620013c2565b3480156200071957600080fd5b50600d546200032690600160601b90046001600160a01b031681565b3480156200074257600080fd5b50620002f262001489565b3480156200075a57600080fd5b50620003646200076c366004620027c2565b62001498565b3480156200077f57600080fd5b5062000364620007913660046200290c565b620014f3565b348015620007a457600080fd5b5062000364620007b6366004620026cf565b62001532565b348015620007c957600080fd5b50600d54620007de906001600160601b031681565b6040516001600160601b039091168152602001620002d1565b3480156200080457600080fd5b50620002f262000816366004620026cf565b6200156a565b3480156200082957600080fd5b50620008416200083b366004620026cf565b620015b1565b604051620002d19190620029eb565b3480156200085d57600080fd5b50620002c56200086f36600462002a00565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015620008aa57600080fd5b5062000364620008bc366004620027c2565b620015be565b348015620008cf57600080fd5b5062000364620008e136600462002a80565b62001663565b348015620008f457600080fd5b506200032662000906366004620026cf565b62001795565b60006001600160e01b0319821663656cb66560e11b14806200093e57506001600160e01b0319821663152a902d60e11b145b806200095057506200095082620017c9565b92915050565b606060008054620009679062002b0a565b80601f0160208091040260200160405190810160405280929190818152602001828054620009959062002b0a565b8015620009e65780601f10620009ba57610100808354040283529160200191620009e6565b820191906000526020600020905b815481529060010190602001808311620009c857829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031662000a6f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600a546001600160a01b0361010090910416331462000abe5760405162461bcd60e51b815260040162000a669062002b47565b600d80546bffffffffffffffffffffffff19166001600160601b0392909216919091179055565b600062000af282620010e1565b9050806001600160a01b0316836001600160a01b0316141562000b625760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840162000a66565b336001600160a01b038216148062000b81575062000b8181336200086f565b62000bf55760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840162000a66565b62000c018383620017f1565b505050565b62000c13335b8262001861565b62000c325760405162461bcd60e51b815260040162000a669062002b7c565b62000c0183838362001960565b600d5460009081906001600160a01b03600160601b820416906127109062000c71906001600160601b03168662002be3565b62000c7d919062002c1b565b915091505b9250929050565b600a546001600160a01b0361010090910416331462000cbc5760405162461bcd60e51b815260040162000a669062002b47565b600c55565b600062000cce83620011f0565b821062000d325760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840162000a66565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6002600b54141562000db05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640162000a66565b6002600b55600f5460085462000dc7908362002c32565b111562000e025760405162461bcd60e51b81526020600482015260086024820152671cdbdb19081bdd5d60c21b604482015260640162000a66565b62000e0d8162001b08565b62000e445760405162461bcd60e51b815260206004820152600660248201526519195b9a595960d21b604482015260640162000a66565b80600e5462000e54919062002be3565b34101562000e9a5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b604482015260640162000a66565b62000ea6828262001c09565b50506001600b55565b62000c0183838360405180602001604052806000815250620014f3565b62000ed73362000c0c565b62000f3e5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b606482015260840162000a66565b62000f498162001ce1565b50565b600062000f5860085490565b821062000fbd5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840162000a66565b6008828154811062000fd35762000fd362002c4d565b90600052602060002001549050919050565b600a546001600160a01b03610100909104163314620010185760405162461bcd60e51b815260040162000a669062002b47565b6001600160a01b0381166200105f5760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b604482015260640162000a66565b6040516001600160a01b038216904780156108fc02916000818181858888f1935050505015801562001095573d6000803e3d6000fd5b5050565b600a546001600160a01b03610100909104163314620010cc5760405162461bcd60e51b815260040162000a669062002b47565b8051620010959060109060208401906200256b565b6000818152600260205260408120546001600160a01b031680620009505760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840162000a66565b60108054620011699062002b0a565b80601f0160208091040260200160405190810160405280929190818152602001828054620011979062002b0a565b8015620011e85780601f10620011bc57610100808354040283529160200191620011e8565b820191906000526020600020905b815481529060010190602001808311620011ca57829003601f168201915b505050505081565b60006001600160a01b0382166200125d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840162000a66565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03610100909104163314620012ac5760405162461bcd60e51b815260040162000a669062002b47565b620012b8600062001d7f565b565b600a546001600160a01b03610100909104163314620012ed5760405162461bcd60e51b815260040162000a669062002b47565b601355565b600a546001600160a01b03610100909104163314620013255760405162461bcd60e51b815260040162000a669062002b47565b62001095828262001c09565b600a546001600160a01b03610100909104163314620013645760405162461bcd60e51b815260040162000a669062002b47565b8051620010959060119060208401906200256b565b600a546001600160a01b03610100909104163314620013ac5760405162461bcd60e51b815260040162000a669062002b47565b600e55565b606060018054620009679062002b0a565b6001600160a01b0382163314156200141d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640162000a66565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60118054620011699062002b0a565b600a546001600160a01b03610100909104163314620014cb5760405162461bcd60e51b815260040162000a669062002b47565b600d80546001600160a01b03909216600160601b026001600160601b03909216919091179055565b620014ff338362001861565b6200151e5760405162461bcd60e51b815260040162000a669062002b7c565b6200152c8484848462001dd9565b50505050565b600a546001600160a01b03610100909104163314620015655760405162461bcd60e51b815260040162000a669062002b47565b600f55565b60606200157782620010e1565b506010620015858362001e13565b60116040516020016200159b9392919062002d05565b6040516020818303038152906040529050919050565b6060620009508262001f29565b600a546001600160a01b03610100909104163314620015f15760405162461bcd60e51b815260040162000a669062002b47565b6001600160a01b038116620016585760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840162000a66565b62000f498162001d7f565b600a546001600160a01b03610100909104163314620016965760405162461bcd60e51b815260040162000a669062002b47565b60008686604051620016a890620025fa565b9182526020820152604001604051809103906000f080158015620016d0573d6000803e3d6000fd5b50604051630f1664f360e31b81529091506001600160a01b038216906378b32798906200170890889088908890889060040162002d3e565b600060405180830381600087803b1580156200172357600080fd5b505af115801562001738573d6000803e3d6000fd5b5050601280546001810182556000919091527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec34440180546001600160a01b0319166001600160a01b0394909416939093179092555050505050505050565b60128181548110620017a657600080fd5b6000918252602090912001546001600160a01b0316905081565b80546001019055565b60006001600160e01b0319821663780e9d6360e01b1480620009505750620009508262001fff565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906200182882620010e1565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316620018dc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840162000a66565b6000620018e983620010e1565b9050806001600160a01b0316846001600160a01b03161480620019275750836001600160a01b03166200191c84620009f0565b6001600160a01b0316145b806200195857506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166200197582620010e1565b6001600160a01b031614620019df5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840162000a66565b6001600160a01b03821662001a435760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840162000a66565b62001a5083838362002052565b62001a5d600082620017f1565b6001600160a01b038316600090815260036020526040812080546001929062001a8890849062002dc5565b90915550506001600160a01b038216600090815260036020526040812080546001929062001ab890849062002c32565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716916000805160206200344d83398151915291a4505050565b6000805b60125460ff8216101562001bd85760128160ff168154811062001b335762001b3362002c4d565b600091825260209091200154604051631601334b60e11b8152600481018590523360248201526001600160a01b0390911690632c026696906044016020604051808303816000875af115801562001b8e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001bb4919062002ddf565b1562001bc35750600192915050565b8062001bcf8162002dff565b91505062001b0c565b5060135442118015620009505750600c548262001bf533620011f0565b62001c01919062002c32565b111592915050565b60005b8181101562000c0157600062001c2160145490565b905062001c32601480546001019055565b62001c3e84826200205f565b7f3fa96d7b6bcbfe71ef171666d84db3cf52fa2d1c8afdb1cc8e486177f208b7df8162001c6b8362001f29565b60405162001c7b92919062002e22565b60405180910390a180846001600160a01b031662001ca7600a546001600160a01b036101009091041690565b6001600160a01b03166000805160206200344d83398151915260405160405180910390a4508062001cd88162002e3d565b91505062001c0c565b600062001cee82620010e1565b905062001cfe8160008462002052565b62001d0b600083620017f1565b6001600160a01b038116600090815260036020526040812080546001929062001d3690849062002dc5565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416906000805160206200344d833981519152908390a45050565b600a80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b62001de684848462001960565b62001df4848484846200207b565b6200152c5760405162461bcd60e51b815260040162000a669062002e5b565b60608162001e385750506040805180820190915260018152600360fc1b602082015290565b8160005b811562001e68578062001e4f8162002e3d565b915062001e609050600a8362002c1b565b915062001e3c565b60008167ffffffffffffffff81111562001e865762001e86620027e0565b6040519080825280601f01601f19166020018201604052801562001eb1576020820181803683370190505b5090505b8415620019585762001ec960018362002dc5565b915062001ed8600a8662002ead565b62001ee590603062002c32565b60f81b81838151811062001efd5762001efd62002c4d565b60200101906001600160f81b031916908160001a90535062001f21600a8662002c1b565b945062001eb5565b60408051600180825281830190925260609160009190816020015b604080518082019091526000808252602082015281526020019060019003908162001f44575050600d5481519192506001600160601b031690829060009062001f915762001f9162002c4d565b6020026020010151602001906001600160601b031690816001600160601b031681525050600d600c9054906101000a90046001600160a01b03168160008151811062001fe15762001fe162002c4d565b60209081029190910101516001600160a01b03909116905292915050565b60006001600160e01b031982166380ac58cd60e01b14806200203157506001600160e01b03198216635b5e139f60e01b145b806200095057506301ffc9a760e01b6001600160e01b031983161462000950565b62000c0183838362002186565b620010958282604051806020016040528060008152506200224a565b60006001600160a01b0384163b156200217b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290620020c290339089908890889060040162002ec4565b6020604051808303816000875af192505050801562002100575060408051601f3d908101601f19168201909252620020fd9181019062002f03565b60015b62002160573d80801562002131576040519150601f19603f3d011682016040523d82523d6000602084013e62002136565b606091505b508051620021585760405162461bcd60e51b815260040162000a669062002e5b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905062001958565b506001949350505050565b6001600160a01b038316620021e457620021de81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6200220a565b816001600160a01b0316836001600160a01b0316146200220a576200220a838262002284565b6001600160a01b038216620022245762000c018162002326565b826001600160a01b0316826001600160a01b03161462000c015762000c018282620023e0565b62002256838362002426565b6200226560008484846200207b565b62000c015760405162461bcd60e51b815260040162000a669062002e5b565b600060016200229384620011f0565b6200229f919062002dc5565b600083815260076020526040902054909150808214620022f3576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906200233a9060019062002dc5565b6000838152600960205260408120546008805493945090928490811062002365576200236562002c4d565b90600052602060002001549050806008838154811062002389576200238962002c4d565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480620023c457620023c462002f23565b6001900381819060005260206000200160009055905550505050565b6000620023ed83620011f0565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166200247e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640162000a66565b6000818152600260205260409020546001600160a01b031615620024e55760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640162000a66565b620024f36000838362002052565b6001600160a01b03821660009081526003602052604081208054600192906200251e90849062002c32565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392906000805160206200344d833981519152908290a45050565b828054620025799062002b0a565b90600052602060002090601f0160209004810192826200259d5760008555620025e8565b82601f10620025b857805160ff1916838001178555620025e8565b82800160010185558215620025e8579182015b82811115620025e8578251825591602001919060010190620025cb565b50620025f692915062002608565b5090565b6105138062002f3a83390190565b5b80821115620025f6576000815560010162002609565b6001600160e01b03198116811462000f4957600080fd5b6000602082840312156200264957600080fd5b813562002656816200261f565b9392505050565b60005b838110156200267a57818101518382015260200162002660565b838111156200152c5750506000910152565b60008151808452620026a68160208601602086016200265d565b601f01601f19169290920160200192915050565b6020815260006200265660208301846200268c565b600060208284031215620026e257600080fd5b5035919050565b600060208284031215620026fc57600080fd5b81356001600160601b03811681146200265657600080fd5b80356001600160a01b03811681146200272c57600080fd5b919050565b600080604083850312156200274557600080fd5b620027508362002714565b946020939093013593505050565b6000806000606084860312156200277457600080fd5b6200277f8462002714565b92506200278f6020850162002714565b9150604084013590509250925092565b60008060408385031215620027b357600080fd5b50508035926020909101359150565b600060208284031215620027d557600080fd5b620026568262002714565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115620028145762002814620027e0565b604051601f8501601f19908116603f011681019082821181831017156200283f576200283f620027e0565b816040528093508581528686860111156200285957600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156200288657600080fd5b813567ffffffffffffffff8111156200289e57600080fd5b8201601f81018413620028b057600080fd5b6200195884823560208401620027f6565b801515811462000f4957600080fd5b60008060408385031215620028e457600080fd5b620028ef8362002714565b915060208301356200290181620028c1565b809150509250929050565b600080600080608085870312156200292357600080fd5b6200292e8562002714565b93506200293e6020860162002714565b925060408501359150606085013567ffffffffffffffff8111156200296257600080fd5b8501601f810187136200297457600080fd5b6200298587823560208401620027f6565b91505092959194509250565b600081518084526020808501945080840160005b83811015620029e057815180516001600160a01b031688528301516001600160601b03168388015260409096019590820190600101620029a5565b509495945050505050565b60208152600062002656602083018462002991565b6000806040838503121562002a1457600080fd5b62002a1f8362002714565b915062002a2f6020840162002714565b90509250929050565b60008083601f84011262002a4b57600080fd5b50813567ffffffffffffffff81111562002a6457600080fd5b6020830191508360208260051b850101111562000c8257600080fd5b6000806000806000806080878903121562002a9a57600080fd5b8635955060208701359450604087013567ffffffffffffffff8082111562002ac157600080fd5b62002acf8a838b0162002a38565b9096509450606089013591508082111562002ae957600080fd5b5062002af889828a0162002a38565b979a9699509497509295939492505050565b600181811c9082168062002b1f57607f821691505b6020821081141562002b4157634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161562002c005762002c0062002bcd565b500290565b634e487b7160e01b600052601260045260246000fd5b60008262002c2d5762002c2d62002c05565b500490565b6000821982111562002c485762002c4862002bcd565b500190565b634e487b7160e01b600052603260045260246000fd5b8054600090600181811c908083168062002c7e57607f831692505b602080841082141562002ca157634e487b7160e01b600052602260045260246000fd5b81801562002cb8576001811462002cca5762002cf9565b60ff1986168952848901965062002cf9565b60008881526020902060005b8681101562002cf15781548b82015290850190830162002cd6565b505084890196505b50505050505092915050565b600062002d13828662002c63565b845162002d258183602089016200265d565b62002d338183018662002c63565b979650505050505050565b6040808252810184905260008560608301825b8781101562002d83576001600160a01b0362002d6d8462002714565b1682526020928301929091019060010162002d51565b5083810360208501528481526001600160fb1b0385111562002da457600080fd5b8460051b915081866020830137600091016020019081529695505050505050565b60008282101562002dda5762002dda62002bcd565b500390565b60006020828403121562002df257600080fd5b81516200265681620028c1565b600060ff821660ff81141562002e195762002e1962002bcd565b60010192915050565b82815260406020820152600062001958604083018462002991565b600060001982141562002e545762002e5462002bcd565b5060010190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008262002ebf5762002ebf62002c05565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009062002ef9908301846200268c565b9695505050505050565b60006020828403121562002f1657600080fd5b815162002656816200261f565b634e487b7160e01b600052603160045260246000fdfe608060405234801561001057600080fd5b5060405161051338038061051383398101604081905261002f9161003d565b600191909155600255610061565b6000806040838503121561005057600080fd5b505080516020909101519092909150565b6104a3806100706000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c806322434836146100675780632c0266961461008257806378b32798146100aa5780639b19251a146100bd578063be9a6555146100eb578063efbe1c1c146100f4575b600080fd5b6100806100753660046102cb565b600191909155600255565b005b610095610090366004610309565b6100fd565b60405190151581526020015b60405180910390f35b6100806100b8366004610381565b610182565b6100dd6100cb3660046103ed565b60006020819052908152604090205481565b6040519081526020016100a1565b6100dd60015481565b6100dd60025481565b60006001544211801561011b5750600254158061011b575060025442105b15610178576001600160a01b0382166000908152602081905260409020548084111561014b57600091505061017c565b6101558482610425565b6001600160a01b038416600090815260208190526040902055506001905061017c565b5060005b92915050565b8281146101e15760405162461bcd60e51b815260206004820152602260248201527f616464726573736573206c656e67746820213d20656e7472696573206c656e676044820152610e8d60f31b60648201526084015b60405180910390fd5b60005b838110156102c45760008585838181106102005761020061043c565b905060200201602081019061021591906103ed565b6001600160a01b031614156102555760405162461bcd60e51b81526004016101d8906020808252600490820152637a65726f60e01b604082015260600190565b8282828181106102675761026761043c565b905060200201356000808787858181106102835761028361043c565b905060200201602081019061029891906103ed565b6001600160a01b03168152602081019190915260400160002055806102bc81610452565b9150506101e4565b5050505050565b600080604083850312156102de57600080fd5b50508035926020909101359150565b80356001600160a01b038116811461030457600080fd5b919050565b6000806040838503121561031c57600080fd5b8235915061032c602084016102ed565b90509250929050565b60008083601f84011261034757600080fd5b50813567ffffffffffffffff81111561035f57600080fd5b6020830191508360208260051b850101111561037a57600080fd5b9250929050565b6000806000806040858703121561039757600080fd5b843567ffffffffffffffff808211156103af57600080fd5b6103bb88838901610335565b909650945060208701359150808211156103d457600080fd5b506103e187828801610335565b95989497509550505050565b6000602082840312156103ff57600080fd5b610408826102ed565b9392505050565b634e487b7160e01b600052601160045260246000fd5b6000828210156104375761043761040f565b500390565b634e487b7160e01b600052603260045260246000fd5b60006000198214156104665761046661040f565b506001019056fea26469706673582212208c203146a7509b2c31d75f3d866c0c78dd7443c5ad0ce9626c5f1850afb46b3b64736f6c634300080a0033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212209a43a27941d27210fc65511745f4263b939b095c8d2f22b86b79bcd0af5f6e4664736f6c634300080a003300000000000000000000000000000000000000000000000000000000000000600000000000000000000000004a40ecf453d19da0c63d18dc048d8531f1030c580000000000000000000000000000000000000000000000000000000061fa8e60000000000000000000000000000000000000000000000000000000000000002868747470733a2f2f647261676f6e2d72617363616c732e73332e616d617a6f6e6177732e636f6d2f000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106200029b5760003560e01c8063715018a6116200015f578063b3bcea4811620000c5578063c87b56dd1162000084578063c87b56dd14620007f7578063cad96cca146200081c578063e985e9c51462000850578063f2fde38b146200089d578063f520c6c114620008c2578063fe4d5add14620008e757600080fd5b8063b3bcea481462000735578063b5143715146200074d578063b88d4fde1462000772578063c0e68fec1462000797578063c4d1510d14620007bc57600080fd5b80638da5cb5b116200011e5780638da5cb5b146200066d57806391b7f5ed146200069257806395d89b4114620006b7578063a035b1fe14620006cf578063a22cb46514620006e7578063a3a51bd5146200070c57600080fd5b8063715018a614620005ce578063762bb28214620005e65780637960c27f14620005fe5780638ba4cc3c14620006235780638be18e57146200064857600080fd5b806340c10f19116200020557806355f804b311620001c457806355f804b3146200051557806356c7627e146200053a5780635c975abb14620005525780636352211e146200056c5780636c0360eb146200059157806370a0823114620005a957600080fd5b806340c10f19146200047857806342842e0e146200048f57806342966c6814620004b45780634f6ccce714620004d957806351cff8d914620004fe57600080fd5b806318160ddd116200025e57806318160ddd146200038b57806323b872dd14620003ac578063255e468514620003d15780632a55205a14620003e95780632ce0a6ee146200042e5780632f745c59146200045357600080fd5b806301ffc9a714620002a057806306fdde0314620002da578063081812fc1462000301578063093cde58146200033f578063095ea7b31462000366575b600080fd5b348015620002ad57600080fd5b50620002c5620002bf36600462002636565b6200090c565b60405190151581526020015b60405180910390f35b348015620002e757600080fd5b50620002f262000956565b604051620002d19190620026ba565b3480156200030e57600080fd5b506200032662000320366004620026cf565b620009f0565b6040516001600160a01b039091168152602001620002d1565b3480156200034c57600080fd5b50620003646200035e366004620026e9565b62000a8b565b005b3480156200037357600080fd5b50620003646200038536600462002731565b62000ae5565b3480156200039857600080fd5b506008545b604051908152602001620002d1565b348015620003b957600080fd5b5062000364620003cb3660046200275e565b62000c06565b348015620003de57600080fd5b506200039d60135481565b348015620003f657600080fd5b506200040e620004083660046200279f565b62000c3f565b604080516001600160a01b039093168352602083019190915201620002d1565b3480156200043b57600080fd5b50620003646200044d366004620026cf565b62000c89565b3480156200046057600080fd5b506200039d6200047236600462002731565b62000cc1565b620003646200048936600462002731565b62000d5b565b3480156200049c57600080fd5b5062000364620004ae3660046200275e565b62000eaf565b348015620004c157600080fd5b5062000364620004d3366004620026cf565b62000ecc565b348015620004e657600080fd5b506200039d620004f8366004620026cf565b62000f4c565b620003646200050f366004620027c2565b62000fe5565b3480156200052257600080fd5b50620003646200053436600462002873565b62001099565b3480156200054757600080fd5b506200039d600f5481565b3480156200055f57600080fd5b50600a5460ff16620002c5565b3480156200057957600080fd5b50620003266200058b366004620026cf565b620010e1565b3480156200059e57600080fd5b50620002f26200115a565b348015620005b657600080fd5b506200039d620005c8366004620027c2565b620011f0565b348015620005db57600080fd5b506200036462001279565b348015620005f357600080fd5b506200039d600c5481565b3480156200060b57600080fd5b50620003646200061d366004620026cf565b620012ba565b3480156200063057600080fd5b50620003646200064236600462002731565b620012f2565b3480156200065557600080fd5b50620003646200066736600462002873565b62001331565b3480156200067a57600080fd5b50600a5461010090046001600160a01b031662000326565b3480156200069f57600080fd5b5062000364620006b1366004620026cf565b62001379565b348015620006c457600080fd5b50620002f2620013b1565b348015620006dc57600080fd5b506200039d600e5481565b348015620006f457600080fd5b506200036462000706366004620028d0565b620013c2565b3480156200071957600080fd5b50600d546200032690600160601b90046001600160a01b031681565b3480156200074257600080fd5b50620002f262001489565b3480156200075a57600080fd5b50620003646200076c366004620027c2565b62001498565b3480156200077f57600080fd5b5062000364620007913660046200290c565b620014f3565b348015620007a457600080fd5b5062000364620007b6366004620026cf565b62001532565b348015620007c957600080fd5b50600d54620007de906001600160601b031681565b6040516001600160601b039091168152602001620002d1565b3480156200080457600080fd5b50620002f262000816366004620026cf565b6200156a565b3480156200082957600080fd5b50620008416200083b366004620026cf565b620015b1565b604051620002d19190620029eb565b3480156200085d57600080fd5b50620002c56200086f36600462002a00565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015620008aa57600080fd5b5062000364620008bc366004620027c2565b620015be565b348015620008cf57600080fd5b5062000364620008e136600462002a80565b62001663565b348015620008f457600080fd5b506200032662000906366004620026cf565b62001795565b60006001600160e01b0319821663656cb66560e11b14806200093e57506001600160e01b0319821663152a902d60e11b145b806200095057506200095082620017c9565b92915050565b606060008054620009679062002b0a565b80601f0160208091040260200160405190810160405280929190818152602001828054620009959062002b0a565b8015620009e65780601f10620009ba57610100808354040283529160200191620009e6565b820191906000526020600020905b815481529060010190602001808311620009c857829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031662000a6f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600a546001600160a01b0361010090910416331462000abe5760405162461bcd60e51b815260040162000a669062002b47565b600d80546bffffffffffffffffffffffff19166001600160601b0392909216919091179055565b600062000af282620010e1565b9050806001600160a01b0316836001600160a01b0316141562000b625760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840162000a66565b336001600160a01b038216148062000b81575062000b8181336200086f565b62000bf55760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840162000a66565b62000c018383620017f1565b505050565b62000c13335b8262001861565b62000c325760405162461bcd60e51b815260040162000a669062002b7c565b62000c0183838362001960565b600d5460009081906001600160a01b03600160601b820416906127109062000c71906001600160601b03168662002be3565b62000c7d919062002c1b565b915091505b9250929050565b600a546001600160a01b0361010090910416331462000cbc5760405162461bcd60e51b815260040162000a669062002b47565b600c55565b600062000cce83620011f0565b821062000d325760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840162000a66565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6002600b54141562000db05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640162000a66565b6002600b55600f5460085462000dc7908362002c32565b111562000e025760405162461bcd60e51b81526020600482015260086024820152671cdbdb19081bdd5d60c21b604482015260640162000a66565b62000e0d8162001b08565b62000e445760405162461bcd60e51b815260206004820152600660248201526519195b9a595960d21b604482015260640162000a66565b80600e5462000e54919062002be3565b34101562000e9a5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b604482015260640162000a66565b62000ea6828262001c09565b50506001600b55565b62000c0183838360405180602001604052806000815250620014f3565b62000ed73362000c0c565b62000f3e5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b606482015260840162000a66565b62000f498162001ce1565b50565b600062000f5860085490565b821062000fbd5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840162000a66565b6008828154811062000fd35762000fd362002c4d565b90600052602060002001549050919050565b600a546001600160a01b03610100909104163314620010185760405162461bcd60e51b815260040162000a669062002b47565b6001600160a01b0381166200105f5760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b604482015260640162000a66565b6040516001600160a01b038216904780156108fc02916000818181858888f1935050505015801562001095573d6000803e3d6000fd5b5050565b600a546001600160a01b03610100909104163314620010cc5760405162461bcd60e51b815260040162000a669062002b47565b8051620010959060109060208401906200256b565b6000818152600260205260408120546001600160a01b031680620009505760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840162000a66565b60108054620011699062002b0a565b80601f0160208091040260200160405190810160405280929190818152602001828054620011979062002b0a565b8015620011e85780601f10620011bc57610100808354040283529160200191620011e8565b820191906000526020600020905b815481529060010190602001808311620011ca57829003601f168201915b505050505081565b60006001600160a01b0382166200125d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840162000a66565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03610100909104163314620012ac5760405162461bcd60e51b815260040162000a669062002b47565b620012b8600062001d7f565b565b600a546001600160a01b03610100909104163314620012ed5760405162461bcd60e51b815260040162000a669062002b47565b601355565b600a546001600160a01b03610100909104163314620013255760405162461bcd60e51b815260040162000a669062002b47565b62001095828262001c09565b600a546001600160a01b03610100909104163314620013645760405162461bcd60e51b815260040162000a669062002b47565b8051620010959060119060208401906200256b565b600a546001600160a01b03610100909104163314620013ac5760405162461bcd60e51b815260040162000a669062002b47565b600e55565b606060018054620009679062002b0a565b6001600160a01b0382163314156200141d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640162000a66565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60118054620011699062002b0a565b600a546001600160a01b03610100909104163314620014cb5760405162461bcd60e51b815260040162000a669062002b47565b600d80546001600160a01b03909216600160601b026001600160601b03909216919091179055565b620014ff338362001861565b6200151e5760405162461bcd60e51b815260040162000a669062002b7c565b6200152c8484848462001dd9565b50505050565b600a546001600160a01b03610100909104163314620015655760405162461bcd60e51b815260040162000a669062002b47565b600f55565b60606200157782620010e1565b506010620015858362001e13565b60116040516020016200159b9392919062002d05565b6040516020818303038152906040529050919050565b6060620009508262001f29565b600a546001600160a01b03610100909104163314620015f15760405162461bcd60e51b815260040162000a669062002b47565b6001600160a01b038116620016585760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840162000a66565b62000f498162001d7f565b600a546001600160a01b03610100909104163314620016965760405162461bcd60e51b815260040162000a669062002b47565b60008686604051620016a890620025fa565b9182526020820152604001604051809103906000f080158015620016d0573d6000803e3d6000fd5b50604051630f1664f360e31b81529091506001600160a01b038216906378b32798906200170890889088908890889060040162002d3e565b600060405180830381600087803b1580156200172357600080fd5b505af115801562001738573d6000803e3d6000fd5b5050601280546001810182556000919091527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec34440180546001600160a01b0319166001600160a01b0394909416939093179092555050505050505050565b60128181548110620017a657600080fd5b6000918252602090912001546001600160a01b0316905081565b80546001019055565b60006001600160e01b0319821663780e9d6360e01b1480620009505750620009508262001fff565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906200182882620010e1565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316620018dc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840162000a66565b6000620018e983620010e1565b9050806001600160a01b0316846001600160a01b03161480620019275750836001600160a01b03166200191c84620009f0565b6001600160a01b0316145b806200195857506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166200197582620010e1565b6001600160a01b031614620019df5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840162000a66565b6001600160a01b03821662001a435760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840162000a66565b62001a5083838362002052565b62001a5d600082620017f1565b6001600160a01b038316600090815260036020526040812080546001929062001a8890849062002dc5565b90915550506001600160a01b038216600090815260036020526040812080546001929062001ab890849062002c32565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716916000805160206200344d83398151915291a4505050565b6000805b60125460ff8216101562001bd85760128160ff168154811062001b335762001b3362002c4d565b600091825260209091200154604051631601334b60e11b8152600481018590523360248201526001600160a01b0390911690632c026696906044016020604051808303816000875af115801562001b8e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001bb4919062002ddf565b1562001bc35750600192915050565b8062001bcf8162002dff565b91505062001b0c565b5060135442118015620009505750600c548262001bf533620011f0565b62001c01919062002c32565b111592915050565b60005b8181101562000c0157600062001c2160145490565b905062001c32601480546001019055565b62001c3e84826200205f565b7f3fa96d7b6bcbfe71ef171666d84db3cf52fa2d1c8afdb1cc8e486177f208b7df8162001c6b8362001f29565b60405162001c7b92919062002e22565b60405180910390a180846001600160a01b031662001ca7600a546001600160a01b036101009091041690565b6001600160a01b03166000805160206200344d83398151915260405160405180910390a4508062001cd88162002e3d565b91505062001c0c565b600062001cee82620010e1565b905062001cfe8160008462002052565b62001d0b600083620017f1565b6001600160a01b038116600090815260036020526040812080546001929062001d3690849062002dc5565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416906000805160206200344d833981519152908390a45050565b600a80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b62001de684848462001960565b62001df4848484846200207b565b6200152c5760405162461bcd60e51b815260040162000a669062002e5b565b60608162001e385750506040805180820190915260018152600360fc1b602082015290565b8160005b811562001e68578062001e4f8162002e3d565b915062001e609050600a8362002c1b565b915062001e3c565b60008167ffffffffffffffff81111562001e865762001e86620027e0565b6040519080825280601f01601f19166020018201604052801562001eb1576020820181803683370190505b5090505b8415620019585762001ec960018362002dc5565b915062001ed8600a8662002ead565b62001ee590603062002c32565b60f81b81838151811062001efd5762001efd62002c4d565b60200101906001600160f81b031916908160001a90535062001f21600a8662002c1b565b945062001eb5565b60408051600180825281830190925260609160009190816020015b604080518082019091526000808252602082015281526020019060019003908162001f44575050600d5481519192506001600160601b031690829060009062001f915762001f9162002c4d565b6020026020010151602001906001600160601b031690816001600160601b031681525050600d600c9054906101000a90046001600160a01b03168160008151811062001fe15762001fe162002c4d565b60209081029190910101516001600160a01b03909116905292915050565b60006001600160e01b031982166380ac58cd60e01b14806200203157506001600160e01b03198216635b5e139f60e01b145b806200095057506301ffc9a760e01b6001600160e01b031983161462000950565b62000c0183838362002186565b620010958282604051806020016040528060008152506200224a565b60006001600160a01b0384163b156200217b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290620020c290339089908890889060040162002ec4565b6020604051808303816000875af192505050801562002100575060408051601f3d908101601f19168201909252620020fd9181019062002f03565b60015b62002160573d80801562002131576040519150601f19603f3d011682016040523d82523d6000602084013e62002136565b606091505b508051620021585760405162461bcd60e51b815260040162000a669062002e5b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905062001958565b506001949350505050565b6001600160a01b038316620021e457620021de81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6200220a565b816001600160a01b0316836001600160a01b0316146200220a576200220a838262002284565b6001600160a01b038216620022245762000c018162002326565b826001600160a01b0316826001600160a01b03161462000c015762000c018282620023e0565b62002256838362002426565b6200226560008484846200207b565b62000c015760405162461bcd60e51b815260040162000a669062002e5b565b600060016200229384620011f0565b6200229f919062002dc5565b600083815260076020526040902054909150808214620022f3576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906200233a9060019062002dc5565b6000838152600960205260408120546008805493945090928490811062002365576200236562002c4d565b90600052602060002001549050806008838154811062002389576200238962002c4d565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480620023c457620023c462002f23565b6001900381819060005260206000200160009055905550505050565b6000620023ed83620011f0565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166200247e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640162000a66565b6000818152600260205260409020546001600160a01b031615620024e55760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640162000a66565b620024f36000838362002052565b6001600160a01b03821660009081526003602052604081208054600192906200251e90849062002c32565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392906000805160206200344d833981519152908290a45050565b828054620025799062002b0a565b90600052602060002090601f0160209004810192826200259d5760008555620025e8565b82601f10620025b857805160ff1916838001178555620025e8565b82800160010185558215620025e8579182015b82811115620025e8578251825591602001919060010190620025cb565b50620025f692915062002608565b5090565b6105138062002f3a83390190565b5b80821115620025f6576000815560010162002609565b6001600160e01b03198116811462000f4957600080fd5b6000602082840312156200264957600080fd5b813562002656816200261f565b9392505050565b60005b838110156200267a57818101518382015260200162002660565b838111156200152c5750506000910152565b60008151808452620026a68160208601602086016200265d565b601f01601f19169290920160200192915050565b6020815260006200265660208301846200268c565b600060208284031215620026e257600080fd5b5035919050565b600060208284031215620026fc57600080fd5b81356001600160601b03811681146200265657600080fd5b80356001600160a01b03811681146200272c57600080fd5b919050565b600080604083850312156200274557600080fd5b620027508362002714565b946020939093013593505050565b6000806000606084860312156200277457600080fd5b6200277f8462002714565b92506200278f6020850162002714565b9150604084013590509250925092565b60008060408385031215620027b357600080fd5b50508035926020909101359150565b600060208284031215620027d557600080fd5b620026568262002714565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115620028145762002814620027e0565b604051601f8501601f19908116603f011681019082821181831017156200283f576200283f620027e0565b816040528093508581528686860111156200285957600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156200288657600080fd5b813567ffffffffffffffff8111156200289e57600080fd5b8201601f81018413620028b057600080fd5b6200195884823560208401620027f6565b801515811462000f4957600080fd5b60008060408385031215620028e457600080fd5b620028ef8362002714565b915060208301356200290181620028c1565b809150509250929050565b600080600080608085870312156200292357600080fd5b6200292e8562002714565b93506200293e6020860162002714565b925060408501359150606085013567ffffffffffffffff8111156200296257600080fd5b8501601f810187136200297457600080fd5b6200298587823560208401620027f6565b91505092959194509250565b600081518084526020808501945080840160005b83811015620029e057815180516001600160a01b031688528301516001600160601b03168388015260409096019590820190600101620029a5565b509495945050505050565b60208152600062002656602083018462002991565b6000806040838503121562002a1457600080fd5b62002a1f8362002714565b915062002a2f6020840162002714565b90509250929050565b60008083601f84011262002a4b57600080fd5b50813567ffffffffffffffff81111562002a6457600080fd5b6020830191508360208260051b850101111562000c8257600080fd5b6000806000806000806080878903121562002a9a57600080fd5b8635955060208701359450604087013567ffffffffffffffff8082111562002ac157600080fd5b62002acf8a838b0162002a38565b9096509450606089013591508082111562002ae957600080fd5b5062002af889828a0162002a38565b979a9699509497509295939492505050565b600181811c9082168062002b1f57607f821691505b6020821081141562002b4157634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161562002c005762002c0062002bcd565b500290565b634e487b7160e01b600052601260045260246000fd5b60008262002c2d5762002c2d62002c05565b500490565b6000821982111562002c485762002c4862002bcd565b500190565b634e487b7160e01b600052603260045260246000fd5b8054600090600181811c908083168062002c7e57607f831692505b602080841082141562002ca157634e487b7160e01b600052602260045260246000fd5b81801562002cb8576001811462002cca5762002cf9565b60ff1986168952848901965062002cf9565b60008881526020902060005b8681101562002cf15781548b82015290850190830162002cd6565b505084890196505b50505050505092915050565b600062002d13828662002c63565b845162002d258183602089016200265d565b62002d338183018662002c63565b979650505050505050565b6040808252810184905260008560608301825b8781101562002d83576001600160a01b0362002d6d8462002714565b1682526020928301929091019060010162002d51565b5083810360208501528481526001600160fb1b0385111562002da457600080fd5b8460051b915081866020830137600091016020019081529695505050505050565b60008282101562002dda5762002dda62002bcd565b500390565b60006020828403121562002df257600080fd5b81516200265681620028c1565b600060ff821660ff81141562002e195762002e1962002bcd565b60010192915050565b82815260406020820152600062001958604083018462002991565b600060001982141562002e545762002e5462002bcd565b5060010190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008262002ebf5762002ebf62002c05565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009062002ef9908301846200268c565b9695505050505050565b60006020828403121562002f1657600080fd5b815162002656816200261f565b634e487b7160e01b600052603160045260246000fdfe608060405234801561001057600080fd5b5060405161051338038061051383398101604081905261002f9161003d565b600191909155600255610061565b6000806040838503121561005057600080fd5b505080516020909101519092909150565b6104a3806100706000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c806322434836146100675780632c0266961461008257806378b32798146100aa5780639b19251a146100bd578063be9a6555146100eb578063efbe1c1c146100f4575b600080fd5b6100806100753660046102cb565b600191909155600255565b005b610095610090366004610309565b6100fd565b60405190151581526020015b60405180910390f35b6100806100b8366004610381565b610182565b6100dd6100cb3660046103ed565b60006020819052908152604090205481565b6040519081526020016100a1565b6100dd60015481565b6100dd60025481565b60006001544211801561011b5750600254158061011b575060025442105b15610178576001600160a01b0382166000908152602081905260409020548084111561014b57600091505061017c565b6101558482610425565b6001600160a01b038416600090815260208190526040902055506001905061017c565b5060005b92915050565b8281146101e15760405162461bcd60e51b815260206004820152602260248201527f616464726573736573206c656e67746820213d20656e7472696573206c656e676044820152610e8d60f31b60648201526084015b60405180910390fd5b60005b838110156102c45760008585838181106102005761020061043c565b905060200201602081019061021591906103ed565b6001600160a01b031614156102555760405162461bcd60e51b81526004016101d8906020808252600490820152637a65726f60e01b604082015260600190565b8282828181106102675761026761043c565b905060200201356000808787858181106102835761028361043c565b905060200201602081019061029891906103ed565b6001600160a01b03168152602081019190915260400160002055806102bc81610452565b9150506101e4565b5050505050565b600080604083850312156102de57600080fd5b50508035926020909101359150565b80356001600160a01b038116811461030457600080fd5b919050565b6000806040838503121561031c57600080fd5b8235915061032c602084016102ed565b90509250929050565b60008083601f84011261034757600080fd5b50813567ffffffffffffffff81111561035f57600080fd5b6020830191508360208260051b850101111561037a57600080fd5b9250929050565b6000806000806040858703121561039757600080fd5b843567ffffffffffffffff808211156103af57600080fd5b6103bb88838901610335565b909650945060208701359150808211156103d457600080fd5b506103e187828801610335565b95989497509550505050565b6000602082840312156103ff57600080fd5b610408826102ed565b9392505050565b634e487b7160e01b600052601160045260246000fd5b6000828210156104375761043761040f565b500390565b634e487b7160e01b600052603260045260246000fd5b60006000198214156104665761046661040f565b506001019056fea26469706673582212208c203146a7509b2c31d75f3d866c0c78dd7443c5ad0ce9626c5f1850afb46b3b64736f6c634300080a0033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212209a43a27941d27210fc65511745f4263b939b095c8d2f22b86b79bcd0af5f6e4664736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000600000000000000000000000004a40ecf453d19da0c63d18dc048d8531f1030c580000000000000000000000000000000000000000000000000000000061fa8e60000000000000000000000000000000000000000000000000000000000000002868747470733a2f2f647261676f6e2d72617363616c732e73332e616d617a6f6e6177732e636f6d2f000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _initBaseURI (string): https://dragon-rascals.s3.amazonaws.com/
Arg [1] : _royaltiesRecipient (address): 0x4a40eCf453d19DA0C63D18Dc048D8531F1030c58
Arg [2] : _mintStart (uint256): 1643810400
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 0000000000000000000000004a40ecf453d19da0c63d18dc048d8531f1030c58
Arg [2] : 0000000000000000000000000000000000000000000000000000000061fa8e60
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000028
Arg [4] : 68747470733a2f2f647261676f6e2d72617363616c732e73332e616d617a6f6e
Arg [5] : 6177732e636f6d2f000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.