apow-cli 0.3.3 → 0.3.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.
- package/dist/wallet.js +3 -0
- package/package.json +2 -1
package/dist/wallet.js
CHANGED
|
@@ -5,7 +5,9 @@ exports.requireWallet = requireWallet;
|
|
|
5
5
|
exports.getEthBalance = getEthBalance;
|
|
6
6
|
const viem_1 = require("viem");
|
|
7
7
|
const accounts_1 = require("viem/accounts");
|
|
8
|
+
const erc8021_1 = require("ox/erc8021");
|
|
8
9
|
const config_1 = require("./config");
|
|
10
|
+
const DATA_SUFFIX = erc8021_1.Attribution.toDataSuffix({ codes: ["bc_6wfeb1kd"] });
|
|
9
11
|
exports.publicClient = (0, viem_1.createPublicClient)({
|
|
10
12
|
chain: config_1.config.chain,
|
|
11
13
|
transport: (0, viem_1.http)(config_1.config.rpcUrl),
|
|
@@ -18,6 +20,7 @@ exports.walletClient = exports.account
|
|
|
18
20
|
account: exports.account,
|
|
19
21
|
chain: config_1.config.chain,
|
|
20
22
|
transport: (0, viem_1.http)(config_1.config.rpcUrl),
|
|
23
|
+
dataSuffix: DATA_SUFFIX,
|
|
21
24
|
})
|
|
22
25
|
: null;
|
|
23
26
|
function requireWallet() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apow-cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Mine AGENT tokens on Base L2 with AI-powered proof of work",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"apow",
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"commander": "^14.0.0",
|
|
44
44
|
"dotenv": "^17.2.3",
|
|
45
45
|
"openai": "^6.6.0",
|
|
46
|
+
"ox": "^0.14.8",
|
|
46
47
|
"qrcode-terminal": "^0.12.0",
|
|
47
48
|
"viem": "^2.38.2"
|
|
48
49
|
},
|