Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) ApprovedUpgrade(c context.Context, req *types.QueryGetApprovedUpgradeRequest) (*types.QueryGetApprovedUpgradeResponse, error)
- func (k Keeper) ApprovedUpgradeAll(c context.Context, req *types.QueryAllApprovedUpgradeRequest) (*types.QueryAllApprovedUpgradeResponse, error)
- func (k Keeper) GetAllApprovedUpgrade(ctx sdk.Context) (list []types.ApprovedUpgrade)
- func (k Keeper) GetAllProposedUpgrade(ctx sdk.Context) (list []types.ProposedUpgrade)
- func (k Keeper) GetAllRejectedUpgrade(ctx sdk.Context) (list []types.RejectedUpgrade)
- func (k Keeper) GetApprovedUpgrade(ctx sdk.Context, name string) (val types.ApprovedUpgrade, found bool)
- func (k Keeper) GetProposedUpgrade(ctx sdk.Context, name string) (val types.ProposedUpgrade, found bool)
- func (k Keeper) GetRejectedUpgrade(ctx sdk.Context, name string) (val types.RejectedUpgrade, found bool)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) ProposedUpgrade(c context.Context, req *types.QueryGetProposedUpgradeRequest) (*types.QueryGetProposedUpgradeResponse, error)
- func (k Keeper) ProposedUpgradeAll(c context.Context, req *types.QueryAllProposedUpgradeRequest) (*types.QueryAllProposedUpgradeResponse, error)
- func (k Keeper) RejectedUpgrade(c context.Context, req *types.QueryGetRejectedUpgradeRequest) (*types.QueryGetRejectedUpgradeResponse, error)
- func (k Keeper) RejectedUpgradeAll(c context.Context, req *types.QueryAllRejectedUpgradeRequest) (*types.QueryAllRejectedUpgradeResponse, error)
- func (k Keeper) RemoveApprovedUpgrade(ctx sdk.Context, name string)
- func (k Keeper) RemoveProposedUpgrade(ctx sdk.Context, name string)
- func (k Keeper) RemoveRejectedUpgrade(ctx sdk.Context, name string)
- func (k Keeper) SetApprovedUpgrade(ctx sdk.Context, approvedUpgrade types.ApprovedUpgrade)
- func (k Keeper) SetProposedUpgrade(ctx sdk.Context, proposedUpgrade types.ProposedUpgrade)
- func (k Keeper) SetRejectedUpgrade(ctx sdk.Context, rejectedUpgrade types.RejectedUpgrade)
- func (k Keeper) UpgradeApprovalsCount(ctx sdk.Context) int
- func (k Keeper) UpgradeRejectsCount(ctx sdk.Context) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
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 sdk.StoreKey, dclauthKeeper types.DclauthKeeper, upgradeKeeper types.UpgradeKeeper, ) *Keeper
func (Keeper) ApprovedUpgrade ¶ added in v0.8.0
func (k Keeper) ApprovedUpgrade(c context.Context, req *types.QueryGetApprovedUpgradeRequest) (*types.QueryGetApprovedUpgradeResponse, error)
func (Keeper) ApprovedUpgradeAll ¶ added in v0.8.0
func (k Keeper) ApprovedUpgradeAll(c context.Context, req *types.QueryAllApprovedUpgradeRequest) (*types.QueryAllApprovedUpgradeResponse, error)
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) ProposedUpgrade ¶
func (k Keeper) ProposedUpgrade(c context.Context, req *types.QueryGetProposedUpgradeRequest) (*types.QueryGetProposedUpgradeResponse, error)
func (Keeper) ProposedUpgradeAll ¶
func (k Keeper) ProposedUpgradeAll(c context.Context, req *types.QueryAllProposedUpgradeRequest) (*types.QueryAllProposedUpgradeResponse, error)
func (Keeper) RejectedUpgrade ¶ added in v0.11.0
func (k Keeper) RejectedUpgrade(c context.Context, req *types.QueryGetRejectedUpgradeRequest) (*types.QueryGetRejectedUpgradeResponse, error)
func (Keeper) RejectedUpgradeAll ¶ added in v0.11.0
func (k Keeper) RejectedUpgradeAll(c context.Context, req *types.QueryAllRejectedUpgradeRequest) (*types.QueryAllRejectedUpgradeResponse, error)
func (Keeper) RemoveApprovedUpgrade ¶ added in v0.8.0
RemoveApprovedUpgrade removes a approvedUpgrade from the store.
func (Keeper) RemoveProposedUpgrade ¶
RemoveProposedUpgrade removes a proposedUpgrade from the store.
func (Keeper) RemoveRejectedUpgrade ¶ added in v0.11.0
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.