Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrCannotRetrieveTransaction = errors.New("transaction cannot be retrieved")
ErrCannotRetrieveTransaction signals that a transaction cannot be retrieved
var ErrCannotRetrieveTransactions = errors.New("transactions cannot be retrieved")
ErrCannotRetrieveTransactions signals that transactions cannot be retrieved
var ErrDBLookExtensionIsNotEnabled = errors.New("db look extension is not enabled")
ErrDBLookExtensionIsNotEnabled signals that the db look extension is not enabled
var ErrInvalidAddress = errors.New("invalid address")
ErrInvalidAddress signals that the address is invalid
var ErrNilAPITransactionProcessorArg = errors.New("nil api transaction processor arg")
ErrNilAPITransactionProcessorArg signals that a nil arguments structure has been provided
var ErrNilDataFieldParser = errors.New("nil data field parser")
ErrNilDataFieldParser signals that a nil data field parser has been provided
var ErrNilFeeComputer = errors.New("nil fee computer")
ErrNilFeeComputer signals that the fee computer is nil
var ErrNilLogsFacade = errors.New("nil logs facade")
ErrNilLogsFacade signals that the logs facade is nil
var ErrNilStatusComputer = errors.New("nil transaction status computer")
ErrNilStatusComputer signals that the status computer is nil
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
func NewRefundDetector ¶ added in v1.6.0
func NewRefundDetector() *refundDetector
NewRefundDetector will create a new instance of *refundDetector
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 FeeComputer feeComputer TxTypeHandler process.TxTypeHandler LogsFacade LogsFacade DataFieldParser DataFieldParser TxMarshaller marshal.Marshalizer EnableEpochsHandler common.EnableEpochsHandler }
ArgAPITransactionProcessor is structure that store components that are needed to create an api transaction processor
type DataFieldParser ¶
type DataFieldParser interface {
Parse(dataField []byte, sender, receiver []byte, numOfShards uint32) *datafield.ResponseParseData
}
DataFieldParser defines what a data field parser should be able to do
type FeesProcessorHandler ¶ added in v1.4.5
type FeesProcessorHandler interface {
IsInterfaceNil() bool
}
FeesProcessorHandler defines the interface for the transaction fees processor
type LogsFacade ¶
type LogsFacade interface { GetLog(logKey []byte, epoch uint32) (*transaction.ApiLogs, error) IsInterfaceNil() bool }
LogsFacade defines the interface of a logs facade