tibc_sdk_go

package module
v0.0.0-...-a76333c Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: Apache-2.0 Imports: 14 Imported by: 1

README

tibc-sdk-go

Golang SDK for Terse IBC

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	types.EncodingConfig
	types.BaseClient
}

func NewClient

func NewClient(baseClient types.BaseClient, encodingConfig types.EncodingConfig) Client

func (Client) Acknowledgement

func (c Client) Acknowledgement(proof []byte, acknowledgement []byte, pack packet.Packet, height int64, revisionNumber uint64, baseTx types.BaseTx) (types.ResultTx, tibctypes.IError)

func (Client) CleanPacket

func (c Client) CleanPacket(cleanPacket packet.CleanPacket, baseTx types.BaseTx) (types.ResultTx, tibctypes.IError)

func (Client) GetClientState

func (c Client) GetClientState(chainName string) (tibctypes.ClientState, tibctypes.IError)

GetClientState queries an IBC light client.

func (Client) GetClientStates

func (c Client) GetClientStates() ([]tibctypes.ClientState, tibctypes.IError)

GetClientStates queries all the IBC light clients of a chain.

func (Client) GetConsensusState

func (c Client) GetConsensusState(chainName string, height uint64) (tibctypes.ConsensusState, tibctypes.IError)

GetConsensusState queries a consensus state associated with a client state at a given height.

func (Client) GetConsensusStates

func (c Client) GetConsensusStates(chainName string) ([]tibctypes.ConsensusState, tibctypes.IError)

GetConsensusStates queries all the consensus state associated with a given client.

func (Client) Name

func (c Client) Name() string

func (Client) NftTransfer

func (c Client) NftTransfer(class, id, receiver, destChainName, realayChainName, destContract string, baseTx types.BaseTx) (types.ResultTx, tibctypes.IError)

func (Client) PacketAcknowledgement

func (c Client) PacketAcknowledgement(destChain string, sourceChain string, sequence uint64) (*packet.QueryPacketAcknowledgementResponse, tibctypes.IError)

func (Client) PacketAcknowledgements

func (c Client) PacketAcknowledgements(destChain string, sourceChain string, Pagination *query.PageRequest) (*packet.QueryPacketAcknowledgementsResponse, tibctypes.IError)

func (Client) PacketCommitment

func (c Client) PacketCommitment(destChain string, sourceChain string, sequence uint64) (*packet.QueryPacketCommitmentResponse, tibctypes.IError)

func (Client) PacketCommitments

func (c Client) PacketCommitments(destChain string, sourceChain string, Pagination *query.PageRequest) (*packet.QueryPacketCommitmentsResponse, tibctypes.IError)

func (Client) PacketReceipt

func (c Client) PacketReceipt(destChain string, sourceChain string, sequence uint64) (*packet.QueryPacketReceiptResponse, tibctypes.IError)

func (Client) QueryTendermintProof

func (c Client) QueryTendermintProof(height int64, key []byte) ([]byte, []byte, uint64, error)

func (Client) RecvCleanPacket

func (c Client) RecvCleanPacket(proof []byte, pack packet.CleanPacket, height int64, revisionNumber uint64, baseTx types.BaseTx) (types.ResultTx, tibctypes.IError)

func (Client) RecvPacket

func (c Client) RecvPacket(proof []byte, pack packet.Packet, height int64, revisionNumber uint64, baseTx types.BaseTx) (types.ResultTx, tibctypes.IError)

func (Client) RecvPackets

func (c Client) RecvPackets(msgs []types.Msg, baseTx types.BaseTx) (types.ResultTx, tibctypes.IError)

func (Client) RegisterInterfaceTypes

func (c Client) RegisterInterfaceTypes(registry cryptotypes.InterfaceRegistry)

func (Client) Relayers

func (c Client) Relayers(chainName string) ([]string, tibctypes.IError)

Relayers queries all the relayers associated with a given client.

func (Client) UnreceivedAcks

func (c Client) UnreceivedAcks(destChain string, sourceChain string, packetAckSequences []uint64) (*packet.QueryUnreceivedAcksResponse, tibctypes.IError)

func (Client) UnreceivedPackets

func (c Client) UnreceivedPackets(destChain string, sourceChain string, packetCommitmentSequences []uint64) (*packet.QueryUnreceivedPacketsResponse, tibctypes.IError)

func (Client) UpdateClient

Directories

Path Synopsis
modules
core/client
Package client is a reverse proxy.
Package client is a reverse proxy.
core/packet
Package packet is a reverse proxy.
Package packet is a reverse proxy.
testing

Jump to

Keyboard shortcuts

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