Documentation ¶
Index ¶
- Constants
- Variables
- func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState) []abci.ValidatorUpdate
- func NewHandler(keeper keeper.Keeper, authKeeper auth.Keeper) sdk.Handler
- func ValidateGenesis(data GenesisState) error
- type AppModule
- func (a AppModule) BeginBlock(sdk.Context, abci.RequestBeginBlock)
- func (a AppModule) EndBlock(sdk.Context, abci.RequestEndBlock) []abci.ValidatorUpdate
- func (a AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
- func (a AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
- func (a AppModule) NewHandler() sdk.Handler
- func (a AppModule) NewQuerierHandler() sdk.Querier
- func (a AppModule) QuerierRoute() string
- func (a AppModule) RegisterInvariants(sdk.InvariantRegistry)
- func (a AppModule) Route() string
- type AppModuleBasic
- func (a AppModuleBasic) DefaultGenesis() json.RawMessage
- func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
- func (a AppModuleBasic) Name() string
- func (a AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
- func (a AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
- type GenesisState
- type Keeper
- type Model
- type ModelItem
- type ModelVersion
- type MsgAddModel
- type MsgAddModelVersion
- type MsgDeleteModel
- type MsgUpdateModel
- type MsgUpdateModelVersion
- type TestSetup
- type VendorItem
- type VendorProducts
Constants ¶
View Source
const ( ModuleName = types.ModuleName RouterKey = types.RouterKey StoreKey = types.StoreKey CodeModelDoesNotExist = types.CodeModelDoesNotExist CodeModelAlreadyExists = types.CodeModelAlreadyExists CodeModelVersionDoesNotExist = types.CodeModelVersionDoesNotExist )
Variables ¶
View Source
var ( NewKeeper = keeper.NewKeeper NewQuerier = keeper.NewQuerier NewMsgAddModel = types.NewMsgAddModel NewMsgUpdateModel = types.NewMsgUpdateModel NewMsgAddModelVersion = types.NewMsgAddModelVersion NewMsgUpdateModelVersion = types.NewMsgUpdateModelVersion ModuleCdc = types.ModuleCdc RegisterCodec = types.RegisterCodec ErrModelDoesNotExist = types.ErrModelDoesNotExist ErrModelVersionDoesNotExist = types.ErrModelVersionDoesNotExist )
Functions ¶
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState) []abci.ValidatorUpdate
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
func (AppModule) BeginBlock ¶
func (a AppModule) BeginBlock(sdk.Context, abci.RequestBeginBlock)
func (AppModule) EndBlock ¶
func (a AppModule) EndBlock(sdk.Context, abci.RequestEndBlock) []abci.ValidatorUpdate
func (AppModule) ExportGenesis ¶
func (a AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
func (AppModule) InitGenesis ¶
func (a AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
func (AppModule) NewHandler ¶
func (AppModule) NewQuerierHandler ¶
func (AppModule) QuerierRoute ¶
func (AppModule) RegisterInvariants ¶
func (a AppModule) RegisterInvariants(sdk.InvariantRegistry)
type AppModuleBasic ¶
type AppModuleBasic struct{}
app module Basics object.
func (AppModuleBasic) DefaultGenesis ¶
func (a AppModuleBasic) DefaultGenesis() json.RawMessage
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) Name ¶
func (a AppModuleBasic) Name() string
func (AppModuleBasic) RegisterCodec ¶
func (a AppModuleBasic) RegisterCodec(cdc *codec.Codec)
func (AppModuleBasic) RegisterRESTRoutes ¶
func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
Register rest routes.
func (AppModuleBasic) ValidateGenesis ¶
func (a AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
type GenesisState ¶
type GenesisState struct {
ModelRecords []Model `json:"model_records"`
}
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, k Keeper) GenesisState
func NewGenesisState ¶
func NewGenesisState() GenesisState
type ModelVersion ¶
type ModelVersion = types.ModelVersion
type MsgAddModel ¶
type MsgAddModel = types.MsgAddModel
func TestMsgAddModel ¶
func TestMsgAddModel(signer sdk.AccAddress) MsgAddModel
type MsgAddModelVersion ¶
type MsgAddModelVersion = types.MsgAddModelVersion
func TestMsgAddModelVersion ¶
func TestMsgAddModelVersion(signer sdk.AccAddress) MsgAddModelVersion
type MsgDeleteModel ¶
type MsgDeleteModel = types.MsgDeleteModel
type MsgUpdateModel ¶
type MsgUpdateModel = types.MsgUpdateModel
func TestMsgUpdateModel ¶
func TestMsgUpdateModel(signer sdk.AccAddress) MsgUpdateModel
type MsgUpdateModelVersion ¶
type MsgUpdateModelVersion = types.MsgUpdateModelVersion
func TestMsgUpdateModelVersion ¶
func TestMsgUpdateModelVersion(signer sdk.AccAddress) MsgUpdateModelVersion
type TestSetup ¶
type VendorItem ¶
type VendorItem = types.VendorItem
type VendorProducts ¶
type VendorProducts = types.VendorProducts
Click to show internal directories.
Click to hide internal directories.