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
+8 -8
View File
@@ -12,7 +12,7 @@ babe-primitives = { package = "substrate-consensus-babe-primitives", path = "../
block-builder-api = { package = "substrate-block-builder-runtime-api", path = "../../../primitives/block-builder/runtime-api", default-features = false }
cfg-if = "0.1.10"
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"] }
executive = { package = "palette-executive", path = "../../../palette/executive", default-features = false }
executive = { package = "frame-executive", path = "../../../frame/executive", default-features = false }
inherents = { package = "substrate-inherents", path = "../../../primitives/inherents", default-features = false }
keyring = { package = "substrate-keyring", path = "../../../primitives/keyring", optional = true }
log = { version = "0.4.8", optional = true }
@@ -22,16 +22,16 @@ primitives = { package = "substrate-primitives", path = "../../../primitives/cor
rstd = { package = "sr-std", path = "../../../primitives/sr-std", default-features = false }
runtime-interface = { package = "substrate-runtime-interface", path = "../../../primitives/runtime-interface", default-features = false}
runtime_io = { package = "sr-io", path = "../../../primitives/sr-io", default-features = false }
runtime_support = { package = "palette-support", path = "../../../palette/support", default-features = false }
runtime_support = { package = "frame-support", path = "../../../frame/support", default-features = false }
runtime_version = { package = "sr-version", path = "../../../primitives/sr-version", default-features = false }
serde = { version = "1.0.101", optional = true, features = ["derive"] }
session = { package = "substrate-session", path = "../../../primitives/session", default-features = false }
sr-api = { path = "../../../primitives/sr-api", default-features = false }
sr-primitives = { path = "../../../primitives/sr-primitives", default-features = false }
pallet-babe = { path = "../../../palette/babe", default-features = false }
palette-system = { path = "../../../palette/system", default-features = false }
palette-system-rpc-runtime-api = { path = "../../../palette/system/rpc/runtime-api", default-features = false }
pallet-timestamp = { path = "../../../palette/timestamp", default-features = false }
pallet-babe = { path = "../../../frame/babe", default-features = false }
frame-system = { path = "../../../frame/system", default-features = false }
frame-system-rpc-runtime-api = { path = "../../../frame/system/rpc/runtime-api", default-features = false }
pallet-timestamp = { path = "../../../frame/timestamp", default-features = false }
substrate-client = { path = "../../../client", optional = true }
substrate-trie = { path = "../../../primitives/trie", default-features = false }
transaction-pool-api = { package = "substrate-transaction-pool-runtime-api", path = "../../../primitives/transaction-pool/runtime-api", default-features = false }
@@ -73,8 +73,8 @@ std = [
"sr-api/std",
"sr-primitives/std",
"pallet-babe/std",
"palette-system-rpc-runtime-api/std",
"palette-system/std",
"frame-system-rpc-runtime-api/std",
"frame-system/std",
"pallet-timestamp/std",
"substrate-client",
"substrate-trie/std",
+6 -6
View File
@@ -338,14 +338,14 @@ impl GetRuntimeBlockType for Runtime {
}
impl_outer_origin!{
pub enum Origin for Runtime where system = palette_system {}
pub enum Origin for Runtime where system = frame_system {}
}
#[derive(Clone, Encode, Decode, Eq, PartialEq, RuntimeDebug)]
pub struct Event;
impl From<palette_system::Event> for Event {
fn from(_evt: palette_system::Event) -> Self {
impl From<frame_system::Event> for Event {
fn from(_evt: frame_system::Event) -> Self {
unimplemented!("Not required in tests!")
}
}
@@ -358,7 +358,7 @@ parameter_types! {
pub const AvailableBlockRatio: Perbill = Perbill::from_percent(75);
}
impl palette_system::Trait for Runtime {
impl frame_system::Trait for Runtime {
type Origin = Origin;
type Call = Extrinsic;
type Index = u64;
@@ -634,7 +634,7 @@ cfg_if! {
}
}
impl palette_system_rpc_runtime_api::AccountNonceApi<Block, AccountId, Index> for Runtime {
impl frame_system_rpc_runtime_api::AccountNonceApi<Block, AccountId, Index> for Runtime {
fn account_nonce(_account: AccountId) -> Index {
0
}
@@ -850,7 +850,7 @@ cfg_if! {
}
}
impl palette_system_rpc_runtime_api::AccountNonceApi<Block, AccountId, Index> for Runtime {
impl frame_system_rpc_runtime_api::AccountNonceApi<Block, AccountId, Index> for Runtime {
fn account_nonce(_account: AccountId) -> Index {
0
}
+1 -1
View File
@@ -31,7 +31,7 @@ use sr_primitives::{
},
};
use codec::{KeyedVec, Encode};
use palette_system::Trait;
use frame_system::Trait;
use crate::{
AccountId, BlockNumber, Extrinsic, Transfer, H256 as Hash, Block, Header, Digest, AuthorityId
};