Skip to content

Commit

Permalink
Update log trigger default values (#14051)
Browse files Browse the repository at this point in the history
  • Loading branch information
infiloop2 authored Aug 7, 2024
1 parent 7e5d161 commit 5a1dd1f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (o *LogTriggersOptions) Defaults(finalityDepth int64) {

func (o *LogTriggersOptions) defaultBlockRate() uint32 {
switch o.chainID.Int64() {
case 42161, 421613, 421614: // Arbitrum
case 42161, 421613, 421614: // Arbitrum, Arb Goerli, Arb Sepolia
return 2
default:
return 1
Expand All @@ -83,10 +83,10 @@ func (o *LogTriggersOptions) defaultBlockRate() uint32 {

func (o *LogTriggersOptions) defaultLogLimit() uint32 {
switch o.chainID.Int64() {
case 1, 4, 5, 42, 11155111: // Eth
case 1, 4, 5, 42, 11155111: // Eth, Rinkeby, Goerli, Kovan, Sepolia
return 20
case 10, 420, 56, 97, 137, 80001, 43113, 43114, 8453, 84531: // Optimism, BSC, Polygon, Avax, Base
return 5
case 10, 420, 11155420, 56, 97, 137, 80001, 80002, 43114, 43113, 8453, 84531, 84532: // Optimism, OP Goerli, OP Sepolia, BSC, BSC Test, Polygon, Mumbai, Amoy, Avax, Avax Fuji, Base, Base Goerli, Base Sepolia
return 4
default:
return 1
}
Expand Down

0 comments on commit 5a1dd1f

Please sign in to comment.