Implement ethereum ABI encode and decode in subgraph (#103)

* Implement ethereum ABI encode in subgraph

* Implement ethereum ABI decoding host API

* Implement ABI encode decode for array type

* Implement ABI encode decode for bytes type
This commit is contained in:
2021-12-30 13:12:32 +05:30
committed by GitHub
parent 9b1aa29afd
commit 8b913af93f
11 changed files with 306 additions and 17 deletions
+6 -1
View File
@@ -21,6 +21,7 @@ export const getDummyEventData = async (): Promise<EventData> => {
const ethersBlock = await provider.getBlock(blockNumber);
const block = {
headerId: 0,
blockHash: ethersBlock.hash,
blockNumber: ethersBlock.number.toString(),
timestamp: '0',
@@ -41,7 +42,11 @@ export const getDummyEventData = async (): Promise<EventData> => {
hash: ZERO_HASH,
index: 0,
from: ZERO_ADDRESS,
to: ZERO_ADDRESS
to: ZERO_ADDRESS,
value: '0',
gasLimit: '0',
gasPrice: '0',
input: ZERO_HASH
};
return {