mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-26 21:49:49 +00:00
Rename PAINT to PALETTE (#4161)
* /paint to /palette * rename paint to palette * rename the modules in palette to be pallets * update Structure.adoc * bump impl * fix CI directory * Update docs/Structure.adoc Co-Authored-By: Benjamin Kampmann <ben@gnunicorn.org>
This commit is contained in:
1 parent
512c86a72f
commit
2783b44207
206 files changed
+898
-888
No files matched your search
@@ -155,7 +155,7 @@ test-dependency-rules: &test-linux
|
||||
script:
|
||||
- .maintain/ensure-deps.sh
|
||||
|
||||
test-paint-staking: &test-paint-staking
|
||||
test-palette-staking: &test-palette-staking
|
||||
stage: test
|
||||
<<: *docker-env
|
||||
variables:
|
||||
@@ -167,7 +167,7 @@ test-paint-staking: &test-paint-staking
|
||||
variables:
|
||||
- $DEPLOY_TAG
|
||||
script:
|
||||
- cd paint/staking/
|
||||
- cd palette/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 `paint`.
|
||||
# Such rule is just: `client<paint`.
|
||||
# is allowed to import any crate with a directory path containing `palette`.
|
||||
# Such rule is just: `client<palette`.
|
||||
|
||||
# The script should be run from the main repo directory!
|
||||
|
||||
set -u
|
||||
|
||||
PLEASE_DONT=(
|
||||
"client<paint"
|
||||
"client<palette"
|
||||
"client<node"
|
||||
"paint<node"
|
||||
"paint<client"
|
||||
"primitives<paint"
|
||||
"palette<node"
|
||||
"palette<client"
|
||||
"primitives<palette"
|
||||
"primitives<client"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
#
|
||||
# check for any changes in the node/src/runtime, paint/ and core/sr_* trees. if
|
||||
# check for any changes in the node/src/runtime, palette/ and core/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.
|
||||
@@ -32,7 +32,7 @@ github_label () {
|
||||
|
||||
# check if the wasm sources changed
|
||||
if ! git diff --name-only origin/master...${CI_COMMIT_SHA} \
|
||||
| grep -q -e '^node/src/runtime' -e '^paint/' -e '^core/sr-' | grep -v -e '^core/sr-arithmetic/fuzzer'
|
||||
| grep -q -e '^node/src/runtime' -e '^palette/' -e '^core/sr-' | grep -v -e '^core/sr-arithmetic/fuzzer'
|
||||
then
|
||||
cat <<-EOT
|
||||
|
||||
@@ -102,7 +102,7 @@ else
|
||||
|
||||
source file directories:
|
||||
- node/src/runtime
|
||||
- paint
|
||||
- palette
|
||||
- core/sr-*
|
||||
|
||||
versions file: ${VERSIONS_FILE}
|
||||
|
||||
Generated
+383
-383
File diff suppressed because it is too large.
Load diff
+46
-46
@@ -41,52 +41,52 @@ members = [
|
||||
"client/transaction-pool",
|
||||
"client/transaction-pool/graph",
|
||||
"client/utils/wasm-builder-runner",
|
||||
"paint/assets",
|
||||
"paint/aura",
|
||||
"paint/authority-discovery",
|
||||
"paint/authorship",
|
||||
"paint/babe",
|
||||
"paint/balances",
|
||||
"paint/collective",
|
||||
"paint/contracts",
|
||||
"paint/contracts/rpc",
|
||||
"paint/contracts/rpc/runtime-api",
|
||||
"paint/democracy",
|
||||
"paint/elections-phragmen",
|
||||
"paint/elections",
|
||||
"paint/evm",
|
||||
"paint/example",
|
||||
"paint/executive",
|
||||
"paint/finality-tracker",
|
||||
"paint/generic-asset",
|
||||
"paint/grandpa",
|
||||
"paint/im-online",
|
||||
"paint/indices",
|
||||
"paint/membership",
|
||||
"paint/metadata",
|
||||
"paint/nicks",
|
||||
"paint/offences",
|
||||
"paint/randomness-collective-flip",
|
||||
"paint/scored-pool",
|
||||
"paint/session",
|
||||
"paint/staking",
|
||||
"paint/staking/reward-curve",
|
||||
"paint/sudo",
|
||||
"paint/support",
|
||||
"paint/support/procedural",
|
||||
"paint/support/procedural/tools",
|
||||
"paint/support/procedural/tools/derive",
|
||||
"paint/support/rpc",
|
||||
"paint/support/test",
|
||||
"paint/system",
|
||||
"paint/system/rpc",
|
||||
"paint/system/rpc/runtime-api",
|
||||
"paint/timestamp",
|
||||
"paint/transaction-payment",
|
||||
"paint/transaction-payment/rpc",
|
||||
"paint/transaction-payment/rpc/runtime-api",
|
||||
"paint/treasury",
|
||||
"paint/utility",
|
||||
"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",
|
||||
"primitives/application-crypto",
|
||||
"primitives/authority-discovery",
|
||||
"primitives/authorship",
|
||||
|
||||
@@ -5,18 +5,18 @@ authors = ["Anonymous"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
aura = { package = "paint-aura", path = "../../../paint/aura", default-features = false }
|
||||
aura = { package = "pallet-aura", path = "../../../palette/aura", default-features = false }
|
||||
aura-primitives = { package = "substrate-consensus-aura-primitives", path = "../../../primitives/consensus/aura", default-features = false }
|
||||
balances = { package = "paint-balances", path = "../../../paint/balances", default-features = false }
|
||||
balances = { package = "pallet-balances", path = "../../../palette/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 = "paint-executive", path = "../../../paint/executive", default-features = false }
|
||||
grandpa = { package = "paint-grandpa", path = "../../../paint/grandpa", default-features = false }
|
||||
indices = { package = "paint-indices", path = "../../../paint/indices", default-features = false }
|
||||
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 }
|
||||
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 = "paint-randomness-collective-flip", path = "../../../paint/randomness-collective-flip", default-features = false }
|
||||
randomness-collective-flip = { package = "pallet-randomness-collective-flip", path = "../../../palette/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 = "paint-sudo", path = "../../../paint/sudo", default-features = false }
|
||||
support = { package = "paint-support", path = "../../../paint/support", default-features = false }
|
||||
system = { package = "paint-system", path = "../../../paint/system", default-features = false }
|
||||
timestamp = { package = "paint-timestamp", path = "../../../paint/timestamp", default-features = false }
|
||||
transaction-payment = { package = "paint-transaction-payment", path = "../../../paint/transaction-payment", 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 }
|
||||
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/paint/example/src/lib.rs
|
||||
/// https://github.com/paritytech/substrate/blob/master/palette/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"}
|
||||
|
||||
# paint dependencies
|
||||
indices = { package = "paint-indices", path = "../../../paint/indices" }
|
||||
timestamp = { package = "paint-timestamp", path = "../../../paint/timestamp", default-features = false }
|
||||
# palette dependencies
|
||||
indices = { package = "pallet-indices", path = "../../../palette/indices" }
|
||||
timestamp = { package = "pallet-timestamp", path = "../../../palette/timestamp", default-features = false }
|
||||
sp-finality-tracker = { path = "../../../primitives/finality-tracker", default-features = false }
|
||||
contracts = { package = "paint-contracts", path = "../../../paint/contracts" }
|
||||
system = { package = "paint-system", path = "../../../paint/system" }
|
||||
balances = { package = "paint-balances", path = "../../../paint/balances" }
|
||||
transaction-payment = { package = "paint-transaction-payment", path = "../../../paint/transaction-payment" }
|
||||
support = { package = "paint-support", path = "../../../paint/support", default-features = false }
|
||||
im_online = { package = "paint-im-online", path = "../../../paint/im-online", default-features = false }
|
||||
sr-authority-discovery = { package = "paint-authority-discovery", path = "../../../paint/authority-discovery"}
|
||||
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"}
|
||||
|
||||
# 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 = "paint-support", path = "../../../paint/support" }
|
||||
balances = { package = "paint-balances", path = "../../../paint/balances" }
|
||||
transaction-payment = { package = "paint-transaction-payment", path = "../../../paint/transaction-payment" }
|
||||
session = { package = "paint-session", path = "../../../paint/session" }
|
||||
system = { package = "paint-system", path = "../../../paint/system" }
|
||||
timestamp = { package = "paint-timestamp", path = "../../../paint/timestamp" }
|
||||
treasury = { package = "paint-treasury", path = "../../../paint/treasury" }
|
||||
contracts = { package = "paint-contracts", path = "../../../paint/contracts" }
|
||||
grandpa = { package = "paint-grandpa", path = "../../../paint/grandpa" }
|
||||
indices = { package = "paint-indices", path = "../../../paint/indices" }
|
||||
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" }
|
||||
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" }
|
||||
paint-contracts-rpc = { path = "../../../paint/contracts/rpc/" }
|
||||
paint-transaction-payment-rpc = { path = "../../../paint/transaction-payment/rpc/" }
|
||||
paint-system-rpc = { path = "../../../paint/system/rpc/" }
|
||||
pallet-contracts-rpc = { path = "../../../palette/contracts/rpc/" }
|
||||
pallet-transaction-payment-rpc = { path = "../../../palette/transaction-payment/rpc/" }
|
||||
palette-system-rpc = { path = "../../../palette/system/rpc/" }
|
||||
transaction_pool = { package = "substrate-transaction-pool", path = "../../../client/transaction-pool" }
|
||||
@@ -41,15 +41,15 @@ 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: paint_system_rpc::AccountNonceApi<Block, AccountId, Index>,
|
||||
C::Api: paint_contracts_rpc::ContractsRuntimeApi<Block, AccountId, Balance>,
|
||||
C::Api: paint_transaction_payment_rpc::TransactionPaymentRuntimeApi<Block, Balance, UncheckedExtrinsic>,
|
||||
C::Api: palette_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 paint_system_rpc::{System, SystemApi};
|
||||
use paint_contracts_rpc::{Contracts, ContractsApi};
|
||||
use paint_transaction_payment_rpc::{TransactionPayment, TransactionPaymentApi};
|
||||
use palette_system_rpc::{System, SystemApi};
|
||||
use pallet_contracts_rpc::{Contracts, ContractsApi};
|
||||
use pallet_transaction_payment_rpc::{TransactionPayment, TransactionPaymentApi};
|
||||
|
||||
let mut io = jsonrpc_core::IoHandler::default();
|
||||
io.extend_with(
|
||||
|
||||
@@ -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 }
|
||||
|
||||
# paint dependencies
|
||||
authority-discovery = { package = "paint-authority-discovery", path = "../../../paint/authority-discovery", default-features = false }
|
||||
authorship = { package = "paint-authorship", path = "../../../paint/authorship", default-features = false }
|
||||
babe = { package = "paint-babe", path = "../../../paint/babe", default-features = false }
|
||||
balances = { package = "paint-balances", path = "../../../paint/balances", default-features = false }
|
||||
collective = { package = "paint-collective", path = "../../../paint/collective", default-features = false }
|
||||
contracts = { package = "paint-contracts", path = "../../../paint/contracts", default-features = false }
|
||||
contracts-rpc-runtime-api = { package = "paint-contracts-rpc-runtime-api", path = "../../../paint/contracts/rpc/runtime-api/", default-features = false }
|
||||
democracy = { package = "paint-democracy", path = "../../../paint/democracy", default-features = false }
|
||||
elections-phragmen = { package = "paint-elections-phragmen", path = "../../../paint/elections-phragmen", default-features = false }
|
||||
executive = { package = "paint-executive", path = "../../../paint/executive", default-features = false }
|
||||
finality-tracker = { package = "paint-finality-tracker", path = "../../../paint/finality-tracker", default-features = false }
|
||||
grandpa = { package = "paint-grandpa", path = "../../../paint/grandpa", default-features = false }
|
||||
im-online = { package = "paint-im-online", path = "../../../paint/im-online", default-features = false }
|
||||
indices = { package = "paint-indices", path = "../../../paint/indices", default-features = false }
|
||||
membership = { package = "paint-membership", path = "../../../paint/membership", default-features = false }
|
||||
nicks = { package = "paint-nicks", path = "../../../paint/nicks", default-features = false }
|
||||
offences = { package = "paint-offences", path = "../../../paint/offences", default-features = false }
|
||||
randomness-collective-flip = { package = "paint-randomness-collective-flip", path = "../../../paint/randomness-collective-flip", default-features = false }
|
||||
session = { package = "paint-session", path = "../../../paint/session", default-features = false, features = ["historical"] }
|
||||
staking = { package = "paint-staking", path = "../../../paint/staking", default-features = false }
|
||||
paint-staking-reward-curve = { path = "../../../paint/staking/reward-curve"}
|
||||
sudo = { package = "paint-sudo", path = "../../../paint/sudo", default-features = false }
|
||||
support = { package = "paint-support", path = "../../../paint/support", default-features = false }
|
||||
system = { package = "paint-system", path = "../../../paint/system", default-features = false }
|
||||
system-rpc-runtime-api = { package = "paint-system-rpc-runtime-api", path = "../../../paint/system/rpc/runtime-api/", default-features = false }
|
||||
timestamp = { package = "paint-timestamp", path = "../../../paint/timestamp", default-features = false }
|
||||
treasury = { package = "paint-treasury", path = "../../../paint/treasury", default-features = false }
|
||||
utility = { package = "paint-utility", path = "../../../paint/utility", default-features = false }
|
||||
transaction-payment = { package = "paint-transaction-payment", path = "../../../paint/transaction-payment", default-features = false }
|
||||
transaction-payment-rpc-runtime-api = { package = "paint-transaction-payment-rpc-runtime-api", path = "../../../paint/transaction-payment/rpc/runtime-api/", 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 }
|
||||
|
||||
[build-dependencies]
|
||||
wasm-builder-runner = { package = "substrate-wasm-builder-runner", path = "../../../client/utils/wasm-builder-runner", version = "1.0.4" }
|
||||
|
||||
@@ -78,7 +78,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
|
||||
// implementation changes and behavior does not, then leave spec_version as
|
||||
// is and increment impl_version.
|
||||
spec_version: 194,
|
||||
impl_version: 195,
|
||||
impl_version: 196,
|
||||
apis: RUNTIME_API_VERSIONS,
|
||||
};
|
||||
|
||||
@@ -235,7 +235,7 @@ impl session::historical::Trait for Runtime {
|
||||
type FullIdentificationOf = staking::ExposureOf<Runtime>;
|
||||
}
|
||||
|
||||
paint_staking_reward_curve::build! {
|
||||
pallet_staking_reward_curve::build! {
|
||||
const REWARD_CURVE: PiecewiseLinear<'static> = curve!(
|
||||
min_inflation: 0_025_000,
|
||||
max_inflation: 0_100_000,
|
||||
|
||||
@@ -6,26 +6,26 @@ description = "Test utilities for Substrate node."
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
balances = { package = "paint-balances", path = "../../../paint/balances" }
|
||||
balances = { package = "pallet-balances", path = "../../../palette/balances" }
|
||||
client = { package = "substrate-client", path = "../../../client/" }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0" }
|
||||
contracts = { package = "paint-contracts", path = "../../../paint/contracts" }
|
||||
grandpa = { package = "paint-grandpa", path = "../../../paint/grandpa" }
|
||||
indices = { package = "paint-indices", path = "../../../paint/indices" }
|
||||
contracts = { package = "pallet-contracts", path = "../../../palette/contracts" }
|
||||
grandpa = { package = "pallet-grandpa", path = "../../../palette/grandpa" }
|
||||
indices = { package = "pallet-indices", path = "../../../palette/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 = "paint-support", path = "../../../paint/support" }
|
||||
session = { package = "paint-session", path = "../../../paint/session" }
|
||||
runtime_support = { package = "palette-support", path = "../../../palette/support" }
|
||||
session = { package = "pallet-session", path = "../../../palette/session" }
|
||||
sr-primitives = { path = "../../../primitives/sr-primitives" }
|
||||
staking = { package = "paint-staking", path = "../../../paint/staking" }
|
||||
staking = { package = "pallet-staking", path = "../../../palette/staking" }
|
||||
substrate-executor = { path = "../../../client/executor" }
|
||||
system = { package = "paint-system", path = "../../../paint/system" }
|
||||
system = { package = "palette-system", path = "../../../palette/system" }
|
||||
test-client = { package = "substrate-test-client", path = "../../../test/utils/client" }
|
||||
timestamp = { package = "paint-timestamp", path = "../../../paint/timestamp" }
|
||||
transaction-payment = { package = "paint-transaction-payment", path = "../../../paint/transaction-payment" }
|
||||
treasury = { package = "paint-treasury", path = "../../../paint/treasury" }
|
||||
timestamp = { package = "pallet-timestamp", path = "../../../palette/timestamp" }
|
||||
transaction-payment = { package = "pallet-transaction-payment", path = "../../../palette/transaction-payment" }
|
||||
treasury = { package = "pallet-treasury", path = "../../../palette/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 = "paint-system", path = "../../paint/system" }
|
||||
balances = { package = "paint-balances", path = "../../paint/balances" }
|
||||
transaction-payment = { package = "paint-transaction-payment", path = "../../paint/transaction-payment" }
|
||||
system = { package = "palette-system", path = "../../palette/system" }
|
||||
balances = { package = "pallet-balances", path = "../../palette/balances" }
|
||||
transaction-payment = { package = "pallet-transaction-payment", path = "../../palette/transaction-payment" }
|
||||
|
||||
[features]
|
||||
bench = []
|
||||
@@ -40,22 +40,22 @@
|
||||
/primitives/rpc/ @tomusdrw
|
||||
|
||||
# GRANDPA, BABE, consensus stuff
|
||||
/paint/babe/ @andresilva @DemiMarie-parity
|
||||
/paint/grandpa/ @andresilva @DemiMarie-parity
|
||||
/palette/babe/ @andresilva @DemiMarie-parity
|
||||
/palette/grandpa/ @andresilva @DemiMarie-parity
|
||||
/client/finality-grandpa/ @andresilva @DemiMarie-parity
|
||||
/client/consensus/babe/ @andresilva @DemiMarie-parity
|
||||
/client/consensus/slots/ @andresilva @DemiMarie-parity
|
||||
|
||||
# Contracts
|
||||
/paint/contracts/ @pepyakin @thiolliere @jimpo
|
||||
/paint/contracts/src/wasm/runtime.rs @Robbepop
|
||||
/palette/contracts/ @pepyakin @thiolliere @jimpo
|
||||
/palette/contracts/src/wasm/runtime.rs @Robbepop
|
||||
|
||||
# Inflation points
|
||||
/paint/staking/src/inflation.rs @thiolliere
|
||||
/palette/staking/src/inflation.rs @thiolliere
|
||||
|
||||
# NPoS and Governance
|
||||
/paint/staking/ @kianenigma
|
||||
/paint/election/ @kianenigma
|
||||
/palette/staking/ @kianenigma
|
||||
/palette/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
|
||||
/paint/support/ @thiolliere @kianenigma
|
||||
/palette/support/ @thiolliere @kianenigma
|
||||
@@ -272,7 +272,7 @@ You can run all the tests if you like:
|
||||
[source, shell]
|
||||
cargo test --all
|
||||
|
||||
Or just run the tests of a specific package (i.e. `cargo test -p paint-assets`)
|
||||
Or just run the tests of a specific package (i.e. `cargo test -p pallet-assets`)
|
||||
|
||||
You can start a development chain with:
|
||||
|
||||
@@ -446,9 +446,9 @@ substrate-trie
|
||||
sr-api, sr-io, sr-primitives, sr-sandbox, sr-std, sr-version
|
||||
* Substrate Runtime Module Library (SRML)
|
||||
[source, shell]
|
||||
paint-assets, paint-balances, paint-consensus, paint-contracts, paint-council, paint-democracy, paint-example,
|
||||
paint-executive, paint-metadata, paint-session, paint-staking, paint-support, paint-system, paint-timestamp,
|
||||
paint-treasury
|
||||
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
|
||||
* 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
|
||||
* PAINT (formerly `srml`)
|
||||
* PALETTE (formerly `srml`)
|
||||
|
||||
Putting all these components together we have:
|
||||
|
||||
@@ -35,21 +35,31 @@ 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 `paint-`-crates
|
||||
** crates may not (dev-)depend on any `palette-`-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.
|
||||
|
||||
=== PAINT (formerly `srml`)
|
||||
=== PALETTE (formerly `srml`)
|
||||
|
||||
* _found in_: `/paint`
|
||||
* _crates prefix_: `paint-`
|
||||
* _found in_: `/palette`
|
||||
* _crates prefix_: `palette-` and `pallet-`
|
||||
* _constraints_:
|
||||
** all crates that go on chain, must be `[no_std]`
|
||||
** all crates that go on chain must be `[no_std]`
|
||||
** must not (dev-)depend on anything in `/client`
|
||||
|
||||
PAINT, the Parity Application Interface for Network-wide Transitions, is a set of modules implementing specific transition functions and features one (might) want to have in their runtime.
|
||||
PALETTE is a set of modules that implement specific transition functions and features one might want to have in their runtime.
|
||||
|
||||
=== integration tests
|
||||
_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.
|
||||
|
||||
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:
|
||||
|
||||
- Executive
|
||||
- Metadata
|
||||
- Support
|
||||
- System
|
||||
- Utility
|
||||
|
||||
=== Integration Tests
|
||||
|
||||
* _found in_: `/test`
|
||||
* _crates prefix_: `substrate-test`
|
||||
@@ -69,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 paint-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 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`.
|
||||
|
||||
==== Node Template
|
||||
|
||||
@@ -89,7 +99,7 @@ Subkey is a client library to generate keys and sign transactions to send to a s
|
||||
....
|
||||
+---------------+ +----------------+
|
||||
| | | |
|
||||
| runtime +<------+ paint |
|
||||
| runtime +<------+ palette |
|
||||
| | | |
|
||||
+------+-----+--+ +-------------+--+
|
||||
^ ^ ^
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "paint-assets"
|
||||
name = "pallet-assets"
|
||||
version = "2.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
@@ -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 = "paint-support", path = "../support", default-features = false }
|
||||
support = { package = "palette-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 = "paint-system", path = "../system", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
primitives = { package = "substrate-primitives", path = "../../primitives/core" }
|
||||
@@ -124,8 +124,8 @@
|
||||
//!
|
||||
//! ## Related Modules
|
||||
//!
|
||||
//! * [`System`](../paint_system/index.html)
|
||||
//! * [`Support`](../paint_support/index.html)
|
||||
//! * [`System`](../palette_system/index.html)
|
||||
//! * [`Support`](../palette_support/index.html)
|
||||
|
||||
// Ensure we're `no_std` when compiling for Wasm.
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "paint-aura"
|
||||
name = "pallet-aura"
|
||||
version = "2.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
@@ -11,14 +11,14 @@ inherents = { package = "substrate-inherents", path = "../../primitives/inherent
|
||||
primitives = { package = "substrate-primitives", path = "../../primitives/core", default-features = false }
|
||||
rstd = { package = "sr-std", path = "../../primitives/sr-std", default-features = false }
|
||||
serde = { version = "1.0.101", optional = true }
|
||||
session = { package = "paint-session", path = "../session", default-features = false }
|
||||
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 = "paint-support", path = "../support", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
substrate-consensus-aura-primitives = { path = "../../primitives/consensus/aura", default-features = false}
|
||||
system = { package = "paint-system", path = "../system", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
sp-timestamp = { package = "sp-timestamp", path = "../../primitives/timestamp", default-features = false }
|
||||
paint-timestamp = { package = "paint-timestamp", path = "../timestamp", default-features = false }
|
||||
pallet-timestamp = { package = "pallet-timestamp", path = "../timestamp", default-features = false }
|
||||
|
||||
|
||||
[dev-dependencies]
|
||||
@@ -40,5 +40,5 @@ std = [
|
||||
"substrate-consensus-aura-primitives/std",
|
||||
"system/std",
|
||||
"sp-timestamp/std",
|
||||
"paint-timestamp/std",
|
||||
"pallet-timestamp/std",
|
||||
]
|
||||
@@ -31,9 +31,9 @@
|
||||
//!
|
||||
//! ## Related Modules
|
||||
//!
|
||||
//! - [Timestamp](../paint_timestamp/index.html): The Timestamp module is used in Aura to track
|
||||
//! - [Timestamp](../pallet_timestamp/index.html): The Timestamp module is used in Aura to track
|
||||
//! consensus rounds (via `slots`).
|
||||
//! - [Consensus](../paint_consensus/index.html): The Consensus module does not relate directly to Aura,
|
||||
//! - [Consensus](../palette_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
|
||||
@@ -45,7 +45,7 @@
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
use paint_timestamp;
|
||||
use pallet_timestamp;
|
||||
|
||||
use rstd::{result, prelude::*};
|
||||
use codec::{Encode, Decode};
|
||||
@@ -67,7 +67,7 @@ use substrate_consensus_aura_primitives::{
|
||||
mod mock;
|
||||
mod tests;
|
||||
|
||||
pub trait Trait: paint_timestamp::Trait {
|
||||
pub trait Trait: pallet_timestamp::Trait {
|
||||
/// The identifier type for an authority.
|
||||
type AuthorityId: Member + Parameter + RuntimeAppPublic + Default;
|
||||
}
|
||||
@@ -176,7 +176,7 @@ impl<T: Trait> Module<T> {
|
||||
pub fn slot_duration() -> T::Moment {
|
||||
// we double the minimum block-period so each author can always propose within
|
||||
// the majority of its slot.
|
||||
<T as paint_timestamp::Trait>::MinimumPeriod::get().saturating_mul(2.into())
|
||||
<T as pallet_timestamp::Trait>::MinimumPeriod::get().saturating_mul(2.into())
|
||||
}
|
||||
|
||||
fn on_timestamp_set(now: T::Moment, slot_duration: T::Moment) {
|
||||
@@ -205,7 +205,7 @@ impl<T: Trait> OnTimestampSet<T::Moment> for Module<T> {
|
||||
}
|
||||
|
||||
impl<T: Trait> ProvideInherent for Module<T> {
|
||||
type Call = paint_timestamp::Call<T>;
|
||||
type Call = pallet_timestamp::Call<T>;
|
||||
type Error = MakeFatalError<inherents::Error>;
|
||||
const INHERENT_IDENTIFIER: InherentIdentifier = INHERENT_IDENTIFIER;
|
||||
|
||||
@@ -216,7 +216,7 @@ impl<T: Trait> ProvideInherent for Module<T> {
|
||||
/// Verify the validity of the inherent using the timestamp.
|
||||
fn check_inherent(call: &Self::Call, data: &InherentData) -> result::Result<(), Self::Error> {
|
||||
let timestamp = match call {
|
||||
paint_timestamp::Call::set(ref timestamp) => timestamp.clone(),
|
||||
pallet_timestamp::Call::set(ref timestamp) => timestamp.clone(),
|
||||
_ => return Ok(()),
|
||||
};
|
||||
|
||||
@@ -62,7 +62,7 @@ impl system::Trait for Test {
|
||||
type Version = ();
|
||||
}
|
||||
|
||||
impl paint_timestamp::Trait for Test {
|
||||
impl pallet_timestamp::Trait for Test {
|
||||
type Moment = u64;
|
||||
type OnTimestampSet = Aura;
|
||||
type MinimumPeriod = MinimumPeriod;
|
||||
File renamed without changes.
+4
-4
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "paint-authority-discovery"
|
||||
name = "pallet-authority-discovery"
|
||||
version = "0.1.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
@@ -12,10 +12,10 @@ primitives = { package = "substrate-primitives", path = "../../primitives/core"
|
||||
rstd = { package = "sr-std", path = "../../primitives/sr-std", default-features = false }
|
||||
serde = { version = "1.0.101", optional = true }
|
||||
runtime-io = { package = "sr-io", path = "../../primitives/sr-io", default-features = false }
|
||||
session = { package = "paint-session", path = "../session", default-features = false, features = [ "historical" ] }
|
||||
session = { package = "pallet-session", path = "../session", default-features = false, features = [ "historical" ] }
|
||||
sr-primitives = { path = "../../primitives/sr-primitives", default-features = false }
|
||||
support = { package = "paint-support", path = "../support", default-features = false }
|
||||
system = { package = "paint-system", path = "../system", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
sr-staking-primitives = { path = "../../primitives/sr-staking-primitives", default-features = false }
|
||||
File renamed without changes.
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "paint-authorship"
|
||||
name = "pallet-authorship"
|
||||
version = "0.1.0"
|
||||
description = "Block and Uncle Author tracking for the SRML"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
@@ -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 = "paint-support", path = "../support", default-features = false }
|
||||
system = { package = "paint-system", path = "../system", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-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"
|
||||
|
||||
File renamed without changes.
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "paint-babe"
|
||||
name = "pallet-babe"
|
||||
version = "2.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
@@ -12,11 +12,11 @@ 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 = "paint-support", path = "../support", default-features = false }
|
||||
system = { package = "paint-system", path = "../system", default-features = false }
|
||||
timestamp = { package = "paint-timestamp", path = "../timestamp", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-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 = "paint-session", path = "../session", default-features = false }
|
||||
session = { package = "pallet-session", path = "../session", default-features = false }
|
||||
babe-primitives = { package = "substrate-consensus-babe-primitives", path = "../../primitives/consensus/babe", default-features = false }
|
||||
runtime-io ={ package = "sr-io", path = "../../primitives/sr-io", default-features = false }
|
||||
|
||||
@@ -74,7 +74,7 @@ pub trait EpochChangeTrigger {
|
||||
}
|
||||
|
||||
/// A type signifying to BABE that an external trigger
|
||||
/// for epoch changes (e.g. paint-session) is used.
|
||||
/// for epoch changes (e.g. pallet-session) is used.
|
||||
pub struct ExternalTrigger;
|
||||
|
||||
impl EpochChangeTrigger for ExternalTrigger {
|
||||
@@ -316,7 +316,7 @@ impl<T: Trait> Module<T> {
|
||||
/// and the caller is the only caller of this function.
|
||||
///
|
||||
/// Typically, this is not handled directly by the user, but by higher-level validator-set manager logic like
|
||||
/// `paint-session`.
|
||||
/// `pallet-session`.
|
||||
pub fn enact_epoch_change(
|
||||
authorities: Vec<(AuthorityId, BabeAuthorityWeight)>,
|
||||
next_authorities: Vec<(AuthorityId, BabeAuthorityWeight)>,
|
||||
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "paint-balances"
|
||||
name = "pallet-balances"
|
||||
version = "2.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
@@ -11,13 +11,13 @@ codec = { package = "parity-scale-codec", version = "1.0.0", default-features =
|
||||
substrate-keyring = { path = "../../primitives/keyring", optional = true }
|
||||
rstd = { package = "sr-std", path = "../../primitives/sr-std", default-features = false }
|
||||
sr-primitives = { path = "../../primitives/sr-primitives", default-features = false }
|
||||
support = { package = "paint-support", path = "../support", default-features = false }
|
||||
system = { package = "paint-system", path = "../system", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
runtime-io = { package = "sr-io", path = "../../primitives/sr-io" }
|
||||
primitives = { package = "substrate-primitives", path = "../../primitives/core" }
|
||||
transaction-payment = { package = "paint-transaction-payment", path = "../transaction-payment" }
|
||||
transaction-payment = { package = "pallet-transaction-payment", path = "../transaction-payment" }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
@@ -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`](../paint_support/traits/trait.Currency.html): Functions for dealing with a
|
||||
//! - [`Currency`](../palette_support/traits/trait.Currency.html): Functions for dealing with a
|
||||
//! fungible assets system.
|
||||
//! - [`ReservableCurrency`](../paint_support/traits/trait.ReservableCurrency.html):
|
||||
//! - [`ReservableCurrency`](../palette_support/traits/trait.ReservableCurrency.html):
|
||||
//! Functions for dealing with assets that can be reserved from an account.
|
||||
//! - [`LockableCurrency`](../paint_support/traits/trait.LockableCurrency.html): Functions for
|
||||
//! - [`LockableCurrency`](../palette_support/traits/trait.LockableCurrency.html): Functions for
|
||||
//! dealing with accounts that allow liquidity restrictions.
|
||||
//! - [`Imbalance`](../paint_support/traits/trait.Imbalance.html): Functions for handling
|
||||
//! - [`Imbalance`](../palette_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`](../paint_system/trait.IsDeadAccount.html): Determiner to say whether a
|
||||
//! - [`IsDeadAccount`](../palette_system/trait.IsDeadAccount.html): Determiner to say whether a
|
||||
//! given account is unused.
|
||||
//!
|
||||
//! ## Interface
|
||||
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "paint-elections"
|
||||
name = "pallet-collective"
|
||||
version = "2.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
@@ -12,12 +12,12 @@ 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 = "paint-support", path = "../support", default-features = false }
|
||||
system = { package = "paint-system", path = "../system", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
hex-literal = "0.2.1"
|
||||
balances = { package = "paint-balances", path = "../balances" }
|
||||
balances = { package = "pallet-balances", path = "../balances" }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "paint-contracts"
|
||||
name = "pallet-contracts"
|
||||
version = "2.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
@@ -15,17 +15,17 @@ 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 = "paint-support", path = "../support", default-features = false }
|
||||
system = { package = "paint-system", path = "../system", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
wabt = "0.9.2"
|
||||
assert_matches = "1.3.0"
|
||||
hex-literal = "0.2.1"
|
||||
balances = { package = "paint-balances", path = "../balances" }
|
||||
balances = { package = "pallet-balances", path = "../balances" }
|
||||
hex = "0.3.2"
|
||||
timestamp = { package = "paint-timestamp", path = "../timestamp" }
|
||||
randomness-collective-flip = { package = "paint-randomness-collective-flip", path = "../randomness-collective-flip" }
|
||||
timestamp = { package = "pallet-timestamp", path = "../timestamp" }
|
||||
randomness-collective-flip = { package = "pallet-randomness-collective-flip", path = "../randomness-collective-flip" }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "paint-contracts-rpc"
|
||||
name = "pallet-contracts-rpc"
|
||||
version = "2.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
@@ -14,4 +14,4 @@ primitives = { package = "substrate-primitives", path = "../../../primitives/co
|
||||
rpc-primitives = { package = "substrate-rpc-primitives", path = "../../../primitives/rpc" }
|
||||
serde = { version = "1.0.101", features = ["derive"] }
|
||||
sr-primitives = { path = "../../../primitives/sr-primitives" }
|
||||
paint-contracts-rpc-runtime-api = { path = "./runtime-api" }
|
||||
pallet-contracts-rpc-runtime-api = { path = "./runtime-api" }
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "paint-contracts-rpc-runtime-api"
|
||||
name = "pallet-contracts-rpc-runtime-api"
|
||||
version = "2.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
File renamed without changes.
+1
-1
@@ -31,7 +31,7 @@ use sr_primitives::{
|
||||
};
|
||||
|
||||
pub use self::gen_client::Client as ContractsClient;
|
||||
pub use paint_contracts_rpc_runtime_api::{
|
||||
pub use pallet_contracts_rpc_runtime_api::{
|
||||
self as runtime_api, ContractExecResult, ContractsApi as ContractsRuntimeApi, GetStorageResult,
|
||||
};
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -84,7 +84,7 @@
|
||||
//!
|
||||
//! ## Related Modules
|
||||
//!
|
||||
//! * [Balances](../paint_balances/index.html)
|
||||
//! * [Balances](../pallet_balances/index.html)
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "paint-democracy"
|
||||
name = "pallet-democracy"
|
||||
version = "2.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
@@ -11,12 +11,12 @@ 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 = "paint-support", path = "../support", default-features = false }
|
||||
system = { package = "paint-system", path = "../system", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
primitives = { package = "substrate-primitives", path = "../../primitives/core" }
|
||||
balances = { package = "paint-balances", path = "../balances" }
|
||||
balances = { package = "pallet-balances", path = "../balances" }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
File renamed without changes.
File renamed without changes.
+5
-5
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "paint-elections-phragmen"
|
||||
name = "pallet-elections-phragmen"
|
||||
version = "2.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
@@ -8,14 +8,14 @@ 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 }
|
||||
paint-support = { path = "../support", default-features = false }
|
||||
system = { package = "paint-system", path = "../system", default-features = false }
|
||||
palette-support = { path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
rstd = { package = "sr-std", path = "../../primitives/sr-std", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
runtime_io = { package = "sr-io", path = "../../primitives/sr-io" }
|
||||
hex-literal = "0.2.1"
|
||||
balances = { package = "paint-balances", path = "../balances" }
|
||||
balances = { package = "pallet-balances", path = "../balances" }
|
||||
primitives = { package = "substrate-primitives", path = "../../primitives/core" }
|
||||
serde = { version = "1.0.101" }
|
||||
|
||||
@@ -23,7 +23,7 @@ serde = { version = "1.0.101" }
|
||||
default = ["std"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"paint-support/std",
|
||||
"palette-support/std",
|
||||
"sr-primitives/std",
|
||||
"phragmen/std",
|
||||
"system/std",
|
||||
+4
-4
@@ -80,7 +80,7 @@ use rstd::prelude::*;
|
||||
use codec::Decode;
|
||||
use sr_primitives::{print, traits::{Zero, StaticLookup, Bounded, Convert}};
|
||||
use sr_primitives::weights::SimpleDispatchInfo;
|
||||
use paint_support::{
|
||||
use palette_support::{
|
||||
decl_storage, decl_event, ensure, decl_module, dispatch,
|
||||
storage::unhashed,
|
||||
traits::{
|
||||
@@ -667,7 +667,7 @@ impl<T: Trait> Module<T> {
|
||||
mod tests {
|
||||
use super::*;
|
||||
use std::cell::RefCell;
|
||||
use paint_support::{assert_ok, assert_noop, parameter_types, assert_eq_uvec};
|
||||
use palette_support::{assert_ok, assert_noop, parameter_types, assert_eq_uvec};
|
||||
use primitives::H256;
|
||||
use sr_primitives::{
|
||||
Perbill, testing::Header, BuildStorage,
|
||||
@@ -783,7 +783,7 @@ mod tests {
|
||||
pub type Block = sr_primitives::generic::Block<Header, UncheckedExtrinsic>;
|
||||
pub type UncheckedExtrinsic = sr_primitives::generic::UncheckedExtrinsic<u32, u64, Call, ()>;
|
||||
|
||||
paint_support::construct_runtime!(
|
||||
palette_support::construct_runtime!(
|
||||
pub enum Test where
|
||||
Block = Block,
|
||||
NodeBlock = Block,
|
||||
@@ -863,7 +863,7 @@ mod tests {
|
||||
#[test]
|
||||
fn temp_migration_works() {
|
||||
ExtBuilder::default().build().execute_with(|| {
|
||||
use paint_support::storage::unhashed;
|
||||
use palette_support::storage::unhashed;
|
||||
use codec::Encode;
|
||||
|
||||
let old_members = vec![1u64, 2];
|
||||
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "paint-collective"
|
||||
name = "pallet-elections"
|
||||
version = "2.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
@@ -12,12 +12,12 @@ 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 = "paint-support", path = "../support", default-features = false }
|
||||
system = { package = "paint-system", path = "../system", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
hex-literal = "0.2.1"
|
||||
balances = { package = "paint-balances", path = "../balances" }
|
||||
balances = { package = "pallet-balances", path = "../balances" }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "paint-evm"
|
||||
name = "pallet-evm"
|
||||
version = "2.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
@@ -7,10 +7,10 @@ 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 = "paint-support", path = "../support", default-features = false }
|
||||
system = { package = "paint-system", path = "../system", default-features = false }
|
||||
timestamp = { package = "paint-timestamp", path = "../timestamp", default-features = false }
|
||||
balances = { package = "paint-balances", path = "../balances", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-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 }
|
||||
sr-primitives = { path = "../../primitives/sr-primitives", default-features = false }
|
||||
rstd = { package = "sr-std", path = "../../primitives/sr-std", default-features = false }
|
||||
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "paint-example"
|
||||
name = "pallet-example"
|
||||
version = "2.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
@@ -7,9 +7,9 @@ edition = "2018"
|
||||
[dependencies]
|
||||
serde = { version = "1.0.101", optional = true }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false }
|
||||
support = { package = "paint-support", path = "../support", default-features = false }
|
||||
system = { package = "paint-system", path = "../system", default-features = false }
|
||||
balances = { package = "paint-balances", path = "../balances", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-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 }
|
||||
runtime-io = { package = "sr-io", path = "../../primitives/sr-io", default-features = false }
|
||||
@@ -20,7 +20,7 @@
|
||||
//! The Example: A simple example of a runtime module demonstrating
|
||||
//! concepts, APIs and structures common to most runtime modules.
|
||||
//!
|
||||
//! Run `cargo doc --package paint-example --open` to view this module's documentation.
|
||||
//! Run `cargo doc --package pallet-example --open` to view this module's documentation.
|
||||
//!
|
||||
//! ### Documentation Guidelines:
|
||||
//!
|
||||
@@ -49,8 +49,8 @@
|
||||
//!
|
||||
//! ### Documentation Template:<br>
|
||||
//!
|
||||
//! Copy and paste this template from paint/example/src/lib.rs into file
|
||||
//! `paint/<INSERT_CUSTOM_MODULE_NAME>/src/lib.rs` of your own custom module and complete it.
|
||||
//! 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.
|
||||
//! <details><p><pre>
|
||||
//! // Add heading with custom module name
|
||||
//!
|
||||
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "paint-executive"
|
||||
name = "palette-executive"
|
||||
version = "2.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
@@ -10,15 +10,15 @@ 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 = "paint-support", path = "../support", default-features = false }
|
||||
system = { package = "paint-system", path = "../system", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
hex-literal = "0.2.1"
|
||||
primitives = { package = "substrate-primitives", path = "../../primitives/core" }
|
||||
paint-indices = { path = "../indices" }
|
||||
balances = { package = "paint-balances", path = "../balances" }
|
||||
transaction-payment = { package = "paint-transaction-payment", path = "../transaction-payment" }
|
||||
pallet-indices = { path = "../indices" }
|
||||
balances = { package = "pallet-balances", path = "../balances" }
|
||||
transaction-payment = { package = "pallet-transaction-payment", path = "../transaction-payment" }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
@@ -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](../paint_system/index.html) to perform these cross-cutting functions.
|
||||
//! [SRML System module](../palette_system/index.html) to perform these cross-cutting functions.
|
||||
//!
|
||||
//! The Executive module provides functions to:
|
||||
//!
|
||||
@@ -51,7 +51,7 @@
|
||||
//!
|
||||
//! ```
|
||||
//! # use sr_primitives::generic;
|
||||
//! # use paint_executive as executive;
|
||||
//! # use palette_executive as executive;
|
||||
//! # pub struct UncheckedExtrinsic {};
|
||||
//! # pub struct Header {};
|
||||
//! # type Context = system::ChainContext<Runtime>;
|
||||
+4
-4
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "paint-finality-tracker"
|
||||
name = "pallet-finality-tracker"
|
||||
version = "2.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
@@ -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 = "paint-support", path = "../support", default-features = false }
|
||||
paint-system = { path = "../system", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
palette-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",
|
||||
"paint-system/std",
|
||||
"palette-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 paint_system::{ensure_none, Trait as SystemTrait};
|
||||
use palette_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!(
|
||||
paint_system::Module::<T>::block_number() >= hint,
|
||||
palette_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 = paint_system::Module::<T>::block_number();
|
||||
let now = palette_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 paint_system as system;
|
||||
use palette_system as system;
|
||||
use std::cell::RefCell;
|
||||
|
||||
#[derive(Clone, PartialEq, Debug)]
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "paint-generic-asset"
|
||||
name = "pallet-generic-asset"
|
||||
version = "2.0.0"
|
||||
authors = ["Centrality Developers <support@centrality.ai>"]
|
||||
edition = "2018"
|
||||
@@ -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 = "paint-support", path = "../support", default-features = false }
|
||||
system = { package = "paint-system", path = "../system", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
runtime-io ={ package = "sr-io", path = "../../primitives/sr-io" }
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "paint-grandpa"
|
||||
name = "pallet-grandpa"
|
||||
version = "2.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
@@ -12,10 +12,10 @@ 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 = "paint-support", path = "../support", default-features = false }
|
||||
system = { package = "paint-system", path = "../system", default-features = false }
|
||||
session = { package = "paint-session", path = "../session", default-features = false }
|
||||
finality-tracker = { package = "paint-finality-tracker", path = "../finality-tracker", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-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 }
|
||||
|
||||
[dev-dependencies]
|
||||
runtime-io ={ package = "sr-io", path = "../../primitives/sr-io" }
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,22 +1,22 @@
|
||||
[package]
|
||||
name = "paint-im-online"
|
||||
name = "pallet-im-online"
|
||||
version = "0.1.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
app-crypto = { package = "substrate-application-crypto", path = "../../primitives/application-crypto", default-features = false }
|
||||
authorship = { package = "paint-authorship", path = "../authorship", default-features = false }
|
||||
authorship = { package = "pallet-authorship", path = "../authorship", default-features = false }
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
|
||||
primitives = { package="substrate-primitives", path = "../../primitives/core", default-features = false }
|
||||
rstd = { package = "sr-std", path = "../../primitives/sr-std", default-features = false }
|
||||
serde = { version = "1.0.101", optional = true }
|
||||
session = { package = "paint-session", path = "../session", default-features = false }
|
||||
session = { package = "pallet-session", path = "../session", default-features = false }
|
||||
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 = "paint-support", path = "../support", default-features = false }
|
||||
system = { package = "paint-system", path = "../system", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
offchain = { package = "substrate-offchain", path = "../../client/offchain" }
|
||||
@@ -44,7 +44,7 @@
|
||||
//! ```
|
||||
//! use support::{decl_module, dispatch::Result};
|
||||
//! use system::ensure_signed;
|
||||
//! use paint_im_online::{self as im_online};
|
||||
//! use pallet_im_online::{self as im_online};
|
||||
//!
|
||||
//! pub trait Trait: im_online::Trait {}
|
||||
//!
|
||||
@@ -62,7 +62,7 @@
|
||||
//!
|
||||
//! ## Dependencies
|
||||
//!
|
||||
//! This module depends on the [Session module](../paint_session/index.html).
|
||||
//! This module depends on the [Session module](../pallet_session/index.html).
|
||||
|
||||
// Ensure we're `no_std` when compiling for Wasm.
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
@@ -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"paint/im-online-worker-status";
|
||||
const DB_KEY: &[u8] = b"palette/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
|
||||
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "paint-indices"
|
||||
name = "pallet-indices"
|
||||
version = "2.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
@@ -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 = "paint-support", path = "../support", default-features = false }
|
||||
system = { package = "paint-system", path = "../system", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
ref_thread_local = "0.0.0"
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "paint-membership"
|
||||
name = "pallet-membership"
|
||||
version = "2.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
@@ -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 = "paint-support", path = "../support", default-features = false }
|
||||
system = { package = "paint-system", path = "../system", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
sr-primitives = { path = "../../primitives/sr-primitives", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
File renamed without changes.
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "paint-metadata"
|
||||
name = "palette-metadata"
|
||||
version = "2.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
File renamed without changes.
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "paint-nicks"
|
||||
name = "pallet-nicks"
|
||||
version = "2.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
@@ -10,12 +10,12 @@ 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 = "paint-support", path = "../support", default-features = false }
|
||||
system = { package = "paint-system", path = "../system", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
primitives = { package = "substrate-primitives", path = "../../primitives/core" }
|
||||
balances = { package = "paint-balances", path = "../balances", default-features = false }
|
||||
balances = { package = "pallet-balances", path = "../balances", default-features = false }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
File renamed without changes.
@@ -1,18 +1,18 @@
|
||||
[package]
|
||||
name = "paint-offences"
|
||||
name = "pallet-offences"
|
||||
version = "1.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
balances = { package = "paint-balances", path = "../balances", default-features = false }
|
||||
balances = { package = "pallet-balances", path = "../balances", 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 }
|
||||
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 = "paint-support", path = "../support", default-features = false }
|
||||
system = { package = "paint-system", path = "../system", default-features = false }
|
||||
support = { package = "palette-support", path = "../support", default-features = false }
|
||||
system = { package = "palette-system", path = "../system", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
runtime-io = { package = "sr-io", path = "../../primitives/sr-io" }
|
||||
File renamed without changes.
@@ -148,7 +148,7 @@ impl<T: Clone> offence::Offence<T> for Offence<T> {
|
||||
}
|
||||
|
||||
fn session_index(&self) -> SessionIndex {
|
||||
// session index is not used by the paint-offences directly, but rather it exists only for
|
||||
// session index is not used by the pallet-offences directly, but rather it exists only for
|
||||
// filtering historical reports.
|
||||
unimplemented!()
|
||||
}
|
||||
Loaded 100 of 206 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user