Documentation ¶
Index ¶
- type BankMigrate
- type DistrStakingMigrate
- type GovMigrate
- type Keeper
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetMigrateI() []MigrateI
- func (k Keeper) GetMigrateRecord(ctx sdk.Context, addr []byte) (mr types.MigrateRecord, found bool)
- func (k Keeper) HasMigrateRecord(ctx sdk.Context, addr []byte) bool
- func (k Keeper) HasMigratedDirectionFrom(ctx sdk.Context, addr []byte) bool
- func (k Keeper) HasMigratedDirectionTo(ctx sdk.Context, addr common.Address) bool
- func (k Keeper) InitGenesis(ctx sdk.Context, state types.GenesisState)
- func (k Keeper) IterateMigrateRecords(ctx sdk.Context, cb func(types.MigrateRecord) bool)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MigrateAccount(goCtx context.Context, msg *types.MsgMigrateAccount) (*types.MsgMigrateAccountResponse, error)
- func (k Keeper) MigrateCheckAccount(goCtx context.Context, req *types.QueryMigrateCheckAccountRequest) (*types.QueryMigrateCheckAccountResponse, error)
- func (k Keeper) MigrateRecord(ctx context.Context, req *types.QueryMigrateRecordRequest) (*types.QueryMigrateRecordResponse, error)
- func (k Keeper) SetMigrateI(migrate ...MigrateI) Keeper
- func (k Keeper) SetMigrateRecord(ctx sdk.Context, from sdk.AccAddress, to common.Address)
- type MigrateHandler
- type MigrateI
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 ¶
func (m *BankMigrate) Validate(_ sdk.Context, _ codec.BinaryCodec, _ sdk.AccAddress, _ common.Address) error
type DistrStakingMigrate ¶
type DistrStakingMigrate struct {
// contains filtered or unexported fields
}
func (*DistrStakingMigrate) Execute ¶
func (m *DistrStakingMigrate) Execute(ctx sdk.Context, cdc codec.BinaryCodec, from sdk.AccAddress, to common.Address) error
func (*DistrStakingMigrate) Validate ¶
func (m *DistrStakingMigrate) Validate(ctx sdk.Context, _ codec.BinaryCodec, from sdk.AccAddress, to common.Address) error
type GovMigrate ¶
type GovMigrate struct {
// contains filtered or unexported fields
}
func (*GovMigrate) Execute ¶
func (m *GovMigrate) Execute(ctx sdk.Context, cdc codec.BinaryCodec, from sdk.AccAddress, to common.Address) error
func (*GovMigrate) Validate ¶
func (m *GovMigrate) Validate(ctx sdk.Context, _ codec.BinaryCodec, from sdk.AccAddress, to common.Address) error
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper(cdc codec.BinaryCodec, storeKey storetypes.StoreKey, ak types.AccountKeeper) 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 ¶
GetMigrateI get all migrate handlers
func (Keeper) GetMigrateRecord ¶
GetMigrateRecord get address migrate record
func (Keeper) HasMigrateRecord ¶
func (Keeper) HasMigratedDirectionFrom ¶
func (Keeper) HasMigratedDirectionTo ¶
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, state types.GenesisState)
InitGenesis import module genesis
func (Keeper) IterateMigrateRecords ¶
func (Keeper) MigrateAccount ¶
func (k Keeper) MigrateAccount(goCtx context.Context, msg *types.MsgMigrateAccount) (*types.MsgMigrateAccountResponse, error)
func (Keeper) MigrateCheckAccount ¶
func (k Keeper) MigrateCheckAccount(goCtx context.Context, req *types.QueryMigrateCheckAccountRequest) (*types.QueryMigrateCheckAccountResponse, error)
func (Keeper) MigrateRecord ¶
func (k Keeper) MigrateRecord(ctx context.Context, req *types.QueryMigrateRecordRequest) (*types.QueryMigrateRecordResponse, error)
func (Keeper) SetMigrateI ¶
SetMigrateI set migrate handlers
func (Keeper) SetMigrateRecord ¶
SetMigrateRecord set from and to migrate record
type MigrateHandler ¶
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(govKey storetypes.StoreKey, govKeeper types.GovKeeper) MigrateI
Click to show internal directories.
Click to hide internal directories.