Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rymnc/mock-ethers-provider
- Owner: rymnc
- Created: 2020-11-10T04:26:51.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-10T22:33:06.000Z (about 4 years ago)
- Last Synced: 2024-09-19T18:37:46.265Z (2 months ago)
- Language: JavaScript
- Size: 42 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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---