keeper

package
v6.0.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServer

func NewMsgServer(kb Builder) ugov.MsgServer

NewMsgServer returns an implementation of uibc.MsgServer

Types

type Builder

type Builder struct {
	Cdc codec.BinaryCodec
	// contains filtered or unexported fields
}

Builder constructs Keeper by perparing all related dependencies (notably the store).

func NewKeeperBuilder

func NewKeeperBuilder(
	cdc codec.BinaryCodec, key storetypes.StoreKey,
) Builder

func (Builder) EmergencyGroup

func (kb Builder) EmergencyGroup(ctx *sdk.Context) ugov.WithEmergencyGroup

func (Builder) Keeper

func (kb Builder) Keeper(ctx *sdk.Context) ugov.Keeper

func (Builder) Params

func (kb Builder) Params(ctx *sdk.Context) ugov.ParamsKeeper

type Keeper

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

Keeper provides a light interface for module data access and transformation

func (Keeper) EmergencyGroup

func (k Keeper) EmergencyGroup() sdk.AccAddress

func (Keeper) ExportGenesis

func (k Keeper) ExportGenesis() *ugov.GenesisState

func (Keeper) InflationCycleEnd

func (k Keeper) InflationCycleEnd() time.Time

Returns zero unix time if the inflation cycle was not set.

func (Keeper) InflationParams

func (k Keeper) InflationParams() ugov.InflationParams

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(gs *ugov.GenesisState) error

func (Keeper) MinGasPrice

func (k Keeper) MinGasPrice() sdk.DecCoin

func (Keeper) SetEmergencyGroup

func (k Keeper) SetEmergencyGroup(p sdk.AccAddress)

func (Keeper) SetInflationCycleEnd

func (k Keeper) SetInflationCycleEnd(cycleEnd time.Time) error

func (Keeper) SetInflationParams

func (k Keeper) SetInflationParams(ip ugov.InflationParams) error

func (Keeper) SetMinGasPrice

func (k Keeper) SetMinGasPrice(p sdk.DecCoin) error

type Migrator

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

Migrator is a struct for handling in-place store migrations.

func NewMigrator

func NewMigrator(kb Builder) Migrator

NewMigrator returns a new Migrator instance.

func (Migrator) Migrate1to2

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

Migrate1to2 migrates from version 1 to 2.

type Querier

type Querier struct {
	Builder
}

Querier implements a QueryServer for the x/uibc module.

func NewQuerier

func NewQuerier(kb Builder) Querier

func (Querier) EmergencyGroup

func (Querier) InflationCycleEnd

InflationCycleEnd return when the inflation cycle will be ended.

func (Querier) InflationParams

InflationParams returns inflation rate change params

func (Querier) MinGasPrice

MinTxFees returns minimum transaction fees.

Jump to

Keyboard shortcuts

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