-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup Epoch and EpochStake schema's entities
GraphQL schema changes: - Epoch counter's unique entity ID Singleton have been replaced by epoch-counter to have a more meaningful name. - EpochStake entities only contains the fields staking provider address and amount. participation and stakeData fields have been removed to avoid redundant data. - The timestamp field name of an epoch have been replaced by timestamp. The total amount of token staked in a epoch entity is saved in totalAmount field (previously totalStaked). - Now, the first epoch (number 0) is the period between the token staking contract deployment and the first staking event. - Comments format have been homogenized. Src files changes: - Added src/utils/epochs.ts code with some utilities related to the management of the epochs and its counter. - Modified HandleStaked function in mapping.ts to follow the new schema (handleToppedUp and handleUnstaked are pending). - Unstaked handle function adapted to new schema - ToppedUp handle function adapted to new schema
- Loading branch information
Showing
5 changed files
with
799 additions
and
861 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.