indexer

package
v0.0.0-...-7d4c4c8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2024 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Overview

Package indexer implements a reference implementation of the indexer following the Cosmos Inscriptions spec in the root of this repository

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ChainID                  string            `envconfig:"CHAIN_ID" required:"true"`
	BaseTokenBinanceEndpoint string            `envconfig:"BASE_TOKEN_BINANCE_ENDPOINT" required:"true"`
	DatabaseDSN              string            `envconfig:"DATABASE_DSN" required:"true"`
	LCDEndpoints             []string          `envconfig:"LCD_ENDPOINTS" required:"true"`
	RPCEndpoints             []string          `envconfig:"RPC_ENDPOINTS" required:"true"`
	EndpointHeaders          map[string]string `envconfig:"ENDPOINT_HEADERS" required:"true"`
	BlockPollIntervalMS      int               `envconfig:"BLOCK_POLL_INTERVAL_MS" required:"true"`
}

type Indexer

type Indexer struct {
	// contains filtered or unexported fields
}

Indexer implements the reference indexer service

func New

func New(
	log *logrus.Entry) (*Indexer, error)

New returns a new instance of the indexer service and returns an error if there was a problem setting up the service

func (*Indexer) Run

func (i *Indexer) Run() error

Run the indexer service forever

func (*Indexer) Stop

func (i *Indexer) Stop() error

Stop the indexer

Directories

Path Synopsis
package decoder provides a decoder for Cosmos SDK messages The code has been added from https://github.com/calvinlauyh/cosmosutils which hasn't been updated in many years
package decoder provides a decoder for Cosmos SDK messages The code has been added from https://github.com/calvinlauyh/cosmosutils which hasn't been updated in many years
Package metaprotocol implements various metaprotocols and their rules for the indexer
Package metaprotocol implements various metaprotocols and their rules for the indexer
Package models implement database models for the indexer
Package models implement database models for the indexer
Package types contains the types used by the indexer
Package types contains the types used by the indexer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL