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.6k
pallet-contracts: Migrate to weights mechanism #4147
Closed
Closed
Changes from 27 commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
d409505
Initial transformation towards using weights
pepyakin 169d461
Clean
pepyakin 64ff194
Gas price calculation for weight
pepyakin 00dd58e
Doc
pepyakin c0a89b2
Eradicate gas block limit and fix the test.
pepyakin 78bb525
Set proper gas_price
pepyakin a1340cd
Bump runtime version
pepyakin 8212f50
WIP, workaround by scaling gas usage
pepyakin f3794f7
Merge origin/master
pepyakin b9b1a08
Add a screeming TODO
pepyakin 5d63cb2
Migrate to new weight system
pepyakin a3c1abc
Clean and docs
pepyakin 36c86ad
Make construct_block less of a footgun
pepyakin f32fd65
WIP
pepyakin 6e925db
Fix the test
pepyakin dbd2d3e
Fix the tests
pepyakin afc8167
Merge 'origin/master' into ser-contract-weights-2
pepyakin d3afa08
'master' of github.com:paritytech/substrate
pepyakin d9f5e8b
Fix up merge
pepyakin aa37774
Clean imports
pepyakin 8e4448c
A few cleanings
pepyakin dc85fa5
Merge branch 'master' of github.com:paritytech/substrate
pepyakin c24de55
Fix node-executor tests.
pepyakin 86c09d9
Merge remote-tracking branch 'origin' into ser-contract-weights-2
pepyakin f9db9c0
Remove unnecessary `.map_err`.
pepyakin 2110696
Fix the tests.
pepyakin 5ef036f
Clean up.
pepyakin 49d1ea5
Apply suggestions from code review
pepyakin 9b18e0e
Update the expect message and add a comment.
pepyakin 33a3ea6
Add associated issue and TODO for tx loophole
pepyakin 74dbd4a
Add some clarifying comments regarding GasUsageReport.
pepyakin a399472
Added System::remaining_weight convenience function
pepyakin d6f5cef
Merge origin/master
pepyakin 775c73c
Merge remote-tracking branch 'origin/master' into ser-contract-weights-2
pepyakin 9fd2b90
Leverage FunctionOf for setting put_code price.
pepyakin b39ca97
Remove a stale TODO
pepyakin a5c331d
Update docs.
pepyakin 81930e8
Rename CheckGasBlockLimit to GasWeightConversion.
pepyakin cc233d3
Tidy up.
pepyakin 624b3ef
Renaming
pepyakin c794526
Merge master
pepyakin 57850d0
Clean
pepyakin 4585dc1
Bump runtime version
pepyakin cc8ec73
Fix the build.
pepyakin 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 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
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
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.
Uh oh!
There was an error while loading. Please reload this page.