UNPKG

butterjs-sdk

Version:
17 lines (16 loc) 814 B
import { ethers, Signer } from 'ethers'; import { Provider } from '@ethersproject/abstract-provider'; import { Eth } from 'web3-eth'; import { Contract } from 'web3-eth-contract'; import { TransactionReceipt } from 'web3-core'; import { TransactionReceipt as EthersTransactionReceipt } from '@ethersproject/abstract-provider'; import { NearNetworkConfig } from './requestTypes'; import { WalletConnection } from 'near-api-js'; export declare type ButterProviderType = Signer | Provider | Eth; export declare type ButterContractType = ethers.Contract | Contract; export declare type ButterReceiptType = TransactionReceipt | EthersTransactionReceipt; export declare type NearProviderType = NearNetworkConfig | WalletConnection; export declare type ButterJsonRpcProvider = { url?: string; chainId: number; };