-
Notifications
You must be signed in to change notification settings - Fork 335
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
Introduce Weight v2 support for EVM (frontier) #2316
Merged
Merged
Changes from 95 commits
Commits
Show all changes
96 commits
Select commit
Hold shift + click to select a range
50a835a
Update evm to 0.39
tgmichel cdefcf4
Adapted tests
d2e36ed
Removed unused imports
5c17976
Wip fallible discriminant
tgmichel eacaed5
fmt
tgmichel 7ca772f
wip fix test assets costs
tgmichel e3f3ced
fix test assets costs
tgmichel b837dc9
TODO temp ignore precompile macro tests
tgmichel 5f0fa96
Merge branch 'upgrade-evm-0.39' into tgm-evm-weight-v2
tgmichel 38fa014
update frontier pin
tgmichel 7f93c3b
update tests
tgmichel 9229540
just hardcode `GasLimitPovSizeRatio` as a constant
tgmichel 23712a8
Merge branch 'master' into tgm-evm-weight-v2
tgmichel b2cd44e
Merge remote-tracking branch 'origin/master' into tgm-evm-weight-v2
tgmichel b5609dc
fix xcm ts tests
tgmichel 3ba8899
oops
tgmichel 81c6d35
configure runtime api weigh_limit
tgmichel 3ad6b40
suggestions
tgmichel 3a3caaf
Updates EVM PoV to support PoV Gasometer
crystalin 336f920
fix test evm-over-pov
librelois 0c6250a
Update evm pin
tgmichel 2a75fac
update ts tests
tgmichel 8702ef2
Update evm pin 2
tgmichel 934f01d
editorconfig
tgmichel 3fd8117
update frontier pin
tgmichel 47d37a2
prettier
tgmichel b89db41
fix
tgmichel 9d08665
compute properly eth tx limits in ts tests
librelois e16c6fc
compute safely EXTRINSIC_GAS_LIMIT
librelois 496f081
typo
librelois 2f2dea4
runtime api TODO fix
tgmichel 7d8bd35
Adds test for Gasometer PoV limit/estimate check
crystalin 7c7622e
Merge branch 'tgm-evm-weight-v2' of github.com:purestake/moonbeam int…
crystalin 9fb2777
runtime api eth_call estimate tx len
tgmichel 94d3759
fix ts tests estimate gas
tgmichel ddf8459
prettier
tgmichel f2b68b4
suggestion
tgmichel fe44d2d
suggestion
tgmichel 1e70241
optimize estimated_transaction_len
librelois 73d2185
prettier gas_limit check
tgmichel 93bee9e
fix xcm to evm encoded tx len
tgmichel 7e6063d
Revert "fix xcm to evm encoded tx len"
tgmichel 535bd5b
account for proof size in precompiles try_dispatch
librelois ac65f3c
fmt
librelois 785c514
precompile handler: add helper function record_db_read
librelois a238173
migrate precompile db reads: xcm-utils
librelois ffa061b
migrate precompile db reads: xcm-transactor
librelois 6801477
migrate precompile db reads: assets-erc20::eip2612
tgmichel c3afd77
migrate precompile db reads: precompile utils
librelois aed6160
Revert "migrate precompile db reads: assets-erc20::eip2612"
tgmichel faea500
migrate precompile db reads: assets-erc20::eip2612
librelois 17d194b
fix rust tests
librelois ff97ebe
Update precompiles/xcm-transactor/src/functions.rs
librelois c6e657e
migrate precompile db reads: pallet-democracy
Agusrodri e45a1a2
migrate precompile db reads: fix pallet-democracy
librelois 4e3416d
more precise comment
librelois c5b73f4
account AssetId
librelois d12626d
migrate precompile db reads: assets-erc20
tgmichel 5962539
migrate precompile db reads: assets-erc20 (fix)
tgmichel 2a51315
migrate precompile db reads: author-mapping
tgmichel fd805a2
migrate precompile db reads: balances-erc20::eip2612
tgmichel b1f72fe
migrate precompile db reads: balances-erc20
tgmichel e0b9684
migrate precompile db reads: balances-erc20::eip2612 (fix)
tgmichel 312835a
migrate precompile db reads: call-permit
tgmichel 2ae4d60
migrate precompile db reads: collective
tgmichel e5711ce
migrate precompile db reads: conviction-voting
tgmichel 6697ab6
migrate precompile db reads: crowdloan-rewards
tgmichel c24ec2b
wip migrate precompile db reads: parachain-staking
tgmichel 4e3806f
migrate precompile db reads: parachain-staking
tgmichel 079e9d3
migrate precompile db reads: precompile-registry
tgmichel c58c6f5
migrate precompile db reads: proxy
tgmichel 6ed722a
precompile-registry add some comments
tgmichel 5fb1d84
migrate precompile db reads: referenda
tgmichel d9197a0
conviction-voting fix
tgmichel f17a118
call-permit update
tgmichel 9e6e6c7
REMOVE precompile db reads: relay-encoder
tgmichel 9dc6344
migrate precompile db reads: gmp
tgmichel 41d777a
record arbitrary cost on relay encoder precompile to prevent free spam
librelois 2aed45f
migrate precompile db reads: precompile-registry rework
librelois fc5ad64
Merge branch 'master' into tgm-evm-weight-v2
librelois 391d924
refactor randomness pallet & precompile to comply with weight v2
librelois de7a54d
add test for precompile batch PoV check
Agusrodri 3581171
fix rust tests compilation
librelois 478dd33
adapt some rust tests
librelois 8e8cdd4
suggestion
tgmichel 9703082
Add back missing db read precompile_set
tgmichel bd15f1f
editorconfig + prettier
tgmichel c7c971e
update cumulus pin
librelois 8749b94
update frontier pin
tgmichel 2563ae8
fix ts precompile xcm utils tests
tgmichel 8f69ebf
add more tests for precompile PoV and fmt
Agusrodri 8986424
update cumulus pin
librelois d200e2e
comply prettier & editorconfig
librelois db0f970
fix more ts tests (update frontier pin)
tgmichel f402f12
Merge branch 'master' into tgm-evm-weight-v2
librelois 73b6c3e
suggestion
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ authors = [ "Parity Technologies <[email protected]>" ] | |
description = "Xcm Transact compatibility for pallet-etherum." | ||
edition = "2021" | ||
license = "Apache-2.0" | ||
repository = "https://github.com/paritytech/frontier/" | ||
repository = "https://github.com/purestake/moonbeam/" | ||
version = "1.0.0-dev" | ||
|
||
[package.metadata.docs.rs] | ||
|
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.
A question about the channel, if this is created per-subscription is it possible to OOM kill the client via flooding it with subscriptions?
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.
If the connection is kept open in the client end, the limit of channels is the number of websocket connections the server supports. Each time a new ethereum block is produced, channels associated to closed connections are removed from the pool.