grimoire-aave
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGrimoire 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 directly, you can also use .
@grimoirelabs/venuesgrimoire-aave使用Grimoire CLI查询SDK暴露的Aave市场数据。
推荐用法:
grimoire venue aave ...
如果你直接安装了,也可以使用。
@grimoirelabs/venuesgrimoire-aaveWhen to use
适用场景
- Fetch Aave V3 metadata or reserves for quick VM prototyping.
- Produce snapshot blocks with
paramsfor VM runs.--format spell
- 为快速VM原型开发获取Aave V3元数据或储备信息。
- 使用生成快照
--format spell块,用于VM运行。params
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 to emit a VM-ready block you can paste into a spell.
--format spellparams:使用生成可直接粘贴到spell中的VM就绪块。
--format spellparams: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 spellbash
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 spellSupported Chains
支持的链
| Chain | Market Address |
|---|---|
| Ethereum (1) | |
| Base (8453) | |
| 链 | 市场地址 |
|---|---|
| Ethereum (1) | |
| Base (8453) | |
Amount Format
金额格式
The SDK uses different amount formats per action:
@aave/client| Action | Format | Example (0.1 USDC) |
|---|---|---|
| supply | | Human-readable BigDecimal |
| borrow | | Human-readable BigDecimal |
| withdraw | | Raw amount in |
| repay | | Raw amount in |
The adapter handles this conversion automatically.
@aave/client| 操作 | 格式 | 示例(0.1 USDC) |
|---|---|---|
| 存入 | | 人类可读的BigDecimal |
| 借入 | | 人类可读的BigDecimal |
| 取出 | | 原始金额包裹在 |
| 偿还 | | 原始金额包裹在 |
适配器会自动处理这种转换。
Notes
注意事项
- Outputs JSON plus a human-readable table.
- Only public SDK endpoints are exposed.
- 输出JSON格式以及人类可读的表格格式。
- 仅暴露公开的SDK端点。