difftreelog
quartz release v916001
in: master
4 files changed
README.mddiffbeforeafterboth160location:160location:161 V0(X2(Parent, Parachain(PARA_ID))) 161 V0(X2(Parent, Parachain(PARA_ID))) 162metadata:162metadata:163 name OPL163 name QTZ164 symbol OPL164 symbol QTZ165 decimals 18165 decimals 18166minimalBalance 1166minimalBalance 1167```167```168168169### Next, we can send tokens from Opal to Karura:169### Next, we can send tokens from Quartz to Karura:170```170```171polkadotXcm -> reserveTransferAssets171polkadotXcm -> reserveTransferAssets172dest:172dest:184The result will be displayed in ChainState 184The result will be displayed in ChainState 185tokens -> accounts 185tokens -> accounts 186186187### To send tokens from Karura to Opal:187### To send tokens from Karura to Quartz:188```188```189xtokens -> transfer189xtokens -> transfer190190node/cli/src/command.rsdiffbeforeafterboth52impl SubstrateCli for Cli {52impl SubstrateCli for Cli {53 // TODO use args53 // TODO use args54 fn impl_name() -> String {54 fn impl_name() -> String {55 "Opal Node".into()55 "Quartz Node".into()56 }56 }575758 fn impl_version() -> String {58 fn impl_version() -> String {61 // TODO use args61 // TODO use args62 fn description() -> String {62 fn description() -> String {63 format!(63 format!(64 "Opal Node\n\nThe command-line arguments provided first will be \64 "Quartz Node\n\nThe command-line arguments provided first will be \65 passed to the parachain node, while the arguments provided after -- will be passed \65 passed to the parachain node, while the arguments provided after -- will be passed \66 to the relaychain node.\n\n\66 to the relaychain node.\n\n\67 {} [parachain-args] -- [relaychain-args]",67 {} [parachain-args] -- [relaychain-args]",68 Self::executable_name()68 Self::executable_name()69 )69 )70 }70 }94impl SubstrateCli for RelayChainCli {94impl SubstrateCli for RelayChainCli {95 // TODO use args95 // TODO use args96 fn impl_name() -> String {96 fn impl_name() -> String {97 "Opal Node".into()97 "Quartz Node".into()98 }98 }9999100 fn impl_version() -> String {100 fn impl_version() -> String {101 env!("SUBSTRATE_CLI_IMPL_VERSION").into()101 env!("SUBSTRATE_CLI_IMPL_VERSION").into()102 }102 }103 // TODO use args103 // TODO use args104 fn description() -> String {104 fn description() -> String {105 "Opal Node\n\nThe command-line arguments provided first will be \105 "Quartz Node\n\nThe command-line arguments provided first will be \106 passed to the parachain node, while the arguments provided after -- will be passed \106 passed to the parachain node, while the arguments provided after -- will be passed \107 to the relaychain node.\n\n\107 to the relaychain node.\n\n\108 parachain-collator [parachain-args] -- [relaychain-args]"108 parachain-collator [parachain-args] -- [relaychain-args]"109 .into()109 .into()110 }110 }111111runtime/src/lib.rsdiffbeforeafterboth157157158/// This runtime version.158/// This runtime version.159pub const VERSION: RuntimeVersion = RuntimeVersion {159pub const VERSION: RuntimeVersion = RuntimeVersion {160 spec_name: create_runtime_str!("opal"),160 spec_name: create_runtime_str!("quartz"),161 impl_name: create_runtime_str!("opal"),161 impl_name: create_runtime_str!("quartz"),162 authoring_version: 1,162 authoring_version: 1,163 spec_version: 916001,163 spec_version: 916001,164 impl_version: 0,164 impl_version: 0,247 .avg_block_initialization(AVERAGE_ON_INITIALIZE_RATIO)247 .avg_block_initialization(AVERAGE_ON_INITIALIZE_RATIO)248 .build_or_panic();248 .build_or_panic();249 pub const Version: RuntimeVersion = VERSION;249 pub const Version: RuntimeVersion = VERSION;250 pub const SS58Prefix: u8 = 42;250 pub const SS58Prefix: u8 = 255;251}251}252252253parameter_types! {253parameter_types! {tests/src/xcmTransfer.test.tsdiffbeforeafterboth23const KARURA_CHAIN = 2000;23const KARURA_CHAIN = 2000;24const KARURA_PORT = '9946';24const KARURA_PORT = '9946';252526describe('Integration test: Exchanging OPL with Karura', () => {26describe('Integration test: Exchanging QTZ with Karura', () => {27 let alice: IKeyringPair;27 let alice: IKeyringPair;28 28 29 before(async () => {29 before(async () => {494950 const metadata =50 const metadata =51 {51 {52 name: 'OPL',52 name: 'QTZ',53 symbol: 'OPL',53 symbol: 'QTZ',54 decimals: 18,54 decimals: 18,55 minimalBalance: 1,55 minimalBalance: 1,56 };56 };63 }, karuraApiOptions);63 }, karuraApiOptions);64 });64 });656566 it('Should connect and send OPL to Karura', async () => {66 it('Should connect and send QTZ to Karura', async () => {67 let balanceOnKaruraBefore: bigint;67 let balanceOnKaruraBefore: bigint;68 68 69 await usingApi(async (api) => {69 await usingApi(async (api) => {130 }, {provider: new WsProvider('ws://127.0.0.1:' + KARURA_PORT)});130 }, {provider: new WsProvider('ws://127.0.0.1:' + KARURA_PORT)});131 });131 });132132133 it('Should connect to Karura and send OPL back', async () => {133 it('Should connect to Karura and send QTZ back', async () => {134 let balanceBefore: bigint;134 let balanceBefore: bigint;135 135 136 await usingApi(async (api) => {136 await usingApi(async (api) => {