updaters

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	BlockResultRetry = 20
)
View Source
const (
	CallbackKeyForSpecUpdate = "spec-update"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumerStateQuery

type ConsumerStateQuery struct{}

ConsumerStateQuery is a minimal stub that always returns an error for spec queries. The smart router uses static spec loading exclusively; this stub exists only to satisfy the testing command's interface without importing cosmos-sdk. For live blockchain queries, use a fully-featured client.

func NewConsumerStateQuery

func NewConsumerStateQuery(_ context.Context) *ConsumerStateQuery

NewConsumerStateQuery constructs a ConsumerStateQuery stub. The context parameter is accepted for API compatibility but is not used.

func (*ConsumerStateQuery) GetSpec

func (csq *ConsumerStateQuery) GetSpec(_ context.Context, chainID string) (*spectypes.Spec, error)

GetSpec always returns an error because the smart router does not query the blockchain. Callers should use static spec loading instead.

type SpecGetter

type SpecGetter interface {
	GetSpec(ctx context.Context, chainID string) (*spectypes.Spec, error)
}

type SpecUpdatable

type SpecUpdatable interface {
	SetSpec(spectypes.Spec)
	Active() bool
	GetUniqueName() string
}

type SpecUpdater

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

func NewSpecUpdater

func NewSpecUpdater(chainId string, specGetter SpecGetter) *SpecUpdater

func (*SpecUpdater) RegisterSpecUpdatable

func (su *SpecUpdater) RegisterSpecUpdatable(ctx context.Context, specUpdatable *SpecUpdatable, endpoint lavasession.RPCEndpoint) error

func (*SpecUpdater) RegisterSpecVerifier

func (su *SpecUpdater) RegisterSpecVerifier(ctx context.Context, specVerifier *SpecVerifier, chainId string) error

func (*SpecUpdater) Reset

func (su *SpecUpdater) Reset(latestBlock int64)

func (*SpecUpdater) Update

func (su *SpecUpdater) Update(latestBlock int64)

func (*SpecUpdater) UpdaterKey

func (su *SpecUpdater) UpdaterKey() string

type SpecVerifier

type SpecVerifier interface {
	VerifySpec(spectypes.Spec)
	GetUniqueName() string
}

Jump to

Keyboard shortcuts

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