Commit Graph
5 Commits
Author SHA1 Message Date
odiinnn 4b7a39d332 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.
2025-11-05 21:36:10 +03:00
odiinnn 158eb100fa Add closeAppOnActions option to InjectionConfig and Wallet class
- Introduced closeAppOnActions property in InjectionConfig to control app closure behavior.
- Updated defaultInjectionConfig to set closeAppOnActions to true.
- Modified Wallet class to utilize closeAppOnActions when handling actions, ensuring the app closes as intended based on this configuration.
2025-09-30 18:38:11 +03:00
odiinnn e2c815caca Remove isDev property from InjectionConfig and defaultInjectionConfig, simplifying wallet configuration. Update Wallet class to reflect these changes, ensuring consistent handling of callbackUrl and connectTimeout. 2025-09-17 12:40:02 +03:00
odiinnn 38574daace Refactor wallet storage and subscription handling
- Updated WalletStore to manage localStorage and handle storage events more effectively.
- Introduced mockAccountsSubscribe in constants for better account subscription handling.
- Removed unnecessary storage subscription from InjectionConfig.
- Enhanced Wallet class to utilize new account and metadata management methods.
2025-09-01 10:42:55 +03:00
odiinnn a21ea39c36 Initialize TypeScript library for Telegram Web App wallet integration
- Added configuration files: .eslintrc.js, .gitignore, .npmrc, .prettierrc, and multiple tsconfig files for different module systems.
- Created package.json with dependencies and scripts for building, testing, and publishing.
- Implemented core functionality in src/ directory, including wallet management, encryption, and storage handling.
- Added README.md for documentation on installation, usage, and development setup.
- Introduced initial types and constants for better type safety and code organization.
2025-08-28 13:13:57 +03:00