Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Rust-based chain specs #592

Merged
merged 28 commits into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
ea7851e
Move some chain spec accounts to constants
HCastano Jan 15, 2024
e787a1b
Create new `chain_spec` module
HCastano Jan 15, 2024
15e2213
Fill out `dev` module
HCastano Jan 15, 2024
069c75b
Add WIP `load_spec` changes
HCastano Jan 15, 2024
6e03f9f
Fill out `testnet` module
HCastano Jan 15, 2024
38396c5
Add `testnet_local` configuration
HCastano Jan 15, 2024
5c25b9d
Remove `admin` module
HCastano Jan 16, 2024
c1efa38
Remove uneccessary chain configs
HCastano Jan 16, 2024
1d08f61
Clean up `--chain` options
HCastano Jan 16, 2024
7523d3a
TaploFmt
HCastano Jan 16, 2024
e22791d
Move testing configuration to own module
HCastano Jan 16, 2024
32a9648
Rename `test` chainspec to `integration_tests`
HCastano Jan 16, 2024
eb6ca1b
Move X25519 public keys into consts and own module
HCastano Jan 17, 2024
0f867e3
Move TSS AccountID into own module
HCastano Jan 17, 2024
466ab20
Use new consts in `integration_tests` module
HCastano Jan 17, 2024
ddb452a
Clean up some unused re-exports
HCastano Jan 17, 2024
1393f21
Use full word for "properties"
HCastano Jan 17, 2024
0f6f318
Use `get_account_id_from_seed` from import instead of full path
HCastano Jan 17, 2024
856daf2
Add `Charlie` X25519 public key
HCastano Jan 17, 2024
1e80359
Update comments around what each network is made up of
HCastano Jan 17, 2024
ab3fc2c
It doesn't need to be a validator for tests to pass
HCastano Jan 17, 2024
fe40636
Clean up unused re-export
HCastano Jan 17, 2024
63c0706
Update some comments
HCastano Jan 17, 2024
38cfa27
Replace more hex accounts with named accounts
HCastano Jan 17, 2024
83bec8b
Pull out `Eve` X25519 public key into const
HCastano Jan 17, 2024
3be8e60
Add `devnet-local` configuration back
HCastano Jan 17, 2024
f0b5785
Change `testnet-local` address to use Docker addresses
HCastano Jan 17, 2024
0e9eb27
Make note about breaking changes in `CHANGELOG`
HCastano Jan 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 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 crates/testing-utils/src/substrate_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ pub async fn test_node_process_stationary() -> TestNodeProcess<EntropyConfig> {
pub async fn test_node_process_testing_state(
force_authoring: bool,
) -> TestNodeProcess<EntropyConfig> {
test_node(AccountKeyring::Alice, "--chain=test".to_string(), force_authoring).await
test_node(AccountKeyring::Alice, "--chain=integration-tests".to_string(), force_authoring).await
}

/// Spins up Substrate node and a connected `subxt` client.
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# a more canonical set of environments and configuration files.
---
version: "3.8"
name: entropy-local-devnet
name: entropy-devnet-local

secrets:
credentials:
Expand Down Expand Up @@ -38,7 +38,7 @@ services:
- "127.0.0.1:9944:9944/tcp" # "RPC Port."
command:
- "--chain"
- "local-devnet"
- "devnet-local"
- "--alice" # Shortcut for `--name Alice --validator`
- "--base-path"
- ".entropy/alice"
Expand Down Expand Up @@ -74,7 +74,7 @@ services:
- "127.0.0.1:9945:9944/tcp"
command:
- "--chain"
- "local-devnet"
- "devnet-local"
- "--bob" # Shortcut for `--name Bob --validator`
- "--base-path"
- ".entropy/bob"
Expand Down
1 change: 1 addition & 0 deletions node/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ name='entropy'
jsonrpc-core ='18.0.0'
serde_json ='1.0.0'
log ="0.4.17"
lazy_static ={ version="1.4.0", features=["spin_no_std"] }
clap ={ version="4.0.9", features=["derive"], optional=true }
codec ={ package="parity-scale-codec", version="3.0.0" }
structopt ='0.3.8'
Expand Down
274 changes: 0 additions & 274 deletions node/cli/src/admin.rs

This file was deleted.

Loading
Loading