@trustware/sdk-staging 1.1.8-staging.4 → 1.1.8-staging.6

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.
@@ -43,7 +43,7 @@ type TrustwareWidgetMessages = {
43
43
  declare const DEFAULT_THEME: TrustwareWidgetTheme;
44
44
  declare const DEFAULT_MESSAGES: TrustwareWidgetMessages;
45
45
 
46
- type WalletId = "metamask" | "coinbase" | "walletconnect" | "rainbow" | "phantom-evm" | "phantom-solana" | "solflare" | "backpack" | "rabby" | "brave" | "okx" | "zerion" | "taho" | "safe" | "imtoken" | "trust" | "bitget" | "kucoin";
46
+ type WalletId = "metamask" | "coinbase" | "walletconnect" | "rainbow" | "phantom-evm" | "phantom-solana" | "metamask-solana" | "solflare" | "backpack" | "rabby" | "brave" | "okx" | "zerion" | "taho" | "safe" | "imtoken" | "trust" | "bitget" | "kucoin";
47
47
  type WalletCategory = "injected" | "walletconnect" | "app";
48
48
  type WalletEcosystem = "evm" | "solana" | "multi";
49
49
  type WalletMeta = {
@@ -374,6 +374,13 @@ type TrustwareEvent = {
374
374
  type: "balance_stream_fallback";
375
375
  address: string;
376
376
  message: string;
377
+ } | {
378
+ type: "swap_route_changed";
379
+ fromChain: string;
380
+ fromToken: string;
381
+ toChain: string;
382
+ toToken: string;
383
+ amount?: string;
377
384
  };
378
385
 
379
386
  /** WalletConnect configuration options (all optional - SDK has built-in defaults) */
@@ -43,7 +43,7 @@ type TrustwareWidgetMessages = {
43
43
  declare const DEFAULT_THEME: TrustwareWidgetTheme;
44
44
  declare const DEFAULT_MESSAGES: TrustwareWidgetMessages;
45
45
 
46
- type WalletId = "metamask" | "coinbase" | "walletconnect" | "rainbow" | "phantom-evm" | "phantom-solana" | "solflare" | "backpack" | "rabby" | "brave" | "okx" | "zerion" | "taho" | "safe" | "imtoken" | "trust" | "bitget" | "kucoin";
46
+ type WalletId = "metamask" | "coinbase" | "walletconnect" | "rainbow" | "phantom-evm" | "phantom-solana" | "metamask-solana" | "solflare" | "backpack" | "rabby" | "brave" | "okx" | "zerion" | "taho" | "safe" | "imtoken" | "trust" | "bitget" | "kucoin";
47
47
  type WalletCategory = "injected" | "walletconnect" | "app";
48
48
  type WalletEcosystem = "evm" | "solana" | "multi";
49
49
  type WalletMeta = {
@@ -374,6 +374,13 @@ type TrustwareEvent = {
374
374
  type: "balance_stream_fallback";
375
375
  address: string;
376
376
  message: string;
377
+ } | {
378
+ type: "swap_route_changed";
379
+ fromChain: string;
380
+ fromToken: string;
381
+ toChain: string;
382
+ toToken: string;
383
+ amount?: string;
377
384
  };
378
385
 
379
386
  /** WalletConnect configuration options (all optional - SDK has built-in defaults) */
@@ -12265,7 +12265,7 @@ var init_constants = __esm({
12265
12265
  "src/constants.ts"() {
12266
12266
  "use strict";
12267
12267
  SDK_NAME = "@trustware/sdk";
12268
- SDK_VERSION = "1.1.8-staging.4";
12268
+ SDK_VERSION = "1.1.8-staging.6";
12269
12269
  API_ROOT = "https://bv-staging-api.trustware.io";
12270
12270
  API_PREFIX = "/api";
12271
12271
  }