@paraspell/assets 10.4.3 → 10.4.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 +840 -225
- package/dist/index.d.ts +7 -4
- package/dist/index.mjs +841 -226
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TMultiLocation, TRelayChainSymbol, TNodeWithRelayChains, TNodeDotKsmWithRelayChains } from '@paraspell/sdk-common';
|
|
1
|
+
import { TMultiLocation, TRelayChainSymbol, TNodeWithRelayChains, TNodeDotKsmWithRelayChains, Version } 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>>>;
|
|
@@ -204,12 +204,15 @@ declare const getSupportedAssets: (origin: TNodeWithRelayChains, destination: TN
|
|
|
204
204
|
declare const isAssetEqual: (asset1: TAsset, asset2: TAsset) => boolean;
|
|
205
205
|
|
|
206
206
|
/**
|
|
207
|
-
* Converts a multi-location to XCM
|
|
207
|
+
* Converts a multi-location to a specific XCM version . Defaults to XCM v4.
|
|
208
|
+
*
|
|
209
|
+
* In XCM v3, `interior.X1` is a single `Object`. In XCM V4, `interior.X1` is an `Array<Object>`.
|
|
208
210
|
*
|
|
209
211
|
* @param multiLocation - The multi-location to normalize.
|
|
210
|
-
* @
|
|
212
|
+
* @param version - The target XCM version: `'V3'`, `'V4'` or `'V5'`. Defaults to `'V4'`.
|
|
213
|
+
* @returns A new transformed `TMultiLocation`
|
|
211
214
|
*/
|
|
212
|
-
declare const normalizeMultiLocation: (multiLocation: TMultiLocation) => TMultiLocation;
|
|
215
|
+
declare const normalizeMultiLocation: (multiLocation: TMultiLocation, version?: Version) => TMultiLocation;
|
|
213
216
|
|
|
214
217
|
declare const findAsset: (node: TNodeWithRelayChains, currency: TCurrencyInput, destination: TNodeWithRelayChains | null) => TAsset | null;
|
|
215
218
|
|