From a161bd733d2ab7a10eafdd66b27d9f46bcf60a11 Mon Sep 17 00:00:00 2001 From: David Lau Date: Wed, 3 Jun 2026 16:27:53 +0800 Subject: [PATCH] fix(portfolio): rename activity type values to camelCase MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Rename transfer_in/transfer_out → transferIn/transferOut in portfolio activity --type filter - Update SKILL.md and portfolio.ts help text to reflect new enum values Co-Authored-By: Claude Sonnet 4.6 --- skills/gmgn-portfolio/SKILL.md | 2 +- src/commands/portfolio.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/skills/gmgn-portfolio/SKILL.md b/skills/gmgn-portfolio/SKILL.md index afc5b66..a9e2cef 100644 --- a/skills/gmgn-portfolio/SKILL.md +++ b/skills/gmgn-portfolio/SKILL.md @@ -186,7 +186,7 @@ gmgn-cli portfolio token-balance \ | `--token
` | Filter by token | | `--limit ` | Page size | | `--cursor ` | Pagination cursor (pass the `next` value from the previous response) | -| `--type ` | Repeatable: `buy` / `sell` / `add` / `remove` / `transfer` | +| `--type ` | Repeatable: `buy` / `sell` / `transferIn` / `transferOut` / `add` / `remove` | The activity response includes a `next` field. Pass it to `--cursor` to fetch the next page. diff --git a/src/commands/portfolio.ts b/src/commands/portfolio.ts index 95ba6d7..45973d3 100644 --- a/src/commands/portfolio.ts +++ b/src/commands/portfolio.ts @@ -51,7 +51,7 @@ export function registerPortfolioCommands(program: Command): void { .option("--token
", "Filter by token contract address") .option("--limit ", "Page size", parseInt) .option("--cursor ", "Pagination cursor") - .option("--type ", "Activity type filter, repeatable: buy / sell / add / remove / transfer") + .option("--type ", "Activity type filter, repeatable: buy / sell / transferIn / transferOut / add / remove") .option("--raw", "Output raw JSON") .action(async (opts) => { validateChain(opts.chain);