UNPKG

@opiumteam/opium-sdk-v2

Version:

one-stop-shop SDK to interact with the Opium-v2 protocol contracts, subgraphs and APIs

12 lines (11 loc) 396 B
import { providers } from 'ethers'; import { IOpiumV2SDKConfig, TConfigByChain } from '../types/misc'; export declare class SDKContext { private readonly provider$; private readonly chainId$; private readonly networkConfig$; constructor(_config: IOpiumV2SDKConfig); getProvider(): providers.JsonRpcProvider; getChainId(): number; getNetworkConfig(): TConfigByChain; }