ERC-721
Source Code
NFT
Overview
Max Total Supply
10,000 CT
Holders
3,112
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 CTLoading...
Loading
Loading...
Loading
Loading...
Loading
| # | Exchange | Pair | Price | 24H Volume | % Volume |
|---|
Contract Name:
ChiefToads
Compiler Version
v0.8.11+commit.d7f03943
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;
import "./ERC721A.sol";
import "@chainlink/contracts/src/v0.8/interfaces/VRFCoordinatorV2Interface.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBaseV2.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/// @title ChiefToads Mint Contract
contract ChiefToads is ERC721A, VRFConsumerBaseV2, Ownable {
using Strings for uint256;
using ECDSA for bytes32;
// -- Chainlink
VRFCoordinatorV2Interface COORDINATOR;
uint64 s_subscriptionId;
// see https://docs.chain.link/docs/vrf-contracts/#configurations
address vrfCoordinator;
// see https://docs.chain.link/docs/vrf-contracts/#configurations
bytes32 keyHash;
uint32 callbackGasLimit = 100000;
uint16 requestConfirmations = 3;
uint32 numWords = 1;
uint256[] public s_randomWords;
uint256 public s_requestId;
address s_owner;
// Chainlink --
string public baseURI;
bool private _revealed;
string private _unrevealedBaseURI;
// Stages
// 0: Before all minting commence
// 1: Community List Sale
// 2: End of community list sale, before Whitelist Sale
// 3: Whitelist Sale
// 4: Rizard Sale
// 5: End of whitelist + rizard, before public sale
// 6: Public sale
// 7: End of minting
uint256 public stage;
// General Mint Settings
uint256 public constant totalMaxSupply = 10000;
// Community Mint Settings
uint256 public communityMintMaxSupply = 5000;
uint256 public communityMintMaxPerWallet = 2; // Private Sale Address Mint Cap
uint256 public communityMintPrice = 0.1 ether; // Private Sale Mint Price
mapping(address => uint256) public communityMintCount;
address private communitySignerAddress;
// Whitelist Mint Settings
uint256 public whitelistMintMaxPerWallet = 2; // Private Sale Address Mint Cap
uint256 public whitelistMintPrice = 0.08 ether; // Private Sale Mint Price
mapping(address => uint256) public whitelistMintCount;
address private whitelistSignerAddress;
// Chief Rizard Mint Settings
uint256 public rizardMintMaxPerWallet = 10;
uint256 public rizardMintPrice = 0.08 ether;
mapping(address => uint256) public rizardMintCount;
address private rizardSignerAddress;
// Public Sale Mint Settings
uint256 public publicMintPrice = 0.1 ether;
uint256 public publicMintMaxPerWallet = 2;
mapping(address => uint256) public publicMintCount;
// Dev Mint Settings
// This counter will help to offset the minting of the dev tokens such that their count will not be counted towards the communityMintMaxSupply
uint256 public devMintCount;
// Treasury
address public treasury;
// Events
event PrivateMint(address indexed to, uint256 amount);
event PublicMint(address indexed to, uint256 amount);
event DevMint(uint256 count);
event WithdrawETH(uint256 amountWithdrawn);
event Revealed(uint256 timestamp);
event PrivateSaleOpened(bool status, uint256 timestamp);
event PublicSaleOpened(bool status, uint256 timestamp);
// Modifiers
/**
* @dev Prevent Smart Contracts from calling the functions with this modifier
*/
modifier onlyEOA() {
require(msg.sender == tx.origin, "ChiefToads: must use EOA");
_;
}
constructor(
uint64 subscriptionId,
address _vrfCoordinator,
bytes32 _keyHash,
address _owner,
address _communitySignerAddress,
address _whitelistSignerAddress,
address _rizardSignerAddress,
string memory _unrevealed
) ERC721A("ChiefToad", "CT") VRFConsumerBaseV2(_vrfCoordinator) {
// -- Chainlink
require(
subscriptionId != 0,
"VRFv2Consumer: subscriptionId must not be 0"
);
require(
_vrfCoordinator != address(0),
"VRFv2Consumer: vrfCoordinator cannot be 0"
);
require(_keyHash != bytes32(0), "VRFv2Consumer: keyHash cannot be 0");
vrfCoordinator = _vrfCoordinator;
keyHash = _keyHash;
COORDINATOR = VRFCoordinatorV2Interface(vrfCoordinator);
s_subscriptionId = subscriptionId;
// Chainlink --
_currentIndex = 1;
setUnrevealedBasedURI(_unrevealed);
setTreasury(_owner);
setCommunitySignerAddress(_communitySignerAddress);
setWhitelistSignerAddress(_whitelistSignerAddress);
setRizardSignerAddress(_rizardSignerAddress);
transferOwnership(_owner);
}
// -- Chainlink
function shuffle() external onlyOwner {
// Will revert if subscription is not set and funded.
s_requestId = COORDINATOR.requestRandomWords(
keyHash,
s_subscriptionId,
requestConfirmations,
callbackGasLimit,
numWords
);
}
function fulfillRandomWords(
uint256, /* requestId */
uint256[] memory randomWords
) internal override {
s_randomWords = randomWords;
}
/**
* @dev Basically get the first Word of the random value.
*/
function getRandom() public view returns (uint256) {
require(
s_randomWords.length > 0,
"VRFv2Consumer: No random words available"
);
return s_randomWords[0];
}
// Chainlink --
// -------------------- MINT FUNCTIONS --------------------------
/**
* @notice Community List Mint
* @dev 5th July 21:00 to 6th July 03:00
* 1. 5000 QTY (FCFS)
* 2. Price = 0.1 ETH
* 3. Max Mint per wallet = 2
* @param _mintAmount Amount that is minted
*/
function communityMint(
uint256 _mintAmount,
bytes memory nonce,
bytes memory signature
) external payable onlyEOA {
// Check if communityMint is open
require(stage == 1, "ChiefToads: Community Mint is not open");
// Check if user is whitelisted
require(
communitySigned(msg.sender, nonce, signature),
"ChiefToads: Invalid Signature!"
);
// Check if enough ETH is sent
require(
msg.value == _mintAmount * communityMintPrice,
"ChiefToads: Insufficient ETH!"
);
// Check if mints does not exceed communityMintMaxSupply
require(
totalSupply() + _mintAmount <=
communityMintMaxSupply + devMintCount,
"ChiefToads: Max Supply for Community Mint Reached!"
);
// Check if mints does not exceed max wallet allowance for public sale
require(
communityMintCount[msg.sender] + _mintAmount <=
communityMintMaxPerWallet,
"ChiefToads: Wallet has already minted Max Amount for Community Mint!"
);
communityMintCount[msg.sender] += _mintAmount;
_safeMint(msg.sender, _mintAmount);
emit PrivateMint(msg.sender, _mintAmount);
}
/**
* @notice Whitelist Mint
* @dev 6th July 21:00 to 7th July 09:00
* 1. 888 WL ~ 1776 QTY
* 2. Price = 0.08 ETH
* 3. Max Mint per wallet = 2
* @param _mintAmount Amount that is minted
*/
function whitelistMint(
uint256 _mintAmount,
bytes memory nonce,
bytes memory signature
) external payable onlyEOA {
// Check if user is whitelisted
require(
whitelistSigned(msg.sender, nonce, signature),
"ChiefToads: Invalid Signature!"
);
// Check if whitelist sale is open
require(
stage == 3 || stage == 4,
"ChiefToads: Whitelist Mint is not open"
);
// Check if enough ETH is sent
require(
msg.value == _mintAmount * whitelistMintPrice,
"ChiefToads: Insufficient ETH!"
);
// Check if mints does not exceed MAX_SUPPLY
require(
totalSupply() + _mintAmount <= totalMaxSupply,
"ChiefToads: Exceeded Max Supply for Chief Toads!"
);
// Check if mints does not exceed max wallet allowance for public sale
require(
whitelistMintCount[msg.sender] + _mintAmount <=
whitelistMintMaxPerWallet,
"ChiefToads: Wallet has already minted Max Amount for Whitelist Mint 2!"
);
whitelistMintCount[msg.sender] += _mintAmount;
_safeMint(msg.sender, _mintAmount);
emit PrivateMint(msg.sender, _mintAmount);
}
/**
* @notice Chief Rizard Mint
* @dev 6th July 23:00 to 7th 09:00
* 1. 2336 QTY
* 2. Price = 0.08 ETH
* 3. Max Mint per wallet = 10
* @param _mintAmount Amount that is minted
*/
function rizardMint(
uint256 _mintAmount,
bytes memory nonce,
bytes memory signature
) external payable onlyEOA {
// Check if user is whitelisted
require(
rizardSigned(msg.sender, nonce, signature),
"ChiefToads: Invalid Signature!"
);
// Check if rizard sale is open
require(stage == 4, "ChiefToads: Rizard Mint is not open");
// Check if enough ETH is sent
require(
msg.value == _mintAmount * rizardMintPrice,
"ChiefToads: Insufficient ETH!"
);
// Check if mints does not exceed MAX_SUPPLY
require(
totalSupply() + _mintAmount <= totalMaxSupply,
"ChiefToads: Exceeded Max Supply for Chief Toads!"
);
// Check if mints does not exceed max wallet allowance for public sale
require(
rizardMintCount[msg.sender] + _mintAmount <= rizardMintMaxPerWallet,
"ChiefToads: Wallet has already minted Max Amount for Rizard Mint!"
);
rizardMintCount[msg.sender] += _mintAmount;
_safeMint(msg.sender, _mintAmount);
emit PrivateMint(msg.sender, _mintAmount);
}
/**
* @notice Public Mint
* @param _mintAmount Amount that is minted
*/
function publicMint(uint256 _mintAmount) external payable onlyEOA {
// Check if public sale is open
require(stage == 6, "ChiefToads: Public Sale Closed!");
// Check if enough ETH is sent
require(
msg.value == _mintAmount * publicMintPrice,
"ChiefToads: Insufficient ETH!"
);
// Check if mints does not exceed total max supply
require(
totalSupply() + _mintAmount <= totalMaxSupply,
"ChiefToads: Max Supply for Public Mint Reached!"
);
require(
publicMintCount[msg.sender] + _mintAmount <= publicMintMaxPerWallet,
"ChiefToads: Wallet has already minted Max Amount for Public Mint!"
);
publicMintCount[msg.sender] += _mintAmount;
_safeMint(msg.sender, _mintAmount);
emit PublicMint(msg.sender, _mintAmount);
}
/**
* @notice Dev Mint
* @param _mintAmount Amount that is minted
*/
function devMint(uint256 _mintAmount) external onlyOwner {
require(
totalSupply() + _mintAmount <= totalMaxSupply,
"ChiefToads: Max Supply Reached!"
);
devMintCount += _mintAmount;
_safeMint(owner(), _mintAmount);
}
/**
* @notice Airdrop
* @param _addresses List of addresses
*/
function airdrop(address[] memory _addresses) external onlyOwner {
require(
totalSupply() + _addresses.length <= totalMaxSupply,
"ChiefToads: Max Supply Reached!"
);
for (uint256 i; i < _addresses.length; i++) {
_safeMint(_addresses[i], 1);
}
}
// -------------------- WHITELIST FUNCTION ----------------------
/**
* @dev Checks if the the signature is signed by a valid signer for whitelist
* @param sender Address of minter
* @param nonce Random bytes32 nonce
* @param signature Signature generated off-chain
*/
function whitelistSigned(
address sender,
bytes memory nonce,
bytes memory signature
) private view returns (bool) {
bytes32 hash = keccak256(abi.encodePacked(sender, nonce));
return whitelistSignerAddress == hash.recover(signature);
}
/**
* @dev Checks if the the signature is signed by a valid signer for communitylist
* @param sender Address of minter
* @param nonce Random bytes32 nonce
* @param signature Signature generated off-chain
*/
function communitySigned(
address sender,
bytes memory nonce,
bytes memory signature
) private view returns (bool) {
bytes32 hash = keccak256(abi.encodePacked(sender, nonce));
return communitySignerAddress == hash.recover(signature);
}
/**
* @dev Checks if the the signature is signed by a valid signer for rizardlist
* @param sender Address of minter
* @param nonce Random bytes32 nonce
* @param signature Signature generated off-chain
*/
function rizardSigned(
address sender,
bytes memory nonce,
bytes memory signature
) private view returns (bool) {
bytes32 hash = keccak256(abi.encodePacked(sender, nonce));
return rizardSignerAddress == hash.recover(signature);
}
// ---------------------- VIEW FUNCTIONS ------------------------
/**
* @dev See {IERC721Metadata-tokenURI}.
* @dev gets baseURI from contract state variable
*/
function tokenURI(uint256 tokenId)
public
view
virtual
override
returns (string memory)
{
if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
if (_revealed == false) {
return _unrevealedBaseURI;
}
uint256 shift = getRandom();
return
bytes(baseURI).length != 0
? string(
abi.encodePacked(
baseURI,
(((tokenId + shift) % totalMaxSupply) + 1).toString()
)
)
: "";
}
// ------------------------- OWNER FUNCTIONS ----------------------------
/**
* @dev Set stage of minting
*/
function setStage(uint256 _newStage) public onlyOwner {
stage = _newStage;
}
/**
* @dev Set signer address for community mint
*/
function setCommunitySignerAddress(address signer) public onlyOwner {
communitySignerAddress = signer;
}
/**
* @dev Set signer address for whitelist mint
*/
function setWhitelistSignerAddress(address signer) public onlyOwner {
whitelistSignerAddress = signer;
}
/**
* @dev Set signer address for Rizard Mint
*/
function setRizardSignerAddress(address signer) public onlyOwner {
rizardSignerAddress = signer;
}
/**
* @dev Set Community Sale maximum amount of mints
*/
function setCommunityMaxSupply(uint256 amount) public onlyOwner {
communityMintMaxSupply = amount;
}
function setCommunityMaxMintPerWallet(uint256 amount) public onlyOwner {
communityMintMaxPerWallet = amount;
}
function setWhitelistMaxMintPerWallet(uint256 amount) public onlyOwner {
whitelistMintMaxPerWallet = amount;
}
function setRizardMaxMintPerWallet(uint256 amount) public onlyOwner {
rizardMintMaxPerWallet = amount;
}
/**
* @dev Set the unrevealed URI
* @param newUnrevealedURI unrevealed URI for metadata
*/
function setNotRevealedURI(string memory newUnrevealedURI)
public
onlyOwner
{
_unrevealedBaseURI = newUnrevealedURI;
}
/**
* @dev Set Revealed Metadata URI
*/
function setBaseURI(string memory _newBaseURI) public onlyOwner {
baseURI = _newBaseURI;
}
/**
* @notice Set Revealed state of NFT metadata
*/
function reveal(bool revealed) public onlyOwner {
_revealed = revealed;
}
/**
* @notice Withdraw all ETH from this account to the owner
*/
function withdrawFund() external onlyOwner {
(bool success, ) = payable(treasury).call{value: address(this).balance}(
""
);
require(success, "Transfer failed");
}
/**
* @notice Sets the treasury address
*/
function setTreasury(address _treasury) public onlyOwner {
treasury = _treasury;
}
function setUnrevealedBasedURI(string memory __unrevealedBaseURI)
public
onlyOwner
{
_unrevealedBaseURI = __unrevealedBaseURI;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
/** ****************************************************************************
* @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. It ensures 2 things:
* @dev 1. The fulfillment came from the VRFCoordinator
* @dev 2. The consumer contract implements fulfillRandomWords.
* *****************************************************************************
* @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 constructor(<other arguments>, address _vrfCoordinator, address _link)
* @dev VRFConsumerBase(_vrfCoordinator) 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). Create subscription, fund it
* @dev and your consumer contract as a consumer of it (see VRFCoordinatorInterface
* @dev subscription management functions).
* @dev Call requestRandomWords(keyHash, subId, minimumRequestConfirmations,
* @dev callbackGasLimit, numWords),
* @dev see (VRFCoordinatorInterface for a description of the arguments).
*
* @dev Once the VRFCoordinator has received and validated the oracle's response
* @dev to your request, it will call your contract's fulfillRandomWords method.
*
* @dev The randomness argument to fulfillRandomWords is a set of random words
* @dev generated from your requestId and the blockHash of the request.
*
* @dev If your contract could have concurrent requests open, you can use the
* @dev requestId returned from requestRandomWords to track which response is associated
* @dev with which randomness request.
* @dev 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.
*
* *****************************************************************************
* @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 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. It is for this reason that
* @dev that you can signal to an oracle you'd like them to wait longer before
* @dev responding to the request (however this is not enforced in the contract
* @dev and so remains effective only in the case of unmodified oracle software).
*/
abstract contract VRFConsumerBaseV2 {
error OnlyCoordinatorCanFulfill(address have, address want);
address private immutable vrfCoordinator;
/**
* @param _vrfCoordinator address of VRFCoordinator contract
*/
constructor(address _vrfCoordinator) {
vrfCoordinator = _vrfCoordinator;
}
/**
* @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 VRFConsumerBaseV2 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 randomWords the VRF output expanded to the requested number of words
*/
function fulfillRandomWords(uint256 requestId, uint256[] memory randomWords) internal virtual;
// rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF
// proof. rawFulfillRandomness then calls fulfillRandomness, after validating
// the origin of the call
function rawFulfillRandomWords(uint256 requestId, uint256[] memory randomWords) external {
if (msg.sender != vrfCoordinator) {
revert OnlyCoordinatorCanFulfill(msg.sender, vrfCoordinator);
}
fulfillRandomWords(requestId, randomWords);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface VRFCoordinatorV2Interface {
/**
* @notice Get configuration relevant for making requests
* @return minimumRequestConfirmations global min for request confirmations
* @return maxGasLimit global max for request gas limit
* @return s_provingKeyHashes list of registered key hashes
*/
function getRequestConfig()
external
view
returns (
uint16,
uint32,
bytes32[] memory
);
/**
* @notice Request a set of random words.
* @param keyHash - Corresponds to a particular oracle job which uses
* that key for generating the VRF proof. Different keyHash's have different gas price
* ceilings, so you can select a specific one to bound your maximum per request cost.
* @param subId - The ID of the VRF subscription. Must be funded
* with the minimum subscription balance required for the selected keyHash.
* @param minimumRequestConfirmations - How many blocks you'd like the
* oracle to wait before responding to the request. See SECURITY CONSIDERATIONS
* for why you may want to request more. The acceptable range is
* [minimumRequestBlockConfirmations, 200].
* @param callbackGasLimit - How much gas you'd like to receive in your
* fulfillRandomWords callback. Note that gasleft() inside fulfillRandomWords
* may be slightly less than this amount because of gas used calling the function
* (argument decoding etc.), so you may need to request slightly more than you expect
* to have inside fulfillRandomWords. The acceptable range is
* [0, maxGasLimit]
* @param numWords - The number of uint256 random values you'd like to receive
* in your fulfillRandomWords callback. Note these numbers are expanded in a
* secure way by the VRFCoordinator from a single random value supplied by the oracle.
* @return requestId - A unique identifier of the request. Can be used to match
* a request to a response in fulfillRandomWords.
*/
function requestRandomWords(
bytes32 keyHash,
uint64 subId,
uint16 minimumRequestConfirmations,
uint32 callbackGasLimit,
uint32 numWords
) external returns (uint256 requestId);
/**
* @notice Create a VRF subscription.
* @return subId - A unique subscription id.
* @dev You can manage the consumer set dynamically with addConsumer/removeConsumer.
* @dev Note to fund the subscription, use transferAndCall. For example
* @dev LINKTOKEN.transferAndCall(
* @dev address(COORDINATOR),
* @dev amount,
* @dev abi.encode(subId));
*/
function createSubscription() external returns (uint64 subId);
/**
* @notice Get a VRF subscription.
* @param subId - ID of the subscription
* @return balance - LINK balance of the subscription in juels.
* @return reqCount - number of requests for this subscription, determines fee tier.
* @return owner - owner of the subscription.
* @return consumers - list of consumer address which are able to use this subscription.
*/
function getSubscription(uint64 subId)
external
view
returns (
uint96 balance,
uint64 reqCount,
address owner,
address[] memory consumers
);
/**
* @notice Request subscription owner transfer.
* @param subId - ID of the subscription
* @param newOwner - proposed new owner of the subscription
*/
function requestSubscriptionOwnerTransfer(uint64 subId, address newOwner) external;
/**
* @notice Request subscription owner transfer.
* @param subId - ID of the subscription
* @dev will revert if original owner of subId has
* not requested that msg.sender become the new owner.
*/
function acceptSubscriptionOwnerTransfer(uint64 subId) external;
/**
* @notice Add a consumer to a VRF subscription.
* @param subId - ID of the subscription
* @param consumer - New consumer which can use the subscription
*/
function addConsumer(uint64 subId, address consumer) external;
/**
* @notice Remove a consumer from a VRF subscription.
* @param subId - ID of the subscription
* @param consumer - Consumer to remove from the subscription
*/
function removeConsumer(uint64 subId, address consumer) external;
/**
* @notice Cancel a subscription
* @param subId - ID of the subscription
* @param to - Where to send the remaining LINK to
*/
function cancelSubscription(uint64 subId, address to) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);
/**
* @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
* Use along with {totalSupply} to enumerate all tokens.
*/
function tokenByIndex(uint256 index) external view returns (uint256);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/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 (last updated v4.5.0) (utils/cryptography/ECDSA.sol)
pragma solidity ^0.8.0;
import "../Strings.sol";
/**
* @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
*
* These functions can be used to verify that a message was signed by the holder
* of the private keys of a given address.
*/
library ECDSA {
enum RecoverError {
NoError,
InvalidSignature,
InvalidSignatureLength,
InvalidSignatureS,
InvalidSignatureV
}
function _throwError(RecoverError error) private pure {
if (error == RecoverError.NoError) {
return; // no error: do nothing
} else if (error == RecoverError.InvalidSignature) {
revert("ECDSA: invalid signature");
} else if (error == RecoverError.InvalidSignatureLength) {
revert("ECDSA: invalid signature length");
} else if (error == RecoverError.InvalidSignatureS) {
revert("ECDSA: invalid signature 's' value");
} else if (error == RecoverError.InvalidSignatureV) {
revert("ECDSA: invalid signature 'v' value");
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature` or error string. This address can then be used for verification purposes.
*
* The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {toEthSignedMessageHash} on it.
*
* Documentation for signature generation:
* - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
* - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
*
* _Available since v4.3._
*/
function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
// Check the signature length
// - case 65: r,s,v signature (standard)
// - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
if (signature.length == 65) {
bytes32 r;
bytes32 s;
uint8 v;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
assembly {
r := mload(add(signature, 0x20))
s := mload(add(signature, 0x40))
v := byte(0, mload(add(signature, 0x60)))
}
return tryRecover(hash, v, r, s);
} else if (signature.length == 64) {
bytes32 r;
bytes32 vs;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
assembly {
r := mload(add(signature, 0x20))
vs := mload(add(signature, 0x40))
}
return tryRecover(hash, r, vs);
} else {
return (address(0), RecoverError.InvalidSignatureLength);
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature`. This address can then be used for verification purposes.
*
* The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {toEthSignedMessageHash} on it.
*/
function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, signature);
_throwError(error);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
*
* See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
*
* _Available since v4.3._
*/
function tryRecover(
bytes32 hash,
bytes32 r,
bytes32 vs
) internal pure returns (address, RecoverError) {
bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
uint8 v = uint8((uint256(vs) >> 255) + 27);
return tryRecover(hash, v, r, s);
}
/**
* @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
*
* _Available since v4.2._
*/
function recover(
bytes32 hash,
bytes32 r,
bytes32 vs
) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, r, vs);
_throwError(error);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `v`,
* `r` and `s` signature fields separately.
*
* _Available since v4.3._
*/
function tryRecover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address, RecoverError) {
// EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
// unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
// the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
// signatures from current libraries generate a unique signature with an s-value in the lower half order.
//
// If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
// with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
// vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
// these malleable signatures as well.
if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
return (address(0), RecoverError.InvalidSignatureS);
}
if (v != 27 && v != 28) {
return (address(0), RecoverError.InvalidSignatureV);
}
// If the signature is valid (and not malleable), return the signer address
address signer = ecrecover(hash, v, r, s);
if (signer == address(0)) {
return (address(0), RecoverError.InvalidSignature);
}
return (signer, RecoverError.NoError);
}
/**
* @dev Overload of {ECDSA-recover} that receives the `v`,
* `r` and `s` signature fields separately.
*/
function recover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, v, r, s);
_throwError(error);
return recovered;
}
/**
* @dev Returns an Ethereum Signed Message, created from a `hash`. This
* produces hash corresponding to the one signed with the
* https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
* JSON-RPC method as part of EIP-191.
*
* See {recover}.
*/
function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
// 32 is the length in bytes of hash,
// enforced by the type signature above
return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
}
/**
* @dev Returns an Ethereum Signed Message, created from `s`. This
* produces hash corresponding to the one signed with the
* https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
* JSON-RPC method as part of EIP-191.
*
* See {recover}.
*/
function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
}
/**
* @dev Returns an Ethereum Signed Typed Data, created from a
* `domainSeparator` and a `structHash`. This produces hash corresponding
* to the one signed with the
* https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
* JSON-RPC method as part of EIP-712.
*
* See {recover}.
*/
function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
// Creator: Chiru Labs
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintedQueryForZeroAddress();
error BurnedQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerIndexOutOfBounds();
error OwnerQueryForNonexistentToken();
error TokenIndexOutOfBounds();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
*
* Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
*
* Assumes that the maximum token id cannot exceed 2**128 - 1 (max value of uint128).
*/
contract ERC721A is
Context,
ERC165,
IERC721,
IERC721Metadata,
IERC721Enumerable
{
using Address for address;
using Strings for uint256;
// Compiler will pack this into a single 256bit word.
struct TokenOwnership {
// The address of the owner.
address addr;
// Keeps track of the start time of ownership with minimal overhead for tokenomics.
uint64 startTimestamp;
// Whether the token has been burned.
bool burned;
}
// Compiler will pack this into a single 256bit word.
struct AddressData {
// Realistically, 2**64-1 is more than enough.
uint64 balance;
// Keeps track of mint count with minimal overhead for tokenomics.
uint64 numberMinted;
// Keeps track of burn count with minimal overhead for tokenomics.
uint64 numberBurned;
}
// Compiler will pack the following
// _currentIndex and _burnCounter into a single 256bit word.
// The tokenId of the next token to be minted.
uint128 internal _currentIndex;
// The number of tokens burned.
uint128 internal _burnCounter;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to ownership details
// An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details.
mapping(uint256 => TokenOwnership) internal _ownerships;
// Mapping owner address to address data
mapping(address => AddressData) private _addressData;
// Mapping from token ID to approved address
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC721Enumerable-totalSupply}.
*/
function totalSupply() public view override returns (uint256) {
// Counter underflow is impossible as _burnCounter cannot be incremented
// more than _currentIndex times
unchecked {
return _currentIndex - 1 - _burnCounter;
}
}
/**
* @dev See {IERC721Enumerable-tokenByIndex}.
* This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
* It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
*/
function tokenByIndex(uint256 index)
public
view
override
returns (uint256)
{
uint256 numMintedSoFar = _currentIndex;
uint256 tokenIdsIdx;
// Counter overflow is impossible as the loop breaks when
// uint256 i is equal to another uint256 numMintedSoFar.
unchecked {
for (uint256 i; i < numMintedSoFar; i++) {
TokenOwnership memory ownership = _ownerships[i];
if (!ownership.burned) {
if (tokenIdsIdx == index) {
return i;
}
tokenIdsIdx++;
}
}
}
revert TokenIndexOutOfBounds();
}
/**
* @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
* This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
* It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
*/
function tokenOfOwnerByIndex(address owner, uint256 index)
public
view
override
returns (uint256)
{
if (index >= balanceOf(owner)) revert OwnerIndexOutOfBounds();
uint256 numMintedSoFar = _currentIndex;
uint256 tokenIdsIdx;
address currOwnershipAddr;
// Counter overflow is impossible as the loop breaks when
// uint256 i is equal to another uint256 numMintedSoFar.
unchecked {
for (uint256 i; i < numMintedSoFar; i++) {
TokenOwnership memory ownership = _ownerships[i];
if (ownership.burned) {
continue;
}
if (ownership.addr != address(0)) {
currOwnershipAddr = ownership.addr;
}
if (currOwnershipAddr == owner) {
if (tokenIdsIdx == index) {
return i;
}
tokenIdsIdx++;
}
}
}
// Execution should never reach this point.
revert();
}
/**
* @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 ||
interfaceId == type(IERC721Enumerable).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view override returns (uint256) {
if (owner == address(0)) revert BalanceQueryForZeroAddress();
return uint256(_addressData[owner].balance);
}
function _numberMinted(address owner) internal view returns (uint256) {
if (owner == address(0)) revert MintedQueryForZeroAddress();
return uint256(_addressData[owner].numberMinted);
}
function _numberBurned(address owner) internal view returns (uint256) {
if (owner == address(0)) revert BurnedQueryForZeroAddress();
return uint256(_addressData[owner].numberBurned);
}
/**
* Gas spent here starts off proportional to the maximum mint batch size.
* It gradually moves to O(1) as tokens get transferred around in the collection over time.
*/
function ownershipOf(uint256 tokenId)
internal
view
returns (TokenOwnership memory)
{
uint256 curr = tokenId;
unchecked {
if (curr < _currentIndex) {
TokenOwnership memory ownership = _ownerships[curr];
if (!ownership.burned) {
if (ownership.addr != address(0)) {
return ownership;
}
// Invariant:
// There will always be an ownership that has an address and is not burned
// before an ownership that does not have an address and is not burned.
// Hence, curr will not underflow.
while (true) {
curr--;
ownership = _ownerships[curr];
if (ownership.addr != address(0)) {
return ownership;
}
}
}
}
}
revert OwnerQueryForNonexistentToken();
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view override returns (address) {
return ownershipOf(tokenId).addr;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId)
public
view
virtual
override
returns (string memory)
{
if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
string memory baseURI = _baseURI();
return
bytes(baseURI).length != 0
? string(abi.encodePacked(baseURI, tokenId.toString()))
: "";
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overriden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public override {
address owner = ERC721A.ownerOf(tokenId);
if (to == owner) revert ApprovalToCurrentOwner();
if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
revert ApprovalCallerNotOwnerNorApproved();
}
_approve(to, tokenId, owner);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId)
public
view
override
returns (address)
{
if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved)
public
override
{
if (operator == _msgSender()) revert ApproveToCaller();
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator)
public
view
virtual
override
returns (bool)
{
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
_transfer(from, to, tokenId);
if (!_checkOnERC721Received(from, to, tokenId, _data)) {
revert TransferToNonERC721ReceiverImplementer();
}
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
*/
function _exists(uint256 tokenId) internal view returns (bool) {
return tokenId < _currentIndex && !_ownerships[tokenId].burned;
}
function _safeMint(address to, uint256 quantity) internal {
_safeMint(to, quantity, "");
}
/**
* @dev Safely mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
* - `quantity` must be greater than 0.
*
* Emits a {Transfer} event.
*/
function _safeMint(
address to,
uint256 quantity,
bytes memory _data
) internal {
_mint(to, quantity, _data, true);
}
/**
* @dev Mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `quantity` must be greater than 0.
*
* Emits a {Transfer} event.
*/
function _mint(
address to,
uint256 quantity,
bytes memory _data,
bool safe
) internal {
uint256 startTokenId = _currentIndex;
if (to == address(0)) revert MintToZeroAddress();
if (quantity == 0) revert MintZeroQuantity();
_beforeTokenTransfers(address(0), to, startTokenId, quantity);
// Overflows are incredibly unrealistic.
// balance or numberMinted overflow if current value of either + quantity > 3.4e38 (2**128) - 1
// updatedIndex overflows if _currentIndex + quantity > 3.4e38 (2**128) - 1
unchecked {
_addressData[to].balance += uint64(quantity);
_addressData[to].numberMinted += uint64(quantity);
_ownerships[startTokenId].addr = to;
_ownerships[startTokenId].startTimestamp = uint64(block.timestamp);
uint256 updatedIndex = startTokenId;
for (uint256 i; i < quantity; i++) {
emit Transfer(address(0), to, updatedIndex);
if (
safe &&
!_checkOnERC721Received(address(0), to, updatedIndex, _data)
) {
revert TransferToNonERC721ReceiverImplementer();
}
updatedIndex++;
}
_currentIndex = uint128(updatedIndex);
}
_afterTokenTransfers(address(0), to, startTokenId, quantity);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) private {
TokenOwnership memory prevOwnership = ownershipOf(tokenId);
bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
isApprovedForAll(prevOwnership.addr, _msgSender()) ||
getApproved(tokenId) == _msgSender());
if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();
if (to == address(0)) revert TransferToZeroAddress();
_beforeTokenTransfers(from, to, tokenId, 1);
// Clear approvals from the previous owner
_approve(address(0), tokenId, prevOwnership.addr);
// Underflow of the sender's balance is impossible because we check for
// ownership above and the recipient's balance can't realistically overflow.
// Counter overflow is incredibly unrealistic as tokenId would have to be 2**128.
unchecked {
_addressData[from].balance -= 1;
_addressData[to].balance += 1;
_ownerships[tokenId].addr = to;
_ownerships[tokenId].startTimestamp = uint64(block.timestamp);
// If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
// Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
uint256 nextTokenId = tokenId + 1;
if (_ownerships[nextTokenId].addr == address(0)) {
// This will suffice for checking _exists(nextTokenId),
// as a burned slot cannot contain the zero address.
if (nextTokenId < _currentIndex) {
_ownerships[nextTokenId].addr = prevOwnership.addr;
_ownerships[nextTokenId].startTimestamp = prevOwnership
.startTimestamp;
}
}
}
emit Transfer(from, to, tokenId);
_afterTokenTransfers(from, to, tokenId, 1);
}
/**
* @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 {
TokenOwnership memory prevOwnership = ownershipOf(tokenId);
_beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);
// Clear approvals from the previous owner
_approve(address(0), tokenId, prevOwnership.addr);
// Underflow of the sender's balance is impossible because we check for
// ownership above and the recipient's balance can't realistically overflow.
// Counter overflow is incredibly unrealistic as tokenId would have to be 2**128.
unchecked {
_addressData[prevOwnership.addr].balance -= 1;
_addressData[prevOwnership.addr].numberBurned += 1;
// Keep track of who burned the token, and the timestamp of burning.
_ownerships[tokenId].addr = prevOwnership.addr;
_ownerships[tokenId].startTimestamp = uint64(block.timestamp);
_ownerships[tokenId].burned = true;
// If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
// Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
uint256 nextTokenId = tokenId + 1;
if (_ownerships[nextTokenId].addr == address(0)) {
// This will suffice for checking _exists(nextTokenId),
// as a burned slot cannot contain the zero address.
if (nextTokenId < _currentIndex) {
_ownerships[nextTokenId].addr = prevOwnership.addr;
_ownerships[nextTokenId].startTimestamp = prevOwnership
.startTimestamp;
}
}
}
emit Transfer(prevOwnership.addr, address(0), tokenId);
_afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);
// Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
unchecked {
_burnCounter++;
}
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(
address to,
uint256 tokenId,
address owner
) private {
_tokenApprovals[tokenId] = to;
emit Approval(owner, to, tokenId);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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(to).onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert TransferToNonERC721ReceiverImplementer();
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
/**
* @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
* And also called before burning one token.
*
* startTokenId - the first token id to be transferred
* quantity - the amount to be transferred
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, `tokenId` will be burned by `from`.
* - `from` and `to` are never both zero.
*/
function _beforeTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
/**
* @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
* minting.
* And also called after one token has been burned.
*
* startTokenId - the first token id to be transferred
* quantity - the amount to be transferred
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
* transferred to `to`.
* - When `from` is zero, `tokenId` has been minted for `to`.
* - When `to` is zero, `tokenId` has been burned by `from`.
* - `from` and `to` are never both zero.
*/
function _afterTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
}{
"evmVersion": "london",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs",
"useLiteralContent": true
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": [],
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"uint64","name":"subscriptionId","type":"uint64"},{"internalType":"address","name":"_vrfCoordinator","type":"address"},{"internalType":"bytes32","name":"_keyHash","type":"bytes32"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_communitySignerAddress","type":"address"},{"internalType":"address","name":"_whitelistSignerAddress","type":"address"},{"internalType":"address","name":"_rizardSignerAddress","type":"address"},{"internalType":"string","name":"_unrevealed","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"have","type":"address"},{"internalType":"address","name":"want","type":"address"}],"name":"OnlyCoordinatorCanFulfill","type":"error"},{"inputs":[],"name":"OwnerIndexOutOfBounds","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenIndexOutOfBounds","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"count","type":"uint256"}],"name":"DevMint","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":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PrivateMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"status","type":"bool"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"PrivateSaleOpened","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PublicMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"status","type":"bool"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"PublicSaleOpened","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Revealed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amountWithdrawn","type":"uint256"}],"name":"WithdrawETH","type":"event"},{"inputs":[{"internalType":"address[]","name":"_addresses","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":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes","name":"nonce","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"communityMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"communityMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"communityMintMaxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"communityMintMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"communityMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devMintCount","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":"getRandom","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintMaxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"requestId","type":"uint256"},{"internalType":"uint256[]","name":"randomWords","type":"uint256[]"}],"name":"rawFulfillRandomWords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"revealed","type":"bool"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes","name":"nonce","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"rizardMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rizardMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rizardMintMaxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rizardMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"s_randomWords","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"s_requestId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"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":"uint256","name":"amount","type":"uint256"}],"name":"setCommunityMaxMintPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setCommunityMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"setCommunitySignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newUnrevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setRizardMaxMintPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"setRizardSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newStage","type":"uint256"}],"name":"setStage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"__unrevealedBaseURI","type":"string"}],"name":"setUnrevealedBasedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setWhitelistMaxMintPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"setWhitelistSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shuffle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes","name":"nonce","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistMintMaxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawFund","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60a0604052600b80546001600160501b03191666010003000186a01790556113886013556002601481905567016345785d8a00006015819055601882905567011c37937e0800006019819055600a601c55601d556020556021553480156200006657600080fd5b50604051620040a7380380620040a78339810160408190526200008991620006e6565b604080518082018252600981526810da1a5959951bd85960ba1b60208083019182528351808501909452600284526110d560f21b9084015281518a9391620000d591600191906200060d565b508051620000eb9060029060208401906200060d565b5050506001600160a01b03166080526200010533620002e3565b6001600160401b038816620001755760405162461bcd60e51b815260206004820152602b60248201527f5652467632436f6e73756d65723a20737562736372697074696f6e4964206d7560448201526a07374206e6f7420626520360ac1b60648201526084015b60405180910390fd5b6001600160a01b038716620001df5760405162461bcd60e51b815260206004820152602960248201527f5652467632436f6e73756d65723a20767266436f6f7264696e61746f7220636160448201526806e6e6f7420626520360bc1b60648201526084016200016c565b85620002395760405162461bcd60e51b815260206004820152602260248201527f5652467632436f6e73756d65723a206b6579486173682063616e6e6f74206265604482015261020360f41b60648201526084016200016c565b600980546001600160a01b0319166001600160a01b038916908117909155600a879055600880546001600160e01b031916909117600160a01b6001600160401b038b1602179055600080546001600160801b03191660011790556200029e8162000335565b620002a98562000399565b620002b48462000406565b620002bf8362000473565b620002ca82620004e0565b620002d5856200054d565b505050505050505062000880565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6007546001600160a01b03163314620003805760405162461bcd60e51b815260206004820181905260248201526000805160206200408783398151915260448201526064016200016c565b8051620003959060119060208401906200060d565b5050565b6007546001600160a01b03163314620003e45760405162461bcd60e51b815260206004820181905260248201526000805160206200408783398151915260448201526064016200016c565b602480546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b03163314620004515760405162461bcd60e51b815260206004820181905260248201526000805160206200408783398151915260448201526064016200016c565b601780546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b03163314620004be5760405162461bcd60e51b815260206004820181905260248201526000805160206200408783398151915260448201526064016200016c565b601b80546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b031633146200052b5760405162461bcd60e51b815260206004820181905260248201526000805160206200408783398151915260448201526064016200016c565b601f80546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b03163314620005985760405162461bcd60e51b815260206004820181905260248201526000805160206200408783398151915260448201526064016200016c565b6001600160a01b038116620005ff5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016200016c565b6200060a81620002e3565b50565b8280546200061b9062000843565b90600052602060002090601f0160209004810192826200063f57600085556200068a565b82601f106200065a57805160ff19168380011785556200068a565b828001600101855582156200068a579182015b828111156200068a5782518255916020019190600101906200066d565b50620006989291506200069c565b5090565b5b808211156200069857600081556001016200069d565b80516001600160a01b0381168114620006cb57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600080600080600080600080610100898b0312156200070457600080fd5b88516001600160401b0380821682146200071d57600080fd5b909850602090620007308b8301620006b3565b985060408b015197506200074760608c01620006b3565b96506200075760808c01620006b3565b95506200076760a08c01620006b3565b94506200077760c08c01620006b3565b935060e08b0151818111156200078c57600080fd5b8b01601f81018d136200079e57600080fd5b805182811115620007b357620007b3620006d0565b604051601f8201601f19908116603f01168101908482118183101715620007de57620007de620006d0565b816040528281528f86848601011115620007f757600080fd5b600094505b828510156200081b5783850186015181860187015293850193620007fc565b828511156200082d5760008684830101525b8096505050505050509295985092959890939650565b600181811c908216806200085857607f821691505b602082108114156200087a57634e487b7160e01b600052602260045260246000fd5b50919050565b6080516137e4620008a360003960008181610f750152610fb701526137e46000f3fe6080604052600436106103ad5760003560e01c8063715018a6116101e7578063b88d4fde1161010d578063e985e9c5116100a0578063f2c4ce1e1161006f578063f2c4ce1e14610699578063f2fde38b14610a89578063f504764d14610aa9578063f6eaffc814610ac957600080fd5b8063e985e9c5146109ea578063ea98eb1d14610a33578063efa1b73414610a53578063f0f4426014610a6957600080fd5b8063dc53fd92116100dc578063dc53fd921461097c578063e07fa3c114610992578063e89e106a146109a7578063e8b1d5a4146109bd57600080fd5b8063b88d4fde14610910578063c040e6b814610930578063c87b56dd14610946578063dafcd4471461096657600080fd5b806398ebf4d311610185578063a22cb46511610154578063a22cb46514610898578063a3b7f824146108b8578063aa880b4f146108e5578063aacc5a17146108fb57600080fd5b806398ebf4d31461082c5780639a80440a1461084c578063a0152b7a14610862578063a0617ad01461088257600080fd5b806393f3eafd116101c157806393f3eafd146107b7578063940cd05b146107ca57806395d89b41146107ea57806396330b5f146107ff57600080fd5b8063715018a614610764578063729ad39e146107795780638da5cb5b1461079957600080fd5b80633246e467116102d757806354f918031161026a57806361d027b31161023957806361d027b3146106ef5780636352211e1461070f5780636c0360eb1461072f57806370a082311461074457600080fd5b806354f9180314610679578063557c79421461069957806355f804b3146106b95780635f17ac2e146106d957600080fd5b80633eb1d777116102a65780633eb1d7771461060357806342842e0e146106235780634f6ccce714610643578063549817e51461066357600080fd5b80633246e4671461058a57806335c6aaf8146105a0578063375a069a146105b65780633bdf4ac6146105d657600080fd5b80631ae9d1a31161034f578063246e23811161031e578063246e2381146105225780632520bf04146105425780632db11544146105575780632f745c591461056a57600080fd5b80631ae9d1a3146104bc5780631fe543e3146104cf57806323b872dd146104ef57806324436f771461050f57600080fd5b8063095ea7b31161038b578063095ea7b31461044157806315bcfb361461046357806318160ddd146104875780631a892fb71461049c57600080fd5b806301ffc9a7146103b257806306fdde03146103e7578063081812fc14610409575b600080fd5b3480156103be57600080fd5b506103d26103cd366004612ed9565b610ae9565b60405190151581526020015b60405180910390f35b3480156103f357600080fd5b506103fc610b56565b6040516103de9190612f4e565b34801561041557600080fd5b50610429610424366004612f61565b610be8565b6040516001600160a01b0390911681526020016103de565b34801561044d57600080fd5b5061046161045c366004612f96565b610c2c565b005b34801561046f57600080fd5b5061047960155481565b6040519081526020016103de565b34801561049357600080fd5b50610479610cba565b3480156104a857600080fd5b506104616104b7366004612f61565b610cdd565b6104616104ca36600461307d565b610d15565b3480156104db57600080fd5b506104616104ea36600461310c565b610f6a565b3480156104fb57600080fd5b5061046161050a3660046131ad565b610ff2565b61046161051d36600461307d565b610ffd565b34801561052e57600080fd5b5061046161053d366004612f61565b6111be565b34801561054e57600080fd5b506104616111ed565b610461610565366004612f61565b6112d6565b34801561057657600080fd5b50610479610585366004612f96565b6114df565b34801561059657600080fd5b5061047960215481565b3480156105ac57600080fd5b5061047960195481565b3480156105c257600080fd5b506104616105d1366004612f61565b6115db565b3480156105e257600080fd5b506104796105f13660046131e9565b601a6020526000908152604090205481565b34801561060f57600080fd5b5061046161061e366004612f61565b611699565b34801561062f57600080fd5b5061046161063e3660046131ad565b6116c8565b34801561064f57600080fd5b5061047961065e366004612f61565b6116e3565b34801561066f57600080fd5b5061047960135481565b34801561068557600080fd5b506104616106943660046131e9565b61178d565b3480156106a557600080fd5b506104616106b4366004613204565b6117d9565b3480156106c557600080fd5b506104616106d4366004613204565b611816565b3480156106e557600080fd5b50610479601c5481565b3480156106fb57600080fd5b50602454610429906001600160a01b031681565b34801561071b57600080fd5b5061042961072a366004612f61565b611853565b34801561073b57600080fd5b506103fc611865565b34801561075057600080fd5b5061047961075f3660046131e9565b6118f3565b34801561077057600080fd5b50610461611941565b34801561078557600080fd5b5061046161079436600461324c565b611977565b3480156107a557600080fd5b506007546001600160a01b0316610429565b6104616107c536600461307d565b611a48565b3480156107d657600080fd5b506104616107e53660046132f3565b611bf4565b3480156107f657600080fd5b506103fc611c31565b34801561080b57600080fd5b5061047961081a3660046131e9565b60226020526000908152604090205481565b34801561083857600080fd5b50610461610847366004612f61565b611c40565b34801561085857600080fd5b5061047960235481565b34801561086e57600080fd5b5061046161087d3660046131e9565b611c6f565b34801561088e57600080fd5b5061047961271081565b3480156108a457600080fd5b506104616108b336600461330e565b611cbb565b3480156108c457600080fd5b506104796108d33660046131e9565b60166020526000908152604090205481565b3480156108f157600080fd5b5061047960185481565b34801561090757600080fd5b50610479611d51565b34801561091c57600080fd5b5061046161092b366004613341565b611dd8565b34801561093c57600080fd5b5061047960125481565b34801561095257600080fd5b506103fc610961366004612f61565b611e12565b34801561097257600080fd5b5061047960145481565b34801561098857600080fd5b5061047960205481565b34801561099e57600080fd5b50610461611f60565b3480156109b357600080fd5b50610479600d5481565b3480156109c957600080fd5b506104796109d83660046131e9565b601e6020526000908152604090205481565b3480156109f657600080fd5b506103d2610a053660046133a8565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610a3f57600080fd5b50610461610a4e366004612f61565b61201f565b348015610a5f57600080fd5b50610479601d5481565b348015610a7557600080fd5b50610461610a843660046131e9565b61204e565b348015610a9557600080fd5b50610461610aa43660046131e9565b61209a565b348015610ab557600080fd5b50610461610ac43660046131e9565b612132565b348015610ad557600080fd5b50610479610ae4366004612f61565b61217e565b60006001600160e01b031982166380ac58cd60e01b1480610b1a57506001600160e01b03198216635b5e139f60e01b145b80610b3557506001600160e01b0319821663780e9d6360e01b145b80610b5057506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060018054610b65906133d2565b80601f0160208091040260200160405190810160405280929190818152602001828054610b91906133d2565b8015610bde5780601f10610bb357610100808354040283529160200191610bde565b820191906000526020600020905b815481529060010190602001808311610bc157829003601f168201915b5050505050905090565b6000610bf38261219f565b610c10576040516333d1c03960e21b815260040160405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610c3782611853565b9050806001600160a01b0316836001600160a01b03161415610c6c5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610c8c5750610c8a8133610a05565b155b15610caa576040516367d9dca160e11b815260040160405180910390fd5b610cb58383836121d3565b505050565b6000546001600160801b03600160801b8204811691811691909103600019011690565b6007546001600160a01b03163314610d105760405162461bcd60e51b8152600401610d079061340d565b60405180910390fd5b601355565b333214610d345760405162461bcd60e51b8152600401610d0790613442565b601254600114610d955760405162461bcd60e51b815260206004820152602660248201527f4368696566546f6164733a20436f6d6d756e697479204d696e74206973206e6f6044820152653a1037b832b760d11b6064820152608401610d07565b610da033838361222f565b610dbc5760405162461bcd60e51b8152600401610d0790613479565b601554610dc990846134c6565b3414610de75760405162461bcd60e51b8152600401610d07906134e5565b602354601354610df7919061351c565b83610e00610cba565b610e0a919061351c565b1115610e735760405162461bcd60e51b815260206004820152603260248201527f4368696566546f6164733a204d617820537570706c7920666f7220436f6d6d756044820152716e697479204d696e7420526561636865642160701b6064820152608401610d07565b60145433600090815260166020526040902054610e9190859061351c565b1115610f015760405162461bcd60e51b81526020600482015260446024820181905260008051602061378f833981519152908201527f696e746564204d617820416d6f756e7420666f7220436f6d6d756e697479204d606482015263696e742160e01b608482015260a401610d07565b3360009081526016602052604081208054859290610f2090849061351c565b90915550610f3090503384612283565b60405183815233907f73c70fae6461815259bb17577a08362a747e97f1b952b86e211522d4a24f95379060200160405180910390a2505050565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610fe45760405163073e64fd60e21b81523360048201526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166024820152604401610d07565b610fee828261229d565b5050565b610cb58383836122b0565b33321461101c5760405162461bcd60e51b8152600401610d0790613442565b6110273383836124cd565b6110435760405162461bcd60e51b8152600401610d0790613479565b6012546003148061105657506012546004145b6110b15760405162461bcd60e51b815260206004820152602660248201527f4368696566546f6164733a2057686974656c697374204d696e74206973206e6f6044820152653a1037b832b760d11b6064820152608401610d07565b6019546110be90846134c6565b34146110dc5760405162461bcd60e51b8152600401610d07906134e5565b612710836110e8610cba565b6110f2919061351c565b11156111105760405162461bcd60e51b8152600401610d0790613534565b601854336000908152601a602052604090205461112e90859061351c565b111561119f5760405162461bcd60e51b8152602060048201526046602482015260008051602061378f83398151915260448201527f696e746564204d617820416d6f756e7420666f722057686974656c697374204d606482015265696e7420322160d01b608482015260a401610d07565b336000908152601a602052604081208054859290610f2090849061351c565b6007546001600160a01b031633146111e85760405162461bcd60e51b8152600401610d079061340d565b601c55565b6007546001600160a01b031633146112175760405162461bcd60e51b8152600401610d079061340d565b600854600a54600b546040516305d3b1d360e41b81526004810192909252600160a01b83046001600160401b03166024830152640100000000810461ffff16604483015263ffffffff808216606484015266010000000000009091041660848201526001600160a01b0390911690635d3b1d309060a4016020604051808303816000875af11580156112ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112d19190613584565b600d55565b3332146112f55760405162461bcd60e51b8152600401610d0790613442565b6012546006146113475760405162461bcd60e51b815260206004820152601f60248201527f4368696566546f6164733a205075626c69632053616c6520436c6f73656421006044820152606401610d07565b60205461135490826134c6565b34146113725760405162461bcd60e51b8152600401610d07906134e5565b6127108161137e610cba565b611388919061351c565b11156113ee5760405162461bcd60e51b815260206004820152602f60248201527f4368696566546f6164733a204d617820537570706c7920666f72205075626c6960448201526e63204d696e7420526561636865642160881b6064820152608401610d07565b6021543360009081526022602052604090205461140c90839061351c565b11156114785760405162461bcd60e51b8152602060048201526041602482015260008051602061378f83398151915260448201527f696e746564204d617820416d6f756e7420666f72205075626c6963204d696e746064820152602160f81b608482015260a401610d07565b336000908152602260205260408120805483929061149790849061351c565b909155506114a790503382612283565b60405181815233907f748a2986091c2034d6e93b6f44f771a79f0e1d6acd8a60c68c17d4e1e2feaed29060200160405180910390a250565b60006114ea836118f3565b8210611509576040516306ed618760e11b815260040160405180910390fd5b600080546001600160801b03169080805b838110156115d557600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16158015928201929092529061158157506115cd565b80516001600160a01b03161561159657805192505b876001600160a01b0316836001600160a01b031614156115cb57868414156115c457509350610b5092505050565b6001909301925b505b60010161151a565b50600080fd5b6007546001600160a01b031633146116055760405162461bcd60e51b8152600401610d079061340d565b61271081611611610cba565b61161b919061351c565b11156116695760405162461bcd60e51b815260206004820152601f60248201527f4368696566546f6164733a204d617820537570706c79205265616368656421006044820152606401610d07565b806023600082825461167b919061351c565b9091555050600754611696906001600160a01b031682612283565b50565b6007546001600160a01b031633146116c35760405162461bcd60e51b8152600401610d079061340d565b601255565b610cb583838360405180602001604052806000815250611dd8565b600080546001600160801b031681805b8281101561177357600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061176a57858314156117635750949350505050565b6001909201915b506001016116f3565b506040516329c8c00760e21b815260040160405180910390fd5b6007546001600160a01b031633146117b75760405162461bcd60e51b8152600401610d079061340d565b601780546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b031633146118035760405162461bcd60e51b8152600401610d079061340d565b8051610fee906011906020840190612df0565b6007546001600160a01b031633146118405760405162461bcd60e51b8152600401610d079061340d565b8051610fee90600f906020840190612df0565b600061185e82612521565b5192915050565b600f8054611872906133d2565b80601f016020809104026020016040519081016040528092919081815260200182805461189e906133d2565b80156118eb5780601f106118c0576101008083540402835291602001916118eb565b820191906000526020600020905b8154815290600101906020018083116118ce57829003601f168201915b505050505081565b60006001600160a01b03821661191c576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600460205260409020546001600160401b031690565b6007546001600160a01b0316331461196b5760405162461bcd60e51b8152600401610d079061340d565b6119756000612643565b565b6007546001600160a01b031633146119a15760405162461bcd60e51b8152600401610d079061340d565b61271081516119ae610cba565b6119b8919061351c565b1115611a065760405162461bcd60e51b815260206004820152601f60248201527f4368696566546f6164733a204d617820537570706c79205265616368656421006044820152606401610d07565b60005b8151811015610fee57611a36828281518110611a2757611a2761359d565b60200260200101516001612283565b80611a40816135b3565b915050611a09565b333214611a675760405162461bcd60e51b8152600401610d0790613442565b611a72338383612695565b611a8e5760405162461bcd60e51b8152600401610d0790613479565b601254600414611aec5760405162461bcd60e51b815260206004820152602360248201527f4368696566546f6164733a2052697a617264204d696e74206973206e6f74206f6044820152623832b760e91b6064820152608401610d07565b601d54611af990846134c6565b3414611b175760405162461bcd60e51b8152600401610d07906134e5565b61271083611b23610cba565b611b2d919061351c565b1115611b4b5760405162461bcd60e51b8152600401610d0790613534565b601c54336000908152601e6020526040902054611b6990859061351c565b1115611bd55760405162461bcd60e51b8152602060048201526041602482015260008051602061378f83398151915260448201527f696e746564204d617820416d6f756e7420666f722052697a617264204d696e746064820152602160f81b608482015260a401610d07565b336000908152601e602052604081208054859290610f2090849061351c565b6007546001600160a01b03163314611c1e5760405162461bcd60e51b8152600401610d079061340d565b6010805460ff1916911515919091179055565b606060028054610b65906133d2565b6007546001600160a01b03163314611c6a5760405162461bcd60e51b8152600401610d079061340d565b601455565b6007546001600160a01b03163314611c995760405162461bcd60e51b8152600401610d079061340d565b601f80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038216331415611ce55760405163b06307db60e01b815260040160405180910390fd5b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600c54600090611db45760405162461bcd60e51b815260206004820152602860248201527f5652467632436f6e73756d65723a204e6f2072616e646f6d20776f72647320616044820152677661696c61626c6560c01b6064820152608401610d07565b600c600081548110611dc857611dc861359d565b9060005260206000200154905090565b611de38484846122b0565b611def848484846126e9565b611e0c576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060611e1d8261219f565b611e3a57604051630a14c4b560e41b815260040160405180910390fd5b60105460ff16611ed65760118054611e51906133d2565b80601f0160208091040260200160405190810160405280929190818152602001828054611e7d906133d2565b8015611eca5780601f10611e9f57610100808354040283529160200191611eca565b820191906000526020600020905b815481529060010190602001808311611ead57829003601f168201915b50505050509050919050565b6000611ee0611d51565b9050600f8054611eef906133d2565b15159050611f0c5760405180602001604052806000815250611f59565b600f611f38612710611f1e848761351c565b611f2891906135e4565b611f3390600161351c565b6127e9565b604051602001611f49929190613614565b6040516020818303038152906040525b9392505050565b6007546001600160a01b03163314611f8a5760405162461bcd60e51b8152600401610d079061340d565b6024546040516000916001600160a01b03169047908381818185875af1925050503d8060008114611fd7576040519150601f19603f3d011682016040523d82523d6000602084013e611fdc565b606091505b50509050806116965760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b6044820152606401610d07565b6007546001600160a01b031633146120495760405162461bcd60e51b8152600401610d079061340d565b601855565b6007546001600160a01b031633146120785760405162461bcd60e51b8152600401610d079061340d565b602480546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b031633146120c45760405162461bcd60e51b8152600401610d079061340d565b6001600160a01b0381166121295760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d07565b61169681612643565b6007546001600160a01b0316331461215c5760405162461bcd60e51b8152600401610d079061340d565b601b80546001600160a01b0319166001600160a01b0392909216919091179055565b600c818154811061218e57600080fd5b600091825260209091200154905081565b600080546001600160801b031682108015610b50575050600090815260036020526040902054600160e01b900460ff161590565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60008084846040516020016122459291906136bb565b60408051601f198184030181529190528051602090910120905061226981846128e6565b6017546001600160a01b0391821691161495945050505050565b610fee82826040518060200160405280600081525061290a565b8051610cb590600c906020840190612e74565b60006122bb82612521565b80519091506000906001600160a01b0316336001600160a01b031614806122e9575081516122e99033610a05565b806123045750336122f984610be8565b6001600160a01b0316145b90508061232457604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b0316146123595760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03841661238057604051633a954ecd60e21b815260040160405180910390fd5b61239060008484600001516121d3565b6001600160a01b038581166000908152600460209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600390945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116612483576000546001600160801b031681101561248357825160008281526003602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b60008084846040516020016124e39291906136bb565b60408051601f198184030181529190528051602090910120905061250781846128e6565b601b546001600160a01b0391821691161495945050505050565b60408051606081018252600080825260208201819052918101829052905482906001600160801b031681101561262a57600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906126285780516001600160a01b0316156125bf579392505050565b5060001901600081815260036020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612623579392505050565b6125bf565b505b604051636f96cda160e11b815260040160405180910390fd5b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008084846040516020016126ab9291906136bb565b60408051601f19818403018152919052805160209091012090506126cf81846128e6565b601f546001600160a01b0391821691161495945050505050565b60006001600160a01b0384163b156127dd57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061272d9033908990889088906004016136f3565b6020604051808303816000875af1925050508015612768575060408051601f3d908101601f1916820190925261276591810190613730565b60015b6127c3573d808015612796576040519150601f19603f3d011682016040523d82523d6000602084013e61279b565b606091505b5080516127bb576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506127e1565b5060015b949350505050565b60608161280d5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156128375780612821816135b3565b91506128309050600a8361374d565b9150612811565b6000816001600160401b0381111561285157612851612fc0565b6040519080825280601f01601f19166020018201604052801561287b576020820181803683370190505b5090505b84156127e157612890600183613761565b915061289d600a866135e4565b6128a890603061351c565b60f81b8183815181106128bd576128bd61359d565b60200101906001600160f81b031916908160001a9053506128df600a8661374d565b945061287f565b60008060006128f58585612917565b9150915061290281612987565b509392505050565b610cb58383836001612b42565b60008082516041141561294e5760208301516040840151606085015160001a61294287828585612cca565b94509450505050612980565b825160401415612978576020830151604084015161296d868383612db7565b935093505050612980565b506000905060025b9250929050565b600081600481111561299b5761299b613778565b14156129a45750565b60018160048111156129b8576129b8613778565b1415612a065760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610d07565b6002816004811115612a1a57612a1a613778565b1415612a685760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610d07565b6003816004811115612a7c57612a7c613778565b1415612ad55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610d07565b6004816004811115612ae957612ae9613778565b14156116965760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610d07565b6000546001600160801b03166001600160a01b038516612b7457604051622e076360e81b815260040160405180910390fd5b83612b925760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260046020908152604080832080546001600160801b031981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526003909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b85811015612ca45760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4838015612c7a5750612c7860008884886126e9565b155b15612c98576040516368d2bf6b60e11b815260040160405180910390fd5b60019182019101612c23565b50600080546001600160801b0319166001600160801b03929092169190911790556124c6565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612d015750600090506003612dae565b8460ff16601b14158015612d1957508460ff16601c14155b15612d2a5750600090506004612dae565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612d7e573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612da757600060019250925050612dae565b9150600090505b94509492505050565b6000806001600160ff1b03831681612dd460ff86901c601b61351c565b9050612de287828885612cca565b935093505050935093915050565b828054612dfc906133d2565b90600052602060002090601f016020900481019282612e1e5760008555612e64565b82601f10612e3757805160ff1916838001178555612e64565b82800160010185558215612e64579182015b82811115612e64578251825591602001919060010190612e49565b50612e70929150612eae565b5090565b828054828255906000526020600020908101928215612e645791602002820182811115612e64578251825591602001919060010190612e49565b5b80821115612e705760008155600101612eaf565b6001600160e01b03198116811461169657600080fd5b600060208284031215612eeb57600080fd5b8135611f5981612ec3565b60005b83811015612f11578181015183820152602001612ef9565b83811115611e0c5750506000910152565b60008151808452612f3a816020860160208601612ef6565b601f01601f19169290920160200192915050565b602081526000611f596020830184612f22565b600060208284031215612f7357600080fd5b5035919050565b80356001600160a01b0381168114612f9157600080fd5b919050565b60008060408385031215612fa957600080fd5b612fb283612f7a565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612ffe57612ffe612fc0565b604052919050565b60006001600160401b0383111561301f5761301f612fc0565b613032601f8401601f1916602001612fd6565b905082815283838301111561304657600080fd5b828260208301376000602084830101529392505050565b600082601f83011261306e57600080fd5b611f5983833560208501613006565b60008060006060848603121561309257600080fd5b8335925060208401356001600160401b03808211156130b057600080fd5b6130bc8783880161305d565b935060408601359150808211156130d257600080fd5b506130df8682870161305d565b9150509250925092565b60006001600160401b0382111561310257613102612fc0565b5060051b60200190565b6000806040838503121561311f57600080fd5b823591506020808401356001600160401b0381111561313d57600080fd5b8401601f8101861361314e57600080fd5b803561316161315c826130e9565b612fd6565b81815260059190911b8201830190838101908883111561318057600080fd5b928401925b8284101561319e57833582529284019290840190613185565b80955050505050509250929050565b6000806000606084860312156131c257600080fd5b6131cb84612f7a565b92506131d960208501612f7a565b9150604084013590509250925092565b6000602082840312156131fb57600080fd5b611f5982612f7a565b60006020828403121561321657600080fd5b81356001600160401b0381111561322c57600080fd5b8201601f8101841361323d57600080fd5b6127e184823560208401613006565b6000602080838503121561325f57600080fd5b82356001600160401b0381111561327557600080fd5b8301601f8101851361328657600080fd5b803561329461315c826130e9565b81815260059190911b820183019083810190878311156132b357600080fd5b928401925b828410156132d8576132c984612f7a565b825292840192908401906132b8565b979650505050505050565b80358015158114612f9157600080fd5b60006020828403121561330557600080fd5b611f59826132e3565b6000806040838503121561332157600080fd5b61332a83612f7a565b9150613338602084016132e3565b90509250929050565b6000806000806080858703121561335757600080fd5b61336085612f7a565b935061336e60208601612f7a565b92506040850135915060608501356001600160401b0381111561339057600080fd5b61339c8782880161305d565b91505092959194509250565b600080604083850312156133bb57600080fd5b6133c483612f7a565b915061333860208401612f7a565b600181811c908216806133e657607f821691505b6020821081141561340757634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526018908201527f4368696566546f6164733a206d7573742075736520454f410000000000000000604082015260600190565b6020808252601e908201527f4368696566546f6164733a20496e76616c6964205369676e6174757265210000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156134e0576134e06134b0565b500290565b6020808252601d908201527f4368696566546f6164733a20496e73756666696369656e742045544821000000604082015260600190565b6000821982111561352f5761352f6134b0565b500190565b60208082526030908201527f4368696566546f6164733a204578636565646564204d617820537570706c792060408201526f666f7220436869656620546f6164732160801b606082015260800190565b60006020828403121561359657600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b60006000198214156135c7576135c76134b0565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826135f3576135f36135ce565b500690565b6000815161360a818560208601612ef6565b9290920192915050565b600080845481600182811c91508083168061363057607f831692505b602080841082141561365057634e487b7160e01b86526022600452602486fd5b8180156136645760018114613675576136a2565b60ff198616895284890196506136a2565b60008b81526020902060005b8681101561369a5781548b820152908501908301613681565b505084890196505b5050505050506136b281856135f8565b95945050505050565b6bffffffffffffffffffffffff198360601b168152600082516136e5816014850160208701612ef6565b919091016014019392505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061372690830184612f22565b9695505050505050565b60006020828403121561374257600080fd5b8151611f5981612ec3565b60008261375c5761375c6135ce565b500490565b600082821015613773576137736134b0565b500390565b634e487b7160e01b600052602160045260246000fdfe4368696566546f6164733a2057616c6c65742068617320616c7265616479206da264697066735822122034e8eabd265de5d140d2f37498bbee7cd99c57e86844ebc0881f37013c41a76a64736f6c634300080b00334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657200000000000000000000000000000000000000000000000000000000000000cf000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e699098af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef000000000000000000000000044833d2e3060730d4a67b59aa712c61d9b4127c000000000000000000000000f24100c7c19301b7a3abbb0e7a5754b8b35d6ef600000000000000000000000090cf87d7cdd10100c489e83c7c3e1b810e86a5f500000000000000000000000069ddec3b39cd4eea78c98a9912fed104635858010000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000004368747470733a2f2f697066732e696f2f697066732f516d5a743131336765714a5955393837335747565270326a43473477704e434775644c514372786d5861716242430000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106103ad5760003560e01c8063715018a6116101e7578063b88d4fde1161010d578063e985e9c5116100a0578063f2c4ce1e1161006f578063f2c4ce1e14610699578063f2fde38b14610a89578063f504764d14610aa9578063f6eaffc814610ac957600080fd5b8063e985e9c5146109ea578063ea98eb1d14610a33578063efa1b73414610a53578063f0f4426014610a6957600080fd5b8063dc53fd92116100dc578063dc53fd921461097c578063e07fa3c114610992578063e89e106a146109a7578063e8b1d5a4146109bd57600080fd5b8063b88d4fde14610910578063c040e6b814610930578063c87b56dd14610946578063dafcd4471461096657600080fd5b806398ebf4d311610185578063a22cb46511610154578063a22cb46514610898578063a3b7f824146108b8578063aa880b4f146108e5578063aacc5a17146108fb57600080fd5b806398ebf4d31461082c5780639a80440a1461084c578063a0152b7a14610862578063a0617ad01461088257600080fd5b806393f3eafd116101c157806393f3eafd146107b7578063940cd05b146107ca57806395d89b41146107ea57806396330b5f146107ff57600080fd5b8063715018a614610764578063729ad39e146107795780638da5cb5b1461079957600080fd5b80633246e467116102d757806354f918031161026a57806361d027b31161023957806361d027b3146106ef5780636352211e1461070f5780636c0360eb1461072f57806370a082311461074457600080fd5b806354f9180314610679578063557c79421461069957806355f804b3146106b95780635f17ac2e146106d957600080fd5b80633eb1d777116102a65780633eb1d7771461060357806342842e0e146106235780634f6ccce714610643578063549817e51461066357600080fd5b80633246e4671461058a57806335c6aaf8146105a0578063375a069a146105b65780633bdf4ac6146105d657600080fd5b80631ae9d1a31161034f578063246e23811161031e578063246e2381146105225780632520bf04146105425780632db11544146105575780632f745c591461056a57600080fd5b80631ae9d1a3146104bc5780631fe543e3146104cf57806323b872dd146104ef57806324436f771461050f57600080fd5b8063095ea7b31161038b578063095ea7b31461044157806315bcfb361461046357806318160ddd146104875780631a892fb71461049c57600080fd5b806301ffc9a7146103b257806306fdde03146103e7578063081812fc14610409575b600080fd5b3480156103be57600080fd5b506103d26103cd366004612ed9565b610ae9565b60405190151581526020015b60405180910390f35b3480156103f357600080fd5b506103fc610b56565b6040516103de9190612f4e565b34801561041557600080fd5b50610429610424366004612f61565b610be8565b6040516001600160a01b0390911681526020016103de565b34801561044d57600080fd5b5061046161045c366004612f96565b610c2c565b005b34801561046f57600080fd5b5061047960155481565b6040519081526020016103de565b34801561049357600080fd5b50610479610cba565b3480156104a857600080fd5b506104616104b7366004612f61565b610cdd565b6104616104ca36600461307d565b610d15565b3480156104db57600080fd5b506104616104ea36600461310c565b610f6a565b3480156104fb57600080fd5b5061046161050a3660046131ad565b610ff2565b61046161051d36600461307d565b610ffd565b34801561052e57600080fd5b5061046161053d366004612f61565b6111be565b34801561054e57600080fd5b506104616111ed565b610461610565366004612f61565b6112d6565b34801561057657600080fd5b50610479610585366004612f96565b6114df565b34801561059657600080fd5b5061047960215481565b3480156105ac57600080fd5b5061047960195481565b3480156105c257600080fd5b506104616105d1366004612f61565b6115db565b3480156105e257600080fd5b506104796105f13660046131e9565b601a6020526000908152604090205481565b34801561060f57600080fd5b5061046161061e366004612f61565b611699565b34801561062f57600080fd5b5061046161063e3660046131ad565b6116c8565b34801561064f57600080fd5b5061047961065e366004612f61565b6116e3565b34801561066f57600080fd5b5061047960135481565b34801561068557600080fd5b506104616106943660046131e9565b61178d565b3480156106a557600080fd5b506104616106b4366004613204565b6117d9565b3480156106c557600080fd5b506104616106d4366004613204565b611816565b3480156106e557600080fd5b50610479601c5481565b3480156106fb57600080fd5b50602454610429906001600160a01b031681565b34801561071b57600080fd5b5061042961072a366004612f61565b611853565b34801561073b57600080fd5b506103fc611865565b34801561075057600080fd5b5061047961075f3660046131e9565b6118f3565b34801561077057600080fd5b50610461611941565b34801561078557600080fd5b5061046161079436600461324c565b611977565b3480156107a557600080fd5b506007546001600160a01b0316610429565b6104616107c536600461307d565b611a48565b3480156107d657600080fd5b506104616107e53660046132f3565b611bf4565b3480156107f657600080fd5b506103fc611c31565b34801561080b57600080fd5b5061047961081a3660046131e9565b60226020526000908152604090205481565b34801561083857600080fd5b50610461610847366004612f61565b611c40565b34801561085857600080fd5b5061047960235481565b34801561086e57600080fd5b5061046161087d3660046131e9565b611c6f565b34801561088e57600080fd5b5061047961271081565b3480156108a457600080fd5b506104616108b336600461330e565b611cbb565b3480156108c457600080fd5b506104796108d33660046131e9565b60166020526000908152604090205481565b3480156108f157600080fd5b5061047960185481565b34801561090757600080fd5b50610479611d51565b34801561091c57600080fd5b5061046161092b366004613341565b611dd8565b34801561093c57600080fd5b5061047960125481565b34801561095257600080fd5b506103fc610961366004612f61565b611e12565b34801561097257600080fd5b5061047960145481565b34801561098857600080fd5b5061047960205481565b34801561099e57600080fd5b50610461611f60565b3480156109b357600080fd5b50610479600d5481565b3480156109c957600080fd5b506104796109d83660046131e9565b601e6020526000908152604090205481565b3480156109f657600080fd5b506103d2610a053660046133a8565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610a3f57600080fd5b50610461610a4e366004612f61565b61201f565b348015610a5f57600080fd5b50610479601d5481565b348015610a7557600080fd5b50610461610a843660046131e9565b61204e565b348015610a9557600080fd5b50610461610aa43660046131e9565b61209a565b348015610ab557600080fd5b50610461610ac43660046131e9565b612132565b348015610ad557600080fd5b50610479610ae4366004612f61565b61217e565b60006001600160e01b031982166380ac58cd60e01b1480610b1a57506001600160e01b03198216635b5e139f60e01b145b80610b3557506001600160e01b0319821663780e9d6360e01b145b80610b5057506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060018054610b65906133d2565b80601f0160208091040260200160405190810160405280929190818152602001828054610b91906133d2565b8015610bde5780601f10610bb357610100808354040283529160200191610bde565b820191906000526020600020905b815481529060010190602001808311610bc157829003601f168201915b5050505050905090565b6000610bf38261219f565b610c10576040516333d1c03960e21b815260040160405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610c3782611853565b9050806001600160a01b0316836001600160a01b03161415610c6c5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610c8c5750610c8a8133610a05565b155b15610caa576040516367d9dca160e11b815260040160405180910390fd5b610cb58383836121d3565b505050565b6000546001600160801b03600160801b8204811691811691909103600019011690565b6007546001600160a01b03163314610d105760405162461bcd60e51b8152600401610d079061340d565b60405180910390fd5b601355565b333214610d345760405162461bcd60e51b8152600401610d0790613442565b601254600114610d955760405162461bcd60e51b815260206004820152602660248201527f4368696566546f6164733a20436f6d6d756e697479204d696e74206973206e6f6044820152653a1037b832b760d11b6064820152608401610d07565b610da033838361222f565b610dbc5760405162461bcd60e51b8152600401610d0790613479565b601554610dc990846134c6565b3414610de75760405162461bcd60e51b8152600401610d07906134e5565b602354601354610df7919061351c565b83610e00610cba565b610e0a919061351c565b1115610e735760405162461bcd60e51b815260206004820152603260248201527f4368696566546f6164733a204d617820537570706c7920666f7220436f6d6d756044820152716e697479204d696e7420526561636865642160701b6064820152608401610d07565b60145433600090815260166020526040902054610e9190859061351c565b1115610f015760405162461bcd60e51b81526020600482015260446024820181905260008051602061378f833981519152908201527f696e746564204d617820416d6f756e7420666f7220436f6d6d756e697479204d606482015263696e742160e01b608482015260a401610d07565b3360009081526016602052604081208054859290610f2090849061351c565b90915550610f3090503384612283565b60405183815233907f73c70fae6461815259bb17577a08362a747e97f1b952b86e211522d4a24f95379060200160405180910390a2505050565b336001600160a01b037f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e699091614610fe45760405163073e64fd60e21b81523360048201526001600160a01b037f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909166024820152604401610d07565b610fee828261229d565b5050565b610cb58383836122b0565b33321461101c5760405162461bcd60e51b8152600401610d0790613442565b6110273383836124cd565b6110435760405162461bcd60e51b8152600401610d0790613479565b6012546003148061105657506012546004145b6110b15760405162461bcd60e51b815260206004820152602660248201527f4368696566546f6164733a2057686974656c697374204d696e74206973206e6f6044820152653a1037b832b760d11b6064820152608401610d07565b6019546110be90846134c6565b34146110dc5760405162461bcd60e51b8152600401610d07906134e5565b612710836110e8610cba565b6110f2919061351c565b11156111105760405162461bcd60e51b8152600401610d0790613534565b601854336000908152601a602052604090205461112e90859061351c565b111561119f5760405162461bcd60e51b8152602060048201526046602482015260008051602061378f83398151915260448201527f696e746564204d617820416d6f756e7420666f722057686974656c697374204d606482015265696e7420322160d01b608482015260a401610d07565b336000908152601a602052604081208054859290610f2090849061351c565b6007546001600160a01b031633146111e85760405162461bcd60e51b8152600401610d079061340d565b601c55565b6007546001600160a01b031633146112175760405162461bcd60e51b8152600401610d079061340d565b600854600a54600b546040516305d3b1d360e41b81526004810192909252600160a01b83046001600160401b03166024830152640100000000810461ffff16604483015263ffffffff808216606484015266010000000000009091041660848201526001600160a01b0390911690635d3b1d309060a4016020604051808303816000875af11580156112ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112d19190613584565b600d55565b3332146112f55760405162461bcd60e51b8152600401610d0790613442565b6012546006146113475760405162461bcd60e51b815260206004820152601f60248201527f4368696566546f6164733a205075626c69632053616c6520436c6f73656421006044820152606401610d07565b60205461135490826134c6565b34146113725760405162461bcd60e51b8152600401610d07906134e5565b6127108161137e610cba565b611388919061351c565b11156113ee5760405162461bcd60e51b815260206004820152602f60248201527f4368696566546f6164733a204d617820537570706c7920666f72205075626c6960448201526e63204d696e7420526561636865642160881b6064820152608401610d07565b6021543360009081526022602052604090205461140c90839061351c565b11156114785760405162461bcd60e51b8152602060048201526041602482015260008051602061378f83398151915260448201527f696e746564204d617820416d6f756e7420666f72205075626c6963204d696e746064820152602160f81b608482015260a401610d07565b336000908152602260205260408120805483929061149790849061351c565b909155506114a790503382612283565b60405181815233907f748a2986091c2034d6e93b6f44f771a79f0e1d6acd8a60c68c17d4e1e2feaed29060200160405180910390a250565b60006114ea836118f3565b8210611509576040516306ed618760e11b815260040160405180910390fd5b600080546001600160801b03169080805b838110156115d557600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16158015928201929092529061158157506115cd565b80516001600160a01b03161561159657805192505b876001600160a01b0316836001600160a01b031614156115cb57868414156115c457509350610b5092505050565b6001909301925b505b60010161151a565b50600080fd5b6007546001600160a01b031633146116055760405162461bcd60e51b8152600401610d079061340d565b61271081611611610cba565b61161b919061351c565b11156116695760405162461bcd60e51b815260206004820152601f60248201527f4368696566546f6164733a204d617820537570706c79205265616368656421006044820152606401610d07565b806023600082825461167b919061351c565b9091555050600754611696906001600160a01b031682612283565b50565b6007546001600160a01b031633146116c35760405162461bcd60e51b8152600401610d079061340d565b601255565b610cb583838360405180602001604052806000815250611dd8565b600080546001600160801b031681805b8281101561177357600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061176a57858314156117635750949350505050565b6001909201915b506001016116f3565b506040516329c8c00760e21b815260040160405180910390fd5b6007546001600160a01b031633146117b75760405162461bcd60e51b8152600401610d079061340d565b601780546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b031633146118035760405162461bcd60e51b8152600401610d079061340d565b8051610fee906011906020840190612df0565b6007546001600160a01b031633146118405760405162461bcd60e51b8152600401610d079061340d565b8051610fee90600f906020840190612df0565b600061185e82612521565b5192915050565b600f8054611872906133d2565b80601f016020809104026020016040519081016040528092919081815260200182805461189e906133d2565b80156118eb5780601f106118c0576101008083540402835291602001916118eb565b820191906000526020600020905b8154815290600101906020018083116118ce57829003601f168201915b505050505081565b60006001600160a01b03821661191c576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600460205260409020546001600160401b031690565b6007546001600160a01b0316331461196b5760405162461bcd60e51b8152600401610d079061340d565b6119756000612643565b565b6007546001600160a01b031633146119a15760405162461bcd60e51b8152600401610d079061340d565b61271081516119ae610cba565b6119b8919061351c565b1115611a065760405162461bcd60e51b815260206004820152601f60248201527f4368696566546f6164733a204d617820537570706c79205265616368656421006044820152606401610d07565b60005b8151811015610fee57611a36828281518110611a2757611a2761359d565b60200260200101516001612283565b80611a40816135b3565b915050611a09565b333214611a675760405162461bcd60e51b8152600401610d0790613442565b611a72338383612695565b611a8e5760405162461bcd60e51b8152600401610d0790613479565b601254600414611aec5760405162461bcd60e51b815260206004820152602360248201527f4368696566546f6164733a2052697a617264204d696e74206973206e6f74206f6044820152623832b760e91b6064820152608401610d07565b601d54611af990846134c6565b3414611b175760405162461bcd60e51b8152600401610d07906134e5565b61271083611b23610cba565b611b2d919061351c565b1115611b4b5760405162461bcd60e51b8152600401610d0790613534565b601c54336000908152601e6020526040902054611b6990859061351c565b1115611bd55760405162461bcd60e51b8152602060048201526041602482015260008051602061378f83398151915260448201527f696e746564204d617820416d6f756e7420666f722052697a617264204d696e746064820152602160f81b608482015260a401610d07565b336000908152601e602052604081208054859290610f2090849061351c565b6007546001600160a01b03163314611c1e5760405162461bcd60e51b8152600401610d079061340d565b6010805460ff1916911515919091179055565b606060028054610b65906133d2565b6007546001600160a01b03163314611c6a5760405162461bcd60e51b8152600401610d079061340d565b601455565b6007546001600160a01b03163314611c995760405162461bcd60e51b8152600401610d079061340d565b601f80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038216331415611ce55760405163b06307db60e01b815260040160405180910390fd5b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600c54600090611db45760405162461bcd60e51b815260206004820152602860248201527f5652467632436f6e73756d65723a204e6f2072616e646f6d20776f72647320616044820152677661696c61626c6560c01b6064820152608401610d07565b600c600081548110611dc857611dc861359d565b9060005260206000200154905090565b611de38484846122b0565b611def848484846126e9565b611e0c576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060611e1d8261219f565b611e3a57604051630a14c4b560e41b815260040160405180910390fd5b60105460ff16611ed65760118054611e51906133d2565b80601f0160208091040260200160405190810160405280929190818152602001828054611e7d906133d2565b8015611eca5780601f10611e9f57610100808354040283529160200191611eca565b820191906000526020600020905b815481529060010190602001808311611ead57829003601f168201915b50505050509050919050565b6000611ee0611d51565b9050600f8054611eef906133d2565b15159050611f0c5760405180602001604052806000815250611f59565b600f611f38612710611f1e848761351c565b611f2891906135e4565b611f3390600161351c565b6127e9565b604051602001611f49929190613614565b6040516020818303038152906040525b9392505050565b6007546001600160a01b03163314611f8a5760405162461bcd60e51b8152600401610d079061340d565b6024546040516000916001600160a01b03169047908381818185875af1925050503d8060008114611fd7576040519150601f19603f3d011682016040523d82523d6000602084013e611fdc565b606091505b50509050806116965760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b6044820152606401610d07565b6007546001600160a01b031633146120495760405162461bcd60e51b8152600401610d079061340d565b601855565b6007546001600160a01b031633146120785760405162461bcd60e51b8152600401610d079061340d565b602480546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b031633146120c45760405162461bcd60e51b8152600401610d079061340d565b6001600160a01b0381166121295760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d07565b61169681612643565b6007546001600160a01b0316331461215c5760405162461bcd60e51b8152600401610d079061340d565b601b80546001600160a01b0319166001600160a01b0392909216919091179055565b600c818154811061218e57600080fd5b600091825260209091200154905081565b600080546001600160801b031682108015610b50575050600090815260036020526040902054600160e01b900460ff161590565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60008084846040516020016122459291906136bb565b60408051601f198184030181529190528051602090910120905061226981846128e6565b6017546001600160a01b0391821691161495945050505050565b610fee82826040518060200160405280600081525061290a565b8051610cb590600c906020840190612e74565b60006122bb82612521565b80519091506000906001600160a01b0316336001600160a01b031614806122e9575081516122e99033610a05565b806123045750336122f984610be8565b6001600160a01b0316145b90508061232457604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b0316146123595760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03841661238057604051633a954ecd60e21b815260040160405180910390fd5b61239060008484600001516121d3565b6001600160a01b038581166000908152600460209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600390945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116612483576000546001600160801b031681101561248357825160008281526003602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b60008084846040516020016124e39291906136bb565b60408051601f198184030181529190528051602090910120905061250781846128e6565b601b546001600160a01b0391821691161495945050505050565b60408051606081018252600080825260208201819052918101829052905482906001600160801b031681101561262a57600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906126285780516001600160a01b0316156125bf579392505050565b5060001901600081815260036020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612623579392505050565b6125bf565b505b604051636f96cda160e11b815260040160405180910390fd5b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008084846040516020016126ab9291906136bb565b60408051601f19818403018152919052805160209091012090506126cf81846128e6565b601f546001600160a01b0391821691161495945050505050565b60006001600160a01b0384163b156127dd57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061272d9033908990889088906004016136f3565b6020604051808303816000875af1925050508015612768575060408051601f3d908101601f1916820190925261276591810190613730565b60015b6127c3573d808015612796576040519150601f19603f3d011682016040523d82523d6000602084013e61279b565b606091505b5080516127bb576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506127e1565b5060015b949350505050565b60608161280d5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156128375780612821816135b3565b91506128309050600a8361374d565b9150612811565b6000816001600160401b0381111561285157612851612fc0565b6040519080825280601f01601f19166020018201604052801561287b576020820181803683370190505b5090505b84156127e157612890600183613761565b915061289d600a866135e4565b6128a890603061351c565b60f81b8183815181106128bd576128bd61359d565b60200101906001600160f81b031916908160001a9053506128df600a8661374d565b945061287f565b60008060006128f58585612917565b9150915061290281612987565b509392505050565b610cb58383836001612b42565b60008082516041141561294e5760208301516040840151606085015160001a61294287828585612cca565b94509450505050612980565b825160401415612978576020830151604084015161296d868383612db7565b935093505050612980565b506000905060025b9250929050565b600081600481111561299b5761299b613778565b14156129a45750565b60018160048111156129b8576129b8613778565b1415612a065760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610d07565b6002816004811115612a1a57612a1a613778565b1415612a685760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610d07565b6003816004811115612a7c57612a7c613778565b1415612ad55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610d07565b6004816004811115612ae957612ae9613778565b14156116965760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610d07565b6000546001600160801b03166001600160a01b038516612b7457604051622e076360e81b815260040160405180910390fd5b83612b925760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260046020908152604080832080546001600160801b031981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526003909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b85811015612ca45760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4838015612c7a5750612c7860008884886126e9565b155b15612c98576040516368d2bf6b60e11b815260040160405180910390fd5b60019182019101612c23565b50600080546001600160801b0319166001600160801b03929092169190911790556124c6565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612d015750600090506003612dae565b8460ff16601b14158015612d1957508460ff16601c14155b15612d2a5750600090506004612dae565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612d7e573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612da757600060019250925050612dae565b9150600090505b94509492505050565b6000806001600160ff1b03831681612dd460ff86901c601b61351c565b9050612de287828885612cca565b935093505050935093915050565b828054612dfc906133d2565b90600052602060002090601f016020900481019282612e1e5760008555612e64565b82601f10612e3757805160ff1916838001178555612e64565b82800160010185558215612e64579182015b82811115612e64578251825591602001919060010190612e49565b50612e70929150612eae565b5090565b828054828255906000526020600020908101928215612e645791602002820182811115612e64578251825591602001919060010190612e49565b5b80821115612e705760008155600101612eaf565b6001600160e01b03198116811461169657600080fd5b600060208284031215612eeb57600080fd5b8135611f5981612ec3565b60005b83811015612f11578181015183820152602001612ef9565b83811115611e0c5750506000910152565b60008151808452612f3a816020860160208601612ef6565b601f01601f19169290920160200192915050565b602081526000611f596020830184612f22565b600060208284031215612f7357600080fd5b5035919050565b80356001600160a01b0381168114612f9157600080fd5b919050565b60008060408385031215612fa957600080fd5b612fb283612f7a565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612ffe57612ffe612fc0565b604052919050565b60006001600160401b0383111561301f5761301f612fc0565b613032601f8401601f1916602001612fd6565b905082815283838301111561304657600080fd5b828260208301376000602084830101529392505050565b600082601f83011261306e57600080fd5b611f5983833560208501613006565b60008060006060848603121561309257600080fd5b8335925060208401356001600160401b03808211156130b057600080fd5b6130bc8783880161305d565b935060408601359150808211156130d257600080fd5b506130df8682870161305d565b9150509250925092565b60006001600160401b0382111561310257613102612fc0565b5060051b60200190565b6000806040838503121561311f57600080fd5b823591506020808401356001600160401b0381111561313d57600080fd5b8401601f8101861361314e57600080fd5b803561316161315c826130e9565b612fd6565b81815260059190911b8201830190838101908883111561318057600080fd5b928401925b8284101561319e57833582529284019290840190613185565b80955050505050509250929050565b6000806000606084860312156131c257600080fd5b6131cb84612f7a565b92506131d960208501612f7a565b9150604084013590509250925092565b6000602082840312156131fb57600080fd5b611f5982612f7a565b60006020828403121561321657600080fd5b81356001600160401b0381111561322c57600080fd5b8201601f8101841361323d57600080fd5b6127e184823560208401613006565b6000602080838503121561325f57600080fd5b82356001600160401b0381111561327557600080fd5b8301601f8101851361328657600080fd5b803561329461315c826130e9565b81815260059190911b820183019083810190878311156132b357600080fd5b928401925b828410156132d8576132c984612f7a565b825292840192908401906132b8565b979650505050505050565b80358015158114612f9157600080fd5b60006020828403121561330557600080fd5b611f59826132e3565b6000806040838503121561332157600080fd5b61332a83612f7a565b9150613338602084016132e3565b90509250929050565b6000806000806080858703121561335757600080fd5b61336085612f7a565b935061336e60208601612f7a565b92506040850135915060608501356001600160401b0381111561339057600080fd5b61339c8782880161305d565b91505092959194509250565b600080604083850312156133bb57600080fd5b6133c483612f7a565b915061333860208401612f7a565b600181811c908216806133e657607f821691505b6020821081141561340757634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526018908201527f4368696566546f6164733a206d7573742075736520454f410000000000000000604082015260600190565b6020808252601e908201527f4368696566546f6164733a20496e76616c6964205369676e6174757265210000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156134e0576134e06134b0565b500290565b6020808252601d908201527f4368696566546f6164733a20496e73756666696369656e742045544821000000604082015260600190565b6000821982111561352f5761352f6134b0565b500190565b60208082526030908201527f4368696566546f6164733a204578636565646564204d617820537570706c792060408201526f666f7220436869656620546f6164732160801b606082015260800190565b60006020828403121561359657600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b60006000198214156135c7576135c76134b0565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826135f3576135f36135ce565b500690565b6000815161360a818560208601612ef6565b9290920192915050565b600080845481600182811c91508083168061363057607f831692505b602080841082141561365057634e487b7160e01b86526022600452602486fd5b8180156136645760018114613675576136a2565b60ff198616895284890196506136a2565b60008b81526020902060005b8681101561369a5781548b820152908501908301613681565b505084890196505b5050505050506136b281856135f8565b95945050505050565b6bffffffffffffffffffffffff198360601b168152600082516136e5816014850160208701612ef6565b919091016014019392505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061372690830184612f22565b9695505050505050565b60006020828403121561374257600080fd5b8151611f5981612ec3565b60008261375c5761375c6135ce565b500490565b600082821015613773576137736134b0565b500390565b634e487b7160e01b600052602160045260246000fdfe4368696566546f6164733a2057616c6c65742068617320616c7265616479206da264697066735822122034e8eabd265de5d140d2f37498bbee7cd99c57e86844ebc0881f37013c41a76a64736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000cf000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e699098af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef000000000000000000000000044833d2e3060730d4a67b59aa712c61d9b4127c000000000000000000000000f24100c7c19301b7a3abbb0e7a5754b8b35d6ef600000000000000000000000090cf87d7cdd10100c489e83c7c3e1b810e86a5f500000000000000000000000069ddec3b39cd4eea78c98a9912fed104635858010000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000004368747470733a2f2f697066732e696f2f697066732f516d5a743131336765714a5955393837335747565270326a43473477704e434775644c514372786d5861716242430000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : subscriptionId (uint64): 207
Arg [1] : _vrfCoordinator (address): 0x271682DEB8C4E0901D1a1550aD2e64D568E69909
Arg [2] : _keyHash (bytes32): 0x8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef
Arg [3] : _owner (address): 0x044833D2e3060730d4a67B59AA712C61D9b4127c
Arg [4] : _communitySignerAddress (address): 0xF24100C7C19301B7a3AbBB0e7A5754b8B35D6eF6
Arg [5] : _whitelistSignerAddress (address): 0x90cf87D7CDD10100c489e83C7C3e1b810e86A5F5
Arg [6] : _rizardSignerAddress (address): 0x69ddeC3b39cD4eEA78c98A9912FED10463585801
Arg [7] : _unrevealed (string): https://ipfs.io/ipfs/QmZt113geqJYU9873WGVRp2jCG4wpNCGudLQCrxmXaqbBC
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000cf
Arg [1] : 000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909
Arg [2] : 8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef
Arg [3] : 000000000000000000000000044833d2e3060730d4a67b59aa712c61d9b4127c
Arg [4] : 000000000000000000000000f24100c7c19301b7a3abbb0e7a5754b8b35d6ef6
Arg [5] : 00000000000000000000000090cf87d7cdd10100c489e83c7c3e1b810e86a5f5
Arg [6] : 00000000000000000000000069ddec3b39cd4eea78c98a9912fed10463585801
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [9] : 68747470733a2f2f697066732e696f2f697066732f516d5a743131336765714a
Arg [10] : 5955393837335747565270326a43473477704e434775644c514372786d586171
Arg [11] : 6242430000000000000000000000000000000000000000000000000000000000
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.