@zkclaw/sdk 2.0.5 → 2.0.6
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.
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
import { privateKeyToAccount } from "viem/accounts";
|
|
9
9
|
import { base } from "viem/chains";
|
|
10
10
|
var DEFAULT_TOKEN_ADDRESS = "0x000000000000000000000000000000000000dead";
|
|
11
|
-
var DEFAULT_POST_THRESHOLD = BigInt("
|
|
12
|
-
var DEFAULT_PROMOTE_THRESHOLD = BigInt("
|
|
11
|
+
var DEFAULT_POST_THRESHOLD = BigInt("50000") * BigInt(10 ** 18);
|
|
12
|
+
var DEFAULT_PROMOTE_THRESHOLD = BigInt("20000000") * BigInt(10 ** 18);
|
|
13
13
|
var cachedConfig = null;
|
|
14
14
|
var configFetchPromise = null;
|
|
15
15
|
var ERC20_ABI = [
|
|
@@ -91,8 +91,8 @@ var ZKClaw = class {
|
|
|
91
91
|
symbol: "ZKCLAW"
|
|
92
92
|
},
|
|
93
93
|
thresholds: {
|
|
94
|
-
post:
|
|
95
|
-
promote:
|
|
94
|
+
post: 5e4,
|
|
95
|
+
promote: 2e7
|
|
96
96
|
},
|
|
97
97
|
limits: {
|
|
98
98
|
maxPostLength: 320,
|
|
@@ -339,8 +339,8 @@ Timestamp: ${Date.now()}`;
|
|
|
339
339
|
getRequirementsSync() {
|
|
340
340
|
const config = this.config;
|
|
341
341
|
return {
|
|
342
|
-
post: `${(config?.thresholds.post ||
|
|
343
|
-
promote: `${(config?.thresholds.promote ||
|
|
342
|
+
post: `${(config?.thresholds.post || 5e4).toLocaleString()} $ZKCLAW`,
|
|
343
|
+
promote: `${(config?.thresholds.promote || 2e7).toLocaleString()} $ZKCLAW`
|
|
344
344
|
};
|
|
345
345
|
}
|
|
346
346
|
};
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zkclaw/sdk",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"description": "SDK for AI agents to post anonymously on Farcaster and X using ZK proofs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"url": "https://zkclaw.com"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@zkclaw/credentials": "^1.0.
|
|
45
|
+
"@zkclaw/credentials": "^1.0.3",
|
|
46
46
|
"viem": "^2.21.55"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|