Closed manumonti closed 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.
mappings.ts
pre-app.ts
staking.ts
Also, the TokenStaking entities list in subgraph manifest has been updated.
TokenStaking
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 intopre-app.ts
andstaking.ts
.Also, the
TokenStaking
entities list in subgraph manifest has been updated.