Skip to content

Commit

Permalink
Add base goerli benchmark option (#11089)
Browse files Browse the repository at this point in the history
* Add base goerli benchmark option

* Add config

* Add to op stack deployer

* Add FlatFeeMicroLink
  • Loading branch information
davidcauchi authored Nov 1, 2023
1 parent 24de8af commit 45844de
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 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 @@ -24,6 +24,7 @@ on:
- OPTIMISM_GOERLI
- MUMBAI
- SEPOLIA
- BASE_GOERLI
TestInputs:
description: TestInputs
required: false
Expand Down
7 changes: 7 additions & 0 deletions integration-tests/benchmark/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ func TestAutomationBenchmark(t *testing.T) {
RegistryVersions: registryVersions,
KeeperRegistrySettings: &contracts.KeeperRegistrySettings{
PaymentPremiumPPB: uint32(0),
FlatFeeMicroLINK: uint32(40000),
BlockCountPerTurn: big.NewInt(100),
CheckGasLimit: uint32(45_000_000), //45M
StalenessSeconds: big.NewInt(90_000),
Expand Down Expand Up @@ -282,6 +283,12 @@ var networkConfig = map[string]NetworkConfig{
deltaStage: time.Duration(0),
funding: big.NewFloat(ChainlinkNodeFunding),
},
"BaseGoerli": {
upkeepSLA: int64(60),
blockTime: 2 * time.Second,
deltaStage: 20 * time.Second,
funding: big.NewFloat(ChainlinkNodeFunding),
},
}

func getEnv(key, fallback string) string {
Expand Down
2 changes: 2 additions & 0 deletions integration-tests/contracts/contract_deployer.go
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,8 @@ func (e *EthereumContractDeployer) DeployKeeperRegistry(
//Optimism payment model
case big.NewInt(420):
mode = uint8(2)
case big.NewInt(84531):
mode = uint8(2)
default:
mode = uint8(0)
}
Expand Down

0 comments on commit 45844de

Please sign in to comment.