@paraspell/assets 10.4.7 → 10.4.8
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 +2 -2
- package/dist/index.mjs +3 -3
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -12227,7 +12227,7 @@ var findAssetForNodeOrThrow = function findAssetForNodeOrThrow(node, currency, d
|
|
|
12227
12227
|
var _findAsset;
|
|
12228
12228
|
var asset = (_findAsset = findAsset(node, currency, destination)) !== null && _findAsset !== void 0 ? _findAsset : node === 'AssetHubPolkadot' ? findAsset('Ethereum', currency, null) : null;
|
|
12229
12229
|
if (!asset) {
|
|
12230
|
-
throw new InvalidCurrencyError("Asset ".concat(JSON.stringify(currency), " not found on ").concat(node));
|
|
12230
|
+
throw new InvalidCurrencyError("Asset ".concat(JSON.stringify(currency, sdkCommon.replaceBigInt), " not found on ").concat(node));
|
|
12231
12231
|
}
|
|
12232
12232
|
return asset;
|
|
12233
12233
|
};
|
|
@@ -12268,7 +12268,7 @@ var getExistentialDeposit = function getExistentialDeposit(node, currency) {
|
|
|
12268
12268
|
var getExistentialDepositOrThrow = function getExistentialDepositOrThrow(node, currency) {
|
|
12269
12269
|
var ed = getExistentialDeposit(node, currency);
|
|
12270
12270
|
if (ed === null) {
|
|
12271
|
-
throw new InvalidCurrencyError("Existential deposit not found for currency ".concat(JSON.stringify(currency), " on node ").concat(node, "."));
|
|
12271
|
+
throw new InvalidCurrencyError("Existential deposit not found for currency ".concat(JSON.stringify(currency, sdkCommon.replaceBigInt), " on node ").concat(node, "."));
|
|
12272
12272
|
}
|
|
12273
12273
|
return BigInt(ed);
|
|
12274
12274
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Version, deepEqual } from '@paraspell/sdk-common';
|
|
1
|
+
import { Version, deepEqual, replaceBigInt } from '@paraspell/sdk-common';
|
|
2
2
|
|
|
3
3
|
function _arrayLikeToArray(r, a) {
|
|
4
4
|
(null == a || a > r.length) && (a = r.length);
|
|
@@ -12225,7 +12225,7 @@ var findAssetForNodeOrThrow = function findAssetForNodeOrThrow(node, currency, d
|
|
|
12225
12225
|
var _findAsset;
|
|
12226
12226
|
var asset = (_findAsset = findAsset(node, currency, destination)) !== null && _findAsset !== void 0 ? _findAsset : node === 'AssetHubPolkadot' ? findAsset('Ethereum', currency, null) : null;
|
|
12227
12227
|
if (!asset) {
|
|
12228
|
-
throw new InvalidCurrencyError("Asset ".concat(JSON.stringify(currency), " not found on ").concat(node));
|
|
12228
|
+
throw new InvalidCurrencyError("Asset ".concat(JSON.stringify(currency, replaceBigInt), " not found on ").concat(node));
|
|
12229
12229
|
}
|
|
12230
12230
|
return asset;
|
|
12231
12231
|
};
|
|
@@ -12266,7 +12266,7 @@ var getExistentialDeposit = function getExistentialDeposit(node, currency) {
|
|
|
12266
12266
|
var getExistentialDepositOrThrow = function getExistentialDepositOrThrow(node, currency) {
|
|
12267
12267
|
var ed = getExistentialDeposit(node, currency);
|
|
12268
12268
|
if (ed === null) {
|
|
12269
|
-
throw new InvalidCurrencyError("Existential deposit not found for currency ".concat(JSON.stringify(currency), " on node ").concat(node, "."));
|
|
12269
|
+
throw new InvalidCurrencyError("Existential deposit not found for currency ".concat(JSON.stringify(currency, replaceBigInt), " on node ").concat(node, "."));
|
|
12270
12270
|
}
|
|
12271
12271
|
return BigInt(ed);
|
|
12272
12272
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/assets",
|
|
3
|
-
"version": "10.4.
|
|
3
|
+
"version": "10.4.8",
|
|
4
4
|
"description": "Assets for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dist"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@paraspell/sdk-common": "10.4.
|
|
26
|
+
"@paraspell/sdk-common": "10.4.8"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@babel/plugin-syntax-import-attributes": "^7.27.1",
|