Documentation ¶
Index ¶
- Constants
- Variables
- func InitGenesis(ctx sdk.Context, keeper keeper.Keeper, data GenesisState) []abci.ValidatorUpdate
- func ValidateGenesis(data GenesisState) error
- type AppModule
- func (am AppModule) BeginBlock(_ sdk.Context, _ 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 (AppModule) Name() string
- func (am AppModule) NewHandler() sdk.Handler
- func (am AppModule) NewQuerierHandler() sdk.Querier
- func (am AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (am AppModule) Route() string
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis() json.RawMessage
- func (AppModuleBasic) GetQueryClient(ctx context.CLIContext) query.Client
- 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
- func (AppModuleSimulation) GenerateGenesisState(simState *module.SimulationState)
- func (AppModuleSimulation) ProposalContents(_ module.SimulationState) []sim.WeightedProposalContent
- func (AppModuleSimulation) RandomizedParams(r *rand.Rand) []sim.ParamChange
- func (AppModuleSimulation) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
- func (am AppModuleSimulation) WeightedOperations(simState module.SimulationState) []sim.WeightedOperation
- type GenesisState
- type Keeper
Constants ¶
const ( // StoreKey represents storekey of provider module StoreKey = types.StoreKey // ModuleName represents current module name ModuleName = types.ModuleName )
Variables ¶
var ( // NewKeeper creates new keeper instance of provider module NewKeeper = keeper.NewKeeper )
Functions ¶
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, keeper keeper.Keeper, data GenesisState) []abci.ValidatorUpdate
InitGenesis initiate genesis state and return updated validator details
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
ValidateGenesis does validation check of the Genesis and returns error incase of failure
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
AppModule implements an application module for the provider module.
func NewAppModule ¶
NewAppModule creates a new AppModule object
func (AppModule) BeginBlock ¶
func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
BeginBlock performs no-op
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
EndBlock returns the end blocker for the provider module. It returns no validator updates.
func (AppModule) ExportGenesis ¶
func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
ExportGenesis returns the exported genesis state as raw bytes for the provider module.
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
InitGenesis performs genesis initialization for the provider module. It returns no validator updates.
func (AppModule) NewHandler ¶
NewHandler returns an sdk.Handler for the provider module.
func (AppModule) NewQuerierHandler ¶
NewQuerierHandler returns the sdk.Querier for provider module
func (AppModule) QuerierRoute ¶
QuerierRoute returns the provider module's querier route name.
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
RegisterInvariants registers module invariants
type AppModuleBasic ¶
type AppModuleBasic struct{}
AppModuleBasic defines the basic application module used by the provider module.
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis() json.RawMessage
DefaultGenesis returns default genesis state as raw bytes for the provider module.
func (AppModuleBasic) GetQueryClient ¶
func (AppModuleBasic) GetQueryClient(ctx context.CLIContext) query.Client
GetQueryClient returns a new query client for this module
func (AppModuleBasic) GetQueryCmd ¶
func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
GetQueryCmd returns the root query command of this module
func (AppModuleBasic) GetTxCmd ¶
func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
GetTxCmd returns the transaction commands for this module
func (AppModuleBasic) Name ¶
func (AppModuleBasic) Name() string
Name returns provider module's name
func (AppModuleBasic) RegisterCodec ¶
func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
RegisterCodec registers the provider module's types for the given codec.
func (AppModuleBasic) RegisterRESTRoutes ¶
func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
RegisterRESTRoutes registers rest routes for this module
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
ValidateGenesis validation check of the Genesis
type AppModuleSimulation ¶
type AppModuleSimulation struct {
// contains filtered or unexported fields
}
AppModuleSimulation implements an application simulation module for the provider module.
func NewAppModuleSimulation ¶
func NewAppModuleSimulation(k keeper.Keeper, akeeper govtypes.AccountKeeper) AppModuleSimulation
NewAppModule creates a new AppModuleSimulation instance
func (AppModuleSimulation) GenerateGenesisState ¶
func (AppModuleSimulation) GenerateGenesisState(simState *module.SimulationState)
GenerateGenesisState creates a randomized GenState of the staking module.
func (AppModuleSimulation) ProposalContents ¶
func (AppModuleSimulation) ProposalContents(_ module.SimulationState) []sim.WeightedProposalContent
ProposalContents doesn't return any content functions for governance proposals.
func (AppModuleSimulation) RandomizedParams ¶
func (AppModuleSimulation) RandomizedParams(r *rand.Rand) []sim.ParamChange
RandomizedParams creates randomized staking param changes for the simulator.
func (AppModuleSimulation) RegisterStoreDecoder ¶
func (AppModuleSimulation) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
RegisterStoreDecoder registers a decoder for staking module's types
func (AppModuleSimulation) WeightedOperations ¶
func (am AppModuleSimulation) WeightedOperations(simState module.SimulationState) []sim.WeightedOperation
WeightedOperations returns the all the staking module operations with their respective weights.
type GenesisState ¶
GenesisState defines the basic genesis state used by provider module
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
DefaultGenesisState returns default genesis state as raw bytes for the provider module.
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, k keeper.Keeper) GenesisState
ExportGenesis returns genesis state as raw bytes for the provider module