mirror of
https://github.com/bohd4nx/FragmentAPI.git
synced 2026-07-25 06:14:29 +00:00
8f865f4911
- 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.
65 lines
1.5 KiB
Python
65 lines
1.5 KiB
Python
from __future__ import annotations
|
|
|
|
from pyfragment.core.constants.gram import DEVICE_INFO, USDT_GRAM_MASTER_ADDRESS
|
|
from pyfragment.core.constants.headers import BASE_HEADERS, DEFAULT_TIMEOUT, REQUIRED_COOKIE_KEYS
|
|
from pyfragment.core.constants.limits import (
|
|
GRAM_TOPUP_MAX,
|
|
GRAM_TOPUP_MIN,
|
|
MIN_GRAM_BALANCE,
|
|
MIN_USDT_BALANCE,
|
|
MNEMONIC_WORD_COUNTS_VALID,
|
|
PREMIUM_MONTHS_VALID,
|
|
PREMIUM_WINNERS_MAX,
|
|
PREMIUM_WINNERS_MIN,
|
|
STARS_GIVEAWAY_MAX,
|
|
STARS_GIVEAWAY_MIN,
|
|
STARS_PURCHASE_MAX,
|
|
STARS_PURCHASE_MIN,
|
|
STARS_WINNERS_MAX,
|
|
STARS_WINNERS_MIN,
|
|
TONAPI_KEY_MIN_LENGTH,
|
|
)
|
|
from pyfragment.core.constants.urls import (
|
|
ADS_TOPUP_PAGE,
|
|
FRAGMENT_BASE_URL,
|
|
FRAGMENT_DOMAIN,
|
|
GIFTS_PAGE,
|
|
NUMBERS_PAGE,
|
|
PREMIUM_GIVEAWAY_PAGE,
|
|
PREMIUM_PAGE,
|
|
STARS_GIVEAWAY_PAGE,
|
|
STARS_PAGE,
|
|
)
|
|
|
|
__all__ = [
|
|
"ADS_TOPUP_PAGE",
|
|
"BASE_HEADERS",
|
|
"DEFAULT_TIMEOUT",
|
|
"DEVICE_INFO",
|
|
"FRAGMENT_BASE_URL",
|
|
"FRAGMENT_DOMAIN",
|
|
"GIFTS_PAGE",
|
|
"GRAM_TOPUP_MAX",
|
|
"GRAM_TOPUP_MIN",
|
|
"MIN_GRAM_BALANCE",
|
|
"MIN_USDT_BALANCE",
|
|
"MNEMONIC_WORD_COUNTS_VALID",
|
|
"NUMBERS_PAGE",
|
|
"PREMIUM_GIVEAWAY_PAGE",
|
|
"PREMIUM_MONTHS_VALID",
|
|
"PREMIUM_PAGE",
|
|
"PREMIUM_WINNERS_MAX",
|
|
"PREMIUM_WINNERS_MIN",
|
|
"REQUIRED_COOKIE_KEYS",
|
|
"STARS_GIVEAWAY_MAX",
|
|
"STARS_GIVEAWAY_MIN",
|
|
"STARS_GIVEAWAY_PAGE",
|
|
"STARS_PAGE",
|
|
"STARS_PURCHASE_MAX",
|
|
"STARS_PURCHASE_MIN",
|
|
"STARS_WINNERS_MAX",
|
|
"STARS_WINNERS_MIN",
|
|
"TONAPI_KEY_MIN_LENGTH",
|
|
"USDT_GRAM_MASTER_ADDRESS",
|
|
]
|