@injectivelabs/wallet-base 1.20.7 → 1.20.9

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.
@@ -1,447 +1,10 @@
1
- import { StdSignDoc } from "@keplr-wallet/types";
2
- import { OfflineSigner } from "@cosmjs/proto-signing";
3
- import { TxResponse } from "@injectivelabs/sdk-ts/core/tx";
4
- import { AccountAddress, ChainId, CosmosChainId, EvmChainId } from "@injectivelabs/ts-types";
5
- import { AminoSignResponse, DirectSignResponse, TxRaw } from "@injectivelabs/sdk-ts/types";
6
- import { EIP1193Provider } from "eip1193-provider";
1
+ import { A as WalletConnectMetadata, B as Wallet, C as SendTransactionOptions, D as TurnkeyOAuthProvider, E as TurnkeyMetadata, F as onAccountChangeCallback, G as WalletConnectStrategyEventType, H as WalletDeviceType, I as onChainIdChangeCallback, J as WalletStrategyEmitterEvents, K as WalletStrategyEmitter, L as BroadcastMode, M as WalletStrategy, N as WalletStrategyArguments, O as TurnkeyProvider, P as WalletStrategyEvmOptions, R as EvmWalletProviderErrorCode, S as PrivateKeyMetadata, T as StrategyEmitter, U as WalletEventListener, V as WalletAction, W as StrategyEventType, _ as ConcreteWalletStrategy, a as isEip712V2OnlyWallet, b as Eip1193Provider, c as BrowserEip1993Provider, d as EIP6963ProviderInfo, f as WindowWithEip1193Provider, g as ConcreteStrategiesArg, h as ConcreteEvmWalletStrategyArgs, i as isCosmosWallet, j as WalletMetadata, k as TurnkeySession, l as EIP6963AnnounceProviderEvent, m as ConcreteCosmosWalletStrategyArgs, n as isCosmosAminoOnlyWallet, o as isEvmBrowserWallet, p as ConcreteCosmosWalletStrategy, q as WalletStrategyEmitterEventType, r as isCosmosBrowserWallet, s as isEvmWallet, t as BaseConcreteStrategy, u as EIP6963ProviderDetail, v as ConcreteWalletStrategyArgs, w as StdSignDoc, x as MagicMetadata, y as CosmosWalletAbstraction, z as MagicProvider } from "./base-BGVbNgzY.cjs";
2
+ import { ChainId, EvmChainId } from "@injectivelabs/ts-types";
7
3
  import { Msgs } from "@injectivelabs/sdk-ts/core/modules";
8
4
  import { Account, Chain, LocalAccount, PublicClient, WalletClient } from "viem";
9
- import { CosmosTxV1Beta1TxPb } from "@injectivelabs/sdk-ts";
5
+ import { CosmosTxV1Beta1TxPb } from "@injectivelabs/sdk-ts/proto/cosmos-tx";
10
6
  import { BigNumber } from "@injectivelabs/utils";
11
7
 
12
- //#region src/types/events.d.ts
13
- declare const StrategyEventType: {
14
- readonly ConnectionEnd: "connection-end";
15
- readonly ConnectionStart: "connection-start";
16
- readonly WalletSigningEnd: "wallet-signing-end";
17
- readonly WalletSigningStart: "wallet-signing-start";
18
- };
19
- declare const WalletConnectStrategyEventType: {
20
- readonly WalletConnectSigningWithTxTimeout: "signing-with-tx-timeout";
21
- };
22
- declare const WalletStrategyEmitterEventType: {
23
- readonly TransactionFail: "transaction-fail";
24
- readonly TransactionSigned: "transaction-signed";
25
- readonly TransactionSignStart: "transaction-sign-start";
26
- readonly TransactionBroadcastEnd: "transaction-broadcast-end";
27
- readonly TransactionBroadcastStart: "transaction-broadcast-start";
28
- readonly TransactionBroadcastSynced: "transaction-broadcast-synced";
29
- readonly TransactionPreparationEnd: "transaction-preparation-end";
30
- readonly TransactionPreparationStart: "transaction-preparation-start";
31
- readonly WalletStrategyDisconnect: "wallet-strategy-disconnect";
32
- };
33
- type StrategyEventType = (typeof StrategyEventType)[keyof typeof StrategyEventType] | (typeof WalletConnectStrategyEventType)[keyof typeof WalletConnectStrategyEventType];
34
- type WalletStrategyEmitterEventType = (typeof WalletStrategyEmitterEventType)[keyof typeof WalletStrategyEmitterEventType] | StrategyEventType;
35
- type WalletStrategyEmitterEvents = { [K in WalletStrategyEmitterEventType]: Record<string, any> };
36
- interface WalletStrategyEmitter {
37
- on(event: WalletStrategyEmitterEventType, listener: (...args: any[]) => void): this;
38
- off(event: WalletStrategyEmitterEventType, listener: (...args: any[]) => void): this;
39
- emit(event: WalletStrategyEmitterEventType, ...args: any[]): boolean;
40
- }
41
- //#endregion
42
- //#region src/types/enums.d.ts
43
- declare const BroadcastMode: {
44
- readonly Block: "block";
45
- readonly Sync: "sync";
46
- readonly Async: "async";
47
- };
48
- type BroadcastMode = (typeof BroadcastMode)[keyof typeof BroadcastMode];
49
- declare const Wallet: {
50
- readonly Leap: "leap";
51
- readonly Keplr: "keplr";
52
- readonly Ninji: "ninji";
53
- readonly Magic: "magic";
54
- readonly Rabby: "rabby";
55
- readonly Ledger: "ledger";
56
- readonly BitGet: "BitGet";
57
- readonly OWallet: "owallet";
58
- readonly Phantom: "phantom";
59
- readonly Rainbow: "rainbow";
60
- readonly Turnkey: "turnkey";
61
- readonly Metamask: "metamask";
62
- readonly KeplrEvm: "keplr-evm";
63
- readonly OkxWallet: "okx-wallet";
64
- readonly PrivateKey: "private-key";
65
- readonly TrustWallet: "trust-wallet";
66
- readonly TrezorBip32: "trezor-bip32";
67
- readonly TrezorBip44: "trezor-bip44";
68
- readonly Cosmostation: "cosmostation";
69
- readonly LedgerCosmos: "ledger-cosmos";
70
- readonly LedgerLegacy: "ledger-legacy";
71
- readonly WalletConnect: "wallet-connect";
72
- readonly CosmostationEth: "cosmostation-eth";
73
- };
74
- type Wallet = (typeof Wallet)[keyof typeof Wallet];
75
- declare const MagicProvider: {
76
- readonly Email: "email";
77
- readonly Apple: "apple";
78
- readonly Github: "github";
79
- readonly Google: "google";
80
- readonly Discord: "discord";
81
- readonly Twitter: "twitter";
82
- readonly Facebook: "facebook";
83
- };
84
- type MagicProvider = (typeof MagicProvider)[keyof typeof MagicProvider];
85
- declare const WalletDeviceType: {
86
- readonly Mobile: "mobile";
87
- readonly Other: "other";
88
- readonly Browser: "browser";
89
- readonly Hardware: "hardware";
90
- };
91
- type WalletDeviceType = (typeof WalletDeviceType)[keyof typeof WalletDeviceType];
92
- declare const WalletEventListener: {
93
- readonly AccountChange: "account-change";
94
- readonly ChainIdChange: "chain-id-change";
95
- };
96
- type WalletEventListener = (typeof WalletEventListener)[keyof typeof WalletEventListener];
97
- declare const EvmWalletProviderErrorCode: {
98
- readonly InternalError: -32603;
99
- readonly UserRejectedRequest: 4001;
100
- readonly UnrecognizedChain: 4902;
101
- };
102
- type EvmWalletProviderErrorCode = (typeof EvmWalletProviderErrorCode)[keyof typeof EvmWalletProviderErrorCode];
103
- declare const WalletAction: {
104
- GetChainId: "get-chain-id";
105
- GetAccounts: "get-accounts";
106
- GetNetworkId: "get-network-id";
107
- SignArbitrary: "sign-arbitrary";
108
- SignTransaction: "sign-transaction";
109
- SendTransaction: "send-transaction";
110
- SendEvmTransaction: "send-evm-transaction";
111
- SignEvmTransaction: "sign-evm-transaction";
112
- GetEvmTransactionReceipt: "get-evm-transaction-receipt";
113
- };
114
- //#endregion
115
- //#region src/types/strategy.d.ts
116
- interface StrategyEmitter {
117
- emit(event: string, data?: Record<string, any>): boolean;
118
- }
119
- type onAccountChangeCallback = (account: string | string[]) => void;
120
- type onChainIdChangeCallback = () => void;
121
- type Eip1193Provider = {
122
- request: (args: {
123
- method: string;
124
- params: any[];
125
- }) => Promise<any>;
126
- on: (event: string, listener: (...args: any[]) => void) => void;
127
- removeListener: (event: string, listener: (...args: any[]) => void) => void;
128
- };
129
- type CosmosWalletAbstraction = {
130
- enableGasCheck?(chainId: ChainId): Promise<void> | void;
131
- disableGasCheck?(chainId: ChainId): Promise<void> | void;
132
- signEIP712CosmosTx(args: {
133
- signDoc: StdSignDoc;
134
- eip712: any;
135
- }): Promise<AminoSignResponse>;
136
- };
137
- type MagicMetadata = {
138
- apiKey?: string;
139
- rpcEndpoint?: string;
140
- };
141
- type PrivateKeyMetadata = {
142
- privateKey: string;
143
- };
144
- type WalletConnectMetadata = {
145
- projectId?: string;
146
- };
147
- interface WalletStrategyEvmOptions {
148
- evmChainId: EvmChainId;
149
- rpcUrl?: string;
150
- rpcUrls?: Partial<Record<number, string>>;
151
- }
152
- interface SendTransactionOptions {
153
- address: string;
154
- chainId: ChainId;
155
- txTimeout?: number;
156
- endpoints: {
157
- rest: string;
158
- grpc: string;
159
- tm?: string;
160
- };
161
- }
162
- declare const TurnkeyProvider: {
163
- readonly Sms: "sms";
164
- readonly Apple: "apple";
165
- readonly Email: "email";
166
- readonly Google: "google";
167
- readonly Twitter: "twitter";
168
- };
169
- type TurnkeyProvider = (typeof TurnkeyProvider)[keyof typeof TurnkeyProvider];
170
- type TurnkeyOAuthProvider = typeof TurnkeyProvider.Apple | typeof TurnkeyProvider.Google | typeof TurnkeyProvider.Twitter;
171
- type TurnkeySession = {
172
- sessionType: any;
173
- userId: string;
174
- organizationId: string;
175
- expiry: number;
176
- token: string;
177
- };
178
- interface TurnkeyMetadata {
179
- apiBaseUrl: string;
180
- otpInitPath?: string;
181
- otpVerifyPath?: string;
182
- googleClientId?: string;
183
- oauthLoginPath?: string;
184
- session?: TurnkeySession;
185
- twitterClientId?: string;
186
- apiServerEndpoint: string;
187
- credentialBundle?: string;
188
- googleRedirectUri?: string;
189
- expirationSeconds?: string;
190
- twitterRedirectUri?: string;
191
- oauth2ExchangePath?: string;
192
- defaultOrganizationId: string;
193
- }
194
- interface WalletMetadata {
195
- magic?: MagicMetadata;
196
- turnkey?: Partial<TurnkeyMetadata>;
197
- walletConnect?: WalletConnectMetadata;
198
- privateKey?: PrivateKeyMetadata;
199
- derivationPath?: string;
200
- baseDerivationPath?: string;
201
- }
202
- interface ConcreteWalletStrategyArgs {
203
- chainId: ChainId;
204
- metadata?: WalletMetadata;
205
- emitter?: StrategyEmitter;
206
- }
207
- interface ConcreteEvmWalletStrategyArgs extends ConcreteWalletStrategyArgs {
208
- evmOptions: WalletStrategyEvmOptions;
209
- }
210
- interface ConcreteCosmosWalletStrategyArgs extends ConcreteWalletStrategyArgs {
211
- wallet?: Wallet;
212
- }
213
- interface ConcreteCosmosWalletStrategy {
214
- metadata?: WalletMetadata;
215
- setMetadata?(metadata?: WalletMetadata): void;
216
- /**
217
- * The accounts from the wallet (addresses)
218
- */
219
- getAddresses(args?: unknown): Promise<string[]>;
220
- /**
221
- * The accounts from the wallet with derivation path info (for hardware wallets)
222
- */
223
- getAddressesInfo(args?: unknown): Promise<{
224
- address: string;
225
- derivationPath: string;
226
- baseDerivationPath: string;
227
- }[]>;
228
- /**
229
- * Return the WalletDeviceType connected on the
230
- * wallet provider (extension, mobile, hardware wallet)
231
- */
232
- getWalletDeviceType(): Promise<WalletDeviceType>;
233
- /**
234
- * Get the PubKey from the wallet
235
- * in base64 for Cosmos native wallets
236
- */
237
- getPubKey(address?: string): Promise<string>;
238
- /**
239
- * Perform validations and checks
240
- * for the wallet (if the chain is supported, etc)
241
- */
242
- enable(args?: unknown): Promise<boolean>;
243
- /**
244
- * Sends Cosmos transaction. Returns a transaction hash
245
- * @param transaction should implement TransactionConfig
246
- * @param options
247
- */
248
- sendTransaction(transaction: DirectSignResponse | TxRaw, options: SendTransactionOptions): Promise<TxResponse>;
249
- signCosmosTransaction(transaction: {
250
- txRaw: TxRaw;
251
- chainId: string;
252
- accountNumber: number;
253
- address: string;
254
- }): Promise<DirectSignResponse>;
255
- signAminoTransaction(transaction: {
256
- stdSignDoc: StdSignDoc;
257
- address: string;
258
- }): Promise<AminoSignResponse>;
259
- }
260
- type ConcreteStrategiesArg = { [key in Wallet]?: ConcreteWalletStrategy };
261
- interface WalletStrategyArguments {
262
- chainId: ChainId;
263
- metadata?: WalletMetadata;
264
- evmOptions?: WalletStrategyEvmOptions;
265
- disabledWallets?: Wallet[];
266
- wallet?: Wallet;
267
- strategies: ConcreteStrategiesArg;
268
- }
269
- interface ConcreteWalletStrategy extends Omit<ConcreteCosmosWalletStrategy, 'sendTransaction' | 'isChainIdSupported' | 'signAminoTransaction'> {
270
- /**
271
- * The accounts from the wallet with derivation path info (for hardware wallets)
272
- */
273
- getAddressesInfo(args?: unknown): Promise<{
274
- address: string;
275
- derivationPath: string;
276
- baseDerivationPath: string;
277
- }[]>;
278
- /**
279
- * Sends Cosmos transaction. Returns a transaction hash
280
- * @param transaction should implement TransactionConfig
281
- * @param options
282
- */
283
- sendTransaction(transaction: DirectSignResponse | TxRaw, options: {
284
- address: string;
285
- chainId: ChainId;
286
- txTimeout?: number;
287
- endpoints?: {
288
- rest: string;
289
- grpc: string;
290
- tm?: string;
291
- };
292
- }): Promise<TxResponse>;
293
- /**
294
- * Confirm the address on the wallet
295
- * @param address address
296
- */
297
- getSessionOrConfirm(address?: string): Promise<string>;
298
- /**
299
- * Sends Ethereum transaction. Returns a transaction hash
300
- * @param transaction should implement TransactionConfig
301
- * @param options
302
- */
303
- sendEvmTransaction(transaction: unknown, options: {
304
- address: string;
305
- evmChainId: EvmChainId;
306
- }): Promise<string>;
307
- /**
308
- * Sign a cosmos transaction using the wallet provider
309
- *
310
- * @param transaction
311
- * @param address - injective address
312
- */
313
- signCosmosTransaction(transaction: {
314
- txRaw: TxRaw;
315
- accountNumber: number;
316
- chainId: string;
317
- address: string;
318
- }): Promise<DirectSignResponse>;
319
- /**
320
- * Sign an amino sign doc using the wallet provider
321
- *
322
- * @param transaction
323
- * @param address - injective address
324
- */
325
- signAminoCosmosTransaction(transaction: {
326
- signDoc: StdSignDoc;
327
- address: string;
328
- }): Promise<AminoSignResponse>;
329
- /**
330
- * Sign EIP712 TypedData using the wallet provider
331
- * @param eip712TypedData
332
- * @param address - ethereum address
333
- */
334
- signEip712TypedData(eip712TypedData: string, address: string, options?: {
335
- txTimeout?: number;
336
- }): Promise<string>;
337
- signArbitrary(signer: string, data: string | Uint8Array): Promise<string>;
338
- getEthereumChainId(): Promise<string>;
339
- getEvmTransactionReceipt(txHash: string, evmChainId?: EvmChainId): void;
340
- onAccountChange?(callback: onAccountChangeCallback): Promise<void> | void;
341
- onChainIdChange?(callback: onChainIdChangeCallback): Promise<void> | void;
342
- initStrategy?(): Promise<void> | void;
343
- disconnect?(): Promise<void> | void;
344
- getCosmosWallet?(chainId: ChainId): CosmosWalletAbstraction;
345
- getWalletClient?<T>(): Promise<T>;
346
- getEip1193Provider?(): Promise<Eip1193Provider>;
347
- getOfflineSigner?(chainId: string): Promise<OfflineSigner>;
348
- }
349
- interface WalletStrategy {
350
- strategies: ConcreteStrategiesArg;
351
- wallet: Wallet;
352
- args: WalletStrategyArguments;
353
- metadata?: WalletMetadata;
354
- getWallet(): Wallet;
355
- getWalletClient?<T>(): Promise<T>;
356
- setWallet(wallet: Wallet): Promise<void>;
357
- setMetadata(metadata?: WalletMetadata): void;
358
- getStrategy(): ConcreteWalletStrategy;
359
- getAddresses(args?: unknown): Promise<AccountAddress[]>;
360
- getAddressesInfo(args?: unknown): Promise<{
361
- address: string;
362
- derivationPath: string;
363
- baseDerivationPath: string;
364
- }[]>;
365
- getWalletDeviceType(): Promise<WalletDeviceType>;
366
- getPubKey(address?: string): Promise<string>;
367
- enable(args?: unknown): Promise<boolean>;
368
- enableAndGetAddresses(args?: unknown): Promise<AccountAddress[]>;
369
- getEthereumChainId(): Promise<string>;
370
- getEvmTransactionReceipt(txHash: string, evmChainId?: EvmChainId): Promise<void>;
371
- getSessionOrConfirm(address?: AccountAddress): Promise<string>;
372
- sendTransaction(tx: DirectSignResponse | TxRaw, options: SendTransactionOptions): Promise<TxResponse>;
373
- sendEvmTransaction(tx: any, options: {
374
- address: AccountAddress;
375
- evmChainId: EvmChainId;
376
- }): Promise<string>;
377
- signEip712TypedData(eip712TypedData: string, address: AccountAddress, options?: {
378
- txTimeout?: number;
379
- }): Promise<string>;
380
- signAminoCosmosTransaction(transaction: {
381
- signDoc: StdSignDoc;
382
- address: string;
383
- }): Promise<AminoSignResponse>;
384
- signCosmosTransaction(transaction: {
385
- txRaw: TxRaw;
386
- accountNumber: number;
387
- chainId: string;
388
- address: string;
389
- }): Promise<DirectSignResponse>;
390
- signArbitrary(signer: string, data: string | Uint8Array): Promise<string | void>;
391
- onAccountChange(callback: onAccountChangeCallback): Promise<void>;
392
- onChainIdChange(callback: onChainIdChangeCallback): Promise<void>;
393
- disconnect(): Promise<void>;
394
- getCosmosWallet?(chainId: ChainId): CosmosWalletAbstraction;
395
- getEip1193Provider?(): Promise<Eip1193Provider>;
396
- getOfflineSigner?(chainId: string): Promise<OfflineSigner>;
397
- }
398
- //#endregion
399
- //#region src/types/provider.d.ts
400
- interface BrowserEip1993Provider extends EIP1193Provider {
401
- removeAllListeners(): void;
402
- providers?: BrowserEip1993Provider[];
403
- isTrust: boolean;
404
- isKeplr: boolean;
405
- isRabby: boolean;
406
- isRainbow: boolean;
407
- isPhantom: boolean;
408
- isBitGet?: boolean;
409
- isBitKeep?: boolean;
410
- isMetaMask: boolean;
411
- isOkxWallet: boolean;
412
- isTrustWallet: boolean;
413
- }
414
- interface WindowWithEip1193Provider extends Omit<Window, 'ethereum' | 'keplr'> {
415
- rainbow: BrowserEip1993Provider;
416
- rabby: BrowserEip1993Provider;
417
- ethereum: BrowserEip1993Provider;
418
- okxwallet: BrowserEip1993Provider;
419
- providers: BrowserEip1993Provider[];
420
- trustWallet?: BrowserEip1993Provider;
421
- bitkeep: {
422
- ethereum: BrowserEip1993Provider;
423
- };
424
- phantom?: {
425
- ethereum?: BrowserEip1993Provider;
426
- };
427
- keplr?: {
428
- ethereum?: BrowserEip1993Provider;
429
- };
430
- }
431
- interface EIP6963ProviderInfo {
432
- rdns: string;
433
- uuid: string;
434
- name: string;
435
- icon: string;
436
- }
437
- interface EIP6963ProviderDetail {
438
- info: EIP6963ProviderInfo;
439
- provider: BrowserEip1993Provider;
440
- }
441
- type EIP6963AnnounceProviderEvent = {
442
- detail: EIP6963ProviderDetail;
443
- };
444
- //#endregion
445
8
  //#region src/utils/tx.d.ts
446
9
  declare const createEip712StdSignDoc: ({
447
10
  memo,
@@ -495,14 +58,6 @@ declare const getViemWalletClient: ({
495
58
  }) => WalletClient;
496
59
  declare const getViemPublicClientFromEip1193Provider: (chainId: EvmChainId | number, provider: BrowserEip1993Provider) => PublicClient;
497
60
  //#endregion
498
- //#region src/utils/wallet.d.ts
499
- declare const isEvmWallet: (wallet: Wallet) => boolean;
500
- declare const isCosmosWallet: (wallet: Wallet) => boolean;
501
- declare const isEvmBrowserWallet: (wallet: Wallet) => boolean;
502
- declare const isCosmosBrowserWallet: (wallet: Wallet) => boolean;
503
- declare const isEip712V2OnlyWallet: (wallet: Wallet) => boolean;
504
- declare const isCosmosAminoOnlyWallet: (wallet: Wallet) => boolean;
505
- //#endregion
506
61
  //#region src/utils/cosmos.d.ts
507
62
  declare const createCosmosSignDocFromSignDoc: (signDoc: CosmosTxV1Beta1TxPb.SignDoc) => any;
508
63
  //#endregion
@@ -517,24 +72,4 @@ declare const DEFAULT_BASE_DERIVATION_PATH = "m/44'/60'";
517
72
  declare const DEFAULT_NUM_ADDRESSES_TO_FETCH = 5;
518
73
  declare const DEFAULT_ADDRESS_SEARCH_LIMIT = 100;
519
74
  //#endregion
520
- //#region src/base.d.ts
521
- declare abstract class BaseConcreteStrategy {
522
- protected chainId: ChainId | CosmosChainId;
523
- protected evmChainId?: EvmChainId;
524
- protected listeners: Partial<Record<WalletEventListener, any>>;
525
- metadata?: WalletMetadata;
526
- /**
527
- * Optional emitter passed from parent WalletStrategy.
528
- * When provided, strategies emit events directly on the parent's emitter.
529
- */
530
- protected emitter?: StrategyEmitter;
531
- constructor(args: ConcreteWalletStrategyArgs | ConcreteEvmWalletStrategyArgs | ConcreteCosmosWalletStrategyArgs);
532
- setMetadata(metadata?: WalletMetadata): void;
533
- /**
534
- * Emit an event from this strategy.
535
- * If emitter was provided from parent, events go directly to parent.
536
- */
537
- protected emit(event: WalletStrategyEmitterEventType, data?: Record<string, any>): void;
538
- }
539
- //#endregion
540
- export { BaseConcreteStrategy, BroadcastMode, BrowserEip1993Provider, ConcreteCosmosWalletStrategy, ConcreteCosmosWalletStrategyArgs, ConcreteEvmWalletStrategyArgs, ConcreteStrategiesArg, ConcreteWalletStrategy, ConcreteWalletStrategyArgs, CosmosWalletAbstraction, DEFAULT_ADDRESS_SEARCH_LIMIT, DEFAULT_BASE_DERIVATION_PATH, DEFAULT_NUM_ADDRESSES_TO_FETCH, EIP6963AnnounceProviderEvent, EIP6963ProviderDetail, EIP6963ProviderInfo, Eip1193Provider, EvmWalletProviderErrorCode, GWEI_IN_WEI, MagicMetadata, MagicProvider, PrivateKeyMetadata, SendTransactionOptions, type StdSignDoc, StrategyEmitter, StrategyEventType, TIP_IN_GWEI, TurnkeyMetadata, TurnkeyOAuthProvider, TurnkeyProvider, TurnkeySession, Wallet, WalletAction, WalletConnectMetadata, WalletConnectStrategyEventType, WalletDeviceType, WalletEventListener, WalletMetadata, WalletStrategy, WalletStrategyArguments, WalletStrategyEmitter, WalletStrategyEmitterEventType, WalletStrategyEmitterEvents, WalletStrategyEvmOptions, WindowWithEip1193Provider, createCosmosSignDocFromSignDoc, createEip712StdSignDoc, getEthereumSignerAddress, getEvmChainConfig, getInjectiveSignerAddress, getViemPublicClient, getViemPublicClientFromEip1193Provider, getViemWalletClient, isCosmosAminoOnlyWallet, isCosmosBrowserWallet, isCosmosWallet, isEip712V2OnlyWallet, isEvmBrowserWallet, isEvmWallet, onAccountChangeCallback, onChainIdChangeCallback };
75
+ export { BaseConcreteStrategy, BroadcastMode, BrowserEip1993Provider, ConcreteCosmosWalletStrategy, ConcreteCosmosWalletStrategyArgs, ConcreteEvmWalletStrategyArgs, ConcreteStrategiesArg, ConcreteWalletStrategy, ConcreteWalletStrategyArgs, CosmosWalletAbstraction, DEFAULT_ADDRESS_SEARCH_LIMIT, DEFAULT_BASE_DERIVATION_PATH, DEFAULT_NUM_ADDRESSES_TO_FETCH, EIP6963AnnounceProviderEvent, EIP6963ProviderDetail, EIP6963ProviderInfo, Eip1193Provider, EvmWalletProviderErrorCode, GWEI_IN_WEI, MagicMetadata, MagicProvider, PrivateKeyMetadata, SendTransactionOptions, StdSignDoc, StrategyEmitter, StrategyEventType, TIP_IN_GWEI, TurnkeyMetadata, TurnkeyOAuthProvider, TurnkeyProvider, TurnkeySession, Wallet, WalletAction, WalletConnectMetadata, WalletConnectStrategyEventType, WalletDeviceType, WalletEventListener, WalletMetadata, WalletStrategy, WalletStrategyArguments, WalletStrategyEmitter, WalletStrategyEmitterEventType, WalletStrategyEmitterEvents, WalletStrategyEvmOptions, WindowWithEip1193Provider, createCosmosSignDocFromSignDoc, createEip712StdSignDoc, getEthereumSignerAddress, getEvmChainConfig, getInjectiveSignerAddress, getViemPublicClient, getViemPublicClientFromEip1193Provider, getViemWalletClient, isCosmosAminoOnlyWallet, isCosmosBrowserWallet, isCosmosWallet, isEip712V2OnlyWallet, isEvmBrowserWallet, isEvmWallet, onAccountChangeCallback, onChainIdChangeCallback };
@@ -0,0 +1,20 @@
1
+ const require_base = require('./base-CCDH4BFB.cjs');
2
+
3
+ exports.BaseConcreteStrategy = require_base.BaseConcreteStrategy;
4
+ exports.BroadcastMode = require_base.BroadcastMode;
5
+ exports.EvmWalletProviderErrorCode = require_base.EvmWalletProviderErrorCode;
6
+ exports.MagicProvider = require_base.MagicProvider;
7
+ exports.StrategyEventType = require_base.StrategyEventType;
8
+ exports.TurnkeyProvider = require_base.TurnkeyProvider;
9
+ exports.Wallet = require_base.Wallet;
10
+ exports.WalletAction = require_base.WalletAction;
11
+ exports.WalletConnectStrategyEventType = require_base.WalletConnectStrategyEventType;
12
+ exports.WalletDeviceType = require_base.WalletDeviceType;
13
+ exports.WalletEventListener = require_base.WalletEventListener;
14
+ exports.WalletStrategyEmitterEventType = require_base.WalletStrategyEmitterEventType;
15
+ exports.isCosmosAminoOnlyWallet = require_base.isCosmosAminoOnlyWallet;
16
+ exports.isCosmosBrowserWallet = require_base.isCosmosBrowserWallet;
17
+ exports.isCosmosWallet = require_base.isCosmosWallet;
18
+ exports.isEip712V2OnlyWallet = require_base.isEip712V2OnlyWallet;
19
+ exports.isEvmBrowserWallet = require_base.isEvmBrowserWallet;
20
+ exports.isEvmWallet = require_base.isEvmWallet;
@@ -0,0 +1,2 @@
1
+ import { A as WalletConnectMetadata, B as Wallet, C as SendTransactionOptions, D as TurnkeyOAuthProvider, E as TurnkeyMetadata, F as onAccountChangeCallback, G as WalletConnectStrategyEventType, H as WalletDeviceType, I as onChainIdChangeCallback, J as WalletStrategyEmitterEvents, K as WalletStrategyEmitter, L as BroadcastMode, M as WalletStrategy, N as WalletStrategyArguments, O as TurnkeyProvider, P as WalletStrategyEvmOptions, R as EvmWalletProviderErrorCode, S as PrivateKeyMetadata, T as StrategyEmitter, U as WalletEventListener, V as WalletAction, W as StrategyEventType, _ as ConcreteWalletStrategy, a as isEip712V2OnlyWallet, b as Eip1193Provider, c as BrowserEip1993Provider, d as EIP6963ProviderInfo, f as WindowWithEip1193Provider, g as ConcreteStrategiesArg, h as ConcreteEvmWalletStrategyArgs, i as isCosmosWallet, j as WalletMetadata, k as TurnkeySession, l as EIP6963AnnounceProviderEvent, m as ConcreteCosmosWalletStrategyArgs, n as isCosmosAminoOnlyWallet, o as isEvmBrowserWallet, p as ConcreteCosmosWalletStrategy, q as WalletStrategyEmitterEventType, r as isCosmosBrowserWallet, s as isEvmWallet, t as BaseConcreteStrategy, u as EIP6963ProviderDetail, v as ConcreteWalletStrategyArgs, w as StdSignDoc, x as MagicMetadata, y as CosmosWalletAbstraction, z as MagicProvider } from "./base-BGVbNgzY.cjs";
2
+ export { BaseConcreteStrategy, BroadcastMode, BrowserEip1993Provider, ConcreteCosmosWalletStrategy, ConcreteCosmosWalletStrategyArgs, ConcreteEvmWalletStrategyArgs, ConcreteStrategiesArg, ConcreteWalletStrategy, ConcreteWalletStrategyArgs, CosmosWalletAbstraction, EIP6963AnnounceProviderEvent, EIP6963ProviderDetail, EIP6963ProviderInfo, Eip1193Provider, EvmWalletProviderErrorCode, MagicMetadata, MagicProvider, PrivateKeyMetadata, SendTransactionOptions, StdSignDoc, StrategyEmitter, StrategyEventType, TurnkeyMetadata, TurnkeyOAuthProvider, TurnkeyProvider, TurnkeySession, Wallet, WalletAction, WalletConnectMetadata, WalletConnectStrategyEventType, WalletDeviceType, WalletEventListener, WalletMetadata, WalletStrategy, WalletStrategyArguments, WalletStrategyEmitter, WalletStrategyEmitterEventType, WalletStrategyEmitterEvents, WalletStrategyEvmOptions, WindowWithEip1193Provider, isCosmosAminoOnlyWallet, isCosmosBrowserWallet, isCosmosWallet, isEip712V2OnlyWallet, isEvmBrowserWallet, isEvmWallet, onAccountChangeCallback, onChainIdChangeCallback };