File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,22 @@ const parser = yargs(hideBin(process.argv))
13
13
} ,
14
14
} ) ;
15
15
16
+ const KEEPER_ADDRESS = {
17
+ mainnet : "0xBcAb779fCa45290288C35F5E231c37F9fA87b130" ,
18
+ testnet : "0xa5A68ed167431Afe739846A22597786ba2da85df" ,
19
+ } ;
20
+
16
21
async function main ( ) {
17
22
const argv = await parser . argv ;
18
23
const entries = [ ] ;
24
+ const keeperAddress = KEEPER_ADDRESS [ argv . testnet ? "testnet" : "mainnet" ] ;
19
25
for ( const contract of Object . values ( DefaultStore . entropy_contracts ) ) {
20
26
if ( contract . getChain ( ) . isMainnet ( ) === argv . testnet ) continue ;
21
27
try {
22
28
const provider = await contract . getDefaultProvider ( ) ;
23
29
const w3 = new Web3 ( contract . getChain ( ) . getRpcUrl ( ) ) ;
24
30
const balance = await w3 . eth . getBalance ( provider ) ;
31
+ const keeperBalance = await w3 . eth . getBalance ( keeperAddress ) ;
25
32
let version = "unknown" ;
26
33
try {
27
34
version = await contract . getVersion ( ) ;
@@ -34,6 +41,7 @@ async function main() {
34
41
contract : contract . address ,
35
42
provider : providerInfo . uri ,
36
43
balance,
44
+ keeperBalance,
37
45
seq : providerInfo . sequenceNumber ,
38
46
version,
39
47
} ) ;
You can’t perform that action at this time.
0 commit comments