Extends
EthereumWalletMockAbstract
Constructors
new EthereumWalletMock()
Parameters
Returns
EthereumWalletMock
Overrides
EthereumWalletMockAbstract.constructor
Properties
Methods
addNetwork()
Parameters
Returns
Promise<void>
A promise that resolves when the network is added.
Overrides
EthereumWalletMockAbstract.addNetwork
addNewAccount()
Returns
Promise<void>
A promise that resolves when the new account is added.
Overrides
EthereumWalletMockAbstract.addNewAccount
connectToDapp()
Parameters
Returns
Promise<void>
A promise that resolves when the wallet is connected to the dapp.
Overrides
EthereumWalletMockAbstract.connectToDapp
getAccountAddress()
Returns
Promise<undefined | `0x${string}`>
A promise that resolves to the current account address.
Overrides
EthereumWalletMockAbstract.getAccountAddress
getAllAccounts()
Returns
Promise<undefined | `0x${string}`[]>
A promise that resolves to an array of account addresses.
Overrides
EthereumWalletMockAbstract.getAllAccounts
importWallet()
Parameters
Returns
Promise<void>
A promise that resolves when the wallet is imported.
Overrides
EthereumWalletMockAbstract.importWallet
importWalletFromPrivateKey()
Parameters
Returns
Promise<void>
A promise that resolves when the wallet is imported.
Overrides
EthereumWalletMockAbstract.importWalletFromPrivateKey
switchAccount()
Parameters
Returns
Promise<void>
A promise that resolves when the account switch is complete.
Overrides
EthereumWalletMockAbstract.switchAccount
switchNetwork()
Parameters
Returns
Promise<void>
A promise that resolves when the network switch is complete.
Overrides
EthereumWalletMockAbstract.switchNetwork
