Skip to content

Commit 9437d51

Browse files
author
Dev Kalra
authored
feat(contract_manager): add keeper balance to list entry (#1506)
* add keeper balance to list entry * don't fix it as not sure
1 parent d31cefb commit 9437d51

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

contract_manager/scripts/list_entropy_contracts.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,22 @@ const parser = yargs(hideBin(process.argv))
1313
},
1414
});
1515

16+
const KEEPER_ADDRESS = {
17+
mainnet: "0xBcAb779fCa45290288C35F5E231c37F9fA87b130",
18+
testnet: "0xa5A68ed167431Afe739846A22597786ba2da85df",
19+
};
20+
1621
async function main() {
1722
const argv = await parser.argv;
1823
const entries = [];
24+
const keeperAddress = KEEPER_ADDRESS[argv.testnet ? "testnet" : "mainnet"];
1925
for (const contract of Object.values(DefaultStore.entropy_contracts)) {
2026
if (contract.getChain().isMainnet() === argv.testnet) continue;
2127
try {
2228
const provider = await contract.getDefaultProvider();
2329
const w3 = new Web3(contract.getChain().getRpcUrl());
2430
const balance = await w3.eth.getBalance(provider);
31+
const keeperBalance = await w3.eth.getBalance(keeperAddress);
2532
let version = "unknown";
2633
try {
2734
version = await contract.getVersion();
@@ -34,6 +41,7 @@ async function main() {
3441
contract: contract.address,
3542
provider: providerInfo.uri,
3643
balance,
44+
keeperBalance,
3745
seq: providerInfo.sequenceNumber,
3846
version,
3947
});

0 commit comments

Comments
 (0)