keeper

package
v1.4.4-3-dev Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: Apache-2.0 Imports: 14 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 {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey,
	memKey storetypes.StoreKey,

	dclauthKeeper types.DclauthKeeper,
	upgradeKeeper types.UpgradeKeeper,
) *Keeper

func (Keeper) ApprovedUpgrade added in v0.8.0

func (Keeper) ApprovedUpgradeAll added in v0.8.0

func (Keeper) GetAllApprovedUpgrade added in v0.8.0

func (k Keeper) GetAllApprovedUpgrade(ctx sdk.Context) (list []types.ApprovedUpgrade)

GetAllApprovedUpgrade returns all approvedUpgrade.

func (Keeper) GetAllProposedUpgrade

func (k Keeper) GetAllProposedUpgrade(ctx sdk.Context) (list []types.ProposedUpgrade)

GetAllProposedUpgrade returns all proposedUpgrade.

func (Keeper) GetAllRejectedUpgrade added in v0.11.0

func (k Keeper) GetAllRejectedUpgrade(ctx sdk.Context) (list []types.RejectedUpgrade)

GetAllRejectedUpgrade returns all rejectedUpgrade.

func (Keeper) GetApprovedUpgrade added in v0.8.0

func (k Keeper) GetApprovedUpgrade(
	ctx sdk.Context,
	name string,
) (val types.ApprovedUpgrade, found bool)

GetApprovedUpgrade returns a approvedUpgrade from its index.

func (Keeper) GetProposedUpgrade

func (k Keeper) GetProposedUpgrade(
	ctx sdk.Context,
	name string,
) (val types.ProposedUpgrade, found bool)

GetProposedUpgrade returns a proposedUpgrade from its index.

func (Keeper) GetRejectedUpgrade added in v0.11.0

func (k Keeper) GetRejectedUpgrade(
	ctx sdk.Context,
	name string,
) (val types.RejectedUpgrade, found bool)

GetRejectedUpgrade returns a rejectedUpgrade from its index.

func (Keeper) Logger

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

func (Keeper) RejectedUpgrade added in v0.11.0

func (Keeper) RejectedUpgradeAll added in v0.11.0

func (Keeper) RemoveApprovedUpgrade added in v0.8.0

func (k Keeper) RemoveApprovedUpgrade(
	ctx sdk.Context,
	name string,
)

RemoveApprovedUpgrade removes a approvedUpgrade from the store.

func (Keeper) RemoveProposedUpgrade

func (k Keeper) RemoveProposedUpgrade(
	ctx sdk.Context,
	name string,
)

RemoveProposedUpgrade removes a proposedUpgrade from the store.

func (Keeper) RemoveRejectedUpgrade added in v0.11.0

func (k Keeper) RemoveRejectedUpgrade(
	ctx sdk.Context,
	name string,
)

RemoveRejectedUpgrade removes a rejectedUpgrade from the store.

func (Keeper) SetApprovedUpgrade added in v0.8.0

func (k Keeper) SetApprovedUpgrade(ctx sdk.Context, approvedUpgrade types.ApprovedUpgrade)

SetApprovedUpgrade set a specific approvedUpgrade in the store from its index.

func (Keeper) SetProposedUpgrade

func (k Keeper) SetProposedUpgrade(ctx sdk.Context, proposedUpgrade types.ProposedUpgrade)

SetProposedUpgrade set a specific proposedUpgrade in the store from its index.

func (Keeper) SetRejectedUpgrade added in v0.11.0

func (k Keeper) SetRejectedUpgrade(ctx sdk.Context, rejectedUpgrade types.RejectedUpgrade)

SetRejectedUpgrade set a specific rejectedUpgrade in the store from its index.

func (Keeper) UpgradeApprovalsCount

func (k Keeper) UpgradeApprovalsCount(ctx sdk.Context) int

func (Keeper) UpgradeRejectsCount added in v0.11.0

func (k Keeper) UpgradeRejectsCount(ctx sdk.Context) int

Jump to

Keyboard shortcuts

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