@paraspell/sdk-pjs 8.13.2 → 8.14.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 CHANGED
@@ -449,7 +449,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
449
449
  }, {
450
450
  key: "init",
451
451
  value: function () {
452
- var _init = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(node) {
452
+ var _init = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(node, _clientTtlMs) {
453
453
  var _this$_api;
454
454
  return _regeneratorRuntime().wrap(function _callee$(_context) {
455
455
  while (1) switch (_context.prev = _context.next) {
@@ -493,7 +493,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
493
493
  }
494
494
  }, _callee, this);
495
495
  }));
496
- function init(_x) {
496
+ function init(_x, _x2) {
497
497
  return _init.apply(this, arguments);
498
498
  }
499
499
  return init;
@@ -516,7 +516,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
516
516
  }
517
517
  }, _callee2);
518
518
  }));
519
- function createApiInstance(_x2) {
519
+ function createApiInstance(_x3) {
520
520
  return _createApiInstance.apply(this, arguments);
521
521
  }
522
522
  return createApiInstance;
@@ -582,7 +582,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
582
582
  }
583
583
  }, _callee3);
584
584
  }));
585
- function calculateTransactionFee(_x3, _x4) {
585
+ function calculateTransactionFee(_x4, _x5) {
586
586
  return _calculateTransactionFee.apply(this, arguments);
587
587
  }
588
588
  return calculateTransactionFee;
@@ -609,7 +609,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
609
609
  }
610
610
  }, _callee4, this);
611
611
  }));
612
- function quoteAhPrice(_x5, _x6, _x7) {
612
+ function quoteAhPrice(_x6, _x7, _x8) {
613
613
  return _quoteAhPrice.apply(this, arguments);
614
614
  }
615
615
  return quoteAhPrice;
@@ -633,7 +633,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
633
633
  }
634
634
  }, _callee5, this);
635
635
  }));
636
- function getBalanceNative(_x8) {
636
+ function getBalanceNative(_x9) {
637
637
  return _getBalanceNative.apply(this, arguments);
638
638
  }
639
639
  return getBalanceNative;
@@ -659,7 +659,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
659
659
  }
660
660
  }, _callee6, this);
661
661
  }));
662
- function getBalanceForeignPolkadotXcm(_x9, _x0) {
662
+ function getBalanceForeignPolkadotXcm(_x0, _x1) {
663
663
  return _getBalanceForeignPolkadotXcm.apply(this, arguments);
664
664
  }
665
665
  return getBalanceForeignPolkadotXcm;
@@ -684,7 +684,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
684
684
  }
685
685
  }, _callee7, this);
686
686
  }));
687
- function getMythosForeignBalance(_x1) {
687
+ function getMythosForeignBalance(_x10) {
688
688
  return _getMythosForeignBalance.apply(this, arguments);
689
689
  }
690
690
  return getMythosForeignBalance;
@@ -709,7 +709,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
709
709
  }
710
710
  }, _callee8, this);
711
711
  }));
712
- function getBalanceForeignAssetsPallet(_x10, _x11) {
712
+ function getBalanceForeignAssetsPallet(_x11, _x12) {
713
713
  return _getBalanceForeignAssetsPallet.apply(this, arguments);
714
714
  }
715
715
  return getBalanceForeignAssetsPallet;
@@ -734,7 +734,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
734
734
  }
735
735
  }, _callee9, this);
736
736
  }));
737
- function getForeignAssetsByIdBalance(_x12, _x13) {
737
+ function getForeignAssetsByIdBalance(_x13, _x14) {
738
738
  return _getForeignAssetsByIdBalance.apply(this, arguments);
739
739
  }
740
740
  return getForeignAssetsByIdBalance;
@@ -760,7 +760,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
760
760
  }
761
761
  }, _callee0, this);
762
762
  }));
763
- function getBalanceForeignBifrost(_x14, _x15) {
763
+ function getBalanceForeignBifrost(_x15, _x16) {
764
764
  return _getBalanceForeignBifrost.apply(this, arguments);
765
765
  }
766
766
  return getBalanceForeignBifrost;
@@ -787,7 +787,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
787
787
  }
788
788
  }, _callee1, this);
789
789
  }));
790
- function getBalanceNativeAcala(_x16, _x17) {
790
+ function getBalanceNativeAcala(_x17, _x18) {
791
791
  return _getBalanceNativeAcala.apply(this, arguments);
792
792
  }
793
793
  return getBalanceNativeAcala;
@@ -826,7 +826,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
826
826
  }
827
827
  }, _callee10, this);
828
828
  }));
829
- function getBalanceForeignXTokens(_x18, _x19, _x20) {
829
+ function getBalanceForeignXTokens(_x19, _x20, _x21) {
830
830
  return _getBalanceForeignXTokens.apply(this, arguments);
831
831
  }
832
832
  return getBalanceForeignXTokens;
@@ -851,7 +851,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
851
851
  }
852
852
  }, _callee11, this);
853
853
  }));
854
- function getBalanceAssetsPallet(_x21, _x22) {
854
+ function getBalanceAssetsPallet(_x22, _x23) {
855
855
  return _getBalanceAssetsPallet.apply(this, arguments);
856
856
  }
857
857
  return getBalanceAssetsPallet;
@@ -882,7 +882,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
882
882
  }
883
883
  }, _callee12, this);
884
884
  }));
885
- function getFromRpc(_x23, _x24, _x25) {
885
+ function getFromRpc(_x24, _x25, _x26) {
886
886
  return _getFromRpc.apply(this, arguments);
887
887
  }
888
888
  return getFromRpc;
@@ -916,7 +916,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
916
916
  }
917
917
  }, _callee13);
918
918
  }));
919
- function createApiForNode(_x26) {
919
+ function createApiForNode(_x27) {
920
920
  return _createApiForNode.apply(this, arguments);
921
921
  }
922
922
  return createApiForNode;
@@ -990,7 +990,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
990
990
  }
991
991
  }, _callee14, this);
992
992
  }));
993
- function getDryRunCall(_x27) {
993
+ function getDryRunCall(_x28) {
994
994
  return _getDryRunCall.apply(this, arguments);
995
995
  }
996
996
  return getDryRunCall;
@@ -1078,7 +1078,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
1078
1078
  }
1079
1079
  }, _callee15, this);
1080
1080
  }));
1081
- function getDryRunXcm(_x28) {
1081
+ function getDryRunXcm(_x29) {
1082
1082
  return _getDryRunXcm.apply(this, arguments);
1083
1083
  }
1084
1084
  return getDryRunXcm;
@@ -1768,7 +1768,7 @@ var getParaEthTransferFees = /*#__PURE__*/function () {
1768
1768
  pjsApi = new PolkadotJsApi();
1769
1769
  pjsApi.setApi(api);
1770
1770
  _context.next = 4;
1771
- return pjsApi.init('AssetHubPolkadot');
1771
+ return pjsApi.init('AssetHubPolkadot', sdkCore.DRY_RUN_CLIENT_TIMEOUT_MS);
1772
1772
  case 4:
1773
1773
  return _context.abrupt("return", sdkCore.getParaEthTransferFees(pjsApi));
1774
1774
  case 5:
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { BatchMode, createApiInstanceForNode as createApiInstanceForNode$1, getNode, isForeignAsset, computeFeeFromDryRunPjs, resolveModuleError, getAssetsObject, NodeNotSupportedError, getBalanceNative as getBalanceNative$1, getBalanceForeign as getBalanceForeign$1, getTransferInfo as getTransferInfo$1, getAssetBalance as getAssetBalance$1, claimAssets as claimAssets$1, getOriginFeeDetails as getOriginFeeDetails$1, getMaxNativeTransferableAmount as getMaxNativeTransferableAmount$1, getMaxForeignTransferableAmount as getMaxForeignTransferableAmount$1, getTransferableAmount as getTransferableAmount$1, verifyEdOnDestination as verifyEdOnDestination$1, Foreign, ForeignAbstract, Native, Override, findAsset, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssets, getExistentialDeposit, getNativeAssetSymbol, getNativeAssets, getOtherAssets, getRelayChainSymbol, getSupportedAssets, getTNode, hasSupportForAsset, isNodeEvm, getParaId, ETH_CHAIN_ID, InvalidCurrencyError, isEthersSigner, isOverrideMultiLocationSpecifier, validateAddress, transferMoonbeamToEth, transferMoonbeamEvm, Builder as Builder$1, getParaEthTransferFees as getParaEthTransferFees$1, getBridgeStatus as getBridgeStatus$1, send as send$1, dryRun as dryRun$1, dryRunOrigin as dryRunOrigin$1 } from '@paraspell/sdk-core';
1
+ import { BatchMode, createApiInstanceForNode as createApiInstanceForNode$1, getNode, isForeignAsset, computeFeeFromDryRunPjs, resolveModuleError, getAssetsObject, NodeNotSupportedError, getBalanceNative as getBalanceNative$1, getBalanceForeign as getBalanceForeign$1, getTransferInfo as getTransferInfo$1, getAssetBalance as getAssetBalance$1, claimAssets as claimAssets$1, getOriginFeeDetails as getOriginFeeDetails$1, getMaxNativeTransferableAmount as getMaxNativeTransferableAmount$1, getMaxForeignTransferableAmount as getMaxForeignTransferableAmount$1, getTransferableAmount as getTransferableAmount$1, verifyEdOnDestination as verifyEdOnDestination$1, Foreign, ForeignAbstract, Native, Override, findAsset, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssets, getExistentialDeposit, getNativeAssetSymbol, getNativeAssets, getOtherAssets, getRelayChainSymbol, getSupportedAssets, getTNode, hasSupportForAsset, isNodeEvm, getParaId, ETH_CHAIN_ID, InvalidCurrencyError, isEthersSigner, isOverrideMultiLocationSpecifier, validateAddress, transferMoonbeamToEth, transferMoonbeamEvm, Builder as Builder$1, getParaEthTransferFees as getParaEthTransferFees$1, DRY_RUN_CLIENT_TIMEOUT_MS, getBridgeStatus as getBridgeStatus$1, send as send$1, dryRun as dryRun$1, dryRunOrigin as dryRunOrigin$1 } from '@paraspell/sdk-core';
2
2
  export * from '@paraspell/sdk-core';
3
3
  import { WsProvider, ApiPromise } from '@polkadot/api';
4
4
  import { u32 } from '@polkadot/types';
@@ -448,7 +448,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
448
448
  }, {
449
449
  key: "init",
450
450
  value: function () {
451
- var _init = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(node) {
451
+ var _init = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(node, _clientTtlMs) {
452
452
  var _this$_api;
453
453
  return _regeneratorRuntime().wrap(function _callee$(_context) {
454
454
  while (1) switch (_context.prev = _context.next) {
@@ -492,7 +492,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
492
492
  }
493
493
  }, _callee, this);
494
494
  }));
495
- function init(_x) {
495
+ function init(_x, _x2) {
496
496
  return _init.apply(this, arguments);
497
497
  }
498
498
  return init;
@@ -515,7 +515,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
515
515
  }
516
516
  }, _callee2);
517
517
  }));
518
- function createApiInstance(_x2) {
518
+ function createApiInstance(_x3) {
519
519
  return _createApiInstance.apply(this, arguments);
520
520
  }
521
521
  return createApiInstance;
@@ -581,7 +581,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
581
581
  }
582
582
  }, _callee3);
583
583
  }));
584
- function calculateTransactionFee(_x3, _x4) {
584
+ function calculateTransactionFee(_x4, _x5) {
585
585
  return _calculateTransactionFee.apply(this, arguments);
586
586
  }
587
587
  return calculateTransactionFee;
@@ -608,7 +608,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
608
608
  }
609
609
  }, _callee4, this);
610
610
  }));
611
- function quoteAhPrice(_x5, _x6, _x7) {
611
+ function quoteAhPrice(_x6, _x7, _x8) {
612
612
  return _quoteAhPrice.apply(this, arguments);
613
613
  }
614
614
  return quoteAhPrice;
@@ -632,7 +632,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
632
632
  }
633
633
  }, _callee5, this);
634
634
  }));
635
- function getBalanceNative(_x8) {
635
+ function getBalanceNative(_x9) {
636
636
  return _getBalanceNative.apply(this, arguments);
637
637
  }
638
638
  return getBalanceNative;
@@ -658,7 +658,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
658
658
  }
659
659
  }, _callee6, this);
660
660
  }));
661
- function getBalanceForeignPolkadotXcm(_x9, _x0) {
661
+ function getBalanceForeignPolkadotXcm(_x0, _x1) {
662
662
  return _getBalanceForeignPolkadotXcm.apply(this, arguments);
663
663
  }
664
664
  return getBalanceForeignPolkadotXcm;
@@ -683,7 +683,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
683
683
  }
684
684
  }, _callee7, this);
685
685
  }));
686
- function getMythosForeignBalance(_x1) {
686
+ function getMythosForeignBalance(_x10) {
687
687
  return _getMythosForeignBalance.apply(this, arguments);
688
688
  }
689
689
  return getMythosForeignBalance;
@@ -708,7 +708,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
708
708
  }
709
709
  }, _callee8, this);
710
710
  }));
711
- function getBalanceForeignAssetsPallet(_x10, _x11) {
711
+ function getBalanceForeignAssetsPallet(_x11, _x12) {
712
712
  return _getBalanceForeignAssetsPallet.apply(this, arguments);
713
713
  }
714
714
  return getBalanceForeignAssetsPallet;
@@ -733,7 +733,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
733
733
  }
734
734
  }, _callee9, this);
735
735
  }));
736
- function getForeignAssetsByIdBalance(_x12, _x13) {
736
+ function getForeignAssetsByIdBalance(_x13, _x14) {
737
737
  return _getForeignAssetsByIdBalance.apply(this, arguments);
738
738
  }
739
739
  return getForeignAssetsByIdBalance;
@@ -759,7 +759,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
759
759
  }
760
760
  }, _callee0, this);
761
761
  }));
762
- function getBalanceForeignBifrost(_x14, _x15) {
762
+ function getBalanceForeignBifrost(_x15, _x16) {
763
763
  return _getBalanceForeignBifrost.apply(this, arguments);
764
764
  }
765
765
  return getBalanceForeignBifrost;
@@ -786,7 +786,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
786
786
  }
787
787
  }, _callee1, this);
788
788
  }));
789
- function getBalanceNativeAcala(_x16, _x17) {
789
+ function getBalanceNativeAcala(_x17, _x18) {
790
790
  return _getBalanceNativeAcala.apply(this, arguments);
791
791
  }
792
792
  return getBalanceNativeAcala;
@@ -825,7 +825,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
825
825
  }
826
826
  }, _callee10, this);
827
827
  }));
828
- function getBalanceForeignXTokens(_x18, _x19, _x20) {
828
+ function getBalanceForeignXTokens(_x19, _x20, _x21) {
829
829
  return _getBalanceForeignXTokens.apply(this, arguments);
830
830
  }
831
831
  return getBalanceForeignXTokens;
@@ -850,7 +850,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
850
850
  }
851
851
  }, _callee11, this);
852
852
  }));
853
- function getBalanceAssetsPallet(_x21, _x22) {
853
+ function getBalanceAssetsPallet(_x22, _x23) {
854
854
  return _getBalanceAssetsPallet.apply(this, arguments);
855
855
  }
856
856
  return getBalanceAssetsPallet;
@@ -881,7 +881,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
881
881
  }
882
882
  }, _callee12, this);
883
883
  }));
884
- function getFromRpc(_x23, _x24, _x25) {
884
+ function getFromRpc(_x24, _x25, _x26) {
885
885
  return _getFromRpc.apply(this, arguments);
886
886
  }
887
887
  return getFromRpc;
@@ -915,7 +915,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
915
915
  }
916
916
  }, _callee13);
917
917
  }));
918
- function createApiForNode(_x26) {
918
+ function createApiForNode(_x27) {
919
919
  return _createApiForNode.apply(this, arguments);
920
920
  }
921
921
  return createApiForNode;
@@ -989,7 +989,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
989
989
  }
990
990
  }, _callee14, this);
991
991
  }));
992
- function getDryRunCall(_x27) {
992
+ function getDryRunCall(_x28) {
993
993
  return _getDryRunCall.apply(this, arguments);
994
994
  }
995
995
  return getDryRunCall;
@@ -1077,7 +1077,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
1077
1077
  }
1078
1078
  }, _callee15, this);
1079
1079
  }));
1080
- function getDryRunXcm(_x28) {
1080
+ function getDryRunXcm(_x29) {
1081
1081
  return _getDryRunXcm.apply(this, arguments);
1082
1082
  }
1083
1083
  return getDryRunXcm;
@@ -1767,7 +1767,7 @@ var getParaEthTransferFees = /*#__PURE__*/function () {
1767
1767
  pjsApi = new PolkadotJsApi();
1768
1768
  pjsApi.setApi(api);
1769
1769
  _context.next = 4;
1770
- return pjsApi.init('AssetHubPolkadot');
1770
+ return pjsApi.init('AssetHubPolkadot', DRY_RUN_CLIENT_TIMEOUT_MS);
1771
1771
  case 4:
1772
1772
  return _context.abrupt("return", getParaEthTransferFees$1(pjsApi));
1773
1773
  case 5:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/sdk-pjs",
3
- "version": "8.13.2",
3
+ "version": "8.14.0",
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.2"
30
+ "@paraspell/sdk-core": "8.14.0"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@polkadot/api": ">= 15.0 < 16",