-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #387 - Generalize the Event and Error of tasks by separating exec…
…ution from triggering and rescheduling (#383) * If the balance is insufficient, skip the bond * fixup: auto format Rust code * Fix tests for auto compound task * Add test cases of 4 scenarios for auto compound task * Fix DelegationNotFound typo * Change the branch of pallet-parachain-staking library to oak-staging * In the AutoCompoundDelegatorStakeFailed event, the error_message will include details about both the delegator and collator. * Add non_interrupt_errors to Task attributes * fixup: auto format Rust code * Add encoded_call attribute to TaskTriggered event * fixup: auto format Rust code * Remove XcmpTaskSucceeded, AutoCompoundDelegatorStakeSucceeded, AutoCompoundDelegatorStakeSkipped, DynamicDispatchResult event * fixup: auto format Rust code * Fix tests * Fix tests. Add comments. * fixup: auto format Rust code * Rename cancel_upon_errors to abort_errors * fixup: auto format Rust code * Fix tests * fixup: auto format Rust code * Add TaskExecuted event * fixup: auto format Rust code * Fix tests * fixup: auto format Rust code * Remove DynamicDispatchResult in benchmarking * Rename TaskFailedToReschedule to TaskRescheduleFailed * Add comments * Add more checks in tests * fixup: auto format Rust code * Check dynamic dispatch error in bechmarking * Remove abort_errors in TaskTriggered event * Deposit DelegationIncreased event in MockDelegatorActions * Rename cancel_errors to abort_errors in mock.rs * Revert assert_last_event and add allow(dead_code) annotation on it * Update parachain-staking library * Change the type of encoded_call in TaskTriggered event * Change the type of abort_errors to Vec<Vec<u8>> --------- Co-authored-by: oak-code-formatter <oak-code-formatter@users.noreply.github.com> Co-authored-by: Chris Li <chrisli30@users.noreply.github.com>
- Loading branch information
1 parent
9ad58fb
commit 1f62244
Showing
16 changed files
with
1,031 additions
and
423 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.