Documentation ¶
Overview ¶
Package cert defines the cert module.
Index ¶
- Constants
- Variables
- func ExportGenesis(ctx sdk.Context, k keeper.Keeper) types.GenesisState
- func InitDefaultGenesis(ctx sdk.Context, k keeper.Keeper)
- func InitGenesis(ctx sdk.Context, k keeper.Keeper, data types.GenesisState)
- func NewCertifierUpdateProposalHandler(k Keeper) govtypes.Handler
- func NewHandler(k keeper.Keeper) sdk.Handler
- type AddOrRemove
- type AppModule
- func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock)
- func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
- func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
- func (am AppModule) NewHandler() sdk.Handler
- func (am AppModule) NewQuerierHandler() sdk.Querier
- func (am AppModule) ProposalContents(_ module.SimulationState) []sim.WeightedProposalContent
- func (AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (AppModule) Route() string
- func (am AppModule) WeightedOperations(simState module.SimulationState) []sim.WeightedOperation
- type AppModuleBasic
- type Certificate
- type Certifier
- type CertifierUpdateProposal
- type Certifiers
- type GenesisState
- type Keeper
- type Library
- type Platform
- type Validator
Constants ¶
const ( RouterKey = types.RouterKey StoreKey = types.StoreKey ModuleName = types.ModuleName Add = types.Add Remove = types.Remove CertificateTypeCompilation = types.CertificateTypeCompilation MaxTimestamp = keeper.MaxTimestamp ProposalTypeCertifierUpdate = types.ProposalTypeCertifierUpdate )
Variables ¶
var ( // function aliases NewKeeper = keeper.NewKeeper RegisterCodec = types.RegisterCodec GetGenesisStateFromAppState = types.GetGenesisStateFromAppState NewCertifier = types.NewCertifier DefaultGenesisState = types.DefaultGenesisState NewGeneralCertificate = types.NewGeneralCertificate NewCompilationCertificate = types.NewCompilationCertificate NewCertifierUpdateProposal = types.NewCertifierUpdateProposal // variable aliases ProposalHandler = client.ProposalHandler ErrUnqualifiedCertifier = types.ErrUnqualifiedCertifier ErrRepeatedAlias = types.ErrRepeatedAlias ErrCertifierAlreadyExists = types.ErrCertifierAlreadyExists )
Functions ¶
func ExportGenesis ¶
ExportGenesis writes the current store values to a genesis file, which can be imported again with InitGenesis.
func InitGenesis ¶
InitGenesis initialize default parameters and the keeper's address to pubkey map.
Types ¶
type AddOrRemove ¶ added in v1.0.0
type AddOrRemove = types.AddOrRemove
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
AppModule specifies the app module object.
func NewAppModule ¶
func NewAppModule(k keeper.Keeper, ak types.AccountKeeper) AppModule
NewAppModule creates a new AppModule object
func (AppModule) BeginBlock ¶
func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock)
BeginBlock implements the Cosmos SDK BeginBlock module function.
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
EndBlock implements the Cosmos SDK EndBlock module function.
func (AppModule) ExportGenesis ¶
func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
ExportGenesis initializes the module export genesis.
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
InitGenesis initializes the module genesis.
func (AppModule) NewHandler ¶
NewHandler returns a new module handler.
func (AppModule) NewQuerierHandler ¶
NewQuerierHandler returns a new querier module handler.
func (AppModule) ProposalContents ¶
func (am AppModule) ProposalContents(_ module.SimulationState) []sim.WeightedProposalContent
ProposalContents returns functions that generate gov proposals for the module
func (AppModule) QuerierRoute ¶
QuerierRoute returns the module querier route name.
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
RegisterInvariants registers the module invariants.
func (AppModule) WeightedOperations ¶
func (am AppModule) WeightedOperations(simState module.SimulationState) []sim.WeightedOperation
WeightedOperations returns cert operations for use in simulations.
type AppModuleBasic ¶
type AppModuleBasic struct {
common.AppModuleBasic
}
AppModuleBasic specifies the app module basics object.
func NewAppModuleBasic ¶
func NewAppModuleBasic() AppModuleBasic
NewAppModuleBasic create a new AppModuleBasic object in cert module
func (AppModuleBasic) GenerateGenesisState ¶
func (AppModuleBasic) GenerateGenesisState(simState *module.SimulationState)
GenerateGenesisState creates a randomized GenState of this module.
func (AppModuleBasic) RandomizedParams ¶
func (AppModuleBasic) RandomizedParams(_ *rand.Rand) []sim.ParamChange
RandomizedParams returns functions that generate params for the module
func (AppModuleBasic) RegisterStoreDecoder ¶
func (AppModuleBasic) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
RegisterStoreDecoder registers a decoder for cert module.
type Certificate ¶
type Certificate = types.Certificate
type CertifierUpdateProposal ¶
type CertifierUpdateProposal = types.CertifierUpdateProposal
type Certifiers ¶
type Certifiers = types.Certifiers
type GenesisState ¶
type GenesisState = types.GenesisState
Directories ¶
Path | Synopsis |
---|---|
cli
Package cli defines the CLI services for the cert module.
|
Package cli defines the CLI services for the cert module. |
rest
Package rest defines the RESTful service for the cert module.
|
Package rest defines the RESTful service for the cert module. |
Package keeper specifies the keeper for the cert module.
|
Package keeper specifies the keeper for the cert module. |
Package types defines the message types for the cert module.
|
Package types defines the message types for the cert module. |