chore: upgrade v4.0.0 devnet.2 patch.1#24
Conversation
Benchmark Comparison
Contract: account
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
@coderabbitai full review !!! |
✅ Actions performedFull review triggered. |
|
Caution Review failedFailed to post review comments 📝 WalkthroughWalkthroughThis pull request updates the project from Aztec version 4.0.0-devnet.1-patch.0 to 4.0.0-devnet.2-patch.1 across dependencies, workflow references, and Nargo manifests. The package is renamed from immutables-macro to aztec-immutables-macro. The wallet implementation is refactored from TestWallet to a new CustomEmbeddedWallet class that extends EmbeddedWallet and manages custom accounts. Fee payment handling is introduced through SponsoredFeePaymentMethod, with deployment flows updated to accept optional fee parameters. Documentation and import paths are updated to reflect the new package name. Estimated code review effort🎯 4 (Complex) | ⏱️ ~50 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
|
✅ Actions performedFull review triggered. |
| const deployerBalanceAfter = await token.methods | ||
| .balance_of_private(deployerAddress) | ||
| .simulate({ from: deployerAddress }); | ||
| expect(deployerBalanceAfter).toEqual( | ||
| deployerBalanceBefore + TRANSFER_AMOUNT, | ||
| ); |
| // Register the canonical SponsoredFPC for fee sponsorship. | ||
| const sponsoredFPCInstance = | ||
| await getContractInstanceFromInstantiationParams( | ||
| SponsoredFPCContract.artifact, | ||
| { salt: new Fr(0n) }, | ||
| ); | ||
| await wallet.registerContract( | ||
| sponsoredFPCInstance, | ||
| SponsoredFPCContract.artifact, | ||
| ); | ||
| const sponsoredPaymentMethod = new SponsoredFeePaymentMethod( | ||
| sponsoredFPCInstance.address, | ||
| ); |
Description
Upgrades all Aztec dependencies from
4.0.0-devnet.1-patch.0to4.0.0-devnet.2-patch.1.Changes
API migrations
TestWallet→EmbeddedWallet(new embedded wallet API)SponsoredFeePaymentMethodnow required for on-chain contract class publication (bytecode DA cost exceeds default fee juice balance)mergeExecutionPayloads, matching howDeployMethodbundles publish + constructor in the SDKCustomEmbeddedWalletregisterCustomAccountmonkey-patch with a properEmbeddedWalletsubclassgetAccountFromAddressto support custom account types (e.g.SchnorrInitializerlessAccount)utils.tsFee sponsorship
setupTestSuitenow registers the canonicalSponsoredFPCand returns aSponsoredFeePaymentMethoddeployWithImmutablesaccepts an optionalfeefor published deploymentsdeploySchnorrAccountaccepts an optionalfeeforwarded to the deploy methodHousekeeping
registerCustomAccountfrom e2e test + benchmark into sharedutils.tsSummary by cubic
Upgrades to Aztec v4.0.0-devnet.2-patch.1, migrates to the new EmbeddedWallet APIs, and renames the package to @defi-wonderland/aztec-immutables-macro. Adds fee sponsorship support and merges publication steps into a single transaction across utils, tests, and benchmarks.
Migration
Dependencies
Written for commit 3c7ac35. Summary will update on new commits.
Summary by CodeRabbit
Release Notes
New Features
Chores
@defi-wonderland/aztec-immutables-macro.Documentation