Documentation
¶
Index ¶
- Constants
- type AppModule
- func (AppModule) AutoCLIOptions() *autocliv1.ModuleOptions
- func (m AppModule) BeginBlock(ctx context.Context) error
- func (AppModule) ConsensusVersion() uint64
- func (m AppModule) EndBlock(ctx context.Context) error
- func (m AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage
- func (m AppModule) GenerateGenesisState(simState *module.SimulationState)
- func (m AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, bz json.RawMessage)
- func (AppModule) IsAppModule()
- func (AppModule) IsOnePerModuleType()
- func (m AppModule) RegisterServices(cfg module.Configurator)
- func (m AppModule) RegisterStoreDecoder(_ simtypes.StoreDecoderRegistry)
- func (m AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux)
- func (AppModuleBasic) RegisterInterfaces(reg codectypes.InterfaceRegistry)
- func (AppModuleBasic) RegisterLegacyAminoCodec(_ *codec.LegacyAmino)
- func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error
- type ModuleInputs
- type ModuleOutputs
Constants ¶
const ConsensusVersion = 1
ConsensusVersion defines the current x/vault module consensus version.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppModule ¶
type AppModule struct {
AppModuleBasic
// contains filtered or unexported fields
}
AppModule implements the core vault module functionality.
func NewAppModule ¶
func NewAppModule(keeper *keeper.Keeper, mk types.MarkerKeeper, bk types.BankKeeper, addressCodec address.Codec) AppModule
NewAppModule creates a new AppModule instance.
func (AppModule) AutoCLIOptions ¶
func (AppModule) AutoCLIOptions() *autocliv1.ModuleOptions
AutoCLIOptions defines CLI commands for tx and query.
func (AppModule) BeginBlock ¶
BeginBlock returns the begin blocker for the vault module.
func (AppModule) ConsensusVersion ¶
ConsensusVersion returns the module consensus version.
func (AppModule) ExportGenesis ¶
ExportGenesis exports the module's state to genesis.
func (AppModule) GenerateGenesisState ¶
func (m AppModule) GenerateGenesisState(simState *module.SimulationState)
GenerateGenesisState creates a randomized GenState of the bank module.
func (AppModule) InitGenesis ¶
InitGenesis initializes the module's state from genesis.
func (AppModule) IsAppModule ¶
func (AppModule) IsAppModule()
IsAppModule asserts this is an app module.
func (AppModule) IsOnePerModuleType ¶
func (AppModule) IsOnePerModuleType()
IsOnePerModuleType asserts one module per type.
func (AppModule) RegisterServices ¶
func (m AppModule) RegisterServices(cfg module.Configurator)
RegisterServices registers gRPC query and message services.
func (AppModule) RegisterStoreDecoder ¶
func (m AppModule) RegisterStoreDecoder(_ simtypes.StoreDecoderRegistry)
RegisterStoreDecoder registers a decoder for supply module's types
func (AppModule) WeightedOperations ¶
func (m AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation
WeightedOperations returns the all the gov module operations with their respective weights.
type AppModuleBasic ¶
type AppModuleBasic struct{}
AppModuleBasic implements the basic methods for the vault module.
func NewAppModuleBasic ¶
func NewAppModuleBasic() AppModuleBasic
NewAppModuleBasic creates a new AppModuleBasic.
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
DefaultGenesis returns default genesis state as raw bytes.
func (AppModuleBasic) Name ¶
func (AppModuleBasic) Name() string
Name returns the vault module name.
func (AppModuleBasic) RegisterGRPCGatewayRoutes ¶
func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux)
RegisterGRPCGatewayRoutes sets up gRPC gateway routes.
func (AppModuleBasic) RegisterInterfaces ¶
func (AppModuleBasic) RegisterInterfaces(reg codectypes.InterfaceRegistry)
RegisterInterfaces registers vault interfaces to the interface registry.
func (AppModuleBasic) RegisterLegacyAminoCodec ¶
func (AppModuleBasic) RegisterLegacyAminoCodec(_ *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the legacy amino codec.
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error
ValidateGenesis validates the vault genesis state.
type ModuleInputs ¶
type ModuleInputs struct {
depinject.In
Config *modulev1.Module
StoreService store.KVStoreService
HeaderService header.Service
EventService event.Service
Codec codec.Codec
AddressCodec address.Codec
AuthKeeper types.AccountKeeper
MarkerKeeper types.MarkerKeeper
BankKeeper types.BankKeeper
}
ModuleInputs defines the inputs required to initialize the vault module.
type ModuleOutputs ¶
ModuleOutputs defines the outputs of the vault module provider.
func ProvideModule ¶
func ProvideModule(in ModuleInputs) ModuleOutputs
ProvideModule wires up the vault module and its keeper.
Directories
¶
| Path | Synopsis |
|---|---|
|
api
|
|
|
provlabs/vault/module/v1
Code generated by protoc-gen-go-pulsar.
|
Code generated by protoc-gen-go-pulsar. |
|
provlabs/vault/v1
Code generated by protoc-gen-go-pulsar.
|
Code generated by protoc-gen-go-pulsar. |
|
simapp
module
|
|
|
Package types is a reverse proxy.
|
Package types is a reverse proxy. |