Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) ActivePublicKeysChangeProposal(c context.Context, req *types.QueryActivePublicKeysChangeProposalRequest) (*types.QueryActivePublicKeysChangeProposalResponse, error)
- func (k Keeper) ActivePublicKeysChangeProposals(goCtx context.Context, req *types.QueryActivePublicKeysChangeProposalsRequest) (*types.QueryActivePublicKeysChangeProposalsResponse, error)
- func (k Keeper) FinishProposals(ctx sdk.Context) error
- func (k Keeper) FinishedPublicKeysChangeProposal(c context.Context, req *types.QueryFinishedPublicKeysChangeProposalRequest) (*types.QueryFinishedPublicKeysChangeProposalResponse, error)
- func (k Keeper) FinishedPublicKeysChangeProposals(goCtx context.Context, ...) (*types.QueryFinishedPublicKeysChangeProposalsResponse, error)
- func (k Keeper) GetActivePubkeysChangeProposal(ctx sdk.Context, id uint64) (val types.PublicKeysChangeProposal, found bool)
- func (k Keeper) GetAllActivePubkeysChangeProposals(ctx sdk.Context) (list []types.PublicKeysChangeProposal, err error)
- func (k Keeper) GetAllFinishedPubkeysChangeProposals(ctx sdk.Context) (list []types.PublicKeysChangeFinishedProposal, err error)
- func (k Keeper) GetFinishedPubkeysChangeProposal(ctx sdk.Context, id uint64) (val types.PublicKeysChangeFinishedProposal, found bool)
- func (k *Keeper) GetKeyVault(ctx sdk.Context) (keys types.KeyVault, found bool)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetProposalStats(ctx sdk.Context) (val types.ProposalStats)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) PubKeys(goCtx context.Context, req *types.QueryPubKeysRequest) (*types.QueryPubKeysResponse, error)
- func (k Keeper) RemoveActiveProposal(ctx sdk.Context, id uint64)
- func (k Keeper) SetActivePubkeysChangeProposal(ctx sdk.Context, proposal types.PublicKeysChangeProposal)
- func (k Keeper) SetFinishedPubkeysChangeProposal(ctx sdk.Context, finishedProposal types.PublicKeysChangeFinishedProposal)
- func (k Keeper) SetKeyVault(ctx sdk.Context, ks types.KeyVault)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetProposalStats(ctx sdk.Context, stats types.ProposalStats)
- func (k Keeper) VerifyTicket(goCtx context.Context, ticket string) error
- func (k Keeper) VerifyTicketUnmarshal(goCtx context.Context, ticketStr string, clm interface{}) error
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
}
Keeper is the type for module properties
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey sdk.StoreKey, ps paramtypes.Subspace, ) *Keeper
NewKeeper creates new keeper object
func (Keeper) ActivePublicKeysChangeProposal ¶
func (k Keeper) ActivePublicKeysChangeProposal(c context.Context, req *types.QueryActivePublicKeysChangeProposalRequest) (*types.QueryActivePublicKeysChangeProposalResponse, error)
ActivePublicKeysChangeProposal returns a specific active proposal by its UID
func (Keeper) ActivePublicKeysChangeProposals ¶
func (k Keeper) ActivePublicKeysChangeProposals(goCtx context.Context, req *types.QueryActivePublicKeysChangeProposalsRequest) (*types.QueryActivePublicKeysChangeProposalsResponse, error)
ActivePublicKeysChangeProposal returns list of the active pubkeys change proposal
func (Keeper) FinishedPublicKeysChangeProposal ¶
func (k Keeper) FinishedPublicKeysChangeProposal(c context.Context, req *types.QueryFinishedPublicKeysChangeProposalRequest) (*types.QueryFinishedPublicKeysChangeProposalResponse, error)
PublicKeysChangeProposal returns a specific finished proposal by its UID
func (Keeper) FinishedPublicKeysChangeProposals ¶
func (k Keeper) FinishedPublicKeysChangeProposals(goCtx context.Context, req *types.QueryFinishedPublicKeysChangeProposalsRequest) (*types.QueryFinishedPublicKeysChangeProposalsResponse, error)
FinishedPublicKeysChangeProposal returns list of the finished pubkeys change proposal
func (Keeper) GetActivePubkeysChangeProposal ¶
func (k Keeper) GetActivePubkeysChangeProposal(ctx sdk.Context, id uint64) (val types.PublicKeysChangeProposal, found bool)
GetActivePubkeysChangeProposal returns a pubkeys change proposat by its id
func (Keeper) GetAllActivePubkeysChangeProposals ¶
func (k Keeper) GetAllActivePubkeysChangeProposals(ctx sdk.Context) (list []types.PublicKeysChangeProposal, err error)
GetAllActivePubkeysChangeProposals returns list of all active pubkeys change proposals
func (Keeper) GetAllFinishedPubkeysChangeProposals ¶
func (k Keeper) GetAllFinishedPubkeysChangeProposals(ctx sdk.Context) (list []types.PublicKeysChangeFinishedProposal, err error)
GetAllFinishedPubkeysChangeProposals returns list of all finished pubkeys change proposals
func (Keeper) GetFinishedPubkeysChangeProposal ¶
func (k Keeper) GetFinishedPubkeysChangeProposal(ctx sdk.Context, id uint64) (val types.PublicKeysChangeFinishedProposal, found bool)
GetFinishedPubkeysChangeProposal returns a finished pubkeys change proposat by its id
func (*Keeper) GetKeyVault ¶
GetKeyVault is the helper functions for this keeper to query the key vault.
func (Keeper) GetProposalStats ¶
func (k Keeper) GetProposalStats(ctx sdk.Context) (val types.ProposalStats)
GetProposalStats returns proposal stats
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Params returns the params of the module
func (Keeper) PubKeys ¶
func (k Keeper) PubKeys(goCtx context.Context, req *types.QueryPubKeysRequest) (*types.QueryPubKeysResponse, error)
PubKeys returns list of the public keys
func (Keeper) RemoveActiveProposal ¶
RemoveActiveProposal removes an active pubkeys change proposal.
func (Keeper) SetActivePubkeysChangeProposal ¶
func (k Keeper) SetActivePubkeysChangeProposal(ctx sdk.Context, proposal types.PublicKeysChangeProposal)
SetActivePubkeysChangeProposal sets a pubkey list change proposal in the store.
func (Keeper) SetFinishedPubkeysChangeProposal ¶
func (k Keeper) SetFinishedPubkeysChangeProposal(ctx sdk.Context, finishedProposal types.PublicKeysChangeFinishedProposal)
SetFinishedPubkeysChangeProposal sets a finished pubkey list change proposal in the store.
func (Keeper) SetKeyVault ¶
SetKeyVault sets the key vault and overwrite the old values.
func (Keeper) SetProposalStats ¶
func (k Keeper) SetProposalStats(ctx sdk.Context, stats types.ProposalStats)
SetProposalStats sets proposal statistics in the store
func (Keeper) VerifyTicket ¶
VerifyTicket validates a ticket. For JWT see https://datatracker.ietf.org/doc/html/rfc7519 * exp is required.