import { JsonRpcSigner , Web3Provider } from "ethers/providers" ; import { BigNumber , Network } from "ethers/utils" ; import { ETHEREUM_MOCK_BALANCE , MOCK_NETWORK } from "./ethereum.mock" ; import JsonRpcSignerMock from "./json-rpc-signer.mock" ; export default class Web3ProviderMock extends Web3Provider { async getBalance ( ethAddress ) { return ETHEREUM_MOCK_BALANCE ; } getSigner ( ) { return new JsonRpcSignerMock ( ) as JsonRpcSigner ; } async getNetwork ( ) { return MOCK_NETWORK as Network ; } }