@paraspell/sdk 8.9.10 → 8.11.0
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/dist/index.cjs +9 -0
- package/dist/index.mjs +9 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -532,6 +532,11 @@ var _transform = function transform(obj) {
|
|
|
532
532
|
id: polkadotApi.FixedSizeBinary.fromHex(value.id)
|
|
533
533
|
}
|
|
534
534
|
};
|
|
535
|
+
} else if (key === 'Id') {
|
|
536
|
+
return {
|
|
537
|
+
type: key,
|
|
538
|
+
value: value
|
|
539
|
+
};
|
|
535
540
|
} else if (key === 'OtherReserve') {
|
|
536
541
|
return {
|
|
537
542
|
type: key,
|
|
@@ -627,6 +632,10 @@ var _transform = function transform(obj) {
|
|
|
627
632
|
newObj[k] = undefined;
|
|
628
633
|
continue;
|
|
629
634
|
}
|
|
635
|
+
if ((k === 'dest' || k === 'target') && typeof v === 'string') {
|
|
636
|
+
newObj[k] = v;
|
|
637
|
+
continue;
|
|
638
|
+
}
|
|
630
639
|
if (typeof v === 'string' && v.startsWith('0x')) {
|
|
631
640
|
newObj[k] = polkadotApi.FixedSizeBinary.fromHex(v);
|
|
632
641
|
} else if (typeof v === 'string') {
|
package/dist/index.mjs
CHANGED
|
@@ -531,6 +531,11 @@ var _transform = function transform(obj) {
|
|
|
531
531
|
id: FixedSizeBinary.fromHex(value.id)
|
|
532
532
|
}
|
|
533
533
|
};
|
|
534
|
+
} else if (key === 'Id') {
|
|
535
|
+
return {
|
|
536
|
+
type: key,
|
|
537
|
+
value: value
|
|
538
|
+
};
|
|
534
539
|
} else if (key === 'OtherReserve') {
|
|
535
540
|
return {
|
|
536
541
|
type: key,
|
|
@@ -626,6 +631,10 @@ var _transform = function transform(obj) {
|
|
|
626
631
|
newObj[k] = undefined;
|
|
627
632
|
continue;
|
|
628
633
|
}
|
|
634
|
+
if ((k === 'dest' || k === 'target') && typeof v === 'string') {
|
|
635
|
+
newObj[k] = v;
|
|
636
|
+
continue;
|
|
637
|
+
}
|
|
629
638
|
if (typeof v === 'string' && v.startsWith('0x')) {
|
|
630
639
|
newObj[k] = FixedSizeBinary.fromHex(v);
|
|
631
640
|
} else if (typeof v === 'string') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.11.0",
|
|
4
4
|
"description": "SDK for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"ethers": "^6.13.5",
|
|
27
27
|
"viem": "^2.23.15",
|
|
28
28
|
"@noble/hashes": "^1.7.1",
|
|
29
|
-
"@paraspell/sdk-core": "8.
|
|
29
|
+
"@paraspell/sdk-core": "8.11.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"polkadot-api": ">= 1.9.7 < 2"
|