hufi-cli 0.0.1 → 0.3.1
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 +55 -4
- package/dist/cli.js +9902 -0
- package/package.json +20 -3
- package/CLAUDE.md +0 -106
- package/bun.lock +0 -26
- package/index.ts +0 -1
- package/tsconfig.json +0 -29
package/README.md
CHANGED
|
@@ -1,15 +1,66 @@
|
|
|
1
1
|
# hufi-cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
CLI tool for the hu.fi DeFi platform.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
4
6
|
|
|
5
7
|
```bash
|
|
6
8
|
bun install
|
|
7
9
|
```
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
## Usage
|
|
10
12
|
|
|
11
13
|
```bash
|
|
12
|
-
|
|
14
|
+
# Show help
|
|
15
|
+
bun src/cli.ts --help
|
|
16
|
+
|
|
17
|
+
# Authenticate
|
|
18
|
+
bun src/cli.ts auth login --private-key 0x...
|
|
19
|
+
|
|
20
|
+
# Generate a new wallet
|
|
21
|
+
bun src/cli.ts auth generate
|
|
22
|
+
|
|
23
|
+
# Check auth status
|
|
24
|
+
bun src/cli.ts auth status
|
|
25
|
+
|
|
26
|
+
# Register exchange API key
|
|
27
|
+
bun src/cli.ts exchange register --name mexc --api-key xxx --secret-key yyy
|
|
28
|
+
|
|
29
|
+
# List exchange API keys
|
|
30
|
+
bun src/cli.ts exchange list
|
|
31
|
+
|
|
32
|
+
# Check campaign join status
|
|
33
|
+
bun src/cli.ts campaign status --chain-id 137 --address 0x...
|
|
34
|
+
|
|
35
|
+
# Join a campaign
|
|
36
|
+
bun src/cli.ts campaign join --chain-id 137 --address 0x...
|
|
37
|
+
|
|
38
|
+
# List joined campaigns
|
|
39
|
+
bun src/cli.ts campaign list --limit 20
|
|
13
40
|
```
|
|
14
41
|
|
|
15
|
-
|
|
42
|
+
## Global Options
|
|
43
|
+
|
|
44
|
+
- `--json` - Output as JSON (available on all commands)
|
|
45
|
+
|
|
46
|
+
## Configuration
|
|
47
|
+
|
|
48
|
+
Configuration is stored at `~/.hufi-cli/config.json`.
|
|
49
|
+
|
|
50
|
+
## API Endpoints
|
|
51
|
+
|
|
52
|
+
- Recording Oracle: `https://ro.hu.finance`
|
|
53
|
+
- Campaign Launcher: `https://cl.hu.finance`
|
|
54
|
+
|
|
55
|
+
## Development
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
# Run directly
|
|
59
|
+
bun src/cli.ts --help
|
|
60
|
+
|
|
61
|
+
# Run tests
|
|
62
|
+
bun test
|
|
63
|
+
|
|
64
|
+
# Type check
|
|
65
|
+
bun run typecheck
|
|
66
|
+
```
|