config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApprovalsIndexerCfg

type ApprovalsIndexerCfg struct {
	RunnerName        string              `fig:"runner_name"`
	ApprovalsConsumer msgs.ConsumerConfig `fig:"-"`
}

type BlockRangesProducerConfig

type BlockRangesProducerConfig struct {
	RunnerName        string                  `fig:"runner_name"`
	QueueName         string                  `fig:"queue_name,required"`
	CursorKey         string                  `fig:"cursor_key,required"`
	BlockRangeLimit   int64                   `fig:"block_range_limit,required"`
	BlockTime         time.Duration           `fig:"block_time,required"`
	SpecialCaseBlocks []SpecialCaseBlockRange `fig:"special_case_blocks"`
}

type ChainGateway

type ChainGateway struct {
	Gateways []ChainGatewayCfg `fig:"gateways,required"`
}

type ChainGatewayCfg

type ChainGatewayCfg struct {
	Name string                   `fig:"name,required"`
	Type tokenmanager.NetworkType `fig:"type,required"`
	Rpc  *rpc.Client              `fig:"rpc,required"`
}

type CollectionsIndexerConfig

type CollectionsIndexerConfig struct {
	RunnerName               string              `fig:"runner_name"`
	CollectionEventsConsumer msgs.ConsumerConfig `fig:"-"`
}

type Config

type Config interface {
	comfig.Logger
	pgdb.Databaser
	types.Copuser
	comfig.Listenerer
	ipfs.IPFSer
	rd.Rediser
	mem.Chainer

	NewStorage() data.Storage
	CachedStorage() data.Storage
	ChainGateway() *ChainGateway
	MetadataFetcher() metadata_fetcher.Client
	Core() core.Core
	Tendermint() *thttp.HTTP
	Cosmos() *grpc.ClientConn
	TransfersIndexer() TransfersIndexerConfig
	EVM() *evmConfig
	Solana() *solanaConfig
	Near() *nearConfig

	BlockRangeProducer() *BlockRangesProducerConfig

	RarimoCoreProducer() *RarimoCoreProducerConfig
	ConfirmationsIndexer() ConfirmationsIndexerCfg
	ApprovalsIndexer() ApprovalsIndexerCfg
	RejectionsIndexer() RejectionsIndexerCfg
	VotesIndexer() VotesIndexerCfg

	TokenManagerProducer() *TokenManagerProducerConfig
	ItemsIndexer() ItemsIndexerConfig
	CollectionsIndexer() CollectionsIndexerConfig

	Genesis() GenesisCfg
}

func New

func New(getter kv.Getter) Config

type ConfirmationsIndexerCfg

type ConfirmationsIndexerCfg struct {
	RunnerName            string              `fig:"runner_name"`
	ConfirmationsConsumer msgs.ConsumerConfig `fig:"confirmations_consumer"`
}

type GenesisCfg

type GenesisCfg struct {
	Disabled     bool
	GenesisState *tokenmanager.GenesisState
}

type ItemsIndexerConfig

type ItemsIndexerConfig struct {
	RunnerName         string              `fig:"runner_name"`
	ItemEventsConsumer msgs.ConsumerConfig `fig:"-"`
}

type RarimoCoreProducerConfig

type RarimoCoreProducerConfig struct {
	RunnerName string `fig:"runner_name"`

	TransfersQueueName     string `fig:"transfers_queue_name,required"`
	ConfirmationsQueueName string `fig:"confirmations_queue_name,required"`
	ApprovalsQueueName     string `fig:"approvals_queue_name,required"`
	RejectionsQueueName    string `fig:"rejections_queue_name,required"`
	VotesQueueName         string `fig:"votes_queue_name,required"`

	BlockRangeConsumer msgs.ConsumerConfig `fig:"-"`
}

type RejectionsIndexerCfg

type RejectionsIndexerCfg struct {
	RunnerName         string              `fig:"runner_name"`
	RejectionsConsumer msgs.ConsumerConfig `fig:"-"`
}

type SpecialCaseBlockRange

type SpecialCaseBlockRange struct {
	From int64 `fig:"from,required"`
	To   int64 `fig:"to,required"`
}

type TokenManagerProducerConfig

type TokenManagerProducerConfig struct {
	RunnerName           string              `fig:"runner_name"`
	ItemsQueueName       string              `fig:"items_queue_name,required"`
	CollectionsQueueName string              `fig:"collections_queue_name,required"`
	BlockRangeConsumer   msgs.ConsumerConfig `fig:"-"`
}

type TransfersIndexerConfig

type TransfersIndexerConfig struct {
	RunnerName           string              `fig:"runner_name"`
	FetchOperationsLimit uint64              `fig:"fetch_operations_limit"`
	TransfersConsumer    msgs.ConsumerConfig `fig:"-"`
}

type VotesIndexerCfg

type VotesIndexerCfg struct {
	RunnerName    string              `fig:"runner_name"`
	VotesConsumer msgs.ConsumerConfig `fig:"-"`
}

Jump to

Keyboard shortcuts

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