@paraspell/assets 13.7.2 → 13.8.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.d.ts +6 -1
- package/dist/index.mjs +339 -270
- package/package.json +5 -6
package/dist/index.d.ts
CHANGED
|
@@ -69,6 +69,8 @@ type TCurrencyInputWithAmount = WithComplexAmount<TCurrencySymbol | {
|
|
|
69
69
|
} | {
|
|
70
70
|
location: TLocationValueWithOverride;
|
|
71
71
|
}> | TAsset<TAmount>[] | WithComplexAmount<TCurrencyCore>[];
|
|
72
|
+
type TSingleCurrencyInputWithAmount = Exclude<TCurrencyInputWithAmount, unknown[]>;
|
|
73
|
+
type TSingleCurrencyInput = Exclude<TCurrencyInput, unknown[]>;
|
|
72
74
|
type TCurrencyInput = TCurrencySymbol | {
|
|
73
75
|
id: TCurrency;
|
|
74
76
|
} | {
|
|
@@ -77,6 +79,9 @@ type TCurrencyInput = TCurrencySymbol | {
|
|
|
77
79
|
type WithAmount<TBase, T = bigint> = TBase & {
|
|
78
80
|
amount: T;
|
|
79
81
|
};
|
|
82
|
+
type WithOptionalAmount<TBase, T = bigint> = TBase & {
|
|
83
|
+
amount?: T;
|
|
84
|
+
};
|
|
80
85
|
type WithComplexAmount<TBase> = WithAmount<TBase, TAmount>;
|
|
81
86
|
|
|
82
87
|
type TCustomAssetInfo = TAssetInfo & {
|
|
@@ -331,4 +336,4 @@ declare const extractAssetLocation: <T = bigint>(asset: TAsset<T>) => TLocation;
|
|
|
331
336
|
declare const getAssetLocation: (chain: TChain, currency: TCurrencyInput) => TLocation | null;
|
|
332
337
|
|
|
333
338
|
export { CustomAssetConflictError, DuplicateAssetError, DuplicateAssetIdError, Foreign, ForeignAbstract, InvalidCurrencyError, Native, Override, assertEdDefined, canonicalizeLocation, compareLocations, extractAssetLocation, findAssetInfo, findAssetInfoById, findAssetInfoByLoc, findAssetInfoBySymbol, findAssetInfoImpl, findAssetInfoOnDest, findAssetInfoOnDestImpl, findAssetInfoOrThrow, findAssetInfoOrThrowImpl, findAssetOnDestOrThrow, findAssetOnDestOrThrowImpl, findBestMatches, findNativeAssetInfo, findNativeAssetInfoImpl, findNativeAssetInfoOrThrow, findNativeAssetInfoOrThrowImpl, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssetLocation, getAssets, getAssetsImpl, getAssetsObject, getAssetsObjectImpl, getEdFromAssetOrThrow, getExistentialDeposit, getExistentialDepositImpl, getExistentialDepositOrThrow, getExistentialDepositOrThrowImpl, getFeeAssets, getNativeAssetSymbol, getNativeAssetSymbolImpl, getNativeAssets, getNativeAssetsImpl, getOtherAssets, getOtherAssetsImpl, getRelayChainSymbol, getRelayChainSymbolImpl, getSupportedAssets, getSupportedAssetsImpl, getSupportedDestinations, hasDryRunSupport, hasDryRunSupportImpl, hasSupportForAsset, hasXcmPaymentApiSupport, hasXcmPaymentApiSupportImpl, isAssetEqual, isAssetXcEqual, isBridgedSystemAsset, isChainEvm, isChainEvmImpl, isCustomAsset, isOverrideLocationSpecifier, isStableCoinAsset, isSymbolMatch, isSymbolSpecifier, isSystemAsset, isTAsset, normalizeCustomAssets, normalizeLocation, normalizeSymbol };
|
|
334
|
-
export type { TAmount, TAsset, TAssetInfo, TAssetInfoWithId, TAssetJsonMap, TAssetV3, TAssetV4, TAssetWithFee, TChainAssetsInfo, TCurrency, TCurrencyCore, TCurrencyInput, TCurrencyInputWithAmount, TCurrencySymbol, TCurrencySymbolValue, TCustomAssetInfo, TCustomAssetsMap, TCustomAssetsMapNormalized, TCustomCtx, TLocationValue, TLocationValueWithOverride, TOverrideLocationSpecifier, TSymbolSpecifier, WithAmount, WithComplexAmount };
|
|
339
|
+
export type { TAmount, TAsset, TAssetInfo, TAssetInfoWithId, TAssetJsonMap, TAssetV3, TAssetV4, TAssetWithFee, TChainAssetsInfo, TCurrency, TCurrencyCore, TCurrencyInput, TCurrencyInputWithAmount, TCurrencySymbol, TCurrencySymbolValue, TCustomAssetInfo, TCustomAssetsMap, TCustomAssetsMapNormalized, TCustomCtx, TLocationValue, TLocationValueWithOverride, TOverrideLocationSpecifier, TSingleCurrencyInput, TSingleCurrencyInputWithAmount, TSymbolSpecifier, WithAmount, WithComplexAmount, WithOptionalAmount };
|