Class: TransactionDescriptorProcessor

TransactionDescriptorProcessor(transactionDescriptor, typeParsingRules, typeConverter)

Processes and looks up transaction descriptor properties.

Constructor

new TransactionDescriptorProcessor(transactionDescriptor, typeParsingRules, typeConverter)

Creates a transaction descriptor processor.
Parameters:
Name Type Description
transactionDescriptor object Transaction descriptor.
typeParsingRules Map Type-dependent parsing rules.
typeConverter function Converts a generated type to an sdk type (optional).
Source:

Methods

copyTo(transaction, ignoreKeys)

Copies all descriptor information to a transaction.
Parameters:
Name Type Description
transaction object Transaction to which to copy keys.
ignoreKeys array.<string> Keys of descriptor values not to copy (optional).
Source:

lookupValue(key) → {object}

Looks up the value for key.
Parameters:
Name Type Description
key string Key for which to retrieve value.
Source:
Returns:
Value corresponding to key.
Type
object

setTypeHints(typeHints)

Sets type hints.
Parameters:
Name Type Description
typeHints object New type hints.
Source: