Documentation
¶
Index ¶
- Constants
- Variables
- func DefaultGenesisState() *v1beta4.GenesisState
- func ExportGenesis(ctx sdk.Context, k keeper.IKeeper) *v1beta4.GenesisState
- func GetGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) *v1beta4.GenesisState
- func InitGenesis(ctx sdk.Context, kpr keeper.IKeeper, data *v1beta4.GenesisState)
- func ValidateGenesis(data *v1beta4.GenesisState) error
- type AppModule
- func (am AppModule) BeginBlock(_ context.Context) error
- func (am AppModule) ConsensusVersion() uint64
- func (am AppModule) EndBlock(_ context.Context) error
- func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage
- func (AppModule) GenerateGenesisState(simState *module.SimulationState)
- func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, data json.RawMessage)
- func (am AppModule) IsAppModule()
- func (am AppModule) IsOnePerModuleType()
- func (AppModule) Name() string
- func (AppModule) ProposalMsgs(_ module.SimulationState) []simtypes.WeightedProposalMsg
- func (am AppModule) RegisterServices(cfg module.Configurator)
- func (am AppModule) RegisterStoreDecoder(_ simtypes.StoreDecoderRegistry)
- func (am AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
- func (AppModuleBasic) GetQueryCmd() *cobra.Command
- func (AppModuleBasic) GetTxCmd() *cobra.Command
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux)
- func (b AppModuleBasic) RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error
- type Keeper
Constants ¶
const ( // StoreKey represents storekey of deployment module StoreKey = types.StoreKey // ModuleName represents current module name ModuleName = types.ModuleName )
Variables ¶
var ( // NewKeeper creates new keeper instance of deployment module NewKeeper = keeper.NewKeeper )
Functions ¶
func DefaultGenesisState ¶
func DefaultGenesisState() *v1beta4.GenesisState
DefaultGenesisState returns default genesis state as raw bytes for the deployment module.
func ExportGenesis ¶
ExportGenesis returns genesis state for the deployment module
func GetGenesisStateFromAppState ¶
func GetGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) *v1beta4.GenesisState
GetGenesisStateFromAppState returns x/deployment GenesisState given raw application genesis state.
func InitGenesis ¶
InitGenesis initiate genesis state and return updated validator details
func ValidateGenesis ¶
func ValidateGenesis(data *v1beta4.GenesisState) error
ValidateGenesis does validation check of the Genesis and return error in case of failure
Types ¶
type AppModule ¶
type AppModule struct {
AppModuleBasic
// contains filtered or unexported fields
}
AppModule implements an application module for the deployment module.
func NewAppModule ¶
func NewAppModule( cdc codec.Codec, k keeper.IKeeper, mkeeper handler.MarketKeeper, ekeeper handler.EscrowKeeper, acckeeper govtypes.AccountKeeper, bankKeeper bankkeeper.Keeper, authzKeeper handler.AuthzKeeper, ) AppModule
NewAppModule creates a new AppModule Object
func (AppModule) BeginBlock ¶
BeginBlock performs no-op
func (AppModule) ConsensusVersion ¶
ConsensusVersion implements module.AppModule#ConsensusVersion
func (AppModule) EndBlock ¶
EndBlock returns the end blocker for the deployment module. It returns no validator updates.
func (AppModule) ExportGenesis ¶
ExportGenesis returns the exported genesis state as raw bytes for the deployment module.
func (AppModule) GenerateGenesisState ¶
func (AppModule) GenerateGenesisState(simState *module.SimulationState)
GenerateGenesisState creates a randomized GenState of the staking module.
func (AppModule) InitGenesis ¶
InitGenesis performs genesis initialization for the deployment module. It returns no validator updates.
func (AppModule) IsAppModule ¶
func (am AppModule) IsAppModule()
IsAppModule implements the appmodule.AppModule interface.
func (AppModule) IsOnePerModuleType ¶
func (am AppModule) IsOnePerModuleType()
IsOnePerModuleType implements the depinject.OnePerModuleType interface.
func (AppModule) ProposalMsgs ¶
func (AppModule) ProposalMsgs(_ module.SimulationState) []simtypes.WeightedProposalMsg
ProposalMsgs returns msgs used for governance proposals for simulations.
func (AppModule) RegisterServices ¶
func (am AppModule) RegisterServices(cfg module.Configurator)
RegisterServices registers the module's services
func (AppModule) RegisterStoreDecoder ¶
func (am AppModule) RegisterStoreDecoder(_ simtypes.StoreDecoderRegistry)
RegisterStoreDecoder registers a decoder for take module's types.
func (AppModule) WeightedOperations ¶
func (am AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation
WeightedOperations doesn't return any take module operation.
type AppModuleBasic ¶
type AppModuleBasic struct {
// contains filtered or unexported fields
}
AppModuleBasic defines the basic application module used by the deployment module.
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
DefaultGenesis returns default genesis state as raw bytes for the deployment module.
func (AppModuleBasic) GetQueryCmd ¶
func (AppModuleBasic) GetQueryCmd() *cobra.Command
GetQueryCmd get the root query command of this module
func (AppModuleBasic) GetTxCmd ¶
func (AppModuleBasic) GetTxCmd() *cobra.Command
GetTxCmd get the root tx command of this module
func (AppModuleBasic) Name ¶
func (AppModuleBasic) Name() string
Name returns deployment module's name
func (AppModuleBasic) RegisterGRPCGatewayRoutes ¶
func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux)
RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the deployment module.
func (AppModuleBasic) RegisterInterfaces ¶
func (b AppModuleBasic) RegisterInterfaces(registry cdctypes.InterfaceRegistry)
RegisterInterfaces registers the module's interface types
func (AppModuleBasic) RegisterLegacyAminoCodec ¶
func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the deployment module's types for the given codec.
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error
ValidateGenesis does validation check of the Genesis and returns error in case of failure