@paraspell/assets 14.1.0-rc.1 → 14.1.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 CHANGED
@@ -1,4 +1,4 @@
1
- import { TLocation, TChain, TRelaychain, Version } from '@paraspell/sdk-common';
1
+ import { TLocation, TChain, TRelaychain, Version, ParaSpellError } from '@paraspell/sdk-common';
2
2
 
3
3
  type TAsset<T = bigint> = TAssetV3<T> | TAssetV4<T>;
4
4
  interface TAssetV3<T = bigint> {
@@ -242,14 +242,14 @@ declare const findNativeAssetInfoOrThrow: (chain: TChain) => TAssetInfo;
242
242
  * Error thrown when a custom asset's location collides with an existing
243
243
  * registry asset and `forceOverride` was not set.
244
244
  */
245
- declare class CustomAssetConflictError extends Error {
245
+ declare class CustomAssetConflictError extends ParaSpellError {
246
246
  constructor(msg: string);
247
247
  }
248
248
 
249
249
  /**
250
250
  * Error thrown when multiple assets with the same symbol are found.
251
251
  */
252
- declare class DuplicateAssetError extends Error {
252
+ declare class DuplicateAssetError extends ParaSpellError {
253
253
  /**
254
254
  * Constructs a new DuplicateAssetError.
255
255
  *
@@ -261,7 +261,7 @@ declare class DuplicateAssetError extends Error {
261
261
  /**
262
262
  * Error thrown when multiple assets with the same symbol are found.
263
263
  */
264
- declare class DuplicateAssetIdError extends Error {
264
+ declare class DuplicateAssetIdError extends ParaSpellError {
265
265
  /**
266
266
  * Constructs a new DuplicateAssetError.
267
267
  *
@@ -273,7 +273,7 @@ declare class DuplicateAssetIdError extends Error {
273
273
  /**
274
274
  * Used to inform user, that currency they wish to use is not registered on either origin or destination Parachain
275
275
  */
276
- declare class InvalidCurrencyError extends Error {
276
+ declare class InvalidCurrencyError extends ParaSpellError {
277
277
  /**
278
278
  * Constructs a new InvalidCurrencyError.
279
279
  *