At the moment, in the indexer, the transform function is responsible for transforming the transaction data in order to index them properly. See https://www.apibara.com/docs/indexers#data-transformation for further information on this.
This function, with time and the addition of features, has become quite complex and not very Typescript idiomatic. As per https://github.com/kkrt-labs/kakarot-rpc/pull/1145/files#r1638720404, we should do a general cleanup of this function and make it more Typescript idiomatic in general.
Describe the enhancement request
At the moment, in the indexer, the
transform
function is responsible for transforming the transaction data in order to index them properly. See https://www.apibara.com/docs/indexers#data-transformation for further information on this.This function, with time and the addition of features, has become quite complex and not very Typescript idiomatic. As per https://github.com/kkrt-labs/kakarot-rpc/pull/1145/files#r1638720404, we should do a general cleanup of this function and make it more Typescript idiomatic in general.