Skip to content

Commit

Permalink
fix: override cli (madara-alliance#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbcaron authored Oct 8, 2024
1 parent f46532a commit 66543dd
Show file tree
Hide file tree
Showing 22 changed files with 218 additions and 164 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Next release

- fix: override chain config
- fix: estimate_fee should through an error if any txn fails
- fix: rejected transaction block production panic
- fix(sync): pending block retrying mechanism
Expand Down
19 changes: 1 addition & 18 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion configs/chain_config.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ native_fee_token_address: "0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201
parent_fee_token_address: "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"

# Paths to JSON files containing blockifier's constants for different versions
versioned_constants:
versioned_constants_path:
"0.13.0": "crates/primitives/chain_config/resources/versioned_constants_13_0.json"
"0.13.1": "crates/primitives/chain_config/resources/versioned_constants_13_1.json"
"0.13.1.1": "crates/primitives/chain_config/resources/versioned_constants_13_1_1.json"
Expand Down
5 changes: 0 additions & 5 deletions configs/presets/devnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ chain_name: "Madara"
chain_id: "MADARA_DEVNET"
native_fee_token_address: "0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d"
parent_fee_token_address: "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"
versioned_constants:
"0.13.0": "crates/primitives/chain_config/resources/versioned_constants_13_0.json"
"0.13.1": "crates/primitives/chain_config/resources/versioned_constants_13_1.json"
"0.13.1.1": "crates/primitives/chain_config/resources/versioned_constants_13_1_1.json"
"0.13.2": "crates/primitives/chain_config/resources/versioned_constants_13_2.json"
eth_core_contract_address: "0xE2Bb56ee936fd6433DC0F6e7e3b8365C906AA057"
latest_protocol_version: "0.13.2"
block_time: "30s"
Expand Down
7 changes: 1 addition & 6 deletions configs/presets/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ chain_name: "Starknet Sepolia"
chain_id: "SN_INTEGRATION_SEPOLIA"
native_fee_token_address: "0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d"
parent_fee_token_address: "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"
versioned_constants:
"0.13.0": "crates/primitives/chain_config/resources/versioned_constants_13_0.json"
"0.13.1": "crates/primitives/chain_config/resources/versioned_constants_13_1.json"
"0.13.1.1": "crates/primitives/chain_config/resources/versioned_constants_13_1_1.json"
"0.13.2": "crates/primitives/chain_config/resources/versioned_constants_13_2.json"
eth_core_contract_address: "0x4737c0c1B4D5b1A687B42610DdabEE781152359c"
latest_protocol_version: "0.13.2"
block_time: "30s"
Expand All @@ -30,5 +25,5 @@ bouncer_config:
message_segment_length: 18446744073709551615
n_events: 18446744073709551615
state_diff_size: 131072
sequencer_address: "0x0"
sequencer_address: "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8"
max_nonce_for_validation_skip: 2
7 changes: 1 addition & 6 deletions configs/presets/mainnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ chain_name: "Starknet Mainnet"
chain_id: "SN_MAIN"
native_fee_token_address: "0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d"
parent_fee_token_address: "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"
versioned_constants:
"0.13.0": "crates/primitives/chain_config/resources/versioned_constants_13_0.json"
"0.13.1": "crates/primitives/chain_config/resources/versioned_constants_13_1.json"
"0.13.1.1": "crates/primitives/chain_config/resources/versioned_constants_13_1_1.json"
"0.13.2": "crates/primitives/chain_config/resources/versioned_constants_13_2.json"
eth_core_contract_address: "0xc662c410C0ECf747543f5bA90660f6ABeBD9C8c4"
latest_protocol_version: "0.13.2"
block_time: "30s"
Expand All @@ -30,5 +25,5 @@ bouncer_config:
message_segment_length: 18446744073709551615
n_events: 18446744073709551615
state_diff_size: 131072
sequencer_address: "0x0"
sequencer_address: "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8"
max_nonce_for_validation_skip: 2
7 changes: 1 addition & 6 deletions configs/presets/sepolia.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ chain_name: "Starknet Sepolia"
chain_id: "SN_SEPOLIA"
native_fee_token_address: "0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d"
parent_fee_token_address: "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"
versioned_constants:
"0.13.0": "crates/primitives/chain_config/resources/versioned_constants_13_0.json"
"0.13.1": "crates/primitives/chain_config/resources/versioned_constants_13_1.json"
"0.13.1.1": "crates/primitives/chain_config/resources/versioned_constants_13_1_1.json"
"0.13.2": "crates/primitives/chain_config/resources/versioned_constants_13_2.json"
eth_core_contract_address: "0xE2Bb56ee936fd6433DC0F6e7e3b8365C906AA057"
latest_protocol_version: "0.13.2"
block_time: "30s"
Expand All @@ -30,5 +25,5 @@ bouncer_config:
message_segment_length: 18446744073709551615
n_events: 18446744073709551615
state_diff_size: 131072
sequencer_address: "0x0"
sequencer_address: "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8"
max_nonce_for_validation_skip: 2
1 change: 0 additions & 1 deletion crates/client/block_import/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ mp-convert.workspace = true
mp-receipt.workspace = true
mp-state-update.workspace = true
mp-transactions.workspace = true
mp-utils.workspace = true

bonsai-trie.workspace = true
starknet-core.workspace = true
Expand Down
1 change: 0 additions & 1 deletion crates/client/db/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ bincode = { workspace = true }
log = { workspace = true, default-features = true }
rayon = { workspace = true }
rocksdb.workspace = true
rstest = { workspace = true }
serde = { workspace = true }
tempfile = { workspace = true, optional = true }
thiserror = { workspace = true }
Expand Down
1 change: 0 additions & 1 deletion crates/client/devnet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ mp-convert.workspace = true
mp-receipt.workspace = true
mp-state-update.workspace = true
mp-transactions.workspace = true
mp-utils.workspace = true

# Starknet
blockifier.workspace = true
Expand Down
1 change: 0 additions & 1 deletion crates/client/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ mp-convert = { workspace = true, default-features = true }
mp-receipt = { workspace = true }
mp-state-update = { workspace = true }
mp-transactions = { workspace = true }
mp-utils = { workspace = true }

# Starknet
blockifier = { workspace = true, default-features = true }
Expand Down
5 changes: 0 additions & 5 deletions crates/client/sync/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,11 @@ mp-chain-config.workspace = true
mp-class.workspace = true
mp-convert.workspace = true
mp-gateway.workspace = true
mp-receipt.workspace = true
mp-transactions.workspace = true
mp-utils.workspace = true

# Starknet
starknet-core.workspace = true
starknet-providers.workspace = true
starknet-types-core.workspace = true
starknet_api.workspace = true

Expand All @@ -43,9 +41,6 @@ starknet_api.workspace = true
anyhow.workspace = true
futures = { workspace = true, default-features = true }
log.workspace = true
num-traits.workspace = true
rand.workspace = true
rayon.workspace = true
reqwest.workspace = true
serde_json.workspace = true
thiserror.workspace = true
Expand Down
2 changes: 0 additions & 2 deletions crates/node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ mp-utils = { workspace = true }

# Starknet
blockifier = { workspace = true }
starknet-core = { workspace = true }
starknet-providers = { workspace = true }
starknet_api = { workspace = true }

Expand All @@ -54,7 +53,6 @@ hyper.workspace = true
ip_network.workspace = true
jsonrpsee.workspace = true
log = { workspace = true }
primitive-types.workspace = true
rand = { workspace = true }
rayon.workspace = true
reqwest = { workspace = true }
Expand Down
Loading

0 comments on commit 66543dd

Please sign in to comment.