Commit Graph

139 Commits

Author SHA1 Message Date
bohd4nx f7225b9d16 chore: update GitHub Actions to use latest versions of checkout and setup-python; add icon.svg 2026-07-23 00:28:48 +01:00
bohd4nx 27ce28fd32 fix: correct regex pattern in get_fragment_hash function to properly escape backslashes 2026-07-06 11:27:10 +03:00
bohd4nx b11b9f299b fix: correct regex pattern in get_fragment_hash function to properly match fragment hash 2026-07-05 16:47:26 +03:00
bohd4nx 0a361c8c3a chore: add CONTRIBUTING and SECURITY guidelines to improve project documentation 2026-07-05 16:25:23 +03:00
bohd4nx f46551c905 Refactor: remove httpx from mypy overrides in pyproject.toml 2026-07-05 16:18:40 +03:00
bohd4nx 2bd8cc177a chore: update version to 2026.3.3 and dependencies; improve string formatting in transport functions 2026-07-05 16:16:14 +03:00
bohd4nx fd31342d03 Refactor: Replace httpx with curl-cffi for HTTP requests and update dependencies 2026-07-05 16:13:16 +03:00
bohd4nx d78be012a3 chore: remove author credit from README footer 2026-06-27 02:46:41 +03:00
bohd4nx ef831d12a0 chore: update Python version to 3.11 in CI and project files; remove outdated CONTRIBUTING and SECURITY documents 2026-06-27 02:25:09 +03:00
bohd4nx 4539dc9803 Refactor tests: Add error handling tests for API provider and recharge flows 2026-06-16 01:49:11 +03:00
bohd4nx a9663d0b08 chore: update setup-uv action to v8.2.0 and update changelog date 2026-06-16 01:41:03 +03:00
bohd4nx 228fbfcd1c Refactor tonapi module: Move account and transaction logic to services
- Moved account-related functions and classes from `pyfragment.domains.tonapi.account` to `pyfragment.services.tonapi.account`.
- Moved transaction-related functions and classes from `pyfragment.domains.tonapi.transaction` to `pyfragment.services.tonapi.transaction`.
- Updated imports across the codebase to reflect the new structure.
- Removed unused `tonapi` module files and cleaned up related code.
- Introduced `ApiProvider` enum to manage API provider types.
- Added validation functions for cookies and wallet versions in a new `validation.py` module.
2026-06-16 01:37:26 +03:00
bohd4nx dc9661134d Refactor cookie handling and service structure
- Removed the old CookieResult model from pyfragment.core.models and created a new one in pyfragment.services.cookies.models.
- Implemented get_cookies_from_browser function in pyfragment.services.cookies.service to extract cookies directly from supported browsers.
- Updated imports across various modules to reflect the new structure and removed unused imports.
- Cleaned up models in ads, anonymous_numbers, giveaways, marketplace, and purchases domains by removing unnecessary __all__ declarations.
- Added new example scripts for cookie extraction and various purchase functionalities.
- Consolidated constants into a new pyfragment.core.constants module for better organization.
2026-06-16 01:19:33 +03:00
bohd4nx 9f11ccb3ee Refactor pyfragment structure: Move models to domain-specific modules
- Moved PaymentMethod and other enums from models to enums.py for better organization.
- Refactored imports in various files to reflect the new structure.
- Created new model files for ads, anonymous numbers, giveaways, marketplace, purchases, and tonapi.
- Removed the old models.py file to clean up the codebase.
- Updated all relevant imports in the codebase to use the new model locations.
2026-06-16 01:02:28 +03:00
bohd4nx 8f865f4911 Refactor for GRAM (ex TON) integration
- Updated imports and references from TON to GRAM across multiple modules.
- Renamed functions and variables to reflect the change from TON to GRAM.
- Adjusted validation checks for top-up and recharge amounts to use GRAM limits.
- Modified error messages and exceptions to indicate GRAM instead of TON.
- Updated tests to ensure they reflect the new GRAM terminology and functionality.
- Introduced new constants for GRAM-related configurations.
2026-06-16 00:47:49 +03:00
bohd4nx 3481769757 feat: add Highload wallet versions and update mypy exclusion patterns 2026-06-05 02:04:44 +03:00
bohd4nx b85b34f2b1 feat: update changelog for new payment methods; add UserNotFoundError handling in purchase flows 2026-05-30 00:17:06 +03:00
bohd4nx d01c45d85b feat: update version to 2026.3.2; enhance changelog with new payment methods and updated client documentation 2026-05-29 23:16:19 +03:00
bohd4nx 695430744a feat: update payment method options and validation across purchase and giveaway examples; add AlreadySubscribedError exception handling 2026-05-29 23:14:59 +03:00
bohd4nx afaa42776b feat: update payment method handling and validation across giveaway examples; adjust limits for winners and amounts 2026-05-29 22:59:41 +03:00
bohd4nx ed54d1f1a0 feat: enhance FragmentClient to support custom headers; update limits for TON topup and stars purchases 2026-05-29 22:51:27 +03:00
bohd4nx 6aa7037380 feat: update payment method defaults to use PaymentMethod enum; refactor related validation checks 2026-05-29 22:31:30 +03:00
bohd4nx 5124af17ef feat: reorganize constants into separate modules; update validation logic for mnemonic and API key lengths 2026-05-29 22:22:09 +03:00
bohd4nx 66bcd22198 feat: update constants and validation for stars and payment methods; refactor enums for clarity 2026-05-29 22:11:03 +03:00
bohd4nx 5c472b68a2 docs: update changelog for version 2026.3.1 with new features, changes, fixes, and removals 2026-05-29 01:53:57 +03:00
bohd4nx b2d06a7f22 feat: add support for Python 3.13 and 3.14 in classifiers; update mypy overrides 2026-05-29 01:50:24 +03:00
bohd4nx 34ee31e299 style: format YAML files for consistency and remove unused environment variables 2026-05-29 01:43:05 +03:00
bohd4nx c1ff78c484 docs: clarify seed parameter description in FragmentClient 2026-05-29 01:37:49 +03:00
bohd4nx f8ad801e0c feat: enhance documentation with contributing guidelines and security policy
refactor: update README configuration parameters and add error handling section
refactor: streamline tonapi imports and add WalletVersion to __all__
chore: update project metadata in pyproject.toml
2026-05-29 01:27:29 +03:00
bohd4nx 6cb6e3fe05 refactor: remove unused transfer functions and streamline imports in wallet and models 2026-05-29 01:17:57 +03:00
bohd4nx d4e3d3491b chore: bump version to 2026.3.1 in pyproject.toml 2026-05-29 01:04:51 +03:00
bohd4nx 4a7131acdb refactor: update patch targets in test cases to use domains.base module 2026-05-29 01:04:51 +03:00
bohd4nx 546bcb337c feat: implement logging throughout the application and enhance error handling 2026-05-29 01:04:51 +03:00
bohd4nx e9dd706fa6 refactor: add documentation link to README and pyproject.toml 2026-05-21 17:16:19 +03:00
bohd4nx f8ac7f9594 refactor: streamline rookiepy import and enhance module loading 2026-05-21 00:29:52 +03:00
bohd4nx 3f5e0bc03f chore: update version to 2026.3.0 and enhance changelog with recent changes 2026-05-21 00:23:25 +03:00
bohd4nx 92384b96f0 refactor: remove unused import of get_cookies_from_browser across multiple example scripts 2026-05-21 00:21:41 +03:00
bohd4nx 516e69f820 refactor: improve exception messages and enhance CookieResult representation 2026-05-20 23:50:03 +03:00
bohd4nx 2a6c5ef1f9 refactor: reorganize tonapi module and update imports for account management 2026-05-20 23:45:27 +03:00
bohd4nx 01a5befd87 Refactor wallet transaction handling and introduce tonapi module
- Removed wallet transaction and transfer logic from the wallet domain.
- Introduced a new tonapi module to handle transactions and balance checks.
- Updated tests to reflect the new structure and ensure functionality remains intact.
- Added functionality for sending TON and USDT transfers through the tonapi module.
- Improved error handling and validation for payment balances.
- Cleaned up and organized imports across the codebase.
2026-05-20 23:42:24 +03:00
bohd4nx ae164d4fe7 feat: Implement marketplace and purchases services
- Added MarketplaceService for searching usernames, numbers, and gifts.
- Introduced PurchasesService for purchasing stars and premium subscriptions.
- Created WalletService for wallet operations including balance checks and top-ups.
- Developed transaction handling for TON and USDT transfers.
- Added models for payments, marketplace results, and wallet information.
- Implemented error handling for various operations including wallet and transaction errors.
- Established domain structure for purchases, marketplace, and wallet functionalities.
2026-05-20 23:33:01 +03:00
bohd4nx e7dc0e051e feat: update README and pyproject.toml to clarify browser dependency installation 2026-05-20 22:55:18 +03:00
bohd4nx 363e0719ab Bump version to 2026.2.3 and refactor wallet utilities
- Updated version in pyproject.toml to 2026.2.3.
- Refactored wallet utilities:
  - Moved `clean_decode` and `process_transaction` to `transaction.py`.
  - Created `balance.py` for balance-related functions.
  - Created `info.py` for wallet information retrieval.
  - Created `transfer.py` for sending TON and USDT transfers.
- Updated tests to reflect new module structure and imports.
- Added new API utility functions for handling Fragment API requests.
2026-05-12 02:01:15 +03:00
bohd4nx b67415bcc2 chore: remove redundant reference to examples directory in README 2026-05-11 13:21:18 +03:00
bohd4nx 5df95bea29 chore: update version to 2026.2.2 and modify changelog for release 2026-05-11 13:19:56 +03:00
bohd4nx 7412448f9c feat: enhance payment processing with minimum balance checks and update documentation 2026-05-11 13:11:28 +03:00
bohd4nx 6dd9dcb5d4 feat: update wallet handling to support separate TON and USDT balances
- Refactor `get_wallet()` to return `ton_balance` and `usdt_balance` in `WalletInfo`.
- Update transaction processing to validate balances for both TON and USDT payment methods.
- Introduce `parse_required_payment_amount` utility to extract payment amounts from responses.
- Modify tests to cover new balance checks and payment method handling.
- Upgrade GitHub Actions artifact upload action to v7.
- Enhance documentation and examples to reflect changes in wallet balance handling.
2026-05-11 13:02:00 +03:00
bohd4nx 311222d478 feat: add payment method options for purchases and giveaways, enhance documentation and examples 2026-05-11 12:12:07 +03:00
bohd4nx 72918a6dd6 feat: add payment method support for premium and stars purchases, including validation and tests 2026-05-11 11:57:52 +03:00
bohd4nx c1ae5f0f28 fix: update download-artifact action version to v8 for consistency 2026-05-03 19:20:30 +03:00