0.0.37 • Published 2 months ago

@flair-sdk/solution-indexing-nft v0.0.37

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

NFTs Indexing Solution (ERC-721, ERC-1155)

Flair

This package provides customizable ready-made processor scripts for ERC721 or ERC1155 NFT tokens, collections and metadata fetching 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-nft'
    config:
      erc721:
        enabled: true
      erc1155:
        enabled: false
      addTopicsToFilterGroup: default
      env:
        MY_ENV_VAR: my-value
      metadata:
        resolveUri: true
        fetchContent: true
        ipfsGateways:
        - endpoint: https://ipfs.io/ipfs/
          headers:
            x-api-key: my-api-key
        arweaveGateways:
        - endpoint: https://arweave.net/
          headers:
            x-api-key: my-api-key
  1. Deploy your cluster:
pnpm generate-and-deploy
0.0.37

2 months ago

0.0.36

2 months ago

0.0.34

2 months ago

0.0.35

2 months ago

0.0.30

2 months ago

0.0.31

2 months ago

0.0.32

2 months ago

0.0.33

2 months ago

0.0.29

2 months ago

0.0.26

2 months ago

0.0.27

2 months ago

0.0.28

2 months ago

0.0.25

2 months ago

0.0.24

2 months ago

0.0.23

2 months ago

0.0.22

2 months ago

0.0.21

2 months ago

0.0.20

2 months ago

0.0.19

2 months ago

0.0.18

2 months ago

0.0.17

2 months ago

0.0.16

2 months ago

0.0.15

2 months ago

0.0.14

2 months ago

0.0.13

2 months ago

0.0.12

2 months ago

0.0.11

2 months ago

0.0.10

2 months ago

0.0.9

2 months ago

0.0.8

2 months ago

0.0.7

2 months ago

0.0.6

2 months ago

0.0.5

2 months ago

0.0.4

2 months ago

0.0.3

2 months ago

0.0.2

2 months ago

0.0.1

2 months ago