rainbow-token-list-test
TypeScript icon, indicating that this package has built-in type declarations

1.42.0 • Public • Published

🌈️ Rainbow Token List tool

This tool compiles a list of ERC20 tokens from various sources.

Use

Load the updated Token List and overwrite it at output/rainbow-token-list.json with:

yarn write

This package comes bundled with a copy in case you are unable to load fresh data over the Internet. You can import it like so:

import tokens from 'rainbow-token-list/rainbow-token-list.json';

Library interface

/**
 * @module src/lib/build.ts
 * 
 * Parses various pieces of data (contract lists, local property overrides, data
 * sources, etc.) and returns the Token List.
 * 
 * The parser, and therefore also this function, rely on Git. We use
 * isometric-git to avoid needing the Git binary.
 */
async function build(): Token[] {}
/**
 * @module src/lib/write.ts
 * 
 * Calls `build()` and writes the Token List to disk at
 * output/rainbow-token-list.json.
 */
async function write(): void {}

Development

First, set up the Husky hooks with yarn install-husky. To push a new version of the Token List manually, just run git commit.

Notes

  • If you get a zlib: unexpected end of file error when building, run yarn clean.

Readme

Keywords

none

Package Sidebar

Install

npm i rainbow-token-list-test

Weekly Downloads

1

Version

1.42.0

License

MIT

Unpacked Size

4.19 MB

Total Files

52

Last publish

Collaborators

  • ctjlewis