-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactoring score-staking event, adding new event * exporting primitives types * adding new parentchain event and filters * injecting ocall_api and state_handler to the parentchain event handler * adding missing dependencies * adding key helper * passing block_header to handle_events * updating generics for the event handler * adding ParentchainEventProcessingError variant * fixing generics * draft logic of the staking updates logic, getting necessary data from the parentchain storage and idgraphs * adding dependency to send extrinsics from the event handler * refactoring collected data to make it easier to operate * refactoring how idgraphs are collected * tentative logic to update scores * updating TODO * fixing staking amount calculation * cleaning up unused code * updating pallet events and fixing pallet tests * updating parentchain events * adding new field for id_graph rewards * adding update_token_staking_amount call to pallet score-staking * adding missing dependencies * updating score-staking mock * adding tests * fixing Cargo.toml format issue * adding extrinsic to complete reward distribution * adding tests * updating node-api metadata, including staking-score calls * updating metadata mocks * injecting node metadata repository to ParentchainEventHandler * sending extrinsics to the parentchain to update staking scores and complete rewards distribution * making score-staking pallet loosely coupled to teebag * updating mock * updating runtimes * removing TODO * updating commend * updating precompiles mock * fixing precompiles tests * fixing clippy issues * adding trusted calls to avoid sending duplicated extrinsics on multiworker setup * updating event_handler to submit the new trusted calls * cleaning up dependencies that are not needed anymore * more clean up * adding NodeMetadataProvider trait to extend trait bounds * exposing compose_call from api-client-types * refactoring to send calls in batches * updating pallet to only update non distributed staking amounts * removing added trusted calls * updating event * injecting node_metadata_repository to the event handler * refactoring event handler * fixing precompiles tests * making use of the existing EnsureEnclaveSigner struct * fixing mocks * making the distribution directly instead of storing the amount to token_staking_amount * fixing precompiles tests * reverting try_successful_origin * reverting it in identity-management as well * fixing precompiles mock * fixing precompiles score-staking mock
- Loading branch information
Showing
34 changed files
with
916 additions
and
151 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.