@dogeos/dogeos-sdk 3.3.0-beta.3 → 4.0.0-beta.5

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,15 +1,16 @@
1
1
  import { AdaptorChainType } from '@tomo-inc/wallet-adaptor-base';
2
2
  import { Chain as Chain_2 } from 'viem/chains';
3
- import { ChainTypeEnum } from '@tomo-inc/wallet-utils';
3
+ import { ConfigThemes } from '@heroui/theme';
4
4
  import { Connector } from '@tomo-inc/wallet-adaptor-base';
5
5
  import { ConnectorProvider } from '@tomo-inc/wallet-adaptor-base';
6
6
  import { ConnectorProviders } from '@tomo-inc/wallet-adaptor-base';
7
7
  import { default as default_2 } from 'react';
8
+ import { DefaultThemeType } from '@heroui/theme';
8
9
  import { EmbeddedWallet } from '@tomo-inc/embedded-wallet-providers';
9
10
  import { EmbeddedWalletConfig } from '@tomo-inc/embedded-wallet-providers';
10
11
  import { JSX as JSX_2 } from 'react/jsx-runtime';
12
+ import { LayoutTheme } from '@heroui/theme';
11
13
  import { SignInParams } from '@tomo-inc/wallet-adaptor-base';
12
- import { ThemeConfig as ThemeConfig_2 } from '@tomo-inc/tomo-ui';
13
14
  import { TomoStage } from '@tomo-inc/wallet-utils';
14
15
  import { WalletConfig } from '@tomo-inc/wallet-adaptor-base';
15
16
  import { WalletInfo } from '@tomo-inc/wallet-adaptor-base';
@@ -19,7 +20,7 @@ import { WalletProvider as WalletProvider_2 } from '@tomo-inc/wallet-adaptor-bas
19
20
  export declare type BasicLoginType = "email" | "externalWallets";
20
21
 
21
22
  export declare type Chain = {
22
- id: number | string;
23
+ id: number;
23
24
  name: string;
24
25
  nativeCurrency: {
25
26
  name: string;
@@ -50,7 +51,21 @@ export declare type ChainInfo = {
50
51
 
51
52
  export declare type ChainType = Exclude<AdaptorChainType, "all">;
52
53
 
53
- export { ChainTypeEnum }
54
+ /**
55
+ * Chain types supported by the wallet
56
+ * The name must be explicitly defined in the enum.
57
+ */
58
+ export declare enum ChainTypeEnum {
59
+ BITCOIN = "bitcoin",
60
+ DOGECOIN = "dogecoin",
61
+ EVM = "evm",
62
+ SOLANA = "solana",
63
+ APTOS = "aptos",
64
+ COSMOS = "cosmos",
65
+ TON = "ton",
66
+ TRON = "tron",
67
+ SUI = "sui"
68
+ }
54
69
 
55
70
  export declare interface ConnectData {
56
71
  address: string;
@@ -76,9 +91,6 @@ export declare type DogeOSEmbeddedWalletInitConfig = Omit<EmbeddedWalletConfig,
76
91
  stage: EmbeddedWalletStage;
77
92
  };
78
93
 
79
- /**
80
- * Connected information from embedded wallet
81
- */
82
94
  declare interface EmbeddedWalletConnectedInfo {
83
95
  evmProvider?: ProviderConnectionInfo;
84
96
  solanaProvider?: ProviderConnectionInfo;
@@ -110,7 +122,7 @@ export declare type GetChainsReturnType = Promise<Partial<Record<ChainType, EvmC
110
122
 
111
123
  /**
112
124
  * Get all available connectors
113
- * Loads all connectors from @tomo-inc/wallet-adaptor-base including EIP6963, Wallet Standard, and WalletConnect wallets
125
+ * Loads all connectors from @dogeos/wallet-adaptor-base including EIP6963, Wallet Standard, and WalletConnect wallets
114
126
  *
115
127
  * @returns Returns all available wallet connectors
116
128
  */
@@ -135,9 +147,6 @@ export declare enum ModalView {
135
147
  WalletHome = "WALLET_HOME"
136
148
  }
137
149
 
138
- /**
139
- * Provider connection information
140
- */
141
150
  declare interface ProviderConnectionInfo {
142
151
  chainType: ChainTypeEnum;
143
152
  connected: boolean;
@@ -175,6 +184,13 @@ export declare type SwitchChainOptions = {
175
184
 
176
185
  export declare type ThemeConfig = ThemeConfig_2;
177
186
 
187
+ declare type ThemeConfig_2 = {
188
+ prefix?: string;
189
+ layout?: LayoutTheme;
190
+ themes?: ConfigThemes;
191
+ defaultTheme?: DefaultThemeType;
192
+ };
193
+
178
194
  /**
179
195
  * Account information and actions exposed to users
180
196
  *