grimoire-aave

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Grimoire Aave Skill

Grimoire Aave Skill

Use the Grimoire CLI to query Aave market data exposed by the SDK.
Preferred:
  • grimoire venue aave ...
If you installed
@grimoirelabs/venues
directly, you can also use
grimoire-aave
.
使用Grimoire CLI查询SDK暴露的Aave市场数据。
推荐用法:
  • grimoire venue aave ...
如果你直接安装了
@grimoirelabs/venues
,也可以使用
grimoire-aave

When to use

适用场景

  • Fetch Aave V3 metadata or reserves for quick VM prototyping.
  • Produce snapshot
    params
    blocks with
    --format spell
    for VM runs.
  • 为快速VM原型开发获取Aave V3元数据或储备信息。
  • 使用
    --format spell
    生成快照
    params
    块,用于VM运行。

Prerequisites

前置条件

  • Global CLI:
    npm i -g @grimoirelabs/cli
  • No install:
    npx -y @grimoirelabs/cli venue aave ...
  • 全局CLI安装:
    npm i -g @grimoirelabs/cli
  • 无需安装直接使用:
    npx -y @grimoirelabs/cli venue aave ...

VM snapshot usage

VM快照用法

Use
--format spell
to emit a VM-ready
params:
block you can paste into a spell.
使用
--format spell
生成可直接粘贴到spell中的VM就绪
params:
块。

Commands

命令

  • grimoire venue aave health [--format <json|table>]
  • grimoire venue aave chains [--format <json|table>]
  • grimoire venue aave markets --chain <id> [--user <address>] [--format <json|table>]
  • grimoire venue aave market --chain <id> --address <market> [--user <address>] [--format <json|table>]
  • grimoire venue aave reserve --chain <id> --market <address> --token <address> [--format <json|table>]
  • grimoire venue aave reserves --chain <id> [--market <address>] [--asset <symbol|address>] [--format <json|table|spell>]
  • grimoire venue aave health [--format <json|table>]
  • grimoire venue aave chains [--format <json|table>]
  • grimoire venue aave markets --chain <id> [--user <address>] [--format <json|table>]
  • grimoire venue aave market --chain <id> --address <market> [--user <address>] [--format <json|table>]
  • grimoire venue aave reserve --chain <id> --market <address> --token <address> [--format <json|table>]
  • grimoire venue aave reserves --chain <id> [--market <address>] [--asset <symbol|address>] [--format <json|table|spell>]

Examples

示例

bash
grimoire venue aave health --format table
grimoire venue aave chains
grimoire venue aave markets --chain 1 --format table
grimoire venue aave market --chain 1 --address 0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2
grimoire venue aave reserve --chain 1 --market 0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2 --token 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
grimoire venue aave reserves --chain 1 --asset USDC --format table
grimoire venue aave reserves --chain 1 --asset USDC --format spell
bash
grimoire venue aave health --format table
grimoire venue aave chains
grimoire venue aave markets --chain 1 --format table
grimoire venue aave market --chain 1 --address 0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2
grimoire venue aave reserve --chain 1 --market 0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2 --token 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
grimoire venue aave reserves --chain 1 --asset USDC --format table
grimoire venue aave reserves --chain 1 --asset USDC --format spell

Supported Chains

支持的链

ChainMarket Address
Ethereum (1)
0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2
Base (8453)
0xA238Dd80C259a72e81d7e4664a9801593F98d1c5
市场地址
Ethereum (1)
0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2
Base (8453)
0xA238Dd80C259a72e81d7e4664a9801593F98d1c5

Amount Format

金额格式

The
@aave/client
SDK uses different amount formats per action:
ActionFormatExample (0.1 USDC)
supply
value: "0.1"
Human-readable BigDecimal
borrow
value: "0.1"
Human-readable BigDecimal
withdraw
value: { exact: "100000" }
Raw amount in
exact
wrapper
repay
value: { exact: "100000" }
Raw amount in
exact
wrapper
The adapter handles this conversion automatically.
@aave/client
SDK针对不同操作使用不同的金额格式:
操作格式示例(0.1 USDC)
存入
value: "0.1"
人类可读的BigDecimal
借入
value: "0.1"
人类可读的BigDecimal
取出
value: { exact: "100000" }
原始金额包裹在
exact
偿还
value: { exact: "100000" }
原始金额包裹在
exact
适配器会自动处理这种转换。

Notes

注意事项

  • Outputs JSON plus a human-readable table.
  • Only public SDK endpoints are exposed.
  • 输出JSON格式以及人类可读的表格格式。
  • 仅暴露公开的SDK端点。