@zeko-labs/faucet-cli 0.1.1 → 0.1.2
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.
- package/README.md +15 -13
- package/npm/darwin-arm64/CHANGELOG.md +2 -0
- package/npm/darwin-arm64/bin/zeko-faucet +0 -0
- package/npm/darwin-arm64/package.json +1 -1
- package/npm/darwin-x64/CHANGELOG.md +2 -0
- package/npm/darwin-x64/bin/zeko-faucet +0 -0
- package/npm/darwin-x64/package.json +1 -1
- package/npm/linux-arm64/CHANGELOG.md +2 -0
- package/npm/linux-arm64/bin/zeko-faucet +0 -0
- package/npm/linux-arm64/package.json +1 -1
- package/npm/linux-x64/CHANGELOG.md +2 -0
- package/npm/linux-x64/bin/zeko-faucet +0 -0
- package/npm/linux-x64/package.json +1 -1
- package/npm/win32-arm64/CHANGELOG.md +2 -0
- package/npm/win32-arm64/bin/zeko-faucet.exe +0 -0
- package/npm/win32-arm64/package.json +1 -1
- package/npm/win32-x64/CHANGELOG.md +2 -0
- package/npm/win32-x64/bin/zeko-faucet.exe +0 -0
- package/npm/win32-x64/package.json +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# Faucet CLI
|
|
2
2
|
|
|
3
|
-
> **Public mirror** — This repository is automatically synced from a private monorepo. Development happens in the monorepo; this repo is a read-only source mirror. See [zeko-labs/faucet-cli](https://github.com/zeko-labs/faucet-cli) for issues and releases.
|
|
4
|
-
|
|
5
3
|
Command-line client for the Zeko testnet faucet. Claim testnet tokens and verify your GitHub authentication from the terminal.
|
|
6
4
|
|
|
7
5
|
Written in Rust for fast startup and single-binary distribution. Distributed via npm with platform-specific packages.
|
|
8
6
|
|
|
7
|
+
The CLI is maintained in the private Zeko monorepo and mirrored to [zeko-labs/faucet-cli](https://github.com/zeko-labs/faucet-cli) for issues and releases.
|
|
8
|
+
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
11
11
|
Install globally:
|
|
@@ -17,7 +17,7 @@ npm install -g @zeko-labs/faucet-cli
|
|
|
17
17
|
Or run without installing via `npx`:
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
npx @zeko-labs/faucet-cli whoami
|
|
20
|
+
GITHUB_TOKEN=ghp_xxx npx -y @zeko-labs/faucet-cli whoami
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
### Supported platforms
|
|
@@ -36,7 +36,7 @@ The correct platform package is installed automatically via `optionalDependencie
|
|
|
36
36
|
## Authentication
|
|
37
37
|
|
|
38
38
|
Every command requires a **GitHub personal access token** (classic or fine-grained).
|
|
39
|
-
|
|
39
|
+
Each command accepts the token in this order:
|
|
40
40
|
|
|
41
41
|
1. `--token <value>` flag (highest priority)
|
|
42
42
|
2. `GITHUB_TOKEN` environment variable
|
|
@@ -57,9 +57,9 @@ zeko-faucet whoami
|
|
|
57
57
|
Verify your GitHub token and display the associated account.
|
|
58
58
|
|
|
59
59
|
```bash
|
|
60
|
-
zeko-faucet whoami
|
|
60
|
+
GITHUB_TOKEN=ghp_xxx zeko-faucet whoami
|
|
61
61
|
zeko-faucet whoami --token ghp_xxx
|
|
62
|
-
zeko-faucet whoami --json
|
|
62
|
+
GITHUB_TOKEN=ghp_xxx zeko-faucet whoami --json
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
**Example output:**
|
|
@@ -77,9 +77,9 @@ Token source: env
|
|
|
77
77
|
Submit a faucet claim for the given Mina address on the `zeko-testnet` chain.
|
|
78
78
|
|
|
79
79
|
```bash
|
|
80
|
-
zeko-faucet claim B62qexample
|
|
80
|
+
GITHUB_TOKEN=ghp_xxx zeko-faucet claim B62qexample
|
|
81
81
|
zeko-faucet claim B62qexample --token ghp_xxx
|
|
82
|
-
zeko-faucet claim B62qexample --json
|
|
82
|
+
GITHUB_TOKEN=ghp_xxx zeko-faucet claim B62qexample --json
|
|
83
83
|
```
|
|
84
84
|
|
|
85
85
|
**Example output:**
|
|
@@ -92,7 +92,9 @@ Transaction: 5Jtxxx
|
|
|
92
92
|
Explorer: https://zekoscan.io/devnet/tx/5Jtxxx
|
|
93
93
|
```
|
|
94
94
|
|
|
95
|
-
##
|
|
95
|
+
## Command Options
|
|
96
|
+
|
|
97
|
+
Both `whoami` and `claim` support the same options:
|
|
96
98
|
|
|
97
99
|
| Flag | Description |
|
|
98
100
|
| --------- | ------------------------------------------------------- |
|
|
@@ -155,14 +157,14 @@ Requires [Rust](https://rustup.rs/) and [pnpm](https://pnpm.io/).
|
|
|
155
157
|
|
|
156
158
|
```bash
|
|
157
159
|
# Build
|
|
158
|
-
moon faucet-cli:build
|
|
160
|
+
moon run faucet-cli:build
|
|
159
161
|
|
|
160
162
|
# Run integration tests
|
|
161
|
-
moon faucet-cli:test
|
|
163
|
+
moon run faucet-cli:test
|
|
162
164
|
|
|
163
165
|
# Lint
|
|
164
|
-
moon faucet-cli:lint
|
|
166
|
+
moon run faucet-cli:lint
|
|
165
167
|
|
|
166
168
|
# Check (fast compile check)
|
|
167
|
-
moon faucet-cli:check
|
|
169
|
+
moon run faucet-cli:check
|
|
168
170
|
```
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeko-labs/faucet-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Public CLI for claiming Zeko testnet faucet funds and verifying GitHub authentication.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"zeko-faucet": "./bin/zeko-faucet.js"
|
|
22
22
|
},
|
|
23
23
|
"optionalDependencies": {
|
|
24
|
-
"@zeko-labs/faucet-cli-darwin-arm64": "0.1.
|
|
25
|
-
"@zeko-labs/faucet-cli-
|
|
26
|
-
"@zeko-labs/faucet-cli-
|
|
27
|
-
"@zeko-labs/faucet-cli-linux-arm64": "0.1.
|
|
28
|
-
"@zeko-labs/faucet-cli-win32-x64": "0.1.
|
|
29
|
-
"@zeko-labs/faucet-cli-win32-arm64": "0.1.
|
|
24
|
+
"@zeko-labs/faucet-cli-darwin-arm64": "0.1.2",
|
|
25
|
+
"@zeko-labs/faucet-cli-linux-x64": "0.1.2",
|
|
26
|
+
"@zeko-labs/faucet-cli-darwin-x64": "0.1.2",
|
|
27
|
+
"@zeko-labs/faucet-cli-linux-arm64": "0.1.2",
|
|
28
|
+
"@zeko-labs/faucet-cli-win32-x64": "0.1.2",
|
|
29
|
+
"@zeko-labs/faucet-cli-win32-arm64": "0.1.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^20.8.10",
|