feat: reorganize constants into separate modules; update validation logic for mnemonic and API key lengths

This commit is contained in:
bohd4nx
2026-05-29 22:22:09 +03:00
parent 66bcd22198
commit 5124af17ef
14 changed files with 223 additions and 89 deletions
+10 -1
View File
@@ -1,6 +1,9 @@
from __future__ import annotations
from enum import StrEnum
from typing import Any
from tonutils.contracts.wallet import WalletV4R2, WalletV5R1
class PaymentMethod(StrEnum):
@@ -13,6 +16,12 @@ class WalletVersion(StrEnum):
V5R1 = "V5R1"
WALLET_CLASSES: dict[WalletVersion, Any] = {
WalletVersion.V4R2: WalletV4R2,
WalletVersion.V5R1: WalletV5R1,
}
class SupportedBrowser(StrEnum):
ARC = "arc"
BRAVE = "brave"
@@ -29,4 +38,4 @@ class SupportedBrowser(StrEnum):
VIVALDI = "vivaldi"
__all__ = ["PaymentMethod", "SupportedBrowser", "WalletVersion"]
__all__ = ["PaymentMethod", "SupportedBrowser", "WALLET_CLASSES", "WalletVersion"]