@flair-sdk/solution-basic-events-txs
v0.2.0
Published
Bundled solution to add basic event and transaction indexing
Downloads
33
Readme
Basic Event/TX Indexing
This package provides customizable ready-made processor scripts for basic event and transaction indexing; using Flair indexer.
Installation
Make sure you have created your indexing cluster as described in Getting Started.
Install the solution package:
pnpm install @flair-sdk/solution-basic-events-txs
- Add the solution to your manifest.yml.mustache usually created from starter-boilerplate repository:
# ./manifest.yml.mustache
# ...
# Usually each indexing cluster has defined one or more filter groups.
# For this solution you need a filter group that contains addresses of contracts you want to
# track
# Note: if you have a factory contract, or need to dynamically add addresses it is possible,
# refer to examples repository (https://github.com/flair-sdk/examples).
filterGroups:
- id: default
updateStrategy: replace
addresses:
- fromFile: ./contracts.csv
# ...
solutions:
- source: '@flair-sdk/basic-events-txs'
config:
events:
enabled: true
transactions:
enabled: false
- Deploy your cluster:
pnpm generate-and-deploy