Loading...
Loading...
Compare original and translation side by side
Status: Pre-release (internal only, not in public registry) Agent quick check:Agent rebuild:node dist/cli.js versionnpm install && npm run build
@lista-dao/moolah-lending-sdklista-wallet-connect状态: 预发布阶段(仅限内部使用,未纳入公开注册表) Agent快速检查:Agent重新构建:node dist/cli.js versionnpm install && npm run build
@lista-dao/moolah-lending-sdklista-wallet-connectlistalistalistalistalista-lendinglista-wallet-connectlistalistalistalistalista-lendinglista-wallet-connectpairauthsigntopicsessionlista-wallet-connectdepositwithdrawsupplyborrowrepaymarket-withdrawlista-lendingholdingsvaultsmarketslista-lendingposition reportrisk checkdaily digestlistacheck my positionslista-lendinglistamarket listvault listlista-lendinglistapairauthsigntopicsessionlista-wallet-connectdepositwithdrawsupplyborrowrepaymarket-withdrawlista-lendingholdingsvaultsmarketslista-lendingposition reportrisk checkdaily digestlistacheck my positionslista-lendinglistamarket listvault listlista-lendinglistavaultsselect --vaultdepositwithdrawmarketsselect --marketsupplyborrowrepaymarket-withdrawholdingsconfigversionvaultsselect --vaultdepositwithdrawmarketsselect --marketsupplyborrowrepaymarket-withdrawholdingsconfigversionselect/supply/borrow/repay/market-withdrawzone === 3termType === 1marketsselect --marketunsupported_market_typeholdingsisSmartLendingisFixedTermisActionableselect/supply/borrow/repay/market-withdrawzone === 3termType === 1marketsselect --marketunsupported_market_typeholdingsisSmartLendingisFixedTermisActionableskills/lista-lending/
├── SKILL.md
├── package.json
├── tsconfig.json
└── src/
├── cli/ # args/help/meta/run
├── api/ # vault/market/user read-side queries
├── sdk/ # SDK client + market runtime prefetch
├── executor/ # tx execution + receipt polling
├── commands/ # command handlers
│ ├── shared/ # context/errors/output/tx helpers
│ ├── select/
│ ├── borrow/
│ └── repay/
├── presenters/
├── utils/
├── config.ts
├── context.ts
├── api.ts # API facade export
├── sdk.ts # SDK facade export
├── executor.ts # executor facade export
└── cli.ts # CLI entrypointsrc/cli/*src/cli.tssrc/api/*vaultmarketusersrc/sdk/client.tssrc/sdk/market-runtime.tsborrowrepaysimulateexecuteskills/lista-lending/
├── SKILL.md
├── package.json
├── tsconfig.json
└── src/
├── cli/ # args/help/meta/run
├── api/ # vault/market/user read-side queries
├── sdk/ # SDK client + market runtime prefetch
├── executor/ # tx execution + receipt polling
├── commands/ # command handlers
│ ├── shared/ # context/errors/output/tx helpers
│ ├── select/
│ ├── borrow/
│ └── repay/
├── presenters/
├── utils/
├── config.ts
├── context.ts
├── api.ts # API facade export
├── sdk.ts # SDK facade export
├── executor.ts # executor facade export
└── cli.ts # CLI entrypointsrc/cli/*src/cli.tssrc/api/*vaultmarketusersrc/sdk/client.tssrc/sdk/market-runtime.tsborrowrepaysimulateexecutelista-wallet-connectwallet-topicwallet-address>= 18.0.0>= 20lista-wallet-connectskills/lista-wallet-connect/dist/cli.jslista-lendingskills/lista-lending/dist/cli.jslista-wallet-connectwallet-topicwallet-address>= 18.0.0>= 20lista-wallet-connectskills/lista-wallet-connect/dist/cli.jslista-lendingskills/lista-lending/dist/cli.jsundefinedundefined
Agent execution path:
```bash
cd skills/lista-lending
node dist/cli.js <command> [options]
Agent执行路径:
```bash
cd skills/lista-lending
node dist/cli.js <command> [options]stdoutstderrstdoutstderrvaultsVaultAssetTVL (USD)APYCuratormarketsCollateralLoanLLTVBorrow RateLiquidity (USD)holdingsVaultChainDepositedDeposited USDAPYWallet BalanceMarketChainCollateral USDBorrowed USDLTVHealthMarketChainReasonCollateral USDBorrowed USDvaultsmarketsholdingszone/termTypeReasonisSmartLending => SmartLendingisFixedTerm => Fixed-termhealth = LLTV / LTVLTV > 0health = 100Healthyhealth >= 1.2Warning1.0 <= health < 1.2Riskhealth < 1.0WarningRiskvaults金库资产TVL(美元)APY管理者markets抵押物贷款LLTV借款利率流动性(美元)holdings金库链存入金额存入金额(美元)APY钱包余额市场链抵押物(美元)借款金额(美元)LTV健康度市场链原因抵押物(美元)借款金额(美元)vaultsmarketsholdingszone/termType原因isSmartLending => 智能借贷市场isFixedTerm => 固定期限市场LTV > 0健康度 = LLTV / LTV健康度 = 100健康健康度 >= 1.2警告1.0 <= 健康度 < 1.2风险健康度 < 1.0警告风险eip155:56eip155:1eip155:56eip155:1versionconfigvaultsmarketsholdingsselectdepositwithdrawsupplyborrowrepaymarket-withdrawversionconfigvaultsmarketsholdingsselectdepositwithdrawsupplyborrowrepaymarket-withdraw--chain <eip155:56|eip155:1>--wallet-topic <topic>--wallet-address <0x...>--chain <eip155:56|eip155:1>--wallet-topic <topic>--wallet-address <0x...>versionversionnode dist/cli.js versionnode dist/cli.js versionconfigconfigundefinedundefined
Notes:
- Config file: `~/.agent-wallet/lending-config.json`
- Chain fallback RPCs are still used if primary RPC fails.
说明:
- 配置文件:`~/.agent-wallet/lending-config.json`
- 如果主RPC失败,仍会使用链的备用RPC。vaultsvaults--page--page-size--sort--order--zone--keyword--assets <a,b>--curators <a,b>node dist/cli.js vaults
node dist/cli.js vaults --chain eip155:1
node dist/cli.js vaults --sort apy --order desc --page 1 --page-size 10
node dist/cli.js vaults --assets 0x8d0d...,0x55d3... --curators "Lista DAO,Pangolins"--page--page-size--sort--order--zone--keyword--assets <a,b>--curators <a,b>node dist/cli.js vaults
node dist/cli.js vaults --chain eip155:1
node dist/cli.js vaults --sort apy --order desc --page 1 --page-size 10
node dist/cli.js vaults --assets 0x8d0d...,0x55d3... --curators "Lista DAO,Pangolins"marketsmarkets--page--page-size--sort--order--zone--keyword--loans <a,b>--collaterals <a,b>node dist/cli.js markets
node dist/cli.js markets --chain eip155:56 --sort liquidity --order desc --page-size 20
node dist/cli.js markets --loans USD1,USDT --collaterals USD1,BTCBzone=3termType=1Smart Lending and fixed-term market operations are currently not supported in this skill. For full functionality, please use the Lista website.--page--page-size--sort--order--zone--keyword--loans <a,b>--collaterals <a,b>node dist/cli.js markets
node dist/cli.js markets --chain eip155:56 --sort liquidity --order desc --page-size 20
node dist/cli.js markets --loans USD1,USDT --collaterals USD1,BTCBzone=3termType=1本Skill目前不支持智能借贷和固定期限市场的操作。如需完整功能,请使用Lista官网。holdingsholdings--address <0x...>userAddress--scope <all|vault|market|selected>undefined--address <0x...>userAddress--scope <all|vault|market|selected>undefined
Market position fields include:
- User-facing fields:
- `isSmartLending` (`zone === 3`)
- `isFixedTerm` (`termType === 1`)
- `isActionable` (`!isSmartLending && !isFixedTerm`)
- Raw JSON technical fields (debug/integration only):
- `zone`, `termType`
市场仓位字段包括:
- 面向用户的字段:
- `isSmartLending`(`zone === 3`)
- `isFixedTerm`(`termType === 1`)
- `isActionable`(`!isSmartLending && !isFixedTerm`)
- 原始JSON技术字段(仅用于调试/集成):
- `zone`、`termType`selectselect--vault--market--show--clearundefined--vault--market--show--clearundefined
Notes:
- Market selection rejects SmartLending and fixed-term markets.
- Context file: `~/.agent-wallet/lending-context.json`
说明:
- 市场选择会拒绝SmartLending和固定期限市场。
- 上下文文件:`~/.agent-wallet/lending-context.json`depositdeposit--amount--vaultundefined--amount--vaultundefinedundefinedundefinedwithdrawwithdraw--amount--withdraw-allnode dist/cli.js withdraw --amount 0.5
node dist/cli.js withdraw --withdraw-all--amount--withdraw-allnode dist/cli.js withdraw --amount 0.5
node dist/cli.js withdraw --withdraw-allsupplysupply--amountnode dist/cli.js supply --amount 2--amountnode dist/cli.js supply --amount 2borrowborrow--simulate--simulate --simulate-supply <amt>--amount <amt>undefined--simulate--simulate --simulate-supply <amt>--amount <amt>undefinedundefinedundefinedrepayrepay--simulate --amount <amt>--simulate --repay-all--amount <amt>--repay-allundefined--simulate --amount <amt>--simulate --repay-all--amount <amt>--repay-allundefinedundefinedundefinedmarket-withdrawmarket-withdraw--amount--withdraw-allnode dist/cli.js market-withdraw --amount 0.5
node dist/cli.js market-withdraw --withdraw-all--amount--withdraw-allnode dist/cli.js market-withdraw --amount 0.5
node dist/cli.js market-withdraw --withdraw-alllista-wallet-connectcallcallstatus: "rejected", reason: "user_rejected"lista-wallet-connectcallcallstatus: "rejected", reason: "user_rejected"undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedeip155:56eip155:1borrow --simulateuser_rejectedeip155:56eip155:1borrow --simulateuser_rejected