diff --git a/.env.dist b/.env.dist index bf84523d..36313f9a 100644 --- a/.env.dist +++ b/.env.dist @@ -30,7 +30,7 @@ APP_NODE_PRIVATE_KEY=*********** APP_NODE_API_DEBUG_PROXY=false APP_NODE_API_DEBUG_PROXY_HOST=127.0.0.1 APP_NODE_API_DEBUG_PROXY_PORT=9000 - +APP_NODE_STOP_TEXT=Auto off APP_API_SERVER_HOST=* APP_API_SERVER_PORT=4000 diff --git a/app/src/Config/app-config.ts b/app/src/Config/app-config.ts index d3cbd9e7..1e5102b9 100644 --- a/app/src/Config/app-config.ts +++ b/app/src/Config/app-config.ts @@ -59,6 +59,7 @@ export class ConfigFactory { baseURL: env('APP_NODE_BASE_URL', 'http://localhost:8841'), privateKey: env('APP_NODE_PRIVATE_KEY', ''), publicKeyValidator: env('APP_NODE_PUBLIC_KEY_VALIDATOR', ''), + stopText: env('APP_NODE_STOP_TEXT', 'Auto off'), debugProxy: { active: envBoolean('APP_NODE_API_DEBUG_PROXY', false), host: env('APP_NODE_API_DEBUG_PROXY_HOST', '127.0.0.1'), diff --git a/app/src/Modules/NodeApi/Interfaces/NodeConfigInterface.ts b/app/src/Modules/NodeApi/Interfaces/NodeConfigInterface.ts index 09ae6c83..ec889b21 100644 --- a/app/src/Modules/NodeApi/Interfaces/NodeConfigInterface.ts +++ b/app/src/Modules/NodeApi/Interfaces/NodeConfigInterface.ts @@ -4,6 +4,7 @@ export interface NodeApiConfigInterface { baseURL: string; privateKey: string; publicKeyValidator: string; + stopText: string; debugProxy: { active: boolean; host: string; diff --git a/app/src/Modules/NodeApi/index.ts b/app/src/Modules/NodeApi/index.ts index c3d9fa7b..05658d56 100644 --- a/app/src/Modules/NodeApi/index.ts +++ b/app/src/Modules/NodeApi/index.ts @@ -64,7 +64,7 @@ export class NodeApi { chainId: this.blockchainConfig.chainId, feeCoinSymbol: this.blockchainConfig.feeCoinSymbol, gasPrice: gasPrice, - message: 'Auto Off', + message: this.config.stopText, }); let txHash:Promise = this.minterSDK.postTx(txParams); txHash.then((txString: string) => {