0.0.4 • Published 3 years ago
@sebasgoldberg/hardhat-events-cache v0.0.4
hardhat-events-cache
This plug-in it is used to add an events cache to hardhat.
Hardhat events cache plugin.
What
This plugin will help you with:
- If you query events and you want to cache this results.
Installation
npm install @sebasgoldberg/hardhat-events-cacheImport the plugin in your hardhat.config.js:
require("@sebasgoldberg/hardhat-events-cache");Or if you are using TypeScript, in your hardhat.config.ts:
import "@sebasgoldberg/hardhat-events-cache";Environment extensions
This plugin extends the Hardhat Runtime Environment by adding an eventsCache field.
This eventsCache field has a query and save methods.
query it is used to query the cached events.
save it is used to save events to cache.
Configuration
This plugin does not define own configuration, but uses @sebasgoldberg/hardhat-mongodb plugin to obtain a mongodb db instance.