@enclave-hq/wallet-sdk 1.2.4 → 1.2.7

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.
@@ -0,0 +1,36 @@
1
+ import { WalletConnectWallet } from '@tronweb3/walletconnect-tron';
2
+ import { e as WalletAdapter, b as WalletType, A as Account, f as ContractReadParams, g as ContractWriteParams, T as TransactionReceipt } from './wallet-adapter-DRd0xm3N.mjs';
3
+ import 'eventemitter3';
4
+ import '@enclave-hq/chain-utils';
5
+
6
+ declare class WalletConnectTronAdapter extends WalletAdapter {
7
+ readonly type = WalletType.WALLETCONNECT_TRON;
8
+ readonly chainType = ChainType.TRON;
9
+ readonly name = "WalletConnect (Tron)";
10
+ readonly icon = "https://avatars.githubusercontent.com/u/37784886";
11
+ private wallet;
12
+ private projectId;
13
+ private currentAddress;
14
+ private static readonly TRON_MAINNET_CHAIN_ID;
15
+ private static walletInstance;
16
+ private static walletProjectId;
17
+ constructor(projectId: string);
18
+ isAvailable(): Promise<boolean>;
19
+ private isTelegramMiniApp;
20
+ restoreSession(chainId?: number | number[]): Promise<Account | null>;
21
+ private initializeWallet;
22
+ connect(chainId?: number | number[]): Promise<Account>;
23
+ disconnect(): Promise<void>;
24
+ signMessage(message: string): Promise<string>;
25
+ signTransaction(transaction: any): Promise<string>;
26
+ readContract<T = any>(_params: ContractReadParams): Promise<T>;
27
+ writeContract(_params: ContractWriteParams): Promise<string>;
28
+ estimateGas(_params: ContractWriteParams): Promise<bigint>;
29
+ waitForTransaction(_txHash: string, _confirmations?: number): Promise<TransactionReceipt>;
30
+ private setupEventListeners;
31
+ private removeEventListeners;
32
+ getProvider(): WalletConnectWallet | null;
33
+ static clearWalletInstance(): void;
34
+ }
35
+
36
+ export { WalletConnectTronAdapter };