Update dependencies and enhance App component functionality

- Added new dependencies: @polkadot/util and @gear-js/api to package.json and example/package.json.
- Implemented a test function in App component to interact with GearApi for balance transfer.
- Updated transaction signing logic to support both raw and payload types.
- Refactored Wallet class to improve socket connection handling and transaction management.
- Enhanced WalletStore by removing unnecessary listener setup code.
This commit is contained in:
odiinnn committed 2025-11-05 21:36:10 +03:00
1 parent deae91a3e6
commit 4b7a39d332
12 files changed
+1347 -204

No files matched your search

+3 -9
View File
@@ -7,12 +7,6 @@ declare global {
export type WalletStorage = Storage;
export type InjectionConfig = {
callbackUrl: string;
connectTimeout?: number;
closeAppOnActions?: boolean;
}
export type WebApp = typeof WebAppConst;
export interface ConnectRequest {
method: 'connect';
@@ -20,10 +14,10 @@ export interface ConnectRequest {
}
export interface SignTransactionRequest {
method: 'signTransaction';
method: 'sT';
id: number;
tx: string;
wallet: string;
tx: `p:${string}` | `bytes:${string}`;
wallet?: string;
callback: string;
}