@paraspell/assets 8.14.0 → 8.15.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 +639 -247
- package/dist/index.d.ts +7 -2
- package/dist/index.mjs +638 -248
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TMultiLocation, TRelayChainSymbol, TNodeWithRelayChains, TNodeDotKsmWithRelayChains } from '@paraspell/sdk-common';
|
|
2
2
|
|
|
3
3
|
type AtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
|
|
4
4
|
[K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;
|
|
@@ -9,6 +9,7 @@ type TBaseAsset = {
|
|
|
9
9
|
manuallyAdded?: boolean;
|
|
10
10
|
alias?: string;
|
|
11
11
|
existentialDeposit?: string;
|
|
12
|
+
isFeeAsset?: boolean;
|
|
12
13
|
};
|
|
13
14
|
type TNativeAsset = TBaseAsset & {
|
|
14
15
|
isNative: true;
|
|
@@ -24,6 +25,7 @@ type TNodeAssets = {
|
|
|
24
25
|
nativeAssetSymbol: string;
|
|
25
26
|
isEVM: boolean;
|
|
26
27
|
supportsDryRunApi: boolean;
|
|
28
|
+
supportsXcmPaymentApi: boolean;
|
|
27
29
|
nativeAssets: TNativeAsset[];
|
|
28
30
|
otherAssets: TForeignAsset[];
|
|
29
31
|
};
|
|
@@ -95,6 +97,8 @@ type WithAmount<TBase> = TBase & {
|
|
|
95
97
|
*/
|
|
96
98
|
declare const getExistentialDeposit: (node: TNodeWithRelayChains, currency?: TCurrencyCore) => string | null;
|
|
97
99
|
|
|
100
|
+
declare const getFeeAssets: (node: TNodeDotKsmWithRelayChains) => Omit<TAsset, "isFeeAsset">[];
|
|
101
|
+
|
|
98
102
|
/**
|
|
99
103
|
* Retrieves the assets object for a given node containing the native and foreign assets.
|
|
100
104
|
*
|
|
@@ -170,6 +174,7 @@ declare const hasSupportForAsset: (node: TNodeWithRelayChains, symbol: string) =
|
|
|
170
174
|
*/
|
|
171
175
|
declare const getAssetDecimals: (node: TNodeWithRelayChains, symbol: string) => number | null;
|
|
172
176
|
declare const hasDryRunSupport: (node: TNodeWithRelayChains) => boolean;
|
|
177
|
+
declare const hasXcmPaymentApiSupport: (node: TNodeWithRelayChains) => boolean;
|
|
173
178
|
|
|
174
179
|
declare const Native: (symbol: string) => TSymbolSpecifier;
|
|
175
180
|
declare const Foreign: (symbol: string) => TSymbolSpecifier;
|
|
@@ -259,5 +264,5 @@ declare const extractMultiAssetLoc: (multiAsset: TMultiAsset) => TMultiLocation;
|
|
|
259
264
|
|
|
260
265
|
declare const getAssetMultiLocation: (node: TNodeWithRelayChains, currency: TCurrencyInput) => TMultiLocation | null;
|
|
261
266
|
|
|
262
|
-
export { DuplicateAssetError, DuplicateAssetIdError, Foreign, ForeignAbstract, InvalidCurrencyError, Native, Override, compareMultiLocations, extractMultiAssetLoc, filterEthCompatibleAssets, findAsset, findAssetById, findAssetByMultiLocation, findAssetBySymbol, findBestMatches, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssetMultiLocation, getAssets, getAssetsObject, getExistentialDeposit, getNativeAssetSymbol, getNativeAssets, getOtherAssets, getRelayChainSymbol, getSupportedAssets, hasDryRunSupport, hasSupportForAsset, isAssetEqual, isForeignAsset, isNodeEvm, isOverrideMultiLocationSpecifier, isSymbolSpecifier, isTMultiAsset, normalizeSymbol };
|
|
267
|
+
export { DuplicateAssetError, DuplicateAssetIdError, Foreign, ForeignAbstract, InvalidCurrencyError, Native, Override, compareMultiLocations, extractMultiAssetLoc, filterEthCompatibleAssets, findAsset, findAssetById, findAssetByMultiLocation, findAssetBySymbol, findBestMatches, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssetMultiLocation, getAssets, getAssetsObject, getExistentialDeposit, getFeeAssets, getNativeAssetSymbol, getNativeAssets, getOtherAssets, getRelayChainSymbol, getSupportedAssets, hasDryRunSupport, hasSupportForAsset, hasXcmPaymentApiSupport, isAssetEqual, isForeignAsset, isNodeEvm, isOverrideMultiLocationSpecifier, isSymbolSpecifier, isTMultiAsset, normalizeSymbol };
|
|
263
268
|
export type { TAmount, TAsset, TAssetJsonMap, TCurrency, TCurrencyCore, TCurrencyInput, TCurrencyInputWithAmount, TCurrencySymbol, TCurrencySymbolValue, TForeignAsset, TMultiAsset, TMultiAssetV3, TMultiAssetV4, TMultiAssetWithFee, TMultiLocationValue, TMultiLocationValueWithOverride, TNativeAsset, TNodeAssets, TOverrideMultiLocationSpecifier, TSymbolSpecifier, WithAmount };
|