@four-meme/four-meme-ai 1.0.2 → 1.0.3
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/bin/fourmeme.cjs
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
1
|
+
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
3
|
* fourmeme CLI - dispatches to four-meme-integration scripts.
|
|
4
4
|
* Usage: fourmeme <command> [args...]
|
|
5
5
|
* Run "fourmeme --help" for commands.
|
|
6
|
+
* Loads .env from current working directory (where you run fourmeme) if present.
|
|
6
7
|
*/
|
|
7
8
|
const { spawnSync } = require('child_process');
|
|
8
9
|
const path = require('path');
|
|
9
10
|
|
|
11
|
+
// Load .env from cwd (e.g. your project dir) so PRIVATE_KEY, BSC_RPC_URL etc. work when running from a project
|
|
12
|
+
require('dotenv').config({ path: path.join(process.cwd(), '.env') });
|
|
13
|
+
|
|
10
14
|
const root = path.join(__dirname, '..');
|
|
11
15
|
const scriptsDir = path.join(root, 'skills', 'four-meme-integration', 'scripts');
|
|
12
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@four-meme/four-meme-ai",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Four.meme AI skills for creating and trading meme tokens (BSC only)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -42,6 +42,9 @@
|
|
|
42
42
|
"skill",
|
|
43
43
|
"openclaw"
|
|
44
44
|
],
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"dotenv": "^16.0.0"
|
|
47
|
+
},
|
|
45
48
|
"devDependencies": {
|
|
46
49
|
"@types/node": "^20.0.0",
|
|
47
50
|
"tsx": "^4.20.0",
|
|
@@ -177,7 +177,7 @@ This skill declares `requires.env: ["PRIVATE_KEY"]` and `primaryEnv: "PRIVATE_KE
|
|
|
177
177
|
**When not using OpenClaw (standalone)**
|
|
178
178
|
Set **PRIVATE_KEY** (or **FOURMEME_PRIVATE_KEY**) and optionally **BSC_RPC_URL** via the process environment so they are available when running `npx fourmeme` or `node bin/fourmeme.cjs`:
|
|
179
179
|
|
|
180
|
-
- **.env file**:
|
|
180
|
+
- **.env file**: Put a `.env` file in **the directory where you run the `fourmeme` command** (i.e. your project / working directory). Example: if you run `fourmeme quote-buy ...` from `/path/to/my-project`, place `.env` at `/path/to/my-project/.env`. The CLI automatically loads `.env` from that current working directory. Use lines like `PRIVATE_KEY=...` and `BSC_RPC_URL=...`. Do not commit `.env`; add it to `.gitignore`.
|
|
181
181
|
- **Shell export**: `export PRIVATE_KEY=your_hex_key` and `export BSC_RPC_URL=https://bsc-dataseed.binance.org` (or another BSC RPC), then run `npx fourmeme <command> ...`.
|
|
182
182
|
|
|
183
183
|
| Need | Command | When |
|
|
@@ -448,3 +448,4 @@ See [references/tax-token-query.md](references/tax-token-query.md).
|
|
|
448
448
|
| [execute-trade.md](references/execute-trade.md) | Execute buy/sell CLI and contract usage |
|
|
449
449
|
| [event-listening.md](references/event-listening.md) | TokenManager2 event listening (V2) |
|
|
450
450
|
| [tax-token-query.md](references/tax-token-query.md) | TaxToken on-chain fee/tax query (tax-info) |
|
|
451
|
+
| **Official four.meme API and contracts (online)**: [Protocol Integration](https://four-meme.gitbook.io/four.meme/brand/protocol-integration) | API documents, ABIs: TokenManager, TokenManager2, Helper3, TaxToken, etc. |
|