@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.
package/dist/index.d.ts CHANGED
@@ -14687,6 +14687,7 @@ declare enum PassportErrorType {
14687
14687
  SILENT_LOGIN_ERROR = "SILENT_LOGIN_ERROR",
14688
14688
  REFRESH_TOKEN_ERROR = "REFRESH_TOKEN_ERROR",
14689
14689
  USER_REGISTRATION_ERROR = "USER_REGISTRATION_ERROR",
14690
+ USER_NOT_REGISTERED_ERROR = "USER_NOT_REGISTERED_ERROR",
14690
14691
  LOGOUT_ERROR = "LOGOUT_ERROR",
14691
14692
  TRANSFER_ERROR = "TRANSFER_ERROR",
14692
14693
  CREATE_ORDER_ERROR = "CREATE_ORDER_ERROR",
@@ -16085,7 +16086,8 @@ declare namespace provider_d {
16085
16086
  }
16086
16087
 
16087
16088
  /**
16088
- * Interface representing an ERC20 token
16089
+ * Type representing an ERC20 token
16090
+ * @property {string} type - The token type, used to discriminate between {@link ERC20} and {@link Native}
16089
16091
  * @property {number} chainId - The chain ID
16090
16092
  * @property {string} address - The token address
16091
16093
  * @property {number} decimals - The token decimals
@@ -16101,7 +16103,8 @@ type ERC20 = {
16101
16103
  name?: string;
16102
16104
  };
16103
16105
  /**
16104
- * Interface representing a native token
16106
+ * Type representing a native token
16107
+ * @property {string} type - The token type, used to discriminate between {@link ERC20} and {@link Native}
16105
16108
  * @property {number} chainId - The chain ID
16106
16109
  * @property {number} decimals - The token decimals
16107
16110
  * @property {string | undefined} symbol - The token symbol or undefined if it is not available
@@ -16114,13 +16117,25 @@ type Native = {
16114
16117
  symbol?: string;
16115
16118
  name?: string;
16116
16119
  };
16117
- interface ExchangeOverrides {
16120
+ /**
16121
+ * Type representing a token, either an {@link ERC20} or {@link Native}
16122
+ */
16123
+ type Coin = ERC20 | Native;
16124
+ /**
16125
+ * Type representing the overrides for the {@link Exchange} module
16126
+ * @property {string} rpcURL - The RPC URL for the chain
16127
+ * @property {ExchangeContracts} exchangeContracts - The DEX contract addresses
16128
+ * @property {ERC20[]} commonRoutingTokens - The tokens used to find available pools for a swap
16129
+ * @property {Coin} nativeToken - The native token of the chain
16130
+ * @property {ERC20} wrappedNativeToken - The wrapped native token of the chain
16131
+ */
16132
+ type ExchangeOverrides = {
16118
16133
  rpcURL: string;
16119
16134
  exchangeContracts: ExchangeContracts;
16120
16135
  commonRoutingTokens: ERC20[];
16121
- nativeToken: Native;
16136
+ nativeToken: Coin;
16122
16137
  wrappedNativeToken: ERC20;
16123
- }
16138
+ };
16124
16139
 
16125
16140
  /**
16126
16141
  * @typedef {string} Address - Represents an Ethereum address.
@@ -32395,7 +32410,7 @@ declare enum IMTBLWidgetEvents {
32395
32410
  IMTBL_SWAP_WIDGET_EVENT = "imtbl-swap-widget",
32396
32411
  IMTBL_BRIDGE_WIDGET_EVENT = "imtbl-bridge-widget",
32397
32412
  IMTBL_ONRAMP_WIDGET_EVENT = "imtbl-onramp-widget",
32398
- IMTBL_PRIMARY_REVENUE_WIDGET_EVENT = "imtbl-sale-widget"
32413
+ IMTBL_SALE_WIDGET_EVENT = "imtbl-sale-widget"
32399
32414
  }
32400
32415
  /**
32401
32416
  * Represents an event emitted by a widget.