This repository has been 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.6k
Weight v1.5: Opaque Struct #12138
Merged
Merged
Weight v1.5: Opaque Struct #12138
Changes from 59 commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
78f8104
initial idea
shawntabrizi 7f01ecd
update frame_support
shawntabrizi 3125a97
update a bunch more
shawntabrizi c6f9e89
add ord
shawntabrizi 1ff21f3
adjust RuntimeDbWeight
shawntabrizi 1b750b6
frame_system builds
shawntabrizi 927cbfc
re-export
shawntabrizi abef86e
frame_support tests pass
shawntabrizi 505291e
frame_executive compile
shawntabrizi 58ca521
frame_executive builds
shawntabrizi 155247e
frame_system tests passing
shawntabrizi 57a9608
pallet-utility tests pass
shawntabrizi 43a9822
fix a bunch of pallets
shawntabrizi 18d13aa
more
shawntabrizi 9c7e3c8
phragmen
shawntabrizi 690b2d8
state-trie-migration
shawntabrizi 694d8fc
scheduler and referenda
shawntabrizi 2cf7413
pallet-election-provider-multi-phase
shawntabrizi 32537ca
aura
shawntabrizi 11ee8ae
staking
shawntabrizi 58c95ee
more
shawntabrizi 1568fe5
babe
shawntabrizi 431085f
balances
shawntabrizi ee8d842
Merge branch 'master' into shawntabrizi-weight-v1.5
shawntabrizi afca016
bunch more
shawntabrizi 6137298
sudo
shawntabrizi 0ccec6d
transaction-payment
shawntabrizi 9fb9378
asset-tx-payment
shawntabrizi 4d6df92
last pallets
shawntabrizi 06979b6
fix alliance merge
shawntabrizi 06b0b50
fix node template runtime
shawntabrizi 062e866
fix pallet-contracts cc @athei
shawntabrizi 9c7f09a
fix node runtime
shawntabrizi 7261a05
fix compile on runtime-benchmarks feature
shawntabrizi 5a35f8d
comment
shawntabrizi 6bc74aa
fix frame-support-test
shawntabrizi 8a0a0c7
fix more tests
shawntabrizi ce87ef8
weight regex
shawntabrizi aed139b
frame system works
shawntabrizi d63e922
fix a bunch
shawntabrizi a9a6c66
more
shawntabrizi 8adb1a4
more
shawntabrizi 2d9d5a2
more
shawntabrizi 2df2d77
more
shawntabrizi f5b5a77
more
shawntabrizi 00a4d13
more fixes
shawntabrizi 3694224
update templates
shawntabrizi 5053f80
fix contracts benchmarks
shawntabrizi 8df72dc
Update lib.rs
shawntabrizi 3f00bff
Update lib.rs
shawntabrizi 7c853e4
fix ui
shawntabrizi dfdbc3b
make scalar saturating mul const
shawntabrizi 04fd22c
more const functions
shawntabrizi b0c262b
scalar div
shawntabrizi 5c37fb8
refactor using constant functions
shawntabrizi 8e973c0
move impl
shawntabrizi 44246b5
fix overhead template
shawntabrizi e698cfe
Merge branch 'master' into shawntabrizi-weight-v1.5
shawntabrizi b6eb595
use compactas
shawntabrizi 6b3a7d2
Update lib.rs
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
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
Oops, something went wrong.
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.
Wait a minute, this type casting never made any sense.
base_reads
isn't a unit of weight, but simply denotes the number of reads. There really shouldn't be a type cast toRefTimeWeight
here.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.
Same with the other similar type casts in this file.
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.
Base reads is u32, it needs to be u64 or whatever type
RefTimeWeight
is.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.
i will remove ref_time and this will be just u64 in a follow up pr