globalfee

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: Apache-2.0 Imports: 25 Imported by: 2

Documentation

Index

Constants

View Source
const ConsensusVersion = 2

ConsensusVersion defines the current GlobalFee module consensus version.

Variables

This section is empty.

Functions

func ExportGenesis

func ExportGenesis(ctx context.Context, k *keeper.Keeper) *types.GenesisState

func InitGenesis

func InitGenesis(ctx context.Context, k *keeper.Keeper, genesis types.GenesisState)

func TxFeeChecker

func TxFeeChecker(keeper *keeper.Keeper) ante.TxFeeChecker

TxFeeChecker returns a custom ante.TxFeeChecker that ensures the fees for a given transaction respect the gas prices set in the GlobalFee module.

Types

type AppModule

type AppModule struct {
	AppModuleBasic
	// contains filtered or unexported fields
}

func NewAppModule

func NewAppModule(registry codectypes.InterfaceRegistry, subspace paramstypes.Subspace, keeper *keeper.Keeper) AppModule

func (AppModule) AutoCLIOptions

func (AppModule) AutoCLIOptions() *autocliv1.ModuleOptions

func (AppModule) ConsensusVersion

func (AppModule) ConsensusVersion() uint64

func (AppModule) ExportGenesis

func (m AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage

func (AppModule) GetTxCmd

func (AppModule) GetTxCmd() *cobra.Command

func (AppModule) InitGenesis

func (m AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, bz json.RawMessage)

func (AppModule) IsAppModule

func (AppModule) IsAppModule()

func (AppModule) IsOnePerModuleType

func (AppModule) IsOnePerModuleType()

func (AppModule) RegisterServices

func (m AppModule) RegisterServices(cfg module.Configurator)

type AppModuleBasic

type AppModuleBasic struct {
	// contains filtered or unexported fields
}

func NewAppModuleBasic

func NewAppModuleBasic(registry codectypes.InterfaceRegistry) AppModuleBasic

func (AppModuleBasic) DefaultGenesis

func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage

func (AppModuleBasic) Name

func (AppModuleBasic) Name() string

func (AppModuleBasic) RegisterGRPCGatewayRoutes

func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux)

func (AppModuleBasic) RegisterInterfaces

func (AppModuleBasic) RegisterInterfaces(reg codectypes.InterfaceRegistry)

func (AppModuleBasic) RegisterLegacyAminoCodec

func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

func (AppModuleBasic) ValidateGenesis

func (b AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error

type Migrator

type Migrator struct {
	*keeper.Keeper
	// contains filtered or unexported fields
}

func NewMigrator

func NewMigrator(subspace paramstypes.Subspace, keeper *keeper.Keeper) Migrator

func (Migrator) Migrate1to2

func (m Migrator) Migrate1to2(ctx sdk.Context) error

Migrate1to2 migrates from version 1 to 2.

type ModuleInputs

type ModuleInputs struct {
	depinject.In

	Config   *modulev1.Module
	Service  store.KVStoreService
	Registry codectypes.InterfaceRegistry
	Cdc      codec.Codec
	Subspace paramstypes.Subspace
}

type ModuleOutputs

type ModuleOutputs struct {
	depinject.Out

	Keeper *keeper.Keeper
	Module appmodule.AppModule
}

func ProvideModule

func ProvideModule(in ModuleInputs) ModuleOutputs

Directories

Path Synopsis
api
module/v1
Code generated by protoc-gen-go-pulsar.
Code generated by protoc-gen-go-pulsar.
v1
Code generated by protoc-gen-go-pulsar.
Code generated by protoc-gen-go-pulsar.
client
cli
e2e module
simapp module
Package types is a reverse proxy.
Package types is a reverse proxy.

Jump to

Keyboard shortcuts

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