tpc

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

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

func RegisterCodec(cdc *codec.Codec)

Types

type PacketCommitAcknowledgement

type PacketCommitAcknowledgement struct{}

func NewPacketCommitAcknowledgement

func NewPacketCommitAcknowledgement() PacketCommitAcknowledgement

func (PacketCommitAcknowledgement) GetBytes

func (p PacketCommitAcknowledgement) GetBytes() []byte

func (PacketCommitAcknowledgement) Type

func (PacketCommitAcknowledgement) ValidateBasic

func (p PacketCommitAcknowledgement) ValidateBasic() error

type PacketDataCommit

type PacketDataCommit struct {
	TxID          types.TxID
	TxIndex       types.TxIndex
	IsCommittable bool
}

func NewPacketDataCommit

func NewPacketDataCommit(txID types.TxID, txIndex types.TxIndex, isCommittable bool) PacketDataCommit

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 (PacketPrepareAcknowledgement) Type

func (PacketPrepareAcknowledgement) ValidateBasic

func (p PacketPrepareAcknowledgement) ValidateBasic() error

Jump to

Keyboard shortcuts

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