diff --git a/apps/info-dashboard/src/lib/chain/abi.ts b/apps/info-dashboard/src/lib/chain/abi.ts index 1761216..c732d53 100644 --- a/apps/info-dashboard/src/lib/chain/abi.ts +++ b/apps/info-dashboard/src/lib/chain/abi.ts @@ -409,495 +409,495 @@ export const abis = { ], "0x8B852BA45293d6dd51B10c57625C6c5f25ADFB40": [ { - inputs: [], - name: "InvalidInitialization", - type: "error", - }, - { - inputs: [], - name: "NotInitializing", - type: "error", - }, - { - inputs: [ + "anonymous": false, + "inputs": [ { - internalType: "address", - name: "owner", - type: "address", + "indexed": false, + "internalType": "bytes32", + "name": "challenge", + "type": "bytes32" }, - ], - name: "OwnableInvalidOwner", - type: "error", - }, - { - inputs: [ { - internalType: "address", - name: "account", - type: "address", - }, + "indexed": false, + "internalType": "uint256", + "name": "difficulty", + "type": "uint256" + } ], - name: "OwnableUnauthorizedAccount", - type: "error", + "name": "GenerateChallenge", + "type": "event" }, { - anonymous: false, - inputs: [ + "anonymous": false, + "inputs": [ { - indexed: false, - internalType: "bytes32", - name: "challenge", - type: "bytes32", - }, - { - indexed: false, - internalType: "uint256", - name: "difficulty", - type: "uint256", - }, + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } ], - name: "GenerateChallenge", - type: "event", + "name": "Initialized", + "type": "event" }, { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint64", - name: "version", - type: "uint64", - }, - ], - name: "Initialized", - type: "event", + "anonymous": false, + "inputs": [], + "name": "NewPowRound", + "type": "event" }, { - anonymous: false, - inputs: [], - name: "NewPowRound", - type: "event", - }, - { - anonymous: false, - inputs: [ + "anonymous": false, + "inputs": [ { - indexed: true, - internalType: "address", - name: "previousOwner", - type: "address", + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" }, { - indexed: true, - internalType: "address", - name: "newOwner", - type: "address", - }, + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } ], - name: "OwnershipTransferred", - type: "event", + "name": "OwnershipTransferred", + "type": "event" }, { - anonymous: false, - inputs: [ + "anonymous": false, + "inputs": [ { - indexed: false, - internalType: "address", - name: "walletAddress", - type: "address", + "indexed": false, + "internalType": "address", + "name": "walletAddress", + "type": "address" }, { - indexed: false, - internalType: "string", - name: "nodeId", - type: "string", + "indexed": false, + "internalType": "string", + "name": "nodeId", + "type": "string" }, { - indexed: false, - internalType: "uint256", - name: "nonce", - type: "uint256", + "indexed": false, + "internalType": "uint256", + "name": "nonce", + "type": "uint256" }, { - indexed: false, - internalType: "uint256", - name: "start_timestamp", - type: "uint256", + "indexed": false, + "internalType": "uint256", + "name": "start_timestamp", + "type": "uint256" }, { - indexed: false, - internalType: "uint256", - name: "complete_timestamp", - type: "uint256", + "indexed": false, + "internalType": "uint256", + "name": "complete_timestamp", + "type": "uint256" }, { - indexed: false, - internalType: "bytes32", - name: "challenge", - type: "bytes32", + "indexed": false, + "internalType": "bytes32", + "name": "challenge", + "type": "bytes32" }, { - indexed: false, - internalType: "uint256", - name: "difficulty", - type: "uint256", - }, + "indexed": false, + "internalType": "uint256", + "name": "difficulty", + "type": "uint256" + } ], - name: "ValidPOWSubmitted", - type: "event", + "name": "ValidPOWSubmitted", + "type": "event" }, { - inputs: [], - name: "calculate_difficulty", - outputs: [ + "inputs": [], + "name": "calculate_difficulty", + "outputs": [ { - internalType: "uint256", - name: "", - type: "uint256", - }, + "internalType": "uint256", + "name": "", + "type": "uint256" + } ], - stateMutability: "view", - type: "function", + "stateMutability": "view", + "type": "function" }, { - inputs: [ + "inputs": [ { - internalType: "uint256", - name: "difficulty", - type: "uint256", - }, + "internalType": "uint256", + "name": "difficulty", + "type": "uint256" + } ], - name: "change_difficulty", - outputs: [], - stateMutability: "nonpayable", - type: "function", + "name": "change_difficulty", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - inputs: [], - name: "checkTimeWindow", - outputs: [], - stateMutability: "view", - type: "function", + "inputs": [], + "name": "checkTimeWindow", + "outputs": [], + "stateMutability": "view", + "type": "function" }, { - inputs: [ + "inputs": [ { - internalType: "string", - name: "nodeId", - type: "string", - }, + "internalType": "string", + "name": "nodeId", + "type": "string" + } ], - name: "generateChallenge", - outputs: [], - stateMutability: "nonpayable", - type: "function", + "name": "generateChallenge", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - inputs: [ + "inputs": [], + "name": "getMinerCount", + "outputs": [ { - internalType: "address", - name: "addr", - type: "address", - }, + "internalType": "uint256", + "name": "", + "type": "uint256" + } ], - name: "getMinerPowSubmissions", - outputs: [ + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ { - components: [ + "internalType": "address", + "name": "addr", + "type": "address" + } + ], + "name": "getMinerPowSubmissionCount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "addr", + "type": "address" + } + ], + "name": "getMinerPowSubmissions", + "outputs": [ + { + "components": [ { - internalType: "address", - name: "walletAddress", - type: "address", + "internalType": "address", + "name": "walletAddress", + "type": "address" }, { - internalType: "string", - name: "nodeId", - type: "string", + "internalType": "string", + "name": "nodeId", + "type": "string" }, { - internalType: "uint256", - name: "nonce", - type: "uint256", + "internalType": "uint256", + "name": "nonce", + "type": "uint256" }, { - internalType: "uint256", - name: "start_timestamp", - type: "uint256", + "internalType": "uint256", + "name": "start_timestamp", + "type": "uint256" }, { - internalType: "uint256", - name: "complete_timestamp", - type: "uint256", + "internalType": "uint256", + "name": "complete_timestamp", + "type": "uint256" }, { - internalType: "bytes32", - name: "challenge", - type: "bytes32", + "internalType": "bytes32", + "name": "challenge", + "type": "bytes32" }, { - internalType: "uint256", - name: "difficulty", - type: "uint256", - }, + "internalType": "uint256", + "name": "difficulty", + "type": "uint256" + } ], - internalType: "struct LilypadPow.POWSubmission[]", - name: "", - type: "tuple[]", - }, + "internalType": "structLilypadPow.POWSubmission[]", + "name": "", + "type": "tuple[]" + } ], - stateMutability: "view", - type: "function", + "stateMutability": "view", + "type": "function" }, { - inputs: [], - name: "getMiners", - outputs: [ + "inputs": [], + "name": "getMiners", + "outputs": [ { - internalType: "address[]", - name: "", - type: "address[]", - }, + "internalType": "address[]", + "name": "", + "type": "address[]" + } ], - stateMutability: "view", - type: "function", + "stateMutability": "view", + "type": "function" }, { - inputs: [], - name: "initialize", - outputs: [], - stateMutability: "nonpayable", - type: "function", + "inputs": [], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - inputs: [ + "inputs": [ { - internalType: "address", - name: "", - type: "address", - }, + "internalType": "address", + "name": "", + "type": "address" + } ], - name: "lastChallenges", - outputs: [ + "name": "lastChallenges", + "outputs": [ { - internalType: "bytes32", - name: "challenge", - type: "bytes32", + "internalType": "bytes32", + "name": "challenge", + "type": "bytes32" }, { - internalType: "uint256", - name: "difficulty", - type: "uint256", + "internalType": "uint256", + "name": "difficulty", + "type": "uint256" }, { - internalType: "string", - name: "nodeId", - type: "string", + "internalType": "string", + "name": "nodeId", + "type": "string" }, { - internalType: "uint256", - name: "timestamp", - type: "uint256", - }, + "internalType": "uint256", + "name": "timestamp", + "type": "uint256" + } ], - stateMutability: "view", - type: "function", + "stateMutability": "view", + "type": "function" }, { - inputs: [ + "inputs": [ { - internalType: "uint256", - name: "", - type: "uint256", - }, + "internalType": "uint256", + "name": "", + "type": "uint256" + } ], - name: "miners", - outputs: [ + "name": "miners", + "outputs": [ { - internalType: "address", - name: "", - type: "address", - }, + "internalType": "address", + "name": "", + "type": "address" + } ], - stateMutability: "view", - type: "function", + "stateMutability": "view", + "type": "function" }, { - inputs: [], - name: "owner", - outputs: [ + "inputs": [], + "name": "owner", + "outputs": [ { - internalType: "address", - name: "", - type: "address", - }, + "internalType": "address", + "name": "", + "type": "address" + } ], - stateMutability: "view", - type: "function", + "stateMutability": "view", + "type": "function" }, { - inputs: [ + "inputs": [ { - internalType: "address", - name: "", - type: "address", + "internalType": "address", + "name": "", + "type": "address" }, { - internalType: "uint256", - name: "", - type: "uint256", - }, + "internalType": "uint256", + "name": "", + "type": "uint256" + } ], - name: "powSubmissions", - outputs: [ + "name": "powSubmissions", + "outputs": [ { - internalType: "address", - name: "walletAddress", - type: "address", + "internalType": "address", + "name": "walletAddress", + "type": "address" }, { - internalType: "string", - name: "nodeId", - type: "string", + "internalType": "string", + "name": "nodeId", + "type": "string" }, { - internalType: "uint256", - name: "nonce", - type: "uint256", + "internalType": "uint256", + "name": "nonce", + "type": "uint256" }, { - internalType: "uint256", - name: "start_timestamp", - type: "uint256", + "internalType": "uint256", + "name": "start_timestamp", + "type": "uint256" }, { - internalType: "uint256", - name: "complete_timestamp", - type: "uint256", + "internalType": "uint256", + "name": "complete_timestamp", + "type": "uint256" }, { - internalType: "bytes32", - name: "challenge", - type: "bytes32", + "internalType": "bytes32", + "name": "challenge", + "type": "bytes32" }, { - internalType: "uint256", - name: "difficulty", - type: "uint256", - }, + "internalType": "uint256", + "name": "difficulty", + "type": "uint256" + } ], - stateMutability: "view", - type: "function", + "stateMutability": "view", + "type": "function" }, { - inputs: [], - name: "renounceOwnership", - outputs: [], - stateMutability: "nonpayable", - type: "function", + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - inputs: [], - name: "startTime", - outputs: [ + "inputs": [], + "name": "startTime", + "outputs": [ { - internalType: "uint256", - name: "", - type: "uint256", - }, + "internalType": "uint256", + "name": "", + "type": "uint256" + } ], - stateMutability: "view", - type: "function", + "stateMutability": "view", + "type": "function" }, { - inputs: [ + "inputs": [ { - internalType: "uint256", - name: "nonce", - type: "uint256", + "internalType": "uint256", + "name": "nonce", + "type": "uint256" }, { - internalType: "string", - name: "nodeId", - type: "string", - }, + "internalType": "string", + "name": "nodeId", + "type": "string" + } ], - name: "submitWork", - outputs: [], - stateMutability: "nonpayable", - type: "function", + "name": "submitWork", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - inputs: [], - name: "targetDifficulty", - outputs: [ + "inputs": [], + "name": "targetDifficulty", + "outputs": [ { - internalType: "uint256", - name: "", - type: "uint256", - }, + "internalType": "uint256", + "name": "", + "type": "uint256" + } ], - stateMutability: "view", - type: "function", + "stateMutability": "view", + "type": "function" }, { - inputs: [ + "inputs": [ { - internalType: "address", - name: "newOwner", - type: "address", - }, + "internalType": "address", + "name": "newOwner", + "type": "address" + } ], - name: "transferOwnership", - outputs: [], - stateMutability: "nonpayable", - type: "function", + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - inputs: [], - name: "triggerNewPowRound", - outputs: [], - stateMutability: "nonpayable", - type: "function", + "inputs": [], + "name": "triggerNewPowRound", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - inputs: [], - name: "validProofs", - outputs: [ + "inputs": [], + "name": "validProofs", + "outputs": [ { - internalType: "uint256", - name: "", - type: "uint256", - }, + "internalType": "uint256", + "name": "", + "type": "uint256" + } ], - stateMutability: "view", - type: "function", + "stateMutability": "view", + "type": "function" }, { - inputs: [], - name: "window_end", - outputs: [ + "inputs": [], + "name": "window_end", + "outputs": [ { - internalType: "uint256", - name: "", - type: "uint256", - }, + "internalType": "uint256", + "name": "", + "type": "uint256" + } ], - stateMutability: "view", - type: "function", + "stateMutability": "view", + "type": "function" }, { - inputs: [], - name: "window_start", - outputs: [ + "inputs": [], + "name": "window_start", + "outputs": [ { - internalType: "uint256", - name: "", - type: "uint256", - }, + "internalType": "uint256", + "name": "", + "type": "uint256" + } ], - stateMutability: "view", - type: "function", - }, + "stateMutability": "view", + "type": "function" + } ], "0xFEA5B410a374cE6f1c2265B2E2d1eE7C70e479f4": [ { diff --git a/apps/info-dashboard/src/lib/chain/contracts.ts b/apps/info-dashboard/src/lib/chain/contracts.ts index 4604064..4b73dab 100644 --- a/apps/info-dashboard/src/lib/chain/contracts.ts +++ b/apps/info-dashboard/src/lib/chain/contracts.ts @@ -6,7 +6,7 @@ export const lilypadNetworkBalanceContractAddress = "0x0352485f8a3cB6d305875FaC0C40ef01e0C06535"; export const lilypadNetworkPowContractAddress = - "0xacDf1005fAb67C13603C19aC5471F0c7dDBc90b2"; + "0x8B852BA45293d6dd51B10c57625C6c5f25ADFB40"; export const balanceContract = getContract({ address: lilypadNetworkBalanceContractAddress, diff --git a/apps/info-dashboard/src/lib/fetchers/node-chain-data.ts b/apps/info-dashboard/src/lib/fetchers/node-chain-data.ts index 9df2eb1..4e9c4d0 100644 --- a/apps/info-dashboard/src/lib/fetchers/node-chain-data.ts +++ b/apps/info-dashboard/src/lib/fetchers/node-chain-data.ts @@ -42,7 +42,7 @@ export type PowSubmissions = { export async function getNodesPowSubmissions(addresses: string[]) { const nodesSubmissionCounts = (await Promise.all( addresses.map((address) => - powContract.read.minerSubmissionCount([address]) + powContract.read.getMinerPowSubmissionCount([address]) ) )) as bigint[]; const nodesLastSubmissions = (await Promise.all(