Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypePrepare = "cross_tpc_prepare" TypePrepareResult = "cross_tpc_prepare_result" TypeCommit = "cross_tpc_commit" TypeAckCommit = "cross_tpc_ack_commit" )
Variables ¶
This section is empty.
Functions ¶
func RegisterCodec ¶
Types ¶
type PacketCommitAcknowledgement ¶
type PacketCommitAcknowledgement struct{}
func NewPacketCommitAcknowledgement ¶
func NewPacketCommitAcknowledgement() PacketCommitAcknowledgement
func (PacketCommitAcknowledgement) GetBytes ¶
func (p PacketCommitAcknowledgement) GetBytes() []byte
func (PacketCommitAcknowledgement) Type ¶
func (p PacketCommitAcknowledgement) Type() string
func (PacketCommitAcknowledgement) ValidateBasic ¶
func (p PacketCommitAcknowledgement) ValidateBasic() error
type PacketDataCommit ¶
func NewPacketDataCommit ¶
func (PacketDataCommit) GetBytes ¶
func (p PacketDataCommit) GetBytes() []byte
func (PacketDataCommit) GetTimeoutHeight ¶
func (p PacketDataCommit) GetTimeoutHeight() uint64
func (PacketDataCommit) GetTimeoutTimestamp ¶
func (p PacketDataCommit) GetTimeoutTimestamp() uint64
func (PacketDataCommit) Type ¶
func (p PacketDataCommit) Type() string
func (PacketDataCommit) ValidateBasic ¶
func (p PacketDataCommit) ValidateBasic() error
type PacketDataPrepare ¶
type PacketDataPrepare struct { Sender sdk.AccAddress TxID types.TxID TxIndex types.TxIndex TxInfo types.ContractTransactionInfo }
func NewPacketDataPrepare ¶
func NewPacketDataPrepare( sender sdk.AccAddress, txID types.TxID, txIndex types.TxIndex, txInfo types.ContractTransactionInfo, ) PacketDataPrepare
func (PacketDataPrepare) GetBytes ¶
func (p PacketDataPrepare) GetBytes() []byte
func (PacketDataPrepare) GetTimeoutHeight ¶
func (p PacketDataPrepare) GetTimeoutHeight() uint64
func (PacketDataPrepare) GetTimeoutTimestamp ¶
func (p PacketDataPrepare) GetTimeoutTimestamp() uint64
func (PacketDataPrepare) Type ¶
func (p PacketDataPrepare) Type() string
func (PacketDataPrepare) ValidateBasic ¶
func (p PacketDataPrepare) ValidateBasic() error
type PacketPrepareAcknowledgement ¶
type PacketPrepareAcknowledgement struct {
Status uint8
}
func NewPacketPrepareAcknowledgement ¶
func NewPacketPrepareAcknowledgement(status uint8) PacketPrepareAcknowledgement
func (PacketPrepareAcknowledgement) GetBytes ¶
func (p PacketPrepareAcknowledgement) GetBytes() []byte
func (PacketPrepareAcknowledgement) IsOK ¶
func (p PacketPrepareAcknowledgement) IsOK() bool
func (PacketPrepareAcknowledgement) Type ¶
func (p PacketPrepareAcknowledgement) Type() string
func (PacketPrepareAcknowledgement) ValidateBasic ¶
func (p PacketPrepareAcknowledgement) ValidateBasic() error
Click to show internal directories.
Click to hide internal directories.