Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) FinishProposals(ctx sdk.Context) error
- func (k Keeper) GetAllPubkeysChangeProposals(ctx sdk.Context) (list []types.PublicKeysChangeProposal, err error)
- func (k Keeper) GetAllPubkeysChangeProposalsByStatus(ctx sdk.Context, status types.ProposalStatus) (list []types.PublicKeysChangeProposal, err error)
- func (k Keeper) GetAuthority() string
- func (k *Keeper) GetKeyVault(ctx sdk.Context) (keys types.KeyVault, found bool)
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetProposalStats(ctx sdk.Context) (val types.ProposalStats)
- func (k Keeper) GetPubkeysChangeProposal(ctx sdk.Context, status types.ProposalStatus, id uint64) (val types.PublicKeysChangeProposal, found bool)
- func (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) PublicKeysChangeProposal(c context.Context, req *types.QueryPublicKeysChangeProposalRequest) (*types.QueryPublicKeysChangeProposalResponse, error)
- func (k Keeper) PublicKeysChangeProposals(goCtx context.Context, req *types.QueryPublicKeysChangeProposalsRequest) (*types.QueryPublicKeysChangeProposalsResponse, error)
- func (k Keeper) RemoveProposal(ctx sdk.Context, status types.ProposalStatus, id uint64)
- 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) SetPubkeysChangeProposal(ctx sdk.Context, proposal types.PublicKeysChangeProposal)
- 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 storetypes.StoreKey, ps paramtypes.Subspace, authority string, ) *Keeper
NewKeeper creates new keeper object
func (Keeper) FinishProposals ¶
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) GetAuthority ¶ added in v1.4.5
GetAuthority returns the x/ovm module's authority.
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) 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) 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) PublicKeysChangeProposal ¶
func (k Keeper) PublicKeysChangeProposal( c context.Context, req *types.QueryPublicKeysChangeProposalRequest, ) (*types.QueryPublicKeysChangeProposalResponse, error)
PublicKeysChangeProposal returns a specific proposal by its id and status
func (Keeper) PublicKeysChangeProposals ¶
func (k Keeper) PublicKeysChangeProposals( goCtx context.Context, req *types.QueryPublicKeysChangeProposalsRequest, ) (*types.QueryPublicKeysChangeProposalsResponse, error)
PublicKeysChangeProposals returns list of the pubkeys change proposal
func (Keeper) RemoveProposal ¶
RemoveProposal removes a pubkeys change proposal.
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) SetPubkeysChangeProposal ¶
func (k Keeper) SetPubkeysChangeProposal(ctx sdk.Context, proposal types.PublicKeysChangeProposal)
SetPubkeysChangeProposal sets a pubkey list change proposal in the store.
func (Keeper) VerifyTicket ¶
VerifyTicket validates a ticket. For JWT see https://datatracker.ietf.org/doc/html/rfc7519 * exp is required.