@paraspell/sdk-pjs 11.9.1 → 11.9.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 +22 -22
- package/dist/index.mjs +22 -22
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -353,7 +353,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
353
353
|
_context2.n = 2;
|
|
354
354
|
break;
|
|
355
355
|
}
|
|
356
|
-
return _context2.a(2, this.createApiInstance(apiConfig));
|
|
356
|
+
return _context2.a(2, this.createApiInstance(apiConfig, chain));
|
|
357
357
|
case 2:
|
|
358
358
|
return _context2.a(2, apiConfig);
|
|
359
359
|
}
|
|
@@ -367,7 +367,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
367
367
|
}, {
|
|
368
368
|
key: "createApiInstance",
|
|
369
369
|
value: function () {
|
|
370
|
-
var _createApiInstance = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(wsUrl) {
|
|
370
|
+
var _createApiInstance = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(wsUrl, _chain) {
|
|
371
371
|
var wsProvider;
|
|
372
372
|
return _regenerator().w(function (_context3) {
|
|
373
373
|
while (1) switch (_context3.n) {
|
|
@@ -379,7 +379,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
379
379
|
}
|
|
380
380
|
}, _callee3);
|
|
381
381
|
}));
|
|
382
|
-
function createApiInstance(_x5) {
|
|
382
|
+
function createApiInstance(_x5, _x6) {
|
|
383
383
|
return _createApiInstance.apply(this, arguments);
|
|
384
384
|
}
|
|
385
385
|
return createApiInstance;
|
|
@@ -452,7 +452,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
452
452
|
}
|
|
453
453
|
}, _callee4);
|
|
454
454
|
}));
|
|
455
|
-
function calculateTransactionFee(
|
|
455
|
+
function calculateTransactionFee(_x7, _x8) {
|
|
456
456
|
return _calculateTransactionFee.apply(this, arguments);
|
|
457
457
|
}
|
|
458
458
|
return calculateTransactionFee;
|
|
@@ -476,7 +476,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
476
476
|
}
|
|
477
477
|
}, _callee5, this);
|
|
478
478
|
}));
|
|
479
|
-
function quoteAhPrice(
|
|
479
|
+
function quoteAhPrice(_x9, _x0, _x1) {
|
|
480
480
|
return _quoteAhPrice.apply(this, arguments);
|
|
481
481
|
}
|
|
482
482
|
return quoteAhPrice;
|
|
@@ -502,7 +502,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
502
502
|
}
|
|
503
503
|
}, _callee6, this);
|
|
504
504
|
}));
|
|
505
|
-
function getBalanceNative(
|
|
505
|
+
function getBalanceNative(_x10) {
|
|
506
506
|
return _getBalanceNative.apply(this, arguments);
|
|
507
507
|
}
|
|
508
508
|
return getBalanceNative;
|
|
@@ -526,7 +526,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
526
526
|
}
|
|
527
527
|
}, _callee7, this);
|
|
528
528
|
}));
|
|
529
|
-
function getBalanceForeignPolkadotXcm(
|
|
529
|
+
function getBalanceForeignPolkadotXcm(_x11, _x12, _x13) {
|
|
530
530
|
return _getBalanceForeignPolkadotXcm.apply(this, arguments);
|
|
531
531
|
}
|
|
532
532
|
return getBalanceForeignPolkadotXcm;
|
|
@@ -548,7 +548,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
548
548
|
}
|
|
549
549
|
}, _callee8, this);
|
|
550
550
|
}));
|
|
551
|
-
function getMythosForeignBalance(
|
|
551
|
+
function getMythosForeignBalance(_x14) {
|
|
552
552
|
return _getMythosForeignBalance.apply(this, arguments);
|
|
553
553
|
}
|
|
554
554
|
return getMythosForeignBalance;
|
|
@@ -570,7 +570,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
570
570
|
}
|
|
571
571
|
}, _callee9, this);
|
|
572
572
|
}));
|
|
573
|
-
function getBalanceForeignAssetsPallet(
|
|
573
|
+
function getBalanceForeignAssetsPallet(_x15, _x16) {
|
|
574
574
|
return _getBalanceForeignAssetsPallet.apply(this, arguments);
|
|
575
575
|
}
|
|
576
576
|
return getBalanceForeignAssetsPallet;
|
|
@@ -592,7 +592,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
592
592
|
}
|
|
593
593
|
}, _callee0, this);
|
|
594
594
|
}));
|
|
595
|
-
function getForeignAssetsByIdBalance(
|
|
595
|
+
function getForeignAssetsByIdBalance(_x17, _x18) {
|
|
596
596
|
return _getForeignAssetsByIdBalance.apply(this, arguments);
|
|
597
597
|
}
|
|
598
598
|
return getForeignAssetsByIdBalance;
|
|
@@ -615,7 +615,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
615
615
|
}
|
|
616
616
|
}, _callee1, this);
|
|
617
617
|
}));
|
|
618
|
-
function getBalanceForeignBifrost(
|
|
618
|
+
function getBalanceForeignBifrost(_x19, _x20) {
|
|
619
619
|
return _getBalanceForeignBifrost.apply(this, arguments);
|
|
620
620
|
}
|
|
621
621
|
return getBalanceForeignBifrost;
|
|
@@ -639,7 +639,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
639
639
|
}
|
|
640
640
|
}, _callee10, this);
|
|
641
641
|
}));
|
|
642
|
-
function getBalanceNativeAcala(
|
|
642
|
+
function getBalanceNativeAcala(_x21, _x22) {
|
|
643
643
|
return _getBalanceNativeAcala.apply(this, arguments);
|
|
644
644
|
}
|
|
645
645
|
return getBalanceNativeAcala;
|
|
@@ -675,7 +675,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
675
675
|
}
|
|
676
676
|
}, _callee11, this);
|
|
677
677
|
}));
|
|
678
|
-
function getBalanceForeignXTokens(
|
|
678
|
+
function getBalanceForeignXTokens(_x23, _x24, _x25) {
|
|
679
679
|
return _getBalanceForeignXTokens.apply(this, arguments);
|
|
680
680
|
}
|
|
681
681
|
return getBalanceForeignXTokens;
|
|
@@ -697,7 +697,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
697
697
|
}
|
|
698
698
|
}, _callee12, this);
|
|
699
699
|
}));
|
|
700
|
-
function getBalanceAssetsPallet(
|
|
700
|
+
function getBalanceAssetsPallet(_x26, _x27) {
|
|
701
701
|
return _getBalanceAssetsPallet.apply(this, arguments);
|
|
702
702
|
}
|
|
703
703
|
return getBalanceAssetsPallet;
|
|
@@ -738,7 +738,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
738
738
|
}
|
|
739
739
|
}, _callee13, this);
|
|
740
740
|
}));
|
|
741
|
-
function getFromRpc(
|
|
741
|
+
function getFromRpc(_x28, _x29, _x30) {
|
|
742
742
|
return _getFromRpc.apply(this, arguments);
|
|
743
743
|
}
|
|
744
744
|
return getFromRpc;
|
|
@@ -769,7 +769,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
769
769
|
}
|
|
770
770
|
}, _callee14);
|
|
771
771
|
}));
|
|
772
|
-
function createApiForChain(
|
|
772
|
+
function createApiForChain(_x31) {
|
|
773
773
|
return _createApiForChain.apply(this, arguments);
|
|
774
774
|
}
|
|
775
775
|
return createApiForChain;
|
|
@@ -808,7 +808,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
808
808
|
}
|
|
809
809
|
}, _callee15);
|
|
810
810
|
}));
|
|
811
|
-
return function performDryRunCall(
|
|
811
|
+
return function performDryRunCall(_x33) {
|
|
812
812
|
return _ref5.apply(this, arguments);
|
|
813
813
|
};
|
|
814
814
|
}();
|
|
@@ -939,7 +939,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
939
939
|
}
|
|
940
940
|
}, _callee16, this, [[7, 9], [2, 4]]);
|
|
941
941
|
}));
|
|
942
|
-
function getDryRunCall(
|
|
942
|
+
function getDryRunCall(_x32) {
|
|
943
943
|
return _getDryRunCall.apply(this, arguments);
|
|
944
944
|
}
|
|
945
945
|
return getDryRunCall;
|
|
@@ -967,7 +967,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
967
967
|
}
|
|
968
968
|
}, _callee17, this);
|
|
969
969
|
}));
|
|
970
|
-
function getXcmPaymentApiFee(
|
|
970
|
+
function getXcmPaymentApiFee(_x34, _x35, _x36) {
|
|
971
971
|
return _getXcmPaymentApiFee.apply(this, arguments);
|
|
972
972
|
}
|
|
973
973
|
return getXcmPaymentApiFee;
|
|
@@ -989,7 +989,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
989
989
|
}
|
|
990
990
|
}, _callee18, this);
|
|
991
991
|
}));
|
|
992
|
-
function getXcmWeight(
|
|
992
|
+
function getXcmWeight(_x37) {
|
|
993
993
|
return _getXcmWeight.apply(this, arguments);
|
|
994
994
|
}
|
|
995
995
|
return getXcmWeight;
|
|
@@ -1081,7 +1081,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
1081
1081
|
}
|
|
1082
1082
|
}, _callee19, this);
|
|
1083
1083
|
}));
|
|
1084
|
-
function getDryRunXcm(
|
|
1084
|
+
function getDryRunXcm(_x38) {
|
|
1085
1085
|
return _getDryRunXcm.apply(this, arguments);
|
|
1086
1086
|
}
|
|
1087
1087
|
return getDryRunXcm;
|
|
@@ -1134,7 +1134,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
1134
1134
|
}
|
|
1135
1135
|
}, _callee21, this);
|
|
1136
1136
|
}));
|
|
1137
|
-
function convertLocationToAccount(
|
|
1137
|
+
function convertLocationToAccount(_x39) {
|
|
1138
1138
|
return _convertLocationToAccount.apply(this, arguments);
|
|
1139
1139
|
}
|
|
1140
1140
|
return convertLocationToAccount;
|
package/dist/index.mjs
CHANGED
|
@@ -352,7 +352,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
352
352
|
_context2.n = 2;
|
|
353
353
|
break;
|
|
354
354
|
}
|
|
355
|
-
return _context2.a(2, this.createApiInstance(apiConfig));
|
|
355
|
+
return _context2.a(2, this.createApiInstance(apiConfig, chain));
|
|
356
356
|
case 2:
|
|
357
357
|
return _context2.a(2, apiConfig);
|
|
358
358
|
}
|
|
@@ -366,7 +366,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
366
366
|
}, {
|
|
367
367
|
key: "createApiInstance",
|
|
368
368
|
value: function () {
|
|
369
|
-
var _createApiInstance = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(wsUrl) {
|
|
369
|
+
var _createApiInstance = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(wsUrl, _chain) {
|
|
370
370
|
var wsProvider;
|
|
371
371
|
return _regenerator().w(function (_context3) {
|
|
372
372
|
while (1) switch (_context3.n) {
|
|
@@ -378,7 +378,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
378
378
|
}
|
|
379
379
|
}, _callee3);
|
|
380
380
|
}));
|
|
381
|
-
function createApiInstance(_x5) {
|
|
381
|
+
function createApiInstance(_x5, _x6) {
|
|
382
382
|
return _createApiInstance.apply(this, arguments);
|
|
383
383
|
}
|
|
384
384
|
return createApiInstance;
|
|
@@ -451,7 +451,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
451
451
|
}
|
|
452
452
|
}, _callee4);
|
|
453
453
|
}));
|
|
454
|
-
function calculateTransactionFee(
|
|
454
|
+
function calculateTransactionFee(_x7, _x8) {
|
|
455
455
|
return _calculateTransactionFee.apply(this, arguments);
|
|
456
456
|
}
|
|
457
457
|
return calculateTransactionFee;
|
|
@@ -475,7 +475,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
475
475
|
}
|
|
476
476
|
}, _callee5, this);
|
|
477
477
|
}));
|
|
478
|
-
function quoteAhPrice(
|
|
478
|
+
function quoteAhPrice(_x9, _x0, _x1) {
|
|
479
479
|
return _quoteAhPrice.apply(this, arguments);
|
|
480
480
|
}
|
|
481
481
|
return quoteAhPrice;
|
|
@@ -501,7 +501,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
501
501
|
}
|
|
502
502
|
}, _callee6, this);
|
|
503
503
|
}));
|
|
504
|
-
function getBalanceNative(
|
|
504
|
+
function getBalanceNative(_x10) {
|
|
505
505
|
return _getBalanceNative.apply(this, arguments);
|
|
506
506
|
}
|
|
507
507
|
return getBalanceNative;
|
|
@@ -525,7 +525,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
525
525
|
}
|
|
526
526
|
}, _callee7, this);
|
|
527
527
|
}));
|
|
528
|
-
function getBalanceForeignPolkadotXcm(
|
|
528
|
+
function getBalanceForeignPolkadotXcm(_x11, _x12, _x13) {
|
|
529
529
|
return _getBalanceForeignPolkadotXcm.apply(this, arguments);
|
|
530
530
|
}
|
|
531
531
|
return getBalanceForeignPolkadotXcm;
|
|
@@ -547,7 +547,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
547
547
|
}
|
|
548
548
|
}, _callee8, this);
|
|
549
549
|
}));
|
|
550
|
-
function getMythosForeignBalance(
|
|
550
|
+
function getMythosForeignBalance(_x14) {
|
|
551
551
|
return _getMythosForeignBalance.apply(this, arguments);
|
|
552
552
|
}
|
|
553
553
|
return getMythosForeignBalance;
|
|
@@ -569,7 +569,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
569
569
|
}
|
|
570
570
|
}, _callee9, this);
|
|
571
571
|
}));
|
|
572
|
-
function getBalanceForeignAssetsPallet(
|
|
572
|
+
function getBalanceForeignAssetsPallet(_x15, _x16) {
|
|
573
573
|
return _getBalanceForeignAssetsPallet.apply(this, arguments);
|
|
574
574
|
}
|
|
575
575
|
return getBalanceForeignAssetsPallet;
|
|
@@ -591,7 +591,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
591
591
|
}
|
|
592
592
|
}, _callee0, this);
|
|
593
593
|
}));
|
|
594
|
-
function getForeignAssetsByIdBalance(
|
|
594
|
+
function getForeignAssetsByIdBalance(_x17, _x18) {
|
|
595
595
|
return _getForeignAssetsByIdBalance.apply(this, arguments);
|
|
596
596
|
}
|
|
597
597
|
return getForeignAssetsByIdBalance;
|
|
@@ -614,7 +614,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
614
614
|
}
|
|
615
615
|
}, _callee1, this);
|
|
616
616
|
}));
|
|
617
|
-
function getBalanceForeignBifrost(
|
|
617
|
+
function getBalanceForeignBifrost(_x19, _x20) {
|
|
618
618
|
return _getBalanceForeignBifrost.apply(this, arguments);
|
|
619
619
|
}
|
|
620
620
|
return getBalanceForeignBifrost;
|
|
@@ -638,7 +638,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
638
638
|
}
|
|
639
639
|
}, _callee10, this);
|
|
640
640
|
}));
|
|
641
|
-
function getBalanceNativeAcala(
|
|
641
|
+
function getBalanceNativeAcala(_x21, _x22) {
|
|
642
642
|
return _getBalanceNativeAcala.apply(this, arguments);
|
|
643
643
|
}
|
|
644
644
|
return getBalanceNativeAcala;
|
|
@@ -674,7 +674,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
674
674
|
}
|
|
675
675
|
}, _callee11, this);
|
|
676
676
|
}));
|
|
677
|
-
function getBalanceForeignXTokens(
|
|
677
|
+
function getBalanceForeignXTokens(_x23, _x24, _x25) {
|
|
678
678
|
return _getBalanceForeignXTokens.apply(this, arguments);
|
|
679
679
|
}
|
|
680
680
|
return getBalanceForeignXTokens;
|
|
@@ -696,7 +696,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
696
696
|
}
|
|
697
697
|
}, _callee12, this);
|
|
698
698
|
}));
|
|
699
|
-
function getBalanceAssetsPallet(
|
|
699
|
+
function getBalanceAssetsPallet(_x26, _x27) {
|
|
700
700
|
return _getBalanceAssetsPallet.apply(this, arguments);
|
|
701
701
|
}
|
|
702
702
|
return getBalanceAssetsPallet;
|
|
@@ -737,7 +737,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
737
737
|
}
|
|
738
738
|
}, _callee13, this);
|
|
739
739
|
}));
|
|
740
|
-
function getFromRpc(
|
|
740
|
+
function getFromRpc(_x28, _x29, _x30) {
|
|
741
741
|
return _getFromRpc.apply(this, arguments);
|
|
742
742
|
}
|
|
743
743
|
return getFromRpc;
|
|
@@ -768,7 +768,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
768
768
|
}
|
|
769
769
|
}, _callee14);
|
|
770
770
|
}));
|
|
771
|
-
function createApiForChain(
|
|
771
|
+
function createApiForChain(_x31) {
|
|
772
772
|
return _createApiForChain.apply(this, arguments);
|
|
773
773
|
}
|
|
774
774
|
return createApiForChain;
|
|
@@ -807,7 +807,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
807
807
|
}
|
|
808
808
|
}, _callee15);
|
|
809
809
|
}));
|
|
810
|
-
return function performDryRunCall(
|
|
810
|
+
return function performDryRunCall(_x33) {
|
|
811
811
|
return _ref5.apply(this, arguments);
|
|
812
812
|
};
|
|
813
813
|
}();
|
|
@@ -938,7 +938,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
938
938
|
}
|
|
939
939
|
}, _callee16, this, [[7, 9], [2, 4]]);
|
|
940
940
|
}));
|
|
941
|
-
function getDryRunCall(
|
|
941
|
+
function getDryRunCall(_x32) {
|
|
942
942
|
return _getDryRunCall.apply(this, arguments);
|
|
943
943
|
}
|
|
944
944
|
return getDryRunCall;
|
|
@@ -966,7 +966,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
966
966
|
}
|
|
967
967
|
}, _callee17, this);
|
|
968
968
|
}));
|
|
969
|
-
function getXcmPaymentApiFee(
|
|
969
|
+
function getXcmPaymentApiFee(_x34, _x35, _x36) {
|
|
970
970
|
return _getXcmPaymentApiFee.apply(this, arguments);
|
|
971
971
|
}
|
|
972
972
|
return getXcmPaymentApiFee;
|
|
@@ -988,7 +988,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
988
988
|
}
|
|
989
989
|
}, _callee18, this);
|
|
990
990
|
}));
|
|
991
|
-
function getXcmWeight(
|
|
991
|
+
function getXcmWeight(_x37) {
|
|
992
992
|
return _getXcmWeight.apply(this, arguments);
|
|
993
993
|
}
|
|
994
994
|
return getXcmWeight;
|
|
@@ -1080,7 +1080,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
1080
1080
|
}
|
|
1081
1081
|
}, _callee19, this);
|
|
1082
1082
|
}));
|
|
1083
|
-
function getDryRunXcm(
|
|
1083
|
+
function getDryRunXcm(_x38) {
|
|
1084
1084
|
return _getDryRunXcm.apply(this, arguments);
|
|
1085
1085
|
}
|
|
1086
1086
|
return getDryRunXcm;
|
|
@@ -1133,7 +1133,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
1133
1133
|
}
|
|
1134
1134
|
}, _callee21, this);
|
|
1135
1135
|
}));
|
|
1136
|
-
function convertLocationToAccount(
|
|
1136
|
+
function convertLocationToAccount(_x39) {
|
|
1137
1137
|
return _convertLocationToAccount.apply(this, arguments);
|
|
1138
1138
|
}
|
|
1139
1139
|
return convertLocationToAccount;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk-pjs",
|
|
3
|
-
"version": "11.9.
|
|
3
|
+
"version": "11.9.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.2.0",
|
|
28
28
|
"ethers": "^6.15.0",
|
|
29
29
|
"viem": "^2.37.9",
|
|
30
|
-
"@paraspell/sdk-core": "11.9.
|
|
30
|
+
"@paraspell/sdk-core": "11.9.2"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@polkadot/api": ">= 16.0 < 17",
|