From b961112a37f151567d6d95434704234ccf82d428 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Tue, 7 Feb 2023 15:17:13 -0800 Subject: [PATCH] mainnet --- src/abi/main.json | 20 ++++++++++++++++++++ src/components/Hero.jsx | 4 +++- src/index.js | 8 ++++---- 3 files changed, 27 insertions(+), 5 deletions(-) diff --git a/src/abi/main.json b/src/abi/main.json index 6d0babe..7a0fb02 100644 --- a/src/abi/main.json +++ b/src/abi/main.json @@ -189,6 +189,19 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [], + "name": "mayhem", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [], "name": "owner", @@ -280,6 +293,13 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [], + "name": "toggleMayhem", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [ { diff --git a/src/components/Hero.jsx b/src/components/Hero.jsx index c6b49a5..b9ec0aa 100644 --- a/src/components/Hero.jsx +++ b/src/components/Hero.jsx @@ -82,6 +82,7 @@ export function Hero(props) { {...defOpt, functionName: 'unaboomerMaxMintPerWallet'} ], watch: true, + enabled: isConnected, cacheTime: 30_000, onSuccess(data) { handleStateChange({ @@ -106,6 +107,7 @@ export function Hero(props) { {...defOpt, functionName: 'unaboomerBalance', args: [address]} ], watch: true, + enabled: isConnected, cacheTime: 6_000, onSuccess(data) { handleStateChange({ @@ -246,7 +248,7 @@ export function Hero(props) {

the web3 revolution & its consequences have been a disaster for the human race.

- {isConnected && options.unaboomersMinted > 0 && ( + {isConnected && options.unaboomersRadicalized > 0 && ( <>

{options.unaboomersRadicalized} / {options.unaboomerMaxSupply} minted

diff --git a/src/index.js b/src/index.js index 4bb8f96..9aea12d 100644 --- a/src/index.js +++ b/src/index.js @@ -16,10 +16,10 @@ import { Hero } from "./components/Hero"; import { Footer } from "./components/Footer"; const { chains, provider, webSocketProvider } = configureChains( - [goerli, mainnet, localhost], + [mainnet], [ - infuraProvider({ apiKey: 'e7674eea9d72437d9129b41ed018183d' }), - publicProvider() + publicProvider(), + infuraProvider({ apiKey: 'e7674eea9d72437d9129b41ed018183d' }) ] ); @@ -40,7 +40,7 @@ ReactDOM.createRoot(document.getElementById("root")).render(