Conversation
- Add AVNU paymaster adapter alongside refactored Noop; export both from @ua2/paymasters for sponsorship and token-fee flows - Introduce dedicated paymaster runner in @ua2/core plus factory helpers to instantiate Noop or AVNU adapters - Update Sepolia E2E to prefer AVNU with clear Noop fallback messaging; provide example environment template for paymaster settings - Refresh SDK/API docs, Sepolia runbook, interface notes, and demo checklist to cover AVNU modes, valid_after/valid_until usage, and end-to-end demo expectations - Update SDK & RFC docs to use validAfter/validUntil, note ERC-20 transferFrom enforcement, and clarify sncast usage (no empty calldata flags) - Sync interface references with contract: owner_epoch, guardian lifecycle events, full Cairo error surface, and mapContractError helper - Implement mapContractError in core, expose via public SDK surface, and add targeted tests ensuring Cairo reverts map to helpful error classes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Standardizes env templates, upgrades to starknet 8.5.5, introduces AVNU sponsorship, and refactors paymaster integration. E2E flows now support attach-only Sepolia with AVNU first and clean Noop fallback. Docs and interfaces are aligned to validAfter and validUntil, guardian events, and the full error surface. Contract validation tightened for owner paths.
Changes
Env
.envfor devnet and trim.env.sepoliato the vars the scripts consume.env.sepolia.examplewith AVNU fields and clear comments.gitignoreto allow checked-in.envfor demosDocs
--contract-name UA2Accountowner_epoch, guardian events, error list, ERC20 value-cap notesDependencies and build
starknetto8.5.5across workspaces@ua2/paymastersdependency to@ua2/coreand example appCore SDK
mapContractErrorand export viaUA2.errorspaymasterRunner.tsNoopPaymasterand newAvnuPaymastervia@ua2/paymastersPaymasters package
AvnuPaymasteradapter withsponsoredanddefaultmodesNoopPaymasterwith stricter typing and input validationE2E
Contracts
assert_valid_owner_signaturehelper__validate_deploy__Tests
errors.spec.tsformapContractErrorMotivation
Make the demo reproducible and judge friendly, reduce env friction, move to current starknet client APIs, and provide a concrete sponsored path on Sepolia while preserving a safe fallback. Improve developer ergonomics with typed error mapping and a cleaner paymaster integration.
Testing
Env
.envdevnet run:npm run e2e:devnetprints success summary.env.sepoliaexported thennpm run e2e:sepoliashows AVNU availability and PASSPAYMASTER_URLto confirm Noop fallback pathSDK
vitestgreen for@ua2/core,@ua2/paymasters,@ua2/react, exampleerrors.spec.tsmaps knownERR_*codes and unknown fallbacksContracts
Manual
Checklist