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

types source pure

Constants 5

const RelayerSelectorRegisterClient, RelayerSelectorCreateClient, RelayerSelectorUpdateClient, RelayerSelectorMisbehaviour, RelayerSelectorConnectionOpenInit, RelayerSelectorConnectionOpenTry, RelayerSelectorConnectionOpenAck, RelayerSelectorConnectionOpenConfirm, RelayerSelectorChannelOpenInit, RelayerSelectorChannelOpenTry, RelayerSelectorChannelOpenAck, RelayerSelectorChannelOpenConfirm, RelayerSelectorBatchSend, RelayerSelectorBatchAcks, RelayerSelectorPacketRecv, RelayerSelectorIntentPacketRecv, RelayerSelectorPacketAck, RelayerSelectorPacketTimeout

 1const (
 2	RelayerSelectorRegisterClient        manager.Selector = "register_client"
 3	RelayerSelectorCreateClient          manager.Selector = "create_client"
 4	RelayerSelectorUpdateClient          manager.Selector = "update_client"
 5	RelayerSelectorMisbehaviour          manager.Selector = "misbehaviour"
 6	RelayerSelectorConnectionOpenInit    manager.Selector = "connection_open_init"
 7	RelayerSelectorConnectionOpenTry     manager.Selector = "connection_open_try"
 8	RelayerSelectorConnectionOpenAck     manager.Selector = "connection_open_ack"
 9	RelayerSelectorConnectionOpenConfirm manager.Selector = "connection_open_confirm"
10	RelayerSelectorChannelOpenInit       manager.Selector = "channel_open_init"
11	RelayerSelectorChannelOpenTry        manager.Selector = "channel_open_try"
12	RelayerSelectorChannelOpenAck        manager.Selector = "channel_open_ack"
13	RelayerSelectorChannelOpenConfirm    manager.Selector = "channel_open_confirm"
14	RelayerSelectorBatchSend             manager.Selector = "batch_send"
15	RelayerSelectorBatchAcks             manager.Selector = "batch_acks"
16	RelayerSelectorPacketRecv            manager.Selector = "packet_recv"
17	RelayerSelectorIntentPacketRecv      manager.Selector = "intent_packet_recv"
18	RelayerSelectorPacketAck             manager.Selector = "packet_ack"
19	RelayerSelectorPacketTimeout         manager.Selector = "packet_timeout"
20)
source

Variables 1

var CLIENT_STATE, CONSENSUS_STATE, CONNECTIONS, CHANNELS, PACKETS, PACKET_ACKS, MEMBERSHIP_PROOF, NON_MEMBERSHIP_PROOF, COMMITMENT_MAGIC, COMMITMENT_MAGIC_ACK, NON_MEMBERSHIP_COMMITMENT_VALUE

 1var (
 2	// Slot constants (Ethereum-style storage layout)
 3	CLIENT_STATE [32]byte = [32]byte{
 4		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 5		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 6		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 7		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 8	}
 9	CONSENSUS_STATE [32]byte = [32]byte{
10		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
11		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
12		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
13		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
14	}
15	CONNECTIONS [32]byte = [32]byte{
16		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
17		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
18		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
19		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02,
20	}
21	CHANNELS [32]byte = [32]byte{
22		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
23		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
24		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
25		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03,
26	}
27	PACKETS [32]byte = [32]byte{
28		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
29		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
30		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
31		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04,
32	}
33	PACKET_ACKS [32]byte = [32]byte{
34		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
35		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
36		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
37		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05,
38	}
39	MEMBERSHIP_PROOF [32]byte = [32]byte{
40		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
41		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
42		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
43		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06,
44	}
45	NON_MEMBERSHIP_PROOF [32]byte = [32]byte{
46		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
47		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
48		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
49		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07,
50	}
51	// Sentinel values stored for commitments
52	COMMITMENT_MAGIC H256 = [32]byte{
53		0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
54		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
55		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
56		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
57	}
58	COMMITMENT_MAGIC_ACK H256 = [32]byte{
59		0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
60		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
61		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
62		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
63	}
64	NON_MEMBERSHIP_COMMITMENT_VALUE H256 = [32]byte{
65		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
66		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
67		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
68		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
69	}
70)
source

Functions 49

func CloneBytes

1func CloneBytes(b []byte) []byte
source

CloneBytes returns a fresh copy of b, or nil for nil input. It is the []byte counterpart of Bytes.Clone: realm packages use it to detach the InterRealm v2 ownership of a slice that crossed a realm boundary before storing or re-emitting it. copy is an element-wise read (permitted on a foreign/readonly slice); a slice->slice conversion or a []byte->string->[]byte round-trip (which gno elides) would keep the foreign ownership and later panic with "illegal conversion of readonly or externally stored value".

func NewChannel

1func NewChannel(
2	state ChannelState,
3	connectionId ConnectionId,
4	counterpartyChannelId ChannelId,
5	counterpartyPortId Bytes,
6	version string,
7) Channel
source

func NewConnection

1func NewConnection(state ConnectionState, clientId, counterpartyClientId ClientId, counterpartyConnectionId ConnectionId) Connection
source

func NewConsensusStateUpdate

1func NewConsensusStateUpdate(height Height, consensusStateBytes, clientStateBytes []byte) ConsensusStateUpdate
source

func CommitAck

1func CommitAck(ack []byte) H256
source

CommitAck returns the Union commitment hash of a single acknowledgement.

func CommitAcks

1func CommitAcks(acks [][]byte) H256
source

CommitAcks returns the Union commitment hash of an acknowledgement batch, with the leading byte replaced by the commitment magic.

func CommitPacket

1func CommitPacket(packet Packet) (H256, error)
source

CommitPacket returns the Union commitment hash of a single packet.

func CommitPackets

1func CommitPackets(packets []Packet) (H256, error)
source

CommitPackets returns the Union commitment hash of a packet batch: the keccak of the top-level-dynamic-wrapped ABI packet array.

func Keccak

1func Keccak(bz []byte) H256
source

Keccak hashes bz with keccak256 and returns the result as an H256. Exported for realm callers (core commits state roots with it).

func MustCommit

1func MustCommit(h H256, err error) H256
source

MustCommit unwraps a commitment hash or panics on encoding errors.

func NewHeight

1func NewHeight(height uint64) Height
source

NewHeight returns a Height with no revision.

func NewHeightWithRevision

1func NewHeightWithRevision(revision, height uint64) Height
source

NewHeightWithRevision returns a Height carrying both a revision and a height.

func ParseHeight

1func ParseHeight(s string) (Height, error)
source

ParseHeight parses a height string of the form "revision-height" or a bare "height". A "revision-height" form always carries its revision, even when it is zero.

func NewMsgChannelCloseConfirm

1func NewMsgChannelCloseConfirm(channelId ChannelId, proofInit []byte, proofHeight uint64, relayer string) MsgChannelCloseConfirm
source

func NewMsgChannelOpenAck

1func NewMsgChannelOpenAck(channelId ChannelId, counterpartyVersion string, counterpartyChannelId ChannelId, proofTry []byte, proofHeight uint64, relayer string) MsgChannelOpenAck
source

func NewMsgChannelOpenConfirm

1func NewMsgChannelOpenConfirm(channelId ChannelId, proofAck []byte, proofHeight uint64, relayer string) MsgChannelOpenConfirm
source

func NewMsgChannelOpenInit

1func NewMsgChannelOpenInit(portId, counterpartyPortId []byte, connectionId ConnectionId, version string, relayer string) MsgChannelOpenInit
source

func NewMsgChannelOpenTry

1func NewMsgChannelOpenTry(portId []byte, channel Channel, counterpartyVersion string, proofInit []byte, proofHeight uint64, relayer string) MsgChannelOpenTry
source

func NewMsgCommitMembershipProof

1func NewMsgCommitMembershipProof(clientId ClientId, proofHeight uint64, proof, path, value []byte) MsgCommitMembershipProof
source

func NewMsgConnectionOpenAck

1func NewMsgConnectionOpenAck(connectionId, counterpartyConnectionId ConnectionId, proofTry []byte, proofHeight uint64) MsgConnectionOpenAck
source

func NewMsgConnectionOpenTry

1func NewMsgConnectionOpenTry(clientId, counterpartyClientId ClientId, counterpartyConnectionId ConnectionId, proofInit []byte, proofHeight uint64) MsgConnectionOpenTry
source

func NewMsgCreateClient

1func NewMsgCreateClient(clientType ClientType, clientStateBytes, consensusStateBytes []byte) MsgCreateClient
source

func NewMsgForceUpdateClient

1func NewMsgForceUpdateClient(clientId ClientId, clientStateBytes, consensusStateBytes []byte) MsgForceUpdateClient
source

func NewMsgMisbehaviour

1func NewMsgMisbehaviour(clientId ClientId, clientMessage []byte, relayer string) MsgMisbehaviour
source

func NewMsgPacketAcknowledgement

1func NewMsgPacketAcknowledgement(packets []Packet, acknowledgements [][]byte, proof []byte, proofHeight uint64) MsgPacketAcknowledgement
source

func NewMsgPacketRecv

1func NewMsgPacketRecv(packets []Packet, relayerMsgs [][]byte, proof []byte, proofHeight uint64) MsgPacketRecv
source

func NewMsgPacketTimeout

1func NewMsgPacketTimeout(packet Packet, proof []byte, proofHeight uint64) MsgPacketTimeout
source

func NewPacket

1func NewPacket(sourceChannelId, destinationChannelId ChannelId, data []byte, timeoutTimestamp Timestamp) Packet
source

Types 45

type Bytes

slice
1type Bytes []byte
source

Methods on Bytes

func Bytes

method on Bytes
1func (bz Bytes) Bytes() []byte
source

func Clone

method on Bytes
1func (bz Bytes) Clone() Bytes
source

Clone returns a fresh Bytes detached from any external/readonly realm ownership of bz.

Under gno's InterRealm v2 borrow rules a value that crossed a realm boundary is externally stored, and a direct slice->slice conversion of it (a plain types.Bytes->[]byte cast, or a []byte->string->[]byte round-trip, which gno elides) keeps the foreign ownership and panics with "illegal conversion of readonly or externally stored value" when later stored or re-emitted. copy is an element-wise read, not a conversion, so it is permitted on a readonly source and yields a value owned by the caller's realm. Use Clone before persisting or re-emitting Bytes that arrived from another realm.

func String

method on Bytes
1func (bz Bytes) String() string
source

type Channel

struct
1type Channel struct {
2	State                 ChannelState
3	ConnectionId          ConnectionId
4	CounterpartyChannelId ChannelId
5	CounterpartyPortId    Bytes
6	Version               string
7}
source

Methods on Channel

func EncodeABI

method on Channel
1func (c Channel) EncodeABI() ([]byte, error)
source

type ChannelId

ident
1type ChannelId uint32
source

Methods on ChannelId

func String

method on ChannelId
1func (id ChannelId) String() string
source

type ClientCreationResult

struct
1type ClientCreationResult struct {
2	ClientStateBytes []byte
3	StorageWrites    map[string][]byte
4}
source

ClientCreationResult is the result of lightclient.Interface.VerifyCreation.

It mirrors the Union (Rust) ClientCreationResult{client_state: Option, ...}. An empty ClientStateBytes means the client state was not overwritten during creation. CometBLS performs no creation-time validation and writes nothing, so its result is empty; the type is kept for symmetry with other clients.

type ClientId

ident
1type ClientId uint32
source

Methods on ClientId

func String

method on ClientId
1func (id ClientId) String() string
source

type ClientState

interface
1type ClientState interface {
2	ClientType() string
3}
source

ClientState is the marker interface a light client's client-state satisfies. Concrete client states (e.g. cometbls.ClientState) implement it so the lightclient.Interface can return them opaquely; callers downcast as needed.

type ClientType

ident
1type ClientType string
source

Methods on ClientType

func String

method on ClientType
1func (ct ClientType) String() string
source

type Connection

struct
1type Connection struct {
2	State                    ConnectionState
3	ClientId                 ClientId
4	CounterpartyClientId     ClientId
5	CounterpartyConnectionId ConnectionId
6}
source

Methods on Connection

func EncodeABI

method on Connection
1func (c Connection) EncodeABI() ([]byte, error)
source

type ConnectionId

ident
1type ConnectionId uint32
source

Methods on ConnectionId

func String

method on ConnectionId
1func (id ConnectionId) String() string
source

type ConsensusStateUpdate

struct
1type ConsensusStateUpdate struct {
2	Height              Height
3	ConsensusStateBytes []byte
4	ClientStateBytes    []byte
5}
source

ConsensusStateUpdate carries the height-stamped consensus and client state bytes a light client returns after verifying a header update.

type H256

array
1type H256 [32]byte
source

Methods on H256

func String

method on H256
1func (h H256) String() string
source

type Header

interface
1type Header interface {
2	ClientType() string
3}
source

Header is the marker interface for a light client update message — either a header or a misbehaviour. Concrete update messages implement it so the lightclient.Interface can accept them opaquely; the client downcasts to its own concrete type.

type Height

struct
1type Height struct {
2	// the revision that the client is currently on
3	RevisionNumber uint64
4	// the height within the given revision
5	RevisionHeight uint64
6}
source

Height is a blockchain height, optionally prefixed with a revision number as per the IBC specification. A revision of zero is treated as "no revision": it is omitted from the string form and ignored during comparison, mirroring the Rust `Option<NonZeroU64>` revision semantics.

Methods on Height

func Bytes

method on Height
1func (h Height) Bytes() []byte
source

Bytes returns a 16-byte big-endian encoding of the height (revision then height), suitable as a BPTree key with correct lexicographic ordering when cast to string.

func Cmp

method on Height
1func (h Height) Cmp(other Height) int
source

Cmp compares two heights, returning -1, 0, or 1. When both heights carry a revision, revisions are compared first and heights break the tie; otherwise only the height numbers are compared.

func EQ

method on Height
1func (h Height) EQ(other Height) bool
source

EQ reports whether h equals other under height comparison semantics.

func GT

method on Height
1func (h Height) GT(other Height) bool
source

GT reports whether h is strictly greater than other.

func GTE

method on Height
1func (h Height) GTE(other Height) bool
source

GTE reports whether h is greater than or equal to other.

func GetHeight

method on Height
1func (h Height) GetHeight() uint64
source

GetHeight returns the height number.

func GetRevision

method on Height
1func (h Height) GetRevision() uint64
source

GetRevision returns the revision number, or zero when unset.

func HasRevision

method on Height
1func (h Height) HasRevision() bool
source

HasRevision reports whether the height carries a non-zero revision number.

func Increment

method on Height
1func (h Height) Increment() Height
source

Increment returns a copy of the height advanced by one, preserving revision.

func IncrementBy

method on Height
1func (h Height) IncrementBy(n uint64) Height
source

IncrementBy returns a copy of the height advanced by n, preserving revision.

func IsZero

method on Height
1func (h Height) IsZero() bool
source

IsZero reports whether the height is the zero value (no revision, zero height). Union packets require a zero timeout height.

func LT

method on Height
1func (h Height) LT(other Height) bool
source

LT reports whether h is strictly less than other.

func LTE

method on Height
1func (h Height) LTE(other Height) bool
source

LTE reports whether h is less than or equal to other.

func RevisionMatches

method on Height
1func (h Height) RevisionMatches(other Height) bool
source

RevisionMatches reports whether two heights share the same revision. When either side has no revision the revisions are considered compatible.

func String

method on Height
1func (h Height) String() string
source

String renders the height as "revision-height" when a revision is set, or as the bare height otherwise.

type MsgBatchAcks

struct
1type MsgBatchAcks struct {
2	Packets []Packet
3	Acks    [][]byte
4}
source

MsgBatchAcks commits a batch of acknowledgements for received packets.

type MsgBatchSend

struct
1type MsgBatchSend struct {
2	Packets []Packet
3}
source

MsgBatchSend commits a batch of already-sent packets so they can be proven together.

type MsgChannelOpenAck

struct
1type MsgChannelOpenAck struct {
2	ChannelId             ChannelId
3	CounterpartyVersion   string
4	CounterpartyChannelId ChannelId
5	ProofTry              []byte
6	ProofHeight           uint64
7	Relayer               string
8}
source

type MsgChannelOpenConfirm

struct
1type MsgChannelOpenConfirm struct {
2	ChannelId   ChannelId
3	ProofAck    []byte
4	ProofHeight uint64
5	Relayer     string
6}
source

type MsgChannelOpenInit

struct
1type MsgChannelOpenInit struct {
2	PortId             []byte
3	CounterpartyPortId []byte
4	ConnectionId       ConnectionId
5	Version            string
6	Relayer            string
7}
source

type MsgChannelOpenTry

struct
1type MsgChannelOpenTry struct {
2	PortId              []byte
3	Channel             Channel
4	CounterpartyVersion string
5	ProofInit           []byte
6	ProofHeight         uint64
7	Relayer             string
8}
source

type MsgCommitMembershipProof

struct
1type MsgCommitMembershipProof struct {
2	ClientId    ClientId
3	ProofHeight uint64
4	Proof       []byte
5	Path        []byte
6	Value       []byte
7}
source

MsgCommitMembershipProof verifies and commits a membership proof for later counterparty proof-lens reads.

type MsgCommitNonMembershipProof

struct
1type MsgCommitNonMembershipProof struct {
2	ClientId    ClientId
3	ProofHeight uint64
4	Proof       []byte
5	Path        []byte
6}
source

MsgCommitNonMembershipProof verifies and commits a non-membership proof for later counterparty proof-lens reads.

type MsgConnectionOpenAck

struct
1type MsgConnectionOpenAck struct {
2	ConnectionId             ConnectionId
3	CounterpartyConnectionId ConnectionId
4	ProofTry                 []byte
5	ProofHeight              uint64
6}
source

type MsgConnectionOpenTry

struct
1type MsgConnectionOpenTry struct {
2	ClientId                 ClientId
3	CounterpartyClientId     ClientId
4	CounterpartyConnectionId ConnectionId
5	ProofInit                []byte
6	ProofHeight              uint64
7}
source

type MsgCreateClient

struct
1type MsgCreateClient struct {
2	ClientType          ClientType
3	ClientStateBytes    []byte
4	ConsensusStateBytes []byte
5	Relayer             string
6}
source

type MsgForceUpdateClient

struct
1type MsgForceUpdateClient struct {
2	ClientId            ClientId
3	ClientStateBytes    []byte
4	ConsensusStateBytes []byte
5}
source

type MsgIntentPacketRecv

struct
1type MsgIntentPacketRecv struct {
2	Packets             []Packet
3	MarketMakerMessages [][]byte
4	MarketMaker         address
5}
source

MsgIntentPacketRecv lets a market maker fill packets ahead of proof, carrying per-packet market-maker messages instead of a membership proof.

type MsgMisbehaviour

struct
1type MsgMisbehaviour struct {
2	ClientId      ClientId
3	ClientMessage []byte
4	Relayer       string
5}
source

type MsgPacketAcknowledgement

struct
1type MsgPacketAcknowledgement struct {
2	Packets          []Packet
3	Acknowledgements [][]byte
4	Proof            []byte
5	ProofHeight      uint64
6	Relayer          address
7}
source

MsgPacketAcknowledgement settles sent packets against the acknowledgements committed on the destination chain.

type MsgPacketRecv

struct
1type MsgPacketRecv struct {
2	Packets     []Packet
3	RelayerMsgs [][]byte
4	Relayer     address
5	Proof       []byte
6	ProofHeight uint64
7}
source

MsgPacketRecv delivers one or more packets to their destination, proven against the source chain's batch commitment.

type MsgPacketTimeout

struct
1type MsgPacketTimeout struct {
2	Packet      Packet
3	Proof       []byte
4	ProofHeight uint64
5	Relayer     address
6}
source

MsgPacketTimeout proves, via non-membership, that a packet was never received on the destination chain before its timeout.

type MsgUpdateClient

struct
1type MsgUpdateClient struct {
2	ClientId      ClientId
3	ClientMessage []byte
4	Relayer       string
5}
source

type MsgWriteAcknowledgement

struct
1type MsgWriteAcknowledgement struct {
2	Packet          Packet
3	Acknowledgement []byte
4}
source

MsgWriteAcknowledgement writes the acknowledgement for a previously received packet (the async-ack settlement path).

type MustBeZero

ident
1type MustBeZero uint64
source

MustBeZero is a u64 that is always zero. Union packets carry no timeout height (timeouts are expressed via the timestamp), so the ABI-encoded height field is fixed to zero, mirroring the ibc-union-spec MustBeZero type.

Methods on MustBeZero

func String

method on MustBeZero
1func (MustBeZero) String() string
source

type Packet

struct
1type Packet struct {
2	SourceChannelId      ChannelId
3	DestinationChannelId ChannelId
4	Data                 []byte
5	TimeoutHeight        MustBeZero
6	TimeoutTimestamp     Timestamp
7}
source

Packet is a Union IBC packet. Mirroring the ibc-union-spec, the timeout height is fixed to zero (see MustBeZero) and only the timeout timestamp is meaningful.

Methods on Packet

func EncodeABI

method on Packet
1func (p Packet) EncodeABI() ([]byte, error)
source

type RecvPacketResult

struct
1type RecvPacketResult struct {
2	Status          PacketStatus
3	Acknowledgement []byte
4}
source

RecvPacketResult is the outcome an app returns from OnRecvPacket: the sync status and, for non-async results, the acknowledgement bytes to commit.

type StateUpdate

struct
1type StateUpdate struct {
2	Height              uint64
3	ConsensusStateBytes []byte
4	ClientStateBytes    []byte
5	StorageWrites       map[string][]byte
6}
source

StateUpdate is the result of a successful lightclient.Interface.VerifyHeader.

It mirrors the Union (Rust) StateUpdate{height, client_state: Option, consensus_state}. The field shape matches ConsensusStateUpdate so the caller can persist it the same way. An empty ClientStateBytes means the client state did not change as part of this update (Rust's None client_state).

type Timestamp

ident
1type Timestamp uint64
source

Methods on Timestamp

func String

method on Timestamp
1func (ts Timestamp) String() string
source

Imports 9

Source Files 15