module

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	Registry      types.InterfaceRegistry
	BankKeeper    exported.BankKeeper
	AccountKeeper exported.AccountKeeper
}

func (Module) ConsensusVersion

func (Module) ConsensusVersion() uint64

ConsensusVersion implements AppModule/ConsensusVersion.

func (Module) DefaultGenesis

func (a Module) DefaultGenesis(marshaler codec.JSONCodec) json.RawMessage

func (Module) GenerateGenesisState

func (Module) GenerateGenesisState(simState *module.SimulationState)

GenerateGenesisState creates a randomized GenesisState of the group module.

func (Module) GetQueryCmd

func (a Module) GetQueryCmd() *cobra.Command

func (Module) GetTxCmd

func (a Module) GetTxCmd() *cobra.Command

func (Module) Name

func (a Module) Name() string

func (Module) ProposalContents

func (Module) ProposalContents(simState module.SimulationState) []simtypes.WeightedProposalContent

ProposalContents returns all the group content functions used to simulate proposals.

func (Module) RandomizedParams

func (Module) RandomizedParams(r *rand.Rand) []simtypes.ParamChange

RandomizedParams creates randomized group param changes for the simulator.

func (Module) RegisterGRPCGatewayRoutes

func (a Module) RegisterGRPCGatewayRoutes(clientCtx sdkclient.Context, mux *runtime.ServeMux)

func (Module) RegisterInterfaces

func (a Module) RegisterInterfaces(registry types.InterfaceRegistry)

RegisterInterfaces registers module concrete types into protobuf Any.

func (Module) RegisterLegacyAminoCodec

func (a Module) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

func (Module) RegisterRESTRoutes

func (a Module) RegisterRESTRoutes(sdkclient.Context, *mux.Router)

*** DEPRECATED ***

func (Module) RegisterServices

func (a Module) RegisterServices(configurator servermodule.Configurator)

func (Module) RegisterStoreDecoder

func (Module) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)

RegisterStoreDecoder registers a decoder for group module's types

func (Module) ValidateGenesis

func (a Module) ValidateGenesis(cdc codec.JSONCodec, config sdkclient.TxEncodingConfig, bz json.RawMessage) error

func (Module) WeightedOperations

func (Module) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation

WeightedOperations returns all the group module operations with their respective weights. NOTE: This is no longer needed for the modules which uses ADR-33, group module `WeightedOperations` registered in the `x/group/server` package.

Jump to

Keyboard shortcuts

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