Skip to content

flair-sdk/solution-basic-events-txs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Event/TX Indexing

Flair

This package provides customizable ready-made processor scripts for basic event and transaction indexing; using Flair indexer.

Installation

  1. Make sure you have created your indexing cluster as described in Getting Started.

  2. Install the solution package:

pnpm install @flair-sdk/solution-basic-events-txs
  1. 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
  1. Deploy your cluster:
pnpm generate-and-deploy

Releases

No releases published

Packages

No packages published