@@ -5,15 +5,15 @@ import { parseBankTokens } from "./tokens";
55
66export const binaryName = "cosmos-faucet" ;
77export const memo : string | undefined = process . env . FAUCET_MEMO ;
8- export const gasPrice = GasPrice . fromString ( process . env . FAUCET_GAS_PRICE || "0.025ucosm" ) ;
9- export const gasLimitSend = process . env . FAUCET_GAS_LIMIT
8+ export const gasPrice : GasPrice = GasPrice . fromString ( process . env . FAUCET_GAS_PRICE || "0.025ucosm" ) ;
9+ export const gasLimitSend : number = process . env . FAUCET_GAS_LIMIT
1010 ? parseInt ( process . env . FAUCET_GAS_LIMIT , 10 )
1111 : 100_000 ;
1212export const concurrency : number = Number . parseInt ( process . env . FAUCET_CONCURRENCY || "" , 10 ) || 5 ;
1313export const port : number = Number . parseInt ( process . env . FAUCET_PORT || "" , 10 ) || 8000 ;
1414export const mnemonic : string | undefined = process . env . FAUCET_MNEMONIC ;
15- export const addressPrefix = process . env . FAUCET_ADDRESS_PREFIX || "cosmos" ;
16- export const pathPattern = process . env . FAUCET_PATH_PATTERN || "m/44'/118'/0'/0/a" ;
15+ export const addressPrefix : string = process . env . FAUCET_ADDRESS_PREFIX || "cosmos" ;
16+ export const pathPattern : string = process . env . FAUCET_PATH_PATTERN || "m/44'/118'/0'/0/a" ;
1717export const tokenConfig : TokenConfiguration = {
1818 bankTokens : parseBankTokens ( process . env . FAUCET_TOKENS || "ucosm, ustake" ) ,
1919} ;
@@ -23,6 +23,6 @@ export const tokenConfig: TokenConfiguration = {
2323 * Defaults to 24 hours if FAUCET_COOLDOWN_TIME unset or an empty string.
2424 * FAUCET_COOLDOWN_TIME can be set to "0" to deactivate.
2525 */
26- export const cooldownTime = process . env . FAUCET_COOLDOWN_TIME
26+ export const cooldownTime : number = process . env . FAUCET_COOLDOWN_TIME
2727 ? Number . parseInt ( process . env . FAUCET_COOLDOWN_TIME , 10 )
2828 : 24 * 3600 ;
0 commit comments