transactionAPI

package
v1.3.33 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCannotRetrieveTransaction = errors.New("transaction cannot be retrieved")

ErrCannotRetrieveTransaction signals that a transaction cannot be retrieved

View Source
var ErrNilAPITransactionProcessorArg = errors.New("nil api transaction processor arg")

ErrNilAPITransactionProcessorArg signals that a nil arguments structure has been provided

View Source
var ErrNilStatusComputer = errors.New("nil transaction status computer")

ErrNilStatusComputer signals that the status computer is nil

View Source
var ErrTransactionNotFound = errors.New("transaction not found")

ErrTransactionNotFound signals that a transaction was not found

Functions

func NewAPITransactionProcessor

func NewAPITransactionProcessor(args *ArgAPITransactionProcessor) (*apiTransactionProcessor, error)

NewAPITransactionProcessor will create a new instance of apiTransactionProcessor

Types

type ArgAPITransactionProcessor

type ArgAPITransactionProcessor struct {
	RoundDuration            uint64
	GenesisTime              time.Time
	Marshalizer              marshal.Marshalizer
	AddressPubKeyConverter   core.PubkeyConverter
	ShardCoordinator         sharding.Coordinator
	HistoryRepository        dblookupext.HistoryRepository
	StorageService           dataRetriever.StorageService
	DataPool                 dataRetriever.PoolsHolder
	Uint64ByteSliceConverter typeConverters.Uint64ByteSliceConverter
}

ArgAPITransactionProcessor is structure that store components that are needed to create an api transaction processor

Jump to

Keyboard shortcuts

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