blockchain

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtInMsgCopy added in v1.2.0

type ExtInMsgCopy struct {
	// MsgBoc is a base64 encoded message boc.
	MsgBoc string
	// Payload is a decoded message boc.
	Payload []byte
	// Details contains some optional details from a request context.
	Details any
	// Accounts is set when the message is emulated.
	Accounts map[tongo.AccountID]struct{}
}

ExtInMsgCopy represents an external message we receive on /v2/blockchain/message endpoint.

func (*ExtInMsgCopy) IsEmulation added in v1.2.0

func (m *ExtInMsgCopy) IsEmulation() bool

type MsgSender

type MsgSender struct {
	// contains filtered or unexported fields
}

MsgSender provides a method to send a message to the blockchain.

func NewMsgSender

func NewMsgSender(logger *zap.Logger, servers []config.LiteServer, receivers map[string]chan<- ExtInMsgCopy) (*MsgSender, error)

func (*MsgSender) SendMessage

func (ms *MsgSender) SendMessage(ctx context.Context, msgCopy ExtInMsgCopy) error

SendMessage sends the given a message to the blockchain.

func (*MsgSender) SendMultipleMessages added in v1.2.0

func (ms *MsgSender) SendMultipleMessages(ctx context.Context, copies []ExtInMsgCopy)

func (*MsgSender) SendingClientsNumber added in v1.2.0

func (ms *MsgSender) SendingClientsNumber() int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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