-
Notifications
You must be signed in to change notification settings - Fork 237
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
[WIP] Modular contracts #2880
base: main
Are you sure you want to change the base?
[WIP] Modular contracts #2880
Conversation
🦋 Changeset detectedLatest commit: a3e7387 The changes in this PR will be included in the next version bump. This PR includes changesets to release 8 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 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2880 +/- ##
==========================================
+ Coverage 62.39% 62.75% +0.36%
==========================================
Files 812 816 +4
Lines 60856 61223 +367
Branches 3242 3271 +29
==========================================
+ Hits 37970 38423 +453
+ Misses 22216 22130 -86
Partials 670 670
*This pull request uses carry forward flags. Click here to find out more.
|
/release-pr |
/release-pr |
/release-pr |
/release-pr |
/release-pr |
…dev/js into yash/modular-contracts
/release-pr |
/release-pr |
CodSpeed Performance ReportMerging #2880 will not alter performanceComparing Summary
|
size-limit report 📦
|
account: Account; | ||
contract: ThirdwebContract; | ||
extensionName: string; | ||
publisherAddress: string; |
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.
make this optional and default to THIRDWEB_DEPLOYER? here and in the other extensions
}); | ||
return { | ||
extensionImplementation: deployedExtension.implementationContract | ||
.address as string, |
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.
why do you need the as string here?
* TODO not quite ready for public consumption yet | ||
* @internal | ||
*/ | ||
export async function deployModularCoreContract( |
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.
is this core for ANY type of contract? erc721/erc1155/erc20/etc?
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.
Right now testing with a mock core contract. But this function should allow deployment of any core contract.
/release-pr |
/release-pr |
/release-pr |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
/release-pr |
PR-Codex overview
This PR focuses on adding modular contract deployment setup and functionality enhancements related to modular extensions.
Detailed summary
isModular
check in contract publisherhasDuplicates
function in utilsrouterType
options withmodular
modularFactoryInput
in deploy metadataDeployOptions
withhooks
arrayDeployedContractType
with hook optionsModularFactoryInput
computeModularFactoryAddress
functionisModular
check in plugin ABI retrieval