@rash2x/bridge-widget 0.4.6 → 0.5.1
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/evaa-bridge.cjs +1 -2
- package/dist/evaa-bridge.cjs.map +1 -1
- package/dist/evaa-bridge.mjs +43 -44
- package/dist/{index-kqLPlOw1.cjs → index-C0llk2Pm.cjs} +20658 -20602
- package/dist/index-C0llk2Pm.cjs.map +1 -0
- package/dist/{index-DqeErSqM.js → index-CwCBOFR2.js} +2 -2
- package/dist/{index-DqeErSqM.js.map → index-CwCBOFR2.js.map} +1 -1
- package/dist/{index-uh5JIOC8.cjs → index-DedRamsD.cjs} +2 -2
- package/dist/{index-uh5JIOC8.cjs.map → index-DedRamsD.cjs.map} +1 -1
- package/dist/{index-BG-E-qt2.js → index-NQh101e3.js} +20699 -20643
- package/dist/index-NQh101e3.js.map +1 -0
- package/dist/index.d.ts +1 -26
- package/package.json +1 -1
- package/dist/index-BG-E-qt2.js.map +0 -1
- package/dist/index-kqLPlOw1.cjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ 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';
|
|
8
7
|
import { UseBoundStore } from 'zustand';
|
|
9
8
|
|
|
10
9
|
/**
|
|
@@ -208,6 +207,7 @@ export declare interface EvaaBridgeProps {
|
|
|
208
207
|
className?: string;
|
|
209
208
|
tonClient?: TonClient;
|
|
210
209
|
tonApiKey?: string;
|
|
210
|
+
walletConnectProjectId?: string;
|
|
211
211
|
defaultLanguage?: string;
|
|
212
212
|
transactionIcons?: TransactionIcons;
|
|
213
213
|
onInitialized?: () => void;
|
|
@@ -688,24 +688,6 @@ export declare const useTokensStore: UseBoundStore<StoreApi<TokensStoreType>>;
|
|
|
688
688
|
|
|
689
689
|
export declare const useTransactionStore: UseBoundStore<StoreApi<Store>>;
|
|
690
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
|
-
|
|
709
691
|
export declare interface WalletBalance {
|
|
710
692
|
balance: number;
|
|
711
693
|
address: string;
|
|
@@ -715,11 +697,4 @@ export declare type WalletBalances = Record<string, WalletBalance>;
|
|
|
715
697
|
|
|
716
698
|
export declare type WalletKind = "ton" | "evm" | "tron" | null;
|
|
717
699
|
|
|
718
|
-
export declare interface WalletMetadata {
|
|
719
|
-
name: string;
|
|
720
|
-
description: string;
|
|
721
|
-
url: string;
|
|
722
|
-
icons: string[];
|
|
723
|
-
}
|
|
724
|
-
|
|
725
700
|
export { }
|
package/package.json
CHANGED