Rosetta - return generic UNKNOWN
operation type for future HAPI transaction types
#8320
Labels
UNKNOWN
operation type for future HAPI transaction types
#8320
Problem
It's a maintenance burden to add support of resolving a new transaction type (an integer) to its transaction name (in text, and in rosetta world, it's used as operation type). In the mean time, if the customer needs support of a specific transaction for both rosetta data API and construction API, a request shall be made and worked ahead of going to production.
Thus, in mirrornode rosetta module, for any transaction type out of the already supported ones,
UNKNOWN
should be provided as the operation type.Solution
types.TransactionTypes
private, i.e., change it totypes.transactionTypes
func GetTransactionType(type int32) string
types.TransactionTypes
totypes.GetTransactionType
Alternatives
No response
The text was updated successfully, but these errors were encountered: