UNPKG

@bombearn/sdk

Version:

Interaction framework for the yearn protocol

43 lines (42 loc) 1.4 kB
import { Address } from "./types"; /** * Supported chains in the yearn ecosystem. */ export declare const Chains: { 1: string; 10: string; 250: string; 1337: string; 42161: string; 2300: string; 56: string; }; export declare type Network = "bomb" | "bsc" | "ethereum" | "optimism" | "fantom" | "arbitrum"; export declare type ChainId = keyof typeof Chains; export declare const isEthereum: (chainId: ChainId) => boolean; export declare const isBomb: (chainId: ChainId) => boolean; export declare const isBsc: (chainId: ChainId) => boolean; export declare const isOptimism: (chainId: ChainId) => boolean; export declare const isFantom: (chainId: ChainId) => boolean; export declare const isArbitrum: (chainId: ChainId) => boolean; export declare const allSupportedChains: number[]; export interface NetworkSettings { [chainId: number]: { id: Network; name: string; chainId: number; rpcUrl: string; nativeCurrency: { name: string; symbol: string; decimals: number; address: string; }; wrappedTokenAddress?: Address; simulationsEnabled?: boolean; zapsEnabled?: boolean; zapOutTokenSymbols?: string[]; blockExplorerUrl?: string; }; } export declare const NETWORK_SETTINGS: NetworkSettings;