mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 05:21:08 +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:
committed by
Benjamin Kampmann
parent
512c86a72f
commit
2783b44207
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user