@rash2x/bridge-widget 0.4.3 → 0.4.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
@@ -4,6 +4,7 @@ import { PublicClient } from 'viem';
4
4
  import { StoreApi } from 'zustand';
5
5
  import { TonClient } from '@ton/ton';
6
6
  import { TronWeb } from 'tronweb';
7
+ import { Types } from 'tronweb';
7
8
  import { UseBoundStore } from 'zustand';
8
9
 
9
10
  /**
@@ -687,6 +688,24 @@ export declare const useTokensStore: UseBoundStore<StoreApi<TokensStoreType>>;
687
688
 
688
689
  export declare const useTransactionStore: UseBoundStore<StoreApi<Store>>;
689
690
 
691
+ export declare function useTronWalletConnect(options: UseTronWalletConnectOptions): UseTronWalletConnectReturn;
692
+
693
+ export declare interface UseTronWalletConnectOptions {
694
+ projectId: string;
695
+ metadata?: WalletMetadata;
696
+ themeMode?: "light" | "dark";
697
+ themeVariables?: Record<string, string>;
698
+ }
699
+
700
+ export declare interface UseTronWalletConnectReturn {
701
+ address: string | null;
702
+ isConnected: boolean;
703
+ isConnecting: boolean;
704
+ connect: () => Promise<void>;
705
+ disconnect: () => Promise<void>;
706
+ signTransaction: (transaction: Types.Transaction) => Promise<Types.Transaction>;
707
+ }
708
+
690
709
  export declare interface WalletBalance {
691
710
  balance: number;
692
711
  address: string;
@@ -696,4 +715,11 @@ export declare type WalletBalances = Record<string, WalletBalance>;
696
715
 
697
716
  export declare type WalletKind = "ton" | "evm" | "tron" | null;
698
717
 
718
+ export declare interface WalletMetadata {
719
+ name: string;
720
+ description: string;
721
+ url: string;
722
+ icons: string[];
723
+ }
724
+
699
725
  export { }