keeper

package
v0.1.0-furyx Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: Apache-2.0 Imports: 15 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) FinishProposals

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

FinishProposals sets all of active proposals as finished.

func (Keeper) GetAllPubkeysChangeProposals

func (k Keeper) GetAllPubkeysChangeProposals(ctx sdk.Context) (list []types.PublicKeysChangeProposal, err error)

GetAllPubkeysChangeProposals returns list of all pubkeys change proposals

func (Keeper) GetAllPubkeysChangeProposalsByStatus

func (k Keeper) GetAllPubkeysChangeProposalsByStatus(ctx sdk.Context, status types.ProposalStatus) (list []types.PublicKeysChangeProposal, err error)

GetAllPubkeysChangeProposalsByStatus returns list of all pubkeys change proposals

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) GetPubkeysChangeProposal

func (k Keeper) GetPubkeysChangeProposal(ctx sdk.Context, status types.ProposalStatus, id uint64) (val types.PublicKeysChangeProposal, found bool)

GetPubkeysChangeProposal returns a pubkeys change proposat by its id

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) PublicKeysChangeProposal

PublicKeysChangeProposal returns a specific proposal by its id and status

func (Keeper) PublicKeysChangeProposals

PublicKeysChangeProposals returns list of the pubkeys change proposal

func (Keeper) RemoveProposal

func (k Keeper) RemoveProposal(ctx sdk.Context, status types.ProposalStatus, id uint64)

RemoveProposal removes an pubkeys change proposal.

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) SetPubkeysChangeProposal

func (k Keeper) SetPubkeysChangeProposal(ctx sdk.Context, proposal types.PublicKeysChangeProposal)

SetPubkeysChangeProposal sets a pubkey list change proposal 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