Skip to content

Commit

Permalink
Merge pull request #2 from DefiLlama/main
Browse files Browse the repository at this point in the history
Update Mantra's fork of DeFi Llama Adapters
  • Loading branch information
tomtsaomantra authored Sep 23, 2021
2 parents c066134 + f3ee159 commit e43c0d1
Show file tree
Hide file tree
Showing 649 changed files with 43,559 additions and 5,481 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ node_modules
run.js
blocks.js
historical-data.js
/.idea
yarn.lock
.DS_Store
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,22 @@ This is a work in progress. The goal is to eventually handle historical data. De

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)
17 changes: 17 additions & 0 deletions env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ETHEREUM_RPC=https://eth-mainnet.gateway.pokt.network/v1/5f3453978e354ab992c4da79
BSC_RPC=https://bsc-dataseed4.binance.org
POLYGON_RPC=https://rpc-mainnet.maticvigil.com/
HECO_RPC=https://http-mainnet.hecochain.com
FANTOM_RPC=https://rpcapi.fantom.network
RSK_RPC=https://public-node.rsk.co
TOMOCHAIN_RPC=https://rpc.tomochain.com
XDAI_RPC=https://xdai.poanetwork.dev
AVAX_RPC=https://api.avax.network/ext/bc/C/rpc
WAN_RPC=https://gwan-ssl.wandevs.org:56891
HARMONY_RPC=https://api.s0.t.hmny.io
THUNDERCORE_RPC=https://mainnet-rpc.thundercore.com
OKEXCHAIN_RPC=https://exchainrpc.okex.org
OPTIMISM_RPC=https://mainnet.optimism.io/
ARBITRUM_RPC=https://arb1.arbitrum.io/rpc
KCC_RPC=https://rpc-mainnet.kcc.network
CELO_RPC=https://forno.celo.org
Loading

0 comments on commit e43c0d1

Please sign in to comment.