DD

defillama/defillama-adapters

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

1.3천 stars 품질 55 트렌드 44

이 가이드를 따라 어댑터를 만들고 PR을 제출하세요.

개요

이 가이드를 따라 어댑터를 만들고 PR을 제출하세요. 또한, PR 합치가 늦으면 주저하지 말고 디스코드에 메시지를 보내 주세요. 이 저장소는 어댑터용입니다. 거래량, 수수료, 수익, 집계자, 오픈 이익, 활성 사용자 등 다른 지표는 PR을 DefiLlama/dimension-adapters에 제출하세요. 1. 제발 부탁드립니다 2. 어댑터가 병합된 후에는 UI에 표시되기까지 시간이 걸립니다. Discord에서 저희에게 알려주지 마세요. 3. TVL은 블록체인 데이터에서 계산해야 합니다(이유: https://github.com/DefiLlama/DefiLlama-Adapters/discussions/432), 어댑터 생성에 문제가 있으면 저희 디스코드에 접속해 주세요. 기꺼이 도와드리겠습니다. 4. [email protected] 에게 메일을 보내주세요 5. 변경 시 pnpm-lock.yaml 또는 pnpm-workspace.yaml 파일을 편집하거나 푸시하지 마세요. 이는 CI를 망가뜨립니다. 6. 디스코드에 가서 PR을 생성했다고 알릴 필요는 없습니다. 모든 PR을 모니터링하며 가능한 한 빨리 검토하겠습니다 질문에 대한 답변은 거기서 보내주세요 https://github.

개요(AI 번역)

이 가이드를 따라 어댑터를 만들고 PR을 제출하세요.

또한, PR 합치가 늦으면 주저하지 말고 디스코드에 메시지를 보내 주세요.

이 저장소는 TVL 어댑터용입니다. volume, fees, revenue, aggregators, open-interest, active-users 등과 같은 다른 지표는 PR을 DefiLlama/dimension-adapters에 제출하세요.

  1. 꼭 제발 PR 게시 시 “유지보수자 편집 허용” 활성화.
  2. 어댑터가 병합된 후에는 UI에 표시되기까지 시간이 걸립니다. Discord에 알려줄 필요는 없습니다.
  3. TVL은 블록체인 데이터로부터 계산되어야 합니다(이유: https://github.com/DefiLlama/DefiLlama-Adapters/discussions/432), 어댑터 제작에 어려움이 있다면 저희 디스코드에 접속해 주세요. 기꺼이 도와드리겠습니다.
  4. 매물 정보 업데이트용 [email protected] 에게 메일을 보내주세요
  5. 변경 시 pnpm-lock.yaml 또는 pnpm-workspace.yaml 파일을 편집하거나 푸시하지 마세요. 이는 CI를 망가뜨립니다.
  6. 저희 디스코드에 가서 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 가이드부터 시작하세요 →