From bfe29285f51e4b8ce1758e13b757d96c8faf3d72 Mon Sep 17 00:00:00 2001 From: conache Date: Sat, 20 Jul 2024 20:09:37 +0300 Subject: [PATCH] Add input field for checking request status --- config/config.js | 84 ++++++++++++++++---------------- views/index.ejs | 121 ++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 146 insertions(+), 59 deletions(-) diff --git a/config/config.js b/config/config.js index 393dd59..a8f4d74 100644 --- a/config/config.js +++ b/config/config.js @@ -3,52 +3,52 @@ import fs from 'fs' import { Wallet, utils } from 'ethers'; // const mnemonic_path= './secret/{{.rootValues.alloraAccountSecretName}}' -const mnemonic = "varioy" +const mnemonic = "window ..." console.log("==================================================================") -console.log(`faucet mnemonic: ${mnemonic.substring(1, 15)} ...`) +console.log(`faucet mnemonic: ${mnemonic.substring(0, 15)} ...`) export default { - "port": 8000, // http port - "db": { - "path": `./faucet.db` // db for frequency checker(WIP) - }, - "project": { - "name": "Allora Edgenet", // What ever you want, recommend: chain-id, - "logo": "https://s3.amazonaws.com/assets.allora.network/logo.svg", - "deployer": 'Allora' - }, - blockchains: [ + "port": 8000, // http port + "db": { + "path": `./faucet.db` // db for frequency checker(WIP) + }, + "project": { + "name": "Allora testnet-1", + "logo": "https://s3.amazonaws.com/assets.allora.network/logo.svg", + "deployer": 'Allora' + }, + blockchains: [ { - name: "edgenet", - endpoint: { - // make sure that CORS is enabled in rpc section in config.toml - // cors_allowed_origins = ["*"] - rpc_endpoint: "https://allora-rpc.edgenet.allora.network", - }, - sender: { - mnemonic, - option: { - hdPaths: [stringToPath("m/44'/118'/0'/0/0")], - prefix: "allo" // human readable address prefix - } - }, - tx: { - amount: [ + name: "allora-testnet-1", + endpoint: { + // make sure that CORS is enabled in rpc section in config.toml + // cors_allowed_origins = ["*"] + rpc_endpoint: "https://allora-rpc.testnet-1.testnet.allora.network", + }, + sender: { + mnemonic, + option: { + hdPaths: [stringToPath("m/44'/118'/0'/0/0")], + prefix: "allo" // human readable address prefix + } + }, + tx: { + amount: [ { denom: "uallo", amount: "1000000000" }, - ], - fee: { - amount: [{ denom: "uallo", amount: "500" }], - gas: "200000", - }, - }, - limit: { - // how many times each wallet address is allowed in a window(24h) - address: 2, - // how many times each ip is allowed in a window(24h), - // if you use proxy, double check if the req.ip is return client's ip. - ip: 20 - } + ], + fee: { + amount: [{ denom: "uallo", amount: "1000" }], + gas: "200000", + }, + }, + limit: { + // how many times each wallet address is allowed in a window(24h) + address: 2, + // how many times each ip is allowed in a window(24h), + // if you use proxy, double check if the req.ip is return client's ip. + ip: 20 + } }, - ] -} + ] +} \ No newline at end of file diff --git a/views/index.ejs b/views/index.ejs index 81d502d..a847ee7 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -21,24 +21,38 @@

-
- - - - - +
+
+
+ +
+
Check request status
+
+ + +
+
- -
-