tibc

package
v0.0.0-...-54388ff Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CleanPacket

type CleanPacket struct {
	Sequence         int64  `bson:"sequence"`
	SourceChain      string `bson:"source_chain"`
	DestinationChain string `bson:"destination_chain"`
	RelayChain       string `bson:"relay_chain"`
}

CleanPacket defines a type that carries data across different chains through TIBC

type DocMsgCleanPacket

type DocMsgCleanPacket struct {
	CleanPacket CleanPacket `bson:"clean_packet"`
	Signer      string      `bson:"signer"`
}

func (*DocMsgCleanPacket) BuildMsg

func (m *DocMsgCleanPacket) BuildMsg(v interface{})

func (*DocMsgCleanPacket) GetType

func (m *DocMsgCleanPacket) GetType() string

func (*DocMsgCleanPacket) HandleTxMsg

func (m *DocMsgCleanPacket) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocMsgRecvCleanPacket

type DocMsgRecvCleanPacket struct {
	CleanPacket     CleanPacket `bson:"clean_packet"`
	ProofCommitment string      `bson:"proof_commitment"`
	ProofHeight     Height      `bson:"proof_height"`
	Signer          string      `bson:"signer"`
}

func (*DocMsgRecvCleanPacket) BuildMsg

func (m *DocMsgRecvCleanPacket) BuildMsg(v interface{})

func (*DocMsgRecvCleanPacket) GetType

func (m *DocMsgRecvCleanPacket) GetType() string

func (*DocMsgRecvCleanPacket) HandleTxMsg

func (m *DocMsgRecvCleanPacket) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocMsgTIBCAcknowledgement

type DocMsgTIBCAcknowledgement struct {
	Packet          Packet `bson:"packet"`
	Acknowledgement string `bson:"acknowledgement"`
	ProofAcked      string `bson:"proof_acked"`
	ProofHeight     Height `bson:"proof_height"`
	Signer          string `bson:"signer"`
}

func (*DocMsgTIBCAcknowledgement) BuildMsg

func (m *DocMsgTIBCAcknowledgement) BuildMsg(v interface{})

func (*DocMsgTIBCAcknowledgement) GetType

func (m *DocMsgTIBCAcknowledgement) GetType() string

func (*DocMsgTIBCAcknowledgement) HandleTxMsg

func (m *DocMsgTIBCAcknowledgement) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocMsgTIBCNftTransfer

type DocMsgTIBCNftTransfer struct {
	// the class to which the NFT to be transferred belongs
	Class        string `bson:"class"`
	Id           string `bson:"id"`
	Sender       string `bson:"sender"`
	Receiver     string `bson:"receiver"`
	DestChain    string `bson:"dest_chain"`
	RealayChain  string `bson:"realay_chain"`
	DestContract string `bson:"dest_contract"`
}

func (*DocMsgTIBCNftTransfer) BuildMsg

func (m *DocMsgTIBCNftTransfer) BuildMsg(v interface{})

func (*DocMsgTIBCNftTransfer) GetType

func (m *DocMsgTIBCNftTransfer) GetType() string

func (*DocMsgTIBCNftTransfer) HandleTxMsg

func (m *DocMsgTIBCNftTransfer) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocMsgTIBCRecvPacket

type DocMsgTIBCRecvPacket struct {
	Packet          Packet `bson:"packet"`
	ProofCommitment string `bson:"proof_commitment"`
	ProofHeight     Height `bson:"proof_height"`
	Signer          string `bson:"signer"`
}

func (*DocMsgTIBCRecvPacket) BuildMsg

func (m *DocMsgTIBCRecvPacket) BuildMsg(v interface{})

func (*DocMsgTIBCRecvPacket) GetType

func (m *DocMsgTIBCRecvPacket) GetType() string

func (*DocMsgTIBCRecvPacket) HandleTxMsg

func (m *DocMsgTIBCRecvPacket) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocMsgTIBCUpdateClient

type DocMsgTIBCUpdateClient struct {
	// client unique identifier
	ChainName string `bson:"chain_name"`
	Header    string `bson:"header" yaml:"header"`
	Signer    string `bson:"signer" yaml:"signer"`
}

func (*DocMsgTIBCUpdateClient) BuildMsg

func (m *DocMsgTIBCUpdateClient) BuildMsg(v interface{})

func (*DocMsgTIBCUpdateClient) GetType

func (m *DocMsgTIBCUpdateClient) GetType() string

func (*DocMsgTIBCUpdateClient) HandleTxMsg

func (m *DocMsgTIBCUpdateClient) HandleTxMsg(v SdkMsg) MsgDocInfo

type Height

type Height struct {
	RevisionNumber int64 `bson:"revision_number"`
	RevisionHeight int64 `bson:"revision_height"`
}

type Packet

type Packet struct {
	Sequence         int64      `bson:"sequence"`
	Port             string     `bson:"port"`
	SourceChain      string     `bson:"source_chain"`
	DestinationChain string     `bson:"destination_chain"`
	RelayChain       string     `bson:"relay_chain"`
	Data             PacketData `bson:"data"`
}

Packet defines a type that carries data across different chains through IBC

type PacketData

type PacketData struct {
	Class          string `bson:"class"`
	Id             string `bson:"id"`
	Uri            string `bson:"uri"`
	Sender         string `bson:"sender"`
	Receiver       string `bson:"receiver"`
	AwayFromOrigin bool   `bson:"away_from_origin"`
	DestContract   string `bson:"dest_contract"`
}

NonFungibleTokenPacketData

func UnmarshalPacketData

func UnmarshalPacketData(bytesdata []byte) PacketData

type TibcClient

type TibcClient struct {
}

func NewClient

func NewClient() TibcClient

func (TibcClient) HandleTxMsg

func (ibc TibcClient) HandleTxMsg(v types.Msg) (MsgDocInfo, bool)

Jump to

Keyboard shortcuts

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