mikedemarais / rainbow-token-list

it not ready yet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🌈️ 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.

About

it not ready yet

License:MIT License


Languages

Language:TypeScript 95.6%Language:JavaScript 4.4%