Example of a forc plugin written in Typescript with Deno runtime.
This plugin simply reads the metadata.indexing.schema_path
from the Forc.toml
file and displays the logged types.
The code can potentially be extended to process the logged types to index the contract.
- Clone this repository
- Run the following - to globally install the plugin:
cd forc-index-ts/
deno install --global --force --allow-all forc-index.ts
- Check that it was installed:
forc-index --version
- Check that forc recognizes the plugin:
forc plugins
- Use the plugin with forc:
forc index --path ./sample-project/Forc.toml