@@ -16,6 +16,13 @@ import { AutomateSDK } from '@gelatonetwork/automate-sdk'
16
16
console . error ( 'Set a valid value for GNOSIS_CHAIN_RPC_URL' )
17
17
process . exit ( 1 )
18
18
}
19
+
20
+ const baseRpcUrl = process . env . BASE_RPC_URL
21
+ if ( ! baseRpcUrl ) {
22
+ console . error ( 'Set a valid value for BASE_RPC_URL' )
23
+ process . exit ( 1 )
24
+ }
25
+
19
26
const keystorePath = process . argv [ 2 ] || ( process . env . GELATO_KEYSTORE_PATH as string )
20
27
const passwordPath = process . argv [ 3 ] || ( process . env . GELATO_PASSWORD_PATH as string )
21
28
@@ -25,9 +32,11 @@ import { AutomateSDK } from '@gelatonetwork/automate-sdk'
25
32
const deployer = ethers . Wallet . fromEncryptedJsonSync ( keystore , password )
26
33
const mainnetDeployer = new ethers . Wallet ( deployer . privateKey , new ethers . providers . JsonRpcProvider ( mainnetRpcUrl ) )
27
34
const gnosisDeployer = new ethers . Wallet ( deployer . privateKey , new ethers . providers . JsonRpcProvider ( gnosisRpcUrl ) )
35
+ const baseDeployer = new ethers . Wallet ( deployer . privateKey , new ethers . providers . JsonRpcProvider ( baseRpcUrl ) )
28
36
29
37
const mainnetAutomation = new AutomateSDK ( 1 , mainnetDeployer )
30
38
const gnosisAutomation = new AutomateSDK ( 100 , gnosisDeployer )
39
+ const baseAutomation = new AutomateSDK ( 8453 , baseDeployer )
31
40
32
41
console . log ( '== All Mainnet active tasks ==' )
33
42
const mainnetTasks = await mainnetAutomation . getActiveTasks ( )
@@ -40,4 +49,10 @@ import { AutomateSDK } from '@gelatonetwork/automate-sdk'
40
49
gnosisTasks . forEach ( ( task ) => {
41
50
console . log ( ` * ${ task . taskId } (${ task . name } )` )
42
51
} )
52
+
53
+ console . log ( '== All Base active tasks ==' )
54
+ const baseTasks = await baseAutomation . getActiveTasks ( )
55
+ baseTasks . forEach ( ( task ) => {
56
+ console . log ( ` * ${ task . taskId } (${ task . name } )` )
57
+ } )
43
58
} ) ( )
0 commit comments