@lido-sdk/react
Version:
This project is being slowly deprecated and may not receive further updates. Check out [modern Lido SDK](https://github.com/lidofinance/lido-ethereum-sdk/pulls) to access latest functionality. It is actively maintained and is built for interacting with Li
28 lines (27 loc) • 980 B
TypeScript
import { CHAINS } from '@lido-sdk/constants';
import { BaseProvider, Web3Provider } from '@ethersproject/providers';
import { FC } from 'react';
import { SWRConfiguration } from 'swr';
export interface SDKContextProps {
chainId: CHAINS;
supportedChainIds: CHAINS[];
providerMainnetRpc?: BaseProvider;
providerRpc?: BaseProvider;
providerWeb3?: Web3Provider;
swrConfig?: SWRConfiguration;
account?: string;
onError?: (error: unknown) => void;
}
export interface SDKContextValue {
chainId: CHAINS;
supportedChainIds: CHAINS[];
providerMainnetRpc: BaseProvider;
providerRpc: BaseProvider;
providerWeb3?: Web3Provider;
swrConfig?: SWRConfiguration;
account?: string;
onError: (error: unknown) => void;
}
export declare const SDKContext: import("react").Context<SDKContextValue | null>;
declare const _default: import("react").MemoExoticComponent<FC<SDKContextProps>>;
export default _default;