forked from ping-pub/faucet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
49 lines (46 loc) · 1.33 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import { stringToPath } from '@cosmjs/crypto'
export default {
port: 80, // http port
db: {
path: "./db/faucet.db" // save request states
},
project: {
name: "Ping Testnet",
logo: "https://ping.pub/logo.svg",
deployer: `<a href="#">Your Brand</a>`
},
blockchain: {
// make sure that CORS is enabled in rpc section in config.toml
// cors_allowed_origins = ["*"]
rpc_endpoint: "https://rpc.sentry-02.theta-testnet.polypore.xyz",
},
sender: {
mnemonic: "surround miss nominee dream gap cross assault thank captain prosper drop duty group candy wealth weather scale put",
option: {
hdPaths: [stringToPath("m/44'/118'/0'/0/0")],
prefix: "cosmos"
}
},
tx: {
amount: {
denom: "uatom",
amount: "10000"
},
fee: {
amount: [
{
amount: "1000",
denom: "uatom"
}
],
gas: "200000"
},
},
limit: {
// how many times each wallet address is allowed in a window(24h)
address: 1,
// 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: 10
}
}