package
0.1.3
Repository: https://github.com/xpladev/xpla.go.git
Documentation: pkg.go.dev

# README

IBC module

Usage

(Query) Client states

// Query IBC client states
res, err = xplac.IbcClientStates().Query()

(Query) Client state by client-ID

// Query IBC client state
ibcClientStatesMsg := types.IbcClientStateMsg{
    ClientId: "07-tendermint-0",
}
res, err = xplac.IbcClientState(ibcClientStateMsg).Query()

(Query) Client status by client-ID

// Query IBC client status
ibcClientStatusMsg := types.IbcClientStatusMsg{
    ClientId: "07-tendermint-0",
}
res, err = xplac.IbcClientStatus(ibcClientStatusMsg).Query()

(Query) Client consensus states

// Query IBC client consensus states
ibcClientConsensusStatesMsg := types.IbcClientConsensusStatesMsg{
    ClientId: "07-tendermint-0",
}
res, err = xplac.IbcClientConsensusStates(ibcClientConsensusStatesMsg).Query()

(Query) Client consensus state heights

// Query IBC client consensus state heights
ibcClientConsensusStateHeightsMsg := types.IbcClientConsensusStateHeightsMsg{
    ClientId: "07-tendermint-0",
}
res, err = xplac.IbcClientConsensusStateHeights(ibcClientConsensusStateHeightsMsg).Query()

(Query) Client consensus state

// Query IBC client consensus state
ibcClientConsensusStateMsg := types.IbcClientConsensusStateMsg{
    ClientId:     "07-tendermint-0",
    LatestHeight: false,
    Height:       "1-115",
}
res, err = xplac.IbcClientConsensusState(ibcClientConsensusStateMsg).Query()

(Query) Client tendermint header

// Query IBC client tendermint header
res, err = xplac.IbcClientHeader().Query()

(Query) Client self consensus state

// Query IBC client self-consensus state
res, err = xplac.IbcClientSelfConsensusState().Query()

(Query) Client params

// Query IBC client params
res, err = xplac.IbcClientParams().Query()

(Query) IBC Connections

// Query IBC all connections
res, err = xplac.IbcConnections().Query()

// Query IBC a connection by retriving connection ID
ibcConnectionMsg := types.IbcConnectionMsg{
    ConnectionId: "connection-1",
}
res, err = xplac.IbcConnections(ibcConnectionMsg).Query()

(Query) A client connections

// Query IBC connections of a client
IbcClientConnectionsMsg := types.IbcClientConnectionsMsg{
    ClientId: "07-tendermint-0",
}
res, err = xplac.IbcClientConnections(IbcClientConnectionsMsg).Query()

(Query) IBC channels

// Query IBC all channels
res, err = xplac.IbcChannels().Query()

// Query IBC a channel
ibcChannelMsg := types.IbcChannelMsg{
    ChannelId: "channel-0",
    PortId:    "transfer",
}
res, err = xplac.IbcChannels(ibcChannelMsg).Query()

(Query) Channel connections

// Query channels by retrieving a connection
IbcChannelConnectionsMsg := types.IbcChannelConnectionsMsg{
    ConnectionId: "connection-0",
}
res, err = xplac.IbcChannelConnections(IbcChannelConnectionsMsg).Query()

(Query) Channel client state

// Query channel client state
ibcChannelClientStateMsg := types.IbcChannelClientStateMsg{
    ChannelId: "channel-0",
    PortId:    "transfer",
}
res, err = xplac.IbcChannelClientState(ibcChannelClientStateMsg).Query()

(Query) Channel packet commitments

// Query IBC channel packet commitments
ibcChannelPacketCommitmentsMsg := types.IbcChannelPacketCommitmentsMsg{
    ChannelId: "channel-0",
    PortId:    "transfer",
}
res, err = xplac.IbcChannelPacketCommitments(ibcChannelPacketCommitmentsMsg).Query()

// Query IBC channel packet commitment by sequence
ibcChannelPacketCommitmentsMsg := types.IbcChannelPacketCommitmentsMsg{
    ChannelId: "channel-0",
    PortId:    "transfer",
    Sequence:  "2",
}
res, err = xplac.IbcChannelPacketCommitments(ibcChannelPacketCommitmentsMsg).Query()

(Query) Channel packet receipt

// Query IBC channel packet receipt
ibcChannelPacketReceiptMsg := types.IbcChannelPacketReceiptMsg{
    ChannelId: "channel-0",
    PortId:    "transfer",
    Sequence:  "2",
}
res, err = xplac.IbcChannelPacketReceipt(ibcChannelPacketReceiptMsg).Query()

(Query) Channel packet ack

// Query IBC channel packet ack
ibcChannelPacketAckMsg := types.IbcChannelPacketAckMsg{
    ChannelId: "channel-0",
    PortId:    "transfer",
    Sequence:  "2",
}
res, err = xplac.IbcChannelPacketAck(ibcChannelPacketAckMsg).Query()

(Query) Channel unreceived packets

// Query unreceived packets
ibcChannelUnreceivedPacketsMsg := types.IbcChannelUnreceivedPacketsMsg{
    ChannelId: "channel-0",
    PortId:    "transfer",
    Sequence:  "2",
}
res, err = xplac.IbcChannelUnreceivedPackets(ibcChannelUnreceivedPacketsMsg).Query()

(Query) Channel unreceived acks

// Query unreceived acks
ibcChannelUnreceivedAcksMsg := types.IbcChannelUnreceivedAcksMsg{
    ChannelId: "channel-0",
    PortId:    "transfer",
    Sequence:  "2",
}
res, err = xplac.IbcChannelUnreceivedAcks(ibcChannelUnreceivedAcksMsg).Query()

(Query) Channel next sequence

// Query channel next sequence receive
ibcChannelNextSequenceMsg := types.IbcChannelNextSequenceMsg{
    ChannelId: "channel-0",
    PortId:    "transfer",
}
res, err = xplac.IbcChannelNextSequence(ibcChannelNextSequenceMsg).Query()

(Query) IBC denom traces

// Query IBC transfer denom traces
res, err = xplac.IbcDenomTraces().Query()

// Query IBC transfer a denom trace
ibcDenomTraceMsg := types.IbcDenomTraceMsg{
    HashDenom: "B249D1E86F588286FEA286AA8364FFCE69EC65604BD7869D824ADE40F00FA25B",
}
res, err = xplac.IbcDenomTraces().Query()

(Query) IBC denom hash

// Make denom hash by trace
ibcDenomHashMsg := types.IbcDenomHashMsg{
    Trace: "[port-id]/[channel-id]/[denom]",
}
res, err = xplac.IbcDenomHash(ibcDenomHashMsg).Query()

(Query) IBC escrow address

// Query escrow address
ibcEscrowAddressMsg := types.IbcEscrowAddressMsg{
    PortId:    "transfer",
    ChannelId: "channel-5",
}
res, err = xplac.IbcEscrowAddress(ibcEscrowAddressMsg).Query()

(Query) IBC transfer params

// Query IBC transfer params
res, err = xplac.IbcTransferParams().Query()

# Functions

(Query) make msg - IBC a channel.
(Query) make msg - IBC channels.
(Query) make msg - IBC channel connections.
(Query) make msg - IBC channel connections.
(Query) make msg - IBC channel next sequence receive.
(Query) make msg - IBC channel packet ack.
(Query) make msg - IBC channel packet commitment.
(Query) make msg - IBC channel packet commitments.
(Query) make msg - IBC channel packet receipt.
(Query) make msg - IBC channel unreceived acks.
(Query) make msg - IBC channel unreceived packets.
(Query) make msg - IBC client consensus state heights.
(Query) make msg - IBC client consensus state.
(Query) make msg - IBC client consensus states.
(Query) make msg - IBC client tendermint header.
(Query) make msg - IBC client params.
(Query) make msg - IBC client self consensus state.
(Query) make msg - IBC client state by client ID.
(Query) make msg - IBC client states.
(Query) make msg - IBC client status by client ID.
(Query) make msg - IBC client connections.
(Query) make msg - IBC connection connection.
(Query) make msg - IBC connection connetions.
(Query) make msg - IBC transfer denom hash.
(Query) make msg - IBC transfer denom trace.
(Query) make msg - IBC transfer denom traces.
(Query) make msg - IBC transfer escrow address.
(Query) make msg - IBC transfer params.
No description provided by the author
No description provided by the author
Query client for gov module.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author