git.delta.rocks / unique-network / refs/commits / 47ec26c60804

difftreelog

quartz release v916001

Igor Kozyrev2022-02-11parent: #f13427c.patch.diff
in: master

4 files changed

modifiedREADME.mddiffbeforeafterboth
--- a/README.md
+++ b/README.md
@@ -160,13 +160,13 @@
 location:
 	V0(X2(Parent, Parachain(PARA_ID))) 
 metadata:
-	name         OPL
-	symbol       OPL
+	name         QTZ
+	symbol       QTZ
 	decimals     18
 minimalBalance	 1
 ```
 
-### Next, we can send tokens from Opal to Karura:
+### Next, we can send tokens from Quartz to Karura:
 ```
 polkadotXcm -> reserveTransferAssets
 dest:
@@ -184,7 +184,7 @@
 The result will be displayed in ChainState   
 tokens -> accounts	
 
-### To send tokens from Karura to Opal:
+### To send tokens from Karura to Quartz:
 ```
 xtokens -> transfer
 
modifiednode/cli/src/command.rsdiffbeforeafterboth
52impl SubstrateCli for Cli {52impl SubstrateCli for Cli {
53 // TODO use args53 // TODO use args
54 fn impl_name() -> String {54 fn impl_name() -> String {
55 "Opal Node".into()55 "Quartz Node".into()
56 }56 }
5757
58 fn impl_version() -> String {58 fn impl_version() -> String {
61 // TODO use args61 // TODO use args
62 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 args
96 fn impl_name() -> String {96 fn impl_name() -> String {
97 "Opal Node".into()97 "Quartz Node".into()
98 }98 }
9999
100 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 args
104 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 }
111111
modifiedruntime/src/lib.rsdiffbeforeafterboth
--- a/runtime/src/lib.rs
+++ b/runtime/src/lib.rs
@@ -157,8 +157,8 @@
 
 /// This runtime version.
 pub const VERSION: RuntimeVersion = RuntimeVersion {
-	spec_name: create_runtime_str!("opal"),
-	impl_name: create_runtime_str!("opal"),
+	spec_name: create_runtime_str!("quartz"),
+	impl_name: create_runtime_str!("quartz"),
 	authoring_version: 1,
 	spec_version: 916001,
 	impl_version: 0,
@@ -247,7 +247,7 @@
 		.avg_block_initialization(AVERAGE_ON_INITIALIZE_RATIO)
 		.build_or_panic();
 	pub const Version: RuntimeVersion = VERSION;
-	pub const SS58Prefix: u8 = 42;
+	pub const SS58Prefix: u8 = 255;
 }
 
 parameter_types! {
modifiedtests/src/xcmTransfer.test.tsdiffbeforeafterboth
--- a/tests/src/xcmTransfer.test.ts
+++ b/tests/src/xcmTransfer.test.ts
@@ -23,7 +23,7 @@
 const KARURA_CHAIN = 2000;
 const KARURA_PORT = '9946';
 
-describe('Integration test: Exchanging OPL with Karura', () => {
+describe('Integration test: Exchanging QTZ with Karura', () => {
   let alice: IKeyringPair;
   
   before(async () => {
@@ -49,8 +49,8 @@
 
       const metadata =
       {
-        name: 'OPL',
-        symbol: 'OPL',
+        name: 'QTZ',
+        symbol: 'QTZ',
         decimals: 18,
         minimalBalance: 1,
       };
@@ -63,7 +63,7 @@
     }, karuraApiOptions);
   });
 
-  it('Should connect and send OPL to Karura', async () => {
+  it('Should connect and send QTZ to Karura', async () => {
     let balanceOnKaruraBefore: bigint;
     
     await usingApi(async (api) => {
@@ -130,7 +130,7 @@
     }, {provider: new WsProvider('ws://127.0.0.1:' + KARURA_PORT)});
   });
 
-  it('Should connect to Karura and send OPL back', async () => {
+  it('Should connect to Karura and send QTZ back', async () => {
     let balanceBefore: bigint;
     
     await usingApi(async (api) => {