diff --git a/media/dance.mp4 b/media/dance.mp4 new file mode 100644 index 0000000..94d3799 Binary files /dev/null and b/media/dance.mp4 differ diff --git a/media/vape.mp4 b/media/vape.mp4 new file mode 100644 index 0000000..19f5859 Binary files /dev/null and b/media/vape.mp4 differ diff --git a/next.config.js b/next.config.js index 5931883..bb25f63 100644 --- a/next.config.js +++ b/next.config.js @@ -1,8 +1,10 @@ +const withVideos = require("next-videos"); + /** @type {import('next').NextConfig} */ -module.exports = { +module.exports = withVideos({ reactStrictMode: true, webpack: (config) => { - config.resolve.fallback = { fs: false, net: false, tls: false } - return config + config.resolve.fallback = { fs: false, net: false, tls: false }; + return config; }, -} +}); diff --git a/package-lock.json b/package-lock.json index 639058d..8713db4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,6 +16,7 @@ "framer-motion": "^10.16.4", "lokijs": "^1.5.12", "next": "^13.4.19", + "next-videos": "^1.4.1", "pino-pretty": "^10.2.0", "react": "^18.2.0", "react-dom": "^18.2.0", @@ -2754,6 +2755,11 @@ "@types/ms": "*" } }, + "node_modules/@types/json-schema": { + "version": "7.0.12", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz", + "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==" + }, "node_modules/@types/json5": { "version": "0.0.29", "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", @@ -3891,7 +3897,6 @@ "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -3903,6 +3908,14 @@ "url": "https://github.com/sponsors/epoberezkin" } }, + "node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "peerDependencies": { + "ajv": "^6.9.1" + } + }, "node_modules/ansi-regex": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", @@ -4199,6 +4212,14 @@ } ] }, + "node_modules/big.js": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", + "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", + "engines": { + "node": "*" + } + }, "node_modules/bigint-buffer": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/bigint-buffer/-/bigint-buffer-1.1.5.tgz", @@ -5015,6 +5036,14 @@ "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", "dev": true }, + "node_modules/emojis-list": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", + "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", + "engines": { + "node": ">= 4" + } + }, "node_modules/encode-utf8": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/encode-utf8/-/encode-utf8-1.0.3.tgz", @@ -5768,8 +5797,7 @@ "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, "node_modules/fast-glob": { "version": "3.3.1", @@ -5802,8 +5830,7 @@ "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" }, "node_modules/fast-levenshtein": { "version": "2.0.6", @@ -5873,6 +5900,21 @@ "node": "^10.12.0 || >=12.0.0" } }, + "node_modules/file-loader": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/file-loader/-/file-loader-4.3.0.tgz", + "integrity": "sha512-aKrYPYjF1yG3oX0kWRrqrSMfgftm7oJW5M+m4owoldH5C51C0RkIwB++JbRvEW3IU6/ZG5n8UvEcdgwOt2UOWA==", + "dependencies": { + "loader-utils": "^1.2.3", + "schema-utils": "^2.5.0" + }, + "engines": { + "node": ">= 8.9.0" + }, + "peerDependencies": { + "webpack": "^4.0.0" + } + }, "node_modules/file-uri-to-path": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", @@ -7073,8 +7115,7 @@ "node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" }, "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", @@ -7091,7 +7132,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", - "dev": true, "dependencies": { "minimist": "^1.2.0" }, @@ -7247,6 +7287,19 @@ "node": "^12.20.0 || ^14.13.1 || >=16.0.0" } }, + "node_modules/loader-utils": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.2.tgz", + "integrity": "sha512-I5d00Pd/jwMD2QCduo657+YM/6L3KZu++pmX9VFncxaxvHcru9jx1lBaFft+r4Mt2jK0Yhp41XlRAihzPxHNCg==", + "dependencies": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^1.0.1" + }, + "engines": { + "node": ">=4.0.0" + } + }, "node_modules/locate-path": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", @@ -7507,6 +7560,14 @@ } } }, + "node_modules/next-videos": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/next-videos/-/next-videos-1.4.1.tgz", + "integrity": "sha512-cdEbyBwsbp76LCY6gTZxGT/5meRilmNsvUqxIbdu2y6JEdAWLWyL3yOUlsRgrkDq3j6lL74jwzcVzwo3YpMoSg==", + "dependencies": { + "file-loader": "^4.2.0" + } + }, "node_modules/no-case": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", @@ -8201,7 +8262,6 @@ "version": "2.3.0", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", - "dev": true, "engines": { "node": ">=6" } @@ -8741,6 +8801,23 @@ "loose-envify": "^1.1.0" } }, + "node_modules/schema-utils": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz", + "integrity": "sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==", + "dependencies": { + "@types/json-schema": "^7.0.5", + "ajv": "^6.12.4", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 8.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, "node_modules/secure-json-parse": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/secure-json-parse/-/secure-json-parse-2.7.0.tgz", @@ -9389,7 +9466,6 @@ "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, "dependencies": { "punycode": "^2.1.0" } diff --git a/package.json b/package.json index 0d802ea..17db95d 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "dev": "next dev", "build": "next build", "start": "next start", - "lint": "next lint" + "lint": "next lint", + "generate": "wagmi generate" }, "dependencies": { "@chakra-ui/react": "^2.8.0", @@ -17,6 +18,7 @@ "framer-motion": "^10.16.4", "lokijs": "^1.5.12", "next": "^13.4.19", + "next-videos": "^1.4.1", "pino-pretty": "^10.2.0", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/src/components/GameUI.tsx b/src/components/GameUI.tsx index 8d4942c..6f28f83 100644 --- a/src/components/GameUI.tsx +++ b/src/components/GameUI.tsx @@ -3,34 +3,54 @@ import { Center, Flex, Heading, + Link, + Modal, + ModalBody, + ModalCloseButton, + ModalContent, + ModalFooter, + ModalHeader, + ModalOverlay, Stat, StatLabel, StatNumber, + Text, VStack, + useDisclosure, } from "@chakra-ui/react"; import { - usePrepareVapeTokenPayMyDividend, - useVapeTokenGetMyDividend, - useVapeTokenIsPaused, - useVapeTokenLastPurchasedAddress, - useVapeTokenLastPurchasedTime, - useVapeTokenMinInvest, - useVapeTokenPayMyDividend, - useVapeTokenPotValueEth, - useVapeTokenTakeAVapeHit, + usePrepareVapeGamePayMyDividend, + useVapeGameGetMyDividend, + useVapeGameIsPaused, + useVapeGameLastPurchasedAddress, + useVapeGameLastPurchasedTime, + useVapeGameMinInvest, + useVapeGamePayMyDividend, + useVapeGamePotValueEth, + useVapeGameTakeAVapeHit, } from "../generated"; import { formatEther } from "viem"; -import { useAccount } from "wagmi"; +import { useAccount, useWalletClient } from "wagmi"; +import { useAddRecentTransaction } from "@rainbow-me/rainbowkit"; +import { useState } from "react"; export const GameUI = () => { const { address } = useAccount(); console.log("address: ", address); return ( -
- /VAPE_FOMO +
+ $VAPE +
+
+ + we str8 vapin belee dat +
+ + + @@ -38,7 +58,7 @@ export const GameUI = () => { - + {address ? : <>} @@ -46,7 +66,7 @@ export const GameUI = () => { }; const CurrentWinner = () => { - const { data, isSuccess } = useVapeTokenLastPurchasedAddress(); + const { data, isSuccess } = useVapeGameLastPurchasedAddress(); return ( @@ -57,7 +77,7 @@ const CurrentWinner = () => { }; const Jackpot = () => { - const { data, isSuccess } = useVapeTokenPotValueEth(); + const { data, isSuccess } = useVapeGamePotValueEth(); return ( @@ -68,7 +88,7 @@ const Jackpot = () => { }; const TimeLeft = () => { - const { data, isSuccess } = useVapeTokenLastPurchasedTime(); + const { data, isSuccess } = useVapeGameLastPurchasedTime(); const toHHMMSS = (secNum: number): string => { let hours = Math.floor(secNum / 3600).toString(); @@ -103,42 +123,91 @@ const TimeLeft = () => { ); }; -const BuyIn = () => { - const { data: isPaused } = useVapeTokenIsPaused(); - const { data: minInvest, isSuccess } = useVapeTokenMinInvest(); - const { write } = useVapeTokenTakeAVapeHit(); +const TakeAHit = () => { + const { data: isPaused } = useVapeGameIsPaused(); + const { data: minInvest, isSuccess: isSuccessMinInvest } = + useVapeGameMinInvest(); + const { writeAsync, isLoading: isLoadingTakeAHit } = + useVapeGameTakeAVapeHit(); + const addRecentTransaction = useAddRecentTransaction(); + const { isOpen, onOpen, onClose } = useDisclosure(); + const [txHash, setTxHash] = useState(""); + return ( <> Ticket Price - {isSuccess ? formatEther(minInvest!) + " ETH" : "..."} + {isSuccessMinInvest ? formatEther(minInvest!) + " ETH" : "..."}
+ ); }; +type TxModalProps = { + isOpen: boolean; + onClose: () => void; + txHash: string; +}; + +const HitTakenModal = ({ isOpen, onClose, txHash }: TxModalProps) => { + const { data: wallet } = useWalletClient(); + return ( + + + + YOU TOOK A FAT HIT + + + + + + Peep Game + + + + + ); +}; + type DividendProps = { address: `0x${string}`; }; const Dividend = ({ address }: DividendProps) => { - const { data: myDividend, isSuccess } = useVapeTokenGetMyDividend({ + const { data: myDividend, isSuccess } = useVapeGameGetMyDividend({ args: [address], }); - const { config } = usePrepareVapeTokenPayMyDividend(); - const { write } = useVapeTokenPayMyDividend(config); + const { config } = usePrepareVapeGamePayMyDividend(); + const { writeAsync, isLoading } = useVapeGamePayMyDividend(config); + const addRecentTransaction = useAddRecentTransaction(); + const { isOpen, onOpen, onClose } = useDisclosure(); + const [txHash, setTxHash] = useState(""); return ( <> @@ -152,12 +221,70 @@ const Dividend = ({ address }: DividendProps) => {
+ ); }; + +const DividendModal = ({ isOpen, onClose, txHash }: TxModalProps) => { + const { data: wallet } = useWalletClient(); + + return ( + + + + YOU COLLECTED YOUR DIVIDEND + + + + + + Peep Game + + + + + ); +}; + +const GameDescription = () => { + return ( + + {"it's"} smooth af: +
+ 1. Hit the $VAPE for your chance to win the Bussin Oil +
+ 2. The earlier you hit the vape the more $VAPE you get +
+ 3. All $VAPE holders get a share of all new hits after them (the earlier + you hit the more you get). +
+ 4. With every Hit, the Battery resets and the Hit price increases. +
+ 5. The last person to take a hit b4 the battery resets wins the Bussin Oil +
+ you CANNOT buy $VAPE on an exchange! you must play the game to get it! +
+ ); +}; diff --git a/src/generated.ts b/src/generated.ts index c195585..24ba4bf 100644 --- a/src/generated.ts +++ b/src/generated.ts @@ -16,13 +16,13 @@ import { } from 'wagmi/actions' ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// VapeToken +// VapeGame ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /** - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export const vapeTokenABI = [ +export const vapeGameABI = [ { stateMutability: 'nonpayable', type: 'constructor', inputs: [] }, { type: 'event', @@ -129,34 +129,6 @@ export const vapeTokenABI = [ name: 'devFund', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], }, - { - stateMutability: 'view', - type: 'function', - inputs: [], - name: 'getETHPotValue', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - }, - { - stateMutability: 'view', - type: 'function', - inputs: [], - name: 'getEthFeesValue', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - }, - { - stateMutability: 'view', - type: 'function', - inputs: [], - name: 'getLastPurchasedTime', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - }, - { - stateMutability: 'view', - type: 'function', - inputs: [], - name: 'getMinInvest', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - }, { stateMutability: 'view', type: 'function', @@ -164,13 +136,6 @@ export const vapeTokenABI = [ name: 'getMyDividend', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], }, - { - stateMutability: 'view', - type: 'function', - inputs: [], - name: 'getvapeTokenPrice', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - }, { stateMutability: 'nonpayable', type: 'function', @@ -217,11 +182,11 @@ export const vapeTokenABI = [ outputs: [{ name: '', internalType: 'string', type: 'string' }], }, { - stateMutability: 'nonpayable', + stateMutability: 'view', type: 'function', inputs: [], - name: 'pause', - outputs: [], + name: 'owner', + outputs: [{ name: '', internalType: 'address payable', type: 'address' }], }, { stateMutability: 'nonpayable', @@ -245,11 +210,11 @@ export const vapeTokenABI = [ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], }, { - stateMutability: 'view', + stateMutability: 'nonpayable', type: 'function', inputs: [], - name: 'rewardsContract', - outputs: [{ name: '', internalType: 'address payable', type: 'address' }], + name: 'startGame', + outputs: [], }, { stateMutability: 'view', @@ -307,13 +272,6 @@ export const vapeTokenABI = [ name: 'transferFrom', outputs: [{ name: '', internalType: 'bool', type: 'bool' }], }, - { - stateMutability: 'nonpayable', - type: 'function', - inputs: [], - name: 'unpause', - outputs: [], - }, { stateMutability: 'view', type: 'function', @@ -324,18 +282,18 @@ export const vapeTokenABI = [ ] as const /** - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export const vapeTokenAddress = { - 5: '0x38A305d6250895b9d3f496305F4c2eC8265FD7aA', +export const vapeGameAddress = { + 5: '0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A', } as const /** - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export const vapeTokenConfig = { - address: vapeTokenAddress, - abi: vapeTokenABI, +export const vapeGameConfig = { + address: vapeGameAddress, + abi: vapeGameABI, } as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// @@ -444,610 +402,500 @@ export const erc20ABI = [ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeTokenABI}__. + * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeGameABI}__. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenRead< +export function useVapeGameRead< TFunctionName extends string, - TSelectData = ReadContractResult, + TSelectData = ReadContractResult, >( config: Omit< - UseContractReadConfig, + UseContractReadConfig, 'abi' | 'address' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return useContractRead({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + abi: vapeGameABI, + address: vapeGameAddress[5], ...config, - } as UseContractReadConfig) + } as UseContractReadConfig) } /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"MIN_INVEST_TICK"`. + * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"MIN_INVEST_TICK"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenMinInvestTick< +export function useVapeGameMinInvestTick< TFunctionName extends 'MIN_INVEST_TICK', - TSelectData = ReadContractResult, + TSelectData = ReadContractResult, >( config: Omit< - UseContractReadConfig, + UseContractReadConfig, 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return useContractRead({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + abi: vapeGameABI, + address: vapeGameAddress[5], functionName: 'MIN_INVEST_TICK', ...config, - } as UseContractReadConfig) + } as UseContractReadConfig) } /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"allowance"`. + * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"allowance"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenAllowance< +export function useVapeGameAllowance< TFunctionName extends 'allowance', - TSelectData = ReadContractResult, + TSelectData = ReadContractResult, >( config: Omit< - UseContractReadConfig, + UseContractReadConfig, 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return useContractRead({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + abi: vapeGameABI, + address: vapeGameAddress[5], functionName: 'allowance', ...config, - } as UseContractReadConfig) + } as UseContractReadConfig) } /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"balanceOf"`. + * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"balanceOf"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenBalanceOf< +export function useVapeGameBalanceOf< TFunctionName extends 'balanceOf', - TSelectData = ReadContractResult, + TSelectData = ReadContractResult, >( config: Omit< - UseContractReadConfig, + UseContractReadConfig, 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return useContractRead({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + abi: vapeGameABI, + address: vapeGameAddress[5], functionName: 'balanceOf', ...config, - } as UseContractReadConfig) + } as UseContractReadConfig) } /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"collectedFee"`. + * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"collectedFee"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenCollectedFee< +export function useVapeGameCollectedFee< TFunctionName extends 'collectedFee', - TSelectData = ReadContractResult, + TSelectData = ReadContractResult, >( config: Omit< - UseContractReadConfig, + UseContractReadConfig, 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return useContractRead({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + abi: vapeGameABI, + address: vapeGameAddress[5], functionName: 'collectedFee', ...config, - } as UseContractReadConfig) + } as UseContractReadConfig) } /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"decimals"`. + * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"decimals"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenDecimals< +export function useVapeGameDecimals< TFunctionName extends 'decimals', - TSelectData = ReadContractResult, + TSelectData = ReadContractResult, >( config: Omit< - UseContractReadConfig, + UseContractReadConfig, 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return useContractRead({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + abi: vapeGameABI, + address: vapeGameAddress[5], functionName: 'decimals', ...config, - } as UseContractReadConfig) + } as UseContractReadConfig) } /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"devFund"`. + * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"devFund"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenDevFund< +export function useVapeGameDevFund< TFunctionName extends 'devFund', - TSelectData = ReadContractResult, + TSelectData = ReadContractResult, >( config: Omit< - UseContractReadConfig, + UseContractReadConfig, 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return useContractRead({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + abi: vapeGameABI, + address: vapeGameAddress[5], functionName: 'devFund', ...config, - } as UseContractReadConfig) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"getETHPotValue"`. - * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) - */ -export function useVapeTokenGetEthPotValue< - TFunctionName extends 'getETHPotValue', - TSelectData = ReadContractResult, ->( - config: Omit< - UseContractReadConfig, - 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, -) { - return useContractRead({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], - functionName: 'getETHPotValue', - ...config, - } as UseContractReadConfig) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"getEthFeesValue"`. - * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) - */ -export function useVapeTokenGetEthFeesValue< - TFunctionName extends 'getEthFeesValue', - TSelectData = ReadContractResult, ->( - config: Omit< - UseContractReadConfig, - 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, -) { - return useContractRead({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], - functionName: 'getEthFeesValue', - ...config, - } as UseContractReadConfig) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"getLastPurchasedTime"`. - * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) - */ -export function useVapeTokenGetLastPurchasedTime< - TFunctionName extends 'getLastPurchasedTime', - TSelectData = ReadContractResult, ->( - config: Omit< - UseContractReadConfig, - 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, -) { - return useContractRead({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], - functionName: 'getLastPurchasedTime', - ...config, - } as UseContractReadConfig) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"getMinInvest"`. - * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) - */ -export function useVapeTokenGetMinInvest< - TFunctionName extends 'getMinInvest', - TSelectData = ReadContractResult, ->( - config: Omit< - UseContractReadConfig, - 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, -) { - return useContractRead({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], - functionName: 'getMinInvest', - ...config, - } as UseContractReadConfig) + } as UseContractReadConfig) } /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"getMyDividend"`. + * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"getMyDividend"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenGetMyDividend< +export function useVapeGameGetMyDividend< TFunctionName extends 'getMyDividend', - TSelectData = ReadContractResult, + TSelectData = ReadContractResult, >( config: Omit< - UseContractReadConfig, + UseContractReadConfig, 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return useContractRead({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + abi: vapeGameABI, + address: vapeGameAddress[5], functionName: 'getMyDividend', ...config, - } as UseContractReadConfig) -} - -/** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"getvapeTokenPrice"`. - * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) - */ -export function useVapeTokenGetvapeTokenPrice< - TFunctionName extends 'getvapeTokenPrice', - TSelectData = ReadContractResult, ->( - config: Omit< - UseContractReadConfig, - 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, -) { - return useContractRead({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], - functionName: 'getvapeTokenPrice', - ...config, - } as UseContractReadConfig) + } as UseContractReadConfig) } /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"isPaused"`. + * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"isPaused"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenIsPaused< +export function useVapeGameIsPaused< TFunctionName extends 'isPaused', - TSelectData = ReadContractResult, + TSelectData = ReadContractResult, >( config: Omit< - UseContractReadConfig, + UseContractReadConfig, 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return useContractRead({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + abi: vapeGameABI, + address: vapeGameAddress[5], functionName: 'isPaused', ...config, - } as UseContractReadConfig) + } as UseContractReadConfig) } /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"lastPurchasedAddress"`. + * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"lastPurchasedAddress"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenLastPurchasedAddress< +export function useVapeGameLastPurchasedAddress< TFunctionName extends 'lastPurchasedAddress', - TSelectData = ReadContractResult, + TSelectData = ReadContractResult, >( config: Omit< - UseContractReadConfig, + UseContractReadConfig, 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return useContractRead({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + abi: vapeGameABI, + address: vapeGameAddress[5], functionName: 'lastPurchasedAddress', ...config, - } as UseContractReadConfig) + } as UseContractReadConfig) } /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"lastPurchasedTime"`. + * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"lastPurchasedTime"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenLastPurchasedTime< +export function useVapeGameLastPurchasedTime< TFunctionName extends 'lastPurchasedTime', - TSelectData = ReadContractResult, + TSelectData = ReadContractResult, >( config: Omit< - UseContractReadConfig, + UseContractReadConfig, 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return useContractRead({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + abi: vapeGameABI, + address: vapeGameAddress[5], functionName: 'lastPurchasedTime', ...config, - } as UseContractReadConfig) + } as UseContractReadConfig) } /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"minInvest"`. + * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"minInvest"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenMinInvest< +export function useVapeGameMinInvest< TFunctionName extends 'minInvest', - TSelectData = ReadContractResult, + TSelectData = ReadContractResult, >( config: Omit< - UseContractReadConfig, + UseContractReadConfig, 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return useContractRead({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + abi: vapeGameABI, + address: vapeGameAddress[5], functionName: 'minInvest', ...config, - } as UseContractReadConfig) + } as UseContractReadConfig) } /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"name"`. + * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"name"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenName< +export function useVapeGameName< TFunctionName extends 'name', - TSelectData = ReadContractResult, + TSelectData = ReadContractResult, >( config: Omit< - UseContractReadConfig, + UseContractReadConfig, 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return useContractRead({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + abi: vapeGameABI, + address: vapeGameAddress[5], functionName: 'name', ...config, - } as UseContractReadConfig) + } as UseContractReadConfig) } /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"potValueETH"`. + * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"owner"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenPotValueEth< - TFunctionName extends 'potValueETH', - TSelectData = ReadContractResult, +export function useVapeGameOwner< + TFunctionName extends 'owner', + TSelectData = ReadContractResult, >( config: Omit< - UseContractReadConfig, + UseContractReadConfig, 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return useContractRead({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], - functionName: 'potValueETH', + abi: vapeGameABI, + address: vapeGameAddress[5], + functionName: 'owner', ...config, - } as UseContractReadConfig) + } as UseContractReadConfig) } /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"rewardsContract"`. + * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"potValueETH"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenRewardsContract< - TFunctionName extends 'rewardsContract', - TSelectData = ReadContractResult, +export function useVapeGamePotValueEth< + TFunctionName extends 'potValueETH', + TSelectData = ReadContractResult, >( config: Omit< - UseContractReadConfig, + UseContractReadConfig, 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return useContractRead({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], - functionName: 'rewardsContract', + abi: vapeGameABI, + address: vapeGameAddress[5], + functionName: 'potValueETH', ...config, - } as UseContractReadConfig) + } as UseContractReadConfig) } /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"symbol"`. + * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"symbol"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenSymbol< +export function useVapeGameSymbol< TFunctionName extends 'symbol', - TSelectData = ReadContractResult, + TSelectData = ReadContractResult, >( config: Omit< - UseContractReadConfig, + UseContractReadConfig, 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return useContractRead({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + abi: vapeGameABI, + address: vapeGameAddress[5], functionName: 'symbol', ...config, - } as UseContractReadConfig) + } as UseContractReadConfig) } /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"totalDividendsValueETH"`. + * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"totalDividendsValueETH"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenTotalDividendsValueEth< +export function useVapeGameTotalDividendsValueEth< TFunctionName extends 'totalDividendsValueETH', - TSelectData = ReadContractResult, + TSelectData = ReadContractResult, >( config: Omit< - UseContractReadConfig, + UseContractReadConfig, 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return useContractRead({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + abi: vapeGameABI, + address: vapeGameAddress[5], functionName: 'totalDividendsValueETH', ...config, - } as UseContractReadConfig) + } as UseContractReadConfig) } /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"totalSupply"`. + * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"totalSupply"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenTotalSupply< +export function useVapeGameTotalSupply< TFunctionName extends 'totalSupply', - TSelectData = ReadContractResult, + TSelectData = ReadContractResult, >( config: Omit< - UseContractReadConfig, + UseContractReadConfig, 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return useContractRead({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + abi: vapeGameABI, + address: vapeGameAddress[5], functionName: 'totalSupply', ...config, - } as UseContractReadConfig) + } as UseContractReadConfig) } /** - * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"vapeTokenPrice"`. + * Wraps __{@link useContractRead}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"vapeTokenPrice"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenVapeTokenPrice< +export function useVapeGameVapeTokenPrice< TFunctionName extends 'vapeTokenPrice', - TSelectData = ReadContractResult, + TSelectData = ReadContractResult, >( config: Omit< - UseContractReadConfig, + UseContractReadConfig, 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return useContractRead({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + abi: vapeGameABI, + address: vapeGameAddress[5], functionName: 'vapeTokenPrice', ...config, - } as UseContractReadConfig) + } as UseContractReadConfig) } /** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link vapeTokenABI}__. + * Wraps __{@link useContractWrite}__ with `abi` set to __{@link vapeGameABI}__. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenWrite< +export function useVapeGameWrite< TFunctionName extends string, TMode extends WriteContractMode = undefined, - TChainId extends number = keyof typeof vapeTokenAddress, + TChainId extends number = keyof typeof vapeGameAddress, >( config: TMode extends 'prepared' ? UseContractWriteConfig< PrepareWriteContractResult< - typeof vapeTokenABI, + typeof vapeGameABI, string >['request']['abi'], TFunctionName, TMode > & { address?: Address; chainId?: TChainId } - : UseContractWriteConfig & { + : UseContractWriteConfig & { abi?: never address?: never chainId?: TChainId } = {} as any, ) { - return useContractWrite({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + return useContractWrite({ + abi: vapeGameABI, + address: vapeGameAddress[5], ...config, } as any) } /** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"approve"`. + * Wraps __{@link useContractWrite}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"approve"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenApprove< +export function useVapeGameApprove< TMode extends WriteContractMode = undefined, - TChainId extends number = keyof typeof vapeTokenAddress, + TChainId extends number = keyof typeof vapeGameAddress, >( config: TMode extends 'prepared' ? UseContractWriteConfig< PrepareWriteContractResult< - typeof vapeTokenABI, + typeof vapeGameABI, 'approve' >['request']['abi'], 'approve', TMode > & { address?: Address; chainId?: TChainId; functionName?: 'approve' } - : UseContractWriteConfig & { + : UseContractWriteConfig & { abi?: never address?: never chainId?: TChainId functionName?: 'approve' } = {} as any, ) { - return useContractWrite({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + return useContractWrite({ + abi: vapeGameABI, + address: vapeGameAddress[5], functionName: 'approve', ...config, } as any) } /** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"decreaseAllowance"`. + * Wraps __{@link useContractWrite}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"decreaseAllowance"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenDecreaseAllowance< +export function useVapeGameDecreaseAllowance< TMode extends WriteContractMode = undefined, - TChainId extends number = keyof typeof vapeTokenAddress, + TChainId extends number = keyof typeof vapeGameAddress, >( config: TMode extends 'prepared' ? UseContractWriteConfig< PrepareWriteContractResult< - typeof vapeTokenABI, + typeof vapeGameABI, 'decreaseAllowance' >['request']['abi'], 'decreaseAllowance', @@ -1057,38 +905,34 @@ export function useVapeTokenDecreaseAllowance< chainId?: TChainId functionName?: 'decreaseAllowance' } - : UseContractWriteConfig< - typeof vapeTokenABI, - 'decreaseAllowance', - TMode - > & { + : UseContractWriteConfig & { abi?: never address?: never chainId?: TChainId functionName?: 'decreaseAllowance' } = {} as any, ) { - return useContractWrite({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + return useContractWrite({ + abi: vapeGameABI, + address: vapeGameAddress[5], functionName: 'decreaseAllowance', ...config, } as any) } /** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"increaseAllowance"`. + * Wraps __{@link useContractWrite}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"increaseAllowance"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenIncreaseAllowance< +export function useVapeGameIncreaseAllowance< TMode extends WriteContractMode = undefined, - TChainId extends number = keyof typeof vapeTokenAddress, + TChainId extends number = keyof typeof vapeGameAddress, >( config: TMode extends 'prepared' ? UseContractWriteConfig< PrepareWriteContractResult< - typeof vapeTokenABI, + typeof vapeGameABI, 'increaseAllowance' >['request']['abi'], 'increaseAllowance', @@ -1098,141 +942,137 @@ export function useVapeTokenIncreaseAllowance< chainId?: TChainId functionName?: 'increaseAllowance' } - : UseContractWriteConfig< - typeof vapeTokenABI, - 'increaseAllowance', - TMode - > & { + : UseContractWriteConfig & { abi?: never address?: never chainId?: TChainId functionName?: 'increaseAllowance' } = {} as any, ) { - return useContractWrite({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + return useContractWrite({ + abi: vapeGameABI, + address: vapeGameAddress[5], functionName: 'increaseAllowance', ...config, } as any) } /** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"pause"`. + * Wraps __{@link useContractWrite}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"payMyDividend"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenPause< +export function useVapeGamePayMyDividend< TMode extends WriteContractMode = undefined, - TChainId extends number = keyof typeof vapeTokenAddress, + TChainId extends number = keyof typeof vapeGameAddress, >( config: TMode extends 'prepared' ? UseContractWriteConfig< PrepareWriteContractResult< - typeof vapeTokenABI, - 'pause' + typeof vapeGameABI, + 'payMyDividend' >['request']['abi'], - 'pause', + 'payMyDividend', TMode - > & { address?: Address; chainId?: TChainId; functionName?: 'pause' } - : UseContractWriteConfig & { + > & { + address?: Address + chainId?: TChainId + functionName?: 'payMyDividend' + } + : UseContractWriteConfig & { abi?: never address?: never chainId?: TChainId - functionName?: 'pause' + functionName?: 'payMyDividend' } = {} as any, ) { - return useContractWrite({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], - functionName: 'pause', + return useContractWrite({ + abi: vapeGameABI, + address: vapeGameAddress[5], + functionName: 'payMyDividend', ...config, } as any) } /** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"payMyDividend"`. + * Wraps __{@link useContractWrite}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"paydDevFee"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenPayMyDividend< +export function useVapeGamePaydDevFee< TMode extends WriteContractMode = undefined, - TChainId extends number = keyof typeof vapeTokenAddress, + TChainId extends number = keyof typeof vapeGameAddress, >( config: TMode extends 'prepared' ? UseContractWriteConfig< PrepareWriteContractResult< - typeof vapeTokenABI, - 'payMyDividend' + typeof vapeGameABI, + 'paydDevFee' >['request']['abi'], - 'payMyDividend', + 'paydDevFee', TMode - > & { - address?: Address - chainId?: TChainId - functionName?: 'payMyDividend' - } - : UseContractWriteConfig & { + > & { address?: Address; chainId?: TChainId; functionName?: 'paydDevFee' } + : UseContractWriteConfig & { abi?: never address?: never chainId?: TChainId - functionName?: 'payMyDividend' + functionName?: 'paydDevFee' } = {} as any, ) { - return useContractWrite({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], - functionName: 'payMyDividend', + return useContractWrite({ + abi: vapeGameABI, + address: vapeGameAddress[5], + functionName: 'paydDevFee', ...config, } as any) } /** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"paydDevFee"`. + * Wraps __{@link useContractWrite}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"startGame"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenPaydDevFee< +export function useVapeGameStartGame< TMode extends WriteContractMode = undefined, - TChainId extends number = keyof typeof vapeTokenAddress, + TChainId extends number = keyof typeof vapeGameAddress, >( config: TMode extends 'prepared' ? UseContractWriteConfig< PrepareWriteContractResult< - typeof vapeTokenABI, - 'paydDevFee' + typeof vapeGameABI, + 'startGame' >['request']['abi'], - 'paydDevFee', + 'startGame', TMode - > & { address?: Address; chainId?: TChainId; functionName?: 'paydDevFee' } - : UseContractWriteConfig & { + > & { address?: Address; chainId?: TChainId; functionName?: 'startGame' } + : UseContractWriteConfig & { abi?: never address?: never chainId?: TChainId - functionName?: 'paydDevFee' + functionName?: 'startGame' } = {} as any, ) { - return useContractWrite({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], - functionName: 'paydDevFee', + return useContractWrite({ + abi: vapeGameABI, + address: vapeGameAddress[5], + functionName: 'startGame', ...config, } as any) } /** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"takeAVapeHit"`. + * Wraps __{@link useContractWrite}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"takeAVapeHit"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenTakeAVapeHit< +export function useVapeGameTakeAVapeHit< TMode extends WriteContractMode = undefined, - TChainId extends number = keyof typeof vapeTokenAddress, + TChainId extends number = keyof typeof vapeGameAddress, >( config: TMode extends 'prepared' ? UseContractWriteConfig< PrepareWriteContractResult< - typeof vapeTokenABI, + typeof vapeGameABI, 'takeAVapeHit' >['request']['abi'], 'takeAVapeHit', @@ -1242,34 +1082,34 @@ export function useVapeTokenTakeAVapeHit< chainId?: TChainId functionName?: 'takeAVapeHit' } - : UseContractWriteConfig & { + : UseContractWriteConfig & { abi?: never address?: never chainId?: TChainId functionName?: 'takeAVapeHit' } = {} as any, ) { - return useContractWrite({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + return useContractWrite({ + abi: vapeGameABI, + address: vapeGameAddress[5], functionName: 'takeAVapeHit', ...config, } as any) } /** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"takeTheLastHit"`. + * Wraps __{@link useContractWrite}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"takeTheLastHit"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenTakeTheLastHit< +export function useVapeGameTakeTheLastHit< TMode extends WriteContractMode = undefined, - TChainId extends number = keyof typeof vapeTokenAddress, + TChainId extends number = keyof typeof vapeGameAddress, >( config: TMode extends 'prepared' ? UseContractWriteConfig< PrepareWriteContractResult< - typeof vapeTokenABI, + typeof vapeGameABI, 'takeTheLastHit' >['request']['abi'], 'takeTheLastHit', @@ -1279,67 +1119,67 @@ export function useVapeTokenTakeTheLastHit< chainId?: TChainId functionName?: 'takeTheLastHit' } - : UseContractWriteConfig & { + : UseContractWriteConfig & { abi?: never address?: never chainId?: TChainId functionName?: 'takeTheLastHit' } = {} as any, ) { - return useContractWrite({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + return useContractWrite({ + abi: vapeGameABI, + address: vapeGameAddress[5], functionName: 'takeTheLastHit', ...config, } as any) } /** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"transfer"`. + * Wraps __{@link useContractWrite}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"transfer"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenTransfer< +export function useVapeGameTransfer< TMode extends WriteContractMode = undefined, - TChainId extends number = keyof typeof vapeTokenAddress, + TChainId extends number = keyof typeof vapeGameAddress, >( config: TMode extends 'prepared' ? UseContractWriteConfig< PrepareWriteContractResult< - typeof vapeTokenABI, + typeof vapeGameABI, 'transfer' >['request']['abi'], 'transfer', TMode > & { address?: Address; chainId?: TChainId; functionName?: 'transfer' } - : UseContractWriteConfig & { + : UseContractWriteConfig & { abi?: never address?: never chainId?: TChainId functionName?: 'transfer' } = {} as any, ) { - return useContractWrite({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + return useContractWrite({ + abi: vapeGameABI, + address: vapeGameAddress[5], functionName: 'transfer', ...config, } as any) } /** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"transferFrom"`. + * Wraps __{@link useContractWrite}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"transferFrom"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenTransferFrom< +export function useVapeGameTransferFrom< TMode extends WriteContractMode = undefined, - TChainId extends number = keyof typeof vapeTokenAddress, + TChainId extends number = keyof typeof vapeGameAddress, >( config: TMode extends 'prepared' ? UseContractWriteConfig< PrepareWriteContractResult< - typeof vapeTokenABI, + typeof vapeGameABI, 'transferFrom' >['request']['abi'], 'transferFrom', @@ -1349,335 +1189,283 @@ export function useVapeTokenTransferFrom< chainId?: TChainId functionName?: 'transferFrom' } - : UseContractWriteConfig & { + : UseContractWriteConfig & { abi?: never address?: never chainId?: TChainId functionName?: 'transferFrom' } = {} as any, ) { - return useContractWrite({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + return useContractWrite({ + abi: vapeGameABI, + address: vapeGameAddress[5], functionName: 'transferFrom', ...config, } as any) } /** - * Wraps __{@link useContractWrite}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"unpause"`. - * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) - */ -export function useVapeTokenUnpause< - TMode extends WriteContractMode = undefined, - TChainId extends number = keyof typeof vapeTokenAddress, ->( - config: TMode extends 'prepared' - ? UseContractWriteConfig< - PrepareWriteContractResult< - typeof vapeTokenABI, - 'unpause' - >['request']['abi'], - 'unpause', - TMode - > & { address?: Address; chainId?: TChainId; functionName?: 'unpause' } - : UseContractWriteConfig & { - abi?: never - address?: never - chainId?: TChainId - functionName?: 'unpause' - } = {} as any, -) { - return useContractWrite({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], - functionName: 'unpause', - ...config, - } as any) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link vapeTokenABI}__. + * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link vapeGameABI}__. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function usePrepareVapeTokenWrite( +export function usePrepareVapeGameWrite( config: Omit< - UsePrepareContractWriteConfig, + UsePrepareContractWriteConfig, 'abi' | 'address' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return usePrepareContractWrite({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + abi: vapeGameABI, + address: vapeGameAddress[5], ...config, - } as UsePrepareContractWriteConfig) + } as UsePrepareContractWriteConfig) } /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"approve"`. + * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"approve"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function usePrepareVapeTokenApprove( +export function usePrepareVapeGameApprove( config: Omit< - UsePrepareContractWriteConfig, + UsePrepareContractWriteConfig, 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return usePrepareContractWrite({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + abi: vapeGameABI, + address: vapeGameAddress[5], functionName: 'approve', ...config, - } as UsePrepareContractWriteConfig) + } as UsePrepareContractWriteConfig) } /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"decreaseAllowance"`. + * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"decreaseAllowance"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function usePrepareVapeTokenDecreaseAllowance( +export function usePrepareVapeGameDecreaseAllowance( config: Omit< - UsePrepareContractWriteConfig, + UsePrepareContractWriteConfig, 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return usePrepareContractWrite({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + abi: vapeGameABI, + address: vapeGameAddress[5], functionName: 'decreaseAllowance', ...config, - } as UsePrepareContractWriteConfig) + } as UsePrepareContractWriteConfig) } /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"increaseAllowance"`. + * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"increaseAllowance"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function usePrepareVapeTokenIncreaseAllowance( +export function usePrepareVapeGameIncreaseAllowance( config: Omit< - UsePrepareContractWriteConfig, + UsePrepareContractWriteConfig, 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return usePrepareContractWrite({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + abi: vapeGameABI, + address: vapeGameAddress[5], functionName: 'increaseAllowance', ...config, - } as UsePrepareContractWriteConfig) + } as UsePrepareContractWriteConfig) } /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"pause"`. + * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"payMyDividend"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function usePrepareVapeTokenPause( +export function usePrepareVapeGamePayMyDividend( config: Omit< - UsePrepareContractWriteConfig, + UsePrepareContractWriteConfig, 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return usePrepareContractWrite({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], - functionName: 'pause', + abi: vapeGameABI, + address: vapeGameAddress[5], + functionName: 'payMyDividend', ...config, - } as UsePrepareContractWriteConfig) + } as UsePrepareContractWriteConfig) } /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"payMyDividend"`. + * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"paydDevFee"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function usePrepareVapeTokenPayMyDividend( +export function usePrepareVapeGamePaydDevFee( config: Omit< - UsePrepareContractWriteConfig, + UsePrepareContractWriteConfig, 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return usePrepareContractWrite({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], - functionName: 'payMyDividend', + abi: vapeGameABI, + address: vapeGameAddress[5], + functionName: 'paydDevFee', ...config, - } as UsePrepareContractWriteConfig) + } as UsePrepareContractWriteConfig) } /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"paydDevFee"`. + * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"startGame"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function usePrepareVapeTokenPaydDevFee( +export function usePrepareVapeGameStartGame( config: Omit< - UsePrepareContractWriteConfig, + UsePrepareContractWriteConfig, 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return usePrepareContractWrite({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], - functionName: 'paydDevFee', + abi: vapeGameABI, + address: vapeGameAddress[5], + functionName: 'startGame', ...config, - } as UsePrepareContractWriteConfig) + } as UsePrepareContractWriteConfig) } /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"takeAVapeHit"`. + * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"takeAVapeHit"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function usePrepareVapeTokenTakeAVapeHit( +export function usePrepareVapeGameTakeAVapeHit( config: Omit< - UsePrepareContractWriteConfig, + UsePrepareContractWriteConfig, 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return usePrepareContractWrite({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + abi: vapeGameABI, + address: vapeGameAddress[5], functionName: 'takeAVapeHit', ...config, - } as UsePrepareContractWriteConfig) + } as UsePrepareContractWriteConfig) } /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"takeTheLastHit"`. + * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"takeTheLastHit"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function usePrepareVapeTokenTakeTheLastHit( +export function usePrepareVapeGameTakeTheLastHit( config: Omit< - UsePrepareContractWriteConfig, + UsePrepareContractWriteConfig, 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return usePrepareContractWrite({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + abi: vapeGameABI, + address: vapeGameAddress[5], functionName: 'takeTheLastHit', ...config, - } as UsePrepareContractWriteConfig) + } as UsePrepareContractWriteConfig) } /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"transfer"`. + * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"transfer"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function usePrepareVapeTokenTransfer( +export function usePrepareVapeGameTransfer( config: Omit< - UsePrepareContractWriteConfig, + UsePrepareContractWriteConfig, 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return usePrepareContractWrite({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + abi: vapeGameABI, + address: vapeGameAddress[5], functionName: 'transfer', ...config, - } as UsePrepareContractWriteConfig) + } as UsePrepareContractWriteConfig) } /** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"transferFrom"`. + * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link vapeGameABI}__ and `functionName` set to `"transferFrom"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function usePrepareVapeTokenTransferFrom( +export function usePrepareVapeGameTransferFrom( config: Omit< - UsePrepareContractWriteConfig, + UsePrepareContractWriteConfig, 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return usePrepareContractWrite({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + abi: vapeGameABI, + address: vapeGameAddress[5], functionName: 'transferFrom', ...config, - } as UsePrepareContractWriteConfig) -} - -/** - * Wraps __{@link usePrepareContractWrite}__ with `abi` set to __{@link vapeTokenABI}__ and `functionName` set to `"unpause"`. - * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) - */ -export function usePrepareVapeTokenUnpause( - config: Omit< - UsePrepareContractWriteConfig, - 'abi' | 'address' | 'functionName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, -) { - return usePrepareContractWrite({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], - functionName: 'unpause', - ...config, - } as UsePrepareContractWriteConfig) + } as UsePrepareContractWriteConfig) } /** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link vapeTokenABI}__. + * Wraps __{@link useContractEvent}__ with `abi` set to __{@link vapeGameABI}__. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenEvent( +export function useVapeGameEvent( config: Omit< - UseContractEventConfig, + UseContractEventConfig, 'abi' | 'address' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return useContractEvent({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + abi: vapeGameABI, + address: vapeGameAddress[5], ...config, - } as UseContractEventConfig) + } as UseContractEventConfig) } /** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link vapeTokenABI}__ and `eventName` set to `"Approval"`. + * Wraps __{@link useContractEvent}__ with `abi` set to __{@link vapeGameABI}__ and `eventName` set to `"Approval"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenApprovalEvent( +export function useVapeGameApprovalEvent( config: Omit< - UseContractEventConfig, + UseContractEventConfig, 'abi' | 'address' | 'eventName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return useContractEvent({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + abi: vapeGameABI, + address: vapeGameAddress[5], eventName: 'Approval', ...config, - } as UseContractEventConfig) + } as UseContractEventConfig) } /** - * Wraps __{@link useContractEvent}__ with `abi` set to __{@link vapeTokenABI}__ and `eventName` set to `"Transfer"`. + * Wraps __{@link useContractEvent}__ with `abi` set to __{@link vapeGameABI}__ and `eventName` set to `"Transfer"`. * - * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x38A305d6250895b9d3f496305F4c2eC8265FD7aA) + * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A) */ -export function useVapeTokenTransferEvent( +export function useVapeGameTransferEvent( config: Omit< - UseContractEventConfig, + UseContractEventConfig, 'abi' | 'address' | 'eventName' - > & { chainId?: keyof typeof vapeTokenAddress } = {} as any, + > & { chainId?: keyof typeof vapeGameAddress } = {} as any, ) { return useContractEvent({ - abi: vapeTokenABI, - address: vapeTokenAddress[5], + abi: vapeGameABI, + address: vapeGameAddress[5], eventName: 'Transfer', ...config, - } as UseContractEventConfig) + } as UseContractEventConfig) } /** diff --git a/src/wagmi.ts b/src/wagmi.ts index c32be1c..6caff48 100644 --- a/src/wagmi.ts +++ b/src/wagmi.ts @@ -11,7 +11,7 @@ const { chains, publicClient, webSocketPublicClient } = configureChains( ); const { connectors } = getDefaultWallets({ - appName: "My wagmi + RainbowKit App", + appName: "Zoomer Vape Game", chains, projectId: walletConnectProjectId, }); diff --git a/wagmi.config.ts b/wagmi.config.ts index 920ea6d..886cc60 100644 --- a/wagmi.config.ts +++ b/wagmi.config.ts @@ -1,5 +1,5 @@ import { defineConfig } from "@wagmi/cli"; -import { etherscan, react } from "@wagmi/cli/plugins"; +import { react } from "@wagmi/cli/plugins"; import { erc20ABI } from "wagmi"; import { goerli } from "wagmi/chains"; @@ -10,20 +10,486 @@ export default defineConfig({ name: "erc20", abi: erc20ABI, }, - ], - plugins: [ - etherscan({ - apiKey: process.env.ETHERSCAN_API_KEY!, - chainId: goerli.id, - contracts: [ + { + name: "VapeGame", + address: { + [goerli.id]: "0x64d80a46C4183A3B9CBca6dAEA8B3397C43FA13A", + }, + abi: [ + { + inputs: [], + stateMutability: "nonpayable", + type: "constructor", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "owner", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "spender", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "value", + type: "uint256", + }, + ], + name: "Approval", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "from", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "to", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "value", + type: "uint256", + }, + ], + name: "Transfer", + type: "event", + }, + { + inputs: [], + name: "MIN_INVEST_TICK", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "owner", + type: "address", + }, + { + internalType: "address", + name: "spender", + type: "address", + }, + ], + name: "allowance", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "spender", + type: "address", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + name: "approve", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "account", + type: "address", + }, + ], + name: "balanceOf", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "collectedFee", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "decimals", + outputs: [ + { + internalType: "uint8", + name: "", + type: "uint8", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "spender", + type: "address", + }, + { + internalType: "uint256", + name: "subtractedValue", + type: "uint256", + }, + ], + name: "decreaseAllowance", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "devFund", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "useraddress", + type: "address", + }, + ], + name: "getMyDividend", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "spender", + type: "address", + }, + { + internalType: "uint256", + name: "addedValue", + type: "uint256", + }, + ], + name: "increaseAllowance", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "isPaused", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "lastPurchasedAddress", + outputs: [ + { + internalType: "address payable", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, { - name: "VapeToken", - address: { - [goerli.id]: "0x38A305d6250895b9d3f496305F4c2eC8265FD7aA", - }, + inputs: [], + name: "lastPurchasedTime", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "minInvest", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "name", + outputs: [ + { + internalType: "string", + name: "", + type: "string", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "owner", + outputs: [ + { + internalType: "address payable", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "payMyDividend", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "paydDevFee", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "potValueETH", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "startGame", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "symbol", + outputs: [ + { + internalType: "string", + name: "", + type: "string", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "takeAVapeHit", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [], + name: "takeTheLastHit", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "totalDividendsValueETH", + 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: "to", + type: "address", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + name: "transfer", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "from", + type: "address", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + name: "transferFrom", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "vapeTokenPrice", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", }, ], - }), - react(), + }, ], + plugins: [react()], });