Skip to content

Commit

Permalink
Release Koi (#1509)
Browse files Browse the repository at this point in the history
* Release Koi

* Release Koi

* Benchmark

* Configure

* Format
  • Loading branch information
AurevoirXavier authored Jun 4, 2024
1 parent e043cf8 commit 4ea2895
Show file tree
Hide file tree
Showing 32 changed files with 544 additions and 747 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions node/src/chain_spec/koi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pub fn development_config() -> ChainSpec {
None,
Some(properties()),
Extensions {
relay_chain: "paseo-local".into(), // You MUST set this to the correct network!
relay_chain: "rococo-local".into(), // You MUST set this to the correct network!
para_id: 2105,
},
)
Expand Down Expand Up @@ -132,7 +132,7 @@ pub fn local_config() -> ChainSpec {
None,
Some(properties()),
Extensions {
relay_chain: "paseo-local".into(), // You MUST set this to the correct network!
relay_chain: "rococo-local".into(), // You MUST set this to the correct network!
para_id: 2105,
},
)
Expand Down
2 changes: 1 addition & 1 deletion node/src/service/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ pub trait IdentifyVariant {

/// Returns if this is a configuration for the `Koi` network.
fn is_koi(&self) -> bool {
self.id().starts_with("koi")
self.id().starts_with("darwinia-koi")
}

/// Returns true if this configuration is for a development network.
Expand Down
1 change: 0 additions & 1 deletion pallet/staking/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2024-04-17, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `Xaviers-MacBook-Pro-16.local`, CPU: `<UNKNOWN>`
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("koi-dev"), DB CACHE: 1024

// Executed Command:
Expand Down
4 changes: 0 additions & 4 deletions runtime/koi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ parachain-info = { workspace = true }
cumulus-pallet-session-benchmarking = { workspace = true, optional = true }

# darwinia
darwinia-account-migration = { workspace = true }
darwinia-asset-limit = { workspace = true }
darwinia-common-runtime = { workspace = true }
darwinia-deposit = { workspace = true }
Expand Down Expand Up @@ -155,7 +154,6 @@ std = [
"cumulus-pallet-session-benchmarking?/std",

# darwinia
"darwinia-account-migration/std",
"darwinia-asset-limit/std",
"darwinia-common-runtime/std",
"darwinia-deposit/std",
Expand Down Expand Up @@ -279,7 +277,6 @@ runtime-benchmarks = [
"cumulus-pallet-session-benchmarking/runtime-benchmarks",

# darwinia
"darwinia-account-migration/runtime-benchmarks",
"darwinia-common-runtime/runtime-benchmarks",
"darwinia-deposit/runtime-benchmarks",
"darwinia-ethtx-forwarder/runtime-benchmarks",
Expand Down Expand Up @@ -342,7 +339,6 @@ try-runtime = [
"parachain-info/try-runtime",

# darwinia
"darwinia-account-migration/try-runtime",
"darwinia-asset-limit/try-runtime",
"darwinia-deposit/try-runtime",
"darwinia-ethtx-forwarder/try-runtime",
Expand Down
60 changes: 29 additions & 31 deletions runtime/koi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,46 +102,45 @@ frame_support::construct_runtime! {
TransactionPayment: pallet_transaction_payment = 5,
Assets: pallet_assets = 6,
Deposit: darwinia_deposit = 7,
AccountMigration: darwinia_account_migration = 8,

// Consensus stuff.
Authorship: pallet_authorship = 9,
DarwiniaStaking: darwinia_staking = 10,
Session: pallet_session = 11,
Aura: pallet_aura = 12,
AuraExt: cumulus_pallet_aura_ext = 13,
Authorship: pallet_authorship = 8,
DarwiniaStaking: darwinia_staking = 9,
Session: pallet_session = 10,
Aura: pallet_aura = 11,
AuraExt: cumulus_pallet_aura_ext = 12,

// Governance stuff.
TechnicalCommittee: pallet_collective::<Instance2> = 14,
Treasury: pallet_treasury = 15,
ConvictionVoting: pallet_conviction_voting = 16,
Referenda: pallet_referenda = 17,
Origins: custom_origins = 18,
Whitelist: pallet_whitelist = 19,
TechnicalCommittee: pallet_collective::<Instance1> = 13,
Treasury: pallet_treasury = 14,
ConvictionVoting: pallet_conviction_voting = 15,
Referenda: pallet_referenda = 16,
Origins: custom_origins = 17,
Whitelist: pallet_whitelist = 18,

// Utility stuff.
Sudo: pallet_sudo = 20,
Utility: pallet_utility = 21,
Identity: pallet_identity = 22,
Scheduler: pallet_scheduler = 23,
Preimage: pallet_preimage = 24,
Proxy: pallet_proxy = 25,
TxPause: pallet_tx_pause = 26,
Sudo: pallet_sudo = 19,
Utility: pallet_utility = 20,
Identity: pallet_identity = 21,
Scheduler: pallet_scheduler = 22,
Preimage: pallet_preimage = 23,
Proxy: pallet_proxy = 24,
TxPause: pallet_tx_pause = 25,

// XCM stuff.
XcmpQueue: cumulus_pallet_xcmp_queue = 27,
PolkadotXcm: pallet_xcm = 28,
CumulusXcm: cumulus_pallet_xcm = 29,
EthereumXcm: pallet_ethereum_xcm = 30,
DmpQueue: cumulus_pallet_dmp_queue = 31,
AssetManager: pallet_asset_manager = 32,
XTokens: orml_xtokens = 33,
AssetLimit: darwinia_asset_limit = 34,
XcmpQueue: cumulus_pallet_xcmp_queue = 26,
PolkadotXcm: pallet_xcm = 27,
CumulusXcm: cumulus_pallet_xcm = 28,
EthereumXcm: pallet_ethereum_xcm = 29,
DmpQueue: cumulus_pallet_dmp_queue = 30,
AssetManager: pallet_asset_manager = 31,
XTokens: orml_xtokens = 32,
AssetLimit: darwinia_asset_limit = 33,

// EVM stuff.
Ethereum: pallet_ethereum = 35,
EVM: pallet_evm = 36,
EthTxForwarder: darwinia_ethtx_forwarder = 37,
Ethereum: pallet_ethereum = 34,
EVM: pallet_evm = 35,
EthTxForwarder: darwinia_ethtx_forwarder = 36,
}
}

Expand All @@ -150,7 +149,6 @@ frame_benchmarking::define_benchmarks! {
// cumulus
[cumulus_pallet_xcmp_queue, XcmpQueue]
// darwinia
[darwinia_account_migration, AccountMigration]
[darwinia_deposit, Deposit]
[darwinia_staking, DarwiniaStaking]
// substrate
Expand Down
2 changes: 0 additions & 2 deletions runtime/koi/src/pallets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ mod deposit;
#[cfg(feature = "runtime-benchmarks")]
pub use deposit::*;

mod account_migration;

// Consensus stuff.
mod authorship;

Expand Down
25 changes: 0 additions & 25 deletions runtime/koi/src/pallets/account_migration.rs

This file was deleted.

2 changes: 1 addition & 1 deletion runtime/koi/src/pallets/governance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub use origin::{custom_origins, GeneralAdmin};
mod track;
use track::*;

pub use pallet_collective::Instance2 as TechnicalCollective;
pub use pallet_collective::Instance1 as TechnicalCollective;

pub(super) use crate::*;

Expand Down
3 changes: 1 addition & 2 deletions runtime/koi/src/pallets/tx_pause.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ impl frame_support::traits::Contains<pallet_tx_pause::RuntimeCallNameOf<Runtime>
pallet,
b"Balances"
| b"Assets" | b"Vesting"
| b"Deposit" | b"AccountMigration"
| b"DarwiniaStaking"
| b"Deposit" | b"DarwiniaStaking"
| b"Ethereum" | b"EVM"
| b"EthTxForwarder"
)
Expand Down
1 change: 0 additions & 1 deletion runtime/koi/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#![allow(clippy::unnecessary_cast)]

pub mod cumulus_pallet_xcmp_queue;
pub mod darwinia_account_migration;
pub mod darwinia_deposit;
pub mod darwinia_staking;
pub mod frame_system;
Expand Down
4 changes: 2 additions & 2 deletions runtime/koi/src/weights/cumulus_pallet_xcmp_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
//! Autogenerated weights for `cumulus_pallet_xcmp_queue`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2024-04-17, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2024-06-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("koi-dev")`, DB CACHE: 1024

Expand Down Expand Up @@ -61,7 +61,7 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `42`
// Estimated: `1527`
// Minimum execution time: 6_000_000 picoseconds.
// Minimum execution time: 5_000_000 picoseconds.
Weight::from_parts(6_000_000, 0)
.saturating_add(Weight::from_parts(0, 1527))
.saturating_add(T::DbWeight::get().reads(1))
Expand Down
149 changes: 0 additions & 149 deletions runtime/koi/src/weights/darwinia_account_migration.rs

This file was deleted.

Loading

0 comments on commit 4ea2895

Please sign in to comment.