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: add prepareForSend for EVM and SVM connector #477

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

danielbate
Copy link
Member

@danielbate danielbate commented Feb 11, 2025

  • Closes FE-1490

Summary

  1. Added usePrepareForSend = true flag to connectors to indicate support for the inverted flow
  2. Implemented prepareForSend method in all connectors that:
    • Prepares and signs transactions
    • Returns the prepared transaction without submitting it
  3. Refactored predicate-based connectors (EVM, Solana, WalletConnect) to use a shared helper method for transaction preparation

Checklist

  • I've added error handling for all actions/requests, and verified how this error will show on UI. (or there was no error handling)
  • I've reviewed all the copy changed/added in this PR, using AI if needed. (or there was no copy changes)
  • I've included the reference to the issues being closed from Github and/or Linear (or there was no issues)
  • I've changed the Docs to reflect my changes (or it was not needed)
  • I've put docs links where it may be helpful (or it was not needed)
  • I checked the resulting UI both in Light and Dark mode (or no UI changes were made)
  • I reviewed the entire PR myself (preferably, on GH UI)

Copy link

vercel bot commented Feb 11, 2025

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

Name Status Preview Comments Updated (UTC)
fuel-connectors ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 25, 2025 8:03pm

@danielbate danielbate changed the title feat: add prepareForSend for EVM and SVM connecot feat: add prepareForSend for EVM and SVM connector Feb 11, 2025
Copy link
Contributor

github-actions bot commented Feb 11, 2025

Coverage Report for Fuel Wallet (./packages/fuel-wallet)

Status Category Percentage Covered / Total
🔵 Lines 61.6% 146 / 237
🔵 Statements 61.6% 146 / 237
🔵 Functions 56.66% 17 / 30
🔵 Branches 77.77% 21 / 27
File CoverageNo changed files found.
Generated in workflow #1475 for commit 8df536f by the Vitest Coverage Report Action

Copy link
Contributor

github-actions bot commented Feb 11, 2025

Coverage Report for Fuel Development Wallet (./packages/fuel-development-wallet)

Status Category Percentage Covered / Total
🔵 Lines 100% 19 / 19
🔵 Statements 100% 19 / 19
🔵 Functions 100% 1 / 1
🔵 Branches 100% 1 / 1
File CoverageNo changed files found.
Generated in workflow #1475 for commit 8df536f by the Vitest Coverage Report Action

Copy link
Contributor

github-actions bot commented Feb 11, 2025

Coverage Report for Fuelet Wallet (./packages/fuelet-wallet)

Status Category Percentage Covered / Total
🔵 Lines 40.9% 27 / 66
🔵 Statements 40.9% 27 / 66
🔵 Functions 33.33% 1 / 3
🔵 Branches 100% 1 / 1
File CoverageNo changed files found.
Generated in workflow #1475 for commit 8df536f by the Vitest Coverage Report Action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants