threshold-network / staking-subgraphs

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

Split mappings file according to contract event emitter #16

Closed manumonti closed 2 years ago

manumonti commented 2 years ago

Note: This PR must be merged after #11

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

To achieve this, the generic mappings.ts file has been split into pre-app.ts and staking.ts.

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