Skip to content

Conversation

@kumaryash90
Copy link
Member

@kumaryash90 kumaryash90 commented Mar 25, 2025


PR-Codex overview

This PR focuses on enhancing the dynamic contract extensions in the thirdweb library by adding functionality to install and uninstall extensions, along with corresponding tests and utility functions.

Detailed summary

  • Added uninstallExtension function to remove extensions from dynamic contracts.
  • Introduced installPublishedExtension function for installing extensions.
  • Updated type definitions for function parameters.
  • Added tests for both uninstallExtension and installPublishedExtension.
  • Modified generateExtensionFunctionsFromAbi to specify functionSelector type.
  • Added methods to the generated IExtensionManager ABI for adding and removing extensions.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@kumaryash90 kumaryash90 requested review from a team, jnsdls and joaquim-verges as code owners March 25, 2025 17:12
@vercel
Copy link

vercel bot commented Mar 25, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 26, 2025 0:31am
login ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 26, 2025 0:31am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 26, 2025 0:31am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 26, 2025 0:31am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 26, 2025 0:31am

@changeset-bot
Copy link

changeset-bot bot commented Mar 25, 2025

🦋 Changeset detected

Latest commit: 3c120a7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
thirdweb Patch
@thirdweb-dev/wagmi-adapter Patch

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

@graphite-app
Copy link
Contributor

graphite-app bot commented Mar 25, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

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.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 25, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 47.56 KB (0%) 952 ms (0%) 120 ms (+115.34% 🔺) 1.1 s
thirdweb (cjs) 127.31 KB (0%) 2.6 s (0%) 187 ms (+14.01% 🔺) 2.8 s
thirdweb (minimal + tree-shaking) 5.6 KB (0%) 113 ms (0%) 47 ms (+645.85% 🔺) 159 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 24 ms (+984.9% 🔺) 34 ms
thirdweb/react (minimal + tree-shaking) 19.34 KB (0%) 387 ms (0%) 81 ms (+635.61% 🔺) 468 ms

@codecov
Copy link

codecov bot commented Mar 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.07%. Comparing base (b51157c) to head (3c120a7).
Report is 1 commits behind head on main.

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              
Flag Coverage Δ
packages 55.07% <100.00%> (+0.05%) ⬆️
Files with missing lines Coverage Δ
...namic-contracts/write/installPublishedExtension.ts 100.00% <100.00%> (ø)
...ions/dynamic-contracts/write/uninstallExtension.ts 100.00% <100.00%> (ø)
.../extensions/prebuilts/get-required-transactions.ts 73.91% <ø> (ø)

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@kumaryash90 kumaryash90 added merge-queue Adds the pull request to Graphite's merge queue. hotfix This pull request should be prioritized in the merge queue. labels Mar 26, 2025
Copy link
Member Author

kumaryash90 commented Mar 26, 2025

Merge activity

  • Mar 25, 8:23 PM EDT: The merge label 'hotfix' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Mar 25, 8:23 PM EDT: kumaryash90 added this pull request to the Graphite merge queue.
  • Mar 25, 8:31 PM EDT: A user merged this pull request with the Graphite merge queue.

@kumaryash90 kumaryash90 changed the title Functions to manage extensions on a dynamic contract [SDK] Functions to manage extensions on a dynamic contract Mar 26, 2025
<!--

## 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 -->
@graphite-app graphite-app bot force-pushed the yash/extension-manager-dynamic-contracts branch from 0ff3ed4 to 3c120a7 Compare March 26, 2025 00:24
@graphite-app graphite-app bot merged commit 3c120a7 into main Mar 26, 2025
32 checks passed
@graphite-app graphite-app bot deleted the yash/extension-manager-dynamic-contracts branch March 26, 2025 00:31
@graphite-app graphite-app bot removed merge-queue Adds the pull request to Graphite's merge queue. hotfix This pull request should be prioritized in the merge queue. labels Mar 26, 2025
@joaquim-verges joaquim-verges mentioned this pull request Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packages SDK Involves changes to the thirdweb SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants