bankv2

package
v0.0.0-...-f74a9f6 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 20 Imported by: 1

README


sidebar_position: 1

x/bank/v2

Documentation

Index

Constants

View Source
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

func NewAppModule(cdc codec.Codec, keeper *keeper.Keeper) AppModule

NewAppModule creates a new AppModule object

func (AppModule) AutoCLIOptions

func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions

AutoCLIOptions implements the autocli.HasAutoCLIConfig interface.

func (AppModule) ConsensusVersion

func (AppModule) ConsensusVersion() uint64

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

func (am AppModule) ExportGenesis(ctx context.Context) (json.RawMessage, error)

ExportGenesis returns the exported genesis state as raw bytes for the bank/v2 module.

func (AppModule) GetQueryCmd

func (AppModule) GetQueryCmd() *cobra.Command

GetQueryCmd returns the root query command for the bank/v2 module. TODO: Remove & use autocli

func (AppModule) GetTxCmd

func (AppModule) GetTxCmd() *cobra.Command

GetTxCmd returns the root tx command for the bank/v2 module. TODO: Remove & use autocli

func (AppModule) InitGenesis

func (am AppModule) InitGenesis(ctx context.Context, data json.RawMessage) error

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) Name

func (AppModule) Name() string

Name returns the bank module's name. Deprecated: kept for legacy reasons.

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

type ModuleOutputs struct {
	depinject.Out

	Keeper *keeper.Keeper
	Module appmodule.AppModule
}

func ProvideModule

func ProvideModule(in ModuleInputs) ModuleOutputs

Directories

Path Synopsis
client
cli
Package testutil is a generated GoMock package.
Package testutil is a generated GoMock package.

Jump to

Keyboard shortcuts

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