@candlelabs/metadata
v1.0.6
Published
Metadata Tools for AirSwap Developers
Downloads
2
Readme
Metadata
Token Metadata Tools for AirSwap Developers
Resources
- About → https://about.airswap.io/
- Website → https://www.airswap.io/
- Twitter → https://twitter.com/airswap
- Chat → https://chat.airswap.io/
Usage
Add the package to your project:
yarn add @candlelabs/metadata
Import into your application:
import TokenMetadata from '@candlelabs/metadata';
import * as ethers from 'ethers';
const provider = ethers.getDefaultProvider('mainnet');
const metadata = new TokenMetadata(provider);
const tokens = await metadata.fetchKnownTokens();
Commands
| Command | Description |
| :------------- | :-------------------------------------- |
| yarn
| Install dependencies |
| yarn clean
| Delete the contract build
folder |
| yarn compile
| Compile all contracts to build
folder |