message

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	*model.TopicMessage
	TransactionTimestamp int64
}

Message serves as a model between Topic Message Watcher and Handler

func FromBytes

func FromBytes(data []byte) (*Message, error)

FromBytes instantiates new TopicMessage protobuf used internally by the Watchers/Handlers

func FromBytesWithTS

func FromBytesWithTS(data []byte, ts int64) (*Message, error)

FromBytesWithTS instantiates new TopicMessage protobuf used internally by the Watchers/Handlers

func FromString

func FromString(data, ts string) (*Message, error)

FromString instantiates new Topic Message protobuf from string `content` and `timestamp`

func NewFungibleSignature added in v1.4.0

func NewFungibleSignature(topicMsg *model.TopicEthSignatureMessage) *Message

NewFungibleSignature instantiates Signature Message struct ready for submission to the Bridge Topic

func NewNftSignature added in v1.4.0

func NewNftSignature(topicMsg *model.TopicEthNftSignatureMessage) *Message

NewNftSignature instantiates Signature Message struct ready for submission to the Bridge Topic

func (*Message) ToBytes

func (tm *Message) ToBytes() ([]byte, error)

ToBytes marshals the underlying protobuf Message into bytes

Jump to

Keyboard shortcuts

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