ERC-721
Overview
Max Total Supply
0 NN
Holders
78
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 NNLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
NauticalNarwhals
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.8.0 <0.9.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol"; contract NauticalNarwhals is ERC721, Ownable, VRFConsumerBase, ReentrancyGuard { using Counters for Counters.Counter; using Strings for uint256; //allows for uint256var.tostring() Counters.Counter private _mintedSupply; string private baseURI; string public notRevealedURI; uint256 constant TOKEN_PRICE = 0.0457 ether; uint256 constant MAX_SUPPLY = 5757; uint256 constant MAX_PER_TRANSACTION = 10; uint256 private _randomShift; uint256 immutable LINK_FEE; bytes32 internal immutable LINK_KEY_HASH; address public immutable LINK_TOKEN; bool public paused = true ; bool public presale = true; bool public revealed; mapping(address => bool) private whitelistedAddresses; constructor( string memory _initbaseURI, string memory _initNotRevealedURI, address _LINK_TOKEN, address _LINK_VRF_COORDINATOR_ADDRESS, bytes32 _LINK_KEY_HASH, uint256 _LINK_FEE ) ERC721("Nautical Narwhals", "NN") VRFConsumerBase(_LINK_VRF_COORDINATOR_ADDRESS, _LINK_TOKEN){ baseURI = _initbaseURI; notRevealedURI = _initNotRevealedURI; LINK_TOKEN = _LINK_TOKEN; LINK_KEY_HASH = _LINK_KEY_HASH; LINK_FEE = _LINK_FEE; } function mintPreSale(uint256 _mintAmount) public payable { require(presale, "Presale is not active"); require(whitelistedAddresses[msg.sender], "Sorry, no access unless you're whitelisted"); require(msg.value == TOKEN_PRICE * _mintAmount, "Incorrect ether amount"); _mint(_mintAmount); } function mintPublicSale(uint256 _mintAmount) public payable{ require(!presale, "Presale is active"); require(msg.value == TOKEN_PRICE * _mintAmount, "Incorrect ether amount"); _mint(_mintAmount); } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "tokenID does not exist"); if (!revealed) { return notRevealedURI; } string memory currentBaseURI = _baseURI(); // shifting the tokenId by a randomNumber which is generated by Chainlink VRF before we do a reveal uint256 tokenIdShifted = ((tokenId + _randomShift) % MAX_SUPPLY) + 1 ; return bytes(currentBaseURI).length > 0 ? string( abi.encodePacked(currentBaseURI, tokenIdShifted.toString(), '.json') ) : ""; } function isWhitelisted(address _user) external view returns (bool){ return whitelistedAddresses[_user]; } function mintedAmount() external view returns (uint256){ return _mintedSupply.current(); } /// ============ INTERNAL ============ function _mint(uint256 _mintAmount) internal nonReentrant{ require(!paused, "Please wait until unpaused"); require(_mintAmount > 0, "Mint at least one token"); require(_mintAmount <= 10, "Max 10 Allowed."); require(_mintedSupply.current() + _mintAmount <= MAX_SUPPLY, "Not enough tokens left to mint that many"); for(uint256 i = 1; i <= _mintAmount; i++){ _mintedSupply.increment(); _safeMint(msg.sender, _mintedSupply.current()); } } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } //Callback function used by Chainlink VRF Coordinator. function fulfillRandomness(bytes32, uint256 randomness) internal override { _randomShift = (randomness % MAX_SUPPLY) + 1; } /// ============ ONLY OWNER ============ //Requests randomness from Chainlink function getRandomNumber() public onlyOwner returns (bytes32 requestId) { require( LINK.balanceOf(address(this)) >= LINK_FEE, "Not enough LINK" ); return requestRandomness(LINK_KEY_HASH, LINK_FEE); } function airdrop(address[] memory _users) external onlyOwner nonReentrant{ require(_mintedSupply.current() + _users.length <= MAX_SUPPLY, "Not this many tokens left"); for(uint256 i = 1; i <= _users.length; i++){ _mintedSupply.increment(); _safeMint(_users[i-1], _mintedSupply.current()); } } function withdraw() external onlyOwner { (bool success, ) = payable(owner()).call{value: address(this).balance}(""); require(success); } function setBaseURI(string calldata _newBaseURI) external onlyOwner { baseURI = _newBaseURI; } function setNotRevealedURI(string memory _notRevealedURI) external onlyOwner { notRevealedURI = _notRevealedURI; } function setReveal(bool _revealed) external onlyOwner { revealed = _revealed; } function setPresale(bool _presale) external onlyOwner { presale = _presale; } function setPaused(bool _paused) external onlyOwner { paused = _paused; } function setWhitelist(address[] calldata _users) external onlyOwner { for(uint256 i = 0; i < _users.length; i++){ whitelistedAddresses[_users[i]] = true; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: 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 { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: 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 Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev 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 // OpenZeppelin Contracts v4.4.0 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./interfaces/LinkTokenInterface.sol"; import "./VRFRequestIDBase.sol"; /** **************************************************************************** * @notice Interface for contracts using VRF randomness * ***************************************************************************** * @dev PURPOSE * * @dev Reggie the Random Oracle (not his real job) wants to provide randomness * @dev to Vera the verifier in such a way that Vera can be sure he's not * @dev making his output up to suit himself. Reggie provides Vera a public key * @dev to which he knows the secret key. Each time Vera provides a seed to * @dev Reggie, he gives back a value which is computed completely * @dev deterministically from the seed and the secret key. * * @dev Reggie provides a proof by which Vera can verify that the output was * @dev correctly computed once Reggie tells it to her, but without that proof, * @dev the output is indistinguishable to her from a uniform random sample * @dev from the output space. * * @dev The purpose of this contract is to make it easy for unrelated contracts * @dev to talk to Vera the verifier about the work Reggie is doing, to provide * @dev simple access to a verifiable source of randomness. * ***************************************************************************** * @dev USAGE * * @dev Calling contracts must inherit from VRFConsumerBase, and can * @dev initialize VRFConsumerBase's attributes in their constructor as * @dev shown: * * @dev contract VRFConsumer { * @dev constuctor(<other arguments>, address _vrfCoordinator, address _link) * @dev VRFConsumerBase(_vrfCoordinator, _link) public { * @dev <initialization with other arguments goes here> * @dev } * @dev } * * @dev The oracle will have given you an ID for the VRF keypair they have * @dev committed to (let's call it keyHash), and have told you the minimum LINK * @dev price for VRF service. Make sure your contract has sufficient LINK, and * @dev call requestRandomness(keyHash, fee, seed), where seed is the input you * @dev want to generate randomness from. * * @dev Once the VRFCoordinator has received and validated the oracle's response * @dev to your request, it will call your contract's fulfillRandomness method. * * @dev The randomness argument to fulfillRandomness is the actual random value * @dev generated from your seed. * * @dev The requestId argument is generated from the keyHash and the seed by * @dev makeRequestId(keyHash, seed). If your contract could have concurrent * @dev requests open, you can use the requestId to track which seed is * @dev associated with which randomness. See VRFRequestIDBase.sol for more * @dev details. (See "SECURITY CONSIDERATIONS" for principles to keep in mind, * @dev if your contract could have multiple requests in flight simultaneously.) * * @dev Colliding `requestId`s are cryptographically impossible as long as seeds * @dev differ. (Which is critical to making unpredictable randomness! See the * @dev next section.) * * ***************************************************************************** * @dev SECURITY CONSIDERATIONS * * @dev A method with the ability to call your fulfillRandomness method directly * @dev could spoof a VRF response with any random value, so it's critical that * @dev it cannot be directly called by anything other than this base contract * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method). * * @dev For your users to trust that your contract's random behavior is free * @dev from malicious interference, it's best if you can write it so that all * @dev behaviors implied by a VRF response are executed *during* your * @dev fulfillRandomness method. If your contract must store the response (or * @dev anything derived from it) and use it later, you must ensure that any * @dev user-significant behavior which depends on that stored value cannot be * @dev manipulated by a subsequent VRF request. * * @dev Similarly, both miners and the VRF oracle itself have some influence * @dev over the order in which VRF responses appear on the blockchain, so if * @dev your contract could have multiple VRF requests in flight simultaneously, * @dev you must ensure that the order in which the VRF responses arrive cannot * @dev be used to manipulate your contract's user-significant behavior. * * @dev Since the ultimate input to the VRF is mixed with the block hash of the * @dev block in which the request is made, user-provided seeds have no impact * @dev on its economic security properties. They are only included for API * @dev compatability with previous versions of this contract. * * @dev Since the block hash of the block which contains the requestRandomness * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful * @dev miner could, in principle, fork the blockchain to evict the block * @dev containing the request, forcing the request to be included in a * @dev different block with a different hash, and therefore a different input * @dev to the VRF. However, such an attack would incur a substantial economic * @dev cost. This cost scales with the number of blocks the VRF oracle waits * @dev until it calls responds to a request. */ abstract contract VRFConsumerBase is VRFRequestIDBase { /** * @notice fulfillRandomness handles the VRF response. Your contract must * @notice implement it. See "SECURITY CONSIDERATIONS" above for important * @notice principles to keep in mind when implementing your fulfillRandomness * @notice method. * * @dev VRFConsumerBase expects its subcontracts to have a method with this * @dev signature, and will call it once it has verified the proof * @dev associated with the randomness. (It is triggered via a call to * @dev rawFulfillRandomness, below.) * * @param requestId The Id initially returned by requestRandomness * @param randomness the VRF output */ function fulfillRandomness( bytes32 requestId, uint256 randomness ) internal virtual; /** * @dev In order to keep backwards compatibility we have kept the user * seed field around. We remove the use of it because given that the blockhash * enters later, it overrides whatever randomness the used seed provides. * Given that it adds no security, and can easily lead to misunderstandings, * we have removed it from usage and can now provide a simpler API. */ uint256 constant private USER_SEED_PLACEHOLDER = 0; /** * @notice requestRandomness initiates a request for VRF output given _seed * * @dev The fulfillRandomness method receives the output, once it's provided * @dev by the Oracle, and verified by the vrfCoordinator. * * @dev The _keyHash must already be registered with the VRFCoordinator, and * @dev the _fee must exceed the fee specified during registration of the * @dev _keyHash. * * @dev The _seed parameter is vestigial, and is kept only for API * @dev compatibility with older versions. It can't *hurt* to mix in some of * @dev your own randomness, here, but it's not necessary because the VRF * @dev oracle will mix the hash of the block containing your request into the * @dev VRF seed it ultimately uses. * * @param _keyHash ID of public key against which randomness is generated * @param _fee The amount of LINK to send with the request * * @return requestId unique ID for this request * * @dev The returned requestId can be used to distinguish responses to * @dev concurrent requests. It is passed as the first argument to * @dev fulfillRandomness. */ function requestRandomness( bytes32 _keyHash, uint256 _fee ) internal returns ( bytes32 requestId ) { LINK.transferAndCall(vrfCoordinator, _fee, abi.encode(_keyHash, USER_SEED_PLACEHOLDER)); // This is the seed passed to VRFCoordinator. The oracle will mix this with // the hash of the block containing this request to obtain the seed/input // which is finally passed to the VRF cryptographic machinery. uint256 vRFSeed = makeVRFInputSeed(_keyHash, USER_SEED_PLACEHOLDER, address(this), nonces[_keyHash]); // nonces[_keyHash] must stay in sync with // VRFCoordinator.nonces[_keyHash][this], which was incremented by the above // successful LINK.transferAndCall (in VRFCoordinator.randomnessRequest). // This provides protection against the user repeating their input seed, // which would result in a predictable/duplicate output, if multiple such // requests appeared in the same block. nonces[_keyHash] = nonces[_keyHash] + 1; return makeRequestId(_keyHash, vRFSeed); } LinkTokenInterface immutable internal LINK; address immutable private vrfCoordinator; // Nonces for each VRF key from which randomness has been requested. // // Must stay in sync with VRFCoordinator[_keyHash][this] mapping(bytes32 /* keyHash */ => uint256 /* nonce */) private nonces; /** * @param _vrfCoordinator address of VRFCoordinator contract * @param _link address of LINK token contract * * @dev https://docs.chain.link/docs/link-token-contracts */ constructor( address _vrfCoordinator, address _link ) { vrfCoordinator = _vrfCoordinator; LINK = LinkTokenInterface(_link); } // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF // proof. rawFulfillRandomness then calls fulfillRandomness, after validating // the origin of the call function rawFulfillRandomness( bytes32 requestId, uint256 randomness ) external { require(msg.sender == vrfCoordinator, "Only VRFCoordinator can fulfill"); fulfillRandomness(requestId, randomness); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, 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 // OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Address.sol) 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 // OpenZeppelin Contracts v4.4.0 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface LinkTokenInterface { function allowance( address owner, address spender ) external view returns ( uint256 remaining ); function approve( address spender, uint256 value ) external returns ( bool success ); function balanceOf( address owner ) external view returns ( uint256 balance ); function decimals() external view returns ( uint8 decimalPlaces ); function decreaseApproval( address spender, uint256 addedValue ) external returns ( bool success ); function increaseApproval( address spender, uint256 subtractedValue ) external; function name() external view returns ( string memory tokenName ); function symbol() external view returns ( string memory tokenSymbol ); function totalSupply() external view returns ( uint256 totalTokensIssued ); function transfer( address to, uint256 value ) external returns ( bool success ); function transferAndCall( address to, uint256 value, bytes calldata data ) external returns ( bool success ); function transferFrom( address from, address to, uint256 value ) external returns ( bool success ); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract VRFRequestIDBase { /** * @notice returns the seed which is actually input to the VRF coordinator * * @dev To prevent repetition of VRF output due to repetition of the * @dev user-supplied seed, that seed is combined in a hash with the * @dev user-specific nonce, and the address of the consuming contract. The * @dev risk of repetition is mostly mitigated by inclusion of a blockhash in * @dev the final seed, but the nonce does protect against repetition in * @dev requests which are included in a single block. * * @param _userSeed VRF seed input provided by user * @param _requester Address of the requesting contract * @param _nonce User-specific nonce at the time of the request */ function makeVRFInputSeed( bytes32 _keyHash, uint256 _userSeed, address _requester, uint256 _nonce ) internal pure returns ( uint256 ) { return uint256(keccak256(abi.encode(_keyHash, _userSeed, _requester, _nonce))); } /** * @notice Returns the id for this request * @param _keyHash The serviceAgreement ID to be used for this request * @param _vRFInputSeed The seed to be passed directly to the VRF * @return The id for this request * * @dev Note that _vRFInputSeed is not the seed passed by the consuming * @dev contract, but the one generated by makeVRFInputSeed */ function makeRequestId( bytes32 _keyHash, uint256 _vRFInputSeed ) internal pure returns ( bytes32 ) { return keccak256(abi.encodePacked(_keyHash, _vRFInputSeed)); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_initbaseURI","type":"string"},{"internalType":"string","name":"_initNotRevealedURI","type":"string"},{"internalType":"address","name":"_LINK_TOKEN","type":"address"},{"internalType":"address","name":"_LINK_VRF_COORDINATOR_ADDRESS","type":"address"},{"internalType":"bytes32","name":"_LINK_KEY_HASH","type":"bytes32"},{"internalType":"uint256","name":"_LINK_FEE","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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"LINK_TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"}],"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":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRandomNumber","outputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"}],"stateMutability":"nonpayable","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":"_user","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mintPreSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mintPublicSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintedAmount","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":"notRevealedURI","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":"presale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_presale","type":"bool"}],"name":"setPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_revealed","type":"bool"}],"name":"setReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
610120604052600d805461ffff19166101011790553480156200002157600080fd5b5060405162002dfe38038062002dfe833981016040819052620000449162000308565b60408051808201825260118152704e6175746963616c204e61727768616c7360781b602080830191825283518085019094526002845261272760f11b908401528151869388939290916200009b9160009162000192565b508051620000b190600190602084019062000192565b505050620000ce620000c86200013c60201b60201c565b62000140565b6001600160601b0319606092831b811660a052911b16608052600160085585516200010190600a90602089019062000192565b5084516200011790600b90602088019062000192565b5060609390931b6001600160601b0319166101005260e0525060c05250620003f99050565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001a090620003a6565b90600052602060002090601f016020900481019282620001c457600085556200020f565b82601f10620001df57805160ff19168380011785556200020f565b828001600101855582156200020f579182015b828111156200020f578251825591602001919060010190620001f2565b506200021d92915062000221565b5090565b5b808211156200021d576000815560010162000222565b80516001600160a01b03811681146200025057600080fd5b919050565b600082601f83011262000266578081fd5b81516001600160401b0380821115620002835762000283620003e3565b604051601f8301601f19908116603f01168101908282118183101715620002ae57620002ae620003e3565b81604052838152602092508683858801011115620002ca578485fd5b8491505b83821015620002ed5785820183015181830184015290820190620002ce565b83821115620002fe57848385830101525b9695505050505050565b60008060008060008060c0878903121562000321578182fd5b86516001600160401b038082111562000338578384fd5b620003468a838b0162000255565b975060208901519150808211156200035c578384fd5b506200036b89828a0162000255565b9550506200037c6040880162000238565b93506200038c6060880162000238565b92506080870151915060a087015190509295509295509295565b600181811c90821680620003bb57607f821691505b60208210811415620003dd57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160601c60a05160601c60c05160e0516101005160601c6129a26200045c60003960006105f8015260006113400152600081816112570152611361015260008181610eba0152611cd80152600081816112790152611ca901526129a26000f3fe6080604052600436106102045760003560e01c8063715018a611610118578063c54e73e3116100a0578063eedac3a61161006f578063eedac3a6146105e6578063f2c4ce1e1461061a578063f2fde38b1461063a578063f42176481461065a578063fdea8e0b1461067a57600080fd5b8063c54e73e314610548578063c87b56dd14610568578063dbdff2c114610588578063e985e9c51461059d57600080fd5b806394985ddd116100e757806394985ddd146104c057806395d89b41146104e0578063a22cb465146104f5578063b88d4fde14610515578063b98847721461053557600080fd5b8063715018a614610458578063722503801461046d578063729ad39e146104825780638da5cb5b146104a257600080fd5b80633af32abf1161019b57806355f804b31161016a57806355f804b3146103cb5780635a5e5d58146103eb5780635c975abb146103fe5780636352211e1461041857806370a082311461043857600080fd5b80633af32abf1461033d5780633ccfd60b1461037657806342842e0e1461038b57806351830227146103ab57600080fd5b806316c38b3c116101d757806316c38b3c146102ba57806323b872dd146102da5780632a3f300c146102fa5780632d3802421461031a57600080fd5b806301ffc9a71461020957806306fdde031461023e578063081812fc14610260578063095ea7b314610298575b600080fd5b34801561021557600080fd5b50610229610224366004612511565b610699565b60405190151581526020015b60405180910390f35b34801561024a57600080fd5b506102536106eb565b60405161023591906126f2565b34801561026c57600080fd5b5061028061027b3660046125ea565b61077d565b6040516001600160a01b039091168152602001610235565b3480156102a457600080fd5b506102b86102b3366004612370565b610817565b005b3480156102c657600080fd5b506102b86102d53660046124b8565b61092d565b3480156102e657600080fd5b506102b86102f5366004612286565b61096a565b34801561030657600080fd5b506102b86103153660046124b8565b61099b565b34801561032657600080fd5b5061032f6109e1565b604051908152602001610235565b34801561034957600080fd5b50610229610358366004612233565b6001600160a01b03166000908152600e602052604090205460ff1690565b34801561038257600080fd5b506102b86109f1565b34801561039757600080fd5b506102b86103a6366004612286565b610a8f565b3480156103b757600080fd5b50600d546102299062010000900460ff1681565b3480156103d757600080fd5b506102b86103e6366004612549565b610aaa565b6102b86103f93660046125ea565b610ae0565b34801561040a57600080fd5b50600d546102299060ff1681565b34801561042457600080fd5b506102806104333660046125ea565b610b8d565b34801561044457600080fd5b5061032f610453366004612233565b610c04565b34801561046457600080fd5b506102b8610c8b565b34801561047957600080fd5b50610253610cc1565b34801561048e57600080fd5b506102b861049d366004612409565b610d4f565b3480156104ae57600080fd5b506006546001600160a01b0316610280565b3480156104cc57600080fd5b506102b86104db3660046124f0565b610eaf565b3480156104ec57600080fd5b50610253610f35565b34801561050157600080fd5b506102b861051036600461233a565b610f44565b34801561052157600080fd5b506102b86105303660046122c1565b610f4f565b6102b86105433660046125ea565b610f87565b34801561055457600080fd5b506102b86105633660046124b8565b611048565b34801561057457600080fd5b506102536105833660046125ea565b61108c565b34801561059457600080fd5b5061032f611215565b3480156105a957600080fd5b506102296105b8366004612254565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156105f257600080fd5b506102807f000000000000000000000000000000000000000000000000000000000000000081565b34801561062657600080fd5b506102b86106353660046125a4565b611385565b34801561064657600080fd5b506102b8610655366004612233565b6113c2565b34801561066657600080fd5b506102b8610675366004612399565b61145a565b34801561068657600080fd5b50600d5461022990610100900460ff1681565b60006001600160e01b031982166380ac58cd60e01b14806106ca57506001600160e01b03198216635b5e139f60e01b145b806106e557506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546106fa9061289c565b80601f01602080910402602001604051908101604052809291908181526020018280546107269061289c565b80156107735780601f1061074857610100808354040283529160200191610773565b820191906000526020600020905b81548152906001019060200180831161075657829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107fb5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061082282610b8d565b9050806001600160a01b0316836001600160a01b031614156108905760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107f2565b336001600160a01b03821614806108ac57506108ac81336105b8565b61091e5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107f2565b6109288383611504565b505050565b6006546001600160a01b031633146109575760405162461bcd60e51b81526004016107f290612757565b600d805460ff1916911515919091179055565b6109743382611572565b6109905760405162461bcd60e51b81526004016107f29061278c565b610928838383611665565b6006546001600160a01b031633146109c55760405162461bcd60e51b81526004016107f290612757565b600d8054911515620100000262ff000019909216919091179055565b60006109ec60095490565b905090565b6006546001600160a01b03163314610a1b5760405162461bcd60e51b81526004016107f290612757565b6000610a2f6006546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610a79576040519150601f19603f3d011682016040523d82523d6000602084013e610a7e565b606091505b5050905080610a8c57600080fd5b50565b61092883838360405180602001604052806000815250610f4f565b6006546001600160a01b03163314610ad45760405162461bcd60e51b81526004016107f290612757565b610928600a83836120b2565b600d54610100900460ff1615610b2c5760405162461bcd60e51b815260206004820152601160248201527050726573616c652069732061637469766560781b60448201526064016107f2565b610b3d8166a25be86a3c400061283a565b3414610b845760405162461bcd60e51b8152602060048201526016602482015275125b98dbdc9c9958dd08195d1a195c88185b5bdd5b9d60521b60448201526064016107f2565b610a8c81611805565b6000818152600260205260408120546001600160a01b0316806106e55760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107f2565b60006001600160a01b038216610c6f5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107f2565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610cb55760405162461bcd60e51b81526004016107f290612757565b610cbf60006119f0565b565b600b8054610cce9061289c565b80601f0160208091040260200160405190810160405280929190818152602001828054610cfa9061289c565b8015610d475780601f10610d1c57610100808354040283529160200191610d47565b820191906000526020600020905b815481529060010190602001808311610d2a57829003601f168201915b505050505081565b6006546001600160a01b03163314610d795760405162461bcd60e51b81526004016107f290612757565b60026008541415610dcc5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107f2565b6002600855805161167d90610de060095490565b610dea919061280e565b1115610e385760405162461bcd60e51b815260206004820152601960248201527f4e6f742074686973206d616e7920746f6b656e73206c6566740000000000000060448201526064016107f2565b60015b81518111610ea657610e51600980546001019055565b610e9482610e60600184612859565b81518110610e7e57634e487b7160e01b600052603260045260246000fd5b6020026020010151610e8f60095490565b611a42565b80610e9e816128d7565b915050610e3b565b50506001600855565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610f275760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c0060448201526064016107f2565b610f318282611a5c565b5050565b6060600180546106fa9061289c565b610f31338383611a7a565b610f593383611572565b610f755760405162461bcd60e51b81526004016107f29061278c565b610f8184848484611b49565b50505050565b600d54610100900460ff16610fd65760405162461bcd60e51b815260206004820152601560248201527450726573616c65206973206e6f742061637469766560581b60448201526064016107f2565b336000908152600e602052604090205460ff16610b2c5760405162461bcd60e51b815260206004820152602a60248201527f536f7272792c206e6f2061636365737320756e6c65737320796f7527726520776044820152691a1a5d195b1a5cdd195960b21b60648201526084016107f2565b6006546001600160a01b031633146110725760405162461bcd60e51b81526004016107f290612757565b600d80549115156101000261ff0019909216919091179055565b6000818152600260205260409020546060906001600160a01b03166110ec5760405162461bcd60e51b81526020600482015260166024820152751d1bdad95b925108191bd95cc81b9bdd08195e1a5cdd60521b60448201526064016107f2565b600d5462010000900460ff1661118e57600b80546111099061289c565b80601f01602080910402602001604051908101604052809291908181526020018280546111359061289c565b80156111825780601f1061115757610100808354040283529160200191611182565b820191906000526020600020905b81548152906001019060200180831161116557829003601f168201915b50505050509050919050565b6000611198611b7c565b9050600061167d600c54856111ad919061280e565b6111b791906128f2565b6111c290600161280e565b905060008251116111e2576040518060200160405280600081525061120d565b816111ec82611b8b565b6040516020016111fd929190612646565b6040516020818303038152906040525b949350505050565b6006546000906001600160a01b031633146112425760405162461bcd60e51b81526004016107f290612757565b6040516370a0823160e01b81523060048201527f0000000000000000000000000000000000000000000000000000000000000000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b1580156112c357600080fd5b505afa1580156112d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112fb9190612602565b101561133b5760405162461bcd60e51b815260206004820152600f60248201526e4e6f7420656e6f756768204c494e4b60881b60448201526064016107f2565b6109ec7f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000611ca5565b6006546001600160a01b031633146113af5760405162461bcd60e51b81526004016107f290612757565b8051610f3190600b906020840190612136565b6006546001600160a01b031633146113ec5760405162461bcd60e51b81526004016107f290612757565b6001600160a01b0381166114515760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107f2565b610a8c816119f0565b6006546001600160a01b031633146114845760405162461bcd60e51b81526004016107f290612757565b60005b81811015610928576001600e60008585858181106114b557634e487b7160e01b600052603260045260246000fd5b90506020020160208101906114ca9190612233565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806114fc816128d7565b915050611487565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061153982610b8d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166115eb5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107f2565b60006115f683610b8d565b9050806001600160a01b0316846001600160a01b031614806116315750836001600160a01b03166116268461077d565b6001600160a01b0316145b8061120d57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff1661120d565b826001600160a01b031661167882610b8d565b6001600160a01b0316146116e05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016107f2565b6001600160a01b0382166117425760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107f2565b61174d600082611504565b6001600160a01b0383166000908152600360205260408120805460019290611776908490612859565b90915550506001600160a01b03821660009081526003602052604081208054600192906117a490849061280e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600260085414156118585760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107f2565b6002600855600d5460ff16156118b05760405162461bcd60e51b815260206004820152601a60248201527f506c65617365207761697420756e74696c20756e70617573656400000000000060448201526064016107f2565b600081116119005760405162461bcd60e51b815260206004820152601760248201527f4d696e74206174206c65617374206f6e6520746f6b656e00000000000000000060448201526064016107f2565b600a8111156119435760405162461bcd60e51b815260206004820152600f60248201526e26b0bc1018981020b63637bbb2b21760891b60448201526064016107f2565b61167d8161195060095490565b61195a919061280e565b11156119b95760405162461bcd60e51b815260206004820152602860248201527f4e6f7420656e6f75676820746f6b656e73206c65667420746f206d696e742074604482015267686174206d616e7960c01b60648201526084016107f2565b60015b818111610ea6576119d1600980546001019055565b6119de33610e8f60095490565b806119e8816128d7565b9150506119bc565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610f31828260405180602001604052806000815250611e30565b611a6861167d826128f2565b611a7390600161280e565b600c555050565b816001600160a01b0316836001600160a01b03161415611adc5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107f2565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611b54848484611665565b611b6084848484611e63565b610f815760405162461bcd60e51b81526004016107f290612705565b6060600a80546106fa9061289c565b606081611baf5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611bd95780611bc3816128d7565b9150611bd29050600a83612826565b9150611bb3565b60008167ffffffffffffffff811115611c0257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611c2c576020820181803683370190505b5090505b841561120d57611c41600183612859565b9150611c4e600a866128f2565b611c5990603061280e565b60f81b818381518110611c7c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611c9e600a86612826565b9450611c30565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f000000000000000000000000000000000000000000000000000000000000000084866000604051602001611d15929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401611d42939291906126c2565b602060405180830381600087803b158015611d5c57600080fd5b505af1158015611d70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d9491906124d4565b50600083815260076020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a090910190925281519183019190912093879052919052611df090600161280e565b60008581526007602052604090205561120d8482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b611e3a8383611f70565b611e476000848484611e63565b6109285760405162461bcd60e51b81526004016107f290612705565b60006001600160a01b0384163b15611f6557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611ea7903390899088908890600401612685565b602060405180830381600087803b158015611ec157600080fd5b505af1925050508015611ef1575060408051601f3d908101601f19168201909252611eee9181019061252d565b60015b611f4b573d808015611f1f576040519150601f19603f3d011682016040523d82523d6000602084013e611f24565b606091505b508051611f435760405162461bcd60e51b81526004016107f290612705565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061120d565b506001949350505050565b6001600160a01b038216611fc65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107f2565b6000818152600260205260409020546001600160a01b03161561202b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107f2565b6001600160a01b038216600090815260036020526040812080546001929061205490849061280e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546120be9061289c565b90600052602060002090601f0160209004810192826120e05760008555612126565b82601f106120f95782800160ff19823516178555612126565b82800160010185558215612126579182015b8281111561212657823582559160200191906001019061210b565b506121329291506121aa565b5090565b8280546121429061289c565b90600052602060002090601f0160209004810192826121645760008555612126565b82601f1061217d57805160ff1916838001178555612126565b82800160010185558215612126579182015b8281111561212657825182559160200191906001019061218f565b5b8082111561213257600081556001016121ab565b600067ffffffffffffffff8311156121d9576121d9612932565b6121ec601f8401601f19166020016127dd565b905082815283838301111561220057600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461222e57600080fd5b919050565b600060208284031215612244578081fd5b61224d82612217565b9392505050565b60008060408385031215612266578081fd5b61226f83612217565b915061227d60208401612217565b90509250929050565b60008060006060848603121561229a578081fd5b6122a384612217565b92506122b160208501612217565b9150604084013590509250925092565b600080600080608085870312156122d6578081fd5b6122df85612217565b93506122ed60208601612217565b925060408501359150606085013567ffffffffffffffff81111561230f578182fd5b8501601f8101871361231f578182fd5b61232e878235602084016121bf565b91505092959194509250565b6000806040838503121561234c578182fd5b61235583612217565b9150602083013561236581612948565b809150509250929050565b60008060408385031215612382578182fd5b61238b83612217565b946020939093013593505050565b600080602083850312156123ab578182fd5b823567ffffffffffffffff808211156123c2578384fd5b818501915085601f8301126123d5578384fd5b8135818111156123e3578485fd5b8660208260051b85010111156123f7578485fd5b60209290920196919550909350505050565b6000602080838503121561241b578182fd5b823567ffffffffffffffff80821115612432578384fd5b818501915085601f830112612445578384fd5b81358181111561245757612457612932565b8060051b91506124688483016127dd565b8181528481019084860184860187018a1015612482578788fd5b8795505b838610156124ab5761249781612217565b835260019590950194918601918601612486565b5098975050505050505050565b6000602082840312156124c9578081fd5b813561224d81612948565b6000602082840312156124e5578081fd5b815161224d81612948565b60008060408385031215612502578182fd5b50508035926020909101359150565b600060208284031215612522578081fd5b813561224d81612956565b60006020828403121561253e578081fd5b815161224d81612956565b6000806020838503121561255b578182fd5b823567ffffffffffffffff80821115612572578384fd5b818501915085601f830112612585578384fd5b813581811115612593578485fd5b8660208285010111156123f7578485fd5b6000602082840312156125b5578081fd5b813567ffffffffffffffff8111156125cb578182fd5b8201601f810184136125db578182fd5b61120d848235602084016121bf565b6000602082840312156125fb578081fd5b5035919050565b600060208284031215612613578081fd5b5051919050565b60008151808452612632816020860160208601612870565b601f01601f19169290920160200192915050565b60008351612658818460208801612870565b83519083019061266c818360208801612870565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906126b89083018461261a565b9695505050505050565b60018060a01b03841681528260208201526060604082015260006126e9606083018461261a565b95945050505050565b60208152600061224d602083018461261a565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff8111828210171561280657612806612932565b604052919050565b6000821982111561282157612821612906565b500190565b6000826128355761283561291c565b500490565b600081600019048311821515161561285457612854612906565b500290565b60008282101561286b5761286b612906565b500390565b60005b8381101561288b578181015183820152602001612873565b83811115610f815750506000910152565b600181811c908216806128b057607f821691505b602082108114156128d157634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156128eb576128eb612906565b5060010190565b6000826129015761290161291c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8015158114610a8c57600080fd5b6001600160e01b031981168114610a8c57600080fdfea264697066735822122047f7c4c538018f23dc85a068e5d0fd6c9bcf038ce2ec99fb166cba258edbf14b64736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec800000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d646d5469566838744556485a7974564a63365677726859444834524e354138664c42443641743738644d41322f000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d52417733594569434735426e6f614c476e3346744175394b47387666734b466150516163676f7a70574577450000000000000000000000
Deployed Bytecode
0x6080604052600436106102045760003560e01c8063715018a611610118578063c54e73e3116100a0578063eedac3a61161006f578063eedac3a6146105e6578063f2c4ce1e1461061a578063f2fde38b1461063a578063f42176481461065a578063fdea8e0b1461067a57600080fd5b8063c54e73e314610548578063c87b56dd14610568578063dbdff2c114610588578063e985e9c51461059d57600080fd5b806394985ddd116100e757806394985ddd146104c057806395d89b41146104e0578063a22cb465146104f5578063b88d4fde14610515578063b98847721461053557600080fd5b8063715018a614610458578063722503801461046d578063729ad39e146104825780638da5cb5b146104a257600080fd5b80633af32abf1161019b57806355f804b31161016a57806355f804b3146103cb5780635a5e5d58146103eb5780635c975abb146103fe5780636352211e1461041857806370a082311461043857600080fd5b80633af32abf1461033d5780633ccfd60b1461037657806342842e0e1461038b57806351830227146103ab57600080fd5b806316c38b3c116101d757806316c38b3c146102ba57806323b872dd146102da5780632a3f300c146102fa5780632d3802421461031a57600080fd5b806301ffc9a71461020957806306fdde031461023e578063081812fc14610260578063095ea7b314610298575b600080fd5b34801561021557600080fd5b50610229610224366004612511565b610699565b60405190151581526020015b60405180910390f35b34801561024a57600080fd5b506102536106eb565b60405161023591906126f2565b34801561026c57600080fd5b5061028061027b3660046125ea565b61077d565b6040516001600160a01b039091168152602001610235565b3480156102a457600080fd5b506102b86102b3366004612370565b610817565b005b3480156102c657600080fd5b506102b86102d53660046124b8565b61092d565b3480156102e657600080fd5b506102b86102f5366004612286565b61096a565b34801561030657600080fd5b506102b86103153660046124b8565b61099b565b34801561032657600080fd5b5061032f6109e1565b604051908152602001610235565b34801561034957600080fd5b50610229610358366004612233565b6001600160a01b03166000908152600e602052604090205460ff1690565b34801561038257600080fd5b506102b86109f1565b34801561039757600080fd5b506102b86103a6366004612286565b610a8f565b3480156103b757600080fd5b50600d546102299062010000900460ff1681565b3480156103d757600080fd5b506102b86103e6366004612549565b610aaa565b6102b86103f93660046125ea565b610ae0565b34801561040a57600080fd5b50600d546102299060ff1681565b34801561042457600080fd5b506102806104333660046125ea565b610b8d565b34801561044457600080fd5b5061032f610453366004612233565b610c04565b34801561046457600080fd5b506102b8610c8b565b34801561047957600080fd5b50610253610cc1565b34801561048e57600080fd5b506102b861049d366004612409565b610d4f565b3480156104ae57600080fd5b506006546001600160a01b0316610280565b3480156104cc57600080fd5b506102b86104db3660046124f0565b610eaf565b3480156104ec57600080fd5b50610253610f35565b34801561050157600080fd5b506102b861051036600461233a565b610f44565b34801561052157600080fd5b506102b86105303660046122c1565b610f4f565b6102b86105433660046125ea565b610f87565b34801561055457600080fd5b506102b86105633660046124b8565b611048565b34801561057457600080fd5b506102536105833660046125ea565b61108c565b34801561059457600080fd5b5061032f611215565b3480156105a957600080fd5b506102296105b8366004612254565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156105f257600080fd5b506102807f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca81565b34801561062657600080fd5b506102b86106353660046125a4565b611385565b34801561064657600080fd5b506102b8610655366004612233565b6113c2565b34801561066657600080fd5b506102b8610675366004612399565b61145a565b34801561068657600080fd5b50600d5461022990610100900460ff1681565b60006001600160e01b031982166380ac58cd60e01b14806106ca57506001600160e01b03198216635b5e139f60e01b145b806106e557506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546106fa9061289c565b80601f01602080910402602001604051908101604052809291908181526020018280546107269061289c565b80156107735780601f1061074857610100808354040283529160200191610773565b820191906000526020600020905b81548152906001019060200180831161075657829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107fb5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061082282610b8d565b9050806001600160a01b0316836001600160a01b031614156108905760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107f2565b336001600160a01b03821614806108ac57506108ac81336105b8565b61091e5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107f2565b6109288383611504565b505050565b6006546001600160a01b031633146109575760405162461bcd60e51b81526004016107f290612757565b600d805460ff1916911515919091179055565b6109743382611572565b6109905760405162461bcd60e51b81526004016107f29061278c565b610928838383611665565b6006546001600160a01b031633146109c55760405162461bcd60e51b81526004016107f290612757565b600d8054911515620100000262ff000019909216919091179055565b60006109ec60095490565b905090565b6006546001600160a01b03163314610a1b5760405162461bcd60e51b81526004016107f290612757565b6000610a2f6006546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610a79576040519150601f19603f3d011682016040523d82523d6000602084013e610a7e565b606091505b5050905080610a8c57600080fd5b50565b61092883838360405180602001604052806000815250610f4f565b6006546001600160a01b03163314610ad45760405162461bcd60e51b81526004016107f290612757565b610928600a83836120b2565b600d54610100900460ff1615610b2c5760405162461bcd60e51b815260206004820152601160248201527050726573616c652069732061637469766560781b60448201526064016107f2565b610b3d8166a25be86a3c400061283a565b3414610b845760405162461bcd60e51b8152602060048201526016602482015275125b98dbdc9c9958dd08195d1a195c88185b5bdd5b9d60521b60448201526064016107f2565b610a8c81611805565b6000818152600260205260408120546001600160a01b0316806106e55760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107f2565b60006001600160a01b038216610c6f5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107f2565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610cb55760405162461bcd60e51b81526004016107f290612757565b610cbf60006119f0565b565b600b8054610cce9061289c565b80601f0160208091040260200160405190810160405280929190818152602001828054610cfa9061289c565b8015610d475780601f10610d1c57610100808354040283529160200191610d47565b820191906000526020600020905b815481529060010190602001808311610d2a57829003601f168201915b505050505081565b6006546001600160a01b03163314610d795760405162461bcd60e51b81526004016107f290612757565b60026008541415610dcc5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107f2565b6002600855805161167d90610de060095490565b610dea919061280e565b1115610e385760405162461bcd60e51b815260206004820152601960248201527f4e6f742074686973206d616e7920746f6b656e73206c6566740000000000000060448201526064016107f2565b60015b81518111610ea657610e51600980546001019055565b610e9482610e60600184612859565b81518110610e7e57634e487b7160e01b600052603260045260246000fd5b6020026020010151610e8f60095490565b611a42565b80610e9e816128d7565b915050610e3b565b50506001600855565b336001600160a01b037f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb79521614610f275760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c0060448201526064016107f2565b610f318282611a5c565b5050565b6060600180546106fa9061289c565b610f31338383611a7a565b610f593383611572565b610f755760405162461bcd60e51b81526004016107f29061278c565b610f8184848484611b49565b50505050565b600d54610100900460ff16610fd65760405162461bcd60e51b815260206004820152601560248201527450726573616c65206973206e6f742061637469766560581b60448201526064016107f2565b336000908152600e602052604090205460ff16610b2c5760405162461bcd60e51b815260206004820152602a60248201527f536f7272792c206e6f2061636365737320756e6c65737320796f7527726520776044820152691a1a5d195b1a5cdd195960b21b60648201526084016107f2565b6006546001600160a01b031633146110725760405162461bcd60e51b81526004016107f290612757565b600d80549115156101000261ff0019909216919091179055565b6000818152600260205260409020546060906001600160a01b03166110ec5760405162461bcd60e51b81526020600482015260166024820152751d1bdad95b925108191bd95cc81b9bdd08195e1a5cdd60521b60448201526064016107f2565b600d5462010000900460ff1661118e57600b80546111099061289c565b80601f01602080910402602001604051908101604052809291908181526020018280546111359061289c565b80156111825780601f1061115757610100808354040283529160200191611182565b820191906000526020600020905b81548152906001019060200180831161116557829003601f168201915b50505050509050919050565b6000611198611b7c565b9050600061167d600c54856111ad919061280e565b6111b791906128f2565b6111c290600161280e565b905060008251116111e2576040518060200160405280600081525061120d565b816111ec82611b8b565b6040516020016111fd929190612646565b6040516020818303038152906040525b949350505050565b6006546000906001600160a01b031633146112425760405162461bcd60e51b81526004016107f290612757565b6040516370a0823160e01b81523060048201527f0000000000000000000000000000000000000000000000001bc16d674ec80000907f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316906370a082319060240160206040518083038186803b1580156112c357600080fd5b505afa1580156112d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112fb9190612602565b101561133b5760405162461bcd60e51b815260206004820152600f60248201526e4e6f7420656e6f756768204c494e4b60881b60448201526064016107f2565b6109ec7faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4457f0000000000000000000000000000000000000000000000001bc16d674ec80000611ca5565b6006546001600160a01b031633146113af5760405162461bcd60e51b81526004016107f290612757565b8051610f3190600b906020840190612136565b6006546001600160a01b031633146113ec5760405162461bcd60e51b81526004016107f290612757565b6001600160a01b0381166114515760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107f2565b610a8c816119f0565b6006546001600160a01b031633146114845760405162461bcd60e51b81526004016107f290612757565b60005b81811015610928576001600e60008585858181106114b557634e487b7160e01b600052603260045260246000fd5b90506020020160208101906114ca9190612233565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806114fc816128d7565b915050611487565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061153982610b8d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166115eb5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107f2565b60006115f683610b8d565b9050806001600160a01b0316846001600160a01b031614806116315750836001600160a01b03166116268461077d565b6001600160a01b0316145b8061120d57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff1661120d565b826001600160a01b031661167882610b8d565b6001600160a01b0316146116e05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016107f2565b6001600160a01b0382166117425760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107f2565b61174d600082611504565b6001600160a01b0383166000908152600360205260408120805460019290611776908490612859565b90915550506001600160a01b03821660009081526003602052604081208054600192906117a490849061280e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600260085414156118585760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107f2565b6002600855600d5460ff16156118b05760405162461bcd60e51b815260206004820152601a60248201527f506c65617365207761697420756e74696c20756e70617573656400000000000060448201526064016107f2565b600081116119005760405162461bcd60e51b815260206004820152601760248201527f4d696e74206174206c65617374206f6e6520746f6b656e00000000000000000060448201526064016107f2565b600a8111156119435760405162461bcd60e51b815260206004820152600f60248201526e26b0bc1018981020b63637bbb2b21760891b60448201526064016107f2565b61167d8161195060095490565b61195a919061280e565b11156119b95760405162461bcd60e51b815260206004820152602860248201527f4e6f7420656e6f75676820746f6b656e73206c65667420746f206d696e742074604482015267686174206d616e7960c01b60648201526084016107f2565b60015b818111610ea6576119d1600980546001019055565b6119de33610e8f60095490565b806119e8816128d7565b9150506119bc565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610f31828260405180602001604052806000815250611e30565b611a6861167d826128f2565b611a7390600161280e565b600c555050565b816001600160a01b0316836001600160a01b03161415611adc5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107f2565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611b54848484611665565b611b6084848484611e63565b610f815760405162461bcd60e51b81526004016107f290612705565b6060600a80546106fa9061289c565b606081611baf5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611bd95780611bc3816128d7565b9150611bd29050600a83612826565b9150611bb3565b60008167ffffffffffffffff811115611c0257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611c2c576020820181803683370190505b5090505b841561120d57611c41600183612859565b9150611c4e600a866128f2565b611c5990603061280e565b60f81b818381518110611c7c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611c9e600a86612826565b9450611c30565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795284866000604051602001611d15929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401611d42939291906126c2565b602060405180830381600087803b158015611d5c57600080fd5b505af1158015611d70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d9491906124d4565b50600083815260076020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a090910190925281519183019190912093879052919052611df090600161280e565b60008581526007602052604090205561120d8482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b611e3a8383611f70565b611e476000848484611e63565b6109285760405162461bcd60e51b81526004016107f290612705565b60006001600160a01b0384163b15611f6557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611ea7903390899088908890600401612685565b602060405180830381600087803b158015611ec157600080fd5b505af1925050508015611ef1575060408051601f3d908101601f19168201909252611eee9181019061252d565b60015b611f4b573d808015611f1f576040519150601f19603f3d011682016040523d82523d6000602084013e611f24565b606091505b508051611f435760405162461bcd60e51b81526004016107f290612705565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061120d565b506001949350505050565b6001600160a01b038216611fc65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107f2565b6000818152600260205260409020546001600160a01b03161561202b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107f2565b6001600160a01b038216600090815260036020526040812080546001929061205490849061280e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546120be9061289c565b90600052602060002090601f0160209004810192826120e05760008555612126565b82601f106120f95782800160ff19823516178555612126565b82800160010185558215612126579182015b8281111561212657823582559160200191906001019061210b565b506121329291506121aa565b5090565b8280546121429061289c565b90600052602060002090601f0160209004810192826121645760008555612126565b82601f1061217d57805160ff1916838001178555612126565b82800160010185558215612126579182015b8281111561212657825182559160200191906001019061218f565b5b8082111561213257600081556001016121ab565b600067ffffffffffffffff8311156121d9576121d9612932565b6121ec601f8401601f19166020016127dd565b905082815283838301111561220057600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461222e57600080fd5b919050565b600060208284031215612244578081fd5b61224d82612217565b9392505050565b60008060408385031215612266578081fd5b61226f83612217565b915061227d60208401612217565b90509250929050565b60008060006060848603121561229a578081fd5b6122a384612217565b92506122b160208501612217565b9150604084013590509250925092565b600080600080608085870312156122d6578081fd5b6122df85612217565b93506122ed60208601612217565b925060408501359150606085013567ffffffffffffffff81111561230f578182fd5b8501601f8101871361231f578182fd5b61232e878235602084016121bf565b91505092959194509250565b6000806040838503121561234c578182fd5b61235583612217565b9150602083013561236581612948565b809150509250929050565b60008060408385031215612382578182fd5b61238b83612217565b946020939093013593505050565b600080602083850312156123ab578182fd5b823567ffffffffffffffff808211156123c2578384fd5b818501915085601f8301126123d5578384fd5b8135818111156123e3578485fd5b8660208260051b85010111156123f7578485fd5b60209290920196919550909350505050565b6000602080838503121561241b578182fd5b823567ffffffffffffffff80821115612432578384fd5b818501915085601f830112612445578384fd5b81358181111561245757612457612932565b8060051b91506124688483016127dd565b8181528481019084860184860187018a1015612482578788fd5b8795505b838610156124ab5761249781612217565b835260019590950194918601918601612486565b5098975050505050505050565b6000602082840312156124c9578081fd5b813561224d81612948565b6000602082840312156124e5578081fd5b815161224d81612948565b60008060408385031215612502578182fd5b50508035926020909101359150565b600060208284031215612522578081fd5b813561224d81612956565b60006020828403121561253e578081fd5b815161224d81612956565b6000806020838503121561255b578182fd5b823567ffffffffffffffff80821115612572578384fd5b818501915085601f830112612585578384fd5b813581811115612593578485fd5b8660208285010111156123f7578485fd5b6000602082840312156125b5578081fd5b813567ffffffffffffffff8111156125cb578182fd5b8201601f810184136125db578182fd5b61120d848235602084016121bf565b6000602082840312156125fb578081fd5b5035919050565b600060208284031215612613578081fd5b5051919050565b60008151808452612632816020860160208601612870565b601f01601f19169290920160200192915050565b60008351612658818460208801612870565b83519083019061266c818360208801612870565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906126b89083018461261a565b9695505050505050565b60018060a01b03841681528260208201526060604082015260006126e9606083018461261a565b95945050505050565b60208152600061224d602083018461261a565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff8111828210171561280657612806612932565b604052919050565b6000821982111561282157612821612906565b500190565b6000826128355761283561291c565b500490565b600081600019048311821515161561285457612854612906565b500290565b60008282101561286b5761286b612906565b500390565b60005b8381101561288b578181015183820152602001612873565b83811115610f815750506000910152565b600181811c908216806128b057607f821691505b602082108114156128d157634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156128eb576128eb612906565b5060010190565b6000826129015761290161291c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8015158114610a8c57600080fd5b6001600160e01b031981168114610a8c57600080fdfea264697066735822122047f7c4c538018f23dc85a068e5d0fd6c9bcf038ce2ec99fb166cba258edbf14b64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec800000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d646d5469566838744556485a7974564a63365677726859444834524e354138664c42443641743738644d41322f000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d52417733594569434735426e6f614c476e3346744175394b47387666734b466150516163676f7a70574577450000000000000000000000
-----Decoded View---------------
Arg [0] : _initbaseURI (string): ipfs://QmdmTiVh8tEVHZytVJc6VwrhYDH4RN5A8fLBD6At78dMA2/
Arg [1] : _initNotRevealedURI (string): ipfs://QmRAw3YEiCG5BnoaLGn3FtAu9KG8vfsKFaPQacgozpWEwE
Arg [2] : _LINK_TOKEN (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA
Arg [3] : _LINK_VRF_COORDINATOR_ADDRESS (address): 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952
Arg [4] : _LINK_KEY_HASH (bytes32): 0xaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [5] : _LINK_FEE (uint256): 2000000000000000000
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [3] : 000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952
Arg [4] : aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [5] : 0000000000000000000000000000000000000000000000001bc16d674ec80000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [7] : 697066733a2f2f516d646d5469566838744556485a7974564a63365677726859
Arg [8] : 444834524e354138664c42443641743738644d41322f00000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [10] : 697066733a2f2f516d52417733594569434735426e6f614c476e334674417539
Arg [11] : 4b47387666734b466150516163676f7a70574577450000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.