keeper

package
v0.33.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMigrationHandler added in v0.18.0

func GetMigrationHandler() func(ctx sdk.Context) error

GetMigrationHandler returns the handler that performs in-place store migrations from v0.19 to v0.20. The migration includes:

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper, s types.Snapshotter, staker types.StakingKeeper, multisig types.MultiSigKeeper) types.MsgServiceServer

NewMsgServerImpl returns an implementation of the broadcast MsgServiceServer interface for the provided Keeper.

Types

type Keeper

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

Keeper allows access to the broadcast state

func NewKeeper

func NewKeeper(cdc codec.BinaryCodec, storeKey sdk.StoreKey, paramSpace params.Subspace) Keeper

NewKeeper constructs a tss keeper

func (Keeper) ExportGenesis added in v0.9.0

func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState

ExportGenesis returns the tss module's genesis state.

func (Keeper) GetLastHeartbeatAt added in v0.27.0

func (k Keeper) GetLastHeartbeatAt(ctx sdk.Context, participant sdk.ValAddress) int64

GetLastHeartbeatAt returns the block height at where the last heartbeat from the given participant was received

func (Keeper) GetParams

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

GetParams gets the tss module's parameters

func (Keeper) InitGenesis added in v0.9.0

func (k Keeper) InitGenesis(ctx sdk.Context, genState *types.GenesisState)

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

func (Keeper) Logger

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

Logger returns a module-specific logger

func (Keeper) SetLastHeartbeatAt added in v0.27.0

func (k Keeper) SetLastHeartbeatAt(ctx sdk.Context, participant sdk.ValAddress) error

SetLastHeartbeatAt sets the block height at where the last heartbeat from the given participant was received

func (Keeper) SetParams

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

SetParams sets the tss module's parameters

Jump to

Keyboard shortcuts

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