-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[pallet-revive] Update genesis config #9557
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
Merged
Changes from all commits
Commits
Show all changes
221 commits
Select commit
Hold shift + click to select a range
e430211
wip
pgherveou b8edd12
fix build & test not handling dust yet
pgherveou a7adc71
add transfer_with dust
pgherveou 578a11a
fix transfer_with_dust
pgherveou 56eabf0
fix tests
pgherveou 9b6f39f
use evm_balance where possible
pgherveou b34ebcf
port test from design
pgherveou c35e909
fix runtime-api macro
pgherveou d168cd4
fix missing test
pgherveou e357c74
fix benchmark tests
pgherveou d1d981c
Use U256 in bare_*
pgherveou 01a91c6
make test pass again
pgherveou 179b829
fix proc-acro
pgherveou b5d6bed
use native_value for clarity in tests
pgherveou 2c05cfe
Add benchmark for eth_ extrinsics
pgherveou b2f3301
create the account if it does not exists
pgherveou 18108f7
fix
pgherveou 68e4ae4
fixes
pgherveou 7f650f3
fixes
pgherveou 380a1b4
fix build
pgherveou e0e5316
Update from github-actions[bot] running command 'bench --runtime dev …
github-actions[bot] 8c21f11
Fix seal_call benchmark
pgherveou 8158cea
Update from github-actions[bot] running command 'prdoc --audience run…
github-actions[bot] 215e8a3
Update from github-actions[bot] running command 'bench --runtime dev …
github-actions[bot] a2aa1a1
Merge branch 'master' into pg/fix-seal-call-weights
pgherveou 0c6059f
Merge branch 'pg/fix-seal-call-weights' into pg/eth-decimals
pgherveou be98709
fixes
pgherveou 66d14f8
add migration
pgherveou cb06489
get rid of dust_account_id
pgherveou 1edd2c2
fixes
pgherveou 7840bdd
Update from github-actions[bot] running command 'bench --runtime dev …
github-actions[bot] 3631e90
lint fix
pgherveou c387d13
nit updates
pgherveou e9e6038
Update from github-actions[bot] running command 'prdoc --audience run…
github-actions[bot] 3ce1df7
fix pallet-xcm test
pgherveou a1d9b7c
fix build err
pgherveou 3f27159
fix assets precompible build
pgherveou e3403f3
fix
pgherveou 5b9c6ed
Update from github-actions[bot] running command 'prdoc --audience run…
github-actions[bot] f386278
Merge branch 'master' into pg/eth-decimals
pgherveou 5f7adfa
pallet-xcm
pgherveou 0cae21f
Update bench tests
pgherveou 8a11d71
Update from github-actions[bot] running command 'bench --runtime dev …
github-actions[bot] 74cb003
Update cargo files
pgherveou fc31a0e
store the runtime code for EVM instantiate
pgherveou bf2c046
wip
pgherveou 4c3c09f
wip
pgherveou 279c132
fix
pgherveou 9e7ee08
fix
pgherveou a37dd15
PR review move has_dust and has_balance and remove pub
pgherveou a764344
use local function instead of closure
pgherveou 6eb87c8
make migration
pgherveou 2959185
scope function
pgherveou 41c7afd
charge 0 for input_data_len on err
pgherveou e74ed21
comment bench_map
pgherveou 2d8d417
use drain to remove old storage in migration
pgherveou bdc1365
make balance, dust private in BalanceWithDust
pgherveou c94be4f
Update substrate/frame/revive/src/migrations/v1.rs
pgherveou 7d3bca0
Revert "Update substrate/frame/revive/src/migrations/v1.rs"
pgherveou a2a5a18
add migration unit test
pgherveou 0dc2210
typo
pgherveou e8ca9fb
Add additional tests
pgherveou 1da95a2
Merge branch 'master' into pg/eth-decimals
pgherveou 7e9f2c9
Merge branch 'pg/eth-decimals' into pg/revm
pgherveou 874e7c0
update lock
pgherveou d7eb888
wip
pgherveou 38c2b80
add instructions
pgherveou a55cc7a
wip
pgherveou 3a42cf7
split evm / pvm
pgherveou 8af812d
basic host interaction
pgherveou 165b7e7
fix gas
pgherveou ec3d84f
Merge branch 'master' into pg/revm
pgherveou ade709b
wip
pgherveou 65ddd58
update lock
pgherveou 006cb15
fix
pgherveou c3ff24a
rm
pgherveou 661d251
fix
pgherveou 8b55fe8
Update
pgherveou 8335340
fix
pgherveou 538bf49
comment bitwise test for now
pgherveou 70d07b9
Add AllowEVMBytecode config
pgherveou 364201c
wip
pgherveou a2edcbe
fix compile error
pgherveou 97c00f4
fixes
pgherveou 6edb4a1
use 0 value
pgherveou 053c548
[pallet-revive] revm tests scaffolding (#9290)
xermicus b45b1a2
move back fixture to fixtures folder and generate them from build.rs
pgherveou 27b62f7
add skeleton for fixtures
pgherveou acf0e6e
wip
pgherveou f47d7b5
fixes
pgherveou 31c0595
update build.rs
pgherveou 3a07569
nit
pgherveou 9adf741
fixes
pgherveou b1dbf5d
add missing headers
pgherveou 4341d6d
Merge branch 'master' into pg/revm
pgherveou 91e59e5
add test allow_evm_bytecode_config_works
pgherveou da7473d
fix lock
pgherveou df8d71d
Update from github-actions[bot] running command 'fmt'
github-actions[bot] 359b181
fixes
pgherveou 58b9220
Rve/revm arithmetic instructions WIP (#9361)
0xRVE 5b304a0
fixes gas computation of evm arithemtic instructions (#9379)
0xRVE 8817d7e
Revert "fixes gas computation of evm arithemtic instructions (#9379)"
02198ce
Revert "Rve/revm arithmetic instructions WIP (#9361)"
bb14f1c
[pallet-revive] do not silently fail Solidity fixtures compilation (#…
xermicus 1bfbaa8
refactor more benchmarks
pgherveou 7f79d2e
Merge branch 'master' into pg/revm
pgherveou 076246c
Merge branch 'master' into pg/revm
pgherveou b2ceaae
revm file shuffling
pgherveou 7e68c51
fixes
pgherveou 6ec1681
rm stuff for later
pgherveou c89d026
rm evm
pgherveou d53e0ac
rm evm stuff
pgherveou edde1d1
Update from github-actions[bot] running command 'prdoc --audience run…
github-actions[bot] 4f38703
rm
pgherveou ab3761e
taplo fix
pgherveou 7dadbc1
fix up cargo.lock
pgherveou abcd13c
try
pgherveou 6d30298
fixes
pgherveou 68e9a84
Merge branch 'master' into pg/revm-base
pgherveou 551c711
rm vm/runtime.rs
pgherveou 2c308d7
Merge branch 'pg/revm-base' into pg/revm
pgherveou 2debf91
fix
pgherveou 0175328
nit
pgherveou 59e59e8
fixes
pgherveou f1f2ffc
nit
pgherveou 82ea9bc
update call_with_code_per_byte
pgherveou 20511d1
fixes
pgherveou e1bbcb9
added migration
pgherveou 78c92d3
Merge branch 'master' into pg/revm-base
pgherveou 3789665
Merge branch 'pg/revm-base' into pg/revm
pgherveou f8da76f
refactoring
pgherveou b1b1192
fix clippy
pgherveou a829fab
fix clippy
pgherveou 3c4f5c4
Merge branch 'master' into pg/revm
pgherveou 953ee61
merge fix
pgherveou 7cee5be
simplify migration tests
pgherveou b8dc717
add migration
pgherveou 81578a0
remove unneeded tests for this PR
pgherveou 6000ed4
fixes
pgherveou c679776
keep these files for next PR
pgherveou 5f839b6
comments
pgherveou 8110392
fixes
pgherveou 7a1c0a6
fix
pgherveou 83ea8cd
Update from github-actions[bot] running command 'bench --runtime dev …
github-actions[bot] 165957c
Update from github-actions[bot] running command 'prdoc --audience run…
github-actions[bot] 2b07ca6
rename seal_to_account_id
pgherveou f96fa39
update PRDOC
pgherveou 2f369ad
Merge branch 'master' into pg/revm
pgherveou b66b47a
fix bench
pgherveou 4d0db7e
output.data shoudl be untouched
pgherveou 79b84da
install solidity in job
pgherveou 4b80099
use resolc too
pgherveou 4b6f4d2
rm line
pgherveou ab15dc1
enforce evm code size limit
pgherveou e93c1a0
fix
pgherveou 04d0551
fix
pgherveou 8f8ebcc
fix
pgherveou dec0849
PR review
pgherveou dbfc430
make pristine unbounded and check PVM & EVM code size
pgherveou 87b7b4e
nit
pgherveou b769010
refcount = 1 for evm
pgherveou 0abfc74
fix
pgherveou 6060eb4
fix
pgherveou 2007fb5
add one more assert
pgherveou f219e06
nit
pgherveou 33e9216
Remove refcount and owner for EVM CodeInfo
pgherveou c71b236
init
pgherveou f75403a
rm unused
pgherveou becf521
Merge branch 'pg/revm' into pg/revive-genesis
pgherveou 7faab96
rm comments
pgherveou db737db
fixes
pgherveou 49ea5e4
Update from github-actions[bot] running command 'prdoc --audience run…
github-actions[bot] d26d8ac
origin should be held not caller
pgherveou cc8cef4
Merge branch 'master' into pg/revm
pgherveou ebe8a8a
fixes
pgherveou e0a3c3d
Merge branch 'pg/revm' into pg/revive-genesis
pgherveou 670ba44
nit
pgherveou e8a48a6
Update substrate/frame/revive/src/lib.rs
pgherveou e405e18
rollback refcount removals
pgherveou 8b1669f
Update Cargo.toml
pgherveou 4f86e9b
Update prdoc/pr_9285.prdoc
pgherveou 315ae52
Update substrate/frame/revive/src/call_builder.rs
pgherveou 3598d6f
Update substrate/frame/revive/src/benchmarking.rs
pgherveou 3272e99
rm charge_evm_init_cost
pgherveou e2242a2
fix
pgherveou 7fa6421
rm - 1
pgherveou ae647b6
restore legacy behaviour
pgherveou 1a073b6
update
pgherveou d4d8c1a
deadcode unused for now
pgherveou e286c49
deposit fixes
pgherveou f9aebdc
add missing assert
pgherveou 7232f99
tweak tests
pgherveou f175c1b
ensure pallet_account exits
pgherveou bf19cf0
fixes
pgherveou 7211711
nit
pgherveou c1ba77d
update comment
pgherveou 46f6dfb
Add back remove_code
pgherveou 546d65d
nit
pgherveou d820477
Update substrate/frame/revive/src/lib.rs
pgherveou c16e6ce
mint balance in migration
pgherveou 1541263
rm check
pgherveou 0a8935c
fmt
pgherveou 692abb2
fixes
pgherveou a504987
reject hash == 0
pgherveou 3a9f3d7
warm up pallet_account
pgherveou c245621
Update substrate/frame/revive/src/migrations/v2.rs
pgherveou 88c6b23
Update ExtBuilder
pgherveou 3201fb2
Merge branch 'master' into pg/revm
pgherveou 400c912
Update .github/workflows/tests-misc.yml
pgherveou a1178f3
Update from github-actions[bot] running command 'bench --runtime dev …
github-actions[bot] dc75161
Merge branch 'pg/revm' into pg/revive-genesis
pgherveou d502f36
fix tests-misc
pgherveou 3c9a133
Merge branch 'pg/revm' into pg/revive-genesis
pgherveou a8cd0c3
fixes
pgherveou cc8ff2e
Merge branch 'master' into pg/revive-genesis
pgherveou ce51812
fix merge conflict
pgherveou 11ecb37
fix /n
pgherveou 8d2ff79
fix
pgherveou 500b83e
Merge branch 'master' into pg/revive-genesis
pgherveou c457910
fixes
pgherveou f9deb02
Merge branch 'master' into pg/revive-genesis
pgherveou 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| title: '[pallet-revive] Update genesis config' | ||
| doc: | ||
| - audience: Runtime Dev | ||
| description: |- | ||
| Update pallet-revive Genesis config | ||
| Make it possible to define accounts (contracts or EOA) that we want to setup at Genesis | ||
| crates: | ||
| - name: pallet-revive | ||
| bump: minor |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,7 +40,6 @@ | |
|
|
||
| }, | ||
| "revive": { | ||
| "mappedAccounts": [] | ||
| }, | ||
| "democracy": {}, | ||
| "council": { | ||
|
|
||
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.
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.
Do we still need this? I guess for accounts that are in the
pallet_balancesgenesis? Can we add some docs here why we have both entries?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.
yeah exactly, will add comments