DD

defillama/defillama-adapters

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

1273 stars 品質 55 トレンド 44

このガイドに従ってアダプターを作成し、PRを提出してください。

概要

このガイドに従ってアダプターを作成し、PRを提出してください。 また、PRの統合が遅れた場合は、遠慮なくDiscordでメッセージを送ってください。 このリポジトリはアダプター用です。ボリューム、手数料、収益、アグリゲーター、オープンインタレスト、アクティブユーザー数などの他の指標については、PRをDefiLlama/ディメンションアダプターに提出してください。 1. どうかお願い 2.アダプターがマージされると、UIに表示されるまでに時間がかかります。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を提出してください。

また、PRの統合が遅れた場合は、遠慮なくDiscordでメッセージを送ってください。

このリポジトリはTVLアダプター用です。 volume、fees、revenue、aggregators、open-interest、active-usersなど他の指標については、PRをDefiLlama/ディメンションアダプターに提出してください。

  1. どうか必ず PRを掲示する際に「管理者による編集を許可する」を有効にしてください。
  2. アダプターがマージされると、UIに表示されるまでに時間がかかります。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 により自動翻訳されています。技術的な詳細は原文をご確認ください。

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.

  1. PLEASE PLEASE enable “Allow edits by maintainers” while putting up the PR.
  2. Once your adapter has been merged, it takes time to show on the UI. No need to notify us on Discord.
  3. 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.
  4. For updating listing info Please send a mail to [email protected]
  5. Do not edit/push pnpm-lock.yaml or pnpm-workspace.yaml files as part of your changes, that messes up our CI.
  6. 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

GitHub で README 全文を見る

推奨ツール

別のキーワードを試すか、フィルタを外してください。

インストール

npx skillfish add defillama/defillama-adapters
MCP 初心者?mcpskill.org のガイドから始めましょう →