Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rymnc/mock-ethers-provider

Mock anything
https://github.com/rymnc/mock-ethers-provider

Last synced: about 1 month ago
JSON representation

Mock anything

Awesome Lists containing this project

README

        

# Mock ethers.js Provider

---

## Usage

1. `const { MockProvider } = require('mock-ethers-provider')`
2. `const mock = new MockProvider()`
3. `mock.setContract(address, abi)`
4. `mock.stub(address, function, returnValue)`
5. Fin

---