Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add moonbeam randomness pallet #984

Closed
wants to merge 24 commits into from
Closed

Conversation

Chralt98
Copy link
Member

@Chralt98 Chralt98 commented Mar 8, 2023

Take a look at the general randomness comment on the BABE protocol here.

BABE doesn't provide a cryptographically secure randomness source, since the validators can influence it.

These are my changes made on branch polkadot-v0.9.37-use-paritytech-dependencies-bench-fix-randomness-fix of our moonbeam repository:

zeitgeistpm/moonbeam@4bfc6ef...25e9981

@Chralt98 Chralt98 added the s:in-progress The pull requests is currently being worked on label Mar 8, 2023
@Chralt98 Chralt98 self-assigned this Mar 8, 2023
@Chralt98 Chralt98 changed the title The new moonbeam randomness pallet Add moonbeam randomness pallet Mar 8, 2023
@Chralt98 Chralt98 added s:review-needed The pull request requires reviews and removed s:in-progress The pull requests is currently being worked on labels Mar 8, 2023
@Chralt98 Chralt98 marked this pull request as ready for review March 8, 2023 16:00
@Chralt98 Chralt98 changed the base branch from main to release-dispute-system March 27, 2023 10:59
Chralt98 and others added 3 commits May 16, 2023 11:30
* move disputes to simple-disputes

* move more to simple-disputes

* wip

* wip

* some mock preparation

* wip

* fix tests

* taplo fmt

* update court authorized mdms

* add dispute bond to market storage

* mdm funds flow

* fix clippy

* fix pm benchmarks

* add migration

* simplify migration

* correct migration

* migration fixes and call filter

* correct admin_destroy_market benchmark

* improve simple-disputes mock

* benchmark reserve_outcome

* benchmark reserve_outcome

* fix weights file

* fix after merge

* add migration tests

* add migration reserve id test

* apply review suggestions

* rename reserve_outcome to suggest_outcome

* separate resolve_disputed_market into parts

* edit exchange API documentation

* slash dispute bond

* add empty commit

* correct admin_destroy_market test

* remove gd dependency from simple disputes

* Update zrml/simple-disputes/src/mock.rs

Co-authored-by: Harald Heckmann <[email protected]>

* Update zrml/simple-disputes/src/mock.rs

Co-authored-by: Harald Heckmann <[email protected]>

* Update zrml/prediction-markets/src/lib.rs

Co-authored-by: Harald Heckmann <[email protected]>

* add doc string

* add doc strings

* Reduce settle_bonds LOC

* cargo fmt

* Update zrml/prediction-markets/src/migrations.rs

Co-authored-by: Harald Heckmann <[email protected]>

* Update zrml/prediction-markets/src/migrations.rs

Co-authored-by: Harald Heckmann <[email protected]>

* apply review suggestion

* add correct mdm benchmarking on_dispute

* use on_dispute_weight inside api

* improve mdm weight technique

* add mdm weights to on_resolution

* add tests for pm

* modify migration logs, fix try-runtime

* little benchmark fix

* Update zrml/authorized/src/benchmarks.rs

Co-authored-by: Harald Heckmann <[email protected]>

* Update zrml/authorized/src/benchmarks.rs

Co-authored-by: Harald Heckmann <[email protected]>

* use result with weight struct

* improve dispute api weight system

* Use accurate dispute weight instead of max

* fix clippy

* Update zrml/prediction-markets/src/migrations.rs

Co-authored-by: Malte Kliemann <[email protected]>

* add copyrights

---------

Co-authored-by: Harald Heckmann <[email protected]>
Co-authored-by: Malte Kliemann <[email protected]>
@Chralt98 Chralt98 added s:in-progress The pull requests is currently being worked on and removed s:review-needed The pull request requires reviews labels Jun 14, 2023
@Chralt98 Chralt98 added s:review-needed The pull request requires reviews and removed s:in-progress The pull requests is currently being worked on labels Jun 15, 2023
@sea212 sea212 removed the s:review-needed The pull request requires reviews label Jul 24, 2023
@sea212 sea212 added the s:on-hold Work on the pull request has been paused label Jul 24, 2023
@mergify
Copy link
Contributor

mergify bot commented Aug 8, 2023

This pull request is now in conflicts. Could you fix it @Chralt98? 🙏

@mergify mergify bot added the s:revision-needed The pull requests must be revised label Aug 8, 2023
@Chralt98 Chralt98 added s:in-progress The pull requests is currently being worked on and removed s:on-hold Work on the pull request has been paused labels Aug 22, 2023
@mergify mergify bot removed the s:in-progress The pull requests is currently being worked on label Aug 22, 2023
@Chralt98 Chralt98 added s:review-needed The pull request requires reviews and removed s:revision-needed The pull requests must be revised labels Aug 22, 2023
@Chralt98 Chralt98 added s:review-needed The pull request requires reviews and removed s:review-needed The pull request requires reviews labels Aug 22, 2023
@codecov-commenter
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (release-dispute-system@14ce98b). Click here to learn what that means.
The diff coverage is n/a.

❗ Current head 90b1707 differs from pull request most recent head d05a2cf. Consider uploading reports for the commit d05a2cf to get more accurate results

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@                    Coverage Diff                    @@
##             release-dispute-system     #984   +/-   ##
=========================================================
  Coverage                          ?   94.13%           
=========================================================
  Files                             ?       95           
  Lines                             ?    22395           
  Branches                          ?        0           
=========================================================
  Hits                              ?    21081           
  Misses                            ?     1314           
  Partials                          ?        0           
Flag Coverage Δ
tests 94.13% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

@mergify
Copy link
Contributor

mergify bot commented Aug 23, 2023

This pull request is now in conflicts. Could you fix it @Chralt98? 🙏

@mergify mergify bot added s:revision-needed The pull requests must be revised and removed s:review-needed The pull request requires reviews labels Aug 23, 2023
Base automatically changed from release-dispute-system to main August 26, 2023 17:27
@sea212
Copy link
Member

sea212 commented Oct 17, 2023

Postponed. Please cherry-pick latest commit if continuing work.

@sea212 sea212 closed this Oct 17, 2023
@sea212 sea212 added s:abandoned This pull request is abandoned and removed s:revision-needed The pull requests must be revised labels Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s:abandoned This pull request is abandoned
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants