-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update dependencies to Substrate v0.9.18 (#336)
* feat: update dependencies to v0.9.18 * fix: update scale info package to 2.1.2 * feat: update codec * feat: upgrade to new v0.9.18 standard * feat: update serde * fix: clippy * feat: update * fix: clippy * feat: try to update benchmarking * fix: failing builds * * fix: tests and benchmark mocks * tests: fix failing ga orders tests * tests: fix failing analysts tests * tests: fix failing orders tests * tests: fix failing rewards tests * tests: fix failing service requests tests * tests: fix failing labs tests * tests: fix failing user profile tests
- Loading branch information
1 parent
aba487c
commit 22e92e9
Showing
141 changed files
with
2,110 additions
and
1,960 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,71 @@ | ||
use sc_cli::{ | ||
BuildSpecCmd, CheckBlockCmd, ExportBlocksCmd, ExportStateCmd, ImportBlocksCmd, KeySubcommand, | ||
PurgeChainCmd, RevertCmd, RunCmd, | ||
}; | ||
#[allow(missing_docs)] | ||
#[derive(Debug, clap::Parser)] | ||
pub struct RunCmd { | ||
#[allow(missing_docs)] | ||
#[clap(flatten)] | ||
pub base: sc_cli::RunCmd, | ||
|
||
use frame_benchmarking_cli::BenchmarkCmd; | ||
#[clap(long)] | ||
pub enable_dev_signer: bool, | ||
|
||
use structopt::StructOpt; | ||
/// Maximum number of logs in a query. | ||
#[clap(long, default_value = "10000")] | ||
pub max_past_logs: u32, | ||
|
||
#[derive(Debug, StructOpt)] | ||
/// Maximum fee history cache size. | ||
#[clap(long, default_value = "2048")] | ||
pub fee_history_limit: u64, | ||
|
||
/// The dynamic-fee pallet target gas price set by block author | ||
#[clap(long, default_value = "1")] | ||
pub target_gas_price: u64, | ||
} | ||
|
||
#[derive(Debug, clap::Parser)] | ||
pub struct Cli { | ||
#[structopt(subcommand)] | ||
#[clap(subcommand)] | ||
pub subcommand: Option<Subcommand>, | ||
|
||
#[structopt(flatten)] | ||
#[clap(flatten)] | ||
pub run: RunCmd, | ||
} | ||
|
||
#[derive(Debug, StructOpt)] | ||
#[derive(Debug, clap::Subcommand)] | ||
pub enum Subcommand { | ||
/// Key management cli utilities | ||
Key(KeySubcommand), | ||
#[clap(subcommand)] | ||
Key(sc_cli::KeySubcommand), | ||
|
||
/// Build a chain specification. | ||
BuildSpec(BuildSpecCmd), | ||
BuildSpec(sc_cli::BuildSpecCmd), | ||
|
||
/// Validate blocks. | ||
CheckBlock(CheckBlockCmd), | ||
CheckBlock(sc_cli::CheckBlockCmd), | ||
|
||
/// Export blocks. | ||
ExportBlocks(ExportBlocksCmd), | ||
ExportBlocks(sc_cli::ExportBlocksCmd), | ||
|
||
/// Export the state of a given block into a chain spec. | ||
ExportState(ExportStateCmd), | ||
ExportState(sc_cli::ExportStateCmd), | ||
|
||
/// Import blocks. | ||
ImportBlocks(ImportBlocksCmd), | ||
ImportBlocks(sc_cli::ImportBlocksCmd), | ||
|
||
/// Remove the whole chain. | ||
PurgeChain(PurgeChainCmd), | ||
PurgeChain(sc_cli::PurgeChainCmd), | ||
|
||
/// Revert the chain to a previous state. | ||
Revert(RevertCmd), | ||
Revert(sc_cli::RevertCmd), | ||
|
||
/// The custom benchmark subcommand benchmarking runtime pallets. | ||
#[structopt(name = "benchmark", about = "Benchmark runtime pallets.")] | ||
Benchmark(BenchmarkCmd), | ||
#[clap(name = "benchmark", about = "Benchmark runtime pallets.")] | ||
Benchmark(frame_benchmarking_cli::BenchmarkCmd), | ||
|
||
/// Try some command against runtime state. | ||
#[cfg(feature = "try-runtime")] | ||
TryRuntime(try_runtime_cli::TryRuntimeCmd), | ||
|
||
/// Try some command against runtime state. Note: `try-runtime` feature must be enabled. | ||
#[cfg(not(feature = "try-runtime"))] | ||
TryRuntime, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pub mod chain_spec; | ||
pub mod rpc; | ||
pub mod service; |
Oops, something went wrong.