keeper

package
v0.6.7-rc6 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 25 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, channelKeeper ibcchanneltypes.Keeper) Keeper

func (Keeper) AfterDelegateEnd

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

func (Keeper) AfterDelegateFail added in v0.6.3

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

func (Keeper) AfterIcaWithdrawFail added in v0.6.5

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

func (Keeper) AfterUndelegateEnd

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

func (Keeper) AfterUndelegateFail added in v0.6.3

func (k Keeper) AfterUndelegateFail(ctx sdk.Context, undelegateMsg stakingtypes.MsgUndelegate)

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) DenomDuplicateCheck added in v0.6.5

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

func (Keeper) ExportGenesis

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

func (Keeper) GetAutoStakingVersion

func (k Keeper) GetAutoStakingVersion(ctx sdk.Context, zoneId string) types.VersionState

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) GetControllerAddr added in v0.6.2

func (k Keeper) GetControllerAddr(ctx sdk.Context, zoneId string) types.ControllerAddressInfo

get controller address

func (Keeper) GetControllerAddrStore added in v0.6.2

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

set store

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) GetRegisterZoneForHostAddr added in v0.6.3

func (k Keeper) GetRegisterZoneForHostAddr(ctx sdk.Context, hostAddr string) (*types.RegisteredZone, bool)

GetRegisterZoneForHostAddr returns the appropriate Zone information for host address.

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) GetRegisterZoneProposal added in v0.6.4

func (k Keeper) GetRegisterZoneProposal(ctx sdk.Context, zoneId string) (types.ZoneRegisterProposal, bool)

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

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) HandleZoneRegisterProposal added in v0.6.4

func (k Keeper) HandleZoneRegisterProposal(ctx sdk.Context, proposal *types.ZoneRegisterProposal) error

set prefix store

func (Keeper) InitGenesis

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

func (Keeper) IsValidAutoStakingVersion added in v0.6.3

func (k Keeper) IsValidAutoStakingVersion(ctx sdk.Context, zoneId string, version uint64) bool

func (Keeper) IsValidControllerAddr added in v0.6.2

func (k Keeper) IsValidControllerAddr(ctx sdk.Context, zoneId, address string) bool

func (Keeper) IsValidKeyManager added in v0.6.2

func (k Keeper) IsValidKeyManager(ctx sdk.Context, address 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) RegisterZoneProposal added in v0.6.4

func (k Keeper) RegisterZoneProposal(ctx sdk.Context, proposal *types.ZoneRegisterProposal)

RegisterZoneProposal stores metadata for the new zone proposal.

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.VersionState)

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

func (Keeper) SetControllerAddr added in v0.6.2

func (k Keeper) SetControllerAddr(ctx sdk.Context, zoneId string, controllerAddrs []string)

set controller address

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) AutoStakingCurrentVersion added in v0.6.3

func (QueryServer) AutoStakingVersion

func (*QueryServer) Zone

Jump to

Keyboard shortcuts

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