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
- Host: GitHub
- URL: https://github.com/ericglau/defi-ls
- Owner: ericglau
- License: epl-2.0
- Created: 2020-05-03T02:15:44.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T17:00:34.000Z (over 3 years ago)
- Last Synced: 2025-04-30T18:44:48.550Z (about 1 year ago)
- Topics: defi, ethereum, nodejs
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=ericglau.defi-ls
- Size: 5.08 MB
- Stars: 32
- Watchers: 2
- Forks: 4
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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/).

## 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.