threshold-network / staking-subgraphs

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

Split mappings.ts #10

Closed manumonti closed 2 years ago

manumonti commented 2 years ago

Note: This PR must be merged after #9 .

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".