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

implement new assignment algorithm and lazy issuance #68

Merged
merged 17 commits into from
Dec 11, 2021
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
d1cdbde
Revert "[ceremonies/#65] generate random meetup indices (#73)"
NicJak Nov 17, 2021
33f3879
new assignment, lazy issuance, random locations
pifragile Oct 6, 2021
ca10eb7
[ceremonies/#75] use random coprime for assignment
NicJak Dec 6, 2021
3e12790
[ceremonies] fix no_std compilation and `fn find_coprime_below`
clangenb Dec 11, 2021
2906fdf
[ceremonies] print error in `generate_meetup_assignment_params`
clangenb Dec 11, 2021
540814f
[ceremonies] use checked math operations in `checked_ceil_division`, …
clangenb Dec 11, 2021
9032521
[ceremonies] extract most math functions to primitives
clangenb Dec 11, 2021
0680395
[ceremonies] move `mod_inv` to math module
clangenb Dec 11, 2021
e8bb32e
[ceremonies] fix randomness in `generate_assignment_function_params` …
clangenb Dec 11, 2021
4e93b0d
[ceremonies] remove unnecessary loc_ix >= 0 comparison for u64 type
clangenb Dec 11, 2021
7869552
[ceremonies] fix failing tests by fixing `pick_non_zero_u32`
clangenb Dec 11, 2021
f7258f8
[ceremonies] minor cleanup
clangenb Dec 11, 2021
0283f1e
[ceremonies] add tests for `get_greatest_common_denominator`
clangenb Dec 11, 2021
2e39798
[primitives/random_number_generator] simplify pick_non_zero_u32
clangenb Dec 11, 2021
f3baabc
[ceremonies/math] fix-no std compilation; successfully compiles with …
clangenb Dec 11, 2021
f10533f
[ceremonies] remove unnecessary result in `generate_all_meetup_assign…
clangenb Dec 11, 2021
8bcea77
[ceremonies] add test `generate_meetup_assignment_params_is_random`
clangenb Dec 11, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 10 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion balances/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pallet-encointer-balances"
version = "0.7.0"
version = "0.8.0"
authors = ["encointer.org <alain@encointer.org> and Parity Technologies <admin@parity.io>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion bazaar/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pallet-encointer-bazaar"
version = "0.7.0"
version = "0.8.0"
authors = ["encointer.org <alain@encointer.org>"]
edition = "2018"

Expand Down
3 changes: 2 additions & 1 deletion ceremonies/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pallet-encointer-ceremonies"
version = "0.7.0"
version = "0.8.0"
authors = ["encointer.org <alain@encointer.org>"]
edition = "2018"

Expand All @@ -24,6 +24,7 @@ sp-std = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate

[dev-dependencies]
approx = "0.5.0"
itertools = "0.10.0"
rstest = "0.6.4"
sp-core = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "master" }
sp-io = { version = "4.0.0-dev", git = "https://github.com/paritytech/substrate.git", branch = "master" }
Expand Down