UNPKG

@volare.finance/utils.js

Version:
52 lines (51 loc) 1.13 kB
/** * @file index.ts * @author astra <astra@volare.finance> * @date 2022 */ import { Address, BigNumber, Hex, Sym } from '../type'; export declare const ONE_BYTES32: Hex; export declare const ZERO_BYTES32: Hex; export declare const ZERO_ADDR: Address; export declare const ZERO: BigNumber; export declare const TX_DEFAULTS: { gasLimit: number; gasPrice: number; }; export interface IChain { name: string; endpoint: string; explorer: string; symbol: Sym; decimals: number; } export declare enum ChainId { Mainnet = 1, Goerli = 5, Optimism = 10, BSC = 56, Matic = 137, Opera = 250, Ganache = 5777, Hardhat = 31337, Fuji = 43113, Avalanche = 43114, Mumbai = 80001, Sepolia = 11155111 } export declare const NETWORKS: { [key: number]: string; }; export declare const ENDPOINTS: { [key: number]: string; }; export declare const EXPLORERS: { [key: number]: string; }; export declare const SYMBOLS: { [key: number]: Sym; }; export declare const DECIMALS: { [key: number]: number; }; export declare const CHAINS: (key: number) => IChain;