Documentation ¶
Index ¶
- Constants
- func NewMsgServerImpl(keeper Keeper) ictxtypes.MsgServer
- func SerializeCosmosTx(cdc codec.BinaryCodec, msgs []*codectypes.Any) (bz []byte, err error)
- type Keeper
- func (k *Keeper) ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k *Keeper) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte, ...) error
- func (k *Keeper) HandleChanOpenAck(ctx sdk.Context, ...) error
- func (k *Keeper) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) error
- func (k Keeper) InterchainAccountAddress(c context.Context, req *types.QueryInterchainAccountAddressRequest) (*types.QueryInterchainAccountAddressResponse, error)
- func (k *Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RegisterInterchainAccount(goCtx context.Context, msg *ictxtypes.MsgRegisterInterchainAccount) (*ictxtypes.MsgRegisterInterchainAccountResponse, error)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SubmitTx(goCtx context.Context, msg *ictxtypes.MsgSubmitTx) (*ictxtypes.MsgSubmitTxResponse, error)
Constants ¶
const ( LabelSubmitTx = "submit_tx" LabelHandleAcknowledgment = "handle_ack" LabelLabelHandleChanOpenAck = "handle_chan_open_ack" LabelRegisterInterchainAccount = "register_interchain_account" LabelHandleTimeout = "handle_timeout" )
const (
// GasReserve is the amount of gas on the context gas meter we need to reserve in order to add contract failure to keeper
GasReserve = 15000
)
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
func SerializeCosmosTx ¶ added in v0.2.0
func SerializeCosmosTx(cdc codec.BinaryCodec, msgs []*codectypes.Any) (bz []byte, err error)
SerializeCosmosTx serializes a slice of *types.Any messages using the CosmosTx type. The proto marshaled CosmosTx bytes are returned. This differs from icatypes.SerializeCosmosTx in that it does not serialize sdk.Msgs, but simply uses the already serialized values.
Types ¶
type Keeper ¶
type Keeper struct { Codec codec.BinaryCodec // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, paramstore paramtypes.Subspace, channelKeeper types.ChannelKeeper, icaControllerKeeper types.ICAControllerKeeper, scopedKeeper types.ScopedKeeper, contractManagerKeeper types.ContractManagerKeeper, feeKeeper types.FeeRefunderKeeper, ) *Keeper
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) HandleAcknowledgement ¶
func (k *Keeper) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte, relayer sdk.AccAddress) error
HandleAcknowledgement passes the acknowledgement data to the appropriate contract via a Sudo call.
func (*Keeper) HandleChanOpenAck ¶
func (k *Keeper) HandleChanOpenAck( ctx sdk.Context, portID, channelID, counterpartyChannelID, counterpartyVersion string, ) error
HandleChanOpenAck passes the data about a successfully created channel to the appropriate contract (== the data about a successfully registered interchain account).
func (*Keeper) HandleTimeout ¶
func (k *Keeper) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) error
HandleTimeout passes the timeout data to the appropriate contract via a Sudo call. Since all ICA channels are ORDERED, a single timeout shuts down a channel. The affected zone should be paused after a timeout.
func (Keeper) InterchainAccountAddress ¶
func (k Keeper) InterchainAccountAddress(c context.Context, req *types.QueryInterchainAccountAddressRequest) (*types.QueryInterchainAccountAddressResponse, error)
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RegisterInterchainAccount ¶
func (k Keeper) RegisterInterchainAccount(goCtx context.Context, msg *ictxtypes.MsgRegisterInterchainAccount) (*ictxtypes.MsgRegisterInterchainAccountResponse, error)
func (Keeper) SubmitTx ¶
func (k Keeper) SubmitTx(goCtx context.Context, msg *ictxtypes.MsgSubmitTx) (*ictxtypes.MsgSubmitTxResponse, error)