mirror of
https://github.com/bohd4nx/FragmentAPI.git
synced 2026-07-25 14:24:31 +00:00
e3706f01bf
- tonutils 2.0.0: TonapiClient → ToncenterV3Client, wallet.transfer() - classes → plain async functions across all utils and methods - core/: constants.py, cookies.py, exceptions.py extracted - DEVICE constant in constants.py (single source of truth) - account/device serialised with json.dumps() in all tx payloads - tests: unittest → pytest, conftest.py fixtures, 001/002 naming - pyproject.toml: pytest + ruff config - min balance check: 0.056 TON
35 lines
748 B
Python
35 lines
748 B
Python
from app.core.config import config
|
|
from app.core.constants import ADS_PAGE, BASE_HEADERS, DEVICE, PREMIUM_PAGE, STARS_PAGE
|
|
from app.core.cookies import load_cookies
|
|
from app.core.exceptions import (
|
|
ConfigError,
|
|
CookiesError,
|
|
FragmentError,
|
|
HashFetchError,
|
|
RequestError,
|
|
TransactionError,
|
|
UserNotFoundError,
|
|
WalletError,
|
|
)
|
|
from app.core.logging import logger, setup_logging
|
|
|
|
__all__ = [
|
|
"ADS_PAGE",
|
|
"BASE_HEADERS",
|
|
"DEVICE",
|
|
"PREMIUM_PAGE",
|
|
"STARS_PAGE",
|
|
"ConfigError",
|
|
"CookiesError",
|
|
"FragmentError",
|
|
"HashFetchError",
|
|
"RequestError",
|
|
"TransactionError",
|
|
"UserNotFoundError",
|
|
"WalletError",
|
|
"config",
|
|
"load_cookies",
|
|
"logger",
|
|
"setup_logging",
|
|
]
|