Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper *Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AfterDelegateEnd(ctx sdk.Context, delegateMsg stakingtypes.MsgDelegate)
- func (k Keeper) AfterDelegateFail(ctx sdk.Context, delegateMsg stakingtypes.MsgDelegate)
- func (k Keeper) AfterIcaWithdrawFail(ctx sdk.Context, transferMsg transfertypes.MsgTransfer)
- func (k Keeper) AfterUndelegateEnd(ctx sdk.Context, undelegateMsg stakingtypes.MsgUndelegate, ...)
- func (k Keeper) AfterUndelegateFail(ctx sdk.Context, undelegateMsg stakingtypes.MsgUndelegate)
- func (k *Keeper) ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error
- func (k Keeper) DeleteRegisteredZone(ctx sdk.Context, zoneId string)
- func (k Keeper) DenomDuplicateCheck(ctx sdk.Context, baseDenom string) string
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetAutoStakingVersion(ctx sdk.Context, zoneId string) types.VersionState
- func (k Keeper) GetAutoStakingVersionStore(ctx sdk.Context) prefix.Store
- func (k Keeper) GetBaseDenomForSnDenom(ctx sdk.Context, snDenom string) string
- func (k Keeper) GetConnectionId(ctx sdk.Context, portId string) (string, error)
- func (k Keeper) GetControllerAddr(ctx sdk.Context, zoneId string) types.ControllerAddressInfo
- func (k Keeper) GetControllerAddrStore(ctx sdk.Context) prefix.Store
- func (k Keeper) GetIBCHashDenom(portId, chanId, baseDenom string) string
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetRegisterZoneForHostAddr(ctx sdk.Context, hostAddr string) (*types.RegisteredZone, bool)
- func (k Keeper) GetRegisterZoneForPortId(ctx sdk.Context, portId string) (*types.RegisteredZone, bool)
- func (k Keeper) GetRegisterZoneProposal(ctx sdk.Context, zoneId string) (types.ZoneRegisterProposal, bool)
- func (k Keeper) GetRegisteredZone(ctx sdk.Context, zoneId string) (types.RegisteredZone, bool)
- func (k Keeper) GetRegisteredZoneForValidatorAddr(ctx sdk.Context, validatorAddr string) *types.RegisteredZone
- func (k Keeper) GetZoneForDenom(ctx sdk.Context, denom string) *types.RegisteredZone
- func (k Keeper) GetsnDenomForBaseDenom(ctx sdk.Context, baseDenom string) string
- func (k *Keeper) HandleAckFail(ctx sdk.Context, packet channeltypes.Packet) error
- func (k *Keeper) HandleAckMsgData(ctx sdk.Context, packet channeltypes.Packet, msgData *sdk.MsgData) (string, error)
- func (k Keeper) HandleZoneRegisterProposal(ctx sdk.Context, proposal *types.ZoneRegisterProposal) error
- func (k Keeper) InitGenesis(ctx sdk.Context, genState *types.GenesisState)
- func (k Keeper) IsValidAutoStakingVersion(ctx sdk.Context, zoneId string, version uint64) bool
- func (k Keeper) IsValidControllerAddr(ctx sdk.Context, zoneId, address string) bool
- func (k Keeper) IsValidKeyManager(ctx sdk.Context, address string) bool
- func (k Keeper) IterateRegisteredZones(ctx sdk.Context, ...)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) RegisterZone(ctx sdk.Context, zone *types.RegisteredZone)
- func (k Keeper) RegisterZoneProposal(ctx sdk.Context, proposal *types.ZoneRegisterProposal)
- func (k Keeper) SendTx(ctx sdk.Context, controllerId, connectionId string, msgs []sdk.Msg) error
- func (k Keeper) SetAutoStakingVersion(ctx sdk.Context, zoneId string, trace types.VersionState)
- func (k Keeper) SetControllerAddr(ctx sdk.Context, zoneId string, controllerAddrs []string)
- func (k *Keeper) SetHooks(eh types.ICAHooks) *Keeper
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- type QueryServer
- func (q *QueryServer) AllZones(goCtx context.Context, request *types.QueryAllZonesRequest) (*types.QueryAllZonesResponse, error)
- func (q QueryServer) AutoStakingCurrentVersion(goCtx context.Context, request *types.QueryCurrentAutoStakingVersion) (*types.QueryCurrentAutoStakingVersionResponse, error)
- func (q QueryServer) AutoStakingVersion(goCtx context.Context, request *types.QueryAutoStakingVersion) (*types.QueryAutoStakingVersionResponse, error)
- func (q *QueryServer) Zone(goCtx context.Context, request *types.QueryZoneRequest) (*types.QueryZoneResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
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 ¶
DeleteRegisteredZone deletes zone information corresponding to zoneId.
func (Keeper) DenomDuplicateCheck ¶ added in v0.6.5
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
func (Keeper) GetAutoStakingVersion ¶
GetAutoStakingVersion returns version for autostaking corresponding to zone-id records.
func (Keeper) GetAutoStakingVersionStore ¶
GetAutoStakingStore returns store for autostaking version.
func (Keeper) GetBaseDenomForSnDenom ¶
GetBaseDenomForSnDenom returns an appropriate pair of BaseDenom for snDenom.
func (Keeper) GetConnectionId ¶
func (Keeper) GetControllerAddr ¶ added in v0.6.2
get controller address
func (Keeper) GetControllerAddrStore ¶ added in v0.6.2
set store
func (Keeper) GetIBCHashDenom ¶
GetIBCHashDenom uses baseDenom and portId and channelId to create the appropriate IBCdenom.
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 ¶
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 ¶
GetZoneForDenom returns information about the zone that matches denom.
func (Keeper) GetsnDenomForBaseDenom ¶
GetsnDenomForBaseDenom returns an appropriate pair of sn-asset denom for BaseDenom.
func (*Keeper) HandleAckFail ¶ added in v0.6.1
func (*Keeper) HandleAckMsgData ¶
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 (Keeper) IsValidControllerAddr ¶ added in v0.6.2
func (Keeper) IsValidKeyManager ¶ added in v0.6.2
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) 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) SetAutoStakingVersion ¶
SetAutoStakingVersion sets version for autostaking corresponding to zone-id records.
func (Keeper) SetControllerAddr ¶ added in v0.6.2
set controller address
type QueryServer ¶
type QueryServer struct { types.QueryServer // contains filtered or unexported fields }
func NewQueryServer ¶
func NewQueryServer(keeper Keeper) *QueryServer
func (*QueryServer) AllZones ¶
func (q *QueryServer) AllZones(goCtx context.Context, request *types.QueryAllZonesRequest) (*types.QueryAllZonesResponse, error)
func (QueryServer) AutoStakingCurrentVersion ¶ added in v0.6.3
func (q QueryServer) AutoStakingCurrentVersion(goCtx context.Context, request *types.QueryCurrentAutoStakingVersion) (*types.QueryCurrentAutoStakingVersionResponse, error)
func (QueryServer) AutoStakingVersion ¶
func (q QueryServer) AutoStakingVersion(goCtx context.Context, request *types.QueryAutoStakingVersion) (*types.QueryAutoStakingVersionResponse, error)
func (*QueryServer) Zone ¶
func (q *QueryServer) Zone(goCtx context.Context, request *types.QueryZoneRequest) (*types.QueryZoneResponse, error)