Documentation ¶
Index ¶
- Constants
- Variables
- func BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock, k keeper.Keeper)
- func EndBlocker(ctx sdk.Context, k keeper.Keeper)
- func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState)
- func ValidateGenesis(_ GenesisState) error
- type AppModule
- func (am AppModule) BeginBlock(ctx sdk.Context, rbb abci.RequestBeginBlock)
- func (AppModule) EndBlock(_ 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 (AppModule) Name() string
- func (am AppModule) NewHandler() sdk.Handler
- func (am AppModule) NewQuerierHandler() sdk.Querier
- func (AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (AppModule) Route() string
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis() json.RawMessage
- func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
- func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
- type AppModuleSimulation
- type Document
- type DocumentChecksum
- type DocumentMetadata
- type DocumentMetadataSchema
- type DocumentReceipt
- type GenesisState
- type Keeper
- type MetadataSchema
- type MsgAddSupportedMetadataSchema
- type MsgAddTrustedMetadataSchemaProposer
- type MsgSendDocumentReceipt
- type MsgShareDocument
Constants ¶
const ( ModuleName = types.ModuleName StoreKey = types.StoreKey QuerierRoute = types.QuerierRoute MetadataSchemaProposersStoreKey = types.MetadataSchemaProposersStoreKey )
Variables ¶
var ( NewKeeper = keeper.NewKeeper NewHandler = keeper.NewHandler NewQuerier = keeper.NewQuerier RegisterCodec = types.RegisterCodec ModuleCdc = types.ModuleCdc RegisterInvariants = keeper.RegisterInvariants )
Functions ¶
func BeginBlocker ¶
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState)
InitGenesis sets docs information for genesis.
func ValidateGenesis ¶
func ValidateGenesis(_ GenesisState) error
ValidateGenesis performs basic validation of genesis data returning an error for any failed validation criteria.
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic AppModuleSimulation // contains filtered or unexported fields }
AppModule implements an application module for the id module.
func NewAppModule ¶
NewAppModule creates a new AppModule object
func (AppModule) BeginBlock ¶
func (am AppModule) BeginBlock(ctx sdk.Context, rbb abci.RequestBeginBlock)
module begin-block
func (AppModule) EndBlock ¶
func (AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
module end-block
func (AppModule) ExportGenesis ¶
func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
module export genesis
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
module init-genesis
func (AppModule) NewQuerierHandler ¶
module querier
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
register invariants
type AppModuleBasic ¶
type AppModuleBasic struct{}
AppModuleBasic defines the basic application module used by the docs module.
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis() json.RawMessage
default genesis state
func (AppModuleBasic) GetQueryCmd ¶
func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
get the root query command of this module
func (AppModuleBasic) GetTxCmd ¶
func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
get the root tx command of this module
func (AppModuleBasic) RegisterCodec ¶
func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
register module codec
func (AppModuleBasic) RegisterRESTRoutes ¶
func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
register rest routes
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
module genesis validation
type AppModuleSimulation ¶
type AppModuleSimulation struct{}
AppModuleSimulation defines the module simulation functions used by the auth module.
func (AppModuleSimulation) RegisterStoreDecoder ¶
func (AppModuleSimulation) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
RegisterStoreDecoder registers a decoder for auth module's types
type DocumentChecksum ¶ added in v1.2.0
type DocumentChecksum = types.DocumentChecksum
type DocumentMetadata ¶ added in v1.2.0
type DocumentMetadata = types.DocumentMetadata
type DocumentMetadataSchema ¶ added in v1.3.2
type DocumentMetadataSchema = types.DocumentMetadataSchema
type DocumentReceipt ¶
type DocumentReceipt = types.DocumentReceipt
type GenesisState ¶
type GenesisState struct { Documents []Document `json:"documents"` Receipts []DocumentReceipt `json:"receipts"` SupportedMetadataSchemes []MetadataSchema `json:"supported_metadata_schemes"` TrustedMetadataSchemaProposers []sdk.AccAddress `json:"trusted_metadata_schema_proposers"` }
GenesisState - docs genesis state
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
DefaultGenesisState returns a default genesis state
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, keeper Keeper) GenesisState
ExportGenesis returns a GenesisState for a given context and keeper.
type MetadataSchema ¶ added in v1.2.0
type MetadataSchema = types.MetadataSchema
type MsgAddSupportedMetadataSchema ¶
type MsgAddSupportedMetadataSchema = types.MsgAddSupportedMetadataSchema
type MsgAddTrustedMetadataSchemaProposer ¶
type MsgAddTrustedMetadataSchemaProposer = types.MsgAddTrustedMetadataSchemaProposer
type MsgSendDocumentReceipt ¶
type MsgSendDocumentReceipt = types.MsgSendDocumentReceipt
type MsgShareDocument ¶
type MsgShareDocument = types.MsgShareDocument