-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow MDMs to control future resolutions (#862)
* use future resolution inside pm-pallet * wip * wip * prepare storage migration * add UpdateMarketIdsPerDisputeBlock migration * wip * avoid in place migration * default to oracle report for authorized * wip * wip * change test * fix benchmark * add resolve_failed_mdm benchmarks * correct benchmarks * fix nightly clippy * fix after merge * fix admin for Authorized * fix global disputes * add migration tests * delete 0.3.7 storage migration * cargo fmt * modify storage versions to test try-runtime * edit doc comment * simplify doc comment * update benchmark authorize outcome * avoid indentation * rename AuthorityReportPeriod to ReportPeriod * use ensure * check benchmark * remove where clauses * Apply suggestions from code review Co-authored-by: Malte Kliemann <[email protected]> * add empty commit * use Weight instead of u64 * resolve doc comment * rename MarketCommonsAuthorized to MarketCommons * fmt * allow only one dispute for authorized * clippy * fix benchmarks after one dispute limit authorized * fix clippy * add try-runtime tests * correct benchmarks * down tracing-core to get try-runtime logs * rename failed to expired * rename resolution to resolve_at * fix small nitpicks * edit doc comment * use reporting period from last dispute * modify doc string * document private authorozed api * fix after merge * print market id for try-runtime tests * bump migration versions * avoid storage_iter * add warning * set block number non-zero in migration test * move storage migration * recalc migration markets counter * abstract remove auto resolve * fmt * remove TODO * add expired report period check * rename to has_failed * satisfy clippy * check dispute resolution blocks * use mock storage with unsafe * use MarketIdsPerDisputeBlock inside mock * prepare authority account id * correct benchmarks * add mock storage * correct start_global_disputes benchmark * improve migration * remove fallible authority feature * remove fallible authority feature * avoid option storage query, handle 432 market * Update zrml/authorized/src/mock_storage.rs Co-authored-by: Malte Kliemann <[email protected]> * fix resolve_failed_mdm bug * Update zrml/prediction-markets/src/tests.rs Co-authored-by: Malte Kliemann <[email protected]> * fixes after merge * avoid refreshing correction period * add description for the changes made * remove resolve_failed_mdm * use ord_parameter_types macro * check auto resolve in case of existing report * handle market 432 * correct pm disputes authorized benchmarks * fix clippy * update pm weights * remove unused error * test only one dispute error * remove unused error * remove unused event * cargo fmt Co-authored-by: Malte Kliemann <[email protected]>
- Loading branch information
1 parent
85cefa6
commit e991d9e
Showing
25 changed files
with
1,454 additions
and
601 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
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
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
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.