simple-sushiswap-sdk
Version:
Simple easy to understand SDK for sushiswap
26 lines (25 loc) • 814 B
TypeScript
import { ContractInterface, providers } from 'ethers';
import { ChainId } from './enums/chain-id';
export declare class EthersProvider {
private _ethersProvider;
constructor(chainId: ChainId, providerUrl?: string | undefined);
/**
* Creates a contract instance
* @param abi The ABI
* @param contractAddress The contract address
*/
getContract<TGeneratedTypedContext>(abi: ContractInterface, contractAddress: string): TGeneratedTypedContext;
/**
* Get the network
*/
network(): providers.Network;
/**
* Get the ethers provider
*/
get provider(): providers.BaseProvider;
/**
* Get eth amount
* @param ethereumAddress The ethereum address
*/
balanceOf(ethereumAddress: string): Promise<string>;
}