Documentation
¶
Index ¶
- Constants
- type ConsumerStateQuery
- type SpecGetter
- type SpecUpdatable
- type SpecUpdater
- func (su *SpecUpdater) RegisterSpecUpdatable(ctx context.Context, specUpdatable *SpecUpdatable, ...) error
- func (su *SpecUpdater) RegisterSpecVerifier(ctx context.Context, specVerifier *SpecVerifier, chainId string) error
- func (su *SpecUpdater) Reset(latestBlock int64)
- func (su *SpecUpdater) Update(latestBlock int64)
- func (su *SpecUpdater) UpdaterKey() string
- type SpecVerifier
Constants ¶
const (
BlockResultRetry = 20
)
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.
type SpecGetter ¶
type SpecUpdatable ¶
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