games_app/backend/dist/services/walletCapabilities.d.ts

25 lines
1.3 KiB
TypeScript

/**
* Platform deposit/withdraw wallet capabilities (USDT TRC20 + USDT BEP20).
*/
import { WalletType } from '../models';
import type { SystemSettings } from '../models/settings.model';
export declare const USDT_TRC20_CODE = "USDT_TRC20";
export declare const USDT_BEP20_CODE = "USDT_BEP20";
/** @deprecated Prefer USDT_TRC20_CODE — kept for prediction default / legacy imports */
export declare const USDT_WALLET_CODE = "USDT_TRC20";
export declare const SUPPORTED_USDT_CODES: readonly ["USDT_TRC20", "USDT_BEP20"];
export type SupportedUsdtCode = (typeof SUPPORTED_USDT_CODES)[number];
export type WalletTypeCapabilities = WalletType & {
depositEnabled: boolean;
withdrawEnabled: boolean;
predictionEnabled: boolean;
};
export declare function isSupportedUsdtCode(code: string): code is SupportedUsdtCode;
export declare function assertUsdtWalletType(code: string): void;
/**
* Sync enrich when settings are not needed (prediction still TRC20-primary).
* Prefer enrichWalletTypeAsync for deposit/withdraw gates.
*/
export declare function enrichWalletType(walletType: WalletType, settings?: SystemSettings): WalletTypeCapabilities;
export declare function enrichWalletTypeAsync(walletType: WalletType): Promise<WalletTypeCapabilities>;
//# sourceMappingURL=walletCapabilities.d.ts.map