simple

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 (
	TypeCall    = "cross_simple_call"
	TypeCallAck = "cross_simple_call_ack"
)
View Source
const (
	COMMIT_OK uint8 = iota + 1
	COMMIT_FAILED
)

Variables

This section is empty.

Functions

func RegisterCodec

func RegisterCodec(cdc *codec.Codec)

Types

type PacketCallAcknowledgement

type PacketCallAcknowledgement struct {
	Status uint8
}

func NewPacketCallAcknowledgement

func NewPacketCallAcknowledgement(status uint8) PacketCallAcknowledgement

func (PacketCallAcknowledgement) GetBytes

func (p PacketCallAcknowledgement) GetBytes() []byte

func (PacketCallAcknowledgement) IsOK

func (PacketCallAcknowledgement) Type

func (PacketCallAcknowledgement) ValidateBasic

func (p PacketCallAcknowledgement) ValidateBasic() error

type PacketDataCall

type PacketDataCall struct {
	Sender sdk.AccAddress
	TxID   types.TxID
	TxInfo types.ContractTransactionInfo
}

func NewPacketDataCall

func NewPacketDataCall(
	sender sdk.AccAddress,
	txID types.TxID,
	txInfo types.ContractTransactionInfo,
) PacketDataCall

func (PacketDataCall) GetBytes

func (p PacketDataCall) GetBytes() []byte

func (PacketDataCall) GetTimeoutHeight

func (p PacketDataCall) GetTimeoutHeight() uint64

func (PacketDataCall) GetTimeoutTimestamp

func (p PacketDataCall) GetTimeoutTimestamp() uint64

func (PacketDataCall) Type

func (p PacketDataCall) Type() string

func (PacketDataCall) ValidateBasic

func (p PacketDataCall) ValidateBasic() error

Jump to

Keyboard shortcuts

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