Skip to content

Commit

Permalink
chore(configs): Adjust file based configs (#3171)
Browse files Browse the repository at this point in the history
## What ❔
* Add fields to mainnet.yaml so that `zkstack` can create mainnet
ecosystem
* Add comment about typo in `max_acceptable_priority_fee_in_gwei`
(caused problems before)
* Add `l1_batch_min_age_before_execute_seconds` to avoid sending Execute
tx too early

## Why ❔
* To make things work

## Checklist

- [ ] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [ ] Code has been formatted via `zkstack dev fmt` and `zkstack dev
lint`.
  • Loading branch information
sanekmelnikov authored Oct 25, 2024
1 parent 8e75d4b commit 91ec341
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions etc/env/ecosystems/mainnet.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
create2_factory_addr: 0xce0042b868300000d44a59004da54a005ffdcf9f
create2_factory_salt: '0x0000000000000000000000000000000000000000000000000000000000000000'
ecosystem_contracts:
bridgehub_proxy_addr: 0x303a465B659cBB0ab36eE643eA362c509EEb5213
state_transition_proxy_addr: 0xc2eE6b6af7d616f6e27ce7F4A451Aedc2b0F5f5C
Expand All @@ -17,3 +19,6 @@ l1:
verifier_addr: 0x70F3FBf8a427155185Ec90BED8a3434203de9604
validator_timelock_addr: 0x5D8ba173Dc6C3c90C8f7C04C9288BeF5FDbAd06E
base_token_addr: '0x0000000000000000000000000000000000000000'
l2:
testnet_paymaster_addr: '0x0000000000000000000000000000000000000000'
default_l2_upgrader: '0x0000000000000000000000000000000000000000'
2 changes: 1 addition & 1 deletion etc/env/file_based/general.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ eth:
max_eth_tx_data_size: 120000
aggregated_proof_sizes: [ 1 ]
max_aggregated_tx_gas: 15000000
max_acceptable_priority_fee_in_gwei: 100000000000
max_acceptable_priority_fee_in_gwei: 100000000000 # typo: value is in wei (100 gwei)
pubdata_sending_mode: BLOBS
gas_adjuster:
default_priority_fee_per_gas: 1000000000
Expand Down
1 change: 1 addition & 0 deletions etc/env/file_based/overrides/mainnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ eth:
aggregated_block_prove_deadline: 300
aggregated_block_execute_deadline: 300
timestamp_criteria_max_allowed_lag: 104000 # 29h
l1_batch_min_age_before_execute_seconds: 76000 # 21h
wait_confirmations: null
gas_adjuster:
pricing_formula_parameter_a: 1.06
Expand Down
1 change: 1 addition & 0 deletions etc/env/file_based/overrides/testnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ eth:
aggregated_block_prove_deadline: 300
aggregated_block_execute_deadline: 300
timestamp_criteria_max_allowed_lag: 104000 # 29h
l1_batch_min_age_before_execute_seconds: 1500 # 25m
wait_confirmations: null
gas_adjuster:
pricing_formula_parameter_a: 1.1
Expand Down

0 comments on commit 91ec341

Please sign in to comment.