diff --git a/.github/shrink-cache.sh b/.github/shrink-cache.sh index 5248c258f..62bd1673a 100755 --- a/.github/shrink-cache.sh +++ b/.github/shrink-cache.sh @@ -9,7 +9,7 @@ done # --- -for r in darwinia crab pangolin +for r in darwinia crab koi do rm -rf target/${PROFILE}/wbuild/${r}-runtime 2> /dev/null || true done diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 6b42a6201..a6425d86b 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -110,7 +110,7 @@ jobs: strategy: matrix: runtime: - [runtime/darwinia, runtime/crab, runtime/pangolin] + [runtime/darwinia, runtime/crab, runtime/koi] runs-on: ubuntu-latest steps: - name: Fetch latest code @@ -138,8 +138,8 @@ jobs: compare-with: "https://crab-rpc.darwiniacommunitydao.xyz", }, { - chain: pangolin-dev, - compare-with: "https://pangolin-rpc.darwinia.network", + chain: koi-dev, + compare-with: "https://koi-rpc.darwinia.network", }, ] needs: [basic-checks] @@ -167,7 +167,7 @@ jobs: chmod u+x darwinia sudo mv darwinia /usr/bin - name: Launch darwinia - run: darwinia --chain pangolin-dev --tmp --alice --tracing-api debug,trace --frontier-backend-type sql & + run: darwinia --chain koi-dev --tmp --alice --tracing-api debug,trace --frontier-backend-type sql & - name: Install Node 19 uses: actions/setup-node@v4 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 324b79654..8f78844c2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,10 +36,10 @@ jobs: features: darwinia-native,crab-native,evm-tracing type: tracing - network: testnet - features: pangolin-native + features: koi-native bz2: true - network: testnet - features: pangolin-native,evm-tracing + features: koi-native,evm-tracing type: tracing steps: - name: Free disk space @@ -100,7 +100,7 @@ jobs: type: mainnet - name: crab type: mainnet - - name: pangolin + - name: koi type: testnet steps: - name: Fetch latest code @@ -265,7 +265,7 @@ jobs: cat crab-runtime/runtime.md >> node.md cat node.tmp.md >> node.md else - cat pangolin-runtime/runtime.md >> node.md + cat koi-runtime/runtime.md >> node.md cat node.tmp.md >> node.md fi - name: Hash file diff --git a/Cargo.lock b/Cargo.lock index 4c3b02659..e3c1676cd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2475,13 +2475,13 @@ dependencies = [ "frame-benchmarking-cli", "futures 0.3.30", "jsonrpsee", + "koi-runtime", "log", "moonbeam-primitives-ext", "moonbeam-rpc-debug", "moonbeam-rpc-primitives-debug", "moonbeam-rpc-trace", "pallet-transaction-payment-rpc", - "pangolin-runtime", "polkadot-cli", "polkadot-primitives", "sc-basic-authorship", @@ -5503,6 +5503,110 @@ dependencies = [ "cpufeatures", ] +[[package]] +name = "koi-runtime" +version = "6.6.3" +dependencies = [ + "array-bytes", + "cumulus-pallet-aura-ext", + "cumulus-pallet-dmp-queue", + "cumulus-pallet-parachain-system", + "cumulus-pallet-session-benchmarking", + "cumulus-pallet-xcm", + "cumulus-pallet-xcmp-queue", + "cumulus-primitives-core", + "cumulus-primitives-utility", + "darwinia-account-migration", + "darwinia-asset-limit", + "darwinia-common-runtime", + "darwinia-deposit", + "darwinia-ethtx-forwarder", + "darwinia-precompile-assets", + "darwinia-precompile-bls12-381", + "darwinia-precompile-deposit", + "darwinia-precompile-staking", + "darwinia-precompile-state-storage", + "darwinia-staking", + "dc-primitives", + "fp-evm", + "fp-rpc", + "fp-self-contained", + "frame-benchmarking", + "frame-executive", + "frame-support", + "frame-system", + "frame-system-benchmarking", + "frame-system-rpc-runtime-api", + "frame-try-runtime", + "log", + "moonbeam-evm-tracer", + "moonbeam-rpc-primitives-debug", + "orml-xcm-support", + "orml-xtokens", + "pallet-asset-manager", + "pallet-assets", + "pallet-aura", + "pallet-authorship", + "pallet-balances", + "pallet-collective", + "pallet-conviction-voting", + "pallet-democracy", + "pallet-ethereum", + "pallet-ethereum-xcm", + "pallet-evm", + "pallet-evm-precompile-blake2", + "pallet-evm-precompile-bls12381", + "pallet-evm-precompile-bn128", + "pallet-evm-precompile-conviction-voting", + "pallet-evm-precompile-dispatch", + "pallet-evm-precompile-modexp", + "pallet-evm-precompile-simple", + "pallet-identity", + "pallet-preimage", + "pallet-proxy", + "pallet-referenda", + "pallet-scheduler", + "pallet-session", + "pallet-sudo", + "pallet-timestamp", + "pallet-transaction-payment", + "pallet-transaction-payment-rpc-runtime-api", + "pallet-treasury", + "pallet-tx-pause", + "pallet-utility", + "pallet-whitelist", + "pallet-xcm", + "parachain-info", + "parity-scale-codec", + "polkadot-parachain-primitives", + "polkadot-primitives", + "polkadot-runtime-common", + "precompile-utils", + "scale-info", + "sp-api", + "sp-block-builder", + "sp-consensus-aura", + "sp-core", + "sp-debug-derive", + "sp-inherents", + "sp-io", + "sp-keyring", + "sp-offchain", + "sp-runtime", + "sp-session", + "sp-staking", + "sp-std", + "sp-transaction-pool", + "sp-version", + "staging-xcm", + "staging-xcm-builder", + "staging-xcm-executor", + "static_assertions", + "strum 0.26.2", + "substrate-wasm-builder", + "xcm-primitives", +] + [[package]] name = "kusama-runtime-constants" version = "1.0.0" @@ -8550,110 +8654,6 @@ dependencies = [ "staging-xcm-executor", ] -[[package]] -name = "pangolin-runtime" -version = "6.6.3" -dependencies = [ - "array-bytes", - "cumulus-pallet-aura-ext", - "cumulus-pallet-dmp-queue", - "cumulus-pallet-parachain-system", - "cumulus-pallet-session-benchmarking", - "cumulus-pallet-xcm", - "cumulus-pallet-xcmp-queue", - "cumulus-primitives-core", - "cumulus-primitives-utility", - "darwinia-account-migration", - "darwinia-asset-limit", - "darwinia-common-runtime", - "darwinia-deposit", - "darwinia-ethtx-forwarder", - "darwinia-precompile-assets", - "darwinia-precompile-bls12-381", - "darwinia-precompile-deposit", - "darwinia-precompile-staking", - "darwinia-precompile-state-storage", - "darwinia-staking", - "dc-primitives", - "fp-evm", - "fp-rpc", - "fp-self-contained", - "frame-benchmarking", - "frame-executive", - "frame-support", - "frame-system", - "frame-system-benchmarking", - "frame-system-rpc-runtime-api", - "frame-try-runtime", - "log", - "moonbeam-evm-tracer", - "moonbeam-rpc-primitives-debug", - "orml-xcm-support", - "orml-xtokens", - "pallet-asset-manager", - "pallet-assets", - "pallet-aura", - "pallet-authorship", - "pallet-balances", - "pallet-collective", - "pallet-conviction-voting", - "pallet-democracy", - "pallet-ethereum", - "pallet-ethereum-xcm", - "pallet-evm", - "pallet-evm-precompile-blake2", - "pallet-evm-precompile-bls12381", - "pallet-evm-precompile-bn128", - "pallet-evm-precompile-conviction-voting", - "pallet-evm-precompile-dispatch", - "pallet-evm-precompile-modexp", - "pallet-evm-precompile-simple", - "pallet-identity", - "pallet-preimage", - "pallet-proxy", - "pallet-referenda", - "pallet-scheduler", - "pallet-session", - "pallet-sudo", - "pallet-timestamp", - "pallet-transaction-payment", - "pallet-transaction-payment-rpc-runtime-api", - "pallet-treasury", - "pallet-tx-pause", - "pallet-utility", - "pallet-whitelist", - "pallet-xcm", - "parachain-info", - "parity-scale-codec", - "polkadot-parachain-primitives", - "polkadot-primitives", - "polkadot-runtime-common", - "precompile-utils", - "scale-info", - "sp-api", - "sp-block-builder", - "sp-consensus-aura", - "sp-core", - "sp-debug-derive", - "sp-inherents", - "sp-io", - "sp-keyring", - "sp-offchain", - "sp-runtime", - "sp-session", - "sp-staking", - "sp-std", - "sp-transaction-pool", - "sp-version", - "staging-xcm", - "staging-xcm-builder", - "staging-xcm-executor", - "static_assertions", - "strum 0.26.2", - "substrate-wasm-builder", - "xcm-primitives", -] - [[package]] name = "parachain-info" version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml index 6034c0c35..2af63b6ca 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -69,7 +69,7 @@ darwinia-staking-traits = { path = "pallet/staking/traits", default-fe dc-inflation = { path = "core/inflation", default-features = false } dc-primitives = { path = "core/primitives", default-features = false } dc-types = { path = "core/types" } -pangolin-runtime = { path = "runtime/pangolin" } +koi-runtime = { path = "runtime/koi" } # frontier fc-api = { git = "https://github.com/paritytech/frontier", branch = "polkadot-v1.1.0" } diff --git a/Makefile.toml b/Makefile.toml index 98131757b..966884fc3 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -65,17 +65,17 @@ command = "target/release/darwinia" env = { "FLAGS" = "--chain crab-dev" } extend = "common-run" -[tasks.build-pangolin] +[tasks.build-koi] command = "cargo" -env = { "FEATURES" = "pangolin-native" } +env = { "FEATURES" = "koi-native" } extend = "common-build" -[tasks.cbuild-pangolin] +[tasks.cbuild-koi] command = "cross" -env = { "FEATURES" = "pangolin-native" } +env = { "FEATURES" = "koi-native" } extend = "common-build" -[tasks.run-pangolin] +[tasks.run-koi] command = "target/release/darwinia" -env = { "FLAGS" = "--chain pangolin-dev" } +env = { "FLAGS" = "--chain koi-dev" } extend = "common-run" # Build for runtime benchmarks. @@ -111,11 +111,11 @@ extend = "common-build" # Build for testnets. [tasks.build-tns] command = "cargo" -env = { "FEATURES" = "pangolin-native" } +env = { "FEATURES" = "koi-native" } extend = "common-build" [tasks.cbuild-tns] command = "cross" -env = { "FEATURES" = "pangolin-native" } +env = { "FEATURES" = "koi-native" } extend = "common-build" # Build for mainnets. diff --git a/README.md b/README.md index a8e697e87..03deedccf 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ This repo contains the following networks: * the **[Darwinia Main Network](https://docs.darwinia.network/evm/chains/darwinia/)**, the parachain on the Polkadot. * the **[Crab Main Network](https://docs.darwinia.network/evm/chains/crab/)**, the parachain on the Kusama. -* the **[Pangolin Test Network](https://docs.darwinia.network/evm/chains/pangolin/)**, the official testnet for production networks, the parachain on the Rococo. +* the **[Koi Test Network](https://docs.darwinia.network/evm/chains/koi/)**, the official testnet for production networks, the parachain on the Rococo. ## Other Projects diff --git a/node/Cargo.toml b/node/Cargo.toml index c7c7f10e4..6e23cb3f5 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -36,7 +36,7 @@ cumulus-relay-chain-interface = { workspace = true } crab-runtime = { workspace = true, optional = true } darwinia-runtime = { workspace = true, optional = true } dc-primitives = { workspace = true, features = ["std"] } -pangolin-runtime = { workspace = true, optional = true } +koi-runtime = { workspace = true, optional = true } # frontier fc-api = { workspace = true } @@ -105,14 +105,14 @@ fast-runtime = [ # darwinia "crab-runtime?/fast-runtime", "darwinia-runtime?/fast-runtime", - "pangolin-runtime?/fast-runtime", + "koi-runtime?/fast-runtime", ] evm-tracing = [ # darwinia "crab-runtime?/evm-tracing", "darwinia-runtime?/evm-tracing", - "pangolin-runtime?/evm-tracing", + "koi-runtime?/evm-tracing", # moonbeam "moonbeam-primitives-ext", @@ -122,7 +122,7 @@ runtime-benchmarks = [ # darwinia "crab-runtime?/runtime-benchmarks", "darwinia-runtime?/runtime-benchmarks", - "pangolin-runtime?/runtime-benchmarks", + "koi-runtime?/runtime-benchmarks", # polkadot "polkadot-cli/runtime-benchmarks", @@ -139,7 +139,7 @@ try-runtime = [ # darwinia "crab-runtime?/try-runtime", "darwinia-runtime?/try-runtime", - "pangolin-runtime?/try-runtime", + "koi-runtime?/try-runtime", # polkadot "polkadot-cli/try-runtime", @@ -152,7 +152,7 @@ all-natives = [ # darwinia "crab-native", "darwinia-native", - "pangolin-native", + "koi-native", ] crab-native = [ # darwinia @@ -168,9 +168,9 @@ darwinia-native = [ # polkadot "polkadot-cli/polkadot-native", ] -pangolin-native = [ +koi-native = [ # darwinia - "pangolin-runtime", + "koi-runtime", # polkadot "polkadot-cli/rococo-native", diff --git a/node/src/chain_spec/pangolin.rs b/node/src/chain_spec/koi.rs similarity index 93% rename from node/src/chain_spec/pangolin.rs rename to node/src/chain_spec/koi.rs index 361b466d5..9b5c625b8 100644 --- a/node/src/chain_spec/pangolin.rs +++ b/node/src/chain_spec/koi.rs @@ -28,7 +28,7 @@ use std::{ use cumulus_primitives_core::ParaId; // darwinia use super::*; -use pangolin_runtime::*; +use koi_runtime::*; // frontier use fp_evm::GenesisAccount; // substrate @@ -41,7 +41,7 @@ use sp_core::{crypto::UncheckedInto, H160}; pub type ChainSpec = sc_service::GenericChainSpec; fn properties() -> Properties { - super::properties("PRING") + super::properties("KRING") } // Generate the session keys from individual elements. @@ -54,8 +54,8 @@ fn session_keys(keys: AuraId) -> SessionKeys { pub fn development_config() -> ChainSpec { ChainSpec::from_genesis( // Fulfill Polkadot.JS metadata upgrade requirements. - "Pangolin2 D", - "pangolin2-d", + "Koi D", + "koi-d", ChainType::Live, move || { testnet_genesis( @@ -83,7 +83,7 @@ pub fn development_config() -> ChainSpec { None, Some(properties()), Extensions { - relay_chain: "rococo-local".into(), // You MUST set this to the correct network! + relay_chain: "paseo-local".into(), // You MUST set this to the correct network! para_id: 2105, }, ) @@ -92,8 +92,8 @@ pub fn development_config() -> ChainSpec { pub fn local_config() -> ChainSpec { ChainSpec::from_genesis( // Fulfill Polkadot.JS metadata upgrade requirements. - "Pangolin2 L", - "pangolin2-l", + "Koi L", + "koi-l", // Fulfill Polkadot.JS metadata upgrade requirements. ChainType::Live, move || { @@ -132,7 +132,7 @@ pub fn local_config() -> ChainSpec { None, Some(properties()), Extensions { - relay_chain: "rococo-local".into(), // You MUST set this to the correct network! + relay_chain: "paseo-local".into(), // You MUST set this to the correct network! para_id: 2105, }, ) @@ -140,8 +140,8 @@ pub fn local_config() -> ChainSpec { pub fn genesis_config() -> ChainSpec { ChainSpec::from_genesis( - "Pangolin2", - "pangolin2", + "Koi", + "koi", ChainType::Live, move || { RuntimeGenesisConfig { @@ -163,7 +163,7 @@ pub fn genesis_config() -> ChainSpec { assets: vec![(AssetIds::PKton as _, ROOT, true, 1)], metadata: vec![( AssetIds::PKton as _, - b"Pangolin Commitment Token".to_vec(), + b"Koi Commitment Token".to_vec(), b"PKTON".to_vec(), 18, )], @@ -226,7 +226,7 @@ pub fn genesis_config() -> ChainSpec { evm: EVMConfig { accounts: { BTreeMap::from_iter( - PangolinPrecompiles::::used_addresses().iter().map(|p| { + KoiPrecompiles::::used_addresses().iter().map(|p| { ( p.to_owned(), GenesisAccount { @@ -251,14 +251,14 @@ pub fn genesis_config() -> ChainSpec { None, Some(properties()), Extensions { - relay_chain: "rococo".into(), // You MUST set this to the correct network! + relay_chain: "paseo".into(), // You MUST set this to the correct network! para_id: 2105, }, ) } pub fn config() -> ChainSpec { - load_config("pangolin2.json", 0) + load_config("koi.json", 0) } fn testnet_genesis( @@ -281,7 +281,7 @@ fn testnet_genesis( assets: vec![(AssetIds::PKton as _, ROOT, true, 1)], metadata: vec![( AssetIds::PKton as _, - b"Pangolin Commitment Token".to_vec(), + b"Koi Commitment Token".to_vec(), b"PKTON".to_vec(), 18, )], @@ -336,7 +336,7 @@ fn testnet_genesis( evm: EVMConfig { accounts: { BTreeMap::from_iter( - PangolinPrecompiles::::used_addresses() + KoiPrecompiles::::used_addresses() .iter() .map(|p| { ( diff --git a/node/src/chain_spec/mod.rs b/node/src/chain_spec/mod.rs index 38f091b56..6ff1f9d3c 100644 --- a/node/src/chain_spec/mod.rs +++ b/node/src/chain_spec/mod.rs @@ -32,14 +32,14 @@ pub use crab::{self as crab_chain_spec, ChainSpec as CrabChainSpec}; #[cfg(not(feature = "crab-native"))] pub type CrabChainSpec = DummyChainSpec; -#[cfg(feature = "pangolin-native")] -pub mod pangolin; -#[cfg(feature = "pangolin-native")] -pub use pangolin::{self as pangolin_chain_spec, ChainSpec as PangolinChainSpec}; -#[cfg(not(feature = "pangolin-native"))] -pub type PangolinChainSpec = DummyChainSpec; - -#[cfg(feature = "pangolin-native")] +#[cfg(feature = "koi-native")] +pub mod koi; +#[cfg(feature = "koi-native")] +pub use koi::{self as koi_chain_spec, ChainSpec as KoiChainSpec}; +#[cfg(not(feature = "koi-native"))] +pub type KoiChainSpec = DummyChainSpec; + +#[cfg(feature = "koi-native")] mod testnet_keys { pub const C1: &str = "0x0eef9fabb6eb6fed2ab24a842931f8950426070a"; pub const C1_AURA: &str = "0xeed007f04d568b2d3bf329945a48c21a8ed030c81ca1dce61ad41c916599f405"; @@ -49,7 +49,7 @@ mod testnet_keys { pub const C3_AURA: &str = "0xe25d860707bd1b88b9851cf40df3af3368cd57e5e82824cabac9c75fe537600f"; pub const SUDO: &str = "0x2748def2f9c3cfbbb963002935bc6d2e1c36ce2e"; } -#[cfg(feature = "pangolin-native")] +#[cfg(feature = "koi-native")] use testnet_keys::*; // std diff --git a/node/src/command.rs b/node/src/command.rs index 106849aaa..d0a256059 100644 --- a/node/src/command.rs +++ b/node/src/command.rs @@ -256,9 +256,9 @@ pub fn run() -> Result<()> { return $code; } - #[cfg(feature = "pangolin-native")] - if $config.chain_spec.is_pangolin() { - let $partials = service::new_partial::( + #[cfg(feature = "koi-native")] + if $config.chain_spec.is_koi() { + let $partials = service::new_partial::( &$config, &$cli.eth_args.build_eth_rpc_config(), )?; @@ -266,7 +266,7 @@ pub fn run() -> Result<()> { return $code; } - panic!("No feature(crab-native, darwinia-native, pangolin-native) is enabled!"); + panic!("No feature(crab-native, darwinia-native, koi-native) is enabled!"); }}; } @@ -303,10 +303,10 @@ pub fn run() -> Result<()> { }); } - #[cfg(feature = "pangolin-native")] - if chain_spec.is_pangolin() { + #[cfg(feature = "koi-native")] + if chain_spec.is_koi() { return runner.async_run(|$config| { - let $components = service::new_partial::( + let $components = service::new_partial::( &$config, &$cli.eth_args.build_eth_rpc_config() )?; @@ -316,7 +316,7 @@ pub fn run() -> Result<()> { }); } - panic!("No feature(crab-native, darwinia-native, pangolin-native) is enabled!"); + panic!("No feature(crab-native, darwinia-native, koi-native) is enabled!"); }} } @@ -520,9 +520,9 @@ pub fn run() -> Result<()> { .map_err(Into::into) } - #[cfg(feature = "pangolin-native")] - if chain_spec.is_pangolin() { - return service::start_dev_node::( + #[cfg(feature = "koi-native")] + if chain_spec.is_koi() { + return service::start_dev_node::( config, ð_rpc_config, ) @@ -564,9 +564,9 @@ pub fn run() -> Result<()> { .map_err(Into::into); } - #[cfg(feature = "pangolin-native")] - if chain_spec.is_pangolin() { - return service::start_parachain_node::( + #[cfg(feature = "koi-native")] + if chain_spec.is_koi() { + return service::start_parachain_node::( config, polkadot_config, collator_options, @@ -579,7 +579,7 @@ pub fn run() -> Result<()> { .map_err(Into::into); } - panic!("No feature(crab-native, darwinia-native, pangolin-native) is enabled!"); + panic!("No feature(crab-native, darwinia-native, koi-native) is enabled!"); }) }, } @@ -588,7 +588,7 @@ pub fn run() -> Result<()> { fn load_spec(id: &str) -> std::result::Result, String> { let id = if id.is_empty() { let n = get_exec_name().unwrap_or_default(); - ["darwinia", "crab", "pangolin"] + ["darwinia", "crab", "koi"] .iter() .cloned() .find(|&chain| n.starts_with(chain)) @@ -614,14 +614,14 @@ fn load_spec(id: &str) -> std::result::Result, String> { "darwinia-dev" => Box::new(darwinia_chain_spec::development_config()), #[cfg(feature = "darwinia-native")] "darwinia-local" => Box::new(darwinia_chain_spec::local_config()), - #[cfg(feature = "pangolin-native")] - "pangolin" => Box::new(pangolin_chain_spec::config()), - #[cfg(feature = "pangolin-native")] - "pangolin-genesis" => Box::new(pangolin_chain_spec::genesis_config()), - #[cfg(feature = "pangolin-native")] - "pangolin-dev" => Box::new(pangolin_chain_spec::development_config()), - #[cfg(feature = "pangolin-native")] - "pangolin-local" => Box::new(pangolin_chain_spec::local_config()), + #[cfg(feature = "koi-native")] + "koi" => Box::new(koi_chain_spec::config()), + #[cfg(feature = "koi-native")] + "koi-genesis" => Box::new(koi_chain_spec::genesis_config()), + #[cfg(feature = "koi-native")] + "koi-dev" => Box::new(koi_chain_spec::development_config()), + #[cfg(feature = "koi-native")] + "koi-local" => Box::new(koi_chain_spec::local_config()), _ => { let path = PathBuf::from(id); let chain_spec = @@ -635,11 +635,11 @@ fn load_spec(id: &str) -> std::result::Result, String> { return Ok(Box::new(DarwiniaChainSpec::from_json_file(path)?)); } - if chain_spec.is_pangolin() { - return Ok(Box::new(PangolinChainSpec::from_json_file(path)?)); + if chain_spec.is_koi() { + return Ok(Box::new(KoiChainSpec::from_json_file(path)?)); } - panic!("No feature(crab-native, darwinia-native, pangolin-native) is enabled!") + panic!("No feature(crab-native, darwinia-native, koi-native) is enabled!") }, }) } @@ -652,7 +652,7 @@ fn get_exec_name() -> Option { } fn set_default_ss58_version(chain_spec: &dyn IdentifyVariant) { - let ss58_version = if chain_spec.is_crab() || chain_spec.is_pangolin() { + let ss58_version = if chain_spec.is_crab() || chain_spec.is_koi() { Ss58AddressFormatRegistry::SubstrateAccount } else { Ss58AddressFormatRegistry::DarwiniaAccount diff --git a/node/src/service/executors.rs b/node/src/service/executors.rs index ac8452245..0da755248 100644 --- a/node/src/service/executors.rs +++ b/node/src/service/executors.rs @@ -63,18 +63,18 @@ impl NativeExecutionDispatch for CrabRuntimeExecutor { } } -/// Pangolin native executor instance. -#[cfg(feature = "pangolin-native")] -pub struct PangolinRuntimeExecutor; -#[cfg(feature = "pangolin-native")] -impl NativeExecutionDispatch for PangolinRuntimeExecutor { +/// Koi native executor instance. +#[cfg(feature = "koi-native")] +pub struct KoiRuntimeExecutor; +#[cfg(feature = "koi-native")] +impl NativeExecutionDispatch for KoiRuntimeExecutor { type ExtendHostFunctions = HostFunctions; fn dispatch(method: &str, data: &[u8]) -> Option> { - pangolin_runtime::api::dispatch(method, data) + koi_runtime::api::dispatch(method, data) } fn native_version() -> NativeVersion { - pangolin_runtime::native_version() + koi_runtime::native_version() } } diff --git a/node/src/service/mod.rs b/node/src/service/mod.rs index a7dafa75b..a571a3c1e 100644 --- a/node/src/service/mod.rs +++ b/node/src/service/mod.rs @@ -29,8 +29,8 @@ mod instant_finalize; pub use crab_runtime::RuntimeApi as CrabRuntimeApi; #[cfg(feature = "darwinia-native")] pub use darwinia_runtime::RuntimeApi as DarwiniaRuntimeApi; -#[cfg(feature = "pangolin-native")] -pub use pangolin_runtime::RuntimeApi as PangolinRuntimeApi; +#[cfg(feature = "koi-native")] +pub use koi_runtime::RuntimeApi as KoiRuntimeApi; // std use std::{ @@ -75,9 +75,9 @@ pub trait IdentifyVariant { self.id().starts_with("darwinia") } - /// Returns if this is a configuration for the `Pangolin` network. - fn is_pangolin(&self) -> bool { - self.id().starts_with("pangolin") + /// Returns if this is a configuration for the `Koi` network. + fn is_koi(&self) -> bool { + self.id().starts_with("koi") } /// Returns true if this configuration is for a development network. @@ -204,7 +204,7 @@ where client.clone(), ); let block_import = ParachainBlockImport::new(client.clone(), backend.clone()); - let import_queue = parachain_build_import_queue( + let import_queue = build_import_queue( client.clone(), block_import.clone(), config, @@ -543,7 +543,7 @@ where } /// Build the import queue for the parachain runtime. -pub fn parachain_build_import_queue( +pub fn build_import_queue( client: Arc>, block_import: ParachainBlockImport, config: &sc_service::Configuration, @@ -560,32 +560,25 @@ where { let slot_duration = cumulus_client_consensus_aura::slot_duration(&*client)?; - cumulus_client_consensus_aura::import_queue::< + Ok(cumulus_client_consensus_aura::equivocation_import_queue::fully_verifying_import_queue::< sp_consensus_aura::sr25519::AuthorityPair, _, _, _, _, - _, - >(cumulus_client_consensus_aura::ImportQueueParams { - block_import, + >( client, - create_inherent_data_providers: move |_, _| async move { + block_import, + move |_, _| async move { let timestamp = sp_timestamp::InherentDataProvider::from_system_time(); - let slot = - sp_consensus_aura::inherents::InherentDataProvider::from_timestamp_and_slot_duration( - *timestamp, - slot_duration, - ); - - Ok((slot, timestamp)) + Ok(timestamp) }, - registry: config.prometheus_registry(), - spawner: &task_manager.spawn_essential_handle(), + slot_duration, + &task_manager.spawn_essential_handle(), + config.prometheus_registry(), telemetry, - }) - .map_err(Into::into) + )) } /// Start a parachain node. diff --git a/pallet/account-migration/src/tests.rs b/pallet/account-migration/src/tests.rs index be18d90cf..cb219da8f 100644 --- a/pallet/account-migration/src/tests.rs +++ b/pallet/account-migration/src/tests.rs @@ -30,7 +30,7 @@ use sp_runtime::{ #[test] fn signable_message_should_work() { - ["Darwinia2", "Crab2", "Pangolin2"].iter().for_each(|s| { + ["Darwinia2", "Crab2", "Koi"].iter().for_each(|s| { assert_eq!( signable_message(s.as_bytes(), &Default::default()), format!( diff --git a/pallet/account-migration/src/weights.rs b/pallet/account-migration/src/weights.rs index 17bb21802..54810fe16 100644 --- a/pallet/account-migration/src/weights.rs +++ b/pallet/account-migration/src/weights.rs @@ -21,7 +21,7 @@ //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev //! DATE: 2023-11-17, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("pangolin-dev"), DB CACHE: 1024 +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("koi-dev"), DB CACHE: 1024 // Executed Command: // target/release/darwinia @@ -34,7 +34,7 @@ // --heap-pages // 4096 // --chain -// pangolin-dev +// koi-dev // --output // pallet/account-migration/src/weights.rs // --extrinsic diff --git a/pallet/deposit/src/tests.rs b/pallet/deposit/src/tests.rs index 8fcae00b5..ad1b8a9bf 100644 --- a/pallet/deposit/src/tests.rs +++ b/pallet/deposit/src/tests.rs @@ -309,10 +309,10 @@ fn claim_should_work() { #[test] fn claim_with_penalty_should_work() { new_test_ext().execute_with(|| { - assert_eq!(Balances::free_balance(&1), 1_000 * UNIT); + assert_eq!(Balances::free_balance(1), 1_000 * UNIT); assert!(Deposit::deposit_of(1).is_none()); assert_ok!(Deposit::lock(RuntimeOrigin::signed(1), UNIT, 1)); - assert_eq!(Balances::free_balance(&1), 999 * UNIT); + assert_eq!(Balances::free_balance(1), 999 * UNIT); assert!(Deposit::deposit_of(1).is_some()); assert_noop!( @@ -322,7 +322,7 @@ fn claim_with_penalty_should_work() { assert_ok!(KtonMinting::mint(&1, UNIT)); assert_ok!(Deposit::claim_with_penalty(RuntimeOrigin::signed(1), 0)); - assert_eq!(Balances::free_balance(&1), 1_000 * UNIT); + assert_eq!(Balances::free_balance(1), 1_000 * UNIT); assert_eq!(Assets::balance(0, 1), 999_984_771_573_604_062); assert!(Deposit::deposit_of(1).is_none()); diff --git a/pallet/deposit/src/weights.rs b/pallet/deposit/src/weights.rs index 881e250e1..6ffa5b074 100644 --- a/pallet/deposit/src/weights.rs +++ b/pallet/deposit/src/weights.rs @@ -21,7 +21,7 @@ //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev //! DATE: 2023-11-17, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("pangolin-dev"), DB CACHE: 1024 +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("koi-dev"), DB CACHE: 1024 // Executed Command: // target/release/darwinia @@ -34,7 +34,7 @@ // --heap-pages // 4096 // --chain -// pangolin-dev +// koi-dev // --output // pallet/deposit/src/weights.rs // --extrinsic diff --git a/pallet/staking/src/weights.rs b/pallet/staking/src/weights.rs index 0e692c68d..9f360fc89 100644 --- a/pallet/staking/src/weights.rs +++ b/pallet/staking/src/weights.rs @@ -22,7 +22,7 @@ //! DATE: 2024-04-17, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `Xaviers-MacBook-Pro-16.local`, CPU: `` -//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("pangolin-dev"), DB CACHE: 1024 +//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("koi-dev"), DB CACHE: 1024 // Executed Command: // target/release/darwinia @@ -35,7 +35,7 @@ // --heap-pages // 4096 // --chain -// pangolin-dev +// koi-dev // --output // pallet/staking/src/weights.rs // --extrinsic diff --git a/runtime/common/src/test.rs b/runtime/common/src/test.rs index 4caf6cc9d..8e220f86b 100644 --- a/runtime/common/src/test.rs +++ b/runtime/common/src/test.rs @@ -456,14 +456,12 @@ macro_rules! impl_evm_tests { None, vec![], ) { - assert_eq!( - dispatch_info_with_err.error, - DispatchError::Module(ModuleError { - index: 37, - error: [4, 0, 0, 0], - message: Some("GasPriceTooLow") - }) - ); + // Ignore the pallet index. + let DispatchError::Module(e) = dispatch_info_with_err.error else { + panic!(); + }; + + assert_eq!((e.error, e.message), ([4, 0, 0, 0], Some("GasPriceTooLow"))); } }); } @@ -649,7 +647,7 @@ macro_rules! impl_fee_tests { fn run_with_system_weight(w: Weight, mut assertions: F) where - F: FnMut() -> (), + F: FnMut(), { let mut t: sp_io::TestExternalities = >::default() diff --git a/runtime/pangolin/Cargo.toml b/runtime/koi/Cargo.toml similarity index 99% rename from runtime/pangolin/Cargo.toml rename to runtime/koi/Cargo.toml index 7f5de44ed..24a923c1c 100644 --- a/runtime/pangolin/Cargo.toml +++ b/runtime/koi/Cargo.toml @@ -1,8 +1,8 @@ [package] authors.workspace = true -description = "Pangolin runtime." +description = "Koi runtime." edition.workspace = true -name = "pangolin-runtime" +name = "koi-runtime" readme = "README.md" version.workspace = true diff --git a/runtime/pangolin/build.rs b/runtime/koi/build.rs similarity index 100% rename from runtime/pangolin/build.rs rename to runtime/koi/build.rs diff --git a/runtime/pangolin/rust-toolchain.toml b/runtime/koi/rust-toolchain.toml similarity index 100% rename from runtime/pangolin/rust-toolchain.toml rename to runtime/koi/rust-toolchain.toml diff --git a/runtime/pangolin/src/lib.rs b/runtime/koi/src/lib.rs similarity index 90% rename from runtime/pangolin/src/lib.rs rename to runtime/koi/src/lib.rs index de0d35f9e..fa52334b0 100644 --- a/runtime/pangolin/src/lib.rs +++ b/runtime/koi/src/lib.rs @@ -16,7 +16,7 @@ // You should have received a copy of the GNU General Public License // along with Darwinia. If not, see . -//! Pangolin runtime. +//! Koi runtime. #![cfg_attr(not(feature = "std"), no_std)] #![recursion_limit = "256"] @@ -72,7 +72,7 @@ pub type Executive = frame_executive::Executive< /// Runtime version. #[sp_version::runtime_version] pub const VERSION: sp_version::RuntimeVersion = sp_version::RuntimeVersion { - spec_name: sp_runtime::create_runtime_str!("Pangolin2"), + spec_name: sp_runtime::create_runtime_str!("Darwinia Koi"), impl_name: sp_runtime::create_runtime_str!("DarwiniaOfficialRust"), authoring_version: 0, spec_version: 6_6_3_0, @@ -98,67 +98,50 @@ frame_support::construct_runtime! { ParachainInfo: parachain_info = 3, // Monetary stuff. - // Leave 4 here. - // To keep balances consistent with the existing XCM configurations. - Balances: pallet_balances = 5, - TransactionPayment: pallet_transaction_payment = 6, - Assets: pallet_assets = 7, - // Vesting: pallet_vesting = 8, - Deposit: darwinia_deposit = 9, - AccountMigration: darwinia_account_migration = 10, + Balances: pallet_balances = 4, + TransactionPayment: pallet_transaction_payment = 5, + Assets: pallet_assets = 6, + Deposit: darwinia_deposit = 7, + AccountMigration: darwinia_account_migration = 8, // Consensus stuff. - Authorship: pallet_authorship = 11, - DarwiniaStaking: darwinia_staking = 12, - Session: pallet_session = 13, - Aura: pallet_aura = 14, - AuraExt: cumulus_pallet_aura_ext = 15, - // MessageGadget: darwinia_message_gadget = 16, - // EcdsaAuthority: darwinia_ecdsa_authority = 17, + Authorship: pallet_authorship = 9, + DarwiniaStaking: darwinia_staking = 10, + Session: pallet_session = 11, + Aura: pallet_aura = 12, + AuraExt: cumulus_pallet_aura_ext = 13, // Governance stuff. - // PhragmenElection: pallet_elections_phragmen = 21, - // TechnicalMembership: pallet_membership:: = 22, - // Council: pallet_collective:: = 19, - TechnicalCommittee: pallet_collective:: = 20, - Treasury: pallet_treasury = 23, - // Tips: pallet_tips = 24, - // Democracy: pallet_democracy = 18, - ConvictionVoting: pallet_conviction_voting = 48, - Referenda: pallet_referenda = 49, - Origins: custom_origins = 50, - Whitelist: pallet_whitelist = 51, + TechnicalCommittee: pallet_collective:: = 14, + Treasury: pallet_treasury = 15, + ConvictionVoting: pallet_conviction_voting = 16, + Referenda: pallet_referenda = 17, + Origins: custom_origins = 18, + Whitelist: pallet_whitelist = 19, // Utility stuff. - Sudo: pallet_sudo = 25, - Utility: pallet_utility = 26, - Identity: pallet_identity = 27, - Scheduler: pallet_scheduler = 28, - Preimage: pallet_preimage = 29, - Proxy: pallet_proxy = 30, - TxPause: pallet_tx_pause = 52, + 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, // XCM stuff. - XcmpQueue: cumulus_pallet_xcmp_queue = 32, - PolkadotXcm: pallet_xcm = 33, - CumulusXcm: cumulus_pallet_xcm = 34, - EthereumXcm: pallet_ethereum_xcm = 44, - DmpQueue: cumulus_pallet_dmp_queue = 35, - AssetManager: pallet_asset_manager = 45, - XTokens: orml_xtokens = 46, - AssetLimit: darwinia_asset_limit = 47, + 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, // EVM stuff. - Ethereum: pallet_ethereum = 36, - EVM: pallet_evm = 37, - EthTxForwarder: darwinia_ethtx_forwarder = 38, - - // // Pangolin <> Pangoro - // BridgeMoonbaseGrandpa: pallet_bridge_grandpa:: = 39, - // BridgeMoonbaseParachain: pallet_bridge_parachains:: = 40, - // BridgePangoroMessages: pallet_bridge_messages:: = 41, - // BridgePangoroDispatch: pallet_bridge_dispatch:: = 42, - // PangoroFeeMarket: pallet_fee_market:: = 43 + Ethereum: pallet_ethereum = 35, + EVM: pallet_evm = 36, + EthTxForwarder: darwinia_ethtx_forwarder = 37, } } diff --git a/runtime/pangolin/src/migration.rs b/runtime/koi/src/migration.rs similarity index 100% rename from runtime/pangolin/src/migration.rs rename to runtime/koi/src/migration.rs diff --git a/runtime/pangolin/src/pallets.rs b/runtime/koi/src/pallets.rs similarity index 100% rename from runtime/pangolin/src/pallets.rs rename to runtime/koi/src/pallets.rs diff --git a/runtime/pangolin/src/pallets/account_migration.rs b/runtime/koi/src/pallets/account_migration.rs similarity index 100% rename from runtime/pangolin/src/pallets/account_migration.rs rename to runtime/koi/src/pallets/account_migration.rs diff --git a/runtime/pangolin/src/pallets/asset_limit.rs b/runtime/koi/src/pallets/asset_limit.rs similarity index 100% rename from runtime/pangolin/src/pallets/asset_limit.rs rename to runtime/koi/src/pallets/asset_limit.rs diff --git a/runtime/pangolin/src/pallets/asset_manager.rs b/runtime/koi/src/pallets/asset_manager.rs similarity index 100% rename from runtime/pangolin/src/pallets/asset_manager.rs rename to runtime/koi/src/pallets/asset_manager.rs diff --git a/runtime/pangolin/src/pallets/assets.rs b/runtime/koi/src/pallets/assets.rs similarity index 100% rename from runtime/pangolin/src/pallets/assets.rs rename to runtime/koi/src/pallets/assets.rs diff --git a/runtime/pangolin/src/pallets/aura.rs b/runtime/koi/src/pallets/aura.rs similarity index 100% rename from runtime/pangolin/src/pallets/aura.rs rename to runtime/koi/src/pallets/aura.rs diff --git a/runtime/pangolin/src/pallets/aura_ext.rs b/runtime/koi/src/pallets/aura_ext.rs similarity index 100% rename from runtime/pangolin/src/pallets/aura_ext.rs rename to runtime/koi/src/pallets/aura_ext.rs diff --git a/runtime/pangolin/src/pallets/authorship.rs b/runtime/koi/src/pallets/authorship.rs similarity index 100% rename from runtime/pangolin/src/pallets/authorship.rs rename to runtime/koi/src/pallets/authorship.rs diff --git a/runtime/pangolin/src/pallets/balances.rs b/runtime/koi/src/pallets/balances.rs similarity index 100% rename from runtime/pangolin/src/pallets/balances.rs rename to runtime/koi/src/pallets/balances.rs diff --git a/runtime/pangolin/src/pallets/deposit.rs b/runtime/koi/src/pallets/deposit.rs similarity index 100% rename from runtime/pangolin/src/pallets/deposit.rs rename to runtime/koi/src/pallets/deposit.rs diff --git a/runtime/pangolin/src/pallets/dmp_queue.rs b/runtime/koi/src/pallets/dmp_queue.rs similarity index 100% rename from runtime/pangolin/src/pallets/dmp_queue.rs rename to runtime/koi/src/pallets/dmp_queue.rs diff --git a/runtime/pangolin/src/pallets/ethereum.rs b/runtime/koi/src/pallets/ethereum.rs similarity index 100% rename from runtime/pangolin/src/pallets/ethereum.rs rename to runtime/koi/src/pallets/ethereum.rs diff --git a/runtime/pangolin/src/pallets/ethereum_xcm.rs b/runtime/koi/src/pallets/ethereum_xcm.rs similarity index 100% rename from runtime/pangolin/src/pallets/ethereum_xcm.rs rename to runtime/koi/src/pallets/ethereum_xcm.rs diff --git a/runtime/pangolin/src/pallets/ethtx_forwarder.rs b/runtime/koi/src/pallets/ethtx_forwarder.rs similarity index 100% rename from runtime/pangolin/src/pallets/ethtx_forwarder.rs rename to runtime/koi/src/pallets/ethtx_forwarder.rs diff --git a/runtime/pangolin/src/pallets/evm.rs b/runtime/koi/src/pallets/evm.rs similarity index 96% rename from runtime/pangolin/src/pallets/evm.rs rename to runtime/koi/src/pallets/evm.rs index a34dacada..6a0e45f70 100644 --- a/runtime/pangolin/src/pallets/evm.rs +++ b/runtime/koi/src/pallets/evm.rs @@ -30,7 +30,7 @@ frame_support::parameter_types! { pub BlockGasLimit: sp_core::U256 = sp_core::U256::from(BLOCK_GAS_LIMIT); // Restrict the POV size of the Ethereum transactions in the same way as weight limit. pub BlockPovSizeLimit: u64 = NORMAL_DISPATCH_RATIO * MAX_POV_SIZE as u64; - pub PrecompilesValue: PangolinPrecompiles = PangolinPrecompiles::<_>::new(); + pub PrecompilesValue: KoiPrecompiles = KoiPrecompiles::<_>::new(); pub WeightPerGas: frame_support::weights::Weight = frame_support::weights::Weight::from_parts( fp_evm::weight_per_gas(BLOCK_GAS_LIMIT, NORMAL_DISPATCH_RATIO, WEIGHT_MILLISECS_PER_BLOCK), 0 @@ -39,8 +39,8 @@ frame_support::parameter_types! { pub GasLimitPovSizeRatio: u64 = BLOCK_GAS_LIMIT.saturating_div(BlockPovSizeLimit::get()) + 1; } -pub struct PangolinPrecompiles(core::marker::PhantomData); -impl PangolinPrecompiles +pub struct KoiPrecompiles(core::marker::PhantomData); +impl KoiPrecompiles where R: pallet_evm::Config, { @@ -80,7 +80,7 @@ where ] } } -impl pallet_evm::PrecompileSet for PangolinPrecompiles +impl pallet_evm::PrecompileSet for KoiPrecompiles where R: pallet_evm::Config, { @@ -182,7 +182,7 @@ impl pallet_evm::Config for Runtime { type BlockGasLimit = BlockGasLimit; type BlockHashMapping = pallet_ethereum::EthereumBlockHashMapping; type CallOrigin = pallet_evm::EnsureAddressRoot; - type ChainId = ConstU64<43>; + type ChainId = ConstU64<701>; type Currency = Balances; type FeeCalculator = TransactionPaymentGasPrice; type FindAuthor = FindAuthor>; @@ -190,7 +190,7 @@ impl pallet_evm::Config for Runtime { type GasWeightMapping = pallet_evm::FixedGasWeightMapping; type OnChargeTransaction = pallet_evm::EVMFungibleAdapter; type OnCreate = (); - type PrecompilesType = PangolinPrecompiles; + type PrecompilesType = KoiPrecompiles; type PrecompilesValue = PrecompilesValue; type Runner = pallet_evm::runner::stack::Runner; type RuntimeEvent = RuntimeEvent; diff --git a/runtime/pangolin/src/pallets/governance.rs b/runtime/koi/src/pallets/governance.rs similarity index 100% rename from runtime/pangolin/src/pallets/governance.rs rename to runtime/koi/src/pallets/governance.rs diff --git a/runtime/pangolin/src/pallets/governance/origin.rs b/runtime/koi/src/pallets/governance/origin.rs similarity index 96% rename from runtime/pangolin/src/pallets/governance/origin.rs rename to runtime/koi/src/pallets/governance/origin.rs index f020b4cd9..858d350a7 100644 --- a/runtime/pangolin/src/pallets/governance/origin.rs +++ b/runtime/koi/src/pallets/governance/origin.rs @@ -46,9 +46,9 @@ pub mod custom_origins { ReferendumCanceller, /// Origin able to kill referenda. ReferendumKiller, - /// Origin able to spend up to 4M PRING from the treasury at once. + /// Origin able to spend up to 4M KRING from the treasury at once. MediumSpender, - /// Origin able to spend up to 20M PRING from the treasury at once. + /// Origin able to spend up to 20M KRING from the treasury at once. BigSpender, } diff --git a/runtime/pangolin/src/pallets/governance/track.rs b/runtime/koi/src/pallets/governance/track.rs similarity index 100% rename from runtime/pangolin/src/pallets/governance/track.rs rename to runtime/koi/src/pallets/governance/track.rs diff --git a/runtime/pangolin/src/pallets/identity.rs b/runtime/koi/src/pallets/identity.rs similarity index 100% rename from runtime/pangolin/src/pallets/identity.rs rename to runtime/koi/src/pallets/identity.rs diff --git a/runtime/pangolin/src/pallets/orml_xtokens.rs b/runtime/koi/src/pallets/orml_xtokens.rs similarity index 100% rename from runtime/pangolin/src/pallets/orml_xtokens.rs rename to runtime/koi/src/pallets/orml_xtokens.rs diff --git a/runtime/pangolin/src/pallets/parachain_info_.rs b/runtime/koi/src/pallets/parachain_info_.rs similarity index 100% rename from runtime/pangolin/src/pallets/parachain_info_.rs rename to runtime/koi/src/pallets/parachain_info_.rs diff --git a/runtime/pangolin/src/pallets/parachain_system.rs b/runtime/koi/src/pallets/parachain_system.rs similarity index 100% rename from runtime/pangolin/src/pallets/parachain_system.rs rename to runtime/koi/src/pallets/parachain_system.rs diff --git a/runtime/pangolin/src/pallets/polkadot_xcm.rs b/runtime/koi/src/pallets/polkadot_xcm.rs similarity index 100% rename from runtime/pangolin/src/pallets/polkadot_xcm.rs rename to runtime/koi/src/pallets/polkadot_xcm.rs diff --git a/runtime/pangolin/src/pallets/preimage.rs b/runtime/koi/src/pallets/preimage.rs similarity index 100% rename from runtime/pangolin/src/pallets/preimage.rs rename to runtime/koi/src/pallets/preimage.rs diff --git a/runtime/pangolin/src/pallets/proxy.rs b/runtime/koi/src/pallets/proxy.rs similarity index 100% rename from runtime/pangolin/src/pallets/proxy.rs rename to runtime/koi/src/pallets/proxy.rs diff --git a/runtime/pangolin/src/pallets/scheduler.rs b/runtime/koi/src/pallets/scheduler.rs similarity index 100% rename from runtime/pangolin/src/pallets/scheduler.rs rename to runtime/koi/src/pallets/scheduler.rs diff --git a/runtime/pangolin/src/pallets/session.rs b/runtime/koi/src/pallets/session.rs similarity index 100% rename from runtime/pangolin/src/pallets/session.rs rename to runtime/koi/src/pallets/session.rs diff --git a/runtime/pangolin/src/pallets/staking.rs b/runtime/koi/src/pallets/staking.rs similarity index 95% rename from runtime/pangolin/src/pallets/staking.rs rename to runtime/koi/src/pallets/staking.rs index 251f986c2..ba52c1302 100644 --- a/runtime/pangolin/src/pallets/staking.rs +++ b/runtime/koi/src/pallets/staking.rs @@ -66,8 +66,8 @@ impl darwinia_staking::Stake for KtonStaking { } } -pub enum OnPangolinSessionEnd {} -impl darwinia_staking::IssuingManager for OnPangolinSessionEnd { +pub enum OnKoiSessionEnd {} +impl darwinia_staking::IssuingManager for OnKoiSessionEnd { fn calculate_reward(_inflation: Balance) -> Balance { 20_000 * UNIT } @@ -97,7 +97,7 @@ impl frame_support::traits::Get for ShouldEndSession { impl darwinia_staking::Config for Runtime { type Currency = Balances; type Deposit = Deposit; - type IssuingManager = OnPangolinSessionEnd; + type IssuingManager = OnKoiSessionEnd; type Kton = KtonStaking; type KtonRewardDistributionContract = darwinia_staking::KtonRewardDistributionContract; type KtonStakerNotifier = darwinia_staking::KtonStakerNotifier; diff --git a/runtime/pangolin/src/pallets/sudo.rs b/runtime/koi/src/pallets/sudo.rs similarity index 100% rename from runtime/pangolin/src/pallets/sudo.rs rename to runtime/koi/src/pallets/sudo.rs diff --git a/runtime/pangolin/src/pallets/system.rs b/runtime/koi/src/pallets/system.rs similarity index 100% rename from runtime/pangolin/src/pallets/system.rs rename to runtime/koi/src/pallets/system.rs diff --git a/runtime/pangolin/src/pallets/timestamp.rs b/runtime/koi/src/pallets/timestamp.rs similarity index 100% rename from runtime/pangolin/src/pallets/timestamp.rs rename to runtime/koi/src/pallets/timestamp.rs diff --git a/runtime/pangolin/src/pallets/transaction_payment.rs b/runtime/koi/src/pallets/transaction_payment.rs similarity index 100% rename from runtime/pangolin/src/pallets/transaction_payment.rs rename to runtime/koi/src/pallets/transaction_payment.rs diff --git a/runtime/pangolin/src/pallets/tx_pause.rs b/runtime/koi/src/pallets/tx_pause.rs similarity index 100% rename from runtime/pangolin/src/pallets/tx_pause.rs rename to runtime/koi/src/pallets/tx_pause.rs diff --git a/runtime/pangolin/src/pallets/utility.rs b/runtime/koi/src/pallets/utility.rs similarity index 100% rename from runtime/pangolin/src/pallets/utility.rs rename to runtime/koi/src/pallets/utility.rs diff --git a/runtime/pangolin/src/pallets/xcmp_queue.rs b/runtime/koi/src/pallets/xcmp_queue.rs similarity index 100% rename from runtime/pangolin/src/pallets/xcmp_queue.rs rename to runtime/koi/src/pallets/xcmp_queue.rs diff --git a/runtime/pangolin/src/weights.rs b/runtime/koi/src/weights.rs similarity index 100% rename from runtime/pangolin/src/weights.rs rename to runtime/koi/src/weights.rs diff --git a/runtime/pangolin/src/weights/cumulus_pallet_xcmp_queue.rs b/runtime/koi/src/weights/cumulus_pallet_xcmp_queue.rs similarity index 95% rename from runtime/pangolin/src/weights/cumulus_pallet_xcmp_queue.rs rename to runtime/koi/src/weights/cumulus_pallet_xcmp_queue.rs index d2db5861a..f1991cd4e 100644 --- a/runtime/pangolin/src/weights/cumulus_pallet_xcmp_queue.rs +++ b/runtime/koi/src/weights/cumulus_pallet_xcmp_queue.rs @@ -21,7 +21,7 @@ //! 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` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("pangolin-dev")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("koi-dev")`, DB CACHE: 1024 // Executed Command: // target/release/darwinia @@ -32,9 +32,9 @@ // --heap-pages // 4096 // --chain -// pangolin-dev +// koi-dev // --output -// runtime/pangolin/src/weights +// runtime/koi/src/weights // --pallet // * // --extrinsic diff --git a/runtime/pangolin/src/weights/darwinia_account_migration.rs b/runtime/koi/src/weights/darwinia_account_migration.rs similarity index 98% rename from runtime/pangolin/src/weights/darwinia_account_migration.rs rename to runtime/koi/src/weights/darwinia_account_migration.rs index 816ba7a3c..2aed4d837 100644 --- a/runtime/pangolin/src/weights/darwinia_account_migration.rs +++ b/runtime/koi/src/weights/darwinia_account_migration.rs @@ -21,7 +21,7 @@ //! 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` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("pangolin-dev")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("koi-dev")`, DB CACHE: 1024 // Executed Command: // target/release/darwinia @@ -32,9 +32,9 @@ // --heap-pages // 4096 // --chain -// pangolin-dev +// koi-dev // --output -// runtime/pangolin/src/weights +// runtime/koi/src/weights // --pallet // * // --extrinsic diff --git a/runtime/pangolin/src/weights/darwinia_deposit.rs b/runtime/koi/src/weights/darwinia_deposit.rs similarity index 97% rename from runtime/pangolin/src/weights/darwinia_deposit.rs rename to runtime/koi/src/weights/darwinia_deposit.rs index 14dd709cd..ce646a2c9 100644 --- a/runtime/pangolin/src/weights/darwinia_deposit.rs +++ b/runtime/koi/src/weights/darwinia_deposit.rs @@ -21,7 +21,7 @@ //! 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` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("pangolin-dev")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("koi-dev")`, DB CACHE: 1024 // Executed Command: // target/release/darwinia @@ -32,9 +32,9 @@ // --heap-pages // 4096 // --chain -// pangolin-dev +// koi-dev // --output -// runtime/pangolin/src/weights +// runtime/koi/src/weights // --pallet // * // --extrinsic diff --git a/runtime/pangolin/src/weights/darwinia_staking.rs b/runtime/koi/src/weights/darwinia_staking.rs similarity index 98% rename from runtime/pangolin/src/weights/darwinia_staking.rs rename to runtime/koi/src/weights/darwinia_staking.rs index 0a666ee81..128365bb3 100644 --- a/runtime/pangolin/src/weights/darwinia_staking.rs +++ b/runtime/koi/src/weights/darwinia_staking.rs @@ -21,7 +21,7 @@ //! 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` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("pangolin-dev")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("koi-dev")`, DB CACHE: 1024 // Executed Command: // target/release/darwinia @@ -32,9 +32,9 @@ // --heap-pages // 4096 // --chain -// pangolin-dev +// koi-dev // --output -// runtime/pangolin/src/weights +// runtime/koi/src/weights // --pallet // * // --extrinsic diff --git a/runtime/pangolin/src/weights/frame_system.rs b/runtime/koi/src/weights/frame_system.rs similarity index 98% rename from runtime/pangolin/src/weights/frame_system.rs rename to runtime/koi/src/weights/frame_system.rs index 415eed53f..9d314556e 100644 --- a/runtime/pangolin/src/weights/frame_system.rs +++ b/runtime/koi/src/weights/frame_system.rs @@ -21,7 +21,7 @@ //! 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` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("pangolin-dev")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("koi-dev")`, DB CACHE: 1024 // Executed Command: // target/release/darwinia @@ -32,9 +32,9 @@ // --heap-pages // 4096 // --chain -// pangolin-dev +// koi-dev // --output -// runtime/pangolin/src/weights +// runtime/koi/src/weights // --pallet // * // --extrinsic diff --git a/runtime/pangolin/src/weights/pallet_assets.rs b/runtime/koi/src/weights/pallet_assets.rs similarity index 99% rename from runtime/pangolin/src/weights/pallet_assets.rs rename to runtime/koi/src/weights/pallet_assets.rs index e4866b7c6..343758f54 100644 --- a/runtime/pangolin/src/weights/pallet_assets.rs +++ b/runtime/koi/src/weights/pallet_assets.rs @@ -21,7 +21,7 @@ //! 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` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("pangolin-dev")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("koi-dev")`, DB CACHE: 1024 // Executed Command: // target/release/darwinia @@ -32,9 +32,9 @@ // --heap-pages // 4096 // --chain -// pangolin-dev +// koi-dev // --output -// runtime/pangolin/src/weights +// runtime/koi/src/weights // --pallet // * // --extrinsic diff --git a/runtime/pangolin/src/weights/pallet_balances.rs b/runtime/koi/src/weights/pallet_balances.rs similarity index 97% rename from runtime/pangolin/src/weights/pallet_balances.rs rename to runtime/koi/src/weights/pallet_balances.rs index 8b62ac992..ce5f394a6 100644 --- a/runtime/pangolin/src/weights/pallet_balances.rs +++ b/runtime/koi/src/weights/pallet_balances.rs @@ -21,7 +21,7 @@ //! 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` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("pangolin-dev")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("koi-dev")`, DB CACHE: 1024 // Executed Command: // target/release/darwinia @@ -32,9 +32,9 @@ // --heap-pages // 4096 // --chain -// pangolin-dev +// koi-dev // --output -// runtime/pangolin/src/weights +// runtime/koi/src/weights // --pallet // * // --extrinsic diff --git a/runtime/pangolin/src/weights/pallet_collective.rs b/runtime/koi/src/weights/pallet_collective.rs similarity index 99% rename from runtime/pangolin/src/weights/pallet_collective.rs rename to runtime/koi/src/weights/pallet_collective.rs index 46c22dadc..9ea7deb47 100644 --- a/runtime/pangolin/src/weights/pallet_collective.rs +++ b/runtime/koi/src/weights/pallet_collective.rs @@ -21,7 +21,7 @@ //! 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` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("pangolin-dev")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("koi-dev")`, DB CACHE: 1024 // Executed Command: // target/release/darwinia @@ -32,9 +32,9 @@ // --heap-pages // 4096 // --chain -// pangolin-dev +// koi-dev // --output -// runtime/pangolin/src/weights +// runtime/koi/src/weights // --pallet // * // --extrinsic diff --git a/runtime/pangolin/src/weights/pallet_conviction_voting.rs b/runtime/koi/src/weights/pallet_conviction_voting.rs similarity index 98% rename from runtime/pangolin/src/weights/pallet_conviction_voting.rs rename to runtime/koi/src/weights/pallet_conviction_voting.rs index a4acd2533..13d261df7 100644 --- a/runtime/pangolin/src/weights/pallet_conviction_voting.rs +++ b/runtime/koi/src/weights/pallet_conviction_voting.rs @@ -21,7 +21,7 @@ //! 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` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("pangolin-dev")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("koi-dev")`, DB CACHE: 1024 // Executed Command: // target/release/darwinia @@ -32,9 +32,9 @@ // --heap-pages // 4096 // --chain -// pangolin-dev +// koi-dev // --output -// runtime/pangolin/src/weights +// runtime/koi/src/weights // --pallet // * // --extrinsic diff --git a/runtime/pangolin/src/weights/pallet_identity.rs b/runtime/koi/src/weights/pallet_identity.rs similarity index 99% rename from runtime/pangolin/src/weights/pallet_identity.rs rename to runtime/koi/src/weights/pallet_identity.rs index c655e3683..4fb13f2c4 100644 --- a/runtime/pangolin/src/weights/pallet_identity.rs +++ b/runtime/koi/src/weights/pallet_identity.rs @@ -21,7 +21,7 @@ //! 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` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("pangolin-dev")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("koi-dev")`, DB CACHE: 1024 // Executed Command: // target/release/darwinia @@ -32,9 +32,9 @@ // --heap-pages // 4096 // --chain -// pangolin-dev +// koi-dev // --output -// runtime/pangolin/src/weights +// runtime/koi/src/weights // --pallet // * // --extrinsic diff --git a/runtime/pangolin/src/weights/pallet_preimage.rs b/runtime/koi/src/weights/pallet_preimage.rs similarity index 98% rename from runtime/pangolin/src/weights/pallet_preimage.rs rename to runtime/koi/src/weights/pallet_preimage.rs index 5b3325685..b2b3c760b 100644 --- a/runtime/pangolin/src/weights/pallet_preimage.rs +++ b/runtime/koi/src/weights/pallet_preimage.rs @@ -21,7 +21,7 @@ //! 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` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("pangolin-dev")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("koi-dev")`, DB CACHE: 1024 // Executed Command: // target/release/darwinia @@ -32,9 +32,9 @@ // --heap-pages // 4096 // --chain -// pangolin-dev +// koi-dev // --output -// runtime/pangolin/src/weights +// runtime/koi/src/weights // --pallet // * // --extrinsic diff --git a/runtime/pangolin/src/weights/pallet_proxy.rs b/runtime/koi/src/weights/pallet_proxy.rs similarity index 98% rename from runtime/pangolin/src/weights/pallet_proxy.rs rename to runtime/koi/src/weights/pallet_proxy.rs index 36ad05bad..f329f26e3 100644 --- a/runtime/pangolin/src/weights/pallet_proxy.rs +++ b/runtime/koi/src/weights/pallet_proxy.rs @@ -21,7 +21,7 @@ //! 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` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("pangolin-dev")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("koi-dev")`, DB CACHE: 1024 // Executed Command: // target/release/darwinia @@ -32,9 +32,9 @@ // --heap-pages // 4096 // --chain -// pangolin-dev +// koi-dev // --output -// runtime/pangolin/src/weights +// runtime/koi/src/weights // --pallet // * // --extrinsic diff --git a/runtime/pangolin/src/weights/pallet_referenda.rs b/runtime/koi/src/weights/pallet_referenda.rs similarity index 99% rename from runtime/pangolin/src/weights/pallet_referenda.rs rename to runtime/koi/src/weights/pallet_referenda.rs index 378613619..37d2df506 100644 --- a/runtime/pangolin/src/weights/pallet_referenda.rs +++ b/runtime/koi/src/weights/pallet_referenda.rs @@ -21,7 +21,7 @@ //! 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` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("pangolin-dev")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("koi-dev")`, DB CACHE: 1024 // Executed Command: // target/release/darwinia @@ -32,9 +32,9 @@ // --heap-pages // 4096 // --chain -// pangolin-dev +// koi-dev // --output -// runtime/pangolin/src/weights +// runtime/koi/src/weights // --pallet // * // --extrinsic diff --git a/runtime/pangolin/src/weights/pallet_scheduler.rs b/runtime/koi/src/weights/pallet_scheduler.rs similarity index 98% rename from runtime/pangolin/src/weights/pallet_scheduler.rs rename to runtime/koi/src/weights/pallet_scheduler.rs index c5eb42941..182d7d6a3 100644 --- a/runtime/pangolin/src/weights/pallet_scheduler.rs +++ b/runtime/koi/src/weights/pallet_scheduler.rs @@ -21,7 +21,7 @@ //! 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` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("pangolin-dev")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("koi-dev")`, DB CACHE: 1024 // Executed Command: // target/release/darwinia @@ -32,9 +32,9 @@ // --heap-pages // 4096 // --chain -// pangolin-dev +// koi-dev // --output -// runtime/pangolin/src/weights +// runtime/koi/src/weights // --pallet // * // --extrinsic diff --git a/runtime/pangolin/src/weights/pallet_session.rs b/runtime/koi/src/weights/pallet_session.rs similarity index 95% rename from runtime/pangolin/src/weights/pallet_session.rs rename to runtime/koi/src/weights/pallet_session.rs index 558a06b1a..a1ab2eb9b 100644 --- a/runtime/pangolin/src/weights/pallet_session.rs +++ b/runtime/koi/src/weights/pallet_session.rs @@ -21,7 +21,7 @@ //! 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` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("pangolin-dev")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("koi-dev")`, DB CACHE: 1024 // Executed Command: // target/release/darwinia @@ -32,9 +32,9 @@ // --heap-pages // 4096 // --chain -// pangolin-dev +// koi-dev // --output -// runtime/pangolin/src/weights +// runtime/koi/src/weights // --pallet // * // --extrinsic diff --git a/runtime/pangolin/src/weights/pallet_timestamp.rs b/runtime/koi/src/weights/pallet_timestamp.rs similarity index 94% rename from runtime/pangolin/src/weights/pallet_timestamp.rs rename to runtime/koi/src/weights/pallet_timestamp.rs index a14b9e9d8..cf577ddd4 100644 --- a/runtime/pangolin/src/weights/pallet_timestamp.rs +++ b/runtime/koi/src/weights/pallet_timestamp.rs @@ -21,7 +21,7 @@ //! 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` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("pangolin-dev")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("koi-dev")`, DB CACHE: 1024 // Executed Command: // target/release/darwinia @@ -32,9 +32,9 @@ // --heap-pages // 4096 // --chain -// pangolin-dev +// koi-dev // --output -// runtime/pangolin/src/weights +// runtime/koi/src/weights // --pallet // * // --extrinsic diff --git a/runtime/pangolin/src/weights/pallet_treasury.rs b/runtime/koi/src/weights/pallet_treasury.rs similarity index 98% rename from runtime/pangolin/src/weights/pallet_treasury.rs rename to runtime/koi/src/weights/pallet_treasury.rs index 1f6bb844f..c0ba1f4d2 100644 --- a/runtime/pangolin/src/weights/pallet_treasury.rs +++ b/runtime/koi/src/weights/pallet_treasury.rs @@ -21,7 +21,7 @@ //! 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` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("pangolin-dev")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("koi-dev")`, DB CACHE: 1024 // Executed Command: // target/release/darwinia @@ -32,9 +32,9 @@ // --heap-pages // 4096 // --chain -// pangolin-dev +// koi-dev // --output -// runtime/pangolin/src/weights +// runtime/koi/src/weights // --pallet // * // --extrinsic diff --git a/runtime/pangolin/src/weights/pallet_tx_pause.rs b/runtime/koi/src/weights/pallet_tx_pause.rs similarity index 95% rename from runtime/pangolin/src/weights/pallet_tx_pause.rs rename to runtime/koi/src/weights/pallet_tx_pause.rs index ddf887ee6..eff5ae66a 100644 --- a/runtime/pangolin/src/weights/pallet_tx_pause.rs +++ b/runtime/koi/src/weights/pallet_tx_pause.rs @@ -21,7 +21,7 @@ //! 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` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("pangolin-dev")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("koi-dev")`, DB CACHE: 1024 // Executed Command: // target/release/darwinia @@ -32,9 +32,9 @@ // --heap-pages // 4096 // --chain -// pangolin-dev +// koi-dev // --output -// runtime/pangolin/src/weights +// runtime/koi/src/weights // --pallet // * // --extrinsic diff --git a/runtime/pangolin/src/weights/pallet_utility.rs b/runtime/koi/src/weights/pallet_utility.rs similarity index 97% rename from runtime/pangolin/src/weights/pallet_utility.rs rename to runtime/koi/src/weights/pallet_utility.rs index 72d9d9361..308742d08 100644 --- a/runtime/pangolin/src/weights/pallet_utility.rs +++ b/runtime/koi/src/weights/pallet_utility.rs @@ -21,7 +21,7 @@ //! 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` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("pangolin-dev")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("koi-dev")`, DB CACHE: 1024 // Executed Command: // target/release/darwinia @@ -32,9 +32,9 @@ // --heap-pages // 4096 // --chain -// pangolin-dev +// koi-dev // --output -// runtime/pangolin/src/weights +// runtime/koi/src/weights // --pallet // * // --extrinsic diff --git a/runtime/pangolin/src/weights/pallet_whitelist.rs b/runtime/koi/src/weights/pallet_whitelist.rs similarity index 97% rename from runtime/pangolin/src/weights/pallet_whitelist.rs rename to runtime/koi/src/weights/pallet_whitelist.rs index 39028a5e9..a1a6e0ab9 100644 --- a/runtime/pangolin/src/weights/pallet_whitelist.rs +++ b/runtime/koi/src/weights/pallet_whitelist.rs @@ -21,7 +21,7 @@ //! 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` -//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("pangolin-dev")`, DB CACHE: 1024 +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("koi-dev")`, DB CACHE: 1024 // Executed Command: // target/release/darwinia @@ -32,9 +32,9 @@ // --heap-pages // 4096 // --chain -// pangolin-dev +// koi-dev // --output -// runtime/pangolin/src/weights +// runtime/koi/src/weights // --pallet // * // --extrinsic diff --git a/runtime/pangolin/tests/mock.rs b/runtime/koi/tests/mock.rs similarity index 94% rename from runtime/pangolin/tests/mock.rs rename to runtime/koi/tests/mock.rs index f85a84dee..2e99b24b8 100644 --- a/runtime/pangolin/tests/mock.rs +++ b/runtime/koi/tests/mock.rs @@ -16,7 +16,7 @@ // You should have received a copy of the GNU General Public License // along with Darwinia. If not, see . -pub use pangolin_runtime::*; +pub use koi_runtime::*; // substrate use sp_io::TestExternalities; @@ -50,7 +50,7 @@ impl ExtBuilder { .unwrap(); pallet_assets::GenesisConfig:: { assets: vec![(KTON_ID, ROOT, true, 1)], - metadata: vec![(KTON_ID, b"Pangolin Commitment Token".to_vec(), b"PKTON".to_vec(), 18)], + metadata: vec![(KTON_ID, b"Koi Commitment Token".to_vec(), b"PKTON".to_vec(), 18)], accounts: self.assets_accounts.clone(), } .assimilate_storage(&mut t) diff --git a/runtime/pangolin/tests/tests.rs b/runtime/koi/tests/tests.rs similarity index 100% rename from runtime/pangolin/tests/tests.rs rename to runtime/koi/tests/tests.rs diff --git a/tests/config.ts b/tests/config.ts index c0651b0dc..e6b53cbdc 100644 --- a/tests/config.ts +++ b/tests/config.ts @@ -1,7 +1,7 @@ import Web3 from "web3"; import { JsonRpcResponse } from "web3-core-helpers"; -export const CHAIN_ID = 43; +export const CHAIN_ID = 701; export const HOST_HTTP_URL = "http://127.0.0.1:9933"; export const HOST_WS_URL = "ws://127.0.0.1:9944"; export const BLOCK_GAS_LIMIT = 20000000; diff --git a/tool/am-signer/src/main.rs b/tool/am-signer/src/main.rs index 1db1ec0be..94b9944cc 100644 --- a/tool/am-signer/src/main.rs +++ b/tool/am-signer/src/main.rs @@ -45,16 +45,14 @@ enum Scheme { enum Network { Darwinia, Crab, - Pangoro, - Pangolin, + Koi, } impl Network { fn as_bytes(&self) -> &'static [u8] { match self { Self::Darwinia => b"Darwinia2", Self::Crab => b"Crab2", - Self::Pangoro => b"Pangoro2", - Self::Pangolin => b"Pangolin2", + Self::Koi => b"Koi", } } }