git.delta.rocks / unique-network / refs/commits / bad94bc8367a

difftreelog

fix configuration

Igor Kozyrev2022-02-10parent: #e862576.patch.diff
in: master

5 files changed

modifiedREADME.mddiffbeforeafterboth
337337
338## Karura token transfer338## Karura token transfer
339339
340To get started, you need to open the hrmr channel.340To get started, you need to open inbound and outbound hrmp channels.
341Next, we need to register our asset in Karura.341Next, we need to register our asset at Karura.
342342
343```343```
344assetRegistry -> registerForeignAsset(location, metadata)344assetRegistry -> registerForeignAsset(location, metadata)
347metadata:347metadata:
348 name OPL348 name OPL
349 symbol OPL349 symbol OPL
350 decimals 15350 decimals 18
351minimalBalance 1351minimalBalance 1
352```352```
353353
354Next, we can send tokens of our chain:354Next, we can send tokens from Opal to Karura:
355```355```
356polkadotXcm -> reserveTransferAssets356polkadotXcm -> reserveTransferAssets
357dest:357dest:
370tokens -> accounts 370tokens -> accounts
371371
372372
373To send tokens from karura:373To send tokens from Karura to Opal:
374374
375```375```
376xtokens -> transfer376xtokens -> transfer
modifiedlaunch-config.jsondiffbeforeafterboth
114 ]114 ]
115 }115 }
116 ]116 ]
117 },117 }
118 {
119 "bin": "../cumulus/target/release/polkadot-collator",
120 "id": "3000",
121 "chain": "statemint-dev",
122 "balance": "1000000000000000000000000",
123 "nodes": [
124 {
125 "wsPort": 9947,
126 "port": 31203,
127 "name": "alice",
128 "flags": [
129 "--rpc-cors=all",
130 "--unsafe-rpc-external",
131 "--unsafe-ws-external",
132 "-lxcm=trace"
133 ]
134 }
135 ]
136 }
137 ],118 ],
138 "simpleParachains": [],119 "simpleParachains": [],
139 "hrmpChannels": [120 "hrmpChannels": [
140 {121 {
141 "sender": 2000,122 "sender": 2000,
142 "recipient": 1000,123 "recipient": 1000,
143 "maxCapacity": 8,124 "maxCapacity": 1000,
144 "maxMessageSize": 512125 "maxMessageSize": 102400
145 },126 },
146 {127 {
147 "sender": 1000,128 "sender": 1000,
148 "recipient": 2000,129 "recipient": 2000,
149 "maxCapacity": 8,130 "maxCapacity": 1000,
150 "maxMessageSize": 512131 "maxMessageSize": 102400
151 }132 }
152 ],133 ],
153 "finalization": false134 "finalization": false
modifiedruntime/Cargo.tomldiffbeforeafterboth
377scale-info = { version = "1.0.0", default-features = false, features = [377scale-info = { version = "1.0.0", default-features = false, features = [
378 "derive",378 "derive",
379] }379] }
380log = '0.4.14'
381derivative = "2.2.0"380derivative = "2.2.0"
382pallet-unique = { path = '../pallets/unique', default-features = false }381pallet-unique = { path = '../pallets/unique', default-features = false }
383up-rpc = { path = "../primitives/rpc", default-features = false }382up-rpc = { path = "../primitives/rpc", default-features = false }
modifiedtests/package.jsondiffbeforeafterboth
68 "testPalletPresence": "mocha --timeout 9999999 -r ts-node/register ./**/pallet-presence.test.ts",68 "testPalletPresence": "mocha --timeout 9999999 -r ts-node/register ./**/pallet-presence.test.ts",
69 "testBlockProduction": "mocha --timeout 9999999 -r ts-node/register ./**/block-production.test.ts",69 "testBlockProduction": "mocha --timeout 9999999 -r ts-node/register ./**/block-production.test.ts",
70 "testEnableDisableTransfers": "mocha --timeout 9999999 -r ts-node/register ./**/enableDisableTransfer.test.ts",70 "testEnableDisableTransfers": "mocha --timeout 9999999 -r ts-node/register ./**/enableDisableTransfer.test.ts",
71 "testXcm": "mocha --timeout 9999999 -r ts-node/register ./**/xcmTransfer.test.ts",
72 "polkadot-types-from-defs": "ts-node ./node_modules/.bin/polkadot-types-from-defs --input src/interfaces/ --package .",71 "polkadot-types-from-defs": "ts-node ./node_modules/.bin/polkadot-types-from-defs --input src/interfaces/ --package .",
73 "polkadot-types-from-chain": "ts-node ./node_modules/.bin/polkadot-types-from-chain --endpoint ws://localhost:9944 --output src/interfaces/ --package .",72 "polkadot-types-from-chain": "ts-node ./node_modules/.bin/polkadot-types-from-chain --endpoint ws://localhost:9944 --output src/interfaces/ --package .",
74 "polkadot-types": "yarn polkadot-types-from-defs && yarn polkadot-types-from-chain"73 "polkadot-types": "yarn polkadot-types-from-defs && yarn polkadot-types-from-chain"
modifiedtests/src/xcmTransfer.test.tsdiffbeforeafterboth
51 {51 {
52 name: 'OPL',52 name: 'OPL',
53 symbol: 'OPL',53 symbol: 'OPL',
54 decimals: 15,54 decimals: 18,
55 minimalBalance: 1,55 minimalBalance: 1,
56 };56 };
5757