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.
35 lines
872 B
Python
35 lines
872 B
Python
from __future__ import annotations
|
|
|
|
# Stars: direct purchase
|
|
STARS_PURCHASE_MIN: int = 50
|
|
STARS_PURCHASE_MAX: int = 10_000_000
|
|
|
|
# Stars: giveaway per winner
|
|
STARS_GIVEAWAY_MIN: int = 500
|
|
STARS_GIVEAWAY_MAX: int = 1_000_000
|
|
|
|
# Stars giveaway winners count
|
|
STARS_WINNERS_MIN: int = 1
|
|
STARS_WINNERS_MAX: int = 15
|
|
|
|
# Premium giveaway winners count
|
|
PREMIUM_WINNERS_MIN: int = 1
|
|
PREMIUM_WINNERS_MAX: int = 24_000
|
|
|
|
# GRAM (ex TON) topup / Ads recharge amount
|
|
GRAM_TOPUP_MIN: int = 1
|
|
GRAM_TOPUP_MAX: int = 1_000_000_000
|
|
|
|
# Wallet minimum balances
|
|
MIN_GRAM_BALANCE: float = 0.33
|
|
MIN_USDT_BALANCE: float = 0.75
|
|
|
|
# Premium subscription durations (months)
|
|
PREMIUM_MONTHS_VALID: frozenset[int] = frozenset({3, 6, 12})
|
|
|
|
# Mnemonic phrase valid word counts
|
|
MNEMONIC_WORD_COUNTS_VALID: frozenset[int] = frozenset({12, 24})
|
|
|
|
# Tonapi API key minimum length
|
|
TONAPI_KEY_MIN_LENGTH: int = 68
|