@rash2x/bridge-widget 0.5.0 → 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-BsVKYtLN.cjs → index-C0llk2Pm.cjs} +20634 -20661
- package/dist/index-C0llk2Pm.cjs.map +1 -0
- package/dist/{index-CNQIX3lo.js → index-CwCBOFR2.js} +2 -2
- package/dist/{index-CNQIX3lo.js.map → index-CwCBOFR2.js.map} +1 -1
- package/dist/{index-Cg_MPp5L.cjs → index-DedRamsD.cjs} +2 -2
- package/dist/{index-Cg_MPp5L.cjs.map → index-DedRamsD.cjs.map} +1 -1
- package/dist/{index-C4YkGAHm.js → index-NQh101e3.js} +20675 -20702
- package/dist/index-NQh101e3.js.map +1 -0
- package/dist/index.d.ts +1 -39
- package/package.json +1 -1
- package/dist/index-BsVKYtLN.cjs.map +0 -1
- package/dist/index-C4YkGAHm.js.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,7 +207,7 @@ export declare interface EvaaBridgeProps {
|
|
|
208
207
|
className?: string;
|
|
209
208
|
tonClient?: TonClient;
|
|
210
209
|
tonApiKey?: string;
|
|
211
|
-
|
|
210
|
+
walletConnectProjectId?: string;
|
|
212
211
|
defaultLanguage?: string;
|
|
213
212
|
transactionIcons?: TransactionIcons;
|
|
214
213
|
onInitialized?: () => void;
|
|
@@ -634,18 +633,6 @@ declare interface TronMonitorReceipt {
|
|
|
634
633
|
};
|
|
635
634
|
}
|
|
636
635
|
|
|
637
|
-
declare interface TronWalletConnectConfig {
|
|
638
|
-
projectId: string;
|
|
639
|
-
metadata?: {
|
|
640
|
-
name: string;
|
|
641
|
-
description: string;
|
|
642
|
-
url: string;
|
|
643
|
-
icons: string[];
|
|
644
|
-
};
|
|
645
|
-
themeMode?: "light" | "dark";
|
|
646
|
-
themeVariables?: Record<string, string>;
|
|
647
|
-
}
|
|
648
|
-
|
|
649
636
|
/**
|
|
650
637
|
* Обрезает число до указанного количества десятичных знаков без округления
|
|
651
638
|
* Например: truncateToDecimals(3.389, 2) = "3.38" (не "3.39")
|
|
@@ -701,24 +688,6 @@ export declare const useTokensStore: UseBoundStore<StoreApi<TokensStoreType>>;
|
|
|
701
688
|
|
|
702
689
|
export declare const useTransactionStore: UseBoundStore<StoreApi<Store>>;
|
|
703
690
|
|
|
704
|
-
export declare function useTronWalletConnect(options: UseTronWalletConnectOptions): UseTronWalletConnectReturn;
|
|
705
|
-
|
|
706
|
-
export declare interface UseTronWalletConnectOptions {
|
|
707
|
-
projectId: string;
|
|
708
|
-
metadata?: WalletMetadata;
|
|
709
|
-
themeMode?: "light" | "dark";
|
|
710
|
-
themeVariables?: Record<string, string>;
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
export declare interface UseTronWalletConnectReturn {
|
|
714
|
-
address: string | null;
|
|
715
|
-
isConnected: boolean;
|
|
716
|
-
isConnecting: boolean;
|
|
717
|
-
connect: () => Promise<void>;
|
|
718
|
-
disconnect: () => Promise<void>;
|
|
719
|
-
signTransaction: (transaction: Types.Transaction) => Promise<Types.Transaction>;
|
|
720
|
-
}
|
|
721
|
-
|
|
722
691
|
export declare interface WalletBalance {
|
|
723
692
|
balance: number;
|
|
724
693
|
address: string;
|
|
@@ -728,11 +697,4 @@ export declare type WalletBalances = Record<string, WalletBalance>;
|
|
|
728
697
|
|
|
729
698
|
export declare type WalletKind = "ton" | "evm" | "tron" | null;
|
|
730
699
|
|
|
731
|
-
export declare interface WalletMetadata {
|
|
732
|
-
name: string;
|
|
733
|
-
description: string;
|
|
734
|
-
url: string;
|
|
735
|
-
icons: string[];
|
|
736
|
-
}
|
|
737
|
-
|
|
738
700
|
export { }
|
package/package.json
CHANGED