cert

package
v0.0.0-...-f2ae4c7 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2020 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Package cert defines the cert module.

Index

Constants

View Source
const (
	RouterKey                  = types.RouterKey
	StoreKey                   = types.StoreKey
	ModuleName                 = types.ModuleName
	Add                        = types.Add
	Remove                     = types.Remove
	CertificateTypeCompilation = types.CertificateTypeCompilation
)

Variables

View Source
var (
	// function aliases
	NewKeeper                   = keeper.NewKeeper
	RegisterCodec               = types.RegisterCodec
	GetGenesisStateFromAppState = types.GetGenesisStateFromAppState
	NewCertifier                = types.NewCertifier
	DefaultGenesisState         = types.DefaultGenesisState
	NewGeneralCertificate       = types.NewGeneralCertificate
	NewCompilationCertificate   = types.NewCompilationCertificate

	// variable aliases
	ProposalHandler           = client.ProposalHandler
	ErrUnqualifiedCertifier   = types.ErrUnqualifiedCertifier
	ErrRepeatedAlias          = types.ErrRepeatedAlias
	ErrCertifierAlreadyExists = types.ErrCertifierAlreadyExists
)

Functions

func ExportGenesis

func ExportGenesis(ctx sdk.Context, k keeper.Keeper) types.GenesisState

ExportGenesis writes the current store values to a genesis file, which can be imported again with InitGenesis.

func InitDefaultGenesis

func InitDefaultGenesis(ctx sdk.Context, k keeper.Keeper)

func InitGenesis

func InitGenesis(ctx sdk.Context, k keeper.Keeper, data types.GenesisState)

InitGenesis initialize default parameters and the keeper's address to pubkey map.

func NewCertifierUpdateProposalHandler

func NewCertifierUpdateProposalHandler(k Keeper) govtypes.Handler

func NewHandler

func NewHandler(k keeper.Keeper) sdk.Handler

NewHandler returns a handler for "cert" type messages.

Types

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

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

func (am AppModule) NewHandler() sdk.Handler

NewHandler returns a new module handler.

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

NewQuerierHandler returns a new querier module handler.

func (AppModule) ProposalContents

ProposalContents returns functions that generate gov proposals for the module

func (AppModule) QuerierRoute

func (AppModule) QuerierRoute() string

QuerierRoute returns the module querier route name.

func (AppModule) RegisterInvariants

func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)

RegisterInvariants registers the module invariants.

func (AppModule) Route

func (AppModule) Route() string

Route returns the module's route key.

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 Certifier

type Certifier = types.Certifier

type CertifierUpdateProposal

type CertifierUpdateProposal = types.CertifierUpdateProposal

type Certifiers

type Certifiers = types.Certifiers

type GenesisState

type GenesisState = types.GenesisState

type Keeper

type Keeper = keeper.Keeper

type Library

type Library = types.Library

type Platform

type Platform = types.Platform

type Validator

type Validator = types.Validator

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.
internal
keeper
Package keeper specifies the keeper for the cert module.
Package keeper specifies the keeper for the cert module.
types
Package types defines the message types for the cert module.
Package types defines the message types for the cert module.

Jump to

Keyboard shortcuts

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