difftreelog
merge master
in: master
10 files changed
README.mddiffbeforeafterboth155location:155location:156 V0(X2(Parent, Parachain(PARA_ID)))156 V0(X2(Parent, Parachain(PARA_ID)))157metadata:157metadata:158 name OPL158 name QTZ159 symbol OPL159 symbol QTZ160 decimals 18160 decimals 18161minimalBalance 1161minimalBalance 1162```162```163163164### Next, we can send tokens from Opal to Karura:164### Next, we can send tokens from Quartz to Karura:165```165```166polkadotXcm -> reserveTransferAssets166polkadotXcm -> reserveTransferAssets167dest:167dest:179The result will be displayed in ChainState179The result will be displayed in ChainState180tokens -> accounts180tokens -> accounts181181182### To send tokens from Karura to Opal:182### To send tokens from Karura to Quartz:183```183```184xtokens -> transfer184xtokens -> transfer185185client/rpc/src/lib.rsdiffbeforeafterboth14// You should have received a copy of the GNU General Public License14// You should have received a copy of the GNU General Public License15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617// Original License17use std::sync::Arc;18use std::sync::Arc;181919use codec::Decode;20use codec::Decode;node/cli/src/service.rsdiffbeforeafterboth14// You should have received a copy of the GNU General Public License14// You should have received a copy of the GNU General Public License15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.1617//! Service and ServiceFactory implementation. Specialized wrapper over substrate service.181619// std17// std20use std::sync::Arc;18use std::sync::Arc;pallets/scheduler/src/lib.rsdiffbeforeafterboth14// You should have received a copy of the GNU General Public License14// You should have received a copy of the GNU General Public License15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617// Original license17// Original license:18// This file is part of Substrate.18// This file is part of Substrate.191920// Copyright (C) 2017-2021 Parity Technologies (UK) Ltd.20// Copyright (C) 2017-2021 Parity Technologies (UK) Ltd.runtime/opal/src/lib.rsdiffbeforeafterboth216 .avg_block_initialization(AVERAGE_ON_INITIALIZE_RATIO)216 .avg_block_initialization(AVERAGE_ON_INITIALIZE_RATIO)217 .build_or_panic();217 .build_or_panic();218 pub const Version: RuntimeVersion = VERSION;218 pub const Version: RuntimeVersion = VERSION;219 /*220 255 - Quartz221 42 - Opal222 */219 pub const SS58Prefix: u8 = 42;223 pub const SS58Prefix: u8 = 255;220}224}221225222parameter_types! {226parameter_types! {223 pub const ChainId: u64 = 8882;227 pub const ChainId: u64 = 8881;224}228}225229226pub struct FixedFee;230pub struct FixedFee;tests/flipper-src/lib.rsdiffbeforeafterboth14// You should have received a copy of the GNU General Public License14// You should have received a copy of the GNU General Public License15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617// Original license17// Original License18// Copyright 2018-2020 Parity Technologies (UK) Ltd.18// Copyright 2018-2020 Parity Technologies (UK) Ltd.19//19//20// Licensed under the Apache License, Version 2.0 (the "License");20// Licensed under the Apache License, Version 2.0 (the "License");tests/ink-types-node-runtime/src/calls.rsdiffbeforeafterboth14// You should have received a copy of the GNU General Public License14// You should have received a copy of the GNU General Public License15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617// Original license17// Original License18// Copyright 2019 Parity Technologies (UK) Ltd.18// Copyright 2019 Parity Technologies (UK) Ltd.19// This file is part of ink!.19// This file is part of ink!.20//20//tests/ink-types-node-runtime/src/lib.rsdiffbeforeafterboth14// You should have received a copy of the GNU General Public License14// You should have received a copy of the GNU General Public License15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617// Original license17// Original License18// Copyright 2018-2019 Parity Technologies (UK) Ltd.18// Copyright 2018-2019 Parity Technologies (UK) Ltd.19// This file is part of ink!.19// This file is part of ink!.20//20//tests/loadtester-src/lib.rsdiffbeforeafterboth14// You should have received a copy of the GNU General Public License14// You should have received a copy of the GNU General Public License15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617// Original License17#![cfg_attr(not(feature = "std"), no_std)]18#![cfg_attr(not(feature = "std"), no_std)]181919use ink_lang as ink;20use ink_lang as ink;tests/src/xcmTransfer.test.tsdiffbeforeafterboth34const KARURA_CHAIN = 2000;34const KARURA_CHAIN = 2000;35const KARURA_PORT = '9946';35const KARURA_PORT = '9946';363637describe('Integration test: Exchanging OPL with Karura', () => {37describe('Integration test: Exchanging QTZ with Karura', () => {38 let alice: IKeyringPair;38 let alice: IKeyringPair;39 39 40 before(async () => {40 before(async () => {606061 const metadata =61 const metadata =62 {62 {63 name: 'OPL',63 name: 'QTZ',64 symbol: 'OPL',64 symbol: 'QTZ',65 decimals: 18,65 decimals: 18,66 minimalBalance: 1,66 minimalBalance: 1,67 };67 };74 }, karuraApiOptions);74 }, karuraApiOptions);75 });75 });767677 it('Should connect and send OPL to Karura', async () => {77 it('Should connect and send QTZ to Karura', async () => {78 let balanceOnKaruraBefore: bigint;78 let balanceOnKaruraBefore: bigint;79 79 80 await usingApi(async (api) => {80 await usingApi(async (api) => {141 }, {provider: new WsProvider('ws://127.0.0.1:' + KARURA_PORT)});141 }, {provider: new WsProvider('ws://127.0.0.1:' + KARURA_PORT)});142 });142 });143143144 it('Should connect to Karura and send OPL back', async () => {144 it('Should connect to Karura and send QTZ back', async () => {145 let balanceBefore: bigint;145 let balanceBefore: bigint;146 146 147 await usingApi(async (api) => {147 await usingApi(async (api) => {