文件 1 的 8:ERC721TokenReceiver.sol
pragma solidity >=0.8.0;
interface ERC721TokenReceiver {
function onERC721Received(
address operator,
address from,
uint256 id,
bytes calldata data
) external returns (bytes4);
}
文件 2 的 8:ERC721a.sol
pragma solidity >=0.8.0;
import "./ERC721TokenReceiver.sol";
abstract contract ERC721a {
event Transfer(address indexed from, address indexed to, uint256 indexed id);
event Approval(
address indexed owner,
address indexed spender,
uint256 indexed id
);
event ApprovalForAll(
address indexed owner,
address indexed operator,
bool approved
);
string public name;
string public symbol;
function tokenURI(uint256 id) public view virtual returns (string memory);
uint256 public totalSupply;
mapping(address => uint256) public balanceOf;
mapping(uint256 => address) public getApproved;
mapping(address => mapping(address => bool)) public isApprovedForAll;
mapping(uint256 => address) internal owners;
constructor(string memory _name, string memory _symbol) {
name = _name;
symbol = _symbol;
}
function setApprovalForAll(address operator, bool approved) public virtual {
isApprovedForAll[msg.sender][operator] = approved;
emit ApprovalForAll(msg.sender, operator, approved);
}
function safeTransferFrom(
address from,
address to,
uint256 id
) public virtual {
transferFrom(from, to, id);
require(
to.code.length == 0 ||
ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") ==
ERC721TokenReceiver.onERC721Received.selector,
"UNSAFE_RECIPIENT"
);
}
function safeTransferFrom(
address from,
address to,
uint256 id,
bytes memory data
) public virtual {
transferFrom(from, to, id);
require(
to.code.length == 0 ||
ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) ==
ERC721TokenReceiver.onERC721Received.selector,
"UNSAFE_RECIPIENT"
);
}
function ownerOf(uint256 id) public view returns (address) {
return _ownerOf(id);
}
function approve(address spender, uint256 id) public {
address owner = _ownerOf(id);
require(
msg.sender == owner || isApprovedForAll[owner][msg.sender],
"NOT_AUTHORIZED"
);
getApproved[id] = spender;
emit Approval(owner, spender, id);
}
function transferFrom(
address from,
address to,
uint256 id
) public {
address owner = _ownerOf(id);
require(from == owner, "WRONG_FROM");
require(to != address(0), "INVALID_RECIPIENT");
require(
msg.sender == from ||
msg.sender == getApproved[id] ||
isApprovedForAll[from][msg.sender],
"NOT_AUTHORIZED"
);
unchecked {
balanceOf[from]--;
balanceOf[to]++;
}
owners[id] = to;
if (id + 1 <= totalSupply && owners[id + 1] == address(0)) {
owners[id + 1] = owner;
}
delete getApproved[id];
emit Transfer(from, to, id);
}
function _safeMintBatch(address to, uint256 amount) internal {
_safeMintBatch(to, amount, "");
}
function _safeMintBatch(
address to,
uint256 amount,
bytes memory data
) internal {
_mintBatch(to, amount, data, true);
}
function _mintBatch(address to, uint256 amount) internal {
_mintBatch(to, amount, "", false);
}
function _mintBatch(
address to,
uint256 amount,
bytes memory data
) internal {
_mintBatch(to, amount, data, false);
}
function _mintBatch(
address to,
uint256 amount,
bytes memory data,
bool safe
) internal {
require(to != address(0), "INVALID_RECIPIENT");
unchecked {
uint256 id = totalSupply + 1;
totalSupply += amount;
balanceOf[to] += amount;
owners[id] = to;
for (uint256 i = 0; i < amount; i++) {
emit Transfer(address(0), to, id);
if (safe) {
require(
to.code.length == 0 ||
ERC721TokenReceiver(to).onERC721Received(
msg.sender,
address(0),
id,
data
) ==
ERC721TokenReceiver.onERC721Received.selector,
"UNSAFE_RECIPIENT"
);
}
id++;
}
}
}
function _ownerOf(uint256 id) internal view returns (address) {
if (id > totalSupply) {
return address(0);
}
unchecked {
while (id > 0) {
if (owners[id] != address(0)) {
return owners[id];
}
id--;
}
}
return address(0);
}
function toString(uint256 value) internal pure returns (string memory) {
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);
}
function supportsInterface(bytes4 interfaceId)
public
pure
virtual
returns (bool)
{
return
interfaceId == 0x01ffc9a7 ||
interfaceId == 0x80ac58cd ||
interfaceId == 0x5b5e139f;
}
}
文件 3 的 8:LinkTokenInterface.sol
pragma solidity ^0.8.0;
interface LinkTokenInterface {
function allowance(address owner, address spender) external view returns (uint256 remaining);
function approve(address spender, uint256 value) external returns (bool success);
function balanceOf(address owner) external view returns (uint256 balance);
function decimals() external view returns (uint8 decimalPlaces);
function decreaseApproval(address spender, uint256 addedValue) external returns (bool success);
function increaseApproval(address spender, uint256 subtractedValue) external;
function name() external view returns (string memory tokenName);
function symbol() external view returns (string memory tokenSymbol);
function totalSupply() external view returns (uint256 totalTokensIssued);
function transfer(address to, uint256 value) external returns (bool success);
function transferAndCall(
address to,
uint256 value,
bytes calldata data
) external returns (bool success);
function transferFrom(
address from,
address to,
uint256 value
) external returns (bool success);
}
文件 4 的 8:Maxigoons.sol
pragma solidity ^0.8.0;
import "./NFT.sol";
contract Maxigoons is NFT {
constructor(address vrfCoordinator, address linkToken)
ERC721a("Maxigoons", "GOON")
NFT(
7007,
707,
100,
"bafybeicxiym4ou5ephvt4j66if3axll3s3uq7axspgcdjr5tvrtrfboqsa",
"bab93ab37b236a32545c4bb2239ac9da276bc18324bcdcf0d86e0d225299db7b",
0x9d14CAea98d6Ef30Ae169c361D2540dd680Bc280,
vrfCoordinator,
linkToken
)
{}
function claim(bytes32[] memory proof) public {
_sell(0, 1, 0, proof);
}
function presale(uint256 amount, bytes32[] memory proof) public payable {
_sell(1, amount, msg.value, proof);
}
function buy(uint256 amount) public payable {
_sell(2, amount, msg.value, new bytes32[](0));
}
function mint(
uint256 index,
uint256 amount,
bytes32[] memory proof
) public payable {
_sell(index, amount, msg.value, proof);
}
}
文件 5 的 8:MerkleProof.sol
pragma solidity ^0.8.0;
library MerkleProof {
function verify(
bytes32[] memory proof,
bytes32 root,
bytes32 leaf
) internal pure returns (bool) {
return processProof(proof, leaf) == root;
}
function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
bytes32 proofElement = proof[i];
if (computedHash <= proofElement) {
computedHash = _efficientHash(computedHash, proofElement);
} else {
computedHash = _efficientHash(proofElement, computedHash);
}
}
return computedHash;
}
function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
assembly {
mstore(0x00, a)
mstore(0x20, b)
value := keccak256(0x00, 0x40)
}
}
}
文件 6 的 8:NFT.sol
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "./ERC721a.sol";
abstract contract NFT is ERC721a, VRFConsumerBase {
struct Sale {
uint256 unitPrice;
uint256 maxAmount;
bytes32 treeRoot;
}
event OwnerUpdated(address indexed user, address indexed newOwner);
event Revealed(uint256 seed, bytes32 requestId);
bool public enabled;
address public owner;
address public vault;
string public contentId;
string public provenance;
uint256 public maxSupply;
uint256 public maxPerWallet;
uint256 public reserveAmount;
uint256 public seed;
uint256 public level;
uint256 public vrfFee = 2 * 10**18;
bytes32 public vrfHash =
0xAA77729D3466CA35AE8D28B3BBAC7CC36A5031EFDC430821C02BC31A238AF445;
Sale[] public sales;
mapping(uint256 => mapping(address => uint256)) public balanceOfSale;
constructor(
uint256 _maxSupply,
uint256 _reserveAmount,
uint256 _maxPerWallet,
string memory _contentId,
string memory _provenance,
address _vault,
address vrfCoordinator,
address linkToken
) VRFConsumerBase(vrfCoordinator, linkToken) {
maxSupply = _maxSupply;
reserveAmount = _reserveAmount;
maxPerWallet = _maxPerWallet;
contentId = _contentId;
provenance = _provenance;
vault = _vault;
owner = msg.sender;
}
modifier onlyOwner() {
require(msg.sender == owner, "401");
_;
}
function updateOwner(address newOwner) external onlyOwner {
owner = newOwner;
emit OwnerUpdated(msg.sender, newOwner);
}
function setVRF(uint256 fee, bytes32 _hash) external onlyOwner {
vrfFee = fee;
vrfHash = _hash;
}
function setSale(
uint256 index,
uint256 unitPrice,
uint256 maxAmount,
bytes32 treeRoot
) external onlyOwner {
require(index <= sales.length, "422");
if (index == sales.length) {
sales.push(Sale(unitPrice, maxAmount, treeRoot));
} else {
Sale storage sale = sales[index];
sale.unitPrice = unitPrice;
sale.maxAmount = maxAmount;
sale.treeRoot = treeRoot;
}
}
function setLevel(uint256 index) external onlyOwner {
require(sales.length > 0 && index < sales.length, "422");
level = index;
}
function enable() external onlyOwner {
enabled = true;
}
function disable() external onlyOwner {
enabled = false;
}
function reveal() public onlyOwner returns (bytes32) {
require(seed == 0, "403");
require(LINK.balanceOf(address(this)) >= vrfFee, "402");
return requestRandomness(vrfHash, vrfFee);
}
function fulfillRandomness(bytes32 requestId, uint256 randomness)
internal
override
{
require(seed == 0, "403");
seed = randomness;
emit Revealed(randomness, requestId);
}
function hasLevel(
uint256 index,
address candidate,
bytes32[] memory proof
) public view returns (bool) {
require(index < sales.length, "404");
Sale memory sale = sales[index];
return
MerkleProof.verify(
proof,
sale.treeRoot,
keccak256(abi.encodePacked(candidate))
);
}
function withdraw() external onlyOwner {
payable(vault).transfer(address(this).balance);
}
function baseURI() public view virtual returns (string memory) {
return string(abi.encodePacked("ipfs://", contentId, "/metadata/"));
}
function tokenURI(uint256 id) public view override returns (string memory) {
require(_ownerOf(id) != address(0), "404");
uint256 metaId;
if (seed == 0) {
metaId = 0;
} else {
metaId = _metadataOf(id);
}
return string(abi.encodePacked(baseURI(), toString(metaId), ".json"));
}
function contractURI() public view virtual returns (string memory) {
return string(abi.encodePacked(baseURI(), "contract.json"));
}
function reserve(uint256 amount) public virtual onlyOwner {
require(seed == 0, "403");
require(totalSupply + amount <= maxSupply, "403");
require(balanceOf[vault] + amount <= reserveAmount, "403");
_safeMintBatch(vault, amount);
}
function _metadataOf(uint256 id) internal view returns (uint256) {
uint256 seed_ = seed;
uint256 max = maxSupply;
uint256[] memory idToMeta = new uint256[](max);
for (uint256 i = 0; i < max; i++) {
idToMeta[i] = i;
}
for (uint256 i = 0; i < max - 1; i++) {
uint256 j = i + (uint256(keccak256(abi.encode(seed_, i))) % (max - i));
(idToMeta[i], idToMeta[j]) = (idToMeta[j], idToMeta[i]);
}
return idToMeta[id - 1] + 1;
}
function _sell(
uint256 index,
uint256 amount,
uint256 value,
bytes32[] memory proof
) internal {
Sale memory sale = sales[index];
bool isProtected = sale.treeRoot != 0;
require(enabled && sales.length > 0, "401");
if (isProtected) {
require(hasLevel(index, msg.sender, proof), "401");
}
require(amount * sale.unitPrice == value, "402");
require(index <= level, "403");
require(balanceOf[msg.sender] + amount <= maxPerWallet, "403");
require(totalSupply + amount <= maxSupply, "403");
if (isProtected) {
balanceOfSale[index][msg.sender] += amount;
require(balanceOfSale[index][msg.sender] <= sale.maxAmount, "403");
} else {
require(amount <= sale.maxAmount, "403");
}
_safeMintBatch(msg.sender, amount);
}
}
文件 7 的 8:VRFConsumerBase.sol
pragma solidity ^0.8.0;
import "./interfaces/LinkTokenInterface.sol";
import "./VRFRequestIDBase.sol";
abstract contract VRFConsumerBase is VRFRequestIDBase {
function fulfillRandomness(bytes32 requestId, uint256 randomness) internal virtual;
uint256 private constant USER_SEED_PLACEHOLDER = 0;
function requestRandomness(bytes32 _keyHash, uint256 _fee) internal returns (bytes32 requestId) {
LINK.transferAndCall(vrfCoordinator, _fee, abi.encode(_keyHash, USER_SEED_PLACEHOLDER));
uint256 vRFSeed = makeVRFInputSeed(_keyHash, USER_SEED_PLACEHOLDER, address(this), nonces[_keyHash]);
nonces[_keyHash] = nonces[_keyHash] + 1;
return makeRequestId(_keyHash, vRFSeed);
}
LinkTokenInterface internal immutable LINK;
address private immutable vrfCoordinator;
mapping(bytes32 => uint256)
private nonces;
constructor(address _vrfCoordinator, address _link) {
vrfCoordinator = _vrfCoordinator;
LINK = LinkTokenInterface(_link);
}
function rawFulfillRandomness(bytes32 requestId, uint256 randomness) external {
require(msg.sender == vrfCoordinator, "Only VRFCoordinator can fulfill");
fulfillRandomness(requestId, randomness);
}
}
文件 8 的 8:VRFRequestIDBase.sol
pragma solidity ^0.8.0;
contract VRFRequestIDBase {
function makeVRFInputSeed(
bytes32 _keyHash,
uint256 _userSeed,
address _requester,
uint256 _nonce
) internal pure returns (uint256) {
return uint256(keccak256(abi.encode(_keyHash, _userSeed, _requester, _nonce)));
}
function makeRequestId(bytes32 _keyHash, uint256 _vRFInputSeed) internal pure returns (bytes32) {
return keccak256(abi.encodePacked(_keyHash, _vRFInputSeed));
}
}
{
"compilationTarget": {
"contracts/Maxigoons.sol": "Maxigoons"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
}
[{"inputs":[{"internalType":"address","name":"vrfCoordinator","type":"address"},{"internalType":"address","name":"linkToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"seed","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"requestId","type":"bytes32"}],"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":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"balanceOfSale","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":"amount","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contentId","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"address","name":"candidate","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"hasLevel","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"level","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"presale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"provenance","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reveal","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","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":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"sales","outputs":[{"internalType":"uint256","name":"unitPrice","type":"uint256"},{"internalType":"uint256","name":"maxAmount","type":"uint256"},{"internalType":"bytes32","name":"treeRoot","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"seed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"setLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"unitPrice","type":"uint256"},{"internalType":"uint256","name":"maxAmount","type":"uint256"},{"internalType":"bytes32","name":"treeRoot","type":"bytes32"}],"name":"setSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"},{"internalType":"bytes32","name":"_hash","type":"bytes32"}],"name":"setVRF","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"updateOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vrfFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vrfHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]