mirror of
https://github.com/bohd4nx/FragmentAPI.git
synced 2026-07-25 06:14:29 +00:00
8135a9da7e
- Renamed the package from `fragmentapi` to `pyfragment` across all modules and tests. - Removed the old wallet utility functions and replaced them with new implementations. - Updated the `pyproject.toml` to reflect the new package name and repository links. - Adjusted all import statements in tests to use the new package name. - Implemented new methods for gifting Telegram Premium, Stars, and topping up TON balance. - Added exception handling for various error scenarios in the API interactions. - Created new utility functions for handling HTTP requests and decoding payloads. - Established a clear structure for types and constants used throughout the library.
19 lines
456 B
Python
19 lines
456 B
Python
from pyfragment.utils.decoder import clean_decode
|
|
from pyfragment.utils.http import (
|
|
execute_transaction_request,
|
|
fragment_post,
|
|
get_fragment_hash,
|
|
parse_json_response,
|
|
)
|
|
from pyfragment.utils.wallet import get_account_info, process_transaction
|
|
|
|
__all__ = [
|
|
"clean_decode",
|
|
"execute_transaction_request",
|
|
"fragment_post",
|
|
"get_account_info",
|
|
"get_fragment_hash",
|
|
"parse_json_response",
|
|
"process_transaction",
|
|
]
|