@rash2x/bridge-widget 0.4.4 → 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/README.md +1 -1
- package/dist/evaa-bridge.cjs +55 -11844
- package/dist/evaa-bridge.cjs.map +1 -1
- package/dist/evaa-bridge.mjs +55 -11844
- package/dist/evaa-bridge.mjs.map +1 -1
- package/dist/index-9pqdx6qK.cjs +5478 -0
- package/dist/index-9pqdx6qK.cjs.map +1 -0
- package/dist/index-Byi5_0tY.js +5480 -0
- package/dist/index-Byi5_0tY.js.map +1 -0
- package/dist/index-CqOdLtGY.cjs +26095 -0
- package/dist/index-CqOdLtGY.cjs.map +1 -0
- package/dist/index-D8wi96xC.js +26096 -0
- package/dist/index-D8wi96xC.js.map +1 -0
- package/dist/index.d.ts +26 -0
- package/package.json +11 -1
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 { }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rash2x/bridge-widget",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"description": "Cross-chain bridge widget powered by Stargate Protocol with multi-chain wallet support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/evaa-bridge.cjs",
|
|
@@ -56,6 +56,8 @@
|
|
|
56
56
|
"@tonconnect/ui-react": "^2.0.0",
|
|
57
57
|
"@tronweb3/tronwallet-adapter-react-hooks": "^1.0.0",
|
|
58
58
|
"@tronweb3/tronwallet-adapters": "^1.0.0",
|
|
59
|
+
"@walletconnect/modal": "^2.0.0",
|
|
60
|
+
"@walletconnect/universal-provider": "^2.0.0",
|
|
59
61
|
"react": "^19.0.0",
|
|
60
62
|
"react-dom": "^19.0.0",
|
|
61
63
|
"tronweb": "^6.0.0",
|
|
@@ -89,6 +91,12 @@
|
|
|
89
91
|
},
|
|
90
92
|
"@tronweb3/tronwallet-adapters": {
|
|
91
93
|
"optional": true
|
|
94
|
+
},
|
|
95
|
+
"@walletconnect/modal": {
|
|
96
|
+
"optional": true
|
|
97
|
+
},
|
|
98
|
+
"@walletconnect/universal-provider": {
|
|
99
|
+
"optional": true
|
|
92
100
|
}
|
|
93
101
|
},
|
|
94
102
|
"overrides": {
|
|
@@ -135,6 +143,8 @@
|
|
|
135
143
|
"@types/react": "^19.0.0",
|
|
136
144
|
"@types/react-dom": "^19.0.0",
|
|
137
145
|
"@vitejs/plugin-react": "^5.0.0",
|
|
146
|
+
"@walletconnect/modal": "^2.7.0",
|
|
147
|
+
"@walletconnect/universal-provider": "^2.23.0",
|
|
138
148
|
"ajv": "^8.17.1",
|
|
139
149
|
"buffer": "^6.0.3",
|
|
140
150
|
"eslint": "^9.30.1",
|