mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 22:43:12 +08:00
37 lines
1.3 KiB
Markdown
37 lines
1.3 KiB
Markdown
# Defillama Adapters
|
|
|
|
Follow [this guide](https://docs.llama.fi/submit-a-project) to create an adapter and submit a PR with it.
|
|
|
|
Also, don't hesitate to send a message on [our discord](https://discord.gg/buPFYXzDDd) if we're late to merge your PR.
|
|
|
|
|
|
## Getting listed
|
|
|
|
Please send answers to questions there https://github.com/DefiLlama/DefiLlama-Adapters/blob/main/pull_request_template.md when creating a PR.
|
|
|
|
## Work in progress
|
|
|
|
This is a work in progress. The goal is to eventually handle historical data. 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](https://discord.gg/buPFYXzDDd) and drop a message.
|
|
|
|
## Testing adapters
|
|
```
|
|
node test.js projects/pangolin/index.js
|
|
```
|
|
|
|
## 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="..."
|
|
FANTOM_RPC="..."
|
|
ARBITRUM_RPC="..."
|
|
OPTIMISM_RPC="..."
|
|
XDAI_RPC="..."
|
|
HARMONY_RPC="..."
|
|
```
|
|
|
|
The name of each rpc is `{CHAIN-NAME}_RPC`, and the name we use for each chain can be found [here](https://github.com/DefiLlama/defillama-sdk/blob/master/src/general.ts#L33)
|