An open API service indexing awesome lists of open source software.

https://github.com/ericglau/defi-ls

Ethereum DeFi Language Support for VS Code
https://github.com/ericglau/defi-ls

defi ethereum nodejs

Last synced: 4 months ago
JSON representation

Ethereum DeFi Language Support for VS Code

Awesome Lists containing this project

README

          

# Ethereum DeFi Language Support

Ethereum DeFi support for NodeJS applications in VS Code.
Features [Token Lists](https://tokenlists.org/) support, market data from [CoinGecko API](https://www.coingecko.com/en/api), and address information from [Amberdata](https://amberdata.io/).

![](images/token.gif)

## Features

- Diagnostics and quick fixes for address checksum failures and non-checksum addresses.
- Code completion for Ethereum token addresses by name.
- Hover over token addresses for live data including price, market cap, and daily volumes.
- Code lens for Ethereum addresses with Etherscan links for mainnet and testnets.
- Hover over Ethereum addresses for live data including ETH/token balances and dollar values.
- Automatic ENS name resolution and reverse resolution.
- Quick fixes to convert addresses to ENS names and vice versa.
- Code snippets for DeFi applications such as pTokens and Uniswap v2 SDKs, and ERC20 Contract ABI.
- Highlight a contract address to generate ABI for Etherscan verified contracts.

Click [here](DEMO.md) for a demo of the above features.

## Setup

Go to the VS Code settings, search for the following settings and enter the required values:
- Code Lens: Enable
- Infura: Enter your Infura Project ID and Project Secret from https://infura.io/
- Amberdata: Enter your Amberdata API key from https://amberdata.io/
- Etherscan: Enter your Etherscan API key from https://etherscan.io/
- Token List: URL to a JSON file compatible with the [Token Lists standard](https://tokenlists.org/). Default is the [Uniswap Default List](https://gateway.ipfs.io/ipns/tokens.uniswap.org).

The above secrets and API keys are not strictly required, but are needed if you want to enable full functionality of this extension.