@paraspell/sdk-pjs 8.13.0 → 8.13.2
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 +13 -13
- package/dist/index.mjs +13 -13
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -690,9 +690,9 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
690
690
|
return getMythosForeignBalance;
|
|
691
691
|
}()
|
|
692
692
|
}, {
|
|
693
|
-
key: "
|
|
693
|
+
key: "getBalanceForeignAssetsPallet",
|
|
694
694
|
value: function () {
|
|
695
|
-
var
|
|
695
|
+
var _getBalanceForeignAssetsPallet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(address, multiLocation) {
|
|
696
696
|
var response, obj;
|
|
697
697
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
698
698
|
while (1) switch (_context8.prev = _context8.next) {
|
|
@@ -709,10 +709,10 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
709
709
|
}
|
|
710
710
|
}, _callee8, this);
|
|
711
711
|
}));
|
|
712
|
-
function
|
|
713
|
-
return
|
|
712
|
+
function getBalanceForeignAssetsPallet(_x10, _x11) {
|
|
713
|
+
return _getBalanceForeignAssetsPallet.apply(this, arguments);
|
|
714
714
|
}
|
|
715
|
-
return
|
|
715
|
+
return getBalanceForeignAssetsPallet;
|
|
716
716
|
}()
|
|
717
717
|
}, {
|
|
718
718
|
key: "getForeignAssetsByIdBalance",
|
|
@@ -832,9 +832,9 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
832
832
|
return getBalanceForeignXTokens;
|
|
833
833
|
}()
|
|
834
834
|
}, {
|
|
835
|
-
key: "
|
|
835
|
+
key: "getBalanceAssetsPallet",
|
|
836
836
|
value: function () {
|
|
837
|
-
var
|
|
837
|
+
var _getBalanceAssetsPallet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(address, assetId) {
|
|
838
838
|
var response, obj;
|
|
839
839
|
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
840
840
|
while (1) switch (_context11.prev = _context11.next) {
|
|
@@ -851,10 +851,10 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
851
851
|
}
|
|
852
852
|
}, _callee11, this);
|
|
853
853
|
}));
|
|
854
|
-
function
|
|
855
|
-
return
|
|
854
|
+
function getBalanceAssetsPallet(_x21, _x22) {
|
|
855
|
+
return _getBalanceAssetsPallet.apply(this, arguments);
|
|
856
856
|
}
|
|
857
|
-
return
|
|
857
|
+
return getBalanceAssetsPallet;
|
|
858
858
|
}()
|
|
859
859
|
}, {
|
|
860
860
|
key: "getFromRpc",
|
|
@@ -938,8 +938,8 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
938
938
|
}
|
|
939
939
|
throw new sdkCore.NodeNotSupportedError("DryRunApi is not available on node ".concat(node));
|
|
940
940
|
case 4:
|
|
941
|
-
//
|
|
942
|
-
isBifrost = node === 'BifrostPolkadot' || node === 'BifrostKusama';
|
|
941
|
+
// These nodes require a third parameter XCM version
|
|
942
|
+
isBifrost = node === 'BifrostPolkadot' || node === 'BifrostKusama' || node === 'AssetHubKusama';
|
|
943
943
|
DEFAULT_XCM_VERSION = 3;
|
|
944
944
|
_context14.next = 8;
|
|
945
945
|
return (_this$api$call$dryRun = this.api.call.dryRunApi).dryRunCall.apply(_this$api$call$dryRun, [{
|
|
@@ -975,7 +975,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
975
975
|
} : undefined;
|
|
976
976
|
forwardedXcms = resultJson.ok.forwardedXcms.length > 0 ? resultJson.ok.forwardedXcms[0] : [];
|
|
977
977
|
destParaId = forwardedXcms.length === 0 ? undefined : function (i, _ref5) {
|
|
978
|
-
return i.
|
|
978
|
+
return i.here === null ? 0 : (_ref5 = Array.isArray(i.x1) ? i.x1[0] : i.x1) === null || _ref5 === void 0 ? void 0 : _ref5.parachain;
|
|
979
979
|
}(Object.values(forwardedXcms[0])[0].interior);
|
|
980
980
|
return _context14.abrupt("return", {
|
|
981
981
|
success: true,
|
package/dist/index.mjs
CHANGED
|
@@ -689,9 +689,9 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
689
689
|
return getMythosForeignBalance;
|
|
690
690
|
}()
|
|
691
691
|
}, {
|
|
692
|
-
key: "
|
|
692
|
+
key: "getBalanceForeignAssetsPallet",
|
|
693
693
|
value: function () {
|
|
694
|
-
var
|
|
694
|
+
var _getBalanceForeignAssetsPallet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(address, multiLocation) {
|
|
695
695
|
var response, obj;
|
|
696
696
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
697
697
|
while (1) switch (_context8.prev = _context8.next) {
|
|
@@ -708,10 +708,10 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
708
708
|
}
|
|
709
709
|
}, _callee8, this);
|
|
710
710
|
}));
|
|
711
|
-
function
|
|
712
|
-
return
|
|
711
|
+
function getBalanceForeignAssetsPallet(_x10, _x11) {
|
|
712
|
+
return _getBalanceForeignAssetsPallet.apply(this, arguments);
|
|
713
713
|
}
|
|
714
|
-
return
|
|
714
|
+
return getBalanceForeignAssetsPallet;
|
|
715
715
|
}()
|
|
716
716
|
}, {
|
|
717
717
|
key: "getForeignAssetsByIdBalance",
|
|
@@ -831,9 +831,9 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
831
831
|
return getBalanceForeignXTokens;
|
|
832
832
|
}()
|
|
833
833
|
}, {
|
|
834
|
-
key: "
|
|
834
|
+
key: "getBalanceAssetsPallet",
|
|
835
835
|
value: function () {
|
|
836
|
-
var
|
|
836
|
+
var _getBalanceAssetsPallet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(address, assetId) {
|
|
837
837
|
var response, obj;
|
|
838
838
|
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
839
839
|
while (1) switch (_context11.prev = _context11.next) {
|
|
@@ -850,10 +850,10 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
850
850
|
}
|
|
851
851
|
}, _callee11, this);
|
|
852
852
|
}));
|
|
853
|
-
function
|
|
854
|
-
return
|
|
853
|
+
function getBalanceAssetsPallet(_x21, _x22) {
|
|
854
|
+
return _getBalanceAssetsPallet.apply(this, arguments);
|
|
855
855
|
}
|
|
856
|
-
return
|
|
856
|
+
return getBalanceAssetsPallet;
|
|
857
857
|
}()
|
|
858
858
|
}, {
|
|
859
859
|
key: "getFromRpc",
|
|
@@ -937,8 +937,8 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
937
937
|
}
|
|
938
938
|
throw new NodeNotSupportedError("DryRunApi is not available on node ".concat(node));
|
|
939
939
|
case 4:
|
|
940
|
-
//
|
|
941
|
-
isBifrost = node === 'BifrostPolkadot' || node === 'BifrostKusama';
|
|
940
|
+
// These nodes require a third parameter XCM version
|
|
941
|
+
isBifrost = node === 'BifrostPolkadot' || node === 'BifrostKusama' || node === 'AssetHubKusama';
|
|
942
942
|
DEFAULT_XCM_VERSION = 3;
|
|
943
943
|
_context14.next = 8;
|
|
944
944
|
return (_this$api$call$dryRun = this.api.call.dryRunApi).dryRunCall.apply(_this$api$call$dryRun, [{
|
|
@@ -974,7 +974,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
974
974
|
} : undefined;
|
|
975
975
|
forwardedXcms = resultJson.ok.forwardedXcms.length > 0 ? resultJson.ok.forwardedXcms[0] : [];
|
|
976
976
|
destParaId = forwardedXcms.length === 0 ? undefined : function (i, _ref5) {
|
|
977
|
-
return i.
|
|
977
|
+
return i.here === null ? 0 : (_ref5 = Array.isArray(i.x1) ? i.x1[0] : i.x1) === null || _ref5 === void 0 ? void 0 : _ref5.parachain;
|
|
978
978
|
}(Object.values(forwardedXcms[0])[0].interior);
|
|
979
979
|
return _context14.abrupt("return", {
|
|
980
980
|
success: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk-pjs",
|
|
3
|
-
"version": "8.13.
|
|
3
|
+
"version": "8.13.2",
|
|
4
4
|
"description": "Polkadot.js based SDK for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@snowbridge/contract-types": "0.1.50",
|
|
28
28
|
"ethers": "^6.13.7",
|
|
29
29
|
"viem": "^2.28.1",
|
|
30
|
-
"@paraspell/sdk-core": "8.13.
|
|
30
|
+
"@paraspell/sdk-core": "8.13.2"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@polkadot/api": ">= 15.0 < 16",
|