@paraspell/sdk 10.11.2 → 10.11.4
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 +4 -4
- package/dist/index.mjs +5 -5
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1200,7 +1200,7 @@ var PapiApi = /*#__PURE__*/function () {
|
|
|
1200
1200
|
key: "getBalanceForeignXTokens",
|
|
1201
1201
|
value: function () {
|
|
1202
1202
|
var _getBalanceForeignXTokens = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee14(node, address, asset) {
|
|
1203
|
-
var pallet,
|
|
1203
|
+
var pallet, _response, response, entry;
|
|
1204
1204
|
return _regenerator().w(function (_context14) {
|
|
1205
1205
|
while (1) switch (_context14.n) {
|
|
1206
1206
|
case 0:
|
|
@@ -1208,13 +1208,13 @@ var PapiApi = /*#__PURE__*/function () {
|
|
|
1208
1208
|
if (node === 'Centrifuge' || node === 'Altair') {
|
|
1209
1209
|
pallet = 'OrmlTokens';
|
|
1210
1210
|
}
|
|
1211
|
-
if (!(node === 'Hydration' &&
|
|
1211
|
+
if (!(node === 'Hydration' && asset.symbol.startsWith('a'))) {
|
|
1212
1212
|
_context14.n = 2;
|
|
1213
1213
|
break;
|
|
1214
1214
|
}
|
|
1215
|
-
|
|
1215
|
+
sdkCore.assertHasId(asset);
|
|
1216
1216
|
_context14.n = 1;
|
|
1217
|
-
return this.api.getUnsafeApi().apis.CurrenciesApi.account(
|
|
1217
|
+
return this.api.getUnsafeApi().apis.CurrenciesApi.account(asset.assetId, address);
|
|
1218
1218
|
case 1:
|
|
1219
1219
|
_response = _context14.v;
|
|
1220
1220
|
return _context14.a(2, _response ? BigInt(_response.free.toString()) : 0n);
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InvalidParameterError, isConfig, BatchMode, getNodeProviders, MissingChainApiError, NodeNotSupportedError, createApiInstanceForNode as createApiInstanceForNode$1, Parents, Version, getNode, isForeignAsset, computeFeeFromDryRun, findAsset, Native, getNativeAssetSymbol, hasXcmPaymentApiSupport, getAssetsObject, localizeLocation, isRelayChain, InvalidCurrencyError, padFeeBy, isAssetEqual, getBalanceNative as getBalanceNative$1, getBalanceForeign as getBalanceForeign$1, getAssetBalance as getAssetBalance$1, claimAssets as claimAssets$1, getOriginFeeDetails as getOriginFeeDetails$1, Foreign, ForeignAbstract, Override, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssets, getExistentialDeposit, getNativeAssets, getOtherAssets, getRelayChainSymbol, getSupportedAssets, getTNode, hasSupportForAsset, isNodeEvm, convertSs58 as convertSs58$1, transferMoonbeamEvm, validateAddress, transferMoonbeamToEth, Builder as Builder$1, getParaEthTransferFees as getParaEthTransferFees$1, getBridgeStatus as getBridgeStatus$1, getXcmFee as getXcmFee$1, send as send$1, dryRun as dryRun$1, dryRunOrigin as dryRunOrigin$1, getOriginXcmFee as getOriginXcmFee$1, handleSwapExecuteTransfer as handleSwapExecuteTransfer$1 } from '@paraspell/sdk-core';
|
|
1
|
+
import { InvalidParameterError, isConfig, BatchMode, getNodeProviders, MissingChainApiError, NodeNotSupportedError, createApiInstanceForNode as createApiInstanceForNode$1, Parents, Version, getNode, isForeignAsset, assertHasId, computeFeeFromDryRun, findAsset, Native, getNativeAssetSymbol, hasXcmPaymentApiSupport, getAssetsObject, localizeLocation, isRelayChain, InvalidCurrencyError, padFeeBy, isAssetEqual, getBalanceNative as getBalanceNative$1, getBalanceForeign as getBalanceForeign$1, getAssetBalance as getAssetBalance$1, claimAssets as claimAssets$1, getOriginFeeDetails as getOriginFeeDetails$1, Foreign, ForeignAbstract, Override, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssets, getExistentialDeposit, getNativeAssets, getOtherAssets, getRelayChainSymbol, getSupportedAssets, getTNode, hasSupportForAsset, isNodeEvm, convertSs58 as convertSs58$1, transferMoonbeamEvm, validateAddress, transferMoonbeamToEth, Builder as Builder$1, getParaEthTransferFees as getParaEthTransferFees$1, getBridgeStatus as getBridgeStatus$1, getXcmFee as getXcmFee$1, send as send$1, dryRun as dryRun$1, dryRunOrigin as dryRunOrigin$1, getOriginXcmFee as getOriginXcmFee$1, handleSwapExecuteTransfer as handleSwapExecuteTransfer$1 } from '@paraspell/sdk-core';
|
|
2
2
|
export * from '@paraspell/sdk-core';
|
|
3
3
|
import { blake2b } from '@noble/hashes/blake2';
|
|
4
4
|
import { bytesToHex } from '@noble/hashes/utils';
|
|
@@ -1199,7 +1199,7 @@ var PapiApi = /*#__PURE__*/function () {
|
|
|
1199
1199
|
key: "getBalanceForeignXTokens",
|
|
1200
1200
|
value: function () {
|
|
1201
1201
|
var _getBalanceForeignXTokens = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee14(node, address, asset) {
|
|
1202
|
-
var pallet,
|
|
1202
|
+
var pallet, _response, response, entry;
|
|
1203
1203
|
return _regenerator().w(function (_context14) {
|
|
1204
1204
|
while (1) switch (_context14.n) {
|
|
1205
1205
|
case 0:
|
|
@@ -1207,13 +1207,13 @@ var PapiApi = /*#__PURE__*/function () {
|
|
|
1207
1207
|
if (node === 'Centrifuge' || node === 'Altair') {
|
|
1208
1208
|
pallet = 'OrmlTokens';
|
|
1209
1209
|
}
|
|
1210
|
-
if (!(node === 'Hydration' &&
|
|
1210
|
+
if (!(node === 'Hydration' && asset.symbol.startsWith('a'))) {
|
|
1211
1211
|
_context14.n = 2;
|
|
1212
1212
|
break;
|
|
1213
1213
|
}
|
|
1214
|
-
|
|
1214
|
+
assertHasId(asset);
|
|
1215
1215
|
_context14.n = 1;
|
|
1216
|
-
return this.api.getUnsafeApi().apis.CurrenciesApi.account(
|
|
1216
|
+
return this.api.getUnsafeApi().apis.CurrenciesApi.account(asset.assetId, address);
|
|
1217
1217
|
case 1:
|
|
1218
1218
|
_response = _context14.v;
|
|
1219
1219
|
return _context14.a(2, _response ? BigInt(_response.free.toString()) : 0n);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk",
|
|
3
|
-
"version": "10.11.
|
|
3
|
+
"version": "10.11.4",
|
|
4
4
|
"description": "SDK for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@noble/hashes": "^1.8.0",
|
|
27
27
|
"viem": "^2.33.2",
|
|
28
|
-
"@paraspell/sdk-core": "10.11.
|
|
28
|
+
"@paraspell/sdk-core": "10.11.4"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"polkadot-api": ">= 1.
|
|
31
|
+
"polkadot-api": ">= 1.15.2 < 2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@babel/plugin-syntax-import-attributes": "^7.27.1",
|