Skip to content

Commit

Permalink
Merge pull request #662 from galacticcouncil/runtime-pallet-order
Browse files Browse the repository at this point in the history
fix: runtime pallet order
  • Loading branch information
enthusiastmartin authored May 16, 2024
2 parents 24ffc88 + 5c8690e commit 8659a76
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

11 changes: 9 additions & 2 deletions launch-configs/chopsticks/basilisk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,29 @@ mock-signature-host: true
#block: 2734198
db: ./db.sqlite
wasm-override: ./basilisk_runtime.compact.compressed.wasm
#runtime-log-level: 5

import-storage:
System:
Account:
-
-
- 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY
- data:
free: 1000000000000000
- providers: 1
data:
free: "1000000000000000000000"
Tokens:
Accounts:
-
-
- 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY
- 2
- free: '100000000000000000000'
-
-
- 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY
- 1
- free: '100000000000000000000'
Council:
Members: [5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY]
TechnicalCommittee:
Expand Down
2 changes: 1 addition & 1 deletion runtime/basilisk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "basilisk-runtime"
version = "114.0.0"
version = "115.0.0"
authors = ["GalacticCouncil"]
edition = "2021"
homepage = "https://github.com/galacticcouncil/Basilisk-node"
Expand Down
14 changes: 6 additions & 8 deletions runtime/basilisk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("basilisk"),
impl_name: create_runtime_str!("basilisk"),
authoring_version: 1,
spec_version: 114,
spec_version: 115,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down Expand Up @@ -167,6 +167,8 @@ construct_runtime!(
Timestamp: pallet_timestamp = 1,
Balances: pallet_balances = 2,
TransactionPayment: pallet_transaction_payment exclude_parts { Config } = 3,
// due to multi payment pallet prices, this needs to be initialized at the very beginning
MultiTransactionPayment: pallet_transaction_multi_payment = 106,
Treasury: pallet_treasury = 4,
Utility: pallet_utility = 5,
//NOTE: 6 - is used by Scheduler which must be after cumulus_pallet_parachain_system
Expand All @@ -190,14 +192,12 @@ construct_runtime!(
Multisig: pallet_multisig = 22,
StateTrieMigration: pallet_state_trie_migration = 23,

// Parachain and XCM - starts at index 50
// The order of next 3 pallest is important
RelayChainInfo: pallet_relaychain_info = 108,
Scheduler: pallet_scheduler = 6,
ParachainSystem: cumulus_pallet_parachain_system exclude_parts { Config } = 50,
ParachainInfo: staging_parachain_info = 51,

//NOTE: Scheduler must be after ParachainSystem otherwise RelayChainBlockNumberProvider
//will return 0 as current block number when used with Scheduler(democracy).
Scheduler: pallet_scheduler = 6,

PolkadotXcm: pallet_xcm = 52,
CumulusXcm: cumulus_pallet_xcm = 53,
XcmpQueue: cumulus_pallet_xcmp_queue exclude_parts { Call } = 54,
Expand All @@ -210,8 +210,6 @@ construct_runtime!(
Duster: pallet_duster = 102,
LBP: pallet_lbp = 104,
NFT: pallet_nft = 105,
MultiTransactionPayment: pallet_transaction_multi_payment = 106,
RelayChainInfo: pallet_relaychain_info = 108,
Marketplace: pallet_marketplace = 109,
TransactionPause: pallet_transaction_pause = 110,
Router: pallet_route_executor = 111,
Expand Down

0 comments on commit 8659a76

Please sign in to comment.