add electrum config
This commit is contained in:
@@ -5,6 +5,7 @@ import { ShopFiatCurrency } from '../types/ShopFiatCurrency';
|
||||
import { IsBase64 } from '../validation/decorators/isBase64';
|
||||
import { IsConfirmationTiers } from '../validation/decorators/isConfirmationTiers';
|
||||
import { IsEnabledPaymentMethods } from '../validation/decorators/isEnabledPaymentMethods';
|
||||
import { ElectrumNetwork } from '../types/ElectrumNetwork';
|
||||
import { MoneroNetwork } from '../types/MoneroNetwork';
|
||||
|
||||
class EnvironmentVariables {
|
||||
@@ -342,6 +343,37 @@ class EnvironmentVariables {
|
||||
@Min(1000)
|
||||
MONERO_WALLET_RPC_TIMEOUT_MS: number;
|
||||
|
||||
@IsNotEmpty()
|
||||
@IsEnum(ElectrumNetwork)
|
||||
ELECTRUM_NETWORK: ElectrumNetwork;
|
||||
|
||||
@IsNotEmpty()
|
||||
@IsString()
|
||||
ELECTRUM_SERVER: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
@IsString()
|
||||
ELECTRUM_DAEMON_HOST: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
@IsNumber()
|
||||
@Min(1)
|
||||
@Max(65535)
|
||||
ELECTRUM_DAEMON_PORT: number;
|
||||
|
||||
@IsNotEmpty()
|
||||
@IsString()
|
||||
ELECTRUM_DAEMON_RPC_USER: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
@IsString()
|
||||
ELECTRUM_DAEMON_RPC_PASSWORD: string;
|
||||
|
||||
@IsNotEmpty()
|
||||
@IsNumber()
|
||||
@Min(1000)
|
||||
ELECTRUM_DAEMON_RPC_TIMEOUT_MS: number;
|
||||
|
||||
@IsNotEmpty()
|
||||
@IsString()
|
||||
SIMPLEX_WS_URL: string;
|
||||
|
||||
Reference in New Issue
Block a user