keeper

package
v8.0.0-...-6a2f0a1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BankMigrate

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

func (*BankMigrate) Execute

func (m *BankMigrate) Execute(ctx sdk.Context, _ codec.BinaryCodec, from sdk.AccAddress, to common.Address) error

func (*BankMigrate) Validate

type DistrStakingMigrate

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

func (*DistrStakingMigrate) Execute

func (*DistrStakingMigrate) Validate

type GovMigrate

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

func (*GovMigrate) DepositPeriodCallback

func (m *GovMigrate) DepositPeriodCallback(ctx sdk.Context, from sdk.AccAddress, to common.Address) func(proposal govv1.Proposal) (bool, error)

func (*GovMigrate) Execute

func (*GovMigrate) Validate

func (m *GovMigrate) Validate(ctx sdk.Context, _ codec.BinaryCodec, from sdk.AccAddress, to common.Address) error

func (*GovMigrate) VotePeriodCallback

func (m *GovMigrate) VotePeriodCallback(ctx sdk.Context, from sdk.AccAddress, to common.Address) func(proposal govv1.Proposal) (bool, error)

type Keeper

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

func NewKeeper

func NewKeeper(cdc codec.BinaryCodec, storeKey storetypes.StoreKey, ak types.AccountKeeper, migrates ...MigrateI) Keeper

NewKeeper generates new fee market module keeper

func (Keeper) ExportGenesis

func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState

ExportGenesis export module status

func (Keeper) GetMigrateI

func (k Keeper) GetMigrateI() []MigrateI

GetMigrateI get all migrate handlers

func (Keeper) GetMigrateRecord

func (k Keeper) GetMigrateRecord(ctx sdk.Context, addr []byte) (mr types.MigrateRecord, found bool)

GetMigrateRecord get address migrate record

func (Keeper) HasMigrateRecord

func (k Keeper) HasMigrateRecord(ctx sdk.Context, addr []byte) bool

func (Keeper) HasMigratedDirectionFrom

func (k Keeper) HasMigratedDirectionFrom(ctx sdk.Context, addr []byte) bool

func (Keeper) HasMigratedDirectionTo

func (k Keeper) HasMigratedDirectionTo(ctx sdk.Context, addr common.Address) bool

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx sdk.Context, state types.GenesisState)

InitGenesis import module genesis

func (Keeper) IterateMigrateRecords

func (k Keeper) IterateMigrateRecords(ctx sdk.Context, cb func(types.MigrateRecord) bool)

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

Logger returns a module-specific logger.

func (Keeper) MigrateAccount

func (Keeper) SetMigrateRecord

func (k Keeper) SetMigrateRecord(ctx sdk.Context, from sdk.AccAddress, to common.Address)

SetMigrateRecord set from and to migrate record

type MigrateHandler

type MigrateHandler func(ctx sdk.Context, k Keeper, from sdk.AccAddress, to common.Address) error

MigrateHandler specifies the type of function that is called when a migration is applied

type MigrateI

type MigrateI interface {
	Validate(ctx sdk.Context, cdc codec.BinaryCodec, from sdk.AccAddress, to common.Address) error
	Execute(ctx sdk.Context, cdc codec.BinaryCodec, from sdk.AccAddress, to common.Address) error
}

func NewBankMigrate

func NewBankMigrate(bk migratetypes.BankKeeper) MigrateI

func NewDistrStakingMigrate

func NewDistrStakingMigrate(distrKey, stakingKey storetypes.StoreKey, stakingKeeper types.StakingKeeper) MigrateI

func NewGovMigrate

func NewGovMigrate(govKeeper types.GovKeeper, accountKeeper govtypes.AccountKeeper) MigrateI

Jump to

Keyboard shortcuts

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