Skip to content
This repository has been archived by the owner on Jul 4, 2022. It is now read-only.

"Implement FixedPoint trait" and "Enable fixed point u128" #144

Merged
merged 3 commits into from
Oct 1, 2020

Conversation

aliXsed
Copy link

@aliXsed aliXsed commented Sep 29, 2020

Bring in paritytech/substrate#5877 and paritytech/substrate#6214 as preparational steps for #141:

  • Resolve the merge conflicts
  • Remove saturating_pow for now to avoid further extension of the change scope

Co-authored-by: Gavin Wood gavin@parity.io
Co-authored-by: Shawn Tabrizi shawntabrizi@gmail.com

@aliXsed aliXsed changed the title Implement FixedPoint trait. (#5877) "Implement FixedPoint trait" and "Enable fixed point u128" Sep 30, 2020
AlexSedNZ and others added 2 commits October 1, 2020 08:59
* Implement Fixed trait.

* Fix tests

* Fix tests

* Fix tests 2

* Address review comment regarding from_i129.

* Remove precision by using log10() as suggested in review.

* Add small comments.

* Use checked versions + panic for ops::*.

* Remove repeated test.

* Uncomment test.

* Remove casts.

* Add more comments.

* Add tests.

* Panic on saturating_div_int

* More tests.

* More docs.

* Saturating renames.

* Fix to_bound doc.

* Move some impl to trait.

* Add range

* Add macro pre.

* More round() tests.

* Delete confusion.

* More impl to trait

* Add doc for fixedpoint op.

* Remove trailing spaces.

* Suggested docs changes.

* More tests and comments for roundings.

* Some quickcheck tests.

* Add missing panic, more test/comments.

* Nits.

* Rename.

* Remove primitives-types import.

* Apply review suggestions

* Fix long lines and add some fuzz.

* fix long line

* Update fuzzer

* Bump impl

* fix warnings

Co-authored-by: Gavin Wood <gavin@parity.io>
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
Commit:
c5280a6 [c5280a6]
Parents:
d047cb3
Author:
Marcio Diaz <marcio.diaz@gmail.com>
Date:
22 May 2020 at 5:32:44 AM NZST
Committer:
AlexSedNZ <alex.sedighi@centrality.ai>
Commit Date:
29 September 2020 at 2:12:51 PM NZDT
Labels:
origin/fix/141-weight-multiplier
GPG Details:
[GOOD] Alex Sedighi
Copy link
Contributor

@jordy25519 jordy25519 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@@ -202,7 +202,7 @@ fn transaction_fee_is_correct_ultimate() {
fn block_weight_capacity_report() {
// Just report how many transfer calls you could fit into a block. The number should at least
// be a few hundred (250 at the time of writing but can change over time). Runs until panic.
use node_primitives::Index;
use node_primitives::{Index, Hash};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(nit) wondering why this change?

@aliXsed aliXsed merged commit d37e88a into develop Oct 1, 2020
@aliXsed aliXsed deleted the fix/141-weight-multiplier branch October 4, 2020 22:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants