faucet-terminal 2.0.2 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +121 -31
  2. package/install.js +1 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -14,19 +14,42 @@ Starknet Sepolia · Ethereum Sepolia
14
14
 
15
15
  ---
16
16
 
17
+ ## Installation
18
+
17
19
  ```bash
18
20
  npm install -g faucet-terminal
19
21
  ```
20
22
 
23
+ ## Quick Start
24
+
25
+ ```bash
26
+ # Ethereum Sepolia (ETH)
27
+ faucet-terminal request 0xYOUR_ADDRESS --network ethereum
28
+ faucet-terminal req 0xYOUR_ADDRESS -n eth # short version
29
+
30
+ # Starknet Sepolia (STRK - default)
31
+ faucet-terminal request 0xYOUR_ADDRESS --network starknet
32
+ faucet-terminal req 0xYOUR_ADDRESS -n sn # short version
33
+
34
+ # Starknet Sepolia (ETH)
35
+ faucet-terminal request 0xYOUR_ADDRESS --network starknet --token ETH
36
+ faucet-terminal req 0xYOUR_ADDRESS -n sn --token ETH # short version
37
+ ```
38
+
39
+ ## Example Output
40
+
21
41
  ```
22
- $ faucet-terminal req 0x742d35Cc6634C0532925a3b844Bc9e7595f8fE21 -n eth-sep
42
+ $ faucet-terminal req 0x742d35Cc6634C0532925a3b844Bc9e7595f8fE21 -n eth
23
43
 
24
44
  faucet terminal
25
45
 
26
46
  network ethereum
27
47
 
48
+ [Verification] What is 5 + 7? 12
49
+ Correct!
50
+
28
51
  ✔ Challenge received
29
- ✔ Challenge solved in 12.3s
52
+ ✔ Challenge solved in 32.1s
30
53
  ✔ Transaction submitted!
31
54
 
32
55
  ────────────────────────────────────────────────────────
@@ -41,62 +64,129 @@ $ faucet-terminal req 0x742d35Cc6634C0532925a3b844Bc9e7595f8fE21 -n eth-sep
41
64
  ✔ Tokens will arrive in ~30 seconds
42
65
  ```
43
66
 
44
- ## Quick Start
67
+ ## Supported Networks
68
+
69
+ | Network | Full Name | Aliases | Tokens |
70
+ |:--------|:----------|:--------|:-------|
71
+ | Starknet Sepolia | `starknet` | `sn`, `sn-sep` | STRK (default), ETH |
72
+ | Ethereum Sepolia | `ethereum` | `eth`, `eth-sep` | ETH |
73
+
74
+ ## Commands
75
+
76
+ ### Request Tokens
45
77
 
46
78
  ```bash
47
- # Ethereum Sepolia
48
- faucet-terminal req 0xYOUR_ADDRESS -n eth-sep
79
+ # Full command
80
+ faucet-terminal request <ADDRESS> --network <NETWORK> [--token <TOKEN>]
49
81
 
50
- # Starknet Sepolia (STRK)
51
- faucet-terminal req 0xYOUR_ADDRESS -n sn-sep
82
+ # Short version
83
+ faucet-terminal req <ADDRESS> -n <NETWORK> [--token <TOKEN>]
52
84
 
53
- # Starknet Sepolia (ETH)
54
- faucet-terminal req 0xYOUR_ADDRESS -n sn-sep --token ETH
85
+ # Shortest version
86
+ faucet-terminal r <ADDRESS> -n <NETWORK>
87
+ ```
55
88
 
89
+ **Examples:**
90
+ ```bash
91
+ faucet-terminal request 0x123...abc --network ethereum # ETH on Ethereum
92
+ faucet-terminal req 0x123...abc -n eth # same, shorter
93
+ faucet-terminal r 0x123...abc -n eth # same, shortest
94
+
95
+ faucet-terminal request 0x123...abc --network starknet # STRK on Starknet
96
+ faucet-terminal req 0x123...abc -n sn # same, shorter
97
+
98
+ faucet-terminal request 0x123...abc --network starknet --token ETH # ETH on Starknet
99
+ faucet-terminal req 0x123...abc -n sn --token ETH # same, shorter
56
100
  ```
57
101
 
58
- ## Networks
102
+ ### Check Status
59
103
 
60
- | Network | Aliases | Tokens |
61
- |:--------|:--------|:-------|
62
- | Starknet Sepolia | `starknet` `sn` `sn-sep` | STRK, ETH |
63
- | Ethereum Sepolia | `ethereum` `eth` `eth-sep` | ETH |
104
+ ```bash
105
+ # Full command
106
+ faucet-terminal status <ADDRESS> --network <NETWORK>
64
107
 
65
- ## Commands
108
+ # Short version
109
+ faucet-terminal s <ADDRESS> -n <NETWORK>
110
+ ```
66
111
 
112
+ **Examples:**
113
+ ```bash
114
+ faucet-terminal status 0x123...abc --network ethereum
115
+ faucet-terminal s 0x123...abc -n eth
67
116
  ```
68
- req, r Request testnet tokens
69
- status, s Check cooldown status
70
- info, i View faucet info
71
- quota, q Check remaining quota
72
- limits, l Show rate limits
117
+
118
+ ### View Faucet Info
119
+
120
+ ```bash
121
+ # Full command
122
+ faucet-terminal info --network <NETWORK>
123
+
124
+ # Short version
125
+ faucet-terminal i -n <NETWORK>
73
126
  ```
74
127
 
75
- ## Options
128
+ **Examples:**
129
+ ```bash
130
+ faucet-terminal info --network ethereum
131
+ faucet-terminal i -n eth
132
+ ```
133
+
134
+ ### Check Your Quota
135
+
136
+ ```bash
137
+ # Full command
138
+ faucet-terminal quota
76
139
 
140
+ # Short version
141
+ faucet-terminal q
77
142
  ```
78
- -n, --network Network (required): eth-sep, sn-sep
79
- --token Token type: ETH, STRK
80
- --json JSON output
143
+
144
+ ### View Rate Limits
145
+
146
+ ```bash
147
+ # Full command
148
+ faucet-terminal limits
149
+
150
+ # Short version
151
+ faucet-terminal l
81
152
  ```
82
153
 
154
+ ## Options
155
+
156
+ | Option | Short | Description |
157
+ |:-------|:------|:------------|
158
+ | `--network` | `-n` | Network to use (required for most commands) |
159
+ | `--token` | | Token to request: `ETH`, `STRK` |
160
+ | `--json` | | Output in JSON format |
161
+ | `--version` | `-v` | Show version |
162
+ | `--help` | `-h` | Show help |
163
+
83
164
  ## Rate Limits
84
165
 
85
166
  ```
86
- 5 requests/day per IP address
87
- 1 request/hour per token type
88
- 24h cooldown after daily limit
167
+ 5 requests/day per IP address
168
+ 1 request/hour per token type (ETH and STRK tracked separately)
169
+ 24h cooldown after daily limit reached
89
170
  ```
90
171
 
91
172
  ## How It Works
92
173
 
93
174
  ```
94
- 1. Submit address → Validate format
95
- 2. Verification → Answer simple question
96
- 3. Proof of Work → Solve SHA-256 challenge (~30s)
97
- 4. Receive tokens → Transaction submitted
175
+ 1. Submit address → Validate format for the network
176
+ 2. Verification → Answer a simple math question
177
+ 3. Proof of Work → Solve SHA-256 challenge (~30-60s)
178
+ 4. Receive tokens → Transaction submitted to blockchain
98
179
  ```
99
180
 
181
+ ## Error Messages
182
+
183
+ The CLI provides clear error messages when you hit rate limits:
184
+
185
+ - `[HOURLY LIMIT]` - You requested this token within the last hour
186
+ - `[DAILY LIMIT]` - You've used all 5 daily requests
187
+ - `[FAUCET LIMIT]` - Faucet has temporarily reached its distribution limit
188
+ - `[LOW BALANCE]` - Faucet balance is too low
189
+
100
190
  ## License
101
191
 
102
192
  MIT
package/install.js CHANGED
@@ -8,7 +8,7 @@ const stream = require('stream');
8
8
 
9
9
  const pipeline = promisify(stream.pipeline);
10
10
 
11
- const VERSION = 'v2.0.2';
11
+ const VERSION = 'v2.0.4';
12
12
  const GITHUB_REPO = 'Giri-Aayush/faucet-terminal';
13
13
 
14
14
  // Detect platform and architecture
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "faucet-terminal",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "Multi-chain testnet faucet CLI - get tokens on Starknet and Ethereum testnets",
5
5
  "bin": {
6
6
  "faucet-terminal": "./bin/faucet-terminal.js"