Skip to content

Commit

Permalink
feat: add chain spec, use it for gas, add configs
Browse files Browse the repository at this point in the history
  • Loading branch information
dancoombs committed Jan 12, 2024
1 parent 3fa4c6b commit 499fc2a
Show file tree
Hide file tree
Showing 35 changed files with 781 additions and 328 deletions.
170 changes: 167 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions bin/rundler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ rundler-utils = { path = "../../crates/utils" }

# CLI dependencies
anyhow.workspace = true
config = "0.13.4"
clap = { version = "4.4.4", features = ["derive", "env"] }
dotenv = "0.15.0"
ethers.workspace = true
Expand All @@ -29,6 +30,7 @@ metrics = "0.21.0"
metrics-exporter-prometheus = "0.12.0"
metrics-process = "1.0.10"
metrics-util = "0.15.0"
paste = "1.0"
rusoto_core = { version = "0.48.0", default-features = false, features = ["rustls"] }
rusoto_s3 = { version = "0.48.0", default-features = false, features = ["rustls"] }
serde.workspace = true
Expand Down
8 changes: 8 additions & 0 deletions bin/rundler/chain_specs/arbitrum.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name = "Arbitrum"
id = 42161

calldata_pre_verification_gas = true
l1_gas_oracle_contract_type = "ARBITRUM_NITRO"
l1_gas_oracle_contract_address = "0x00000000000000000000000000000000000000C8"

supports_eip1559 = false
4 changes: 4 additions & 0 deletions bin/rundler/chain_specs/arbitrum_goerli.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
base = "arbitrum"

name = "Arbitrum Goerli"
id = 421613
4 changes: 4 additions & 0 deletions bin/rundler/chain_specs/arbitrum_sepolia.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
base = "arbitrum"

name = "Arbitrum Sepolia"
id = 421614
10 changes: 10 additions & 0 deletions bin/rundler/chain_specs/base.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name = "Base"
id = 8453

calldata_pre_verification_gas = true
l1_gas_oracle_contract_type = "OPTIMISM_BEDROCK"
l1_gas_oracle_contract_address = "0x420000000000000000000000000000000000000F"
include_l1_gas_in_gas_limit = false

priority_fee_oracle_type = "USAGE_BASED"
min_max_priority_fee_per_gas = "0x0186A0" # 100_000
4 changes: 4 additions & 0 deletions bin/rundler/chain_specs/base_goerli.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
base = "base"

name = "Base Goerli"
id = 84531
4 changes: 4 additions & 0 deletions bin/rundler/chain_specs/base_sepolia.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
base = "base"

name = "Base Sepolia"
id = 84532
2 changes: 2 additions & 0 deletions bin/rundler/chain_specs/ethereum.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name = "Ethereum"
id = 1
4 changes: 4 additions & 0 deletions bin/rundler/chain_specs/ethereum_goerli.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
base = "ethereum"

name = "Ethereum Goerli"
id = 5
4 changes: 4 additions & 0 deletions bin/rundler/chain_specs/ethereum_sepolia.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
base = "ethereum"

name = "Ethereum Sepolia"
id = 11155111
10 changes: 10 additions & 0 deletions bin/rundler/chain_specs/optimism.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name = "Optimism"
id = 10

calldata_pre_verification_gas = true
l1_gas_oracle_contract_type = "OPTIMISM_BEDROCK"
l1_gas_oracle_contract_address = "0x420000000000000000000000000000000000000F"
include_l1_gas_in_gas_limit = false

priority_fee_oracle_type = "USAGE_BASED"
min_max_priority_fee_per_gas = "0x0186A0" # 100_000
4 changes: 4 additions & 0 deletions bin/rundler/chain_specs/optimism_goerli.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
base = "optimism"

name = "Optimism Goerli"
id = 420
4 changes: 4 additions & 0 deletions bin/rundler/chain_specs/optimism_sepolia.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
base = "optimism"

name = "Optimism Sepolia"
id = 11155420
5 changes: 5 additions & 0 deletions bin/rundler/chain_specs/polygon.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name = "Polygon"
id = 137

priority_fee_oracle_type = "USAGE_BASED"
min_max_priority_fee_per_gas = "0x06FC23AC00" # 30_000_000_000
Loading

0 comments on commit 499fc2a

Please sign in to comment.