keeper

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2022 License: Apache-2.0 Imports: 23 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 icacontrol Msg service interface

Types

type Keeper

type Keeper struct {
	IcaControllerKeeper icacontrollerkeeper.Keeper
	// 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) 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 deletes zone information corresponding to zoneId.

func (Keeper) ExportGenesis

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

func (Keeper) GetAutoStakingVersion

func (k Keeper) GetAutoStakingVersion(ctx sdk.Context, zoneId string) (version uint64, height uint64)

GetAutoStakingVersion returns version for autostaking corresponding to zone-id records.

func (Keeper) GetAutoStakingVersionStore

func (k Keeper) GetAutoStakingVersionStore(ctx sdk.Context) prefix.Store

GetAutoStakingStore returns store for autostaking version.

func (Keeper) GetBaseDenomForSnDenom

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

GetBaseDenomForSnDenom returns an appropriate pair of BaseDenom for snDenom.

func (Keeper) GetConnectionId

func (k Keeper) GetConnectionId(ctx sdk.Context, portId string) (string, error)

func (Keeper) GetIBCHashDenom

func (k Keeper) GetIBCHashDenom(portId, chanId, baseDenom string) string

GetIBCHashDenom uses baseDenom and portId and channelId to create the appropriate IBCdenom.

func (Keeper) GetParams

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

GetParams gets the icacontrol module's parameters.

func (Keeper) GetRegisterZoneForPortId

func (k Keeper) GetRegisterZoneForPortId(ctx sdk.Context, portId string) (*types.RegisteredZone, bool)

GetRegisterZoneForPortId returns the appropriate Zone information for portid.

func (Keeper) GetRegisteredZone

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

GetRegisteredZone gets information about the stored zone that fits the zoneId.

func (Keeper) GetRegisteredZoneForValidatorAddr

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

GetRegisteredZoneForValidatorAddr returns information about the correct zone using the validator address of the counterparty chain.

func (Keeper) GetZoneForDenom

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

GetZoneForDenom returns information about the zone that matches denom.

func (Keeper) GetsnDenomForBaseDenom

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

GetsnDenomForBaseDenom returns an appropriate pair of sn-asset denom for BaseDenom.

func (*Keeper) HandleAckFail added in v0.6.1

func (k *Keeper) HandleAckFail(ctx sdk.Context, packet channeltypes.Packet) error

func (*Keeper) HandleAckMsgData

func (k *Keeper) HandleAckMsgData(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) 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 navigates all registered 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 stores metadata for the new zone.

func (Keeper) SendTx

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

func (Keeper) SetAutoStakingVersion

func (k Keeper) SetAutoStakingVersion(ctx sdk.Context, zoneId string, trace types.IBCTrace)

SetAutoStakingVersion sets version for autostaking corresponding to zone-id records.

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 icacontrol module's parameters.

type QueryServer

type QueryServer struct {
	types.QueryServer
	// contains filtered or unexported fields
}

func NewQueryServer

func NewQueryServer(keeper Keeper) *QueryServer

func (*QueryServer) AllZones

func (QueryServer) AutoStakingVersion

func (*QueryServer) Zone

Jump to

Keyboard shortcuts

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