difftreelog
Merge pull request #936 from UniqueNetwork/build/941056
in: master
9 files changed
.envdiffbeforeafterboth--- a/.env
+++ b/.env
@@ -5,25 +5,25 @@
POLKADOT_MAINNET_BRANCH=release-v0.9.37
STATEMINT_BUILD_BRANCH=release-parachains-v9370
-ACALA_BUILD_BRANCH=2.12.0
-MOONBEAM_BUILD_BRANCH=runtime-2201
-ASTAR_BUILD_BRANCH=v5.3.0
-UNIQUE_MAINNET_BRANCH=release-v937053
+ACALA_BUILD_BRANCH=2.17.0
+MOONBEAM_BUILD_BRANCH=runtime-2302
+ASTAR_BUILD_BRANCH=v5.4.0
+UNIQUE_MAINNET_BRANCH=release-v941055
UNIQUE_REPLICA_FROM=wss://ws.unique.network:443
KUSAMA_MAINNET_BRANCH=release-v0.9.38
STATEMINE_BUILD_BRANCH=release-parachains-v9382
-KARURA_BUILD_BRANCH=release-karura-2.15.0
-MOONRIVER_BUILD_BRANCH=runtime-2201
-SHIDEN_BUILD_BRANCH=v4.49.0
-QUARTZ_MAINNET_BRANCH=release-v937053
+KARURA_BUILD_BRANCH=release-karura-2.17.0
+MOONRIVER_BUILD_BRANCH=runtime-2302
+SHIDEN_BUILD_BRANCH=v5.4.0
+QUARTZ_MAINNET_BRANCH=release-v941055
QUARTZ_REPLICA_FROM=wss://ws-quartz.unique.network:443
-UNIQUEWEST_MAINNET_BRANCH=release-v0.9.40
-WESTMINT_BUILD_BRANCH=parachains-v9400
-OPAL_MAINNET_BRANCH=release-v937053
+UNIQUEWEST_MAINNET_BRANCH=release-v0.9.42
+WESTMINT_BUILD_BRANCH=parachains-v9420
+OPAL_MAINNET_BRANCH=release-v941055
OPAL_REPLICA_FROM=wss://ws-opal.unique.network:443
-UNIQUEEAST_MAINNET_BRANCH=release-v0.9.32
-SAPPHIRE_MAINNET_BRANCH=release-v937053
+UNIQUEEAST_MAINNET_BRANCH=release-v0.9.42
+SAPPHIRE_MAINNET_BRANCH=release-v941055
SAPPHIRE_REPLICA_FROM=wss://ws-sapphire.unique.network:443
README.mddiffbeforeafterboth--- a/README.md
+++ b/README.md
@@ -90,7 +90,7 @@
```
git clone https://github.com/paritytech/polkadot.git
cd polkadot
-git checkout release-v0.9.39
+git checkout release-v0.9.41
cargo build --release
```
runtime/opal/src/lib.rsdiffbeforeafterboth--- a/runtime/opal/src/lib.rs
+++ b/runtime/opal/src/lib.rs
@@ -51,7 +51,7 @@
spec_name: create_runtime_str!(RUNTIME_NAME),
impl_name: create_runtime_str!(RUNTIME_NAME),
authoring_version: 1,
- spec_version: 941055,
+ spec_version: 941056,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 3,
runtime/quartz/src/lib.rsdiffbeforeafterboth--- a/runtime/quartz/src/lib.rs
+++ b/runtime/quartz/src/lib.rs
@@ -54,7 +54,7 @@
spec_name: create_runtime_str!(RUNTIME_NAME),
impl_name: create_runtime_str!(RUNTIME_NAME),
authoring_version: 1,
- spec_version: 941055,
+ spec_version: 941056,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 3,
runtime/unique/src/lib.rsdiffbeforeafterboth--- a/runtime/unique/src/lib.rs
+++ b/runtime/unique/src/lib.rs
@@ -51,7 +51,7 @@
spec_name: create_runtime_str!(RUNTIME_NAME),
impl_name: create_runtime_str!(RUNTIME_NAME),
authoring_version: 1,
- spec_version: 941055,
+ spec_version: 941056,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 3,
tests/package.jsondiffbeforeafterboth--- a/tests/package.json
+++ b/tests/package.json
@@ -116,7 +116,8 @@
"polkadot-types-fetch-metadata": "curl -H 'Content-Type: application/json' -d '{\"id\":\"1\", \"jsonrpc\":\"2.0\", \"method\": \"state_getMetadata\", \"params\":[]}' http://localhost:9933 > src/interfaces/metadata.json",
"polkadot-types-from-defs": "ts-node --esm ./node_modules/.bin/polkadot-types-from-defs --endpoint src/interfaces/metadata.json --input src/interfaces/ --package .",
"polkadot-types-from-chain": "ts-node --esm ./node_modules/.bin/polkadot-types-from-chain --endpoint src/interfaces/metadata.json --output src/interfaces/ --package .",
- "polkadot-types": "echo \"export default {}\" > src/interfaces/lookup.ts && yarn polkadot-types-fetch-metadata && yarn polkadot-types-from-defs && yarn polkadot-types-from-defs && yarn polkadot-types-from-chain"
+ "polkadot-types": "echo \"export default {}\" > src/interfaces/lookup.ts && yarn polkadot-types-fetch-metadata && yarn polkadot-types-from-defs && yarn polkadot-types-from-defs && yarn polkadot-types-from-chain",
+ "generateEnv": "ts-node --esm ./src/generateEnv.ts"
},
"author": "",
"license": "SEE LICENSE IN ../LICENSE",
tests/src/generateEnv.tsdiffbeforeafterboth--- a/tests/src/generateEnv.ts
+++ b/tests/src/generateEnv.ts
@@ -62,12 +62,14 @@
ff('wss://rpc.astar.network/', /^(.+)$/, (_, r) => {
switch (r) {
case '55': return 'v5.3.0';
+ case '57': return 'v5.4.0';
default: throw new Error('unknown astar branch for runtime ' + r);
}
}).then(v => env = setVar(env, 'ASTAR_BUILD_BRANCH', v)),
ff('wss://shiden.api.onfinality.io/public-ws', /^(.+)$/, (_, r) => {
switch (r) {
case '90': return 'v4.49.0';
+ case '96': return 'v5.4.0';
default: throw new Error('unknown shiden branch for runtime ' + r);
}
}).then(v => env = setVar(env, 'SHIDEN_BUILD_BRANCH', v)),
tests/src/xcm/xcmQuartz.test.tsdiffbeforeafterboth--- a/tests/src/xcm/xcmQuartz.test.ts
+++ b/tests/src/xcm/xcmQuartz.test.ts
@@ -803,6 +803,7 @@
let quartzParachainMultilocation: any;
let quartzAccountMultilocation: any;
let quartzCombinedMultilocation: any;
+ let quartzCombinedMultilocationKarura: any; // TODO remove it when Karura goes V2
let messageSent: any;
@@ -821,7 +822,7 @@
};
quartzParachainMultilocation = {
- V1: {
+ V2: {
parents: 1,
interior: {
X1: quartzParachainJunction,
@@ -830,7 +831,7 @@
};
quartzAccountMultilocation = {
- V1: {
+ V2: {
parents: 0,
interior: {
X1: quartzAccountJunction,
@@ -839,6 +840,15 @@
};
quartzCombinedMultilocation = {
+ V2: {
+ parents: 1,
+ interior: {
+ X2: [quartzParachainJunction, quartzAccountJunction],
+ },
+ },
+ };
+
+ quartzCombinedMultilocationKarura = {
V1: {
parents: 1,
interior: {
@@ -869,7 +879,7 @@
const id = {
Token: 'KAR',
};
- const destination = quartzCombinedMultilocation;
+ const destination = quartzCombinedMultilocationKarura;
await helper.xTokens.transfer(alice, id, testAmount, destination, 'Unlimited');
messageSent = await helper.wait.expectEvent(maxWaitBlocks, Event.XcmpQueue.XcmpMessageSent);
@@ -895,7 +905,7 @@
const destinationParachain = quartzParachainMultilocation;
const beneficiary = quartzAccountMultilocation;
const assets = {
- V1: [{
+ V2: [{
id: {
Concrete: {
parents: 0,
@@ -1069,7 +1079,7 @@
itSub('Should connect to Moonriver and send QTZ back', async ({helper}) => {
await usingMoonriverPlaygrounds(moonriverUrl, async (helper) => {
const asset = {
- V1: {
+ V2: {
id: {
Concrete: {
parents: 1,
@@ -1084,7 +1094,7 @@
},
};
const destination = {
- V1: {
+ V2: {
parents: 1,
interior: {
X2: [
@@ -1139,7 +1149,7 @@
const [targetAccount] = await helper.arrange.createAccounts([targetAccountBalance], alice);
const quartzMultilocation = {
- V1: {
+ V2: {
parents: 1,
interior: {
X1: {Parachain: QUARTZ_CHAIN},
@@ -1212,7 +1222,7 @@
const [targetAccount] = await helper.arrange.createAccounts([0n], alice);
const quartzMultilocation = {
- V1: {
+ V2: {
parents: 1,
interior: {
X1: {
@@ -1341,7 +1351,7 @@
console.log('2. Register asset location on Shiden');
const assetLocation = {
- V1: {
+ V2: {
parents: 1,
interior: {
X1: {
@@ -1433,7 +1443,7 @@
itSub('Should connect to Shiden and send QTZ back', async ({helper}) => {
await usingShidenPlaygrounds(shidenUrl, async (helper) => {
const destination = {
- V1: {
+ V2: {
parents: 1,
interior: {
X1: {
@@ -1444,7 +1454,7 @@
};
const beneficiary = {
- V1: {
+ V2: {
parents: 0,
interior: {
X1: {
@@ -1458,7 +1468,7 @@
};
const assets = {
- V1: [
+ V2: [
{
id: {
Concrete: {
@@ -1515,7 +1525,7 @@
const [targetAccount] = await helper.arrange.createAccounts([targetAccountBalance], alice);
const quartzMultilocation = {
- V1: {
+ V2: {
parents: 1,
interior: {
X1: {Parachain: QUARTZ_CHAIN},
@@ -1580,7 +1590,7 @@
const [targetAccount] = await helper.arrange.createAccounts([0n], alice);
const quartzMultilocation = {
- V1: {
+ V2: {
parents: 1,
interior: {
X1: {
tests/src/xcm/xcmUnique.test.tsdiffbeforeafterboth805 let uniqueParachainMultilocation: any;805 let uniqueParachainMultilocation: any;806 let uniqueAccountMultilocation: any;806 let uniqueAccountMultilocation: any;807 let uniqueCombinedMultilocation: any;807 let uniqueCombinedMultilocation: any;808 let uniqueCombinedMultilocationAcala: any; // TODO remove when Acala goes V2808809809 let messageSent: any;810 let messageSent: any;810811823 };824 };824825825 uniqueParachainMultilocation = {826 uniqueParachainMultilocation = {826 V1: {827 V2: {827 parents: 1,828 parents: 1,828 interior: {829 interior: {829 X1: uniqueParachainJunction,830 X1: uniqueParachainJunction,832 };833 };833834834 uniqueAccountMultilocation = {835 uniqueAccountMultilocation = {835 V1: {836 V2: {836 parents: 0,837 parents: 0,837 interior: {838 interior: {838 X1: uniqueAccountJunction,839 X1: uniqueAccountJunction,839 },840 },840 },841 },841 };842 };843844 uniqueCombinedMultilocation = {845 V2: {846 parents: 1,847 interior: {848 X2: [uniqueParachainJunction, uniqueAccountJunction],849 },850 },851 };842852843 uniqueCombinedMultilocation = {853 uniqueCombinedMultilocationAcala = {844 V1: {854 V1: {845 parents: 1,855 parents: 1,846 interior: {856 interior: {871 const id = {881 const id = {872 Token: 'ACA',882 Token: 'ACA',873 };883 };874 const destination = uniqueCombinedMultilocation;884 const destination = uniqueCombinedMultilocationAcala;875 await helper.xTokens.transfer(alice, id, testAmount, destination, 'Unlimited');885 await helper.xTokens.transfer(alice, id, testAmount, destination, 'Unlimited');876886877 messageSent = await helper.wait.expectEvent(maxWaitBlocks, Event.XcmpQueue.XcmpMessageSent);887 messageSent = await helper.wait.expectEvent(maxWaitBlocks, Event.XcmpQueue.XcmpMessageSent);897 const destinationParachain = uniqueParachainMultilocation;907 const destinationParachain = uniqueParachainMultilocation;898 const beneficiary = uniqueAccountMultilocation;908 const beneficiary = uniqueAccountMultilocation;899 const assets = {909 const assets = {900 V1: [{910 V2: [{901 id: {911 id: {902 Concrete: {912 Concrete: {903 parents: 0,913 parents: 0,1072 itSub('Should connect to Moonbeam and send UNQ back', async ({helper}) => {1082 itSub('Should connect to Moonbeam and send UNQ back', async ({helper}) => {1073 await usingMoonbeamPlaygrounds(moonbeamUrl, async (helper) => {1083 await usingMoonbeamPlaygrounds(moonbeamUrl, async (helper) => {1074 const asset = {1084 const asset = {1075 V1: {1085 V2: {1076 id: {1086 id: {1077 Concrete: {1087 Concrete: {1078 parents: 1,1088 parents: 1,1087 },1097 },1088 };1098 };1089 const destination = {1099 const destination = {1090 V1: {1100 V2: {1091 parents: 1,1101 parents: 1,1092 interior: {1102 interior: {1093 X2: [1103 X2: [1142 const [targetAccount] = await helper.arrange.createAccounts([targetAccountBalance], alice);1152 const [targetAccount] = await helper.arrange.createAccounts([targetAccountBalance], alice);114311531144 const uniqueMultilocation = {1154 const uniqueMultilocation = {1145 V1: {1155 V2: {1146 parents: 1,1156 parents: 1,1147 interior: {1157 interior: {1148 X1: {Parachain: UNIQUE_CHAIN},1158 X1: {Parachain: UNIQUE_CHAIN},1215 const [targetAccount] = await helper.arrange.createAccounts([0n], alice);1225 const [targetAccount] = await helper.arrange.createAccounts([0n], alice);121612261217 const uniqueMultilocation = {1227 const uniqueMultilocation = {1218 V1: {1228 V2: {1219 parents: 1,1229 parents: 1,1220 interior: {1230 interior: {1221 X1: {1231 X1: {134413541345 console.log('2. Register asset location on Astar');1355 console.log('2. Register asset location on Astar');1346 const assetLocation = {1356 const assetLocation = {1347 V1: {1357 V2: {1348 parents: 1,1358 parents: 1,1349 interior: {1359 interior: {1350 X1: {1360 X1: {1436 itSub('Should connect to Astar and send UNQ back', async ({helper}) => {1446 itSub('Should connect to Astar and send UNQ back', async ({helper}) => {1437 await usingAstarPlaygrounds(astarUrl, async (helper) => {1447 await usingAstarPlaygrounds(astarUrl, async (helper) => {1438 const destination = {1448 const destination = {1439 V1: {1449 V2: {1440 parents: 1,1450 parents: 1,1441 interior: {1451 interior: {1442 X1: {1452 X1: {1447 };1457 };144814581449 const beneficiary = {1459 const beneficiary = {1450 V1: {1460 V2: {1451 parents: 0,1461 parents: 0,1452 interior: {1462 interior: {1453 X1: {1463 X1: {1461 };1471 };146214721463 const assets = {1473 const assets = {1464 V1: [1474 V2: [1465 {1475 {1466 id: {1476 id: {1467 Concrete: {1477 Concrete: {1517 const [targetAccount] = await helper.arrange.createAccounts([targetAccountBalance], alice);1527 const [targetAccount] = await helper.arrange.createAccounts([targetAccountBalance], alice);151815281519 const uniqueMultilocation = {1529 const uniqueMultilocation = {1520 V1: {1530 V2: {1521 parents: 1,1531 parents: 1,1522 interior: {1532 interior: {1523 X1: {Parachain: UNIQUE_CHAIN},1533 X1: {Parachain: UNIQUE_CHAIN},1582 const [targetAccount] = await helper.arrange.createAccounts([0n], alice);1592 const [targetAccount] = await helper.arrange.createAccounts([0n], alice);158315931584 const uniqueMultilocation = {1594 const uniqueMultilocation = {1585 V1: {1595 V2: {1586 parents: 1,1596 parents: 1,1587 interior: {1597 interior: {1588 X1: {1598 X1: {