payload
Package payload
import "github.com/luxfi/node/vms/platformvm/warp/payload"Types
AddressedCall
AddressedCall defines the format for delivering a call across VMs including a source address and a payload.
Note: If a destination address is expected, it should be encoded in the payload.
func NewAddressedCall(sourceAddress []byte, payload []byte) (*AddressedCall, error)func ParseAddressedCall(b []byte) (*AddressedCall, error)func (a *AddressedCall) Bytes() []byteHash
func NewHash(hash ids.ID) (*Hash, error)func ParseHash(b []byte) (*Hash, error)func (b *Hash) Bytes() []bytePayload
Payload provides a common interface for all payloads implemented by this package. Each payload is a native-ZAP struct-is-wire object whose first byte is a pkind discriminator (the struct IS the buffer; no codec).
func Parse(bytes []byte) (Payload, error)