Skip to content

Commit 2ec2fb4

Browse files
authored
feat: add base support to CI (#37)
1 parent 43a806a commit 2ec2fb4

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ env:
1010
PROVIDER_URLS: ${{ vars.PROVIDER_URLS }}
1111
GELATO_PRIVATE_KEY: ${{ secrets.DEPLOYER_PRIVATE_KEY }}
1212
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}
13+
BASE_RPC_URL: ${{ secrets.BASE_RPC_URL }}
1314
GNOSIS_CHAIN_RPC_URL: ${{ secrets.GNOSIS_CHAIN_RPC_URL }}
1415
SPARK_INFO_SLACK_WEBHOOK_URL: ${{ secrets.SPARK_INFO_SLACK_WEBHOOK_URL }}
1516
SSR_ORACLES_ALERTS_SLACK_WEBHOOK_URL: ${{ secrets.SSR_ORACLES_ALERTS_SLACK_WEBHOOK_URL }}

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,8 @@ jobs:
3939
- name: Run gnosis tests
4040
run: yarn test:gnosis
4141

42+
- name: Run base tests
43+
run: yarn test:base
44+
4245
- name: Run mainnet tests
4346
run: yarn test:mainnet

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ Alternatively, in order to run only part of the tests, run on of the following:
6262
```bash
6363
yarn test:mainnet # Tests on mainnet fork for keepers operating on mainnet
6464
yarn test:gnosis # Tests on gnosis chain fork for keepers operating on gnosis chain
65+
yarn test:base # Tests on base chain fork for keepers operating on base chain
6566
yarn test:utils # Tests of utils, not executed on forked environment
6667
```
6768

scripts/listActiveTasks.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ import { AutomateSDK } from '@gelatonetwork/automate-sdk'
1616
console.error('Set a valid value for GNOSIS_CHAIN_RPC_URL')
1717
process.exit(1)
1818
}
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+
1926
const keystorePath = process.argv[2] || (process.env.GELATO_KEYSTORE_PATH as string)
2027
const passwordPath = process.argv[3] || (process.env.GELATO_PASSWORD_PATH as string)
2128

@@ -25,9 +32,11 @@ import { AutomateSDK } from '@gelatonetwork/automate-sdk'
2532
const deployer = ethers.Wallet.fromEncryptedJsonSync(keystore, password)
2633
const mainnetDeployer = new ethers.Wallet(deployer.privateKey, new ethers.providers.JsonRpcProvider(mainnetRpcUrl))
2734
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))
2836

2937
const mainnetAutomation = new AutomateSDK(1, mainnetDeployer)
3038
const gnosisAutomation = new AutomateSDK(100, gnosisDeployer)
39+
const baseAutomation = new AutomateSDK(8453, baseDeployer)
3140

3241
console.log('== All Mainnet active tasks ==')
3342
const mainnetTasks = await mainnetAutomation.getActiveTasks()
@@ -40,4 +49,10 @@ import { AutomateSDK } from '@gelatonetwork/automate-sdk'
4049
gnosisTasks.forEach((task) => {
4150
console.log(` * ${task.taskId} (${task.name})`)
4251
})
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+
})
4358
})()

0 commit comments

Comments
 (0)