git.delta.rocks / unique-network / refs/commits / 11819bef1c7a

difftreelog

feat sapphire runtime

Alexander Saft2022-11-22parent: #df29d0d.patch.diff
in: master

5 files changed

modifiednode/cli/Cargo.tomldiffbeforeafterboth
--- a/node/cli/Cargo.toml
+++ b/node/cli/Cargo.toml
@@ -335,3 +335,7 @@
     'quartz-runtime?/try-runtime',
     'opal-runtime?/try-runtime',
 ]
+sapphire-runtime = [
+    'opal-runtime',
+    'opal-runtime/become-sapphire',
+]
modifiednode/cli/src/chain_spec.rsdiffbeforeafterboth
--- a/node/cli/src/chain_spec.rs
+++ b/node/cli/src/chain_spec.rs
@@ -66,7 +66,7 @@
 }
 
 #[cfg(not(feature = "unique-runtime"))]
-/// PARA_ID for Opal/Quartz
+/// PARA_ID for Opal/Sapphire/Quartz
 const PARA_ID: u32 = 2095;
 
 #[cfg(feature = "unique-runtime")]
@@ -89,7 +89,11 @@
 			return RuntimeId::Quartz;
 		}
 
-		if self.id().starts_with("opal") || self.id() == "dev" || self.id() == "local_testnet" {
+		if self.id().starts_with("opal")
+			|| self.id().starts_with("sapphire")
+			|| self.id() == "dev"
+			|| self.id() == "local_testnet"
+		{
 			return RuntimeId::Opal;
 		}
 
modifiednode/cli/src/cli.rsdiffbeforeafterboth
--- a/node/cli/src/cli.rs
+++ b/node/cli/src/cli.rs
@@ -101,6 +101,8 @@
 					"Unique"
 				} else if cfg!(feature = "quartz-runtime") {
 					"Quartz"
+				} else if cfg!(feature = "sapphire-runtime") {
+					"Sapphire"
 				} else {
 					"Opal"
 				}
modifiedruntime/opal/Cargo.tomldiffbeforeafterboth
before · runtime/opal/Cargo.toml
1################################################################################2# Package34cargo-features = ["workspace-inheritance"]56[package]7authors = ['Unique Network <support@uniquenetwork.io>']8build = 'build.rs'9description = 'Opal Runtime'10edition = '2021'11homepage = 'https://unique.network'12license = 'GPLv3'13name = 'opal-runtime'14repository = 'https://github.com/UniqueNetwork/unique-chain'15version = "0.9.30"1617[package.metadata.docs.rs]18targets = ['x86_64-unknown-linux-gnu']1920[features]21default = ['std', 'opal-runtime']22runtime-benchmarks = [23    'hex-literal',24    'frame-benchmarking',25    'frame-support/runtime-benchmarks',26    'frame-system-benchmarking',27    'frame-system/runtime-benchmarks',28    'pallet-ethereum/runtime-benchmarks',29    'pallet-evm-migration/runtime-benchmarks',30    'pallet-evm-coder-substrate/runtime-benchmarks',31    'pallet-balances/runtime-benchmarks',32    'pallet-timestamp/runtime-benchmarks',33    'pallet-common/runtime-benchmarks',34    'pallet-structure/runtime-benchmarks',35    'pallet-fungible/runtime-benchmarks',36    'pallet-refungible/runtime-benchmarks',37    'pallet-nonfungible/runtime-benchmarks',38    'pallet-proxy-rmrk-core/runtime-benchmarks',39    'pallet-proxy-rmrk-equip/runtime-benchmarks',40    'pallet-foreign-assets/runtime-benchmarks',41    'pallet-unique/runtime-benchmarks',42    'pallet-inflation/runtime-benchmarks',43    'pallet-app-promotion/runtime-benchmarks',44    'pallet-unique-scheduler-v2/runtime-benchmarks',45    'pallet-xcm/runtime-benchmarks',46    'sp-runtime/runtime-benchmarks',47    'xcm-builder/runtime-benchmarks',48    'pallet-maintenance/runtime-benchmarks',49]50try-runtime = [51    'frame-try-runtime',52    'frame-executive/try-runtime',53    'frame-support/try-runtime',54    'frame-system/try-runtime',55    'cumulus-pallet-parachain-system/try-runtime',56    'parachain-info/try-runtime',57    'pallet-aura/try-runtime',58    'cumulus-pallet-aura-ext/try-runtime',59    'pallet-balances/try-runtime',60    'pallet-randomness-collective-flip/try-runtime',61    'pallet-timestamp/try-runtime',62    'pallet-transaction-payment/try-runtime',63    'pallet-treasury/try-runtime',64    'pallet-sudo/try-runtime',65    'orml-vesting/try-runtime',66    'orml-xtokens/try-runtime',67    'orml-tokens/try-runtime',68    'cumulus-pallet-xcmp-queue/try-runtime',69    'pallet-xcm/try-runtime',70    'cumulus-pallet-xcm/try-runtime',71    'cumulus-pallet-dmp-queue/try-runtime',72    'pallet-inflation/try-runtime',73    'pallet-unique/try-runtime',74    'pallet-configuration/try-runtime',75    'pallet-charge-transaction/try-runtime',76    'pallet-common/try-runtime',77    'pallet-fungible/try-runtime',78    'pallet-refungible/try-runtime',79    'pallet-nonfungible/try-runtime',80    'pallet-structure/try-runtime',81    'pallet-proxy-rmrk-core/try-runtime',82    'pallet-proxy-rmrk-equip/try-runtime',83    'pallet-app-promotion/try-runtime',84    'pallet-foreign-assets/try-runtime',85    'pallet-ethereum/try-runtime',86    'pallet-evm-coder-substrate/try-runtime',87    'pallet-evm-contract-helpers/try-runtime',88    'pallet-evm-transaction-payment/try-runtime',89    'pallet-evm-migration/try-runtime',90    'pallet-maintenance/try-runtime',91    'pallet-test-utils?/try-runtime',92]93std = [94    'codec/std',95    'cumulus-pallet-aura-ext/std',96    'cumulus-pallet-parachain-system/std',97    'cumulus-pallet-xcm/std',98    'cumulus-pallet-xcmp-queue/std',99    'cumulus-primitives-core/std',100    'cumulus-primitives-utility/std',101    'frame-try-runtime/std',102    'frame-executive/std',103    'frame-support/std',104    'frame-system/std',105    'frame-system-rpc-runtime-api/std',106    'pallet-aura/std',107    'pallet-balances/std',108    # 'pallet-contracts/std',109    # 'pallet-contracts-primitives/std',110    # 'pallet-contracts-rpc-runtime-api/std',111    # 'pallet-contract-helpers/std',112    'pallet-randomness-collective-flip/std',113    'pallet-sudo/std',114    'pallet-timestamp/std',115    'pallet-transaction-payment/std',116    'pallet-transaction-payment-rpc-runtime-api/std',117    'pallet-treasury/std',118    'pallet-evm/std',119    'pallet-evm-migration/std',120    'pallet-evm-contract-helpers/std',121    'pallet-evm-transaction-payment/std',122    'pallet-evm-coder-substrate/std',123    'pallet-ethereum/std',124    'pallet-base-fee/std',125    'fp-rpc/std',126    'up-rpc/std',127    'app-promotion-rpc/std',128    'fp-evm-mapping/std',129    'fp-self-contained/std',130    'parachain-info/std',131    'serde',132    'pallet-inflation/std',133    'pallet-configuration/std',134    'pallet-app-promotion/std',135    'pallet-common/std',136    'pallet-structure/std',137    'pallet-fungible/std',138    'pallet-refungible/std',139    'pallet-nonfungible/std',140    'pallet-proxy-rmrk-core/std',141    'pallet-proxy-rmrk-equip/std',142    'pallet-unique/std',143    'pallet-unique-scheduler-v2/std',144    'pallet-charge-transaction/std',145    'up-data-structs/std',146    'sp-api/std',147    'sp-block-builder/std',148    "sp-consensus-aura/std",149    'sp-core/std',150    'sp-inherents/std',151    'sp-io/std',152    'sp-offchain/std',153    'sp-runtime/std',154    'sp-session/std',155    'sp-std/std',156    'sp-transaction-pool/std',157    'sp-version/std',158    'xcm/std',159    'xcm-builder/std',160    'xcm-executor/std',161    'up-common/std',162    'rmrk-rpc/std',163    'evm-coder/std',164    'up-sponsorship/std',165166    "orml-vesting/std",167    "orml-tokens/std",168    "orml-xtokens/std",169    "orml-traits/std",170    "pallet-foreign-assets/std",171172    'pallet-maintenance/std',173    'pallet-test-utils?/std',174]175limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']176opal-runtime = [177    'refungible',178    'scheduler',179    'rmrk',180    'app-promotion',181    'foreign-assets',182    'pallet-test-utils',183]184185refungible = []186scheduler = []187rmrk = []188foreign-assets = []189app-promotion = []190191################################################################################192# Substrate Dependencies193194[dependencies.codec]195default-features = false196features = ['derive']197package = 'parity-scale-codec'198version = '3.1.2'199200[dependencies.frame-benchmarking]201default-features = false202git = "https://github.com/paritytech/substrate"203optional = true204branch = "polkadot-v0.9.30"205206[dependencies.frame-try-runtime]207default-features = false208git = "https://github.com/paritytech/substrate"209optional = true210branch = "polkadot-v0.9.30"211212[dependencies.frame-executive]213default-features = false214git = "https://github.com/paritytech/substrate"215branch = "polkadot-v0.9.30"216217[dependencies.frame-support]218default-features = false219git = "https://github.com/paritytech/substrate"220branch = "polkadot-v0.9.30"221222[dependencies.frame-system]223default-features = false224git = "https://github.com/paritytech/substrate"225branch = "polkadot-v0.9.30"226227[dependencies.frame-system-benchmarking]228default-features = false229git = "https://github.com/paritytech/substrate"230optional = true231branch = "polkadot-v0.9.30"232233[dependencies.frame-system-rpc-runtime-api]234default-features = false235git = "https://github.com/paritytech/substrate"236branch = "polkadot-v0.9.30"237238[dependencies.hex-literal]239optional = true240version = '0.3.3'241242[dependencies.serde]243default-features = false244features = ['derive']245optional = true246version = '1.0.130'247248[dependencies.pallet-aura]249default-features = false250git = "https://github.com/paritytech/substrate"251branch = "polkadot-v0.9.30"252253[dependencies.pallet-balances]254default-features = false255git = "https://github.com/paritytech/substrate"256branch = "polkadot-v0.9.30"257258# Contracts specific packages259# [dependencies.pallet-contracts]260# git = 'https://github.com/paritytech/substrate'261# default-features = false262# branch = 'master'263# version = '4.0.0-dev'264265# [dependencies.pallet-contracts-primitives]266# git = 'https://github.com/paritytech/substrate'267# default-features = false268# branch = 'master'269# version = '4.0.0-dev'270271# [dependencies.pallet-contracts-rpc-runtime-api]272# git = 'https://github.com/paritytech/substrate'273# default-features = false274# branch = 'master'275# version = '4.0.0-dev'276277[dependencies.pallet-randomness-collective-flip]278default-features = false279git = "https://github.com/paritytech/substrate"280branch = "polkadot-v0.9.30"281282[dependencies.pallet-sudo]283default-features = false284git = "https://github.com/paritytech/substrate"285branch = "polkadot-v0.9.30"286287[dependencies.pallet-timestamp]288default-features = false289git = "https://github.com/paritytech/substrate"290branch = "polkadot-v0.9.30"291292[dependencies.pallet-transaction-payment]293default-features = false294git = "https://github.com/paritytech/substrate"295branch = "polkadot-v0.9.30"296297[dependencies.pallet-transaction-payment-rpc-runtime-api]298default-features = false299git = "https://github.com/paritytech/substrate"300branch = "polkadot-v0.9.30"301302[dependencies.pallet-treasury]303default-features = false304git = "https://github.com/paritytech/substrate"305branch = "polkadot-v0.9.30"306307[dependencies.sp-arithmetic]308default-features = false309git = "https://github.com/paritytech/substrate"310branch = "polkadot-v0.9.30"311312[dependencies.sp-api]313default-features = false314git = "https://github.com/paritytech/substrate"315branch = "polkadot-v0.9.30"316317[dependencies.sp-block-builder]318default-features = false319git = "https://github.com/paritytech/substrate"320branch = "polkadot-v0.9.30"321322[dependencies.sp-core]323default-features = false324git = "https://github.com/paritytech/substrate"325branch = "polkadot-v0.9.30"326327[dependencies.sp-consensus-aura]328default-features = false329git = "https://github.com/paritytech/substrate"330branch = "polkadot-v0.9.30"331332[dependencies.sp-inherents]333default-features = false334git = "https://github.com/paritytech/substrate"335branch = "polkadot-v0.9.30"336337[dependencies.sp-io]338default-features = false339git = "https://github.com/paritytech/substrate"340branch = "polkadot-v0.9.30"341342[dependencies.sp-offchain]343default-features = false344git = "https://github.com/paritytech/substrate"345branch = "polkadot-v0.9.30"346347[dependencies.sp-runtime]348default-features = false349git = "https://github.com/paritytech/substrate"350branch = "polkadot-v0.9.30"351352[dependencies.sp-session]353default-features = false354git = "https://github.com/paritytech/substrate"355branch = "polkadot-v0.9.30"356357[dependencies.sp-std]358default-features = false359git = "https://github.com/paritytech/substrate"360branch = "polkadot-v0.9.30"361362[dependencies.sp-transaction-pool]363default-features = false364git = "https://github.com/paritytech/substrate"365branch = "polkadot-v0.9.30"366367[dependencies.sp-version]368default-features = false369git = "https://github.com/paritytech/substrate"370branch = "polkadot-v0.9.30"371372[dependencies.smallvec]373version = '1.6.1'374375################################################################################376# Cumulus dependencies377378[dependencies.parachain-info]379default-features = false380git = "https://github.com/paritytech/cumulus"381branch = "polkadot-v0.9.30"382383[dependencies.cumulus-pallet-aura-ext]384git = "https://github.com/paritytech/cumulus"385branch = "polkadot-v0.9.30"386default-features = false387388[dependencies.cumulus-pallet-parachain-system]389git = "https://github.com/paritytech/cumulus"390branch = "polkadot-v0.9.30"391default-features = false392393[dependencies.cumulus-primitives-core]394git = "https://github.com/paritytech/cumulus"395branch = "polkadot-v0.9.30"396default-features = false397398[dependencies.cumulus-pallet-xcm]399git = "https://github.com/paritytech/cumulus"400branch = "polkadot-v0.9.30"401default-features = false402403[dependencies.cumulus-pallet-dmp-queue]404git = "https://github.com/paritytech/cumulus"405branch = "polkadot-v0.9.30"406default-features = false407408[dependencies.cumulus-pallet-xcmp-queue]409git = "https://github.com/paritytech/cumulus"410branch = "polkadot-v0.9.30"411default-features = false412413[dependencies.cumulus-primitives-utility]414git = "https://github.com/paritytech/cumulus"415branch = "polkadot-v0.9.30"416default-features = false417418[dependencies.cumulus-primitives-timestamp]419git = "https://github.com/paritytech/cumulus"420branch = "polkadot-v0.9.30"421default-features = false422423################################################################################424# Polkadot dependencies425426[dependencies.polkadot-parachain]427git = "https://github.com/paritytech/polkadot"428branch = "release-v0.9.30"429default-features = false430431[dependencies.xcm]432git = "https://github.com/paritytech/polkadot"433branch = "release-v0.9.30"434default-features = false435436[dependencies.xcm-builder]437git = "https://github.com/paritytech/polkadot"438branch = "release-v0.9.30"439default-features = false440441[dependencies.xcm-executor]442git = "https://github.com/paritytech/polkadot"443branch = "release-v0.9.30"444default-features = false445446[dependencies.pallet-xcm]447git = "https://github.com/paritytech/polkadot"448branch = "release-v0.9.30"449default-features = false450451################################################################################452# local dependencies453454[dependencies]455orml-vesting.workspace = true456orml-xtokens.workspace = true457orml-tokens.workspace = true458orml-traits.workspace = true459460log = { version = "0.4.16", default-features = false }461up-common = { path = "../../primitives/common", default-features = false }462scale-info = { version = "2.0.1", default-features = false, features = [463    "derive",464] }465derivative = "2.2.0"466pallet-unique = { path = '../../pallets/unique', default-features = false }467up-rpc = { path = "../../primitives/rpc", default-features = false }468app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }469rmrk-rpc = { path = "../../primitives/rmrk-rpc", default-features = false }470fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30-2" }471pallet-inflation = { path = '../../pallets/inflation', default-features = false }472pallet-app-promotion = { path = '../../pallets/app-promotion', default-features = false }473up-data-structs = { path = '../../primitives/data-structs', default-features = false }474pallet-configuration = { default-features = false, path = "../../pallets/configuration" }475pallet-common = { default-features = false, path = "../../pallets/common" }476pallet-structure = { default-features = false, path = "../../pallets/structure" }477pallet-fungible = { default-features = false, path = "../../pallets/fungible" }478pallet-refungible = { default-features = false, path = "../../pallets/refungible" }479pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }480pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }481pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }482pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.30", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }483pallet-unique-scheduler-v2 = { path = '../../pallets/scheduler-v2', default-features = false }484pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }485pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }486pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }487pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }488pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30-2" }489pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30-2" }490pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30-2" }491fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30-2" }492fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30-2" }493evm-coder = { default-features = false, path = '../../crates/evm-coder' }494up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = 'polkadot-v0.9.30' }495pallet-foreign-assets = { default-features = false, path = "../../pallets/foreign-assets" }496pallet-maintenance = { default-features = false, path = "../../pallets/maintenance" }497498################################################################################499# Test dependencies500501pallet-test-utils = { optional = true, default-features = false, path = "../../test-pallets/utils" }502503################################################################################504# Other Dependencies505506impl-trait-for-tuples = "0.2.2"507508################################################################################509# Dev Dependencies510511[dev-dependencies.logtest]512version = "2.0.0"513514################################################################################515# Build Dependencies516517[build-dependencies.substrate-wasm-builder]518git = "https://github.com/paritytech/substrate"519branch = "polkadot-v0.9.30"
after · runtime/opal/Cargo.toml
1################################################################################2# Package34cargo-features = ["workspace-inheritance"]56[package]7authors = ['Unique Network <support@uniquenetwork.io>']8build = 'build.rs'9description = 'Opal Runtime'10edition = '2021'11homepage = 'https://unique.network'12license = 'GPLv3'13name = 'opal-runtime'14repository = 'https://github.com/UniqueNetwork/unique-chain'15version = "0.9.30"1617[package.metadata.docs.rs]18targets = ['x86_64-unknown-linux-gnu']1920[features]21default = ['std', 'opal-runtime']22runtime-benchmarks = [23    'hex-literal',24    'frame-benchmarking',25    'frame-support/runtime-benchmarks',26    'frame-system-benchmarking',27    'frame-system/runtime-benchmarks',28    'pallet-ethereum/runtime-benchmarks',29    'pallet-evm-migration/runtime-benchmarks',30    'pallet-evm-coder-substrate/runtime-benchmarks',31    'pallet-balances/runtime-benchmarks',32    'pallet-timestamp/runtime-benchmarks',33    'pallet-common/runtime-benchmarks',34    'pallet-structure/runtime-benchmarks',35    'pallet-fungible/runtime-benchmarks',36    'pallet-refungible/runtime-benchmarks',37    'pallet-nonfungible/runtime-benchmarks',38    'pallet-proxy-rmrk-core/runtime-benchmarks',39    'pallet-proxy-rmrk-equip/runtime-benchmarks',40    'pallet-foreign-assets/runtime-benchmarks',41    'pallet-unique/runtime-benchmarks',42    'pallet-inflation/runtime-benchmarks',43    'pallet-app-promotion/runtime-benchmarks',44    'pallet-unique-scheduler-v2/runtime-benchmarks',45    'pallet-xcm/runtime-benchmarks',46    'sp-runtime/runtime-benchmarks',47    'xcm-builder/runtime-benchmarks',48    'pallet-maintenance/runtime-benchmarks',49]50try-runtime = [51    'frame-try-runtime',52    'frame-executive/try-runtime',53    'frame-support/try-runtime',54    'frame-system/try-runtime',55    'cumulus-pallet-parachain-system/try-runtime',56    'parachain-info/try-runtime',57    'pallet-aura/try-runtime',58    'cumulus-pallet-aura-ext/try-runtime',59    'pallet-balances/try-runtime',60    'pallet-randomness-collective-flip/try-runtime',61    'pallet-timestamp/try-runtime',62    'pallet-transaction-payment/try-runtime',63    'pallet-treasury/try-runtime',64    'pallet-sudo/try-runtime',65    'orml-vesting/try-runtime',66    'orml-xtokens/try-runtime',67    'orml-tokens/try-runtime',68    'cumulus-pallet-xcmp-queue/try-runtime',69    'pallet-xcm/try-runtime',70    'cumulus-pallet-xcm/try-runtime',71    'cumulus-pallet-dmp-queue/try-runtime',72    'pallet-inflation/try-runtime',73    'pallet-unique/try-runtime',74    'pallet-configuration/try-runtime',75    'pallet-charge-transaction/try-runtime',76    'pallet-common/try-runtime',77    'pallet-fungible/try-runtime',78    'pallet-refungible/try-runtime',79    'pallet-nonfungible/try-runtime',80    'pallet-structure/try-runtime',81    'pallet-proxy-rmrk-core/try-runtime',82    'pallet-proxy-rmrk-equip/try-runtime',83    'pallet-app-promotion/try-runtime',84    'pallet-foreign-assets/try-runtime',85    'pallet-ethereum/try-runtime',86    'pallet-evm-coder-substrate/try-runtime',87    'pallet-evm-contract-helpers/try-runtime',88    'pallet-evm-transaction-payment/try-runtime',89    'pallet-evm-migration/try-runtime',90    'pallet-maintenance/try-runtime',91    'pallet-test-utils?/try-runtime',92]93std = [94    'codec/std',95    'cumulus-pallet-aura-ext/std',96    'cumulus-pallet-parachain-system/std',97    'cumulus-pallet-xcm/std',98    'cumulus-pallet-xcmp-queue/std',99    'cumulus-primitives-core/std',100    'cumulus-primitives-utility/std',101    'frame-try-runtime/std',102    'frame-executive/std',103    'frame-support/std',104    'frame-system/std',105    'frame-system-rpc-runtime-api/std',106    'pallet-aura/std',107    'pallet-balances/std',108    # 'pallet-contracts/std',109    # 'pallet-contracts-primitives/std',110    # 'pallet-contracts-rpc-runtime-api/std',111    # 'pallet-contract-helpers/std',112    'pallet-randomness-collective-flip/std',113    'pallet-sudo/std',114    'pallet-timestamp/std',115    'pallet-transaction-payment/std',116    'pallet-transaction-payment-rpc-runtime-api/std',117    'pallet-treasury/std',118    'pallet-evm/std',119    'pallet-evm-migration/std',120    'pallet-evm-contract-helpers/std',121    'pallet-evm-transaction-payment/std',122    'pallet-evm-coder-substrate/std',123    'pallet-ethereum/std',124    'pallet-base-fee/std',125    'fp-rpc/std',126    'up-rpc/std',127    'app-promotion-rpc/std',128    'fp-evm-mapping/std',129    'fp-self-contained/std',130    'parachain-info/std',131    'serde',132    'pallet-inflation/std',133    'pallet-configuration/std',134    'pallet-app-promotion/std',135    'pallet-common/std',136    'pallet-structure/std',137    'pallet-fungible/std',138    'pallet-refungible/std',139    'pallet-nonfungible/std',140    'pallet-proxy-rmrk-core/std',141    'pallet-proxy-rmrk-equip/std',142    'pallet-unique/std',143    'pallet-unique-scheduler-v2/std',144    'pallet-charge-transaction/std',145    'up-data-structs/std',146    'sp-api/std',147    'sp-block-builder/std',148    "sp-consensus-aura/std",149    'sp-core/std',150    'sp-inherents/std',151    'sp-io/std',152    'sp-offchain/std',153    'sp-runtime/std',154    'sp-session/std',155    'sp-std/std',156    'sp-transaction-pool/std',157    'sp-version/std',158    'xcm/std',159    'xcm-builder/std',160    'xcm-executor/std',161    'up-common/std',162    'rmrk-rpc/std',163    'evm-coder/std',164    'up-sponsorship/std',165166    "orml-vesting/std",167    "orml-tokens/std",168    "orml-xtokens/std",169    "orml-traits/std",170    "pallet-foreign-assets/std",171172    'pallet-maintenance/std',173    'pallet-test-utils?/std',174]175limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']176opal-runtime = [177    'refungible',178    'scheduler',179    'rmrk',180    'app-promotion',181    'foreign-assets',182    'pallet-test-utils',183]184become-sapphire = []185186refungible = []187scheduler = []188rmrk = []189foreign-assets = []190app-promotion = []191192################################################################################193# Substrate Dependencies194195[dependencies.codec]196default-features = false197features = ['derive']198package = 'parity-scale-codec'199version = '3.1.2'200201[dependencies.frame-benchmarking]202default-features = false203git = "https://github.com/paritytech/substrate"204optional = true205branch = "polkadot-v0.9.30"206207[dependencies.frame-try-runtime]208default-features = false209git = "https://github.com/paritytech/substrate"210optional = true211branch = "polkadot-v0.9.30"212213[dependencies.frame-executive]214default-features = false215git = "https://github.com/paritytech/substrate"216branch = "polkadot-v0.9.30"217218[dependencies.frame-support]219default-features = false220git = "https://github.com/paritytech/substrate"221branch = "polkadot-v0.9.30"222223[dependencies.frame-system]224default-features = false225git = "https://github.com/paritytech/substrate"226branch = "polkadot-v0.9.30"227228[dependencies.frame-system-benchmarking]229default-features = false230git = "https://github.com/paritytech/substrate"231optional = true232branch = "polkadot-v0.9.30"233234[dependencies.frame-system-rpc-runtime-api]235default-features = false236git = "https://github.com/paritytech/substrate"237branch = "polkadot-v0.9.30"238239[dependencies.hex-literal]240optional = true241version = '0.3.3'242243[dependencies.serde]244default-features = false245features = ['derive']246optional = true247version = '1.0.130'248249[dependencies.pallet-aura]250default-features = false251git = "https://github.com/paritytech/substrate"252branch = "polkadot-v0.9.30"253254[dependencies.pallet-balances]255default-features = false256git = "https://github.com/paritytech/substrate"257branch = "polkadot-v0.9.30"258259# Contracts specific packages260# [dependencies.pallet-contracts]261# git = 'https://github.com/paritytech/substrate'262# default-features = false263# branch = 'master'264# version = '4.0.0-dev'265266# [dependencies.pallet-contracts-primitives]267# git = 'https://github.com/paritytech/substrate'268# default-features = false269# branch = 'master'270# version = '4.0.0-dev'271272# [dependencies.pallet-contracts-rpc-runtime-api]273# git = 'https://github.com/paritytech/substrate'274# default-features = false275# branch = 'master'276# version = '4.0.0-dev'277278[dependencies.pallet-randomness-collective-flip]279default-features = false280git = "https://github.com/paritytech/substrate"281branch = "polkadot-v0.9.30"282283[dependencies.pallet-sudo]284default-features = false285git = "https://github.com/paritytech/substrate"286branch = "polkadot-v0.9.30"287288[dependencies.pallet-timestamp]289default-features = false290git = "https://github.com/paritytech/substrate"291branch = "polkadot-v0.9.30"292293[dependencies.pallet-transaction-payment]294default-features = false295git = "https://github.com/paritytech/substrate"296branch = "polkadot-v0.9.30"297298[dependencies.pallet-transaction-payment-rpc-runtime-api]299default-features = false300git = "https://github.com/paritytech/substrate"301branch = "polkadot-v0.9.30"302303[dependencies.pallet-treasury]304default-features = false305git = "https://github.com/paritytech/substrate"306branch = "polkadot-v0.9.30"307308[dependencies.sp-arithmetic]309default-features = false310git = "https://github.com/paritytech/substrate"311branch = "polkadot-v0.9.30"312313[dependencies.sp-api]314default-features = false315git = "https://github.com/paritytech/substrate"316branch = "polkadot-v0.9.30"317318[dependencies.sp-block-builder]319default-features = false320git = "https://github.com/paritytech/substrate"321branch = "polkadot-v0.9.30"322323[dependencies.sp-core]324default-features = false325git = "https://github.com/paritytech/substrate"326branch = "polkadot-v0.9.30"327328[dependencies.sp-consensus-aura]329default-features = false330git = "https://github.com/paritytech/substrate"331branch = "polkadot-v0.9.30"332333[dependencies.sp-inherents]334default-features = false335git = "https://github.com/paritytech/substrate"336branch = "polkadot-v0.9.30"337338[dependencies.sp-io]339default-features = false340git = "https://github.com/paritytech/substrate"341branch = "polkadot-v0.9.30"342343[dependencies.sp-offchain]344default-features = false345git = "https://github.com/paritytech/substrate"346branch = "polkadot-v0.9.30"347348[dependencies.sp-runtime]349default-features = false350git = "https://github.com/paritytech/substrate"351branch = "polkadot-v0.9.30"352353[dependencies.sp-session]354default-features = false355git = "https://github.com/paritytech/substrate"356branch = "polkadot-v0.9.30"357358[dependencies.sp-std]359default-features = false360git = "https://github.com/paritytech/substrate"361branch = "polkadot-v0.9.30"362363[dependencies.sp-transaction-pool]364default-features = false365git = "https://github.com/paritytech/substrate"366branch = "polkadot-v0.9.30"367368[dependencies.sp-version]369default-features = false370git = "https://github.com/paritytech/substrate"371branch = "polkadot-v0.9.30"372373[dependencies.smallvec]374version = '1.6.1'375376################################################################################377# Cumulus dependencies378379[dependencies.parachain-info]380default-features = false381git = "https://github.com/paritytech/cumulus"382branch = "polkadot-v0.9.30"383384[dependencies.cumulus-pallet-aura-ext]385git = "https://github.com/paritytech/cumulus"386branch = "polkadot-v0.9.30"387default-features = false388389[dependencies.cumulus-pallet-parachain-system]390git = "https://github.com/paritytech/cumulus"391branch = "polkadot-v0.9.30"392default-features = false393394[dependencies.cumulus-primitives-core]395git = "https://github.com/paritytech/cumulus"396branch = "polkadot-v0.9.30"397default-features = false398399[dependencies.cumulus-pallet-xcm]400git = "https://github.com/paritytech/cumulus"401branch = "polkadot-v0.9.30"402default-features = false403404[dependencies.cumulus-pallet-dmp-queue]405git = "https://github.com/paritytech/cumulus"406branch = "polkadot-v0.9.30"407default-features = false408409[dependencies.cumulus-pallet-xcmp-queue]410git = "https://github.com/paritytech/cumulus"411branch = "polkadot-v0.9.30"412default-features = false413414[dependencies.cumulus-primitives-utility]415git = "https://github.com/paritytech/cumulus"416branch = "polkadot-v0.9.30"417default-features = false418419[dependencies.cumulus-primitives-timestamp]420git = "https://github.com/paritytech/cumulus"421branch = "polkadot-v0.9.30"422default-features = false423424################################################################################425# Polkadot dependencies426427[dependencies.polkadot-parachain]428git = "https://github.com/paritytech/polkadot"429branch = "release-v0.9.30"430default-features = false431432[dependencies.xcm]433git = "https://github.com/paritytech/polkadot"434branch = "release-v0.9.30"435default-features = false436437[dependencies.xcm-builder]438git = "https://github.com/paritytech/polkadot"439branch = "release-v0.9.30"440default-features = false441442[dependencies.xcm-executor]443git = "https://github.com/paritytech/polkadot"444branch = "release-v0.9.30"445default-features = false446447[dependencies.pallet-xcm]448git = "https://github.com/paritytech/polkadot"449branch = "release-v0.9.30"450default-features = false451452################################################################################453# local dependencies454455[dependencies]456orml-vesting.workspace = true457orml-xtokens.workspace = true458orml-tokens.workspace = true459orml-traits.workspace = true460461log = { version = "0.4.16", default-features = false }462up-common = { path = "../../primitives/common", default-features = false }463scale-info = { version = "2.0.1", default-features = false, features = [464    "derive",465] }466derivative = "2.2.0"467pallet-unique = { path = '../../pallets/unique', default-features = false }468up-rpc = { path = "../../primitives/rpc", default-features = false }469app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false }470rmrk-rpc = { path = "../../primitives/rmrk-rpc", default-features = false }471fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30-2" }472pallet-inflation = { path = '../../pallets/inflation', default-features = false }473pallet-app-promotion = { path = '../../pallets/app-promotion', default-features = false }474up-data-structs = { path = '../../primitives/data-structs', default-features = false }475pallet-configuration = { default-features = false, path = "../../pallets/configuration" }476pallet-common = { default-features = false, path = "../../pallets/common" }477pallet-structure = { default-features = false, path = "../../pallets/structure" }478pallet-fungible = { default-features = false, path = "../../pallets/fungible" }479pallet-refungible = { default-features = false, path = "../../pallets/refungible" }480pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }481pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }482pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }483pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = "polkadot-v0.9.30", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }484pallet-unique-scheduler-v2 = { path = '../../pallets/scheduler-v2', default-features = false }485pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }486pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }487pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }488pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }489pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30-2" }490pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30-2" }491pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30-2" }492fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30-2" }493fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", branch = "unique-polkadot-v0.9.30-2" }494evm-coder = { default-features = false, path = '../../crates/evm-coder' }495up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", branch = 'polkadot-v0.9.30' }496pallet-foreign-assets = { default-features = false, path = "../../pallets/foreign-assets" }497pallet-maintenance = { default-features = false, path = "../../pallets/maintenance" }498499################################################################################500# Test dependencies501502pallet-test-utils = { optional = true, default-features = false, path = "../../test-pallets/utils" }503504################################################################################505# Other Dependencies506507impl-trait-for-tuples = "0.2.2"508509################################################################################510# Dev Dependencies511512[dev-dependencies.logtest]513version = "2.0.0"514515################################################################################516# Build Dependencies517518[build-dependencies.substrate-wasm-builder]519git = "https://github.com/paritytech/substrate"520branch = "polkadot-v0.9.30"
modifiedruntime/opal/src/lib.rsdiffbeforeafterboth
--- a/runtime/opal/src/lib.rs
+++ b/runtime/opal/src/lib.rs
@@ -42,7 +42,14 @@
 
 pub use runtime_common::*;
 
+#[cfg(feature = "become-sapphire")]
+pub const RUNTIME_NAME: &str = "sapphire";
+#[cfg(feature = "become-sapphire")]
+pub const TOKEN_SYMBOL: &str = "QTZ";
+
+#[cfg(not(feature = "become-sapphire"))]
 pub const RUNTIME_NAME: &str = "opal";
+#[cfg(not(feature = "become-sapphire"))]
 pub const TOKEN_SYMBOL: &str = "OPL";
 
 /// This runtime version.
@@ -59,7 +66,16 @@
 
 parameter_types! {
 	pub const Version: RuntimeVersion = VERSION;
-	pub const SS58Prefix: u8 = 42;
+}
+#[cfg(feature = "become-sapphire")]
+parameter_types! {
+	pub const SS58Prefix: u16 = 8883;
+	pub const ChainId: u64 = 8883;
+}
+
+#[cfg(not(feature = "become-sapphire"))]
+parameter_types! {
+	pub const SS58Prefix: u16 = 42;
 	pub const ChainId: u64 = 8882;
 }