-
Notifications
You must be signed in to change notification settings - Fork 541
EVM + Weight v2 support #1039
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
Merged
sorpaas
merged 70 commits into
polkadot-evm:master
from
moonbeam-foundation:tgm-record-external-costs
Jun 21, 2023
Merged
EVM + Weight v2 support #1039
Changes from 60 commits
Commits
Show all changes
70 commits
Select commit
Hold shift + click to select a range
4bab80e
wip `record_extarnal_cost`
tgmichel 416d618
Add support for external cost recording from the EVM
tgmichel 24c91b5
Add refund external cost support
tgmichel 3dff83e
Separate dispatchables with weight limit
tgmichel 3ace0af
introduce tbd EthereumWeigher
tgmichel 6deaacb
Validate gas to weight conversion
tgmichel 74708f5
Add static opcode recording with temp costs
tgmichel 8ea977b
Add optional `transaction_len` parameter to `GasWeightMapping`
tgmichel dc95f98
Account for pallet and call indexes
tgmichel ac5ed2d
Rollback `transaction_len` param, use MAX_POV_SIZE ratio instead
tgmichel 45c9e25
wip tests
tgmichel dc33686
Add `uncached_account_code_proof_size_accounting_works` test
tgmichel 312146f
wip tests
tgmichel 88c7c7c
Temp remove static external cost accounting
tgmichel 163b0c5
fix build
tgmichel a17e331
Temp remove static external cost accounting 2
tgmichel 8cc4568
warning cleanup
tgmichel 3646639
fmt
tgmichel 87e5f6f
clippy
tgmichel cc4e173
taplo
tgmichel eb2afed
Add `evm-with-weight-limit` to ci
tgmichel 7814419
Temp set evm fork + update Cargo.lock
tgmichel 255f663
Merge branch 'master' into tgm-record-external-costs
tgmichel 00ffebc
handle `code_hash`
tgmichel 5ab6432
taplo
tgmichel 4bb5e70
fmt
tgmichel 538c072
Handle `transact_with_weight_limit` as self contained
tgmichel 7686543
fix ts tests
tgmichel e12afd7
suggestion
tgmichel cd77d2d
remove precompile test
tgmichel 91ce2ed
some suggestions
tgmichel d6d7a00
remove `transact_with_weight_limit`
tgmichel 83e228a
configurable `MaxPovSize`
tgmichel c369476
test pov size constants
tgmichel 296cb2a
accessed storage overlayed cache
tgmichel c8138af
`new_from_weight_limit` suggestion
tgmichel 34be73b
remove unnecessary check
tgmichel 44c93c0
warnings cleanup
tgmichel 17abbd3
set constant gas limit max pov size ratio
tgmichel 3572aad
check state version for suicide
tgmichel 4bbbe3d
just completely remove suicide accounting
tgmichel bd734b1
- `code` must be able to oog
tgmichel 0a22130
Merge branch 'master' into tgm-record-external-costs
tgmichel 1a1a47f
`is_empty` accounting
tgmichel a63f1d2
fix build
tgmichel e59eb9c
`SSTORE` must record account storage proof size
tgmichel 91a5259
suggestion: move weight_limit checks
tgmichel 3915652
editorconfig
tgmichel d09fc5b
fmt
tgmichel e9df020
rename `transaction_len` to `proof_size_base_cost` in runner
tgmichel a8fd45e
move `proof_size_base_cost` to validation primitive
tgmichel caefbec
gas limit saturated conversion
tgmichel df032b5
remove transaction proof size check outside validation
tgmichel e53da69
Merge branch 'master' into tgm-record-external-costs
tgmichel 76c2f6c
pin evm
tgmichel 6f6827a
pin evm+
tgmichel 0154cc9
fix todos
tgmichel 881f690
fix build
tgmichel eddef23
scope of already recorded codes and storages must be per transaction
tgmichel d6d4765
pin evm + implement new `record_external_operation`
tgmichel 12fbeee
fix runtime api versioning + legacy `ExecutionInfo` handling
tgmichel 8a968e9
Merge branch 'master' into tgm-record-external-costs
tgmichel da32bba
editorconfig
tgmichel 5ba5fcc
cargo fmt
tgmichel 6d3bfb3
clippy
tgmichel ebd1486
suggestion remove `evm-with-weight-limit` feature
tgmichel 7198ca4
fmt
tgmichel d95b7ed
update comment
tgmichel d9f12de
update tests for additional `AccountBasicRead` in the evm
tgmichel 074711b
update evm pin
tgmichel 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
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
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.