This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Weights to u64 + Balances Weights #5446
Merged
Merged
Changes from 1 commit
Commits
Show all changes
62 commits
Select commit
Hold shift + click to select a range
02b6a57
Update to u64
shawntabrizi 1b8a181
Update bin/node/runtime/src/lib.rs
shawntabrizi f204dcb
Update weights
shawntabrizi 6d60384
Fix test
shawntabrizi 010fccb
Extra zeros to make gas 1:1 with weight
shawntabrizi b3e96eb
Merge branch 'master' into shawntabrizi-update-weights
shawntabrizi d365ecf
Merge branch 'master' into shawntabrizi-update-weights
shawntabrizi 25f8dd4
initial impl DbWeight
shawntabrizi cfae9bf
Merge branch 'master' into shawntabrizi-update-weights
shawntabrizi 6ed3496
Update weights for balances
shawntabrizi d239667
multiply all weights by 1_000
shawntabrizi 04ff18d
Fix tests
shawntabrizi 189cbb1
backfill trait
shawntabrizi 42814c0
Missed one
shawntabrizi f65bbd4
more fixes
shawntabrizi a16ae55
Fix tests
shawntabrizi c3ad5fb
update fixed 64 docs
shawntabrizi 428ec84
introduce fixed 128
shawntabrizi 30e4a21
Revert "introduce fixed 128"
shawntabrizi bec986c
Revert "update fixed 64 docs"
shawntabrizi 9cfb1bc
Merge branch 'master' into shawntabrizi-update-weights
shawntabrizi 06197b4
Add fixed 128
shawntabrizi 0c94fc9
fix types
shawntabrizi d3f4b4b
Fix test
shawntabrizi 62f6a9b
Fix tests
shawntabrizi 0ce0870
Update impls.rs
shawntabrizi ab5b865
fix tests
shawntabrizi b704be9
better comment
shawntabrizi 275d40d
types update
shawntabrizi d07a623
Use new fixed128 api
shawntabrizi ec2f0c8
import in test
shawntabrizi 2ccd439
another type update
shawntabrizi 5329496
fix test in example
shawntabrizi d078d31
remove weight test
shawntabrizi b371c23
fix warning
shawntabrizi f0187d9
Simplify RuntimeDbWeight
shawntabrizi 96b217a
Update bin/node/runtime/src/impls.rs
shawntabrizi fef18aa
Apply suggestions from code review
shawntabrizi 9045ec7
Merge branch 'master' into shawntabrizi-update-weights
shawntabrizi 0e77b6f
improved api @apopiak
shawntabrizi c204c88
Merge branch 'master' into shawntabrizi-update-weights
shawntabrizi c7af453
Remove `SimpleDispatchInfo::default()`
shawntabrizi 21f91f1
little more clean up of default weight
shawntabrizi 3b57909
Introduce MINIMUM_WEIGHT const
shawntabrizi 8edc50a
Update bin/node/runtime/src/impls.rs
shawntabrizi afc5f99
Update test to show trend more clearly
shawntabrizi 1d7f0b8
Merge branch 'shawntabrizi-update-weights' of https://github.com/pari…
shawntabrizi 8af5797
test nit
shawntabrizi 8b4e349
Update fixed64.rs
shawntabrizi e0a2be8
More fixes
shawntabrizi f9907bb
missed one
shawntabrizi d164555
More test fixes
shawntabrizi 2baf8f6
Update lib.rs
shawntabrizi 5564ec0
Merge branch 'master' into shawntabrizi-update-weights
shawntabrizi e830b11
Update Cargo.lock
shawntabrizi cf75a56
Bump spec version
shawntabrizi 98dbf61
Clean and fic block weight tests.
kianenigma 8fd3293
fix on-initialize weights
kianenigma 8da68dc
Fix warnings
shawntabrizi 1d6a9f2
fix warnings
shawntabrizi b1c0914
Merge branch 'master' into shawntabrizi-update-weights
shawntabrizi 6b3fb93
Merge branch 'master' into shawntabrizi-update-weights
shawntabrizi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix tests
- Loading branch information
commit 62f6a9bdd911685887139fde5d27aa78c7763bda
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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's with
NonZeroI128?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It comes from @xlc . Yeah im not a super big fan of the syntax they have forced everywhere, but the idea is to avoid divide by zero errors...