-
Notifications
You must be signed in to change notification settings - Fork 621
[SDK] Functions to manage extensions on a dynamic contract #6550
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: 3c120a7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
packages/thirdweb/scripts/generate/abis/dynamic-contracts/IExtensionManager.json
Show resolved
Hide resolved
size-limit report 📦
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6550 +/- ##
==========================================
+ Coverage 55.02% 55.07% +0.05%
==========================================
Files 881 883 +2
Lines 55304 55362 +58
Branches 3787 3789 +2
==========================================
+ Hits 30429 30491 +62
+ Misses 24780 24776 -4
Partials 95 95
🚀 New features to boost your workflow:
|
Merge activity
|
<!--
## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"
If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000):
## Notes for the reviewer
Anything important to call out? Be sure to also clarify these in your comments.
## How to test
Unit tests, playground, etc.
-->
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on enhancing the `thirdweb` library by adding functionality to manage extensions on dynamic contracts, including the ability to install and uninstall extensions.
### Detailed summary
- Introduced `uninstallExtension` function to remove extensions from dynamic contracts.
- Added `installPublishedExtension` function to install extensions with various options.
- Updated `generateExtensionFunctionsFromAbi` to use a specific string format for `functionSelector`.
- Enhanced tests for `uninstallExtension` and `installPublishedExtension` to ensure proper functionality.
- Updated generated files for `addExtension` and `removeExtension` methods with new parameter types and encoding functions.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
0ff3ed4 to
3c120a7
Compare
PR-Codex overview
This PR focuses on enhancing the dynamic contract extensions in the
thirdweblibrary by adding functionality to install and uninstall extensions, along with corresponding tests and utility functions.Detailed summary
uninstallExtensionfunction to remove extensions from dynamic contracts.installPublishedExtensionfunction for installing extensions.uninstallExtensionandinstallPublishedExtension.generateExtensionFunctionsFromAbito specifyfunctionSelectortype.IExtensionManagerABI for adding and removing extensions.