kkrt-labs / kakarot-rpc

Kakarot ZK EVM Ethereum RPC adapter
MIT License
105 stars 85 forks source link

dev: cleanup indexer `transform` function #1187

Open tcoratger opened 3 weeks ago

tcoratger commented 3 weeks ago

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.

cwastche commented 3 weeks ago

Hi, can I take this?

tcoratger commented 3 weeks ago

Hi, can I take this?

Assigned