keeper

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 30 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateExecuteLiquidStakeRateTxMsg added in v2.9.0

func GenerateExecuteLiquidStakeRateTxMsg(blockTime int64, feature types.LiquidStake,
	mintDenom, hostDenom string, cValue sdk.Dec, hostchainId uint64,
	icaAccount liquidstakeibctypes.ICAAccount,
) (sdk.Msg, []byte, error)

func GenerateInstantiateLiquidStakeContractMsg added in v2.9.0

func GenerateInstantiateLiquidStakeContractMsg(icaAccount liquidstakeibctypes.ICAAccount,
	feature types.LiquidStake, id uint64,
) (sdk.Msg, []byte, error)

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.

Types

type EpochHooks

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

Wrapper struct

func (EpochHooks) AfterEpochEnd

func (e EpochHooks) AfterEpochEnd(ctx sdk.Context, epochIdentifier string, epochNumber int64) error

func (EpochHooks) BeforeEpochStart

func (e EpochHooks) BeforeEpochStart(ctx sdk.Context, epochIdentifier string, epochNumber int64) error

type Keeper

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

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey storetypes.StoreKey,
	epochsKeeper types.EpochsKeeper,
	liquidstakeKeeper types.LiquidStakeKeeper,
	icaControllerKeeper types.ICAControllerKeeper,
	ibcKeeper *ibckeeper.Keeper,
	msgRouter *baseapp.MsgServiceRouter,
	authority string,
) *Keeper

func (Keeper) AfterEpochEnd

func (k Keeper) AfterEpochEnd(ctx sdk.Context, epochIdentifier string, epochNumber int64) error

func (*Keeper) BeginBlock

func (k *Keeper) BeginBlock(ctx sdk.Context)

func (*Keeper) DoRecreateICA

func (k *Keeper) DoRecreateICA(ctx sdk.Context, hc types.HostChain)

func (Keeper) EpochHooks

func (k Keeper) EpochHooks() EpochHooks

Create new epoch hooks

func (*Keeper) ExecuteLiquidStakeRateTx

func (k *Keeper) ExecuteLiquidStakeRateTx(ctx sdk.Context, feature types.LiquidStake,
	mintDenom, hostDenom string, cValue sdk.Dec, hostchainId uint64,
	connectionID string, icaAccount liquidstakeibctypes.ICAAccount,
) error

func (*Keeper) GenerateAndExecuteICATx

func (k *Keeper) GenerateAndExecuteICATx(
	ctx sdk.Context,
	connectionID string,
	ownerID string,
	messages []proto.Message,
	memo string,
) (icacontrollertypes.MsgSendTxResponse, error)

func (Keeper) GetAllHostChain

func (k Keeper) GetAllHostChain(ctx sdk.Context) []types.HostChain

GetAllHostChain returns all chain

func (*Keeper) GetChainID

func (k *Keeper) GetChainID(ctx sdk.Context, connectionID string) (string, error)

GetChainID gets the id of the host chain given a connection id

func (*Keeper) GetClientState

func (k *Keeper) GetClientState(ctx sdk.Context, connectionID string) (exported.ClientState, error)

GetClientState retrieves the client state given a connection id

func (Keeper) GetHostChain

func (k Keeper) GetHostChain(
	ctx sdk.Context,
	id uint64,
) (val types.HostChain, found bool)

GetHostChain returns a chain from its index

func (Keeper) GetHostChainsByChainID

func (k Keeper) GetHostChainsByChainID(
	ctx sdk.Context,
	chainID string,
) []types.HostChain

GetHostChain returns a chain from its index

func (*Keeper) GetParams

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

GetParams gets the parameters.

func (Keeper) HandleExecuteContractResponse

func (k Keeper) HandleExecuteContractResponse(ctx sdk.Context,
	msg *wasmtypes.MsgExecuteContract,
	resp wasmtypes.MsgExecuteContractResponse,
) error

func (Keeper) HandleInstantiateContractResponse

func (k Keeper) HandleInstantiateContractResponse(ctx sdk.Context,
	msg *wasmtypes.MsgInstantiateContract,
	resp wasmtypes.MsgInstantiateContractResponse,
	icaMemo types.ICAMemo,
) error

func (Keeper) IncrementHostChainID

func (k Keeper) IncrementHostChainID(ctx sdk.Context) (hostChainID uint64)

IncrementHostChainID increments and returns a unique ID for an unbonding operation

func (*Keeper) InstantiateLiquidStakeContract

func (k *Keeper) InstantiateLiquidStakeContract(ctx sdk.Context, icaAccount liquidstakeibctypes.ICAAccount,
	feature types.LiquidStake, id uint64, connectionID string,
) error

func (Keeper) LiquidStakeIBCHooks

func (k Keeper) LiquidStakeIBCHooks() LiquidStakeIBCHooks

Create new lsibc hooks

func (Keeper) Logger

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

func (*Keeper) OnAcknowledgementPacket

func (k *Keeper) OnAcknowledgementPacket(
	ctx sdk.Context,
	packet channeltypes.Packet,
	acknowledgement []byte,
	relayer sdk.AccAddress,
) error

func (*Keeper) OnChanOpenAck

func (k *Keeper) OnChanOpenAck(
	ctx sdk.Context,
	portID string,
	channelID string,
	counterpartyChannelID string,
	counterpartyVersion string,
) error

func (*Keeper) OnTimeoutPacket

func (k *Keeper) OnTimeoutPacket(
	ctx sdk.Context,
	packet channeltypes.Packet,
	relayer sdk.AccAddress,
) error

func (Keeper) Params

func (Keeper) PostCValueUpdate

func (k Keeper) PostCValueUpdate(ctx sdk.Context, mintDenom, hostDenom string, cValue sdk.Dec) error

func (Keeper) RemoveHostChain

func (k Keeper) RemoveHostChain(ctx sdk.Context, id uint64)

RemoveHostChain removes a chain from the store

func (Keeper) SetHostChain

func (k Keeper) SetHostChain(ctx sdk.Context, chain types.HostChain)

SetHostChain set a specific chain in the store from its index

func (*Keeper) SetParams

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

SetParams sets the parameters.

type LiquidStakeIBCHooks

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

Wrapper struct

func (LiquidStakeIBCHooks) PostCValueUpdate

func (h LiquidStakeIBCHooks) PostCValueUpdate(ctx sdk.Context, mintDenom, hostDenom string, cValue sdk.Dec) error

Jump to

Keyboard shortcuts

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