Skip to content

Customizable ready-made on-chain EVM data indexing for defin lending protocols

Notifications You must be signed in to change notification settings

flair-sdk/solution-indexing-defi-lending

Repository files navigation

DeFi Lending Indexing

Flair

This package provides customizable ready-made processor scripts for defi lending protocols 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-indexing-nft
  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 ERC721 contracts.
# Also, this solution will add relevant event "topics" for ERC721 Transfer and Approval events
# so that they are emitted for processing.
#
# 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/solution-indexing-defi-lending"
    config:
      aave:
        intervalEnricher:
          enabled: true
          interval: rate(60 minutes)
  1. Deploy your cluster:
pnpm generate-and-deploy

About

Customizable ready-made on-chain EVM data indexing for defin lending protocols

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published