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:
Shawn Tabrizi
2019-11-22 19:21:25 +01:00
committed by GitHub
parent 68351da29b
commit c9175b59ff
206 changed files with 485 additions and 483 deletions
+10 -10
View File
@@ -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" }
+10 -10
View File
@@ -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"
+3 -3
View File
@@ -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" }
+2 -2
View File
@@ -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};
+31 -31
View File
@@ -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" }
+11 -11
View File
@@ -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"