mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 01:11:10 +00:00
Remove serde requirement from FRAME macros (#8628)
* Remove `serde` requirement from FRAME macros Currently there is some implicit requirement on `serde` being present in the `Cargo.toml` of a pallet when `GenesisConfig` is used. This pr removes this requirement by using the serde attribute `serde(crate = "..")`. * build a unique reexport of serde in impl_opaque_keys, by abusing paste doc concatenation * Optimize Co-authored-by: thiolliere <gui.thiolliere@gmail.com>
This commit is contained in:
Generated
-36
@@ -1777,7 +1777,6 @@ dependencies = [
|
|||||||
"pallet-indices",
|
"pallet-indices",
|
||||||
"pallet-transaction-payment",
|
"pallet-transaction-payment",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-inherents",
|
"sp-inherents",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
@@ -4323,7 +4322,6 @@ dependencies = [
|
|||||||
"pallet-utility",
|
"pallet-utility",
|
||||||
"pallet-vesting",
|
"pallet-vesting",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-api",
|
"sp-api",
|
||||||
"sp-authority-discovery",
|
"sp-authority-discovery",
|
||||||
"sp-block-builder",
|
"sp-block-builder",
|
||||||
@@ -4402,7 +4400,6 @@ dependencies = [
|
|||||||
"pallet-transaction-payment",
|
"pallet-transaction-payment",
|
||||||
"pallet-transaction-payment-rpc-runtime-api",
|
"pallet-transaction-payment-rpc-runtime-api",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-api",
|
"sp-api",
|
||||||
"sp-block-builder",
|
"sp-block-builder",
|
||||||
"sp-consensus-aura",
|
"sp-consensus-aura",
|
||||||
@@ -4616,7 +4613,6 @@ dependencies = [
|
|||||||
"frame-system",
|
"frame-system",
|
||||||
"pallet-balances",
|
"pallet-balances",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
"sp-runtime",
|
"sp-runtime",
|
||||||
@@ -4631,7 +4627,6 @@ dependencies = [
|
|||||||
"frame-system",
|
"frame-system",
|
||||||
"pallet-balances",
|
"pallet-balances",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
"sp-runtime",
|
"sp-runtime",
|
||||||
@@ -4649,7 +4644,6 @@ dependencies = [
|
|||||||
"pallet-timestamp",
|
"pallet-timestamp",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"parking_lot 0.11.1",
|
"parking_lot 0.11.1",
|
||||||
"serde",
|
|
||||||
"sp-application-crypto",
|
"sp-application-crypto",
|
||||||
"sp-consensus-aura",
|
"sp-consensus-aura",
|
||||||
"sp-core",
|
"sp-core",
|
||||||
@@ -4666,7 +4660,6 @@ dependencies = [
|
|||||||
"frame-system",
|
"frame-system",
|
||||||
"pallet-session",
|
"pallet-session",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-application-crypto",
|
"sp-application-crypto",
|
||||||
"sp-authority-discovery",
|
"sp-authority-discovery",
|
||||||
"sp-core",
|
"sp-core",
|
||||||
@@ -4710,7 +4703,6 @@ dependencies = [
|
|||||||
"pallet-staking-reward-curve",
|
"pallet-staking-reward-curve",
|
||||||
"pallet-timestamp",
|
"pallet-timestamp",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-application-crypto",
|
"sp-application-crypto",
|
||||||
"sp-consensus-babe",
|
"sp-consensus-babe",
|
||||||
"sp-consensus-vrf",
|
"sp-consensus-vrf",
|
||||||
@@ -4732,7 +4724,6 @@ dependencies = [
|
|||||||
"log",
|
"log",
|
||||||
"pallet-transaction-payment",
|
"pallet-transaction-payment",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
"sp-runtime",
|
"sp-runtime",
|
||||||
@@ -4749,7 +4740,6 @@ dependencies = [
|
|||||||
"pallet-balances",
|
"pallet-balances",
|
||||||
"pallet-treasury",
|
"pallet-treasury",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
"sp-runtime",
|
"sp-runtime",
|
||||||
@@ -4768,7 +4758,6 @@ dependencies = [
|
|||||||
"log",
|
"log",
|
||||||
"pallet-balances",
|
"pallet-balances",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
"sp-runtime",
|
"sp-runtime",
|
||||||
@@ -4893,7 +4882,6 @@ dependencies = [
|
|||||||
"parking_lot 0.11.1",
|
"parking_lot 0.11.1",
|
||||||
"paste 1.0.4",
|
"paste 1.0.4",
|
||||||
"rand 0.7.3",
|
"rand 0.7.3",
|
||||||
"serde",
|
|
||||||
"sp-arithmetic",
|
"sp-arithmetic",
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
@@ -4914,7 +4902,6 @@ dependencies = [
|
|||||||
"hex-literal",
|
"hex-literal",
|
||||||
"pallet-balances",
|
"pallet-balances",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
"sp-runtime",
|
"sp-runtime",
|
||||||
@@ -4932,7 +4919,6 @@ dependencies = [
|
|||||||
"log",
|
"log",
|
||||||
"pallet-balances",
|
"pallet-balances",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
"sp-npos-elections",
|
"sp-npos-elections",
|
||||||
@@ -4951,7 +4937,6 @@ dependencies = [
|
|||||||
"log",
|
"log",
|
||||||
"pallet-balances",
|
"pallet-balances",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
"sp-runtime",
|
"sp-runtime",
|
||||||
@@ -4967,7 +4952,6 @@ dependencies = [
|
|||||||
"lite-json",
|
"lite-json",
|
||||||
"log",
|
"log",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
"sp-keystore",
|
"sp-keystore",
|
||||||
@@ -4999,7 +4983,6 @@ dependencies = [
|
|||||||
"frame-system",
|
"frame-system",
|
||||||
"pallet-balances",
|
"pallet-balances",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-arithmetic",
|
"sp-arithmetic",
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
@@ -5025,7 +5008,6 @@ dependencies = [
|
|||||||
"pallet-staking-reward-curve",
|
"pallet-staking-reward-curve",
|
||||||
"pallet-timestamp",
|
"pallet-timestamp",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-application-crypto",
|
"sp-application-crypto",
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-finality-grandpa",
|
"sp-finality-grandpa",
|
||||||
@@ -5047,7 +5029,6 @@ dependencies = [
|
|||||||
"frame-system",
|
"frame-system",
|
||||||
"pallet-balances",
|
"pallet-balances",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
"sp-runtime",
|
"sp-runtime",
|
||||||
@@ -5065,7 +5046,6 @@ dependencies = [
|
|||||||
"pallet-authorship",
|
"pallet-authorship",
|
||||||
"pallet-session",
|
"pallet-session",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-application-crypto",
|
"sp-application-crypto",
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
@@ -5083,7 +5063,6 @@ dependencies = [
|
|||||||
"frame-system",
|
"frame-system",
|
||||||
"pallet-balances",
|
"pallet-balances",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
"sp-keyring",
|
"sp-keyring",
|
||||||
@@ -5115,7 +5094,6 @@ dependencies = [
|
|||||||
"frame-support",
|
"frame-support",
|
||||||
"frame-system",
|
"frame-system",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
"sp-runtime",
|
"sp-runtime",
|
||||||
@@ -5134,7 +5112,6 @@ dependencies = [
|
|||||||
"hex-literal",
|
"hex-literal",
|
||||||
"pallet-mmr-primitives",
|
"pallet-mmr-primitives",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
"sp-runtime",
|
"sp-runtime",
|
||||||
@@ -5184,7 +5161,6 @@ dependencies = [
|
|||||||
"frame-system",
|
"frame-system",
|
||||||
"pallet-balances",
|
"pallet-balances",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
"sp-runtime",
|
"sp-runtime",
|
||||||
@@ -5199,7 +5175,6 @@ dependencies = [
|
|||||||
"frame-system",
|
"frame-system",
|
||||||
"pallet-balances",
|
"pallet-balances",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
"sp-runtime",
|
"sp-runtime",
|
||||||
@@ -5214,7 +5189,6 @@ dependencies = [
|
|||||||
"frame-system",
|
"frame-system",
|
||||||
"log",
|
"log",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
"sp-runtime",
|
"sp-runtime",
|
||||||
@@ -5274,7 +5248,6 @@ dependencies = [
|
|||||||
"pallet-balances",
|
"pallet-balances",
|
||||||
"pallet-utility",
|
"pallet-utility",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
"sp-runtime",
|
"sp-runtime",
|
||||||
@@ -5305,7 +5278,6 @@ dependencies = [
|
|||||||
"frame-system",
|
"frame-system",
|
||||||
"pallet-balances",
|
"pallet-balances",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
"sp-runtime",
|
"sp-runtime",
|
||||||
@@ -5321,7 +5293,6 @@ dependencies = [
|
|||||||
"frame-system",
|
"frame-system",
|
||||||
"log",
|
"log",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
"sp-runtime",
|
"sp-runtime",
|
||||||
@@ -5337,7 +5308,6 @@ dependencies = [
|
|||||||
"frame-system",
|
"frame-system",
|
||||||
"pallet-balances",
|
"pallet-balances",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
"sp-runtime",
|
"sp-runtime",
|
||||||
@@ -5354,7 +5324,6 @@ dependencies = [
|
|||||||
"lazy_static",
|
"lazy_static",
|
||||||
"pallet-timestamp",
|
"pallet-timestamp",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-application-crypto",
|
"sp-application-crypto",
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
@@ -5398,7 +5367,6 @@ dependencies = [
|
|||||||
"pallet-balances",
|
"pallet-balances",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"rand_chacha 0.2.2",
|
"rand_chacha 0.2.2",
|
||||||
"serde",
|
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
"sp-runtime",
|
"sp-runtime",
|
||||||
@@ -5463,7 +5431,6 @@ dependencies = [
|
|||||||
"frame-support",
|
"frame-support",
|
||||||
"frame-system",
|
"frame-system",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
"sp-runtime",
|
"sp-runtime",
|
||||||
@@ -5494,7 +5461,6 @@ dependencies = [
|
|||||||
"impl-trait-for-tuples",
|
"impl-trait-for-tuples",
|
||||||
"log",
|
"log",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-inherents",
|
"sp-inherents",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
@@ -5592,7 +5558,6 @@ dependencies = [
|
|||||||
"frame-system",
|
"frame-system",
|
||||||
"pallet-balances",
|
"pallet-balances",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
"sp-runtime",
|
"sp-runtime",
|
||||||
@@ -5610,7 +5575,6 @@ dependencies = [
|
|||||||
"hex-literal",
|
"hex-literal",
|
||||||
"pallet-balances",
|
"pallet-balances",
|
||||||
"parity-scale-codec",
|
"parity-scale-codec",
|
||||||
"serde",
|
|
||||||
"sp-core",
|
"sp-core",
|
||||||
"sp-io",
|
"sp-io",
|
||||||
"sp-runtime",
|
"sp-runtime",
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ frame-system = { version = "3.0.0", default-features = false, path = "../../../f
|
|||||||
pallet-timestamp = { version = "3.0.0", default-features = false, path = "../../../frame/timestamp" }
|
pallet-timestamp = { version = "3.0.0", default-features = false, path = "../../../frame/timestamp" }
|
||||||
pallet-transaction-payment = { version = "3.0.0", default-features = false, path = "../../../frame/transaction-payment" }
|
pallet-transaction-payment = { version = "3.0.0", default-features = false, path = "../../../frame/transaction-payment" }
|
||||||
frame-executive = { version = "3.0.0", default-features = false, path = "../../../frame/executive" }
|
frame-executive = { version = "3.0.0", default-features = false, path = "../../../frame/executive" }
|
||||||
serde = { version = "1.0.101", optional = true, features = ["derive"] }
|
|
||||||
sp-api = { version = "3.0.0", default-features = false, path = "../../../primitives/api" }
|
sp-api = { version = "3.0.0", default-features = false, path = "../../../primitives/api" }
|
||||||
sp-block-builder = { path = "../../../primitives/block-builder", default-features = false, version = "3.0.0"}
|
sp-block-builder = { path = "../../../primitives/block-builder", default-features = false, version = "3.0.0"}
|
||||||
sp-consensus-aura = { version = "0.9.0", default-features = false, path = "../../../primitives/consensus/aura" }
|
sp-consensus-aura = { version = "0.9.0", default-features = false, path = "../../../primitives/consensus/aura" }
|
||||||
@@ -67,7 +66,6 @@ std = [
|
|||||||
"pallet-timestamp/std",
|
"pallet-timestamp/std",
|
||||||
"pallet-transaction-payment-rpc-runtime-api/std",
|
"pallet-transaction-payment-rpc-runtime-api/std",
|
||||||
"pallet-transaction-payment/std",
|
"pallet-transaction-payment/std",
|
||||||
"serde",
|
|
||||||
"sp-api/std",
|
"sp-api/std",
|
||||||
"sp-block-builder/std",
|
"sp-block-builder/std",
|
||||||
"sp-consensus-aura/std",
|
"sp-consensus-aura/std",
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ targets = ["x86_64-unknown-linux-gnu"]
|
|||||||
|
|
||||||
# third-party dependencies
|
# third-party dependencies
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
||||||
serde = { version = "1.0.102", optional = true }
|
|
||||||
static_assertions = "1.1.0"
|
static_assertions = "1.1.0"
|
||||||
hex-literal = { version = "0.3.1", optional = true }
|
hex-literal = { version = "0.3.1", optional = true }
|
||||||
log = { version = "0.4.14", default-features = false }
|
log = { version = "0.4.14", default-features = false }
|
||||||
@@ -133,7 +132,6 @@ std = [
|
|||||||
"sp-core/std",
|
"sp-core/std",
|
||||||
"pallet-randomness-collective-flip/std",
|
"pallet-randomness-collective-flip/std",
|
||||||
"sp-std/std",
|
"sp-std/std",
|
||||||
"serde",
|
|
||||||
"pallet-session/std",
|
"pallet-session/std",
|
||||||
"sp-api/std",
|
"sp-api/std",
|
||||||
"sp-runtime/std",
|
"sp-runtime/std",
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ readme = "README.md"
|
|||||||
targets = ["x86_64-unknown-linux-gnu"]
|
targets = ["x86_64-unknown-linux-gnu"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
|
||||||
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
||||||
# Needed for various traits. In our case, `OnFinalize`.
|
# Needed for various traits. In our case, `OnFinalize`.
|
||||||
@@ -33,7 +32,6 @@ pallet-balances = { version = "3.0.0", path = "../balances" }
|
|||||||
[features]
|
[features]
|
||||||
default = ["std"]
|
default = ["std"]
|
||||||
std = [
|
std = [
|
||||||
"serde",
|
|
||||||
"codec/std",
|
"codec/std",
|
||||||
"sp-std/std",
|
"sp-std/std",
|
||||||
"sp-runtime/std",
|
"sp-runtime/std",
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ readme = "README.md"
|
|||||||
targets = ["x86_64-unknown-linux-gnu"]
|
targets = ["x86_64-unknown-linux-gnu"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
|
||||||
frame-support = { version = "3.0.0", default-features = false, path = "../support" }
|
frame-support = { version = "3.0.0", default-features = false, path = "../support" }
|
||||||
frame-system = { version = "3.0.0", default-features = false, path = "../system" }
|
frame-system = { version = "3.0.0", default-features = false, path = "../system" }
|
||||||
@@ -28,7 +27,6 @@ pallet-balances = { version = "3.0.0", path = "../balances" }
|
|||||||
[features]
|
[features]
|
||||||
default = ["std"]
|
default = ["std"]
|
||||||
std = [
|
std = [
|
||||||
"serde",
|
|
||||||
"codec/std",
|
"codec/std",
|
||||||
"frame-support/std",
|
"frame-support/std",
|
||||||
"frame-system/std",
|
"frame-system/std",
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ targets = ["x86_64-unknown-linux-gnu"]
|
|||||||
sp-application-crypto = { version = "3.0.0", default-features = false, path = "../../primitives/application-crypto" }
|
sp-application-crypto = { version = "3.0.0", default-features = false, path = "../../primitives/application-crypto" }
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
||||||
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
pallet-session = { version = "3.0.0", default-features = false, path = "../session" }
|
pallet-session = { version = "3.0.0", default-features = false, path = "../session" }
|
||||||
sp-runtime = { version = "3.0.0", default-features = false, path = "../../primitives/runtime" }
|
sp-runtime = { version = "3.0.0", default-features = false, path = "../../primitives/runtime" }
|
||||||
frame-support = { version = "3.0.0", default-features = false, path = "../support" }
|
frame-support = { version = "3.0.0", default-features = false, path = "../support" }
|
||||||
@@ -36,7 +35,6 @@ std = [
|
|||||||
"sp-application-crypto/std",
|
"sp-application-crypto/std",
|
||||||
"codec/std",
|
"codec/std",
|
||||||
"sp-std/std",
|
"sp-std/std",
|
||||||
"serde",
|
|
||||||
"sp-runtime/std",
|
"sp-runtime/std",
|
||||||
"frame-support/std",
|
"frame-support/std",
|
||||||
"sp-consensus-aura/std",
|
"sp-consensus-aura/std",
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ sp-authority-discovery = { version = "3.0.0", default-features = false, path = "
|
|||||||
sp-application-crypto = { version = "3.0.0", default-features = false, path = "../../primitives/application-crypto" }
|
sp-application-crypto = { version = "3.0.0", default-features = false, path = "../../primitives/application-crypto" }
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
||||||
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
pallet-session = { version = "3.0.0", features = ["historical" ], path = "../session", default-features = false }
|
pallet-session = { version = "3.0.0", features = ["historical" ], path = "../session", default-features = false }
|
||||||
sp-runtime = { version = "3.0.0", default-features = false, path = "../../primitives/runtime" }
|
sp-runtime = { version = "3.0.0", default-features = false, path = "../../primitives/runtime" }
|
||||||
frame-support = { version = "3.0.0", default-features = false, path = "../support" }
|
frame-support = { version = "3.0.0", default-features = false, path = "../support" }
|
||||||
@@ -35,7 +34,6 @@ std = [
|
|||||||
"sp-authority-discovery/std",
|
"sp-authority-discovery/std",
|
||||||
"codec/std",
|
"codec/std",
|
||||||
"sp-std/std",
|
"sp-std/std",
|
||||||
"serde",
|
|
||||||
"pallet-session/std",
|
"pallet-session/std",
|
||||||
"sp-runtime/std",
|
"sp-runtime/std",
|
||||||
"frame-support/std",
|
"frame-support/std",
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ frame-system = { version = "3.0.0", default-features = false, path = "../system"
|
|||||||
pallet-authorship = { version = "3.0.0", default-features = false, path = "../authorship" }
|
pallet-authorship = { version = "3.0.0", default-features = false, path = "../authorship" }
|
||||||
pallet-session = { version = "3.0.0", default-features = false, path = "../session" }
|
pallet-session = { version = "3.0.0", default-features = false, path = "../session" }
|
||||||
pallet-timestamp = { version = "3.0.0", default-features = false, path = "../timestamp" }
|
pallet-timestamp = { version = "3.0.0", default-features = false, path = "../timestamp" }
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
sp-application-crypto = { version = "3.0.0", default-features = false, path = "../../primitives/application-crypto" }
|
sp-application-crypto = { version = "3.0.0", default-features = false, path = "../../primitives/application-crypto" }
|
||||||
sp-consensus-babe = { version = "0.9.0", default-features = false, path = "../../primitives/consensus/babe" }
|
sp-consensus-babe = { version = "0.9.0", default-features = false, path = "../../primitives/consensus/babe" }
|
||||||
sp-consensus-vrf = { version = "0.9.0", default-features = false, path = "../../primitives/consensus/vrf" }
|
sp-consensus-vrf = { version = "0.9.0", default-features = false, path = "../../primitives/consensus/vrf" }
|
||||||
@@ -49,7 +48,6 @@ std = [
|
|||||||
"pallet-authorship/std",
|
"pallet-authorship/std",
|
||||||
"pallet-session/std",
|
"pallet-session/std",
|
||||||
"pallet-timestamp/std",
|
"pallet-timestamp/std",
|
||||||
"serde",
|
|
||||||
"sp-application-crypto/std",
|
"sp-application-crypto/std",
|
||||||
"sp-consensus-babe/std",
|
"sp-consensus-babe/std",
|
||||||
"sp-consensus-vrf/std",
|
"sp-consensus-vrf/std",
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ readme = "README.md"
|
|||||||
targets = ["x86_64-unknown-linux-gnu"]
|
targets = ["x86_64-unknown-linux-gnu"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
||||||
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
||||||
sp-runtime = { version = "3.0.0", default-features = false, path = "../../primitives/runtime" }
|
sp-runtime = { version = "3.0.0", default-features = false, path = "../../primitives/runtime" }
|
||||||
@@ -30,7 +29,6 @@ pallet-transaction-payment = { version = "3.0.0", path = "../transaction-payment
|
|||||||
[features]
|
[features]
|
||||||
default = ["std"]
|
default = ["std"]
|
||||||
std = [
|
std = [
|
||||||
"serde",
|
|
||||||
"codec/std",
|
"codec/std",
|
||||||
"sp-std/std",
|
"sp-std/std",
|
||||||
"sp-runtime/std",
|
"sp-runtime/std",
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ readme = "README.md"
|
|||||||
targets = ["x86_64-unknown-linux-gnu"]
|
targets = ["x86_64-unknown-linux-gnu"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "1.0.101", optional = true, features = ["derive"] }
|
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
||||||
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
||||||
sp-runtime = { version = "3.0.0", default-features = false, path = "../../primitives/runtime" }
|
sp-runtime = { version = "3.0.0", default-features = false, path = "../../primitives/runtime" }
|
||||||
@@ -32,7 +31,6 @@ pallet-balances = { version = "3.0.0", path = "../balances" }
|
|||||||
[features]
|
[features]
|
||||||
default = ["std"]
|
default = ["std"]
|
||||||
std = [
|
std = [
|
||||||
"serde",
|
|
||||||
"codec/std",
|
"codec/std",
|
||||||
"sp-std/std",
|
"sp-std/std",
|
||||||
"sp-runtime/std",
|
"sp-runtime/std",
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ readme = "README.md"
|
|||||||
targets = ["x86_64-unknown-linux-gnu"]
|
targets = ["x86_64-unknown-linux-gnu"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
||||||
sp-core = { version = "3.0.0", default-features = false, path = "../../primitives/core" }
|
sp-core = { version = "3.0.0", default-features = false, path = "../../primitives/core" }
|
||||||
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
||||||
@@ -34,7 +33,6 @@ std = [
|
|||||||
"codec/std",
|
"codec/std",
|
||||||
"sp-core/std",
|
"sp-core/std",
|
||||||
"sp-std/std",
|
"sp-std/std",
|
||||||
"serde",
|
|
||||||
"sp-io/std",
|
"sp-io/std",
|
||||||
"frame-support/std",
|
"frame-support/std",
|
||||||
"sp-runtime/std",
|
"sp-runtime/std",
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ targets = ["x86_64-unknown-linux-gnu"]
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
static_assertions = "1.1.0"
|
static_assertions = "1.1.0"
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
||||||
log = { version = "0.4.14", default-features = false }
|
log = { version = "0.4.14", default-features = false }
|
||||||
|
|
||||||
@@ -48,7 +47,6 @@ frame-benchmarking = { version = "3.1.0", path = "../benchmarking" }
|
|||||||
[features]
|
[features]
|
||||||
default = ["std"]
|
default = ["std"]
|
||||||
std = [
|
std = [
|
||||||
"serde",
|
|
||||||
"codec/std",
|
"codec/std",
|
||||||
"log/std",
|
"log/std",
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ targets = ["x86_64-unknown-linux-gnu"]
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
sp-runtime = { version = "3.0.0", default-features = false, path = "../../primitives/runtime" }
|
sp-runtime = { version = "3.0.0", default-features = false, path = "../../primitives/runtime" }
|
||||||
sp-npos-elections = { version = "3.0.0", default-features = false, path = "../../primitives/npos-elections" }
|
sp-npos-elections = { version = "3.0.0", default-features = false, path = "../../primitives/npos-elections" }
|
||||||
frame-support = { version = "3.0.0", default-features = false, path = "../support" }
|
frame-support = { version = "3.0.0", default-features = false, path = "../support" }
|
||||||
@@ -33,7 +32,6 @@ substrate-test-utils = { version = "3.0.0", path = "../../test-utils" }
|
|||||||
[features]
|
[features]
|
||||||
default = ["std"]
|
default = ["std"]
|
||||||
std = [
|
std = [
|
||||||
"serde",
|
|
||||||
"codec/std",
|
"codec/std",
|
||||||
"frame-support/std",
|
"frame-support/std",
|
||||||
"sp-runtime/std",
|
"sp-runtime/std",
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ readme = "README.md"
|
|||||||
targets = ["x86_64-unknown-linux-gnu"]
|
targets = ["x86_64-unknown-linux-gnu"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
||||||
sp-core = { version = "3.0.0", default-features = false, path = "../../primitives/core" }
|
sp-core = { version = "3.0.0", default-features = false, path = "../../primitives/core" }
|
||||||
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
||||||
@@ -32,7 +31,6 @@ std = [
|
|||||||
"codec/std",
|
"codec/std",
|
||||||
"sp-core/std",
|
"sp-core/std",
|
||||||
"sp-std/std",
|
"sp-std/std",
|
||||||
"serde",
|
|
||||||
"sp-io/std",
|
"sp-io/std",
|
||||||
"frame-support/std",
|
"frame-support/std",
|
||||||
"sp-runtime/std",
|
"sp-runtime/std",
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ targets = ["x86_64-unknown-linux-gnu"]
|
|||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
|
||||||
frame-support = { version = "3.0.0", default-features = false, path = "../support" }
|
frame-support = { version = "3.0.0", default-features = false, path = "../support" }
|
||||||
frame-system = { version = "3.0.0", default-features = false, path = "../system" }
|
frame-system = { version = "3.0.0", default-features = false, path = "../system" }
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
sp-core = { version = "3.0.0", default-features = false, path = "../../primitives/core" }
|
sp-core = { version = "3.0.0", default-features = false, path = "../../primitives/core" }
|
||||||
sp-keystore = { version = "0.9.0", path = "../../primitives/keystore", optional = true }
|
sp-keystore = { version = "0.9.0", path = "../../primitives/keystore", optional = true }
|
||||||
sp-io = { version = "3.0.0", default-features = false, path = "../../primitives/io" }
|
sp-io = { version = "3.0.0", default-features = false, path = "../../primitives/io" }
|
||||||
@@ -31,7 +30,6 @@ std = [
|
|||||||
"codec/std",
|
"codec/std",
|
||||||
"frame-support/std",
|
"frame-support/std",
|
||||||
"frame-system/std",
|
"frame-system/std",
|
||||||
"serde",
|
|
||||||
"lite-json/std",
|
"lite-json/std",
|
||||||
"sp-core/std",
|
"sp-core/std",
|
||||||
"sp-io/std",
|
"sp-io/std",
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ readme = "README.md"
|
|||||||
targets = ["x86_64-unknown-linux-gnu"]
|
targets = ["x86_64-unknown-linux-gnu"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
|
||||||
frame-support = { version = "3.0.0", default-features = false, path = "../support" }
|
frame-support = { version = "3.0.0", default-features = false, path = "../support" }
|
||||||
frame-system = { version = "3.0.0", default-features = false, path = "../system" }
|
frame-system = { version = "3.0.0", default-features = false, path = "../system" }
|
||||||
@@ -36,7 +35,6 @@ std = [
|
|||||||
"frame-system/std",
|
"frame-system/std",
|
||||||
"log/std",
|
"log/std",
|
||||||
"pallet-balances/std",
|
"pallet-balances/std",
|
||||||
"serde",
|
|
||||||
"sp-io/std",
|
"sp-io/std",
|
||||||
"sp-runtime/std",
|
"sp-runtime/std",
|
||||||
"sp-std/std"
|
"sp-std/std"
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ targets = ["x86_64-unknown-linux-gnu"]
|
|||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
||||||
frame-support = { version = "3.0.0", default-features = false, path = "../support" }
|
frame-support = { version = "3.0.0", default-features = false, path = "../support" }
|
||||||
frame-system = { version = "3.0.0", default-features = false, path = "../system" }
|
frame-system = { version = "3.0.0", default-features = false, path = "../system" }
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
sp-runtime = { version = "3.0.0", default-features = false, path = "../../primitives/runtime" }
|
sp-runtime = { version = "3.0.0", default-features = false, path = "../../primitives/runtime" }
|
||||||
sp-tracing = { version = "3.0.0", default-features = false, path = "../../primitives/tracing" }
|
sp-tracing = { version = "3.0.0", default-features = false, path = "../../primitives/tracing" }
|
||||||
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
||||||
@@ -42,7 +41,6 @@ std = [
|
|||||||
"codec/std",
|
"codec/std",
|
||||||
"frame-support/std",
|
"frame-support/std",
|
||||||
"frame-system/std",
|
"frame-system/std",
|
||||||
"serde",
|
|
||||||
"sp-core/std",
|
"sp-core/std",
|
||||||
"sp-runtime/std",
|
"sp-runtime/std",
|
||||||
"sp-tracing/std",
|
"sp-tracing/std",
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ readme = "README.md"
|
|||||||
targets = ["x86_64-unknown-linux-gnu"]
|
targets = ["x86_64-unknown-linux-gnu"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
||||||
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
||||||
sp-runtime = { version = "3.0.0", default-features = false, path = "../../primitives/runtime" }
|
sp-runtime = { version = "3.0.0", default-features = false, path = "../../primitives/runtime" }
|
||||||
@@ -30,7 +29,6 @@ pallet-balances = { version = "3.0.0", path = "../balances" }
|
|||||||
[features]
|
[features]
|
||||||
default = ["std"]
|
default = ["std"]
|
||||||
std = [
|
std = [
|
||||||
"serde",
|
|
||||||
"codec/std",
|
"codec/std",
|
||||||
"sp-std/std",
|
"sp-std/std",
|
||||||
"sp-runtime/std",
|
"sp-runtime/std",
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ readme = "README.md"
|
|||||||
targets = ["x86_64-unknown-linux-gnu"]
|
targets = ["x86_64-unknown-linux-gnu"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "1.0.101", optional = true, features = ["derive"] }
|
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
||||||
sp-application-crypto = { version = "3.0.0", default-features = false, path = "../../primitives/application-crypto" }
|
sp-application-crypto = { version = "3.0.0", default-features = false, path = "../../primitives/application-crypto" }
|
||||||
sp-core = { version = "3.0.0", default-features = false, path = "../../primitives/core" }
|
sp-core = { version = "3.0.0", default-features = false, path = "../../primitives/core" }
|
||||||
@@ -44,7 +43,6 @@ frame-election-provider-support = { version = "3.0.0", path = "../election-provi
|
|||||||
[features]
|
[features]
|
||||||
default = ["std"]
|
default = ["std"]
|
||||||
std = [
|
std = [
|
||||||
"serde",
|
|
||||||
"codec/std",
|
"codec/std",
|
||||||
"frame-benchmarking/std",
|
"frame-benchmarking/std",
|
||||||
"sp-application-crypto/std",
|
"sp-application-crypto/std",
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ readme = "README.md"
|
|||||||
targets = ["x86_64-unknown-linux-gnu"]
|
targets = ["x86_64-unknown-linux-gnu"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
||||||
enumflags2 = { version = "0.6.2" }
|
enumflags2 = { version = "0.6.2" }
|
||||||
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
||||||
@@ -30,7 +29,6 @@ pallet-balances = { version = "3.0.0", path = "../balances" }
|
|||||||
[features]
|
[features]
|
||||||
default = ["std"]
|
default = ["std"]
|
||||||
std = [
|
std = [
|
||||||
"serde",
|
|
||||||
"codec/std",
|
"codec/std",
|
||||||
"sp-std/std",
|
"sp-std/std",
|
||||||
"sp-io/std",
|
"sp-io/std",
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ pallet-authorship = { version = "3.0.0", default-features = false, path = "../au
|
|||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
||||||
sp-core = { version = "3.0.0", default-features = false, path = "../../primitives/core" }
|
sp-core = { version = "3.0.0", default-features = false, path = "../../primitives/core" }
|
||||||
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
sp-io = { version = "3.0.0", default-features = false, path = "../../primitives/io" }
|
sp-io = { version = "3.0.0", default-features = false, path = "../../primitives/io" }
|
||||||
sp-runtime = { version = "3.0.0", default-features = false, path = "../../primitives/runtime" }
|
sp-runtime = { version = "3.0.0", default-features = false, path = "../../primitives/runtime" }
|
||||||
sp-staking = { version = "3.0.0", default-features = false, path = "../../primitives/staking" }
|
sp-staking = { version = "3.0.0", default-features = false, path = "../../primitives/staking" }
|
||||||
@@ -39,7 +38,6 @@ std = [
|
|||||||
"codec/std",
|
"codec/std",
|
||||||
"sp-core/std",
|
"sp-core/std",
|
||||||
"sp-std/std",
|
"sp-std/std",
|
||||||
"serde",
|
|
||||||
"sp-io/std",
|
"sp-io/std",
|
||||||
"sp-runtime/std",
|
"sp-runtime/std",
|
||||||
"sp-staking/std",
|
"sp-staking/std",
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ readme = "README.md"
|
|||||||
targets = ["x86_64-unknown-linux-gnu"]
|
targets = ["x86_64-unknown-linux-gnu"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
||||||
sp-keyring = { version = "3.0.0", optional = true, path = "../../primitives/keyring" }
|
sp-keyring = { version = "3.0.0", optional = true, path = "../../primitives/keyring" }
|
||||||
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
||||||
@@ -31,7 +30,6 @@ pallet-balances = { version = "3.0.0", path = "../balances" }
|
|||||||
[features]
|
[features]
|
||||||
default = ["std"]
|
default = ["std"]
|
||||||
std = [
|
std = [
|
||||||
"serde",
|
|
||||||
"sp-keyring",
|
"sp-keyring",
|
||||||
"codec/std",
|
"codec/std",
|
||||||
"sp-core/std",
|
"sp-core/std",
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ readme = "README.md"
|
|||||||
targets = ["x86_64-unknown-linux-gnu"]
|
targets = ["x86_64-unknown-linux-gnu"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
|
||||||
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
||||||
sp-io = { version = "3.0.0", default-features = false, path = "../../primitives/io" }
|
sp-io = { version = "3.0.0", default-features = false, path = "../../primitives/io" }
|
||||||
@@ -27,7 +26,6 @@ sp-core = { version = "3.0.0", path = "../../primitives/core" }
|
|||||||
[features]
|
[features]
|
||||||
default = ["std"]
|
default = ["std"]
|
||||||
std = [
|
std = [
|
||||||
"serde",
|
|
||||||
"codec/std",
|
"codec/std",
|
||||||
"sp-runtime/std",
|
"sp-runtime/std",
|
||||||
"sp-std/std",
|
"sp-std/std",
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ frame-support = { version = "3.0.0", default-features = false, path = "../suppor
|
|||||||
frame-system = { version = "3.0.0", default-features = false, path = "../system" }
|
frame-system = { version = "3.0.0", default-features = false, path = "../system" }
|
||||||
mmr-lib = { package = "ckb-merkle-mountain-range", default-features = false, version = "0.3.1" }
|
mmr-lib = { package = "ckb-merkle-mountain-range", default-features = false, version = "0.3.1" }
|
||||||
pallet-mmr-primitives = { version = "3.0.0", default-features = false, path = "./primitives" }
|
pallet-mmr-primitives = { version = "3.0.0", default-features = false, path = "./primitives" }
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
sp-core = { version = "3.0.0", default-features = false, path = "../../primitives/core" }
|
sp-core = { version = "3.0.0", default-features = false, path = "../../primitives/core" }
|
||||||
sp-io = { version = "3.0.0", default-features = false, path = "../../primitives/io" }
|
sp-io = { version = "3.0.0", default-features = false, path = "../../primitives/io" }
|
||||||
sp-runtime = { version = "3.0.0", default-features = false, path = "../../primitives/runtime" }
|
sp-runtime = { version = "3.0.0", default-features = false, path = "../../primitives/runtime" }
|
||||||
@@ -37,7 +36,6 @@ std = [
|
|||||||
"frame-system/std",
|
"frame-system/std",
|
||||||
"mmr-lib/std",
|
"mmr-lib/std",
|
||||||
"pallet-mmr-primitives/std",
|
"pallet-mmr-primitives/std",
|
||||||
"serde",
|
|
||||||
"sp-core/std",
|
"sp-core/std",
|
||||||
"sp-io/std",
|
"sp-io/std",
|
||||||
"sp-runtime/std",
|
"sp-runtime/std",
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ readme = "README.md"
|
|||||||
targets = ["x86_64-unknown-linux-gnu"]
|
targets = ["x86_64-unknown-linux-gnu"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
|
||||||
frame-support = { version = "3.0.0", default-features = false, path = "../support" }
|
frame-support = { version = "3.0.0", default-features = false, path = "../support" }
|
||||||
frame-system = { version = "3.0.0", default-features = false, path = "../system" }
|
frame-system = { version = "3.0.0", default-features = false, path = "../system" }
|
||||||
@@ -31,7 +30,6 @@ pallet-balances = { version = "3.0.0", path = "../balances" }
|
|||||||
[features]
|
[features]
|
||||||
default = ["std"]
|
default = ["std"]
|
||||||
std = [
|
std = [
|
||||||
"serde",
|
|
||||||
"codec/std",
|
"codec/std",
|
||||||
"sp-runtime/std",
|
"sp-runtime/std",
|
||||||
"frame-support/std",
|
"frame-support/std",
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ readme = "README.md"
|
|||||||
targets = ["x86_64-unknown-linux-gnu"]
|
targets = ["x86_64-unknown-linux-gnu"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
||||||
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
||||||
sp-io = { version = "3.0.0", default-features = false, path = "../../primitives/io" }
|
sp-io = { version = "3.0.0", default-features = false, path = "../../primitives/io" }
|
||||||
@@ -28,7 +27,6 @@ pallet-balances = { version = "3.0.0", path = "../balances" }
|
|||||||
[features]
|
[features]
|
||||||
default = ["std"]
|
default = ["std"]
|
||||||
std = [
|
std = [
|
||||||
"serde",
|
|
||||||
"codec/std",
|
"codec/std",
|
||||||
"sp-std/std",
|
"sp-std/std",
|
||||||
"sp-io/std",
|
"sp-io/std",
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ description = "FRAME pallet for node authorization"
|
|||||||
targets = ["x86_64-unknown-linux-gnu"]
|
targets = ["x86_64-unknown-linux-gnu"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
||||||
frame-support = { version = "3.0.0", default-features = false, path = "../support" }
|
frame-support = { version = "3.0.0", default-features = false, path = "../support" }
|
||||||
frame-system = { version = "3.0.0", default-features = false, path = "../system" }
|
frame-system = { version = "3.0.0", default-features = false, path = "../system" }
|
||||||
@@ -25,7 +24,6 @@ log = { version = "0.4.14", default-features = false }
|
|||||||
[features]
|
[features]
|
||||||
default = ["std"]
|
default = ["std"]
|
||||||
std = [
|
std = [
|
||||||
"serde",
|
|
||||||
"codec/std",
|
"codec/std",
|
||||||
"frame-support/std",
|
"frame-support/std",
|
||||||
"frame-system/std",
|
"frame-system/std",
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ readme = "README.md"
|
|||||||
targets = ["x86_64-unknown-linux-gnu"]
|
targets = ["x86_64-unknown-linux-gnu"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
|
||||||
frame-support = { version = "3.0.0", default-features = false, path = "../support" }
|
frame-support = { version = "3.0.0", default-features = false, path = "../support" }
|
||||||
frame-system = { version = "3.0.0", default-features = false, path = "../system" }
|
frame-system = { version = "3.0.0", default-features = false, path = "../system" }
|
||||||
@@ -32,7 +31,6 @@ pallet-utility = { version = "3.0.0", path = "../utility" }
|
|||||||
[features]
|
[features]
|
||||||
default = ["std"]
|
default = ["std"]
|
||||||
std = [
|
std = [
|
||||||
"serde",
|
|
||||||
"codec/std",
|
"codec/std",
|
||||||
"sp-runtime/std",
|
"sp-runtime/std",
|
||||||
"frame-support/std",
|
"frame-support/std",
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ readme = "README.md"
|
|||||||
targets = ["x86_64-unknown-linux-gnu"]
|
targets = ["x86_64-unknown-linux-gnu"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
||||||
enumflags2 = { version = "0.6.2" }
|
enumflags2 = { version = "0.6.2" }
|
||||||
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
||||||
@@ -29,7 +28,6 @@ pallet-balances = { version = "3.0.0", path = "../balances" }
|
|||||||
[features]
|
[features]
|
||||||
default = ["std"]
|
default = ["std"]
|
||||||
std = [
|
std = [
|
||||||
"serde",
|
|
||||||
"codec/std",
|
"codec/std",
|
||||||
"sp-std/std",
|
"sp-std/std",
|
||||||
"sp-io/std",
|
"sp-io/std",
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ description = "FRAME example pallet"
|
|||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
|
||||||
frame-support = { version = "3.0.0", default-features = false, path = "../support" }
|
frame-support = { version = "3.0.0", default-features = false, path = "../support" }
|
||||||
frame-system = { version = "3.0.0", default-features = false, path = "../system" }
|
frame-system = { version = "3.0.0", default-features = false, path = "../system" }
|
||||||
@@ -28,7 +27,6 @@ substrate-test-utils = { version = "3.0.0", path = "../../test-utils" }
|
|||||||
[features]
|
[features]
|
||||||
default = ["std"]
|
default = ["std"]
|
||||||
std = [
|
std = [
|
||||||
"serde",
|
|
||||||
"codec/std",
|
"codec/std",
|
||||||
"sp-runtime/std",
|
"sp-runtime/std",
|
||||||
"frame-benchmarking/std",
|
"frame-benchmarking/std",
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ targets = ["x86_64-unknown-linux-gnu"]
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
sp-io = { version = "3.0.0", default-features = false, path = "../../primitives/io" }
|
sp-io = { version = "3.0.0", default-features = false, path = "../../primitives/io" }
|
||||||
sp-runtime = { version = "3.0.0", default-features = false, path = "../../primitives/runtime" }
|
sp-runtime = { version = "3.0.0", default-features = false, path = "../../primitives/runtime" }
|
||||||
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
||||||
@@ -29,7 +28,6 @@ sp-core = { version = "3.0.0", path = "../../primitives/core" }
|
|||||||
default = ["std"]
|
default = ["std"]
|
||||||
std = [
|
std = [
|
||||||
"codec/std",
|
"codec/std",
|
||||||
"serde",
|
|
||||||
"sp-io/std",
|
"sp-io/std",
|
||||||
"sp-runtime/std",
|
"sp-runtime/std",
|
||||||
"sp-std/std",
|
"sp-std/std",
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ readme = "README.md"
|
|||||||
targets = ["x86_64-unknown-linux-gnu"]
|
targets = ["x86_64-unknown-linux-gnu"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
||||||
sp-core = { version = "3.0.0", default-features = false, path = "../../primitives/core" }
|
sp-core = { version = "3.0.0", default-features = false, path = "../../primitives/core" }
|
||||||
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
||||||
@@ -35,7 +34,6 @@ lazy_static = "1.4.0"
|
|||||||
default = ["std", "historical"]
|
default = ["std", "historical"]
|
||||||
historical = ["sp-trie"]
|
historical = ["sp-trie"]
|
||||||
std = [
|
std = [
|
||||||
"serde",
|
|
||||||
"codec/std",
|
"codec/std",
|
||||||
"sp-std/std",
|
"sp-std/std",
|
||||||
"sp-io/std",
|
"sp-io/std",
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ readme = "README.md"
|
|||||||
targets = ["x86_64-unknown-linux-gnu"]
|
targets = ["x86_64-unknown-linux-gnu"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
||||||
sp-runtime = { version = "3.0.0", default-features = false, path = "../../primitives/runtime" }
|
sp-runtime = { version = "3.0.0", default-features = false, path = "../../primitives/runtime" }
|
||||||
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
||||||
@@ -31,7 +30,6 @@ pallet-balances = { version = "3.0.0", path = "../balances" }
|
|||||||
default = ["std"]
|
default = ["std"]
|
||||||
std = [
|
std = [
|
||||||
"codec/std",
|
"codec/std",
|
||||||
"serde",
|
|
||||||
"sp-runtime/std",
|
"sp-runtime/std",
|
||||||
"rand_chacha/std",
|
"rand_chacha/std",
|
||||||
"sp-std/std",
|
"sp-std/std",
|
||||||
|
|||||||
@@ -313,8 +313,6 @@ use sp_staking::{
|
|||||||
SessionIndex,
|
SessionIndex,
|
||||||
offence::{OnOffenceHandler, OffenceDetails, Offence, ReportOffence, OffenceError},
|
offence::{OnOffenceHandler, OffenceDetails, Offence, ReportOffence, OffenceError},
|
||||||
};
|
};
|
||||||
#[cfg(feature = "std")]
|
|
||||||
use sp_runtime::{Serialize, Deserialize};
|
|
||||||
use frame_system::{
|
use frame_system::{
|
||||||
self as system, ensure_signed, ensure_root,
|
self as system, ensure_signed, ensure_root,
|
||||||
offchain::SendTransactionTypes,
|
offchain::SendTransactionTypes,
|
||||||
@@ -380,7 +378,7 @@ pub struct EraRewardPoints<AccountId: Ord> {
|
|||||||
|
|
||||||
/// Indicates the initial status of the staker.
|
/// Indicates the initial status of the staker.
|
||||||
#[derive(RuntimeDebug)]
|
#[derive(RuntimeDebug)]
|
||||||
#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
|
#[cfg_attr(feature = "std", derive(serde::Serialize, serde::Deserialize))]
|
||||||
pub enum StakerStatus<AccountId> {
|
pub enum StakerStatus<AccountId> {
|
||||||
/// Chilling.
|
/// Chilling.
|
||||||
Idle,
|
Idle,
|
||||||
@@ -793,7 +791,7 @@ pub trait Config: frame_system::Config + SendTransactionTypes<Call<Self>> {
|
|||||||
|
|
||||||
/// Mode of era-forcing.
|
/// Mode of era-forcing.
|
||||||
#[derive(Copy, Clone, PartialEq, Eq, Encode, Decode, RuntimeDebug)]
|
#[derive(Copy, Clone, PartialEq, Eq, Encode, Decode, RuntimeDebug)]
|
||||||
#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
|
#[cfg_attr(feature = "std", derive(serde::Serialize, serde::Deserialize))]
|
||||||
pub enum Forcing {
|
pub enum Forcing {
|
||||||
/// Not forcing anything - just let whatever happen.
|
/// Not forcing anything - just let whatever happen.
|
||||||
NotForcing,
|
NotForcing,
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ readme = "README.md"
|
|||||||
targets = ["x86_64-unknown-linux-gnu"]
|
targets = ["x86_64-unknown-linux-gnu"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
||||||
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
||||||
sp-io = { version = "3.0.0", default-features = false, path = "../../primitives/io" }
|
sp-io = { version = "3.0.0", default-features = false, path = "../../primitives/io" }
|
||||||
@@ -27,7 +26,6 @@ sp-core = { version = "3.0.0", path = "../../primitives/core" }
|
|||||||
[features]
|
[features]
|
||||||
default = ["std"]
|
default = ["std"]
|
||||||
std = [
|
std = [
|
||||||
"serde",
|
|
||||||
"codec/std",
|
"codec/std",
|
||||||
"sp-std/std",
|
"sp-std/std",
|
||||||
"sp-io/std",
|
"sp-io/std",
|
||||||
|
|||||||
@@ -29,6 +29,8 @@ pub fn expand_genesis_config(def: &mut Def) -> proc_macro2::TokenStream {
|
|||||||
let genesis_config_item = &mut def.item.content.as_mut()
|
let genesis_config_item = &mut def.item.content.as_mut()
|
||||||
.expect("Checked by def parser").1[genesis_config.index];
|
.expect("Checked by def parser").1[genesis_config.index];
|
||||||
|
|
||||||
|
let serde_crate = format!("{}::serde", frame_support);
|
||||||
|
|
||||||
match genesis_config_item {
|
match genesis_config_item {
|
||||||
syn::Item::Enum(syn::ItemEnum { attrs, ..}) |
|
syn::Item::Enum(syn::ItemEnum { attrs, ..}) |
|
||||||
syn::Item::Struct(syn::ItemStruct { attrs, .. }) |
|
syn::Item::Struct(syn::ItemStruct { attrs, .. }) |
|
||||||
@@ -50,6 +52,7 @@ pub fn expand_genesis_config(def: &mut Def) -> proc_macro2::TokenStream {
|
|||||||
attrs.push(syn::parse_quote!( #[serde(deny_unknown_fields)] ));
|
attrs.push(syn::parse_quote!( #[serde(deny_unknown_fields)] ));
|
||||||
attrs.push(syn::parse_quote!( #[serde(bound(serialize = ""))] ));
|
attrs.push(syn::parse_quote!( #[serde(bound(serialize = ""))] ));
|
||||||
attrs.push(syn::parse_quote!( #[serde(bound(deserialize = ""))] ));
|
attrs.push(syn::parse_quote!( #[serde(bound(deserialize = ""))] ));
|
||||||
|
attrs.push(syn::parse_quote!( #[serde(crate = #serde_crate)] ));
|
||||||
},
|
},
|
||||||
_ => unreachable!("Checked by genesis_config parser"),
|
_ => unreachable!("Checked by genesis_config parser"),
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ fn decl_genesis_config_and_impl_default(
|
|||||||
let genesis_struct = &genesis_config.genesis_struct;
|
let genesis_struct = &genesis_config.genesis_struct;
|
||||||
let genesis_impl = &genesis_config.genesis_impl;
|
let genesis_impl = &genesis_config.genesis_impl;
|
||||||
let genesis_where_clause = &genesis_config.genesis_where_clause;
|
let genesis_where_clause = &genesis_config.genesis_where_clause;
|
||||||
|
let serde_crate = format!("{}::serde", scrate);
|
||||||
|
|
||||||
quote!(
|
quote!(
|
||||||
/// Genesis config for the module, allow to build genesis storage.
|
/// Genesis config for the module, allow to build genesis storage.
|
||||||
@@ -72,6 +73,7 @@ fn decl_genesis_config_and_impl_default(
|
|||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
#[serde(deny_unknown_fields)]
|
#[serde(deny_unknown_fields)]
|
||||||
|
#[serde(crate = #serde_crate)]
|
||||||
#serde_bug_bound
|
#serde_bug_bound
|
||||||
pub struct GenesisConfig#genesis_struct_decl #genesis_where_clause {
|
pub struct GenesisConfig#genesis_struct_decl #genesis_where_clause {
|
||||||
#( #config_fields )*
|
#( #config_fields )*
|
||||||
|
|||||||
@@ -76,10 +76,13 @@ macro_rules! impl_outer_config {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$crate::paste::item! {
|
$crate::paste::item! {
|
||||||
|
#[cfg(any(feature = "std", test))]
|
||||||
|
use $crate::serde as __genesis_config_serde_import__;
|
||||||
#[cfg(any(feature = "std", test))]
|
#[cfg(any(feature = "std", test))]
|
||||||
#[derive($crate::serde::Serialize, $crate::serde::Deserialize, Default)]
|
#[derive($crate::serde::Serialize, $crate::serde::Deserialize, Default)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
#[serde(deny_unknown_fields)]
|
#[serde(deny_unknown_fields)]
|
||||||
|
#[serde(crate = "__genesis_config_serde_import__")]
|
||||||
pub struct $main {
|
pub struct $main {
|
||||||
$(
|
$(
|
||||||
pub [< $snake $(_ $instance )? >]: $config,
|
pub [< $snake $(_ $instance )? >]: $config,
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ targets = ["x86_64-unknown-linux-gnu"]
|
|||||||
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
||||||
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
||||||
sp-io = { version = "3.0.0", default-features = false, path = "../../primitives/io", optional = true }
|
sp-io = { version = "3.0.0", default-features = false, path = "../../primitives/io", optional = true }
|
||||||
@@ -41,7 +40,6 @@ std = [
|
|||||||
"sp-runtime/std",
|
"sp-runtime/std",
|
||||||
"frame-benchmarking/std",
|
"frame-benchmarking/std",
|
||||||
"frame-support/std",
|
"frame-support/std",
|
||||||
"serde",
|
|
||||||
"frame-system/std",
|
"frame-system/std",
|
||||||
"sp-timestamp/std",
|
"sp-timestamp/std",
|
||||||
"log/std",
|
"log/std",
|
||||||
|
|||||||
@@ -63,8 +63,6 @@ mod benchmarking;
|
|||||||
|
|
||||||
pub mod weights;
|
pub mod weights;
|
||||||
|
|
||||||
#[cfg(feature = "std")]
|
|
||||||
use serde::{Serialize, Deserialize};
|
|
||||||
use sp_std::prelude::*;
|
use sp_std::prelude::*;
|
||||||
use frame_support::{decl_module, decl_storage, decl_event, ensure, print, decl_error, PalletId};
|
use frame_support::{decl_module, decl_storage, decl_event, ensure, print, decl_error, PalletId};
|
||||||
use frame_support::traits::{
|
use frame_support::traits::{
|
||||||
@@ -158,7 +156,7 @@ pub trait SpendFunds<T: Config<I>, I=DefaultInstance> {
|
|||||||
pub type ProposalIndex = u32;
|
pub type ProposalIndex = u32;
|
||||||
|
|
||||||
/// A spending proposal.
|
/// A spending proposal.
|
||||||
#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
|
#[cfg_attr(feature = "std", derive(serde::Serialize, serde::Deserialize))]
|
||||||
#[derive(Encode, Decode, Clone, PartialEq, Eq, RuntimeDebug)]
|
#[derive(Encode, Decode, Clone, PartialEq, Eq, RuntimeDebug)]
|
||||||
pub struct Proposal<AccountId, Balance> {
|
pub struct Proposal<AccountId, Balance> {
|
||||||
/// The account proposing it.
|
/// The account proposing it.
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ readme = "README.md"
|
|||||||
targets = ["x86_64-unknown-linux-gnu"]
|
targets = ["x86_64-unknown-linux-gnu"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
|
||||||
frame-support = { version = "3.0.0", default-features = false, path = "../support" }
|
frame-support = { version = "3.0.0", default-features = false, path = "../support" }
|
||||||
frame-system = { version = "3.0.0", default-features = false, path = "../system" }
|
frame-system = { version = "3.0.0", default-features = false, path = "../system" }
|
||||||
@@ -31,7 +30,6 @@ pallet-balances = { version = "3.0.0", path = "../balances" }
|
|||||||
[features]
|
[features]
|
||||||
default = ["std"]
|
default = ["std"]
|
||||||
std = [
|
std = [
|
||||||
"serde",
|
|
||||||
"codec/std",
|
"codec/std",
|
||||||
"sp-runtime/std",
|
"sp-runtime/std",
|
||||||
"frame-support/std",
|
"frame-support/std",
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ readme = "README.md"
|
|||||||
targets = ["x86_64-unknown-linux-gnu"]
|
targets = ["x86_64-unknown-linux-gnu"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "1.0.101", optional = true }
|
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
|
||||||
enumflags2 = { version = "0.6.2" }
|
enumflags2 = { version = "0.6.2" }
|
||||||
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
|
||||||
@@ -32,7 +31,6 @@ hex-literal = "0.3.1"
|
|||||||
[features]
|
[features]
|
||||||
default = ["std"]
|
default = ["std"]
|
||||||
std = [
|
std = [
|
||||||
"serde",
|
|
||||||
"codec/std",
|
"codec/std",
|
||||||
"sp-std/std",
|
"sp-std/std",
|
||||||
"sp-runtime/std",
|
"sp-runtime/std",
|
||||||
|
|||||||
@@ -1217,19 +1217,24 @@ macro_rules! impl_opaque_keys {
|
|||||||
)*
|
)*
|
||||||
}
|
}
|
||||||
) => {
|
) => {
|
||||||
$( #[ $attr ] )*
|
$crate::paste::paste! {
|
||||||
#[derive(
|
#[cfg(feature = "std")]
|
||||||
Default, Clone, PartialEq, Eq,
|
use $crate::serde as [< __opaque_keys_serde_import__ $name >];
|
||||||
$crate::codec::Encode,
|
$( #[ $attr ] )*
|
||||||
$crate::codec::Decode,
|
#[derive(
|
||||||
$crate::RuntimeDebug,
|
Default, Clone, PartialEq, Eq,
|
||||||
)]
|
$crate::codec::Encode,
|
||||||
#[cfg_attr(feature = "std", derive($crate::serde::Serialize, $crate::serde::Deserialize))]
|
$crate::codec::Decode,
|
||||||
pub struct $name {
|
$crate::RuntimeDebug,
|
||||||
$(
|
)]
|
||||||
$( #[ $inner_attr ] )*
|
#[cfg_attr(feature = "std", derive($crate::serde::Serialize, $crate::serde::Deserialize))]
|
||||||
pub $field: <$type as $crate::BoundToRuntimeAppPublic>::Public,
|
#[cfg_attr(feature = "std", serde(crate = "__opaque_keys_serde_import__" $name))]
|
||||||
)*
|
pub struct $name {
|
||||||
|
$(
|
||||||
|
$( #[ $inner_attr ] )*
|
||||||
|
pub $field: <$type as $crate::BoundToRuntimeAppPublic>::Public,
|
||||||
|
)*
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl $name {
|
impl $name {
|
||||||
|
|||||||
Reference in New Issue
Block a user