keeper

package
v0.0.0-...-891b8cb Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl creates and returns a new types.MsgServer, fulfilling the ibcstaking Msg service interface

Types

type Keeper

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

func NewKeeper

func NewKeeper(cdc codec.Codec, storeKey sdk.StoreKey, ak types.AccountKeeper, iaKeeper icacontrollerkeeper.Keeper, scopedKeeper capabilitykeeper.ScopedKeeper, paramStore paramtypes.Subspace) Keeper

func (Keeper) AfterAutoStakingEnd

func (k Keeper) AfterAutoStakingEnd()

func (Keeper) AfterDelegateEnd

func (k Keeper) AfterDelegateEnd(ctx sdk.Context, delegateMsg stakingtypes.MsgDelegate)

func (Keeper) AfterUndelegateEnd

func (k Keeper) AfterUndelegateEnd(ctx sdk.Context, undelegateMsg stakingtypes.MsgUndelegate, response *stakingtypes.MsgUndelegateResponse)

func (Keeper) AfterWithdrawEnd

func (k Keeper) AfterWithdrawEnd(ctx sdk.Context, transferMsg transfertypes.MsgTransfer)

func (*Keeper) ClaimCapability

func (k *Keeper) ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error

ClaimCapability claims the channel capability passed via the OnOpenChanInit callback

func (Keeper) DeleteRegisteredZone

func (k Keeper) DeleteRegisteredZone(ctx sdk.Context, zoneId string)

DeleteRegisteredZone delete zone info

func (Keeper) ExportGenesis

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

func (Keeper) GetBaseDenomForSnDenom

func (k Keeper) GetBaseDenomForSnDenom(ctx sdk.Context, snDenom string) string

func (Keeper) GetIBCHashDenom

func (k Keeper) GetIBCHashDenom(ctx sdk.Context, portId, chanId, baseDenom string) string

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)

GetParams gets the ibcstaking module's parameters.

func (Keeper) GetRegisteredZone

func (k Keeper) GetRegisteredZone(ctx sdk.Context, zoneId string) (types.RegisteredZone, bool)

GetRegisteredZone

func (Keeper) GetRegisteredZoneForValidatorAddr

func (k Keeper) GetRegisteredZoneForValidatorAddr(ctx sdk.Context, validatorAddr string) *types.RegisteredZone

func (Keeper) GetZoneForDenom

func (k Keeper) GetZoneForDenom(ctx sdk.Context, denom string) *types.RegisteredZone

func (Keeper) GetsnDenomForBaseDenom

func (k Keeper) GetsnDenomForBaseDenom(ctx sdk.Context, baseDenom string) string

func (*Keeper) HandleMsgData

func (k *Keeper) HandleMsgData(ctx sdk.Context, packet channeltypes.Packet, msgData *sdk.MsgData) (string, error)

func (Keeper) InitGenesis

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

func (Keeper) InterchainAccountFromZone

InterchainAccountFromAddress implements the Query/InterchainAccountFromAddress gRPC method

func (Keeper) IsValidDaoModifier

func (k Keeper) IsValidDaoModifier(ctx sdk.Context, daoModifier string) bool

func (Keeper) IterateRegisteredZones

func (k Keeper) IterateRegisteredZones(ctx sdk.Context, fn func(index int64, zoneInfo types.RegisteredZone) (stop bool))

IterateRegisteredZones iterate through zones

func (Keeper) Logger

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

Logger returns the application logger, scoped to the associated module

func (Keeper) RegisterZone

func (k Keeper) RegisterZone(ctx sdk.Context, zone *types.RegisteredZone)

RegisterZone

func (Keeper) SendIcaTx

func (k Keeper) SendIcaTx(ctx sdk.Context, controllerId, connectionId string, msgs []sdk.Msg) error

func (*Keeper) SetHooks

func (k *Keeper) SetHooks(eh types.ICAHooks) *Keeper

SetHooks set the epoch hooks

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams sets the ibcstaking module's parameters.

Jump to

Keyboard shortcuts

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