keeper

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 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
}

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

ActivePublicKeysChangeProposal returns a specific active proposal by its UID

func (Keeper) ActivePublicKeysChangeProposals

ActivePublicKeysChangeProposal returns list of the active pubkeys change proposal

func (Keeper) FinishProposals

func (k Keeper) FinishProposals(ctx sdk.Context) error

func (Keeper) FinishedPublicKeysChangeProposal

PublicKeysChangeProposal returns a specific finished proposal by its UID

func (Keeper) FinishedPublicKeysChangeProposals

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

func (k *Keeper) GetKeyVault(ctx sdk.Context) (keys types.KeyVault, found bool)

GetKeyVault is the helper functions for this keeper to query the key vault.

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) GetProposalStats

func (k Keeper) GetProposalStats(ctx sdk.Context) (val types.ProposalStats)

GetProposalStats returns proposal stats

func (Keeper) Logger

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

Logger returns the logger object of this module

func (Keeper) Params

Params returns the params of the module

func (Keeper) PubKeys

PubKeys returns list of the public keys

func (Keeper) RemoveActiveProposal

func (k Keeper) RemoveActiveProposal(ctx sdk.Context, id uint64)

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

func (k Keeper) SetKeyVault(ctx sdk.Context, ks types.KeyVault)

SetKeyVault sets the key vault and overwrite the old values.

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) SetProposalStats

func (k Keeper) SetProposalStats(ctx sdk.Context, stats types.ProposalStats)

SetProposalStats sets proposal statistics in the store

func (Keeper) VerifyTicket

func (k Keeper) VerifyTicket(goCtx context.Context, ticket string) error

VerifyTicket validates a ticket. For JWT see https://datatracker.ietf.org/doc/html/rfc7519 * exp is required.

func (Keeper) VerifyTicketUnmarshal

func (k Keeper) VerifyTicketUnmarshal(goCtx context.Context, ticketStr string, clm interface{}) error

VerifyTicketUnmarshal verifies the ticket first, then if the token was verified, it unmarshal the data of ticket into clm.

Jump to

Keyboard shortcuts

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