Right now, the Primitive processing flow for EVM looks like this:
Requests all primitives requires for a specific block range
Aggregate all the primitives returned from (1), and sort them by blockNumber (this is done in the function groupCdeData)
The problem is that blocks can contain many different logs inside them! We want to ensure that Paima Engine parses events from these logs in the same order they were emitted onchain, but groupCdeData doesn't do this at the moment. Fortunately, there is a field logIndex for exactly this purpose, and we just need to integrate it
Right now, the Primitive processing flow for EVM looks like this:
blockNumber
(this is done in the functiongroupCdeData
)The problem is that blocks can contain many different logs inside them! We want to ensure that Paima Engine parses events from these logs in the same order they were emitted onchain, but
groupCdeData
doesn't do this at the moment. Fortunately, there is a fieldlogIndex
for exactly this purpose, and we just need to integrate it