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
+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
};