-
Notifications
You must be signed in to change notification settings - Fork 441
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
delegate_dependency
api calls
#2076
Conversation
delegate_dependency
env api callsdelegate_dependency
api calls
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2076 +/- ##
==========================================
+ Coverage 53.64% 53.67% +0.02%
==========================================
Files 224 224
Lines 7046 7046
Branches 3118 3118
==========================================
+ Hits 3780 3782 +2
+ Misses 3266 3264 -2 ☔ View full report in Codecov by Sentry. |
🦑 📈 ink! Example Contracts ‒ Changes Report 📉 🦑These are the results when building the
Link to the run | Last update: Fri Feb 23 19:33:22 CET 2024 |
integration-tests/upgradeable-contracts/delegator/delegatee2/Cargo.toml
Outdated
Show resolved
Hide resolved
Remove `#[unstable]` on `call_v2`, `instantiate_v2`, `lock_delegate_dependency` and `unlock_delegate_dependency`. See ink! integrations: - call_v2: use-ink/ink#2077 - instantiate_v2: <TODO> - lock/unlock dependency: use-ink/ink#2076
Remove `#[unstable]` on `call_v2`, `instantiate_v2`, `lock_delegate_dependency` and `unlock_delegate_dependency`. See ink! integrations: - call_v2: use-ink/ink#2077 - instantiate_v2: <TODO> - lock/unlock dependency: use-ink/ink#2076
Remove `#[unstable]` on `call_v2`, `instantiate_v2`, `lock_delegate_dependency` and `unlock_delegate_dependency`. See ink! integrations: - call_v2: use-ink/ink#2077 - instantiate_v2: <TODO> - lock/unlock dependency: use-ink/ink#2076
…argo.toml Co-authored-by: Gherman <[email protected]>
Co-authored-by: Gherman <[email protected]>
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.
lgtm
Remove `#[unstable]` on `call_v2`, `instantiate_v2`, `lock_delegate_dependency` and `unlock_delegate_dependency`. See ink! integrations: - call_v2: use-ink/ink#2077 - instantiate_v2: <TODO> - lock/unlock dependency: use-ink/ink#2076
@@ -0,0 +1,20 @@ | |||
[package] | |||
name = "delegatee2" |
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.
Can you add a mention of the lock/unlock mechanism and the delegate2
package to https://github.com/paritytech/ink/tree/430a831b1e4084e154744910f36a9f40516699fe/integration-tests/upgradeable-contracts#delegator?
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.
Done 👍
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.
Ah oops I did that in the wrong PR 🙈 it is here: https://github.com/paritytech/ink/pull/2123/files#diff-7cf9db86b007053cf1ad83c5196420d3e5c582a7b3dbbc5d73edca22b4a452fa
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.
Thanks, Andrew!
Co-authored-by: Michael Müller <[email protected]>
Co-authored-by: Michael Müller <[email protected]>
Co-authored-by: Michael Müller <[email protected]>
Co-authored-by: Michael Müller <[email protected]>
Remove `#[unstable]` on `call_v2`, `instantiate_v2`, `lock_delegate_dependency` and `unlock_delegate_dependency`. See ink! integrations: - call_v2: use-ink/ink#2077 - instantiate_v2: <TODO> - lock/unlock dependency: use-ink/ink#2076
Adds support for two new host functions
lock_delegate_dependency
: prevents the code at the given code hash for being removed.unlock_delegate_dependency
: releases the lock on the code being removed from the current contract.Having a delegate dependency allows contracts to safely delegate to another
code_hash
with the guarantee that it cannot be deleted. See paritytech/substrate#14079.I have modified the
upgradeable-contracts/delegator
integration test to demonstrate these new calls. For that purpose I have also addedremove_code
extrinsic to the e2e client.🟡 Requires version of
pallet_contracts
including paritytech/polkadot-sdk@d250a6e