@moonbeam-network/xcm-builder 1.0.0-dev.238 → 1.0.0-dev.239
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.d.ts +5 -4
- package/build/index.mjs +18 -13
- package/build/index.mjs.map +1 -1
- package/package.json +3 -3
package/build/index.d.ts
CHANGED
|
@@ -360,6 +360,9 @@ declare function eqBalances(): {
|
|
|
360
360
|
transferXcm: () => ExtrinsicConfigBuilder;
|
|
361
361
|
};
|
|
362
362
|
|
|
363
|
+
type ParamsWithGlobalConsensus = {
|
|
364
|
+
globalConsensus?: Ecosystem;
|
|
365
|
+
};
|
|
363
366
|
declare function polkadotXcm$1(): {
|
|
364
367
|
limitedReserveTransferAssets: () => {
|
|
365
368
|
here: () => ExtrinsicConfigBuilder;
|
|
@@ -384,11 +387,9 @@ declare function polkadotXcm$1(): {
|
|
|
384
387
|
};
|
|
385
388
|
transferAssetsToEcosystem: () => {
|
|
386
389
|
X1: () => ExtrinsicConfigBuilder;
|
|
387
|
-
X2: ({ globalConsensus, }?:
|
|
388
|
-
globalConsensus?: Ecosystem;
|
|
389
|
-
}) => ExtrinsicConfigBuilder;
|
|
390
|
+
X2: ({ globalConsensus, }?: ParamsWithGlobalConsensus) => ExtrinsicConfigBuilder;
|
|
390
391
|
X3: () => ExtrinsicConfigBuilder;
|
|
391
|
-
X4: () => ExtrinsicConfigBuilder;
|
|
392
|
+
X4: ({ globalConsensus, }?: ParamsWithGlobalConsensus) => ExtrinsicConfigBuilder;
|
|
392
393
|
};
|
|
393
394
|
};
|
|
394
395
|
|
package/build/index.mjs
CHANGED
|
@@ -1528,15 +1528,7 @@ function getEcosystemTransferExtrinsicArgs({
|
|
|
1528
1528
|
feeIndex = 0
|
|
1529
1529
|
}) {
|
|
1530
1530
|
const version = getExtrinsicArgumentVersion(func);
|
|
1531
|
-
|
|
1532
|
-
"\x1B[34m\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2593\u2593\u2592\u2592\u2591 polkadotXcm.util.ts:68 \u2591\u2592\u2592\u2593\u2593\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\x1B[0m"
|
|
1533
|
-
);
|
|
1534
|
-
console.log("* destination = ");
|
|
1535
|
-
console.log(destination);
|
|
1536
|
-
console.log(
|
|
1537
|
-
"\x1B[34m\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\x1B[0m"
|
|
1538
|
-
);
|
|
1539
|
-
const GlobalConsensus = globalConsensus ? { GlobalConsensus: { ByGenesis: globalConsensus } } : {
|
|
1531
|
+
const GlobalConsensus = globalConsensus ? { GlobalConsensus: globalConsensus } : {
|
|
1540
1532
|
GlobalConsensus: {
|
|
1541
1533
|
ByGenesis: destination.relayGenesisHash
|
|
1542
1534
|
}
|
|
@@ -2255,12 +2247,13 @@ function polkadotXcm() {
|
|
|
2255
2247
|
}
|
|
2256
2248
|
}
|
|
2257
2249
|
];
|
|
2258
|
-
|
|
2250
|
+
const result = getEcosystemTransferExtrinsicArgs({
|
|
2259
2251
|
...params,
|
|
2260
2252
|
func: extrinsicFunction,
|
|
2261
2253
|
assets: assets3,
|
|
2262
2254
|
globalConsensus
|
|
2263
2255
|
});
|
|
2256
|
+
return result;
|
|
2264
2257
|
}
|
|
2265
2258
|
});
|
|
2266
2259
|
}
|
|
@@ -2309,7 +2302,9 @@ function polkadotXcm() {
|
|
|
2309
2302
|
});
|
|
2310
2303
|
}
|
|
2311
2304
|
}),
|
|
2312
|
-
X4: (
|
|
2305
|
+
X4: ({
|
|
2306
|
+
globalConsensus
|
|
2307
|
+
} = {}) => ({
|
|
2313
2308
|
build: (params) => {
|
|
2314
2309
|
return new ExtrinsicConfig({
|
|
2315
2310
|
module: pallet2,
|
|
@@ -2375,11 +2370,21 @@ function polkadotXcm() {
|
|
|
2375
2370
|
}
|
|
2376
2371
|
}
|
|
2377
2372
|
];
|
|
2378
|
-
|
|
2373
|
+
const result = getEcosystemTransferExtrinsicArgs({
|
|
2379
2374
|
...params,
|
|
2380
2375
|
func: extrinsicFunction,
|
|
2381
|
-
assets: assets3
|
|
2376
|
+
assets: assets3,
|
|
2377
|
+
globalConsensus
|
|
2382
2378
|
});
|
|
2379
|
+
console.log(
|
|
2380
|
+
"\x1B[34m\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2593\u2593\u2592\u2592\u2591 polkadotXcm.ts:886 \u2591\u2592\u2592\u2593\u2593\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\x1B[0m"
|
|
2381
|
+
);
|
|
2382
|
+
console.log("* result = ");
|
|
2383
|
+
console.log(result);
|
|
2384
|
+
console.log(
|
|
2385
|
+
"\x1B[34m\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\u2584\x1B[0m"
|
|
2386
|
+
);
|
|
2387
|
+
return result;
|
|
2383
2388
|
}
|
|
2384
2389
|
});
|
|
2385
2390
|
}
|