keeper

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keeper

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

Keeper represents a types that grants read and write permissions to any client state information

func NewKeeper

func NewKeeper(cdc codec.BinaryMarshaler, key sdk.StoreKey, paramSpace paramtypes.Subspace, sk types.StakingKeeper) Keeper

func (Keeper) ClientParams

ClientParams implements the Query/ClientParams gRPC method

func (Keeper) ClientState

ClientState implements the Query/ClientState gRPC method

func (Keeper) ClientStateRest

func (q Keeper) ClientStateRest(ctx sdk.Context, req abci.RequestQuery) ([]byte, error)

func (Keeper) ClientStates

ClientStates implements the Query/ClientStates gRPC method

func (Keeper) ClientStatesRest

func (q Keeper) ClientStatesRest(ctx sdk.Context, req abci.RequestQuery) ([]byte, error)

func (Keeper) ClientStore

func (k Keeper) ClientStore(ctx sdk.Context, clientID string) sdk.KVStore

func (Keeper) ConsensusState

ConsensusState implements the Query/ConsensusState gRPC method

func (Keeper) ConsensusStateRest

func (q Keeper) ConsensusStateRest(ctx sdk.Context, req abci.RequestQuery) ([]byte, error)

ConsensusState implements the Query/ConsensusState method

func (Keeper) ConsensusStates

ConsensusStates implements the Query/ConsensusStates gRPC method

func (Keeper) CreateClient

func (k Keeper) CreateClient(ctx sdk.Context, clientState exported.ClientState,
	consensusState exported.ConsensusState) (string, error)

func (Keeper) GenerateClientIdentifier

func (k Keeper) GenerateClientIdentifier(ctx sdk.Context, clientType string) string

GenerateClientIdentifier returns the next client identifier.

func (Keeper) GetAllClientsConsensusState added in v1.5.25

func (k Keeper) GetAllClientsConsensusState(ctx sdk.Context, clientID string, cb func(state exported.ConsensusState) (stop bool))

func (Keeper) GetClientConsensusState

func (k Keeper) GetClientConsensusState(ctx sdk.Context, clientID string, height exported.Height) (exported.ConsensusState, bool)

func (Keeper) GetClientState

func (k Keeper) GetClientState(ctx sdk.Context, clientID string) (exported.ClientState, bool)

GetClientState gets a particular client from the store

func (Keeper) GetLatestClientConsensusState

func (k Keeper) GetLatestClientConsensusState(ctx sdk.Context, clientID string) (exported.ConsensusState, bool)

GetLatestClientConsensusState gets the latest ConsensusState stored for a given client

func (Keeper) GetNextClientSequence

func (k Keeper) GetNextClientSequence(ctx sdk.Context) uint64

GetNextClientSequence gets the next client sequence from the store.

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) types.Params

func (Keeper) GetSelfConsensusState

func (k Keeper) GetSelfConsensusState(ctx sdk.Context, height exported.Height) (exported.ConsensusState, bool)

func (Keeper) IterateClients

func (k Keeper) IterateClients(ctx sdk.Context, cb func(string, exported.ClientState) bool)

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

Logger returns a module-specific logger.

func (Keeper) MustMarshalClientState

func (k Keeper) MustMarshalClientState(clientState exported.ClientState) []byte

MustMarshalClientState attempts to encode an ClientState object and returns the raw encoded bytes. It panics on error.

func (Keeper) MustMarshalConsensusState

func (k Keeper) MustMarshalConsensusState(consensusState exported.ConsensusState) []byte

func (Keeper) MustUnmarshalClientState

func (k Keeper) MustUnmarshalClientState(bz []byte) exported.ClientState

MustUnmarshalClientState attempts to decode and return an ClientState object from raw encoded bytes. It panics on error.

func (Keeper) MustUnmarshalConsensusState

func (k Keeper) MustUnmarshalConsensusState(bz []byte) exported.ConsensusState

func (Keeper) SetClientConsensusState

func (k Keeper) SetClientConsensusState(ctx sdk.Context, clientID string, height exported.Height,
	consensusState exported.ConsensusState)

func (Keeper) SetClientState

func (k Keeper) SetClientState(ctx sdk.Context, clientID string, clientState exported.ClientState)

SetClientState sets a particular Client to the store

func (Keeper) SetNextClientSequence

func (k Keeper) SetNextClientSequence(ctx sdk.Context, sequence uint64)

SetNextClientSequence sets the next client sequence to the store.

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams sets the total set of ibc-transfer parameters.

func (Keeper) UnmarshalClientState

func (k Keeper) UnmarshalClientState(bz []byte) (exported.ClientState, error)

UnmarshalClientState attempts to decode and return an ClientState object from raw encoded bytes.

func (Keeper) UnmarshalConsensusState

func (k Keeper) UnmarshalConsensusState(bz []byte) (exported.ConsensusState, error)

UnmarshalConsensusState attempts to decode and return an ConsensusState object from raw encoded bytes.

func (Keeper) UpdateClient

func (k Keeper) UpdateClient(ctx sdk.Context, clientID string, header exported.Header) error

UpdateClient updates the consensus state and the state root from a provided header.

func (Keeper) ValidateSelfClient

func (k Keeper) ValidateSelfClient(ctx sdk.Context, clientState exported.ClientState) error

Jump to

Keyboard shortcuts

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