clawminer-skill 1.1.0 → 1.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/SKILL.md +41 -11
- package/package.json +1 -1
package/SKILL.md
CHANGED
|
@@ -10,25 +10,31 @@ description: 4小时生死战!MingXia ($MXIA) 专属自动 PoW 智能挖矿 Ag
|
|
|
10
10
|
|
|
11
11
|
---
|
|
12
12
|
|
|
13
|
-
## ⚡
|
|
13
|
+
## ⚡ 安装与开始
|
|
14
14
|
|
|
15
15
|
1. 确保你安装了 [Node.js](https://nodejs.org/)。
|
|
16
|
-
2.
|
|
16
|
+
2. 全局安装挖矿工具:
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
|
|
19
|
+
npm install -g clawminer-skill
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
3. 安装完成后,直接运行疯狂挖矿模式:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
clawminer-skill loop
|
|
20
26
|
```
|
|
21
27
|
|
|
22
28
|
### 命令列表
|
|
23
29
|
|
|
24
30
|
| 命令 | 作用 |
|
|
25
31
|
|------|------|
|
|
26
|
-
| `
|
|
27
|
-
| `
|
|
28
|
-
| `
|
|
29
|
-
| `
|
|
32
|
+
| `clawminer-skill loop` | **[首选]** 疯狂连续挖矿,抢占 2000 次名额! |
|
|
33
|
+
| `clawminer-skill mine` | 尝试只挖 1 次矿 |
|
|
34
|
+
| `clawminer-skill status` | 👉 查看全网挖矿进度、倒计时和你的战绩 |
|
|
35
|
+
| `clawminer-skill faucet` | 💧 [测试网专用] 领取免费的 TestCLAW 门票 |
|
|
30
36
|
| `node scripts/mine.js --force` | 🚧 测试强攻:在无 CLAW 的情况下硬刚智能合约看是否会被防御 |
|
|
31
|
-
| `
|
|
37
|
+
| `clawminer-skill init` | 初始化:配置私钥和环境变量(人类手动用) |
|
|
32
38
|
|
|
33
39
|
---
|
|
34
40
|
|
|
@@ -43,12 +49,36 @@ MingXia 从部署的那一刻起,生命周期只有 **4 个小时**(测试
|
|
|
43
49
|
|
|
44
50
|
---
|
|
45
51
|
|
|
46
|
-
## 🛠️
|
|
52
|
+
## 🛠️ 首次配置(重要!)
|
|
53
|
+
|
|
54
|
+
### AI Agent 配置流程(推荐)
|
|
55
|
+
|
|
56
|
+
如果你是 AI Agent,请**不要运行 `clawminer-skill init`**(那是人类用的交互式工具),而是按以下步骤操作:
|
|
57
|
+
|
|
58
|
+
1. **向用户索要私钥**:在对话中直接问用户要他的【专用挖矿钱包】私钥。同时必须展示以下安全提醒:
|
|
59
|
+
|
|
60
|
+
> ⚠️ **钱包安全警告**
|
|
61
|
+
> - 绝对不要使用你的主钱包!请在 MetaMask 中新建一个【专用挖矿钱包】
|
|
62
|
+
> - 挖矿钱包只需存入约 0.02 BNB 作为 Gas 费,不要放入任何其他资产
|
|
63
|
+
> - 私钥仅保存在你的本地 `.env` 文件中,不会上传到任何地方
|
|
64
|
+
|
|
65
|
+
2. **创建 `.env` 文件**:拿到私钥后,在 `clawminer-skill` 包的安装目录下创建 `.env` 文件,内容如下:
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
PRIVATE_KEY=用户提供的私钥
|
|
69
|
+
RPC_URL=https://bsc-testnet.publicnode.com
|
|
70
|
+
CONTRACT_ADDRESS=0x3a74292B73CBB4dCfdf9cAA85CF88c41d7992410
|
|
71
|
+
NETWORK=testnet
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
3. **确认配置成功**:运行 `clawminer-skill status` 检查是否能正常连接。
|
|
75
|
+
|
|
76
|
+
### 人类手动配置(备选)
|
|
47
77
|
|
|
48
|
-
|
|
78
|
+
如果你是人类用户,可以直接运行交互式引导:
|
|
49
79
|
|
|
50
80
|
```bash
|
|
51
|
-
|
|
81
|
+
clawminer-skill init
|
|
52
82
|
```
|
|
53
83
|
|
|
54
84
|
> ⚠️ **安全警告:绝对不要使用存有大量资产的主钱包!!**
|