Skip to content

Commit

Permalink
add sepolia-arbitrum to automation benchmark test (#11149)
Browse files Browse the repository at this point in the history
* add sepolia-arbitrum to automation benchmark test

* add back P2P.V2 Enabled

* fix switch case in DeployKeeperRegistry
  • Loading branch information
anirudhwarrier authored Nov 2, 2023
1 parent 2c295a7 commit 96567e1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/automation-benchmark-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ on:
- MUMBAI
- SEPOLIA
- BASE_GOERLI
- ARBITRUM_SEPOLIA
TestInputs:
description: TestInputs
required: false
Expand Down
11 changes: 9 additions & 2 deletions integration-tests/benchmark/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Enabled = true
[P2P]
[P2P.V2]
Enabled = true
AnnounceAddresses = ["0.0.0.0:6690"]
ListenAddresses = ["0.0.0.0:6690"]
[Keeper]
Expand Down Expand Up @@ -242,13 +243,13 @@ func repeatRegistries(registryVersion eth_contracts.KeeperRegistryVersion, numbe

var networkConfig = map[string]NetworkConfig{
"SimulatedGeth": {
upkeepSLA: int64(20),
upkeepSLA: int64(120), //2 minutes
blockTime: time.Second,
deltaStage: 30 * time.Second,
funding: big.NewFloat(100_000),
},
"geth": {
upkeepSLA: int64(20),
upkeepSLA: int64(120), //2 minutes
blockTime: time.Second,
deltaStage: 30 * time.Second,
funding: big.NewFloat(100_000),
Expand Down Expand Up @@ -289,6 +290,12 @@ var networkConfig = map[string]NetworkConfig{
deltaStage: 20 * time.Second,
funding: big.NewFloat(ChainlinkNodeFunding),
},
"ArbitrumSepolia": {
upkeepSLA: int64(120),
blockTime: time.Second,
deltaStage: 20 * time.Second,
funding: big.NewFloat(ChainlinkNodeFunding),
},
}

func getEnv(key, fallback string) string {
Expand Down
14 changes: 10 additions & 4 deletions integration-tests/contracts/contract_deployer.go
Original file line number Diff line number Diff line change
Expand Up @@ -876,14 +876,20 @@ func (e *EthereumContractDeployer) DeployKeeperRegistry(
opts *KeeperRegistryOpts,
) (KeeperRegistry, error) {
var mode uint8
switch e.client.GetChainID() {
switch e.client.GetChainID().Int64() {
//Arbitrum payment model
case big.NewInt(421613):
//Goerli Arbitrum
case 421613:
mode = uint8(1)
//Sepolia Arbitrum
case 421614:
mode = uint8(1)
//Optimism payment model
case big.NewInt(420):
//Goerli Optimism
case 420:
mode = uint8(2)
case big.NewInt(84531):
//Goerli Base
case 84531:
mode = uint8(2)
default:
mode = uint8(0)
Expand Down

0 comments on commit 96567e1

Please sign in to comment.