app

package
v0.0.0-...-131ca43 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppContext                   = "app"
	ChainClientContext           = "chain_client"
	RelayerContext               = "relayer"
	TargetChainRPCClientContext  = "target_chain_rpc"
	NeutronChainRPCClientContext = "neutron_chain_rpc"
	TargetChainProviderContext   = "target_chain_provider"
	NeutronChainProviderContext  = "neutron_chain_provider"
	TxSenderContext              = "tx_sender"
	TrustedHeadersFetcherContext = "trusted_headers_fetcher"
	KVProcessorContext           = "kv_processor"
)

Variables

View Source
var (
	Version = ""
	Commit  = ""
)

Functions

func NewDefaultChainClient

func NewDefaultChainClient(cfg config.NeutronQueryRelayerConfig, logRegistry *nlogger.Registry) (relay.Subscriber, error)

func NewDefaultKVProcessor

func NewDefaultKVProcessor(
	logRegistry *nlogger.Registry,
	deps *DependencyContainer,
) (*kvprocessor.KVProcessor, error)

NewDefaultRelayer returns a relayer built with cfg.

func NewDefaultRelayer

func NewDefaultRelayer(
	cfg config.NeutronQueryRelayerConfig,
	logRegistry *nlogger.Registry,
	storage relay.Storage,
	deps *DependencyContainer,
) (*relay.Relayer, error)

NewDefaultRelayer returns a relayer built with cfg.

Types

type DependencyContainer

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

func NewDefaultDependencyContainer

func NewDefaultDependencyContainer(ctx context.Context,
	cfg config.NeutronQueryRelayerConfig,
	logRegistry *nlogger.Registry) (*DependencyContainer, error)

func (DependencyContainer) GetKvProcessor

func (c DependencyContainer) GetKvProcessor() relay.KVProcessor

func (DependencyContainer) GetNeutronChain

func (c DependencyContainer) GetNeutronChain() *cosmosrelayer.Chain

func (DependencyContainer) GetProofSubmitter

func (c DependencyContainer) GetProofSubmitter() relay.Submitter

func (DependencyContainer) GetTargetChain

func (c DependencyContainer) GetTargetChain() *cosmosrelayer.Chain

func (DependencyContainer) GetTargetQuerier

func (c DependencyContainer) GetTargetQuerier() *tmquerier.Querier

func (DependencyContainer) GetTrustedHeaderFetcher

func (c DependencyContainer) GetTrustedHeaderFetcher() relay.TrustedHeaderFetcher

Jump to

Keyboard shortcuts

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