You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: cmd/faucet/README.md
+8-12
Original file line number
Diff line number
Diff line change
@@ -1,31 +1,27 @@
1
1
# Faucet
2
2
3
-
The `faucet` is a simplistic web application with the goal of distributing small amounts of Ether in private and test networks.
3
+
The `faucet` is a simplistic web application with the goal of distributing small amounts of W3Q in private and test networks.
4
4
5
-
Users need to post their Ethereum addresses to fund in a Twitter status update or public Facebook post and share the link to the faucet. The faucet will in turn deduplicate user requests and send the Ether. After a funding round, the faucet prevents the same user requesting again for a pre-configured amount of time, proportional to the amount of Ether requested.
5
+
Users need to post their Web3Q addresses to fund in a Twitter status update or public Facebook post and share the link to the faucet. The faucet will in turn deduplicate user requests and send the W3Q. After a funding round, the faucet prevents the same user requesting again for a pre-configured amount of time, proportional to the amount of W3Q requested.
6
6
7
7
## Operation
8
8
9
9
The `faucet` is a single binary app (everything included) with all configurations set via command line flags and a few files.
10
10
11
-
First thing's first, the `faucet` needs to connect to an Ethereum network, for which it needs the necessary genesis and network infos. Each of the following flags must be set:
11
+
First thing's first, the `faucet` needs to connect to an Web3Q network, for which it needs the wsrpc to connect network. Each of the following flags must be set:
12
12
13
-
-`--genesis` is a path to a file containin the network `genesis.json`
14
-
-`--network` is the devp2p network id used during connection
15
-
-`--bootnodes` is a list of `enode://` ids to join the network through
16
-
17
-
The `faucet` will use the `les` protocol to join the configured Ethereum network and will store its data in `$HOME/.faucet` (currently not configurable).
13
+
-`--wsrpc` is a websocket rpc URL for ethclient to get data and submit tx from network
18
14
19
15
## Funding
20
16
21
-
To be able to distribute funds, the `faucet` needs access to an already funded Ethereum account. This can be configured via:
17
+
To be able to distribute funds, the `faucet` needs access to an already funded Web3Q account. This can be configured via:
22
18
23
-
-`--account.json` is a path to the Ethereum account's JSON key file
19
+
-`--account.json` is a path to the Web3Q account's JSON key file
24
20
-`--account.pass` is a path to a text file with the decryption passphrase
25
21
26
-
The faucet is able to distribute various amounts of Ether in exchange for various timeouts. These can be configured via:
22
+
The faucet is able to distribute various amounts of W3Q in exchange for various timeouts. These can be configured via:
27
23
28
-
-`--faucet.amount` is the number of Ethers to send by default
24
+
-`--faucet.amount` is the number of W3Qs to send by default
29
25
-`--faucet.minutes` is the time to wait before allowing a rerequest
30
26
-`--faucet.tiers` is the funding tiers to support (x3 time, x2.5 funds)
0 commit comments