Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

app source pure

Package app defines the IBC application callback contract that core invokes. The interface lives in a pure package so...

Overview

Package app defines the IBC application callback contract that core invokes. The interface lives in a pure package so application realms can implement it without importing core, and core can route packets to them by interface (dependency inversion: app imports core, core depends only on this contract).

Types 2

type IApp

interface
 1type IApp interface {
 2	OnChannelOpenInit(cur realm, connectionId types.ConnectionId, channelId types.ChannelId, version string, relayer address)
 3	OnChannelOpenTry(cur realm, connectionId types.ConnectionId, channelId types.ChannelId, version string, counterpartyVersion string, relayer address)
 4	OnChannelOpenAck(cur realm, channelId types.ChannelId, counterpartyChannelId types.ChannelId, counterpartyVersion string, relayer address)
 5	OnChannelOpenConfirm(cur realm, channelId types.ChannelId, relayer address)
 6	OnChannelCloseInit(cur realm, channelId types.ChannelId, relayer address)
 7	OnChannelCloseConfirm(cur realm, channelId types.ChannelId, relayer address)
 8	OnRecvPacket(cur realm, packet types.Packet, relayer address, relayerMsg []byte) types.RecvPacketResult
 9	OnAcknowledgementPacket(cur realm, packet types.Packet, acknowledgement []byte, relayer address)
10	OnTimeoutPacket(cur realm, packet types.Packet, relayer address)
11
12	IIntentApp
13}
source

IApp defines the interface for IBC application callbacks. Byte parameters use plain []byte (not the typed Bytes wrapper) so foreign-realm apps can implement the interface without the cross(cur)-realm typed-slice pitfall.

type IIntentApp

interface
1type IIntentApp interface {
2	OnIntentRecvPacket(cur realm, packet types.Packet, marketMaker address, marketMakerMsg []byte) types.RecvPacketResult
3}
source

IIntentApp is implemented by apps that explicitly support the proofless market-maker intent receive path.

Imports 1

Source Files 2