This repository was archived by the owner on Nov 15, 2023. It is now read-only.
[contracts] Port host functions to Weight V2 and storage deposit limit#13565
Merged
paritytech-processbot[bot] merged 35 commits intomasterfrom Apr 26, 2023
Merged
[contracts] Port host functions to Weight V2 and storage deposit limit#13565paritytech-processbot[bot] merged 35 commits intomasterfrom
paritytech-processbot[bot] merged 35 commits intomasterfrom
Conversation
2cb30c7 to
3a35000
Compare
add test for nested call deposit limit save: separate deposit limit for nested calls
save: works with test cleaned up debugging outputs
3a35000 to
e8ce9ee
Compare
Member
|
Tests are failing. |
e8ce9ee to
2bfb866
Compare
Contributor
Author
|
@pgherveou your comments have been addressed |
pgherveou
approved these changes
Apr 13, 2023
| /// | ||
| /// Equivalent to the newer version [`super::seal1::Api::clear_storage`] with the exception of | ||
| /// the return type. Still a valid thing to call when not interested in the return value. | ||
| /// Equivalent to the newer [`seal1`][`super::api_doc::Version1::clear_storage`] version with |
Contributor
There was a problem hiding this comment.
maybe we can use Current instead of Version1 to make these links more future proof
Co-authored-by: PG Herveou <pgherveou@gmail.com>
pgherveou
reviewed
Apr 25, 2023
juangirini
reviewed
Apr 26, 2023
juangirini
approved these changes
Apr 26, 2023
Contributor
Author
|
bot merge |
|
Error: Statuses failed for 0dac6f6 |
d167473 to
0dac6f6
Compare
Contributor
Author
|
bot merge force |
|
The CI pipeline was cancelled due to failure one of the required jobs. |
Member
|
There is a failing test from this MR IIUC: |
gpestana
pushed a commit
that referenced
this pull request
May 4, 2023
#13565) * added [unstable][seal2] call() * updated test to cover new seal_call proof_limit * docs updated * add [seal2][unstable] instantiate() and test * add [seal2][unstable] weight_to_fee() + docs and test * add [seal2][unstable] gas_left() + docs and test * update benchmarks * add DefaultDepositLimit to pallet Config * specify deposit limit for nested call add test for nested call deposit limit save: separate deposit limit for nested calls * specify deposit limit for nested instantiate save: works with test cleaned up debugging outputs * update benchmarks * added missing fixtures * fix benches * pass explicit deposit limit to storage bench * explicit deposit limit for another set_storage bench * add more deposit limit for storage benches * moving to simplified benchmarks * moved to simplified benchmarks * fix seal_weight_to_fee bench * fix seal_instantiate benchmark * doc typo fix * default dl for benchmarking more dl for tests dl for tests to max deposit_limit fix in instantiate bench fix instantiate bench fix instantiate benchmark fix instantiate bench again remove dbg fix seal bench again fixing it still seal_instantiate zero deposit less runs to check if deposit enough try try 2 try 3 try 4 * max_runtime_mem to Schedule limits * add default deposit limit fallback check to test * weight params renaming * fmt * Update frame/contracts/src/benchmarking/mod.rs Co-authored-by: PG Herveou <pgherveou@gmail.com> * prettify inputs in tests * typestate param refactored --------- Co-authored-by: PG Herveou <pgherveou@gmail.com>
15 tasks
nathanwhit
pushed a commit
to nathanwhit/substrate
that referenced
this pull request
Jul 19, 2023
paritytech#13565) * added [unstable][seal2] call() * updated test to cover new seal_call proof_limit * docs updated * add [seal2][unstable] instantiate() and test * add [seal2][unstable] weight_to_fee() + docs and test * add [seal2][unstable] gas_left() + docs and test * update benchmarks * add DefaultDepositLimit to pallet Config * specify deposit limit for nested call add test for nested call deposit limit save: separate deposit limit for nested calls * specify deposit limit for nested instantiate save: works with test cleaned up debugging outputs * update benchmarks * added missing fixtures * fix benches * pass explicit deposit limit to storage bench * explicit deposit limit for another set_storage bench * add more deposit limit for storage benches * moving to simplified benchmarks * moved to simplified benchmarks * fix seal_weight_to_fee bench * fix seal_instantiate benchmark * doc typo fix * default dl for benchmarking more dl for tests dl for tests to max deposit_limit fix in instantiate bench fix instantiate bench fix instantiate benchmark fix instantiate bench again remove dbg fix seal bench again fixing it still seal_instantiate zero deposit less runs to check if deposit enough try try 2 try 3 try 4 * max_runtime_mem to Schedule limits * add default deposit limit fallback check to test * weight params renaming * fmt * Update frame/contracts/src/benchmarking/mod.rs Co-authored-by: PG Herveou <pgherveou@gmail.com> * prettify inputs in tests * typestate param refactored --------- Co-authored-by: PG Herveou <pgherveou@gmail.com>
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Port host functions to Weight V2 and storage deposit limit
DefaultDepositLimitpallet config parameter, to allow chains set a fallback default value when a caller doesn't setstorage_deposit_limitto a call.callandinstantiateaccept storage deposit limit parameter which allow to set the limit for the sub-call. This might be helpful for cross-contract calls. This limit is enforced right after execution returns from the sub-call, and the sub-call is rolled back if the limit has been exhausted during the call.Drive-by changes
max_runtime_memto schedule limits in order to make its configuration for integrity_test smooth.