msg

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTables

func CreateTables(ctx context.Context, chDB *ch.DB, pgDB *bun.DB) error

Types

type Repository

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

func NewRepository

func NewRepository(ck *ch.DB, pg *bun.DB) *Repository

func (*Repository) AddMessages

func (r *Repository) AddMessages(ctx context.Context, tx bun.Tx, messages []*core.Message) error

func (*Repository) AggregateMessages

func (r *Repository) AggregateMessages(ctx context.Context, req *aggregate.MessagesReq) (*aggregate.MessagesRes, error)

func (*Repository) AggregateMessagesHistory

func (r *Repository) AggregateMessagesHistory(ctx context.Context, req *history.MessagesReq) (*history.MessagesRes, error)

func (*Repository) FilterMessages

func (r *Repository) FilterMessages(ctx context.Context, req *filter.MessagesReq) (*filter.MessagesRes, error)

func (*Repository) GetMessage added in v0.3.2

func (r *Repository) GetMessage(ctx context.Context, hash []byte) (*core.Message, error)

func (*Repository) GetMessages added in v0.4.1

func (r *Repository) GetMessages(ctx context.Context, hashes [][]byte) ([]*core.Message, error)

func (*Repository) MatchMessagesByOperationDesc added in v0.4.1

func (r *Repository) MatchMessagesByOperationDesc(ctx context.Context,
	contractName abi.ContractName,
	msgType core.MessageType,
	outgoing bool,
	operationId uint32,
	afterAddress *addr.Address,
	afterTxLt uint64,
	limit int,
) ([][]byte, error)

MatchMessagesByOperationDesc returns hashes of suitable messages for the given contract operation.

func (*Repository) UpdateMessages added in v0.4.1

func (r *Repository) UpdateMessages(ctx context.Context, messages []*core.Message) error

Jump to

Keyboard shortcuts

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