26 Commits
Author SHA1 Message Date
odiinnn 772e5831c6 1.1.0 2025-11-07 13:56:20 +03:00
odiinnn a1aadf8fbc Update transaction details and enhance logging in App component
- Changed the recipient address in the balance transfer transaction.
- Added logging for the result of the transaction in a human-readable format.
2025-11-07 13:55:58 +03:00
odiinnn 54c2c2141f 1.0.11 2025-11-05 21:44:23 +03:00
odiinnn 381c1dfd8b Add data fetching functionality to API
- Introduced a new `getData` function to fetch data from the API for a given connection ID.
- Added `DataResponse` interface to define the structure of the response from the `/data/{id}` endpoint.
- Updated `index.ts` to export the new `getData` function and `DataResponse` type for external use.
2025-11-05 21:44:17 +03:00
odiinnn fe69920c76 1.0.10 2025-11-05 21:37:54 +03:00
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 deae91a3e6 1.0.9 2025-10-14 11:53:56 +03:00
odiinnn ed0637d08e Update varanWalletUrl format and add logging for request encoding
- Changed the varanWalletUrl to use the correct Telegram bot URL format.
- Added console logging for the encoded request and bot URL to assist with debugging.
2025-10-14 11:50:39 +03:00
odiinnn b95b5ab914 1.0.8 2025-10-06 09:46:08 +03:00
odiinnn 13eea0bfad Add transaction signing functionality to App component
- Introduced a new button to sign transactions, allowing users to generate a signature for a predefined raw transaction.
- Updated state management to handle the transaction signature and display it in the UI.
- Enhanced connection logic to ensure the user's address is retrieved before signing.
- Modified the WalletStore to improve transaction status handling during updates.
2025-10-06 09:45:39 +03:00
odiinnn 435ccbb3eb Update repository URLs in package.json to reflect new project structure
- Changed repository, bugs, and homepage URLs from the old path to the new path under the 'pb' namespace.
2025-09-30 18:41:33 +03:00
odiinnn ef785f9c29 1.0.7 2025-09-30 18:39:03 +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 f46a4418c9 Add disconnect functionality to App component
- Introduced a disconnect button that removes the wallet from localStorage and reloads the page when clicked.
- Updated the rendering logic to conditionally display the connect and disconnect buttons based on the connection state.
2025-09-30 18:34:31 +03:00
odiinnn 8d69cd3d3f 1.0.6 2025-09-23 20:38:15 +03:00
odiinnn b2d3679f87 Initialize example project with React, TypeScript, and Vite
- Added example directory with a minimal setup for a React application using Vite.
- Included essential configuration files: tsconfig.json, tsconfig.app.json, tsconfig.node.json, and vite.config.ts.
- Implemented basic components and styles in src/ directory, including App.tsx and App.css.
- Created README.md for documentation on project setup and usage.
- Introduced .gitignore and ESLint configuration for better development practices.
2025-09-23 20:36:21 +03:00
odiinnn 8f003baee2 1.0.5 2025-09-17 12:40:07 +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 42bbb746a1 1.0.4 2025-09-01 10:48:55 +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 1966988769 1.0.3 2025-09-01 09:43:01 +03:00
odiinnn 267d56cee1 Refactor callback URL handling in injectVaranWallet function
- Changed callbackUrl in defaultInjectionConfig to an empty string.
- Updated injectVaranWallet to throw an error if callbackUrl is not provided in the config, ensuring proper error handling.
2025-09-01 09:42:54 +03:00
odiinnn 06f4b5c82f 1.0.2 2025-08-28 13:20:38 +03:00
odiinnn f622b17b69 Update prepublishOnly script in package.json to remove test command 2025-08-28 13:20:28 +03:00
odiinnn 117936353c 1.0.1 2025-08-28 13:19:07 +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