threshold-network / staking-subgraphs

Threshold Network staking subgraphs
https://threshold.network
1 stars 1 forks source link

Split mapping main file #12

Closed manumonti closed 2 years ago

manumonti commented 2 years ago

Note: This PR must be merged after #11 .

Threshold Subgraph recieves events from several sources (contracts). So a logical division of events handlers can be each contract.

To achieve this, the generic "mappings.ts" file have been splitted in "pre-app.ts" and "staking.ts".

Also, TokenStaking entities list in subgraph manifest has been updated.