mirror of
https://github.com/bohd4nx/FragmentAPI.git
synced 2026-07-25 06:14:29 +00:00
feat: reorganize constants into separate modules; update validation logic for mnemonic and API key lengths
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user