@@ -46,6 +46,7 @@ npm run ag -- bootstrap --mode agent --profile prod --chain base --signer readon
4646- ` subgraph list|check|query `
4747- ` baazaar listing get|active|mine ` (subgraph-first read wrappers)
4848- ` auction get|active|mine|bids|bids-mine ` (subgraph-first read wrappers)
49+ - ` auction bid|bid-unbid ` (first-class write UX)
4950- ` <domain> read ` (routes to generic onchain call for that domain)
5051
5152Planned domain namespaces are stubbed for parity tracking:
@@ -54,7 +55,7 @@ Planned domain namespaces are stubbed for parity tracking:
5455
5556Many Base-era write flows are already executable as mapped aliases in those namespaces (internally routed through ` onchain send ` ).
5657Mapped writes now include built-in ABI defaults, so ` --abi-file ` is no longer required for mapped command execution/help.
57- Example with built-in defaults: ` ag auction bid --args-json '[...]' --dry-run --json `
58+ Example with built-in defaults: ` ag baazaar buy-now --args-json '[...]' --dry-run --json `
5859Example with explicit metadata: ` ag lending create --abi-file ./abis/GotchiLendingFacet.json --address 0x... --args-json '[...]' --json `
5960
6061## Command help and discoverability
@@ -71,7 +72,6 @@ Mapped write commands now expose their onchain function mapping, defaults (if av
7172
7273``` bash
7374ag baazaar buy-now --help
74- ag auction bid --help
7575```
7676
7777If you provide ` --abi-file ` with ` --help ` , the CLI prints ABI-derived function signature and input names for the mapped method:
@@ -171,6 +171,27 @@ Raw GraphQL passthrough (typed projection remains included):
171171npm run ag -- auction active --first 5 --raw --json
172172```
173173
174+ ## First-class auction bidding
175+
176+ Single auction bid (no manual ABI/address/arg packing):
177+
178+ ``` bash
179+ npm run ag -- auction bid --auction-id 5666 --amount-ghst 1 --dry-run --json
180+ ```
181+
182+ Bid all currently unbid auctions up to a max total:
183+
184+ ``` bash
185+ npm run ag -- auction bid-unbid --amount-ghst 1 --max-total-ghst 10 --dry-run --json
186+ ```
187+
188+ Notes:
189+
190+ - ` auction bid ` resolves GBM diamond + ABI internally.
191+ - Preflight checks include auction-open state, expected/unbid checks, minimum bid, GHST balance, and GHST allowance.
192+ - ` --auto-approve ` can submit GHST ` approve() ` automatically when allowance is insufficient.
193+ - ` auction bid-unbid ` emits per-auction results and explicit skip reasons in one JSON report.
194+
174195## Signer backends
175196
176197- ` readonly ` (read-only mode)
@@ -179,6 +200,7 @@ npm run ag -- auction active --first 5 --raw --json
179200- ` remote:URL|ADDRESS|AUTH_ENV ` (HTTP signer service)
180201- ` ledger:DERIVATION_PATH|ADDRESS|BRIDGE_ENV ` (external bridge command signer)
181202- ` bankr[:ADDRESS|API_KEY_ENV|API_URL] ` (Bankr-native signer via ` /agent/me ` + ` /agent/submit ` ; defaults: ` BANKR_API_KEY ` , ` https://api.bankr.bot ` )
203+ - Optional profile env file support (` bootstrap --env-file <path> ` ) plus Bankr auto-discovery (` $AGCLI_BANKR_ENV_FILE ` , ` $AGCLI_HOME/bankr.env ` , ` $AGCLI_HOME/.env.bankr ` , ` ~/.config/openclaw/bankr.env ` , ` ./.env.bankr ` , ` ./bankr.env ` )
182204
183205Remote signer contract:
184206
@@ -195,7 +217,7 @@ Bankr bootstrap example:
195217
196218``` bash
197219BANKR_API_KEY=... \
198- npm run ag -- bootstrap --mode agent --profile bankr --chain base --signer bankr --json
220+ npm run ag -- bootstrap --mode agent --profile bankr --chain base --signer bankr --env-file ~ /.config/openclaw/bankr.env -- json
199221```
200222
201223Ledger bridge contract:
0 commit comments