@ethereum-waffle/provider
Version:
A mock provider for your blockchain testing needs.
21 lines • 774 B
TypeScript
import { providers, Wallet } from 'ethers';
import { RecordedCall } from './CallHistory';
import type { EthereumProviderOptions } from '@ganache/ethereum-options';
import { ENS } from '@ethereum-waffle/ens';
export { RecordedCall };
export interface MockProviderOptions {
ganacheOptions: EthereumProviderOptions;
}
export declare class MockProvider extends providers.Web3Provider {
private options?;
private _callHistory;
private _ens?;
constructor(options?: MockProviderOptions | undefined);
getWallets(): Wallet[];
createEmptyWallet(): Wallet;
clearCallHistory(): void;
get callHistory(): readonly RecordedCall[];
get ens(): ENS | undefined;
setupENS(wallet?: Wallet): Promise<void>;
}
//# sourceMappingURL=MockProvider.d.ts.map