Skip to content
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

feat(relay-kit): Add UserOperation custom nonce support #1126

Merged
merged 69 commits into from
Feb 10, 2025

Conversation

yagopv
Copy link
Member

@yagopv yagopv commented Feb 7, 2025

What it solves

Adding support for custom nonce is a common requested feature

How this PR fixes it

By allowing to specify a custom nonce in the createTransaction method

We are exporting a encodeNonce utility to create custom nonces

Added a new playground to test the parallel execution of user operations as described here

Testing Safe: https://app.safe.global/transactions/history?safe=sep:0x66d58aFE9eDB356f08C5daFa9a54eBaC33971073

@yagopv yagopv marked this pull request as ready for review February 10, 2025 09:37
@yagopv yagopv requested review from dasanra and DaniSomoza February 10, 2025 09:37
@dasanra dasanra linked an issue Feb 10, 2025 that may be closed by this pull request
Base automatically changed from feat/entrypoint-v7 to development February 10, 2025 10:13
…e-sdk into feat/user-operation-custom-nonce

# Conflicts:
#	packages/relay-kit/src/packs/safe-4337/Safe4337Pack.ts
#	packages/relay-kit/src/packs/safe-4337/utils/index.ts
#	packages/relay-kit/src/packs/safe-4337/utils/userOperations.ts
#	playground/config/run.ts
@coveralls
Copy link

coveralls commented Feb 10, 2025

Pull Request Test Coverage Report for Build 13239953107

Details

  • 8 of 8 (100.0%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.1%) to 78.049%

Totals Coverage Status
Change from base Build 13238431088: 0.1%
Covered Lines: 893
Relevant Lines: 1073

💛 - Coveralls

@yagopv yagopv merged commit 2dc8f97 into development Feb 10, 2025
22 checks passed
@yagopv yagopv deleted the feat/user-operation-custom-nonce branch February 10, 2025 11:43
@github-actions github-actions bot locked and limited conversation to collaborators Feb 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[relay-kit] Specify custom nonce and checksum addresses
3 participants