| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Agent-first CLI for automating Aavegotchi app and onchain workflows on Base.
npm install -g aavegotchi-cliFor local development:
npm installAGCLI_PRIVATE_KEY=0x... npm run ag -- bootstrap \
--mode agent \
--profile prod \
--chain base \
--signer env:AGCLI_PRIVATE_KEY \
--policy default \
--jsonFor read-only automation:
npm run ag -- bootstrap --mode agent --profile prod --chain base --signer readonly --jsonPlanned domain namespaces are stubbed for parity tracking:
Many Base-era write flows are already executable as mapped aliases in those namespaces (internally routed through onchain send). Mapped writes now include built-in ABI defaults, so --abi-file is no longer required for mapped command execution/help. Example with built-in defaults: ag baazaar buy-now --args-json '[...]' --dry-run --json Example with explicit metadata: ag lending create --abi-file ./abis/GotchiLendingFacet.json --address 0x... --args-json '[...]' --json
The CLI supports command-targeted help:
ag --help
ag tx send --help
ag help baazaar buy-nowMapped write commands now expose their onchain function mapping, defaults (if available), and required flags:
ag baazaar buy-now --helpIf you provide --abi-file with --help, the CLI prints ABI-derived function signature and input names for the mapped method:
ag baazaar buy-now --help --abi-file ./abis/BaazaarFacet.jsonUnknown commands return suggestions:
ag tx snd --jsonUse --dry-run on write commands to run full preflight without broadcasting:
Supported write surfaces:
Safety rule:
Canonical source aliases:
Default policy is strict allowlist:
Auth:
List configured canonical sources:
npm run ag -- subgraph list --jsonCheck source reachability/introspection:
npm run ag -- subgraph check --source core-base --jsonRun custom GraphQL query:
npm run ag -- subgraph query \
--source gbm-base \
--query 'query($first:Int!){ auctions(first:$first){ id } }' \
--variables-json '{"first":5}' \
--jsonBaazaar wrappers:
npm run ag -- baazaar listing active --kind erc721 --first 20 --skip 0 --json
npm run ag -- baazaar listing mine --kind erc1155 --seller 0x... --json
npm run ag -- baazaar listing get --kind erc721 --id 123 --verify-onchain --jsonGBM wrappers:
npm run ag -- auction active --first 20 --json
npm run ag -- auction bids --auction-id 123 --json
npm run ag -- auction get --id 123 --verify-onchain --jsonRaw GraphQL passthrough (typed projection remains included):
npm run ag -- auction active --first 5 --raw --jsonSingle auction bid (no manual ABI/address/arg packing):
npm run ag -- auction bid --auction-id 5666 --amount-ghst 1 --dry-run --jsonBid all currently unbid auctions up to a max total:
npm run ag -- auction bid-unbid --amount-ghst 1 --max-total-ghst 10 --dry-run --jsonNotes:
Remote signer contract:
Bankr signer contract:
Bankr bootstrap example:
BANKR_API_KEY=... \
npm run ag -- bootstrap --mode agent --profile bankr --chain base --signer bankr --env-file ~/.config/openclaw/bankr.env --jsonLedger bridge contract:
Keychain import example:
AGCLI_KEYCHAIN_PASSPHRASE=your-passphrase \
AGCLI_PRIVATE_KEY=0x... \
npm run ag -- signer keychain import --account-id bot --private-key-env AGCLI_PRIVATE_KEY --json--mode agent implies:
All successful/error responses use a stable envelope:
{
"schemaVersion": "1.0.0",
"command": "tx send",
"status": "ok",
"data": {},
"meta": { "timestamp": "...", "mode": "agent" }
}Raffle/ticket flows are intentionally excluded for Base-era scope.
npm run typecheck
npm test
npm run build
npm run parity:check
npm run smoke:write-dryrun
npm run ag -- helpWrite dry-run smoke test notes:
| Back | FazBrowse Home | New Git URL |