Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressedPayload ¶
type AddressedPayload struct { SourceAddress common.Address `serialize:"true"` DestinationChainID common.Hash `serialize:"true"` DestinationAddress common.Address `serialize:"true"` Payload []byte `serialize:"true"` // contains filtered or unexported fields }
AddressedPayload defines the format for delivering a point to point message across VMs ie. (ChainA, AddressA) -> (ChainB, AddressB)
func NewAddressedPayload ¶
func NewAddressedPayload(sourceAddress common.Address, destinationChainID common.Hash, destinationAddress common.Address, payload []byte) (*AddressedPayload, error)
NewAddressedPayload creates a new *AddressedPayload and initializes it.
func ParseAddressedPayload ¶
func ParseAddressedPayload(b []byte) (*AddressedPayload, error)
ParseAddressedPayload converts a slice of bytes into an initialized AddressedPayload.
func (*AddressedPayload) Bytes ¶
func (a *AddressedPayload) Bytes() []byte
Bytes returns the binary representation of this payload. It assumes that the payload is initialized from either NewAddressedPayload or ParseAddressedPayload.
type BlockHashPayload ¶ added in v0.5.6
type BlockHashPayload struct { BlockHash common.Hash `serialize:"true"` // contains filtered or unexported fields }
BlockHashPayload includes the block hash
func NewBlockHashPayload ¶ added in v0.5.6
func NewBlockHashPayload(blockHash common.Hash) (*BlockHashPayload, error)
NewBlockHashPayload creates a new *BlockHashPayload and initializes it.
func ParseBlockHashPayload ¶ added in v0.5.6
func ParseBlockHashPayload(b []byte) (*BlockHashPayload, error)
ParseBlockHashPayload converts a slice of bytes into an initialized BlockHashPayload
func (*BlockHashPayload) Bytes ¶ added in v0.5.6
func (b *BlockHashPayload) Bytes() []byte
Bytes returns the binary representation of this payload. It assumes that the payload is initialized from either NewBlockHashPayload or ParseBlockHashPayload.