keeper

package
v1.15.7 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.

Types

type Keeper

type Keeper struct {
	Valset         types.ValsetKeeper
	Upgrade        types.UpgradeKeeper
	AppVersion     string
	AddressCodec   address.Codec
	ExternalChains []types.ExternalChainSupporterKeeper
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey cosmosstore.KVStoreService,
	ps paramtypes.Subspace,
	appVersion string,
	bondDenom string,
	accountKeeper types.AccountKeeper,
	bankKeeper types.BankKeeper,
	feegrantKeeper types.FeegrantKeeper,
	valset types.ValsetKeeper,
	upgrade types.UpgradeKeeper,
	addressCodec address.Codec,
) *Keeper

func (Keeper) AllLightNodeClientLicenses added in v1.15.4

func (k Keeper) AllLightNodeClientLicenses(
	ctx context.Context,
) ([]*types.LightNodeClientLicense, error)

func (Keeper) CheckChainVersion added in v0.10.2

func (k Keeper) CheckChainVersion(ctx context.Context)

CheckChainVersion will exit if the app version and the government proposed versions do not match.

func (Keeper) CreateLightNodeClientAccount added in v1.15.4

func (k Keeper) CreateLightNodeClientAccount(
	ctx context.Context,
	addr string,
) error

func (Keeper) CreateLightNodeClientLicense added in v1.15.4

func (k Keeper) CreateLightNodeClientLicense(
	ctx context.Context,
	creatorAddr, clientAddr string,
	amount sdk.Coin,
	vestingMonths uint32,
) error

func (Keeper) CreateSaleLightNodeClientLicense added in v1.15.5

func (k Keeper) CreateSaleLightNodeClientLicense(
	ctx context.Context,
	clientAddr string,
	amount math.Int,
) error

CreateSaleLightNodeClientLicense is used by the skyway module when processing a light node sale event to create a new license with feegrant

func (Keeper) GetLightNodeClientFeegranter added in v1.15.4

func (k Keeper) GetLightNodeClientFeegranter(
	c context.Context,
	_ *emptypb.Empty,
) (*types.QueryLightNodeClientFeegranterResponse, error)

func (Keeper) GetLightNodeClientFunders added in v1.15.5

func (k Keeper) GetLightNodeClientFunders(
	c context.Context,
	_ *emptypb.Empty,
) (*types.QueryLightNodeClientFundersResponse, error)

func (Keeper) GetLightNodeClientLicense added in v1.15.4

func (k Keeper) GetLightNodeClientLicense(
	ctx context.Context,
	addr string,
) (*types.LightNodeClientLicense, error)

func (Keeper) GetLightNodeClientLicenses added in v1.15.4

func (k Keeper) GetLightNodeClientLicenses(
	c context.Context,
	_ *emptypb.Empty,
) (*types.QueryLightNodeClientLicensesResponse, error)

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) JailValidatorsWithMissingExternalChainInfos

func (k Keeper) JailValidatorsWithMissingExternalChainInfos(ctx context.Context) error

func (Keeper) LightNodeClientFeegranter added in v1.15.4

func (k Keeper) LightNodeClientFeegranter(
	ctx context.Context,
) (*types.LightNodeClientFeegranter, error)

func (Keeper) LightNodeClientFunders added in v1.15.5

func (k Keeper) LightNodeClientFunders(
	ctx context.Context,
) (*types.LightNodeClientFunders, error)

func (Keeper) Logger

func (k Keeper) Logger(ctx context.Context) cosmoslog.Logger

func (Keeper) Params

func (Keeper) SetLightNodeClientFeegranter added in v1.15.4

func (k Keeper) SetLightNodeClientFeegranter(
	ctx context.Context,
	acct sdk.AccAddress,
) error

func (Keeper) SetLightNodeClientFunders added in v1.15.5

func (k Keeper) SetLightNodeClientFunders(
	ctx context.Context,
	accts []sdk.AccAddress,
) error

func (Keeper) SetLightNodeClientLicense added in v1.15.4

func (k Keeper) SetLightNodeClientLicense(
	ctx context.Context,
	addr string,
	license *types.LightNodeClientLicense,
) error

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) Store added in v1.15.4

func (k Keeper) Store(ctx context.Context) storetypes.KVStore

Jump to

Keyboard shortcuts

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