Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(wallet-connect): enhance transaction approval and decoding logic #1001

Merged
merged 4 commits into from
Jan 23, 2025

Conversation

ArturHoncharuk
Copy link
Collaborator

No description provided.

…ogic

- Updated `DetailsRowItem` to accept a custom style prop and applied a consistent row item style.
- Modified `WalletConnectTxApproval` to ensure the address is in lowercase for consistency.
- Added handling for the 'stake' function in `useDecodeCallbackData`, improving transaction decoding capabilities.
- Updated `approval-abi` to include the 'stake' function, expanding the contract's functionality.
…nctionality

- Updated `WalletConnectTxApproval` to include handling for the 'unstake' function, improving transaction approval logic.
- Introduced `useMemo` hooks for `tokenSymbol` and `amountSymbol` to optimize rendering based on transaction type.
- Modified `useDecodeCallbackData` to support 'unstake' in argument structure handling.
- Expanded `approval-abi` to define the 'unstake' function, enhancing contract capabilities.
- Added `onDismissWalletConnectBottomSheet` to improve bottom sheet management.
- Introduced `onRequestExpire` callback to handle session expiration events, ensuring proper state reset.
- Updated event listeners to include handling for `PROPOSAL_EXPIRE` and `SESSION_REQUEST_EXPIRE`, enhancing user experience during wallet interactions.
…ogic

- Updated `useConnectionsController` to manage active sessions based on wallet address and app focus, improving session handling.
- Added new session types `SessionRequestExpire` and `SessionProposalExpire` to `wallet-kit.types.ts` for better event handling.
- Refactored `validateAndFilterSessions` to improve session validation with timeout handling and enhanced error logging, ensuring robust session management.
@ArturHoncharuk ArturHoncharuk merged commit dd23ed0 into dev Jan 23, 2025
1 of 2 checks passed
@ArturHoncharuk ArturHoncharuk deleted the AMB-5336 branch January 23, 2025 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants