keeper

package
v0.0.0-...-3063be3 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper *Keeper) tiablob.MsgServer

NewMsgServerImpl returns an implementation of the module MsgServer interface.

func NewQueryServerImpl

func NewQueryServerImpl(k *Keeper) tiablob.QueryServer

NewQueryServerImpl returns an implementation of the module QueryServer.

Types

type Keeper

type Keeper struct {
	Validators   collections.Map[string, string]
	ClientID     collections.Item[string]
	ProvenHeight collections.Item[uint64]
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeService storetypes.KVStoreService,
	sk *stakingkeeper.Keeper,
) *Keeper

func (*Keeper) ExportGenesis

func (k *Keeper) ExportGenesis(ctx context.Context) *tiablob.GenesisState

ExportGenesis exports the module's state to a genesis state.

func (*Keeper) GetAllValidators

func (k *Keeper) GetAllValidators(ctx context.Context) (tiablob.Validators, error)

func (*Keeper) GetClientID

func (k *Keeper) GetClientID(ctx context.Context) (string, error)

func (*Keeper) GetProvenHeight

func (k *Keeper) GetProvenHeight(ctx context.Context) (uint64, error)

func (*Keeper) GetValidatorCelestiaAddress

func (k *Keeper) GetValidatorCelestiaAddress(ctx context.Context, validatorAddress string) (string, error)

func (*Keeper) InitGenesis

func (k *Keeper) InitGenesis(ctx context.Context, data *tiablob.GenesisState) error

InitGenesis initializes the module's state from a genesis state.

func (*Keeper) SetClientID

func (k *Keeper) SetClientID(ctx context.Context, clientID string) error

func (*Keeper) SetProvenHeight

func (k *Keeper) SetProvenHeight(ctx context.Context, height uint64) error

func (*Keeper) SetRelayer

func (k *Keeper) SetRelayer(r *tiablobrelayer.Relayer)

func (*Keeper) SetValidatorCelestiaAddress

func (k *Keeper) SetValidatorCelestiaAddress(ctx context.Context, validator tiablob.Validator) error

type ProofOfBlobProposalHandler

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

func (*ProofOfBlobProposalHandler) PrepareProposal

func (*ProofOfBlobProposalHandler) ProcessProposal

Jump to

Keyboard shortcuts

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