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:
joe petrowski
2019-11-21 01:08:25 +01:00
committed by Benjamin Kampmann
parent 512c86a72f
commit 2783b44207
206 changed files with 898 additions and 888 deletions
+12 -12
View File
@@ -338,14 +338,14 @@ impl GetRuntimeBlockType for Runtime {
}
impl_outer_origin!{
pub enum Origin for Runtime where system = paint_system {}
pub enum Origin for Runtime where system = palette_system {}
}
#[derive(Clone, Encode, Decode, Eq, PartialEq, RuntimeDebug)]
pub struct Event;
impl From<paint_system::Event> for Event {
fn from(_evt: paint_system::Event) -> Self {
impl From<palette_system::Event> for Event {
fn from(_evt: palette_system::Event) -> Self {
unimplemented!("Not required in tests!")
}
}
@@ -358,7 +358,7 @@ parameter_types! {
pub const AvailableBlockRatio: Perbill = Perbill::from_percent(75);
}
impl paint_system::Trait for Runtime {
impl palette_system::Trait for Runtime {
type Origin = Origin;
type Call = Extrinsic;
type Index = u64;
@@ -376,7 +376,7 @@ impl paint_system::Trait for Runtime {
type Version = ();
}
impl paint_timestamp::Trait for Runtime {
impl pallet_timestamp::Trait for Runtime {
/// A timestamp: milliseconds since the unix epoch.
type Moment = u64;
type OnTimestampSet = ();
@@ -388,13 +388,13 @@ parameter_types! {
pub const ExpectedBlockTime: u64 = 10_000;
}
impl paint_babe::Trait for Runtime {
impl pallet_babe::Trait for Runtime {
type EpochDuration = EpochDuration;
type ExpectedBlockTime = ExpectedBlockTime;
// there is no actual runtime in this test-runtime, so testing crates
// are manually adding the digests. normally in this situation you'd use
// paint_babe::SameAuthoritiesForever.
type EpochChangeTrigger = paint_babe::ExternalTrigger;
// pallet_babe::SameAuthoritiesForever.
type EpochChangeTrigger = pallet_babe::ExternalTrigger;
}
/// Adds one to the given input and returns the final result.
@@ -615,7 +615,7 @@ cfg_if! {
c: (3, 10),
genesis_authorities: system::authorities()
.into_iter().map(|x|(x, 1)).collect(),
randomness: <paint_babe::Module<Runtime>>::randomness(),
randomness: <pallet_babe::Module<Runtime>>::randomness(),
secondary_slots: true,
}
}
@@ -634,7 +634,7 @@ cfg_if! {
}
}
impl paint_system_rpc_runtime_api::AccountNonceApi<Block, AccountId, Index> for Runtime {
impl palette_system_rpc_runtime_api::AccountNonceApi<Block, AccountId, Index> for Runtime {
fn account_nonce(_account: AccountId) -> Index {
0
}
@@ -831,7 +831,7 @@ cfg_if! {
c: (3, 10),
genesis_authorities: system::authorities()
.into_iter().map(|x|(x, 1)).collect(),
randomness: <paint_babe::Module<Runtime>>::randomness(),
randomness: <pallet_babe::Module<Runtime>>::randomness(),
secondary_slots: true,
}
}
@@ -850,7 +850,7 @@ cfg_if! {
}
}
impl paint_system_rpc_runtime_api::AccountNonceApi<Block, AccountId, Index> for Runtime {
impl palette_system_rpc_runtime_api::AccountNonceApi<Block, AccountId, Index> for Runtime {
fn account_nonce(_account: AccountId) -> Index {
0
}
+1 -1
View File
@@ -29,7 +29,7 @@ use sr_primitives::{
transaction_validity::{TransactionValidity, ValidTransaction, InvalidTransaction},
};
use codec::{KeyedVec, Encode};
use paint_system::Trait;
use palette_system::Trait;
use crate::{
AccountId, BlockNumber, Extrinsic, Transfer, H256 as Hash, Block, Header, Digest, AuthorityId
};