AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
翻譯準備中
Add a TVL adapter and submit a pull request for DefiLlama
翻譯準備中
AI 摘要 · README
開發工具JavaScript · SolidityGitHub @DefiLlama自行安裝營運者未確認
試用過了嗎? 點一下就好,不需要登入。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
安裝型專案無需部署網域也可驗證。個人儲存庫可透過 GitHub 登入驗證,組織儲存庫可使用上方的儲存庫驗證檔案。
DefiLlama/DefiLlama-Adapters
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
Follow this guide to create an adapter and submit a PR with it.
Also, don't hesitate to send a message on our discord if we're late to merge your PR.
This repo is for TVL adapters.
For other metrics such as volume, fees, revenue, aggregators, open-interest, active-users, etc. submit the PR to DefiLlama/dimension-adapters.檢視完整 README ↗Follow this guide to create an adapter and submit a PR with it.
Also, don't hesitate to send a message on our discord if we're late to merge your PR.
This repo is for TVL adapters. For other metrics such as
volume,fees,revenue,aggregators,open-interest,active-users, etc. submit the PR to DefiLlama/dimension-adapters.
pnpm-lock.yaml or pnpm-workspace.yaml files as part of your changes, that messes up our CI.Please send answers to questions there https://github.com/DefiLlama/DefiLlama-Adapters/blob/main/pull_request_template.md when creating a PR.
This repo includes an agent skill at skills/adapter-author/ for AI-assisted DefiLlama TVL adapter authoring. It helps coding agents validate whether a request belongs in DefiLlama-Adapters, choose existing adapter patterns, implement TVL adapters in repo style, run node test.js, and prepare PR metadata. See skills/adapter-author/SKILL.md for usage.
This is a work in progress. DefiLlama aims to be transparent, accurate, and open source.
If you have any suggestions, want to contribute or want to chat, please join our discord and drop a message.
node test.js projects/pangolin/index.js
# Add a timestamp at the end to run the adapter at a historical timestamp
node test.js projects/aave/v3.js 1729080692
# or using YYYY-MM-DD
node test.js projects/aave/v3.js 2024-10-16
If you want to change RPC providers because you need archive node access or because the default ones don't work well enough you can do so by creating an .env file and filling it with the env variables to overwrite:
ETHEREUM_RPC="..."
BSC_RPC="..."
POLYGON_RPC="..."
The name of each rpc is {CHAIN-NAME}_RPC, and the name we use for each chain can be found here. If you run into issues with a chain make sure to update the sdk with npm update @defillama/sdk.