mempoolpbdsl

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchIDResponse

func BatchIDResponse(m dsl.Module, destModule types.ModuleID, batchId []uint8, origin *types1.RequestBatchIDOrigin)

func NewBatch

func NewBatch(m dsl.Module, destModule types.ModuleID, txIds [][]uint8, txs []*requestpb.Request, origin *types1.RequestBatchOrigin)

func RequestBatch

func RequestBatch[C any](m dsl.Module, destModule types.ModuleID, context *C)

func RequestBatchID

func RequestBatchID[C any](m dsl.Module, destModule types.ModuleID, txIds [][]uint8, context *C)

func RequestTransactionIDs

func RequestTransactionIDs[C any](m dsl.Module, destModule types.ModuleID, txs []*requestpb.Request, context *C)

func RequestTransactions

func RequestTransactions[C any](m dsl.Module, destModule types.ModuleID, txIds [][]uint8, context *C)

func TransactionIDsResponse

func TransactionIDsResponse(m dsl.Module, destModule types.ModuleID, txIds [][]uint8, origin *types1.RequestTransactionIDsOrigin)

func TransactionsResponse

func TransactionsResponse(m dsl.Module, destModule types.ModuleID, present []bool, txs []*requestpb.Request, origin *types1.RequestTransactionsOrigin)

func UponBatchIDResponse

func UponBatchIDResponse[C any](m dsl.Module, handler func(batchId []uint8, context *C) error)

func UponEvent

func UponEvent[W types.Event_TypeWrapper[Ev], Ev any](m dsl.Module, handler func(ev *Ev) error)

func UponNewBatch

func UponNewBatch[C any](m dsl.Module, handler func(txIds [][]uint8, txs []*requestpb.Request, context *C) error)

func UponRequestBatch

func UponRequestBatch(m dsl.Module, handler func(origin *types.RequestBatchOrigin) error)

func UponRequestBatchID

func UponRequestBatchID(m dsl.Module, handler func(txIds [][]uint8, origin *types.RequestBatchIDOrigin) error)

func UponRequestTransactionIDs

func UponRequestTransactionIDs(m dsl.Module, handler func(txs []*requestpb.Request, origin *types.RequestTransactionIDsOrigin) error)

func UponRequestTransactions

func UponRequestTransactions(m dsl.Module, handler func(txIds [][]uint8, origin *types.RequestTransactionsOrigin) error)

func UponTransactionIDsResponse

func UponTransactionIDsResponse[C any](m dsl.Module, handler func(txIds [][]uint8, context *C) error)

func UponTransactionsResponse

func UponTransactionsResponse[C any](m dsl.Module, handler func(present []bool, txs []*requestpb.Request, context *C) error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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