Documentation ¶
Index ¶
- Constants
- func InvokeSetSendRestrictions(config *moduletypes.Module, keeper keeper.Keeper, ...) error
- type AppModule
- func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions
- func (AppModule) ConsensusVersion() uint64
- func (am AppModule) DefaultGenesis() json.RawMessage
- func (am AppModule) ExportGenesis(ctx context.Context) (json.RawMessage, error)
- func (AppModule) GetQueryCmd() *cobra.Command
- func (AppModule) GetTxCmd() *cobra.Command
- func (am AppModule) InitGenesis(ctx context.Context, data json.RawMessage) error
- func (am AppModule) IsAppModule()
- func (am AppModule) IsOnePerModuleType()
- func (AppModule) Name() string
- func (AppModule) RegisterInterfaces(registrar registry.InterfaceRegistrar)
- func (am AppModule) RegisterMsgHandlers(router appmodulev2.MsgRouter)
- func (am AppModule) RegisterQueryHandlers(router appmodulev2.QueryRouter)
- func (am AppModule) ValidateGenesis(bz json.RawMessage) error
- type ModuleInputs
- type ModuleOutputs
Constants ¶
const ConsensusVersion = 1
ConsensusVersion defines the current x/bank/v2 module consensus version.
Variables ¶
This section is empty.
Functions ¶
func InvokeSetSendRestrictions ¶
func InvokeSetSendRestrictions( config *moduletypes.Module, keeper keeper.Keeper, restrictions map[string]types.SendRestrictionFn, ) error
Types ¶
type AppModule ¶
type AppModule struct {
// contains filtered or unexported fields
}
AppModule implements an application module for the bank module.
func NewAppModule ¶
NewAppModule creates a new AppModule object
func (AppModule) AutoCLIOptions ¶
func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions
AutoCLIOptions implements the autocli.HasAutoCLIConfig interface.
func (AppModule) ConsensusVersion ¶
ConsensusVersion implements HasConsensusVersion
func (AppModule) DefaultGenesis ¶
func (am AppModule) DefaultGenesis() json.RawMessage
DefaultGenesis returns default genesis state as raw bytes for the bank module.
func (AppModule) ExportGenesis ¶
ExportGenesis returns the exported genesis state as raw bytes for the bank/v2 module.
func (AppModule) GetQueryCmd ¶
GetQueryCmd returns the root query command for the bank/v2 module. TODO: Remove & use autocli
func (AppModule) GetTxCmd ¶
GetTxCmd returns the root tx command for the bank/v2 module. TODO: Remove & use autocli
func (AppModule) InitGenesis ¶
InitGenesis performs genesis initialization for the bank module.
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) RegisterInterfaces ¶
func (AppModule) RegisterInterfaces(registrar registry.InterfaceRegistrar)
RegisterInterfaces registers interfaces and implementations of the bank module.
func (AppModule) RegisterMsgHandlers ¶
func (am AppModule) RegisterMsgHandlers(router appmodulev2.MsgRouter)
RegisterMsgHandlers registers the message handlers for the bank module.
func (AppModule) RegisterQueryHandlers ¶
func (am AppModule) RegisterQueryHandlers(router appmodulev2.QueryRouter)
RegisterQueryHandlers registers the query handlers for the bank module.
func (AppModule) ValidateGenesis ¶
func (am AppModule) ValidateGenesis(bz json.RawMessage) error
ValidateGenesis performs genesis state validation for the bank module.
type ModuleInputs ¶
type ModuleInputs struct { depinject.In Config *moduletypes.Module Cdc codec.Codec Environment appmodule.Environment AddressCodec address.Codec }
type ModuleOutputs ¶
func ProvideModule ¶
func ProvideModule(in ModuleInputs) ModuleOutputs