mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 15:51:12 +00:00
Rename Palette to FRAME (#4182)
* palette -> frame * PALETTE, Palette -> FRAME * Move folder pallete -> frame * Update docs/Structure.adoc Co-Authored-By: Benjamin Kampmann <ben.kampmann@googlemail.com> * Update docs/README.adoc Co-Authored-By: Benjamin Kampmann <ben.kampmann@googlemail.com> * Update README.adoc
This commit is contained in:
@@ -155,7 +155,7 @@ test-dependency-rules: &test-linux
|
||||
script:
|
||||
- .maintain/ensure-deps.sh
|
||||
|
||||
test-palette-staking: &test-palette-staking
|
||||
test-frame-staking: &test-frame-staking
|
||||
stage: test
|
||||
<<: *docker-env
|
||||
variables:
|
||||
@@ -167,7 +167,7 @@ test-palette-staking: &test-palette-staking
|
||||
variables:
|
||||
- $DEPLOY_TAG
|
||||
script:
|
||||
- cd palette/staking/
|
||||
- cd frame/staking/
|
||||
- WASM_BUILD_NO_COLOR=1 time cargo test --release --verbose --no-default-features --features std
|
||||
- sccache -s
|
||||
|
||||
|
||||
@@ -6,19 +6,19 @@
|
||||
# [top-lvl-dir]<[crate-name-prefix]
|
||||
|
||||
# For instance no crate within `./client` directory
|
||||
# is allowed to import any crate with a directory path containing `palette`.
|
||||
# Such rule is just: `client<palette`.
|
||||
# is allowed to import any crate with a directory path containing `frame`.
|
||||
# Such rule is just: `client<frame`.
|
||||
|
||||
# The script should be run from the main repo directory!
|
||||
|
||||
set -u
|
||||
|
||||
PLEASE_DONT=(
|
||||
"client<palette"
|
||||
"client<frame"
|
||||
"client<node"
|
||||
"palette<node"
|
||||
"palette<client"
|
||||
"primitives<palette"
|
||||
"frame<node"
|
||||
"frame<client"
|
||||
"primitives<frame"
|
||||
"primitives<client"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
#
|
||||
# check for any changes in the node/src/runtime, palette/ and primitives/sr_* trees. if
|
||||
# check for any changes in the node/src/runtime, frame/ and primitives/sr_* trees. if
|
||||
# there are any changes found, it should mark the PR breaksconsensus and
|
||||
# "auto-fail" the PR if there isn't a change in the runtime/src/lib.rs file
|
||||
# that alters the version.
|
||||
@@ -29,7 +29,7 @@ github_label () {
|
||||
|
||||
# check if the wasm sources changed
|
||||
if ! git diff --name-only origin/master...${CI_COMMIT_SHA} \
|
||||
| grep -q -e '^bin/node/src/runtime' -e '^palette/' -e '^primitives/sr-' | grep -v -e '^primitives/sr-arithmetic/fuzzer'
|
||||
| grep -q -e '^bin/node/src/runtime' -e '^frame/' -e '^primitives/sr-' | grep -v -e '^primitives/sr-arithmetic/fuzzer'
|
||||
then
|
||||
cat <<-EOT
|
||||
|
||||
@@ -99,7 +99,7 @@ else
|
||||
|
||||
source file directories:
|
||||
- bin/node/src/runtime
|
||||
- palette
|
||||
- frame
|
||||
- primitives/sr-*
|
||||
|
||||
versions file: ${VERSIONS_FILE}
|
||||
|
||||
Generated
+106
-106
@@ -2863,8 +2863,8 @@ dependencies = [
|
||||
"node-primitives 2.0.0",
|
||||
"node-rpc 2.0.0",
|
||||
"node-runtime 2.0.0",
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"pallet-authority-discovery 0.1.0",
|
||||
"pallet-balances 2.0.0",
|
||||
"pallet-contracts 2.0.0",
|
||||
@@ -2922,8 +2922,8 @@ dependencies = [
|
||||
"node-primitives 2.0.0",
|
||||
"node-runtime 2.0.0",
|
||||
"node-testing 2.0.0",
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"pallet-balances 2.0.0",
|
||||
"pallet-contracts 2.0.0",
|
||||
"pallet-grandpa 2.0.0",
|
||||
@@ -2961,7 +2961,7 @@ dependencies = [
|
||||
"jsonrpc-core 14.0.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"node-primitives 2.0.0",
|
||||
"node-runtime 2.0.0",
|
||||
"palette-system-rpc 2.0.0",
|
||||
"frame-system-rpc 2.0.0",
|
||||
"pallet-contracts-rpc 2.0.0",
|
||||
"pallet-transaction-payment-rpc 2.0.0",
|
||||
"sr-primitives 2.0.0",
|
||||
@@ -2988,11 +2988,11 @@ version = "2.0.0"
|
||||
dependencies = [
|
||||
"integer-sqrt 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"node-primitives 2.0.0",
|
||||
"palette-executive 2.0.0",
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"palette-system-rpc-runtime-api 2.0.0",
|
||||
"palette-utility 2.0.0",
|
||||
"frame-executive 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"frame-system-rpc-runtime-api 2.0.0",
|
||||
"frame-utility 2.0.0",
|
||||
"pallet-authority-discovery 0.1.0",
|
||||
"pallet-authorship 0.1.0",
|
||||
"pallet-babe 2.0.0",
|
||||
@@ -3077,9 +3077,9 @@ dependencies = [
|
||||
name = "node-template-runtime"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"palette-executive 2.0.0",
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-executive 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"pallet-aura 2.0.0",
|
||||
"pallet-balances 2.0.0",
|
||||
"pallet-grandpa 2.0.0",
|
||||
@@ -3113,8 +3113,8 @@ dependencies = [
|
||||
"node-executor 2.0.0",
|
||||
"node-primitives 2.0.0",
|
||||
"node-runtime 2.0.0",
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"pallet-balances 2.0.0",
|
||||
"pallet-contracts 2.0.0",
|
||||
"pallet-grandpa 2.0.0",
|
||||
@@ -3280,12 +3280,12 @@ dependencies = [
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "palette-executive"
|
||||
name = "frame-executive"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"hex-literal 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"pallet-balances 2.0.0",
|
||||
"pallet-indices 2.0.0",
|
||||
"pallet-transaction-payment 2.0.0",
|
||||
@@ -3298,7 +3298,7 @@ dependencies = [
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "palette-metadata"
|
||||
name = "frame-metadata"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -3308,16 +3308,16 @@ dependencies = [
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "palette-support"
|
||||
name = "frame-support"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"bitmask 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"impl-trait-for-tuples 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"once_cell 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"palette-metadata 2.0.0",
|
||||
"palette-support-procedural 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-metadata 2.0.0",
|
||||
"frame-support-procedural 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"paste 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"pretty_assertions 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -3333,20 +3333,20 @@ dependencies = [
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "palette-support-procedural"
|
||||
name = "frame-support-procedural"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"palette-support-procedural-tools 2.0.0",
|
||||
"frame-support-procedural-tools 2.0.0",
|
||||
"proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"syn 1.0.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "palette-support-procedural-tools"
|
||||
name = "frame-support-procedural-tools"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"palette-support-procedural-tools-derive 2.0.0",
|
||||
"frame-support-procedural-tools-derive 2.0.0",
|
||||
"proc-macro-crate 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -3354,7 +3354,7 @@ dependencies = [
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "palette-support-procedural-tools-derive"
|
||||
name = "frame-support-procedural-tools-derive"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -3363,14 +3363,14 @@ dependencies = [
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "palette-support-rpc"
|
||||
name = "frame-support-rpc"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"futures 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"jsonrpc-client-transports 14.0.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"jsonrpc-core 14.0.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"substrate-primitives-storage 2.0.0",
|
||||
@@ -3379,10 +3379,10 @@ dependencies = [
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "palette-support-test"
|
||||
name = "frame-support-test"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"palette-support 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"pretty_assertions 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -3395,12 +3395,12 @@ dependencies = [
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "palette-system"
|
||||
name = "frame-system"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"criterion 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"impl-trait-for-tuples 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"palette-support 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"safe-mix 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -3412,7 +3412,7 @@ dependencies = [
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "palette-system-rpc"
|
||||
name = "frame-system-rpc"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"env_logger 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -3421,7 +3421,7 @@ dependencies = [
|
||||
"jsonrpc-core-client 14.0.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"jsonrpc-derive 14.0.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"palette-system-rpc-runtime-api 2.0.0",
|
||||
"frame-system-rpc-runtime-api 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"sr-primitives 2.0.0",
|
||||
@@ -3432,7 +3432,7 @@ dependencies = [
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "palette-system-rpc-runtime-api"
|
||||
name = "frame-system-rpc-runtime-api"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -3440,11 +3440,11 @@ dependencies = [
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "palette-utility"
|
||||
name = "frame-utility"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"pallet-balances 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -3458,8 +3458,8 @@ dependencies = [
|
||||
name = "pallet-assets"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"sr-io 2.0.0",
|
||||
@@ -3473,8 +3473,8 @@ name = "pallet-aura"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"pallet-session 2.0.0",
|
||||
"pallet-timestamp 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -3494,8 +3494,8 @@ dependencies = [
|
||||
name = "pallet-authority-discovery"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"pallet-session 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -3513,8 +3513,8 @@ name = "pallet-authorship"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"impl-trait-for-tuples 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"sp-authorship 2.0.0",
|
||||
"sr-io 2.0.0",
|
||||
@@ -3530,8 +3530,8 @@ version = "2.0.0"
|
||||
dependencies = [
|
||||
"hex-literal 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"pallet-session 2.0.0",
|
||||
"pallet-timestamp 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -3553,8 +3553,8 @@ dependencies = [
|
||||
name = "pallet-balances"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"pallet-transaction-payment 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"safe-mix 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -3570,8 +3570,8 @@ name = "pallet-collective"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"hex-literal 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"pallet-balances 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"safe-mix 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -3589,8 +3589,8 @@ dependencies = [
|
||||
"assert_matches 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"hex 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"hex-literal 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"pallet-balances 2.0.0",
|
||||
"pallet-randomness-collective-flip 2.0.0",
|
||||
"pallet-timestamp 2.0.0",
|
||||
@@ -3638,8 +3638,8 @@ dependencies = [
|
||||
name = "pallet-democracy"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"pallet-balances 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"safe-mix 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -3655,8 +3655,8 @@ name = "pallet-elections"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"hex-literal 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"pallet-balances 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"safe-mix 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -3672,8 +3672,8 @@ name = "pallet-elections-phragmen"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"hex-literal 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"pallet-balances 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -3689,8 +3689,8 @@ name = "pallet-evm"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"evm 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"pallet-balances 2.0.0",
|
||||
"pallet-timestamp 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -3708,8 +3708,8 @@ dependencies = [
|
||||
name = "pallet-example"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"pallet-balances 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -3724,8 +3724,8 @@ name = "pallet-finality-tracker"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"impl-trait-for-tuples 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"sp-finality-tracker 2.0.0",
|
||||
@@ -3740,8 +3740,8 @@ dependencies = [
|
||||
name = "pallet-generic-asset"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"sr-io 2.0.0",
|
||||
@@ -3754,8 +3754,8 @@ dependencies = [
|
||||
name = "pallet-grandpa"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"pallet-finality-tracker 2.0.0",
|
||||
"pallet-session 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -3772,8 +3772,8 @@ dependencies = [
|
||||
name = "pallet-im-online"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"pallet-authorship 0.1.0",
|
||||
"pallet-session 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -3790,8 +3790,8 @@ dependencies = [
|
||||
name = "pallet-indices"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"ref_thread_local 0.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"safe-mix 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -3807,8 +3807,8 @@ dependencies = [
|
||||
name = "pallet-membership"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"sr-io 2.0.0",
|
||||
@@ -3821,8 +3821,8 @@ dependencies = [
|
||||
name = "pallet-nicks"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"pallet-balances 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -3836,8 +3836,8 @@ dependencies = [
|
||||
name = "pallet-offences"
|
||||
version = "1.0.0"
|
||||
dependencies = [
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"pallet-balances 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -3852,8 +3852,8 @@ dependencies = [
|
||||
name = "pallet-randomness-collective-flip"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"safe-mix 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"sr-io 2.0.0",
|
||||
@@ -3866,8 +3866,8 @@ dependencies = [
|
||||
name = "pallet-scored-pool"
|
||||
version = "1.0.0"
|
||||
dependencies = [
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"pallet-balances 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -3883,8 +3883,8 @@ version = "2.0.0"
|
||||
dependencies = [
|
||||
"impl-trait-for-tuples 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"pallet-timestamp 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"safe-mix 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -3902,8 +3902,8 @@ dependencies = [
|
||||
name = "pallet-staking"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"pallet-authorship 0.1.0",
|
||||
"pallet-balances 2.0.0",
|
||||
"pallet-session 2.0.0",
|
||||
@@ -3936,8 +3936,8 @@ dependencies = [
|
||||
name = "pallet-sudo"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"sr-io 2.0.0",
|
||||
@@ -3951,8 +3951,8 @@ name = "pallet-timestamp"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"impl-trait-for-tuples 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"sp-timestamp 2.0.0",
|
||||
@@ -3967,8 +3967,8 @@ dependencies = [
|
||||
name = "pallet-transaction-payment"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"pallet-balances 2.0.0",
|
||||
"pallet-transaction-payment-rpc-runtime-api 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -3998,7 +3998,7 @@ dependencies = [
|
||||
name = "pallet-transaction-payment-rpc-runtime-api"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"palette-support 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde_json 1.0.41 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -4011,8 +4011,8 @@ dependencies = [
|
||||
name = "pallet-treasury"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"pallet-balances 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -5478,7 +5478,7 @@ dependencies = [
|
||||
"hex-literal 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"node-primitives 2.0.0",
|
||||
"node-runtime 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"pallet-balances 2.0.0",
|
||||
"pallet-transaction-payment 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -6219,7 +6219,7 @@ dependencies = [
|
||||
name = "substrate-phragmen"
|
||||
version = "2.0.0"
|
||||
dependencies = [
|
||||
"palette-support 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"rand 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"sr-io 2.0.0",
|
||||
@@ -6591,10 +6591,10 @@ dependencies = [
|
||||
"cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"memory-db 0.15.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"palette-executive 2.0.0",
|
||||
"palette-support 2.0.0",
|
||||
"palette-system 2.0.0",
|
||||
"palette-system-rpc-runtime-api 2.0.0",
|
||||
"frame-executive 2.0.0",
|
||||
"frame-support 2.0.0",
|
||||
"frame-system 2.0.0",
|
||||
"frame-system-rpc-runtime-api 2.0.0",
|
||||
"pallet-babe 2.0.0",
|
||||
"pallet-timestamp 2.0.0",
|
||||
"parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
||||
+46
-46
@@ -44,52 +44,52 @@ members = [
|
||||
"client/utils/wasm-builder-runner",
|
||||
"client/grafana-data-source",
|
||||
"client/grafana-data-source/test",
|
||||
"palette/assets",
|
||||
"palette/aura",
|
||||
"palette/authority-discovery",
|
||||
"palette/authorship",
|
||||
"palette/babe",
|
||||
"palette/balances",
|
||||
"palette/collective",
|
||||
"palette/contracts",
|
||||
"palette/contracts/rpc",
|
||||
"palette/contracts/rpc/runtime-api",
|
||||
"palette/democracy",
|
||||
"palette/elections-phragmen",
|
||||
"palette/elections",
|
||||
"palette/evm",
|
||||
"palette/example",
|
||||
"palette/executive",
|
||||
"palette/finality-tracker",
|
||||
"palette/generic-asset",
|
||||
"palette/grandpa",
|
||||
"palette/im-online",
|
||||
"palette/indices",
|
||||
"palette/membership",
|
||||
"palette/metadata",
|
||||
"palette/nicks",
|
||||
"palette/offences",
|
||||
"palette/randomness-collective-flip",
|
||||
"palette/scored-pool",
|
||||
"palette/session",
|
||||
"palette/staking",
|
||||
"palette/staking/reward-curve",
|
||||
"palette/sudo",
|
||||
"palette/support",
|
||||
"palette/support/procedural",
|
||||
"palette/support/procedural/tools",
|
||||
"palette/support/procedural/tools/derive",
|
||||
"palette/support/rpc",
|
||||
"palette/support/test",
|
||||
"palette/system",
|
||||
"palette/system/rpc",
|
||||
"palette/system/rpc/runtime-api",
|
||||
"palette/timestamp",
|
||||
"palette/transaction-payment",
|
||||
"palette/transaction-payment/rpc",
|
||||
"palette/transaction-payment/rpc/runtime-api",
|
||||
"palette/treasury",
|
||||
"palette/utility",
|
||||
"frame/assets",
|
||||
"frame/aura",
|
||||
"frame/authority-discovery",
|
||||
"frame/authorship",
|
||||
"frame/babe",
|
||||
"frame/balances",
|
||||
"frame/collective",
|
||||
"frame/contracts",
|
||||
"frame/contracts/rpc",
|
||||
"frame/contracts/rpc/runtime-api",
|
||||
"frame/democracy",
|
||||
"frame/elections-phragmen",
|
||||
"frame/elections",
|
||||
"frame/evm",
|
||||
"frame/example",
|
||||
"frame/executive",
|
||||
"frame/finality-tracker",
|
||||
"frame/generic-asset",
|
||||
"frame/grandpa",
|
||||
"frame/im-online",
|
||||
"frame/indices",
|
||||
"frame/membership",
|
||||
"frame/metadata",
|
||||
"frame/nicks",
|
||||
"frame/offences",
|
||||
"frame/randomness-collective-flip",
|
||||
"frame/scored-pool",
|
||||
"frame/session",
|
||||
"frame/staking",
|
||||
"frame/staking/reward-curve",
|
||||
"frame/sudo",
|
||||
"frame/support",
|
||||
"frame/support/procedural",
|
||||
"frame/support/procedural/tools",
|
||||
"frame/support/procedural/tools/derive",
|
||||
"frame/support/rpc",
|
||||
"frame/support/test",
|
||||
"frame/system",
|
||||
"frame/system/rpc",
|
||||
"frame/system/rpc/runtime-api",
|
||||
"frame/timestamp",
|
||||
"frame/transaction-payment",
|
||||
"frame/transaction-payment/rpc",
|
||||
"frame/transaction-payment/rpc/runtime-api",
|
||||
"frame/treasury",
|
||||
"frame/utility",
|
||||
"primitives/application-crypto",
|
||||
"primitives/authority-discovery",
|
||||
"primitives/authorship",
|
||||
|
||||
@@ -5,18 +5,18 @@ authors = ["Anonymous"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
aura = { package = "pallet-aura", path = "../../../palette/aura", default-features = false }
|
||||
aura = { package = "pallet-aura", path = "../../../frame/aura", default-features = false }
|
||||
aura-primitives = { package = "substrate-consensus-aura-primitives", path = "../../../primitives/consensus/aura", default-features = false }
|
||||
balances = { package = "pallet-balances", path = "../../../palette/balances", default-features = false }
|
||||
balances = { package = "pallet-balances", path = "../../../frame/balances", default-features = false }
|
||||
block-builder-api = { package = "substrate-block-builder-runtime-api", path = "../../../primitives/block-builder/runtime-api", default-features = false}
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
||||
executive = { package = "palette-executive", path = "../../../palette/executive", default-features = false }
|
||||
grandpa = { package = "pallet-grandpa", path = "../../../palette/grandpa", default-features = false }
|
||||
indices = { package = "pallet-indices", path = "../../../palette/indices", default-features = false }
|
||||
executive = { package = "frame-executive", path = "../../../frame/executive", default-features = false }
|
||||
grandpa = { package = "pallet-grandpa", path = "../../../frame/grandpa", default-features = false }
|
||||
indices = { package = "pallet-indices", path = "../../../frame/indices", default-features = false }
|
||||
inherents = { package = "substrate-inherents", path = "../../../primitives/inherents", default-features = false}
|
||||
offchain-primitives = { package = "substrate-offchain-primitives", path = "../../../primitives/offchain", default-features = false }
|
||||
primitives = { package = "substrate-primitives", path = "../../../primitives/core", default-features = false }
|
||||
randomness-collective-flip = { package = "pallet-randomness-collective-flip", path = "../../../palette/randomness-collective-flip", default-features = false }
|
||||
randomness-collective-flip = { package = "pallet-randomness-collective-flip", path = "../../../frame/randomness-collective-flip", default-features = false }
|
||||
rstd = { package = "sr-std", path = "../../../primitives/sr-std", default-features = false }
|
||||
runtime-io = { package = "sr-io", path = "../../../primitives/sr-io", default-features = false }
|
||||
safe-mix = { version = "1.0.0", default-features = false }
|
||||
@@ -24,11 +24,11 @@ serde = { version = "1.0.101", optional = true, features = ["derive"] }
|
||||
sr-api = { path = "../../../primitives/sr-api", default-features = false }
|
||||
sr-primitives = { path = "../../../primitives/sr-primitives", default-features = false }
|
||||
substrate-session = { path = "../../../primitives/session", default-features = false }
|
||||
sudo = { package = "pallet-sudo", path = "../../../palette/sudo", default-features = false }
|
||||
support = { package = "palette-support", path = "../../../palette/support", default-features = false }
|
||||
system = { package = "palette-system", path = "../../../palette/system", default-features = false }
|
||||
timestamp = { package = "pallet-timestamp", path = "../../../palette/timestamp", default-features = false }
|
||||
transaction-payment = { package = "pallet-transaction-payment", path = "../../../palette/transaction-payment", default-features = false }
|
||||
sudo = { package = "pallet-sudo", path = "../../../frame/sudo", default-features = false }
|
||||
support = { package = "frame-support", path = "../../../frame/support", default-features = false }
|
||||
system = { package = "frame-system", path = "../../../frame/system", default-features = false }
|
||||
timestamp = { package = "pallet-timestamp", path = "../../../frame/timestamp", default-features = false }
|
||||
transaction-payment = { package = "pallet-transaction-payment", path = "../../../frame/transaction-payment", default-features = false }
|
||||
tx-pool-api = { package = "substrate-transaction-pool-runtime-api", path = "../../../primitives/transaction-pool/runtime-api", default-features = false }
|
||||
version = { package = "sr-version", path = "../../../primitives/sr-version", default-features = false }
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
|
||||
/// For more guidance on Substrate modules, see the example module
|
||||
/// https://github.com/paritytech/substrate/blob/master/palette/example/src/lib.rs
|
||||
/// https://github.com/paritytech/substrate/blob/master/frame/example/src/lib.rs
|
||||
|
||||
use support::{decl_module, decl_storage, decl_event, dispatch::Result};
|
||||
use system::ensure_signed;
|
||||
|
||||
@@ -60,17 +60,17 @@ substrate-service = { path = "../../../client/service", default-features = false
|
||||
substrate-telemetry = { package = "substrate-telemetry", path = "../../../client/telemetry" }
|
||||
authority-discovery = { package = "substrate-authority-discovery", path = "../../../client/authority-discovery"}
|
||||
|
||||
# palette dependencies
|
||||
indices = { package = "pallet-indices", path = "../../../palette/indices" }
|
||||
timestamp = { package = "pallet-timestamp", path = "../../../palette/timestamp", default-features = false }
|
||||
# frame dependencies
|
||||
indices = { package = "pallet-indices", path = "../../../frame/indices" }
|
||||
timestamp = { package = "pallet-timestamp", path = "../../../frame/timestamp", default-features = false }
|
||||
sp-finality-tracker = { path = "../../../primitives/finality-tracker", default-features = false }
|
||||
contracts = { package = "pallet-contracts", path = "../../../palette/contracts" }
|
||||
system = { package = "palette-system", path = "../../../palette/system" }
|
||||
balances = { package = "pallet-balances", path = "../../../palette/balances" }
|
||||
transaction-payment = { package = "pallet-transaction-payment", path = "../../../palette/transaction-payment" }
|
||||
support = { package = "palette-support", path = "../../../palette/support", default-features = false }
|
||||
im_online = { package = "pallet-im-online", path = "../../../palette/im-online", default-features = false }
|
||||
sr-authority-discovery = { package = "pallet-authority-discovery", path = "../../../palette/authority-discovery"}
|
||||
contracts = { package = "pallet-contracts", path = "../../../frame/contracts" }
|
||||
system = { package = "frame-system", path = "../../../frame/system" }
|
||||
balances = { package = "pallet-balances", path = "../../../frame/balances" }
|
||||
transaction-payment = { package = "pallet-transaction-payment", path = "../../../frame/transaction-payment" }
|
||||
support = { package = "frame-support", path = "../../../frame/support", default-features = false }
|
||||
im_online = { package = "pallet-im-online", path = "../../../frame/im-online", default-features = false }
|
||||
sr-authority-discovery = { package = "pallet-authority-discovery", path = "../../../frame/authority-discovery"}
|
||||
|
||||
# node-specific dependencies
|
||||
node-runtime = { path = "../runtime" }
|
||||
|
||||
@@ -20,16 +20,16 @@ node-runtime = { path = "../runtime" }
|
||||
node-testing = { path = "../testing" }
|
||||
test-client = { package = "substrate-test-client", path = "../../../test/utils/client" }
|
||||
sr-primitives = { path = "../../../primitives/sr-primitives" }
|
||||
runtime_support = { package = "palette-support", path = "../../../palette/support" }
|
||||
balances = { package = "pallet-balances", path = "../../../palette/balances" }
|
||||
transaction-payment = { package = "pallet-transaction-payment", path = "../../../palette/transaction-payment" }
|
||||
session = { package = "pallet-session", path = "../../../palette/session" }
|
||||
system = { package = "palette-system", path = "../../../palette/system" }
|
||||
timestamp = { package = "pallet-timestamp", path = "../../../palette/timestamp" }
|
||||
treasury = { package = "pallet-treasury", path = "../../../palette/treasury" }
|
||||
contracts = { package = "pallet-contracts", path = "../../../palette/contracts" }
|
||||
grandpa = { package = "pallet-grandpa", path = "../../../palette/grandpa" }
|
||||
indices = { package = "pallet-indices", path = "../../../palette/indices" }
|
||||
runtime_support = { package = "frame-support", path = "../../../frame/support" }
|
||||
balances = { package = "pallet-balances", path = "../../../frame/balances" }
|
||||
transaction-payment = { package = "pallet-transaction-payment", path = "../../../frame/transaction-payment" }
|
||||
session = { package = "pallet-session", path = "../../../frame/session" }
|
||||
system = { package = "frame-system", path = "../../../frame/system" }
|
||||
timestamp = { package = "pallet-timestamp", path = "../../../frame/timestamp" }
|
||||
treasury = { package = "pallet-treasury", path = "../../../frame/treasury" }
|
||||
contracts = { package = "pallet-contracts", path = "../../../frame/contracts" }
|
||||
grandpa = { package = "pallet-grandpa", path = "../../../frame/grandpa" }
|
||||
indices = { package = "pallet-indices", path = "../../../frame/indices" }
|
||||
wabt = "0.9.2"
|
||||
criterion = "0.3.0"
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ jsonrpc-core = "14.0.3"
|
||||
node-primitives = { path = "../primitives" }
|
||||
node-runtime = { path = "../runtime" }
|
||||
sr-primitives = { path = "../../../primitives/sr-primitives" }
|
||||
pallet-contracts-rpc = { path = "../../../palette/contracts/rpc/" }
|
||||
pallet-transaction-payment-rpc = { path = "../../../palette/transaction-payment/rpc/" }
|
||||
palette-system-rpc = { path = "../../../palette/system/rpc/" }
|
||||
pallet-contracts-rpc = { path = "../../../frame/contracts/rpc/" }
|
||||
pallet-transaction-payment-rpc = { path = "../../../frame/transaction-payment/rpc/" }
|
||||
frame-system-rpc = { path = "../../../frame/system/rpc/" }
|
||||
transaction_pool = { package = "substrate-transaction-pool", path = "../../../client/transaction-pool" }
|
||||
|
||||
@@ -41,13 +41,13 @@ pub fn create<C, P, M>(client: Arc<C>, pool: Arc<Pool<P>>) -> jsonrpc_core::IoHa
|
||||
C: ProvideRuntimeApi,
|
||||
C: client::blockchain::HeaderBackend<Block>,
|
||||
C: Send + Sync + 'static,
|
||||
C::Api: palette_system_rpc::AccountNonceApi<Block, AccountId, Index>,
|
||||
C::Api: frame_system_rpc::AccountNonceApi<Block, AccountId, Index>,
|
||||
C::Api: pallet_contracts_rpc::ContractsRuntimeApi<Block, AccountId, Balance>,
|
||||
C::Api: pallet_transaction_payment_rpc::TransactionPaymentRuntimeApi<Block, Balance, UncheckedExtrinsic>,
|
||||
P: ChainApi + Sync + Send + 'static,
|
||||
M: jsonrpc_core::Metadata + Default,
|
||||
{
|
||||
use palette_system_rpc::{System, SystemApi};
|
||||
use frame_system_rpc::{System, SystemApi};
|
||||
use pallet_contracts_rpc::{Contracts, ContractsApi};
|
||||
use pallet_transaction_payment_rpc::{TransactionPayment, TransactionPaymentApi};
|
||||
|
||||
|
||||
@@ -30,37 +30,37 @@ substrate-session = { path = "../../../primitives/session", default-features = f
|
||||
tx-pool-api = { package = "substrate-transaction-pool-runtime-api", path = "../../../primitives/transaction-pool/runtime-api", default-features = false }
|
||||
version = { package = "sr-version", path = "../../../primitives/sr-version", default-features = false }
|
||||
|
||||
# palette dependencies
|
||||
authority-discovery = { package = "pallet-authority-discovery", path = "../../../palette/authority-discovery", default-features = false }
|
||||
authorship = { package = "pallet-authorship", path = "../../../palette/authorship", default-features = false }
|
||||
babe = { package = "pallet-babe", path = "../../../palette/babe", default-features = false }
|
||||
balances = { package = "pallet-balances", path = "../../../palette/balances", default-features = false }
|
||||
collective = { package = "pallet-collective", path = "../../../palette/collective", default-features = false }
|
||||
contracts = { package = "pallet-contracts", path = "../../../palette/contracts", default-features = false }
|
||||
contracts-rpc-runtime-api = { package = "pallet-contracts-rpc-runtime-api", path = "../../../palette/contracts/rpc/runtime-api/", default-features = false }
|
||||
democracy = { package = "pallet-democracy", path = "../../../palette/democracy", default-features = false }
|
||||
elections-phragmen = { package = "pallet-elections-phragmen", path = "../../../palette/elections-phragmen", default-features = false }
|
||||
executive = { package = "palette-executive", path = "../../../palette/executive", default-features = false }
|
||||
finality-tracker = { package = "pallet-finality-tracker", path = "../../../palette/finality-tracker", default-features = false }
|
||||
grandpa = { package = "pallet-grandpa", path = "../../../palette/grandpa", default-features = false }
|
||||
im-online = { package = "pallet-im-online", path = "../../../palette/im-online", default-features = false }
|
||||
indices = { package = "pallet-indices", path = "../../../palette/indices", default-features = false }
|
||||
membership = { package = "pallet-membership", path = "../../../palette/membership", default-features = false }
|
||||
nicks = { package = "pallet-nicks", path = "../../../palette/nicks", default-features = false }
|
||||
offences = { package = "pallet-offences", path = "../../../palette/offences", default-features = false }
|
||||
randomness-collective-flip = { package = "pallet-randomness-collective-flip", path = "../../../palette/randomness-collective-flip", default-features = false }
|
||||
session = { package = "pallet-session", path = "../../../palette/session", default-features = false, features = ["historical"] }
|
||||
staking = { package = "pallet-staking", path = "../../../palette/staking", default-features = false }
|
||||
pallet-staking-reward-curve = { path = "../../../palette/staking/reward-curve"}
|
||||
sudo = { package = "pallet-sudo", path = "../../../palette/sudo", default-features = false }
|
||||
support = { package = "palette-support", path = "../../../palette/support", default-features = false }
|
||||
system = { package = "palette-system", path = "../../../palette/system", default-features = false }
|
||||
system-rpc-runtime-api = { package = "palette-system-rpc-runtime-api", path = "../../../palette/system/rpc/runtime-api/", default-features = false }
|
||||
timestamp = { package = "pallet-timestamp", path = "../../../palette/timestamp", default-features = false }
|
||||
treasury = { package = "pallet-treasury", path = "../../../palette/treasury", default-features = false }
|
||||
utility = { package = "palette-utility", path = "../../../palette/utility", default-features = false }
|
||||
transaction-payment = { package = "pallet-transaction-payment", path = "../../../palette/transaction-payment", default-features = false }
|
||||
transaction-payment-rpc-runtime-api = { package = "pallet-transaction-payment-rpc-runtime-api", path = "../../../palette/transaction-payment/rpc/runtime-api/", default-features = false }
|
||||
# frame dependencies
|
||||
authority-discovery = { package = "pallet-authority-discovery", path = "../../../frame/authority-discovery", default-features = false }
|
||||
authorship = { package = "pallet-authorship", path = "../../../frame/authorship", default-features = false }
|
||||
babe = { package = "pallet-babe", path = "../../../frame/babe", default-features = false }
|
||||
balances = { package = "pallet-balances", path = "../../../frame/balances", default-features = false }
|
||||
collective = { package = "pallet-collective", path = "../../../frame/collective", default-features = false }
|
||||
contracts = { package = "pallet-contracts", path = "../../../frame/contracts", default-features = false }
|
||||
contracts-rpc-runtime-api = { package = "pallet-contracts-rpc-runtime-api", path = "../../../frame/contracts/rpc/runtime-api/", default-features = false }
|
||||
democracy = { package = "pallet-democracy", path = "../../../frame/democracy", default-features = false }
|
||||
elections-phragmen = { package = "pallet-elections-phragmen", path = "../../../frame/elections-phragmen", default-features = false }
|
||||
executive = { package = "frame-executive", path = "../../../frame/executive", default-features = false }
|
||||
finality-tracker = { package = "pallet-finality-tracker", path = "../../../frame/finality-tracker", default-features = false }
|
||||
grandpa = { package = "pallet-grandpa", path = "../../../frame/grandpa", default-features = false }
|
||||
im-online = { package = "pallet-im-online", path = "../../../frame/im-online", default-features = false }
|
||||
indices = { package = "pallet-indices", path = "../../../frame/indices", default-features = false }
|
||||
membership = { package = "pallet-membership", path = "../../../frame/membership", default-features = false }
|
||||
nicks = { package = "pallet-nicks", path = "../../../frame/nicks", default-features = false }
|
||||
offences = { package = "pallet-offences", path = "../../../frame/offences", default-features = false }
|
||||
randomness-collective-flip = { package = "pallet-randomness-collective-flip", path = "../../../frame/randomness-collective-flip", default-features = false }
|
||||
session = { package = "pallet-session", path = "../../../frame/session", default-features = false, features = ["historical"] }
|
||||
staking = { package = "pallet-staking", path = "../../../frame/staking", default-features = false }
|
||||
pallet-staking-reward-curve = { path = "../../../frame/staking/reward-curve"}
|
||||
sudo = { package = "pallet-sudo", path = "../../../frame/sudo", default-features = false }
|
||||
support = { package = "frame-support", path = "../../../frame/support", default-features = false }
|
||||
system = { package = "frame-system", path = "../../../frame/system", default-features = false }
|
||||
system-rpc-runtime-api = { package = "frame-system-rpc-runtime-api", path = "../../../frame/system/rpc/runtime-api/", default-features = false }
|
||||
timestamp = { package = "pallet-timestamp", path = "../../../frame/timestamp", default-features = false }
|
||||
treasury = { package = "pallet-treasury", path = "../../../frame/treasury", default-features = false }
|
||||
utility = { package = "frame-utility", path = "../../../frame/utility", default-features = false }
|
||||
transaction-payment = { package = "pallet-transaction-payment", path = "../../../frame/transaction-payment", default-features = false }
|
||||
transaction-payment-rpc-runtime-api = { package = "pallet-transaction-payment-rpc-runtime-api", path = "../../../frame/transaction-payment/rpc/runtime-api/", default-features = false }
|
||||
|
||||
[build-dependencies]
|
||||
wasm-builder-runner = { package = "substrate-wasm-builder-runner", path = "../../../client/utils/wasm-builder-runner", version = "1.0.4" }
|
||||
|
||||
@@ -6,26 +6,26 @@ description = "Test utilities for Substrate node."
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
balances = { package = "pallet-balances", path = "../../../palette/balances" }
|
||||
balances = { package = "pallet-balances", path = "../../../frame/balances" }
|
||||
client = { package = "substrate-client", path = "../../../client/" }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0" }
|
||||
contracts = { package = "pallet-contracts", path = "../../../palette/contracts" }
|
||||
grandpa = { package = "pallet-grandpa", path = "../../../palette/grandpa" }
|
||||
indices = { package = "pallet-indices", path = "../../../palette/indices" }
|
||||
contracts = { package = "pallet-contracts", path = "../../../frame/contracts" }
|
||||
grandpa = { package = "pallet-grandpa", path = "../../../frame/grandpa" }
|
||||
indices = { package = "pallet-indices", path = "../../../frame/indices" }
|
||||
keyring = { package = "substrate-keyring", path = "../../../primitives/keyring" }
|
||||
node-executor = { path = "../executor" }
|
||||
node-primitives = { path = "../primitives" }
|
||||
node-runtime = { path = "../runtime" }
|
||||
primitives = { package = "substrate-primitives", path = "../../../primitives/core" }
|
||||
runtime-io = { package = "sr-io", path = "../../../primitives/sr-io" }
|
||||
runtime_support = { package = "palette-support", path = "../../../palette/support" }
|
||||
session = { package = "pallet-session", path = "../../../palette/session" }
|
||||
runtime_support = { package = "frame-support", path = "../../../frame/support" }
|
||||
session = { package = "pallet-session", path = "../../../frame/session" }
|
||||
sr-primitives = { path = "../../../primitives/sr-primitives" }
|
||||
staking = { package = "pallet-staking", path = "../../../palette/staking" }
|
||||
staking = { package = "pallet-staking", path = "../../../frame/staking" }
|
||||
substrate-executor = { path = "../../../client/executor" }
|
||||
system = { package = "palette-system", path = "../../../palette/system" }
|
||||
system = { package = "frame-system", path = "../../../frame/system" }
|
||||
test-client = { package = "substrate-test-client", path = "../../../test/utils/client" }
|
||||
timestamp = { package = "pallet-timestamp", path = "../../../palette/timestamp" }
|
||||
transaction-payment = { package = "pallet-transaction-payment", path = "../../../palette/transaction-payment" }
|
||||
treasury = { package = "pallet-treasury", path = "../../../palette/treasury" }
|
||||
timestamp = { package = "pallet-timestamp", path = "../../../frame/timestamp" }
|
||||
transaction-payment = { package = "pallet-transaction-payment", path = "../../../frame/transaction-payment" }
|
||||
treasury = { package = "pallet-treasury", path = "../../../frame/treasury" }
|
||||
wabt = "0.9.2"
|
||||
|
||||
@@ -17,9 +17,9 @@ substrate-bip39 = "0.3.1"
|
||||
hex = "0.3.2"
|
||||
hex-literal = "0.2.1"
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0" }
|
||||
system = { package = "palette-system", path = "../../palette/system" }
|
||||
balances = { package = "pallet-balances", path = "../../palette/balances" }
|
||||
transaction-payment = { package = "pallet-transaction-payment", path = "../../palette/transaction-payment" }
|
||||
system = { package = "frame-system", path = "../../frame/system" }
|
||||
balances = { package = "pallet-balances", path = "../../frame/balances" }
|
||||
transaction-payment = { package = "pallet-transaction-payment", path = "../../frame/transaction-payment" }
|
||||
|
||||
[features]
|
||||
bench = []
|
||||
|
||||
@@ -40,22 +40,22 @@
|
||||
/primitives/rpc/ @tomusdrw
|
||||
|
||||
# GRANDPA, BABE, consensus stuff
|
||||
/palette/babe/ @andresilva @DemiMarie-parity
|
||||
/palette/grandpa/ @andresilva @DemiMarie-parity
|
||||
/frame/babe/ @andresilva @DemiMarie-parity
|
||||
/frame/grandpa/ @andresilva @DemiMarie-parity
|
||||
/client/finality-grandpa/ @andresilva @DemiMarie-parity
|
||||
/client/consensus/babe/ @andresilva @DemiMarie-parity
|
||||
/client/consensus/slots/ @andresilva @DemiMarie-parity
|
||||
|
||||
# Contracts
|
||||
/palette/contracts/ @pepyakin @thiolliere @jimpo
|
||||
/palette/contracts/src/wasm/runtime.rs @Robbepop
|
||||
/frame/contracts/ @pepyakin @thiolliere @jimpo
|
||||
/frame/contracts/src/wasm/runtime.rs @Robbepop
|
||||
|
||||
# Inflation points
|
||||
/palette/staking/src/inflation.rs @thiolliere
|
||||
/frame/staking/src/inflation.rs @thiolliere
|
||||
|
||||
# NPoS and Governance
|
||||
/palette/staking/ @kianenigma
|
||||
/palette/election/ @kianenigma
|
||||
/frame/staking/ @kianenigma
|
||||
/frame/election/ @kianenigma
|
||||
|
||||
# End to end testing of substrate node
|
||||
/bin/node/executor/ @kianenigma
|
||||
@@ -64,4 +64,4 @@
|
||||
/primitives/sr-primitives/src/weights.rs @kianenigma
|
||||
|
||||
# Support crates
|
||||
/palette/support/ @thiolliere @kianenigma
|
||||
/frame/support/ @thiolliere @kianenigma
|
||||
|
||||
@@ -24,7 +24,7 @@ Substrate is designed for use in one of three ways:
|
||||
|
||||
**1. Trivial**: By running the Substrate binary `substrate` and configuring it with a genesis block that includes the current demonstration runtime. In this case, you just build Substrate, configure a JSON file, and launch your own blockchain. This affords you the least amount of customizability, primarily allowing you to change the genesis parameters of the various included runtime modules such as balances, staking, block-period, fees, and governance.
|
||||
|
||||
**2. Modular**: By hacking together modules from the Substrate Runtime Module Library (SRML) into a new runtime and possibly altering or reconfiguring the Substrate client's block authoring logic. This affords you a very large amount of freedom over your blockchain's logic, letting you change datatypes, add or remove modules, and crucially, add your own modules. Much can be changed without touching the block authoring logic (since it is generic). If this is the case, then the existing Substrate binary can be used for block authoring and syncing. If the block authoring logic needs to be tweaked, then a new, altered block authoring binary must be built as a separate project and used by validators. This is how the Polkadot relay chain is built and should suffice for almost all circumstances in the near to mid-term.
|
||||
**2. Modular**: By hacking together pallets built with Substrate FRAME into a new runtime and possibly altering or reconfiguring the Substrate client's block authoring logic. This affords you a very large amount of freedom over your blockchain's logic, letting you change datatypes, add or remove modules, and crucially, add your own modules. Much can be changed without touching the block authoring logic (since it is generic). If this is the case, then the existing Substrate binary can be used for block authoring and syncing. If the block authoring logic needs to be tweaked, then a new, altered block authoring binary must be built as a separate project and used by validators. This is how the Polkadot relay chain is built and should suffice for almost all circumstances in the near to mid-term.
|
||||
|
||||
**3. Generic**: The entire SRML can be ignored and the entire runtime designed and implemented from scratch. If desired, this can be done in a language other than Rust, provided it can target WebAssembly. If the runtime can be made compatible with the existing client's block authoring logic, then you can simply construct a new genesis block from your Wasm blob and launch your chain with the existing Rust-based Substrate client. If not, then you'll need to alter the client's block authoring logic accordingly. This is probably a useless option for most projects right now, but provides complete flexibility allowing for a long-term, far-reaching upgrade path for the Substrate paradigm.
|
||||
|
||||
@@ -43,9 +43,9 @@ Extrinsics in Substrate are pieces of information from "the outside world" that
|
||||
|
||||
Inherents, meanwhile, are not passed on the network and are not signed. They represent data which describes the environment but which cannot call upon anything to prove it such as a signature. Rather they are assumed to be "true" simply because a sufficiently large number of validators have agreed on them being reasonable.
|
||||
|
||||
To give an example, there is the timestamp inherent, which sets the current timestamp of the block. This is not a fixed part of Substrate, but does come as part of the Substrate Runtime Module Library to be used as desired. No signature could fundamentally prove that a block were authored at a given time in quite the same way that a signature can "prove" the desire to spend some particular funds. Rather, it is the business of each validator to ensure that they believe the timestamp is set to something reasonable before they agree that the block candidate is valid.
|
||||
To give an example, there is the timestamp inherent, which sets the current timestamp of the block. This is not a fixed part of Substrate, but does come as part of FRAME to be used as desired. No signature could fundamentally prove that a block were authored at a given time in quite the same way that a signature can "prove" the desire to spend some particular funds. Rather, it is the business of each validator to ensure that they believe the timestamp is set to something reasonable before they agree that the block candidate is valid.
|
||||
|
||||
Other examples include the parachain-heads extrinsic in Polkadot and the "note-missed-proposal" extrinsic used in the Substrate Runtime Module Library to determine and punish or deactivate offline validators.
|
||||
Other examples include the parachain-heads extrinsic in Polkadot and the "note-missed-proposal" extrinsic used in FRAME to determine and punish or deactivate offline validators.
|
||||
|
||||
|
||||
=== Runtime and API
|
||||
@@ -78,7 +78,7 @@ impl_runtime_apis! {
|
||||
|
||||
=== Inherent Extrinsics
|
||||
|
||||
The Substrate Runtime Module Library includes functionality for timestamps and slashing. If used, these rely on "trusted" external information being passed in via inherent extrinsics. The Substrate reference block authoring client software will expect to be able to call into the runtime API with collated data (in the case of the reference Substrate authoring client, this is merely the current timestamp and which nodes were offline) in order to return the appropriate extrinsics ready for inclusion. If new inherent extrinsic types and data are to be used in a modified runtime, then it is this function (and its argument type) that would change.
|
||||
Substrate FRAME includes functionality for timestamps and slashing. If used, these rely on "trusted" external information being passed in via inherent extrinsics. The Substrate reference block authoring client software will expect to be able to call into the runtime API with collated data (in the case of the reference Substrate authoring client, this is merely the current timestamp and which nodes were offline) in order to return the appropriate extrinsics ready for inclusion. If new inherent extrinsic types and data are to be used in a modified runtime, then it is this function (and its argument type) that would change.
|
||||
|
||||
=== Block-authoring Logic
|
||||
|
||||
@@ -444,11 +444,13 @@ substrate-trie
|
||||
* Substrate Runtime
|
||||
[source, shell]
|
||||
sr-api, sr-io, sr-primitives, sr-sandbox, sr-std, sr-version
|
||||
* Substrate Runtime Module Library (SRML)
|
||||
* FRAME Core
|
||||
[source, shell]
|
||||
pallet-assets, pallet-balances, palette-consensus, pallet-contracts, palette-council, pallet-democracy, pallet-example,
|
||||
palette-executive, palette-metadata, pallet-session, pallet-staking, palette-support, palette-system, pallet-timestamp,
|
||||
pallet-treasury
|
||||
frame-metadata, frame-support, frame-system
|
||||
* FRAME Pallets
|
||||
[source, shell]
|
||||
pallet-assets, pallet-balances, pallet-consensus, pallet-contracts, pallet-council, pallet-democracy, pallet-example,
|
||||
frame-executive, pallet-session, pallet-staking, pallet-timestamp, pallet-treasury
|
||||
* Node
|
||||
[source, shell]
|
||||
node-cli, node-consensus, node-executor, node-network, node-primitives, node-runtime
|
||||
|
||||
@@ -11,7 +11,7 @@ Substrate is split into multiple levels with increasing opinion and decreasing f
|
||||
|
||||
* primitives
|
||||
* client
|
||||
* PALETTE (formerly `srml`)
|
||||
* FRAME (formerly `srml`)
|
||||
|
||||
Putting all these components together we have:
|
||||
|
||||
@@ -35,23 +35,23 @@ In the lowest level, Substrate defines primitives, interfaces and traits to impl
|
||||
* _found in_: `/client`
|
||||
* _crates prefix_: `substrate-`
|
||||
* _constraints_:
|
||||
** crates may not (dev-)depend on any `palette-`-crates
|
||||
** crates may not (dev-)depend on any `frame-`-crates
|
||||
|
||||
In the client you can find a set of crates to construct the outer substrate-node, implementing outer runtime interfaces, thus it depends on `runtime`. It provides the outer building blocks like transaction queue, networking layer, database backend, full* and light-client support.
|
||||
|
||||
=== PALETTE (formerly `srml`)
|
||||
=== FRAME (formerly `srml`)
|
||||
|
||||
* _found in_: `/palette`
|
||||
* _crates prefix_: `palette-` and `pallet-`
|
||||
* _found in_: `/frame`
|
||||
* _crates prefix_: `frame-` and `pallet-`
|
||||
* _constraints_:
|
||||
** all crates that go on chain must be `[no_std]`
|
||||
** must not (dev-)depend on anything in `/client`
|
||||
|
||||
PALETTE is a set of modules that implement specific transition functions and features one might want to have in their runtime.
|
||||
FRAME is a set of modules that implement specific transition functions and features one might want to have in their runtime.
|
||||
|
||||
_Pallets_ are individual modules within _Palette._ These are containers that host domain-specific logic. They have the `pallet-` prefix. For example, `pallet-staking` contains logic for staking tokens.
|
||||
_Pallets_ are individual modules within _FRAME._ These are containers that host domain-specific logic. They have the `pallet-` prefix. For example, `pallet-staking` contains logic for staking tokens.
|
||||
|
||||
There are a few crates with the `palette-` prefix. These do not contain domain-specific logic. Rather, they are the main Palette support infrastructure. These are:
|
||||
There are a few crates with the `frame-` prefix. These do not contain domain-specific logic. Rather, they are the main FRAME support infrastructure. These are:
|
||||
|
||||
- Executive
|
||||
- Metadata
|
||||
@@ -79,7 +79,7 @@ We also provide some binaries pulling from the components creating full applicat
|
||||
|
||||
* _found in_: `/bin/node`
|
||||
|
||||
The default (testing) application pulling together our recommended setup of substrate-client with a wasm-contracts-supporting palette-runtime. The node pulls it all together, constructs the (upgradable) runtime, and wires up the client around it. You can find an example client, which includes a full wasm-contracts chain in `node`. This is also what is being built and run if you do `cargo run`.
|
||||
The default (testing) application pulling together our recommended setup of substrate-client with a wasm-contracts-supporting frame-runtime. The node pulls it all together, constructs the (upgradable) runtime, and wires up the client around it. You can find an example client, which includes a full wasm-contracts chain in `node`. This is also what is being built and run if you do `cargo run`.
|
||||
|
||||
==== Node Template
|
||||
|
||||
@@ -99,7 +99,7 @@ Subkey is a client library to generate keys and sign transactions to send to a s
|
||||
....
|
||||
+---------------+ +----------------+
|
||||
| | | |
|
||||
| runtime +<------+ palette |
|
||||
| runtime +<------+ frame |
|
||||
| | | |
|
||||
+------+-----+--+ +-------------+--+
|
||||
^ ^ ^
|
||||
|
||||
@@ -10,9 +10,9 @@ codec = { package = "parity-scale-codec", version = "1.0.0", default-features =
|
||||
# Needed for various traits. In our case, `OnFinalize`.
|
||||
sr-primitives = { path = "../../primitives/sr-primitives", default-features = false }
|
||||
# Needed for type-safe access to storage DB.
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
support = { package = "frame-support", path = "../support", default-features = false }
|
||||
# `system` module provides us with all sorts of useful stuff and macros depend on it being around.
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
system = { package = "frame-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
primitives = { package = "substrate-primitives", path = "../../primitives/core" }
|
||||
@@ -124,8 +124,8 @@
|
||||
//!
|
||||
//! ## Related Modules
|
||||
//!
|
||||
//! * [`System`](../palette_system/index.html)
|
||||
//! * [`Support`](../palette_support/index.html)
|
||||
//! * [`System`](../frame_system/index.html)
|
||||
//! * [`Support`](../frame_support/index.html)
|
||||
|
||||
// Ensure we're `no_std` when compiling for Wasm.
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
@@ -14,9 +14,9 @@ serde = { version = "1.0.101", optional = true }
|
||||
session = { package = "pallet-session", path = "../session", default-features = false }
|
||||
sr-primitives = { path = "../../primitives/sr-primitives", default-features = false }
|
||||
runtime-io ={ package = "sr-io", path = "../../primitives/sr-io", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
support = { package = "frame-support", path = "../support", default-features = false }
|
||||
substrate-consensus-aura-primitives = { path = "../../primitives/consensus/aura", default-features = false}
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
system = { package = "frame-system", path = "../system", default-features = false }
|
||||
sp-timestamp = { package = "sp-timestamp", path = "../../primitives/timestamp", default-features = false }
|
||||
pallet-timestamp = { package = "pallet-timestamp", path = "../timestamp", default-features = false }
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
//!
|
||||
//! - [Timestamp](../pallet_timestamp/index.html): The Timestamp module is used in Aura to track
|
||||
//! consensus rounds (via `slots`).
|
||||
//! - [Consensus](../palette_consensus/index.html): The Consensus module does not relate directly to Aura,
|
||||
//! - [Consensus](../frame_consensus/index.html): The Consensus module does not relate directly to Aura,
|
||||
//! but serves to manage offline reporting by implementing `ProvideInherent` in a similar way.
|
||||
//!
|
||||
//! ## References
|
||||
+2
-2
@@ -14,8 +14,8 @@ serde = { version = "1.0.101", optional = true }
|
||||
runtime-io = { package = "sr-io", path = "../../primitives/sr-io", default-features = false }
|
||||
session = { package = "pallet-session", path = "../session", default-features = false, features = [ "historical" ] }
|
||||
sr-primitives = { path = "../../primitives/sr-primitives", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
support = { package = "frame-support", path = "../support", default-features = false }
|
||||
system = { package = "frame-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
sr-staking-primitives = { path = "../../primitives/sr-staking-primitives", default-features = false }
|
||||
@@ -12,8 +12,8 @@ inherents = { package = "substrate-inherents", path = "../../primitives/inherent
|
||||
sp-authorship = { path = "../../primitives/authorship", default-features = false }
|
||||
rstd = { package = "sr-std", path = "../../primitives/sr-std", default-features = false }
|
||||
sr-primitives = { path = "../../primitives/sr-primitives", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
support = { package = "frame-support", path = "../support", default-features = false }
|
||||
system = { package = "frame-system", path = "../system", default-features = false }
|
||||
runtime-io ={ package = "sr-io", path = "../../primitives/sr-io", default-features = false }
|
||||
impl-trait-for-tuples = "0.1.3"
|
||||
|
||||
@@ -12,8 +12,8 @@ inherents = { package = "substrate-inherents", path = "../../primitives/inherent
|
||||
rstd = { package = "sr-std", path = "../../primitives/sr-std", default-features = false }
|
||||
sr-primitives = { path = "../../primitives/sr-primitives", default-features = false }
|
||||
sr-staking-primitives = { path = "../../primitives/sr-staking-primitives", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
support = { package = "frame-support", path = "../support", default-features = false }
|
||||
system = { package = "frame-system", path = "../system", default-features = false }
|
||||
timestamp = { package = "pallet-timestamp", path = "../timestamp", default-features = false }
|
||||
sp-timestamp = { path = "../../primitives/timestamp", default-features = false }
|
||||
session = { package = "pallet-session", path = "../session", default-features = false }
|
||||
@@ -10,8 +10,8 @@ safe-mix = { version = "1.0.0", default-features = false }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
||||
rstd = { package = "sr-std", path = "../../primitives/sr-std", default-features = false }
|
||||
sr-primitives = { path = "../../primitives/sr-primitives", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
support = { package = "frame-support", path = "../support", default-features = false }
|
||||
system = { package = "frame-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
runtime-io = { package = "sr-io", path = "../../primitives/sr-io" }
|
||||
@@ -75,16 +75,16 @@
|
||||
//! The Balances module provides implementations for the following traits. If these traits provide the functionality
|
||||
//! that you need, then you can avoid coupling with the Balances module.
|
||||
//!
|
||||
//! - [`Currency`](../palette_support/traits/trait.Currency.html): Functions for dealing with a
|
||||
//! - [`Currency`](../frame_support/traits/trait.Currency.html): Functions for dealing with a
|
||||
//! fungible assets system.
|
||||
//! - [`ReservableCurrency`](../palette_support/traits/trait.ReservableCurrency.html):
|
||||
//! - [`ReservableCurrency`](../frame_support/traits/trait.ReservableCurrency.html):
|
||||
//! Functions for dealing with assets that can be reserved from an account.
|
||||
//! - [`LockableCurrency`](../palette_support/traits/trait.LockableCurrency.html): Functions for
|
||||
//! - [`LockableCurrency`](../frame_support/traits/trait.LockableCurrency.html): Functions for
|
||||
//! dealing with accounts that allow liquidity restrictions.
|
||||
//! - [`Imbalance`](../palette_support/traits/trait.Imbalance.html): Functions for handling
|
||||
//! - [`Imbalance`](../frame_support/traits/trait.Imbalance.html): Functions for handling
|
||||
//! imbalances between total issuance in the system and account balances. Must be used when a function
|
||||
//! creates new funds (e.g. a reward) or destroys some funds (e.g. a system fee).
|
||||
//! - [`IsDeadAccount`](../palette_system/trait.IsDeadAccount.html): Determiner to say whether a
|
||||
//! - [`IsDeadAccount`](../frame_system/trait.IsDeadAccount.html): Determiner to say whether a
|
||||
//! given account is unused.
|
||||
//!
|
||||
//! ## Interface
|
||||
@@ -12,8 +12,8 @@ primitives = { package = "substrate-primitives", path = "../../primitives/core"
|
||||
rstd = { package = "sr-std", path = "../../primitives/sr-std", default-features = false }
|
||||
runtime-io = { package = "sr-io", path = "../../primitives/sr-io", default-features = false }
|
||||
sr-primitives = { path = "../../primitives/sr-primitives", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
support = { package = "frame-support", path = "../support", default-features = false }
|
||||
system = { package = "frame-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
hex-literal = "0.2.1"
|
||||
@@ -15,8 +15,8 @@ sr-primitives = { path = "../../primitives/sr-primitives", default-features = fa
|
||||
runtime-io = { package = "sr-io", path = "../../primitives/sr-io", default-features = false }
|
||||
rstd = { package = "sr-std", path = "../../primitives/sr-std", default-features = false }
|
||||
sandbox = { package = "sr-sandbox", path = "../../primitives/sr-sandbox", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
support = { package = "frame-support", path = "../support", default-features = false }
|
||||
system = { package = "frame-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
wabt = "0.9.2"
|
||||
@@ -11,8 +11,8 @@ codec = { package = "parity-scale-codec", version = "1.0.0", default-features =
|
||||
rstd = { package = "sr-std", path = "../../primitives/sr-std", default-features = false }
|
||||
runtime-io = { package = "sr-io", path = "../../primitives/sr-io", default-features = false }
|
||||
sr-primitives = { path = "../../primitives/sr-primitives", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
support = { package = "frame-support", path = "../support", default-features = false }
|
||||
system = { package = "frame-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
primitives = { package = "substrate-primitives", path = "../../primitives/core" }
|
||||
+2
-2
@@ -8,8 +8,8 @@ edition = "2018"
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
||||
sr-primitives = { path = "../../primitives/sr-primitives", default-features = false }
|
||||
phragmen = { package = "substrate-phragmen", path = "../../primitives/phragmen", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
support = { package = "frame-support", path = "../support", default-features = false }
|
||||
system = { package = "frame-system", path = "../system", default-features = false }
|
||||
rstd = { package = "sr-std", path = "../../primitives/sr-std", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
@@ -12,8 +12,8 @@ primitives = { package = "substrate-primitives", path = "../../primitives/core"
|
||||
rstd = { package = "sr-std", path = "../../primitives/sr-std", default-features = false }
|
||||
runtime-io = { package = "sr-io", path = "../../primitives/sr-io", default-features = false }
|
||||
sr-primitives = { path = "../../primitives/sr-primitives", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
support = { package = "frame-support", path = "../support", default-features = false }
|
||||
system = { package = "frame-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
hex-literal = "0.2.1"
|
||||
@@ -7,8 +7,8 @@ edition = "2018"
|
||||
[dependencies]
|
||||
serde = { version = "1.0.101", optional = true, features = ["derive"] }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
support = { package = "frame-support", path = "../support", default-features = false }
|
||||
system = { package = "frame-system", path = "../system", default-features = false }
|
||||
timestamp = { package = "pallet-timestamp", path = "../timestamp", default-features = false }
|
||||
balances = { package = "pallet-balances", path = "../balances", default-features = false }
|
||||
primitives = { package = "substrate-primitives", path = "../../primitives/core", default-features = false }
|
||||
@@ -7,8 +7,8 @@ edition = "2018"
|
||||
[dependencies]
|
||||
serde = { version = "1.0.101", optional = true }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
support = { package = "frame-support", path = "../support", default-features = false }
|
||||
system = { package = "frame-system", path = "../system", default-features = false }
|
||||
balances = { package = "pallet-balances", path = "../balances", default-features = false }
|
||||
sr-primitives = { path = "../../primitives/sr-primitives", default-features = false }
|
||||
rstd = { package = "sr-std", path = "../../primitives/sr-std", default-features = false }
|
||||
@@ -49,8 +49,8 @@
|
||||
//!
|
||||
//! ### Documentation Template:<br>
|
||||
//!
|
||||
//! Copy and paste this template from palette/example/src/lib.rs into file
|
||||
//! `palette/<INSERT_CUSTOM_MODULE_NAME>/src/lib.rs` of your own custom module and complete it.
|
||||
//! Copy and paste this template from frame/example/src/lib.rs into file
|
||||
//! `frame/<INSERT_CUSTOM_MODULE_NAME>/src/lib.rs` of your own custom module and complete it.
|
||||
//! <details><p><pre>
|
||||
//! // Add heading with custom module name
|
||||
//!
|
||||
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "palette-executive"
|
||||
name = "frame-executive"
|
||||
version = "2.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
@@ -10,8 +10,8 @@ codec = { package = "parity-scale-codec", version = "1.0.0", default-features =
|
||||
rstd = { package = "sr-std", path = "../../primitives/sr-std", default-features = false }
|
||||
runtime-io ={ package = "sr-io", path = "../../primitives/sr-io", default-features = false }
|
||||
sr-primitives = { path = "../../primitives/sr-primitives", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
support = { package = "frame-support", path = "../support", default-features = false }
|
||||
system = { package = "frame-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
hex-literal = "0.2.1"
|
||||
@@ -23,7 +23,7 @@
|
||||
//!
|
||||
//! The executive module is not a typical SRML module providing functionality around a specific feature.
|
||||
//! It is a cross-cutting framework component for the SRML. It works in conjunction with the
|
||||
//! [SRML System module](../palette_system/index.html) to perform these cross-cutting functions.
|
||||
//! [SRML System module](../frame_system/index.html) to perform these cross-cutting functions.
|
||||
//!
|
||||
//! The Executive module provides functions to:
|
||||
//!
|
||||
@@ -51,7 +51,7 @@
|
||||
//!
|
||||
//! ```
|
||||
//! # use sr_primitives::generic;
|
||||
//! # use palette_executive as executive;
|
||||
//! # use frame_executive as executive;
|
||||
//! # pub struct UncheckedExtrinsic {};
|
||||
//! # pub struct Header {};
|
||||
//! # type Context = system::ChainContext<Runtime>;
|
||||
+3
-3
@@ -11,8 +11,8 @@ inherents = { package = "substrate-inherents", path = "../../primitives/inherent
|
||||
rstd = { package = "sr-std", path = "../../primitives/sr-std", default-features = false }
|
||||
sr-primitives = { path = "../../primitives/sr-primitives", default-features = false }
|
||||
sp-finality-tracker = { path = "../../primitives/finality-tracker", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
palette-system = { path = "../system", default-features = false }
|
||||
support = { package = "frame-support", path = "../support", default-features = false }
|
||||
frame-system = { path = "../system", default-features = false }
|
||||
impl-trait-for-tuples = "0.1.3"
|
||||
|
||||
[dev-dependencies]
|
||||
@@ -27,7 +27,7 @@ std = [
|
||||
"rstd/std",
|
||||
"support/std",
|
||||
"sr-primitives/std",
|
||||
"palette-system/std",
|
||||
"frame-system/std",
|
||||
"sp-finality-tracker/std",
|
||||
"inherents/std",
|
||||
]
|
||||
+4
-4
@@ -23,7 +23,7 @@ use sr_primitives::traits::{One, Zero, SaturatedConversion};
|
||||
use rstd::{prelude::*, result, cmp, vec};
|
||||
use support::{decl_module, decl_storage};
|
||||
use support::traits::Get;
|
||||
use palette_system::{ensure_none, Trait as SystemTrait};
|
||||
use frame_system::{ensure_none, Trait as SystemTrait};
|
||||
use sp_finality_tracker::{INHERENT_IDENTIFIER, FinalizedInherentData};
|
||||
|
||||
pub const DEFAULT_WINDOW_SIZE: u32 = 101;
|
||||
@@ -70,7 +70,7 @@ decl_module! {
|
||||
ensure_none(origin)?;
|
||||
assert!(!<Self as Store>::Update::exists(), "Final hint must be updated only once in the block");
|
||||
assert!(
|
||||
palette_system::Module::<T>::block_number() >= hint,
|
||||
frame_system::Module::<T>::block_number() >= hint,
|
||||
"Finalized height above block number",
|
||||
);
|
||||
<Self as Store>::Update::put(hint);
|
||||
@@ -145,7 +145,7 @@ impl<T: Trait> Module<T> {
|
||||
<Self as Store>::Median::put(median);
|
||||
|
||||
if T::BlockNumber::from(our_window_size) == window_size {
|
||||
let now = palette_system::Module::<T>::block_number();
|
||||
let now = frame_system::Module::<T>::block_number();
|
||||
let latency = T::ReportLatency::get();
|
||||
|
||||
// the delay is the latency plus half the window size.
|
||||
@@ -200,7 +200,7 @@ mod tests {
|
||||
traits::{BlakeTwo256, IdentityLookup, OnFinalize, Header as HeaderT},
|
||||
};
|
||||
use support::{assert_ok, impl_outer_origin, parameter_types};
|
||||
use palette_system as system;
|
||||
use frame_system as system;
|
||||
use std::cell::RefCell;
|
||||
|
||||
#[derive(Clone, PartialEq, Debug)]
|
||||
+2
-2
@@ -9,8 +9,8 @@ serde = { version = "1.0.101", optional = true }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
||||
rstd = { package = "sr-std", path = "../../primitives/sr-std", default-features = false }
|
||||
sr-primitives = { path = "../../primitives/sr-primitives", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
support = { package = "frame-support", path = "../support", default-features = false }
|
||||
system = { package = "frame-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
runtime-io ={ package = "sr-io", path = "../../primitives/sr-io" }
|
||||
@@ -12,8 +12,8 @@ substrate-finality-grandpa-primitives = { path = "../../primitives/finality-gran
|
||||
rstd = { package = "sr-std", path = "../../primitives/sr-std", default-features = false }
|
||||
sr-primitives = { path = "../../primitives/sr-primitives", default-features = false }
|
||||
sr-staking-primitives = { path = "../../primitives/sr-staking-primitives", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
support = { package = "frame-support", path = "../support", default-features = false }
|
||||
system = { package = "frame-system", path = "../system", default-features = false }
|
||||
session = { package = "pallet-session", path = "../session", default-features = false }
|
||||
finality-tracker = { package = "pallet-finality-tracker", path = "../finality-tracker", default-features = false }
|
||||
|
||||
@@ -15,8 +15,8 @@ session = { package = "pallet-session", path = "../session", default-features =
|
||||
runtime-io = { package = "sr-io", path = "../../primitives/sr-io", default-features = false }
|
||||
sr-primitives = { path = "../../primitives/sr-primitives", default-features = false }
|
||||
sr-staking-primitives = { path = "../../primitives/sr-staking-primitives", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
support = { package = "frame-support", path = "../support", default-features = false }
|
||||
system = { package = "frame-system", path = "../system", default-features = false }
|
||||
|
||||
[features]
|
||||
default = ["std", "session/historical"]
|
||||
@@ -131,7 +131,7 @@ pub mod ed25519 {
|
||||
|
||||
/// The local storage database key under which the worker progress status
|
||||
/// is tracked.
|
||||
const DB_KEY: &[u8] = b"palette/im-online-worker-status";
|
||||
const DB_KEY: &[u8] = b"frame/im-online-worker-status";
|
||||
|
||||
/// It's important to persist the worker state, since e.g. the
|
||||
/// server could be restarted while starting the gossip process, but before
|
||||
@@ -13,8 +13,8 @@ rstd = { package = "sr-std", path = "../../primitives/sr-std", default-features
|
||||
runtime-io = { package = "sr-io", path = "../../primitives/sr-io", default-features = false }
|
||||
sr-primitives = { path = "../../primitives/sr-primitives", default-features = false }
|
||||
primitives = { package = "substrate-primitives", path = "../../primitives/core", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
support = { package = "frame-support", path = "../support", default-features = false }
|
||||
system = { package = "frame-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
ref_thread_local = "0.0.0"
|
||||
@@ -9,8 +9,8 @@ serde = { version = "1.0.101", optional = true }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false }
|
||||
rstd = { package = "sr-std", path = "../../primitives/sr-std", default-features = false }
|
||||
runtime-io = { package = "sr-io", path = "../../primitives/sr-io", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
support = { package = "frame-support", path = "../support", default-features = false }
|
||||
system = { package = "frame-system", path = "../system", default-features = false }
|
||||
sr-primitives = { path = "../../primitives/sr-primitives", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "palette-metadata"
|
||||
name = "frame-metadata"
|
||||
version = "2.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
@@ -10,8 +10,8 @@ codec = { package = "parity-scale-codec", version = "1.0.0", default-features =
|
||||
rstd = { package = "sr-std", path = "../../primitives/sr-std", default-features = false }
|
||||
runtime-io = { package = "sr-io", path = "../../primitives/sr-io", default-features = false }
|
||||
sr-primitives = { path = "../../primitives/sr-primitives", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
support = { package = "frame-support", path = "../support", default-features = false }
|
||||
system = { package = "frame-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
primitives = { package = "substrate-primitives", path = "../../primitives/core" }
|
||||
@@ -11,8 +11,8 @@ rstd = { package = "sr-std", path = "../../primitives/sr-std", default-features
|
||||
serde = { version = "1.0.101", optional = true }
|
||||
sr-primitives = { path = "../../primitives/sr-primitives", default-features = false }
|
||||
sr-staking-primitives = { path = "../../primitives/sr-staking-primitives", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
support = { package = "frame-support", path = "../support", default-features = false }
|
||||
system = { package = "frame-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
runtime-io = { package = "sr-io", path = "../../primitives/sr-io" }
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user