mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 04:41:03 +00:00
Remove Sudo (#1437)
* Remove Sudo NOTE: To ensure minimal index changes to pre-existing pallet deployments, this is done with a "swap_remove" style; the previous last pallet (Purchase), which is hitherto unused, has been shifted into the old index of Sudo. * Remove CC1 designation. * Fixes * Bump * Fixes * Fixes * Fixes * Fixes * Fixes * Fixes * Fixes * Fixes * Fixes * Fixes
This commit is contained in:
Generated
+20
-21
@@ -2422,7 +2422,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "kusama-runtime"
|
name = "kusama-runtime"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitvec",
|
"bitvec",
|
||||||
"frame-benchmarking",
|
"frame-benchmarking",
|
||||||
@@ -4302,7 +4302,7 @@ checksum = "feb3b2b1033b8a60b4da6ee470325f887758c95d5320f52f9ce0df055a55940e"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "polkadot"
|
name = "polkadot"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"assert_cmd",
|
"assert_cmd",
|
||||||
"futures 0.3.5",
|
"futures 0.3.5",
|
||||||
@@ -4316,7 +4316,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "polkadot-availability-store"
|
name = "polkadot-availability-store"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"derive_more 0.99.9",
|
"derive_more 0.99.9",
|
||||||
"exit-future",
|
"exit-future",
|
||||||
@@ -4342,7 +4342,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "polkadot-cli"
|
name = "polkadot-cli"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"frame-benchmarking-cli",
|
"frame-benchmarking-cli",
|
||||||
"futures 0.3.5",
|
"futures 0.3.5",
|
||||||
@@ -4367,7 +4367,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "polkadot-collator"
|
name = "polkadot-collator"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"futures 0.3.5",
|
"futures 0.3.5",
|
||||||
"futures-timer 2.0.2",
|
"futures-timer 2.0.2",
|
||||||
@@ -4405,7 +4405,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "polkadot-erasure-coding"
|
name = "polkadot-erasure-coding"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"derive_more 0.15.0",
|
"derive_more 0.15.0",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
@@ -4417,7 +4417,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "polkadot-network"
|
name = "polkadot-network"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"arrayvec 0.4.12",
|
"arrayvec 0.4.12",
|
||||||
"bytes 0.5.5",
|
"bytes 0.5.5",
|
||||||
@@ -4466,7 +4466,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "polkadot-network-test"
|
name = "polkadot-network-test"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"futures 0.3.5",
|
"futures 0.3.5",
|
||||||
"log 0.4.8",
|
"log 0.4.8",
|
||||||
@@ -4585,7 +4585,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "polkadot-parachain"
|
name = "polkadot-parachain"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"derive_more 0.99.9",
|
"derive_more 0.99.9",
|
||||||
"log 0.4.8",
|
"log 0.4.8",
|
||||||
@@ -4624,7 +4624,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "polkadot-primitives"
|
name = "polkadot-primitives"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitvec",
|
"bitvec",
|
||||||
"frame-system",
|
"frame-system",
|
||||||
@@ -4648,7 +4648,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "polkadot-rpc"
|
name = "polkadot-rpc"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"jsonrpc-core",
|
"jsonrpc-core",
|
||||||
"pallet-transaction-payment-rpc",
|
"pallet-transaction-payment-rpc",
|
||||||
@@ -4674,7 +4674,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "polkadot-runtime"
|
name = "polkadot-runtime"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitvec",
|
"bitvec",
|
||||||
"frame-benchmarking",
|
"frame-benchmarking",
|
||||||
@@ -4710,7 +4710,6 @@ dependencies = [
|
|||||||
"pallet-session-benchmarking",
|
"pallet-session-benchmarking",
|
||||||
"pallet-staking",
|
"pallet-staking",
|
||||||
"pallet-staking-reward-curve",
|
"pallet-staking-reward-curve",
|
||||||
"pallet-sudo",
|
|
||||||
"pallet-timestamp",
|
"pallet-timestamp",
|
||||||
"pallet-transaction-payment",
|
"pallet-transaction-payment",
|
||||||
"pallet-transaction-payment-rpc-runtime-api",
|
"pallet-transaction-payment-rpc-runtime-api",
|
||||||
@@ -4749,7 +4748,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "polkadot-runtime-common"
|
name = "polkadot-runtime-common"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitvec",
|
"bitvec",
|
||||||
"frame-benchmarking",
|
"frame-benchmarking",
|
||||||
@@ -4837,7 +4836,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "polkadot-service"
|
name = "polkadot-service"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"env_logger",
|
"env_logger",
|
||||||
"frame-benchmarking",
|
"frame-benchmarking",
|
||||||
@@ -4981,7 +4980,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "polkadot-statement-table"
|
name = "polkadot-statement-table"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"polkadot-primitives",
|
"polkadot-primitives",
|
||||||
@@ -5001,7 +5000,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "polkadot-test-runtime"
|
name = "polkadot-test-runtime"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitvec",
|
"bitvec",
|
||||||
"frame-executive",
|
"frame-executive",
|
||||||
@@ -5132,7 +5131,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "polkadot-validation"
|
name = "polkadot-validation"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ansi_term 0.12.1",
|
"ansi_term 0.12.1",
|
||||||
"bitvec",
|
"bitvec",
|
||||||
@@ -8360,7 +8359,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "test-parachain-adder"
|
name = "test-parachain-adder"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"dlmalloc",
|
"dlmalloc",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
@@ -8401,7 +8400,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "test-parachain-halt"
|
name = "test-parachain-halt"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"substrate-wasm-builder-runner 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
"substrate-wasm-builder-runner 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
]
|
]
|
||||||
@@ -9340,7 +9339,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "westend-runtime"
|
name = "westend-runtime"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitvec",
|
"bitvec",
|
||||||
"frame-benchmarking",
|
"frame-benchmarking",
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ path = "src/main.rs"
|
|||||||
|
|
||||||
[package]
|
[package]
|
||||||
name = "polkadot"
|
name = "polkadot"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
authors = ["Parity Technologies <admin@parity.io>"]
|
authors = ["Parity Technologies <admin@parity.io>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -61,9 +61,9 @@ cargo build --release
|
|||||||
|
|
||||||
This repo supports runtimes for Polkadot, Kusama, and Westend.
|
This repo supports runtimes for Polkadot, Kusama, and Westend.
|
||||||
|
|
||||||
### Connect to Polkadot Chain Candidate 1 (CC1)
|
### Connect to Polkadot Mainnet
|
||||||
|
|
||||||
Connect to the global Polkadot CC1 network by running:
|
Connect to the global Polkadot Mainnet network by running:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
./target/release/polkadot --chain=polkadot
|
./target/release/polkadot --chain=polkadot
|
||||||
@@ -71,7 +71,7 @@ Connect to the global Polkadot CC1 network by running:
|
|||||||
|
|
||||||
You can see your node on [telemetry] (set a custom name with `--name "my custom name"`).
|
You can see your node on [telemetry] (set a custom name with `--name "my custom name"`).
|
||||||
|
|
||||||
[telemetry]: https://telemetry.polkadot.io/#list/Polkadot%20CC1
|
[telemetry]: https://telemetry.polkadot.io/#list/Polkadot
|
||||||
|
|
||||||
### Connect to the "Kusama" Canary Network
|
### Connect to the "Kusama" Canary Network
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "polkadot-availability-store"
|
name = "polkadot-availability-store"
|
||||||
description = "Persistent database for parachain data"
|
description = "Persistent database for parachain data"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
authors = ["Parity Technologies <admin@parity.io>"]
|
authors = ["Parity Technologies <admin@parity.io>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "polkadot-cli"
|
name = "polkadot-cli"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
authors = ["Parity Technologies <admin@parity.io>"]
|
authors = ["Parity Technologies <admin@parity.io>"]
|
||||||
description = "Polkadot Relay-chain Client Node"
|
description = "Polkadot Relay-chain Client Node"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "polkadot-collator"
|
name = "polkadot-collator"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
authors = ["Parity Technologies <admin@parity.io>"]
|
authors = ["Parity Technologies <admin@parity.io>"]
|
||||||
description = "Collator node implementation"
|
description = "Collator node implementation"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "polkadot-erasure-coding"
|
name = "polkadot-erasure-coding"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
authors = ["Parity Technologies <admin@parity.io>"]
|
authors = ["Parity Technologies <admin@parity.io>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "polkadot-network"
|
name = "polkadot-network"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
authors = ["Parity Technologies <admin@parity.io>"]
|
authors = ["Parity Technologies <admin@parity.io>"]
|
||||||
description = "Polkadot-specific networking protocol"
|
description = "Polkadot-specific networking protocol"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "polkadot-network-test"
|
name = "polkadot-network-test"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
license = "GPL-3.0"
|
license = "GPL-3.0"
|
||||||
authors = ["Parity Technologies <admin@parity.io>"]
|
authors = ["Parity Technologies <admin@parity.io>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|||||||
@@ -194,9 +194,6 @@ fn polkadot_staging_testnet_config_genesis() -> polkadot::GenesisConfig {
|
|||||||
vesting: Some(polkadot::VestingConfig {
|
vesting: Some(polkadot::VestingConfig {
|
||||||
vesting: vec![],
|
vesting: vec![],
|
||||||
}),
|
}),
|
||||||
sudo: Some(polkadot::SudoConfig {
|
|
||||||
key: endowed_accounts[0].clone(),
|
|
||||||
}),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -599,7 +596,7 @@ fn testnet_accounts() -> Vec<AccountId> {
|
|||||||
/// Helper function to create polkadot GenesisConfig for testing
|
/// Helper function to create polkadot GenesisConfig for testing
|
||||||
pub fn polkadot_testnet_genesis(
|
pub fn polkadot_testnet_genesis(
|
||||||
initial_authorities: Vec<(AccountId, AccountId, BabeId, GrandpaId, ImOnlineId, ValidatorId, AuthorityDiscoveryId)>,
|
initial_authorities: Vec<(AccountId, AccountId, BabeId, GrandpaId, ImOnlineId, ValidatorId, AuthorityDiscoveryId)>,
|
||||||
root_key: AccountId,
|
_root_key: AccountId,
|
||||||
endowed_accounts: Option<Vec<AccountId>>,
|
endowed_accounts: Option<Vec<AccountId>>,
|
||||||
) -> polkadot::GenesisConfig {
|
) -> polkadot::GenesisConfig {
|
||||||
let endowed_accounts: Vec<AccountId> = endowed_accounts.unwrap_or_else(testnet_accounts);
|
let endowed_accounts: Vec<AccountId> = endowed_accounts.unwrap_or_else(testnet_accounts);
|
||||||
@@ -667,9 +664,6 @@ pub fn polkadot_testnet_genesis(
|
|||||||
vesting: Some(polkadot::VestingConfig {
|
vesting: Some(polkadot::VestingConfig {
|
||||||
vesting: vec![],
|
vesting: vec![],
|
||||||
}),
|
}),
|
||||||
sudo: Some(polkadot::SudoConfig {
|
|
||||||
key: root_key,
|
|
||||||
}),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "polkadot-parachain"
|
name = "polkadot-parachain"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
authors = ["Parity Technologies <admin@parity.io>"]
|
authors = ["Parity Technologies <admin@parity.io>"]
|
||||||
description = "Types and utilities for creating and working with parachains"
|
description = "Types and utilities for creating and working with parachains"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "test-parachain-adder"
|
name = "test-parachain-adder"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
authors = ["Parity Technologies <admin@parity.io>"]
|
authors = ["Parity Technologies <admin@parity.io>"]
|
||||||
description = "Test parachain which adds to a number as its state transition"
|
description = "Test parachain which adds to a number as its state transition"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "test-parachain-halt"
|
name = "test-parachain-halt"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
authors = ["Parity Technologies <admin@parity.io>"]
|
authors = ["Parity Technologies <admin@parity.io>"]
|
||||||
description = "Test parachain which executes forever"
|
description = "Test parachain which executes forever"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "polkadot-primitives"
|
name = "polkadot-primitives"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
authors = ["Parity Technologies <admin@parity.io>"]
|
authors = ["Parity Technologies <admin@parity.io>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "polkadot-rpc"
|
name = "polkadot-rpc"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
authors = ["Parity Technologies <admin@parity.io>"]
|
authors = ["Parity Technologies <admin@parity.io>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "polkadot-runtime-common"
|
name = "polkadot-runtime-common"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
authors = ["Parity Technologies <admin@parity.io>"]
|
authors = ["Parity Technologies <admin@parity.io>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "kusama-runtime"
|
name = "kusama-runtime"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
authors = ["Parity Technologies <admin@parity.io>"]
|
authors = ["Parity Technologies <admin@parity.io>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
|
|||||||
spec_name: create_runtime_str!("kusama"),
|
spec_name: create_runtime_str!("kusama"),
|
||||||
impl_name: create_runtime_str!("parity-kusama"),
|
impl_name: create_runtime_str!("parity-kusama"),
|
||||||
authoring_version: 2,
|
authoring_version: 2,
|
||||||
spec_version: 2016,
|
spec_version: 2017,
|
||||||
impl_version: 0,
|
impl_version: 0,
|
||||||
#[cfg(not(feature = "disable-runtime-api"))]
|
#[cfg(not(feature = "disable-runtime-api"))]
|
||||||
apis: RUNTIME_API_VERSIONS,
|
apis: RUNTIME_API_VERSIONS,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "polkadot-runtime"
|
name = "polkadot-runtime"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
authors = ["Parity Technologies <admin@parity.io>"]
|
authors = ["Parity Technologies <admin@parity.io>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
@@ -60,7 +60,6 @@ system = { package = "frame-system", git = "https://github.com/paritytech/substr
|
|||||||
system_rpc_runtime_api = { package = "frame-system-rpc-runtime-api", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
system_rpc_runtime_api = { package = "frame-system-rpc-runtime-api", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
||||||
timestamp = { package = "pallet-timestamp", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
timestamp = { package = "pallet-timestamp", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
||||||
treasury = { package = "pallet-treasury", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
treasury = { package = "pallet-treasury", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
||||||
sudo = { package = "pallet-sudo", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
||||||
vesting = { package = "pallet-vesting", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
vesting = { package = "pallet-vesting", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
||||||
utility = { package = "pallet-utility", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
utility = { package = "pallet-utility", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
||||||
|
|
||||||
@@ -140,7 +139,6 @@ std = [
|
|||||||
"sp-session/std",
|
"sp-session/std",
|
||||||
"randomness-collective-flip/std",
|
"randomness-collective-flip/std",
|
||||||
"runtime-common/std",
|
"runtime-common/std",
|
||||||
"sudo/std",
|
|
||||||
"vesting/std",
|
"vesting/std",
|
||||||
"utility/std",
|
"utility/std",
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -93,13 +93,13 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
|
|||||||
spec_name: create_runtime_str!("polkadot"),
|
spec_name: create_runtime_str!("polkadot"),
|
||||||
impl_name: create_runtime_str!("parity-polkadot"),
|
impl_name: create_runtime_str!("parity-polkadot"),
|
||||||
authoring_version: 0,
|
authoring_version: 0,
|
||||||
spec_version: 16,
|
spec_version: 17,
|
||||||
impl_version: 0,
|
impl_version: 0,
|
||||||
#[cfg(not(feature = "disable-runtime-api"))]
|
#[cfg(not(feature = "disable-runtime-api"))]
|
||||||
apis: RUNTIME_API_VERSIONS,
|
apis: RUNTIME_API_VERSIONS,
|
||||||
#[cfg(feature = "disable-runtime-api")]
|
#[cfg(feature = "disable-runtime-api")]
|
||||||
apis: version::create_apis_vec![[]],
|
apis: version::create_apis_vec![[]],
|
||||||
transaction_version: 2,
|
transaction_version: 3,
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Native version.
|
/// Native version.
|
||||||
@@ -132,7 +132,7 @@ impl Filter<Call> for BaseFilter {
|
|||||||
Call::Authorship(_) | Call::Staking(_) | Call::Offences(_) |
|
Call::Authorship(_) | Call::Staking(_) | Call::Offences(_) |
|
||||||
Call::Session(_) | Call::FinalityTracker(_) | Call::Grandpa(_) | Call::ImOnline(_) |
|
Call::Session(_) | Call::FinalityTracker(_) | Call::Grandpa(_) | Call::ImOnline(_) |
|
||||||
Call::AuthorityDiscovery(_) |
|
Call::AuthorityDiscovery(_) |
|
||||||
Call::Utility(_) | Call::Claims(_) | Call::Vesting(_) | Call::Sudo(_) |
|
Call::Utility(_) | Call::Claims(_) | Call::Vesting(_) |
|
||||||
Call::Identity(_) | Call::Proxy(_) | Call::Multisig(_) | Call::Poll(_) |
|
Call::Identity(_) | Call::Proxy(_) | Call::Multisig(_) | Call::Poll(_) |
|
||||||
Call::Purchase(_) =>
|
Call::Purchase(_) =>
|
||||||
true,
|
true,
|
||||||
@@ -815,11 +815,6 @@ impl multisig::Trait for Runtime {
|
|||||||
type WeightInfo = ();
|
type WeightInfo = ();
|
||||||
}
|
}
|
||||||
|
|
||||||
impl sudo::Trait for Runtime {
|
|
||||||
type Event = Event;
|
|
||||||
type Call = Call;
|
|
||||||
}
|
|
||||||
|
|
||||||
parameter_types! {
|
parameter_types! {
|
||||||
// One storage item; key size 32, value size 8; .
|
// One storage item; key size 32, value size 8; .
|
||||||
pub const ProxyDepositBase: Balance = deposit(1, 8);
|
pub const ProxyDepositBase: Balance = deposit(1, 8);
|
||||||
@@ -831,6 +826,20 @@ parameter_types! {
|
|||||||
/// The type used to represent the kinds of proxying allowed.
|
/// The type used to represent the kinds of proxying allowed.
|
||||||
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Encode, Decode, RuntimeDebug)]
|
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Encode, Decode, RuntimeDebug)]
|
||||||
pub enum ProxyType {
|
pub enum ProxyType {
|
||||||
|
Any = 0,
|
||||||
|
NonTransfer = 1,
|
||||||
|
Governance = 2,
|
||||||
|
Staking = 3,
|
||||||
|
// Skip 4 as it is now removed (was SudoBalances)
|
||||||
|
IdentityJudgement = 5,
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
mod proxt_type_tests {
|
||||||
|
use super::*;
|
||||||
|
|
||||||
|
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Encode, Decode, RuntimeDebug)]
|
||||||
|
pub enum OldProxyType {
|
||||||
Any,
|
Any,
|
||||||
NonTransfer,
|
NonTransfer,
|
||||||
Governance,
|
Governance,
|
||||||
@@ -838,6 +847,22 @@ pub enum ProxyType {
|
|||||||
SudoBalances,
|
SudoBalances,
|
||||||
IdentityJudgement,
|
IdentityJudgement,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn proxy_type_decodes_correctly() {
|
||||||
|
for (i, j) in vec![
|
||||||
|
(OldProxyType::Any, ProxyType::Any),
|
||||||
|
(OldProxyType::NonTransfer, ProxyType::NonTransfer),
|
||||||
|
(OldProxyType::Governance, ProxyType::Governance),
|
||||||
|
(OldProxyType::Staking, ProxyType::Staking),
|
||||||
|
(OldProxyType::IdentityJudgement, ProxyType::IdentityJudgement),
|
||||||
|
].into_iter() {
|
||||||
|
assert_eq!(i.encode(), j.encode());
|
||||||
|
}
|
||||||
|
assert!(ProxyType::decode(&mut &OldProxyType::SudoBalances.encode()[..]).is_err());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl Default for ProxyType { fn default() -> Self { Self::Any } }
|
impl Default for ProxyType { fn default() -> Self { Self::Any } }
|
||||||
impl InstanceFilter<Call> for ProxyType {
|
impl InstanceFilter<Call> for ProxyType {
|
||||||
fn filter(&self, c: &Call) -> bool {
|
fn filter(&self, c: &Call) -> bool {
|
||||||
@@ -876,7 +901,6 @@ impl InstanceFilter<Call> for ProxyType {
|
|||||||
Call::Vesting(vesting::Call::vest_other(..)) |
|
Call::Vesting(vesting::Call::vest_other(..)) |
|
||||||
// Specifically omitting Vesting `vested_transfer`, and `force_vested_transfer`
|
// Specifically omitting Vesting `vested_transfer`, and `force_vested_transfer`
|
||||||
Call::Utility(..) |
|
Call::Utility(..) |
|
||||||
// Specifically omitting Sudo pallet
|
|
||||||
Call::Identity(..) |
|
Call::Identity(..) |
|
||||||
Call::Proxy(..) |
|
Call::Proxy(..) |
|
||||||
Call::Multisig(..)
|
Call::Multisig(..)
|
||||||
@@ -889,11 +913,6 @@ impl InstanceFilter<Call> for ProxyType {
|
|||||||
ProxyType::Staking => matches!(c,
|
ProxyType::Staking => matches!(c,
|
||||||
Call::Staking(..) | Call::Utility(utility::Call::batch(..)) | Call::Utility(..)
|
Call::Staking(..) | Call::Utility(utility::Call::batch(..)) | Call::Utility(..)
|
||||||
),
|
),
|
||||||
ProxyType::SudoBalances => match c {
|
|
||||||
Call::Sudo(sudo::Call::sudo(ref x)) => matches!(x.as_ref(), &Call::Balances(..)),
|
|
||||||
Call::Utility(..) => true,
|
|
||||||
_ => false,
|
|
||||||
},
|
|
||||||
ProxyType::IdentityJudgement => matches!(c,
|
ProxyType::IdentityJudgement => matches!(c,
|
||||||
Call::Identity(identity::Call::provide_judgement(..))
|
Call::Identity(identity::Call::provide_judgement(..))
|
||||||
| Call::Utility(utility::Call::batch(..))
|
| Call::Utility(utility::Call::batch(..))
|
||||||
@@ -1037,8 +1056,8 @@ construct_runtime! {
|
|||||||
// Cunning utilities. Usable initially.
|
// Cunning utilities. Usable initially.
|
||||||
Utility: utility::{Module, Call, Event},
|
Utility: utility::{Module, Call, Event},
|
||||||
|
|
||||||
// Sudo. Last module. Usable initially, but removed once governance enabled.
|
// DOT Purchase module. Late addition; this is in place of Sudo.
|
||||||
Sudo: sudo::{Module, Call, Storage, Config<T>, Event<T>},
|
Purchase: purchase::{Module, Call, Storage, Event<T>},
|
||||||
|
|
||||||
// Identity. Late addition.
|
// Identity. Late addition.
|
||||||
Identity: identity::{Module, Call, Storage, Event<T>},
|
Identity: identity::{Module, Call, Storage, Event<T>},
|
||||||
@@ -1051,9 +1070,6 @@ construct_runtime! {
|
|||||||
|
|
||||||
// Poll module.
|
// Poll module.
|
||||||
Poll: poll::{Module, Call, Storage, Event<T>},
|
Poll: poll::{Module, Call, Storage, Event<T>},
|
||||||
|
|
||||||
// DOT Purchase module. Late addition.
|
|
||||||
Purchase: purchase::{Module, Call, Storage, Event<T>},
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "polkadot-test-runtime"
|
name = "polkadot-test-runtime"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
authors = ["Parity Technologies <admin@parity.io>"]
|
authors = ["Parity Technologies <admin@parity.io>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "westend-runtime"
|
name = "westend-runtime"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
authors = ["Parity Technologies <admin@parity.io>"]
|
authors = ["Parity Technologies <admin@parity.io>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
|
|||||||
spec_name: create_runtime_str!("westend"),
|
spec_name: create_runtime_str!("westend"),
|
||||||
impl_name: create_runtime_str!("parity-westend"),
|
impl_name: create_runtime_str!("parity-westend"),
|
||||||
authoring_version: 2,
|
authoring_version: 2,
|
||||||
spec_version: 36,
|
spec_version: 37,
|
||||||
impl_version: 0,
|
impl_version: 0,
|
||||||
#[cfg(not(feature = "disable-runtime-api"))]
|
#[cfg(not(feature = "disable-runtime-api"))]
|
||||||
apis: RUNTIME_API_VERSIONS,
|
apis: RUNTIME_API_VERSIONS,
|
||||||
|
|||||||
@@ -228,7 +228,7 @@ echo "$release_text"
|
|||||||
|
|
||||||
echo "[+] Pushing release to github"
|
echo "[+] Pushing release to github"
|
||||||
# Create release on github
|
# Create release on github
|
||||||
release_name="Polkadot CC1 $version"
|
release_name="Polkadot $version"
|
||||||
data=$(jq -Rs --arg version "$version" \
|
data=$(jq -Rs --arg version "$version" \
|
||||||
--arg release_name "$release_name" \
|
--arg release_name "$release_name" \
|
||||||
--arg release_text "$release_text" \
|
--arg release_text "$release_text" \
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "polkadot-service"
|
name = "polkadot-service"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
authors = ["Parity Technologies <admin@parity.io>"]
|
authors = ["Parity Technologies <admin@parity.io>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "Polkadot CC1",
|
"name": "Polkadot",
|
||||||
"id": "polkadot",
|
"id": "polkadot",
|
||||||
"chainType": "Live",
|
"chainType": "Live",
|
||||||
"bootNodes": [
|
"bootNodes": [
|
||||||
|
|||||||
@@ -194,9 +194,6 @@ fn polkadot_staging_testnet_config_genesis() -> polkadot::GenesisConfig {
|
|||||||
vesting: Some(polkadot::VestingConfig {
|
vesting: Some(polkadot::VestingConfig {
|
||||||
vesting: vec![],
|
vesting: vec![],
|
||||||
}),
|
}),
|
||||||
sudo: Some(polkadot::SudoConfig {
|
|
||||||
key: endowed_accounts[0].clone(),
|
|
||||||
}),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -599,7 +596,7 @@ fn testnet_accounts() -> Vec<AccountId> {
|
|||||||
/// Helper function to create polkadot GenesisConfig for testing
|
/// Helper function to create polkadot GenesisConfig for testing
|
||||||
pub fn polkadot_testnet_genesis(
|
pub fn polkadot_testnet_genesis(
|
||||||
initial_authorities: Vec<(AccountId, AccountId, BabeId, GrandpaId, ImOnlineId, ValidatorId, AuthorityDiscoveryId)>,
|
initial_authorities: Vec<(AccountId, AccountId, BabeId, GrandpaId, ImOnlineId, ValidatorId, AuthorityDiscoveryId)>,
|
||||||
root_key: AccountId,
|
_root_key: AccountId,
|
||||||
endowed_accounts: Option<Vec<AccountId>>,
|
endowed_accounts: Option<Vec<AccountId>>,
|
||||||
) -> polkadot::GenesisConfig {
|
) -> polkadot::GenesisConfig {
|
||||||
let endowed_accounts: Vec<AccountId> = endowed_accounts.unwrap_or_else(testnet_accounts);
|
let endowed_accounts: Vec<AccountId> = endowed_accounts.unwrap_or_else(testnet_accounts);
|
||||||
@@ -667,9 +664,6 @@ pub fn polkadot_testnet_genesis(
|
|||||||
vesting: Some(polkadot::VestingConfig {
|
vesting: Some(polkadot::VestingConfig {
|
||||||
vesting: vec![],
|
vesting: vec![],
|
||||||
}),
|
}),
|
||||||
sudo: Some(polkadot::SudoConfig {
|
|
||||||
key: root_key,
|
|
||||||
}),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "polkadot-statement-table"
|
name = "polkadot-statement-table"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
authors = ["Parity Technologies <admin@parity.io>"]
|
authors = ["Parity Technologies <admin@parity.io>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "polkadot-validation"
|
name = "polkadot-validation"
|
||||||
version = "0.8.16"
|
version = "0.8.17"
|
||||||
authors = ["Parity Technologies <admin@parity.io>"]
|
authors = ["Parity Technologies <admin@parity.io>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user