From 8180d406ae903b65bfe9931a228a361f70e72e03 Mon Sep 17 00:00:00 2001 From: Kevin Mok Date: Sun, 1 May 2022 14:30:47 -0400 Subject: [PATCH] Watch heavy contract for filter and API count --- index.js | 2 +- mint-nft.js | 2 +- watch.js | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 14ceebb..3426965 100644 --- a/index.js +++ b/index.js @@ -23,7 +23,7 @@ const options = { // initialize and connect to the api const blocknative = new BlocknativeSdk(options) -const contractAddress = "0x7d82a88Efb60Bb83B3f1665757c20D07E5C0f3ED" +const contractAddress = "0x90Bc839511e1a8b32e2ba27f37c7632D12E872B6"; // const methodName = "ownerMint" const methodName = "flipSaleState" diff --git a/mint-nft.js b/mint-nft.js index d2a9b81..f451d83 100644 --- a/mint-nft.js +++ b/mint-nft.js @@ -29,7 +29,7 @@ async function mintOwnerNFT() { }; const signedTx = await web3.eth.accounts.signTransaction(tx, process.env.PRIVATE_OWNER_KEY); - console.log("Minting punk...") + console.log("Minting owner punk...") const transactionReceipt = await web3.eth.sendSignedTransaction(signedTx.rawTransaction); console.log(`Transaction receipt: ${JSON.stringify(transactionReceipt)}`); diff --git a/watch.js b/watch.js index 7ea8dc8..7334ca0 100644 --- a/watch.js +++ b/watch.js @@ -9,7 +9,7 @@ import { createAlchemyWeb3 } from "@alch/alchemy-web3" const web3 = createAlchemyWeb3(API_URL); // import contractABI from './MoonbirdPunks.json' assert { type: 'json' } -import contractABI from './Kitbash.json' assert { type: 'json' } +import contractABI from './Otherside.json' assert { type: 'json' } // create options object const options = { @@ -24,8 +24,8 @@ const options = { // initialize and connect to the api const blocknative = new BlocknativeSdk(options) -const contractAddress = "0x5ff1863753C1920C38c7BaE94576f2831eF99695" -const methodName = "mint" +const contractAddress = "0x34d85c9CDeB23FA97cb08333b511ac86E1C4E258" +const methodName = "nftOwnerClaimLand" // const methodName = "flipSaleState" await blocknative.configuration({