
按照本指南制作适配器并提交永久居民申请。
概览
按照本指南制作适配器并提交永久居民申请。 另外,如果我们合并PR迟到了,别犹豫,在我们的Discord上发消息。 该仓库是针对适配器的。对于其他指标,如交易量、费用、收入、聚合器、开放兴趣、活跃用户等,请向DefiLlama/维度适配器提交PR。 1. 请 2.一旦你的适配器合并,界面显示需要时间。无需在Discord上通知我们。3. TVL必须从区块链数据中计算(原因:https://github.com/DefiLlama/DefiLlama-Adapters/discussions/432),] 如果你在创建适配器时遇到困难,请加入我们的Discord,我们很乐意协助你。4. 请给 [email protected] 发送邮件 5.不要在更改中编辑或推送pnpm-lock.yaml或pnpm-workspace.yaml文件,这会破坏我们的CI。6. 无需去我们的Discord宣布你创建了PR,我们会监控所有PR,并会尽快审核 请在那里发送问题的答案 https://github.
概述(AI 翻译)
按照本指南制作适配器并提交永久居民申请。
另外,如果我们合并PR迟到了,别犹豫,在我们的Discord上发消息。
这个仓库是关于TVL适配器的。 对于其他指标,如
volume、fees、revenue、aggregators、open-interest、active-users等,请提交PR给DefiLlama/维度适配器。
- 请 在发布 PR 时启用“允许维护者编辑”。
- 一旦你的适配器合并完成,界面上显示需要时间。不需要在Discord上通知我们。
- TVL必须从区块链数据中计算(原因:https://github.com/DefiLlama/DefiLlama-Adapters/discussions/432),),如果你在制作适配器时遇到困难,请加入我们的Discord,我们很乐意为你提供帮助。
- 如需更新房源信息 请发送邮件至 [email protected]
- 不要在更改中编辑/推送
pnpm-lock.yaml或pnpm-workspace.yaml文件,这会破坏我们的配置。 - 无需去我们的Discord宣布你创建了PR,我们会监控所有PR,并会尽快审核
被列入名单
请在那里发送问题的回答 https://github.
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Defillama Adapters
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.
- PLEASE PLEASE enable “Allow edits by maintainers” while putting up the PR.
- Once your adapter has been merged, it takes time to show on the UI. No need to notify us on Discord.
- TVL must be computed from blockchain data (reason: https://github.com/DefiLlama/DefiLlama-Adapters/discussions/432), if you have trouble with creating the adapter, please hop onto our discord, we are happy to assist you.
- For updating listing info Please send a mail to [email protected]
- Do not edit/push
pnpm-lock.yamlorpnpm-workspace.yamlfiles as part of your changes, that messes up our CI. - No need to go to our discord and announce that you’ve created a PR, we monitor all PRs and will review it asap
Getting listed
Please send answers to questions there https://github.com/DefiLlama/DefiLlama-Adapters/blob/main/pull_request_template.md when creating a PR.
Agent skill
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.
Work in progress
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.
Testing adapters
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
Changing RPC providers
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.
Adapter rules
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add defillama/defillama-adapters