mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 22:27:56 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user