-
Notifications
You must be signed in to change notification settings - Fork 50
feat: added TON support + performance improvements #240
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces comprehensive TON blockchain support to the React Native CLI wallet, including wallet creation, transaction signing, and data signing capabilities. The implementation follows established patterns for EVM and SUI support while refactoring blockchain configurations for better modularity.
- Added TON wallet integration with keypair generation, message signing, and transaction handling
- Refactored blockchain network definitions into dedicated constant files for improved organization
- Updated dependency versions and added TON-specific packages with necessary patches
Reviewed Changes
Copilot reviewed 33 out of 38 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
src/utils/TypesUtil.ts |
Simplified Chain type to use chainId/namespace instead of legacy structure |
src/utils/TonWalletUtil.ts |
Added TON wallet creation and management utilities |
src/utils/TonRequestHandlerUtil.ts |
Implemented TON request handling for signing and transactions |
src/utils/PresetsUtil.ts |
Refactored to use modular chain constants and updated chain data lookup |
src/lib/TonLib.ts |
Core TON blockchain library with signing and transaction capabilities |
src/constants/ |
New modular chain configuration files for TON, SUI, and EIP155 |
src/modals/SessionTon*.tsx |
Added TON-specific modal components for user interactions |
src/hooks/useWalletKitEventsManager.ts |
Integrated TON method handling into event system |
| Various modal files | Added error handling and improved chain rendering safety |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
…mera permission handlers
…cache in android action
This pull request introduces support for the TON blockchain to the React Native CLI wallet and refactors the way blockchain networks and signing methods are defined and managed. It also updates several dependencies, applies important patches for cryptographic primitives, and adds new modal components for TON-specific actions. The changes are grouped below by theme.
TON Blockchain Integration:
Ton.tsfile.useInitializeWalletKit.ts. [1] [2]ton_sendMessage,ton_signData) in the modal system and event manager. [1] [2] [3]Blockchain Network Refactoring:
Eip155.ts,Sui.ts), improving modularity and maintainability. [1] [2]Dependency Updates and Patches:
@reown/walletkit,@walletconnect/react-native-compat,ethers, and added TON-related packages) inpackage.json.@ethersproject/pbkdf2and added a patch for@ton/crypto-primitivesandbip39to improve compatibility and use native crypto implementations. [1] [2] [3]Configuration and Miscellaneous:
.env.examplefor future TON network interactions.react-native-permissionsand replaced with built-in permission handlers from camera packageThese changes lay the groundwork for TON support and improve the modularity and maintainability of blockchain integrations in the wallet.