@imtbl/sdk 0.27.9 → 0.27.11

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.
@@ -566,7 +566,8 @@ interface ModuleConfiguration<T> {
566
566
  }
567
567
 
568
568
  /**
569
- * Interface representing an ERC20 token
569
+ * Type representing an ERC20 token
570
+ * @property {string} type - The token type, used to discriminate between {@link ERC20} and {@link Native}
570
571
  * @property {number} chainId - The chain ID
571
572
  * @property {string} address - The token address
572
573
  * @property {number} decimals - The token decimals
@@ -582,7 +583,8 @@ type ERC20 = {
582
583
  name?: string;
583
584
  };
584
585
  /**
585
- * Interface representing a native token
586
+ * Type representing a native token
587
+ * @property {string} type - The token type, used to discriminate between {@link ERC20} and {@link Native}
586
588
  * @property {number} chainId - The chain ID
587
589
  * @property {number} decimals - The token decimals
588
590
  * @property {string | undefined} symbol - The token symbol or undefined if it is not available
@@ -595,13 +597,25 @@ type Native = {
595
597
  symbol?: string;
596
598
  name?: string;
597
599
  };
598
- interface ExchangeOverrides {
600
+ /**
601
+ * Type representing a token, either an {@link ERC20} or {@link Native}
602
+ */
603
+ type Coin = ERC20 | Native;
604
+ /**
605
+ * Type representing the overrides for the {@link Exchange} module
606
+ * @property {string} rpcURL - The RPC URL for the chain
607
+ * @property {ExchangeContracts} exchangeContracts - The DEX contract addresses
608
+ * @property {ERC20[]} commonRoutingTokens - The tokens used to find available pools for a swap
609
+ * @property {Coin} nativeToken - The native token of the chain
610
+ * @property {ERC20} wrappedNativeToken - The wrapped native token of the chain
611
+ */
612
+ type ExchangeOverrides = {
599
613
  rpcURL: string;
600
614
  exchangeContracts: ExchangeContracts;
601
615
  commonRoutingTokens: ERC20[];
602
- nativeToken: Native;
616
+ nativeToken: Coin;
603
617
  wrappedNativeToken: ERC20;
604
- }
618
+ };
605
619
 
606
620
  /**
607
621
  * @typedef {string} Address - Represents an Ethereum address.