Provide additional method that supports big endian
fewwwww opened this issue · comments
For some reason, the original The Graph TypeScript API supports little-endian for some functions by default. Developers need to .reverse()
first if they are working with Ethereum data.
Additional method (something like .fromSignedBytesBigEndian
) are needed to keep Subgraph-equivalence and also developer-friendliness.
"It's probably because WebAssembly (to which the subgraph is compiled), hence AssemblyScript which is the language used in graph-ts and to write subgraphs, stores and reads in little endian byte order"