UNPKG

904 BTypeScriptView Raw
1/// <reference types="node" />
2import { LoadConfig } from "../types";
3export declare const findERC20SignaturesInfo: (userLoadConfig: LoadConfig) => Promise<string | null>;
4/**
5 * Retrieve the token information by a given contract address if any
6 */
7export declare const byContractAddressAndChainId: (contract: string, chainId: number, erc20SignaturesBlob?: string | null | undefined) => TokenInfo | null | undefined;
8/**
9 * list all the ERC20 tokens informations
10 */
11export declare const list: (erc20SignaturesBlob?: string | undefined) => TokenInfo[];
12export declare type TokenInfo = {
13 contractAddress: string;
14 ticker: string;
15 decimals: number;
16 chainId: number;
17 signature: Buffer;
18 data: Buffer;
19};
20export declare type API = {
21 byContractAndChainId: (addr: string, id: number) => TokenInfo | null | undefined;
22 list: () => TokenInfo[];
23};
24//# sourceMappingURL=erc20.d.ts.map
\No newline at end of file