Skip to content

feat(solana): limit orders prototype - #7860

Draft
shoom3301 wants to merge 51 commits into
developfrom
solana/web-3
Draft

feat(solana): limit orders prototype#7860
shoom3301 wants to merge 51 commits into
developfrom
solana/web-3

Conversation

@shoom3301

@shoom3301 shoom3301 commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixes https://linear.app/cowswap/issue/FE-318/create-a-proof-of-conecept-for-on-chain-order-creation

High-level description of what your changes are accomplishing

Add screenshots if applicable. Images are nice :)

To Test

  1. <> Open the page about
  • <<What to expect?>> Verify it contains about information...
  • Checkbox Style list of things a QA person could verify, i.e.
  • Should display Text Input our storybook
  • Input should not accept Numbers
  1. <> ...

Background

Optional: Give background information for changes you've made, that might be difficult to explain via comments

shoom3301 and others added 30 commits July 13, 2026 14:41
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
shoom3301 and others added 20 commits July 15, 2026 16:34
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ntend

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The tx usually lands at the edge of the blockhash validity window because the
wallet-signing prompt ages the blockhash before broadcast. Re-check the signature
status on a confirmation timeout instead of reporting a false failure.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
confirmTransaction's blockhash strategy throws a false block-height-exceeded error
when the tx lands at the edge of the validity window. Poll getSignatureStatus until
the tx lands instead, so a successful order is reported as success.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cowfi Ready Ready Preview Jul 27, 2026 2:53pm
explorer-dev Canceled Canceled Jul 27, 2026 2:53pm
sdk-tools Ready Ready Preview Jul 27, 2026 2:53pm
storybook Ready Ready Preview Jul 27, 2026 2:53pm
swap-dev Ready Ready Preview Jul 27, 2026 2:53pm
widget-configurator Ready Ready Preview Jul 27, 2026 2:53pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
cosmos Ignored Ignored Jul 27, 2026 2:53pm

Request Review

@coderabbitai

coderabbitai Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: df0e33b1-0ec1-40e0-8954-8afc799277fc

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch solana/web-3

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 16, 2026

Copy link
Copy Markdown

Deploying swap-dev with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3705588
Status: ✅  Deploy successful!
Preview URL: https://e5d7c150.swap-dev-5u6.pages.dev
Branch Preview URL: https://solana-web-3.swap-dev-5u6.pages.dev

View logs

@vercel
vercel Bot temporarily deployed to Preview – cowfi July 16, 2026 16:21 Inactive
@linear-code

linear-code Bot commented Jul 17, 2026

Copy link
Copy Markdown

FE-318

Base automatically changed from solana/web-2 to develop July 20, 2026 08:24
limitofzero added a commit that referenced this pull request Jul 30, 2026
# Summary

Track and surface **SPL token delegations for Solana** on the account
tokens page (`/#/account/tokens`).

A delegation is the Solana analogue of an EVM allowance: a token account
approves the CoW settlement program (via its settlement-state PDA) to
pull the sell funds at execution time. This PR fetches that delegation
alongside the SPL balance in a single batched read and shows it in the
token table's **Actions** column, mirroring how EVM approvals are
displayed — read-only for now, since there is no manual Solana approve
flow yet.

<img width="917" height="438" alt="image"
src="https://github.com/user-attachments/assets/f8e832f3-fb97-472e-8ce0-620dcc4e274a"
/>

# To Test

set solana flag enabled: localStorage.setItem('IS_SOLANA_ENABLED', '1')

Currently we don't have approve interface for SPL. But you can create a
limit order via [this
demo](https://swap-dev-git-solana-web-3-cowswap-dev.vercel.app/#/1000000001/limit/So11111111111111111111111111111111111111112/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v)
with enabled solana
flag([details](#7860)) and
after this you will see that the source token is approved


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Summary
- **New Features**
- Added Solana token delegation allowance/delegation display in token
lists, including clear “Approved ✓” and “not delegated” states (supports
classic and Token-2022 tokens).
- Token rows now include an on-chain explorer link for token contracts.
- **Bug Fixes**
- Improved Solana balance + delegation loading with unified batched
fetching; EVM allowance fetching is disabled on Solana.
- Allowance state is no longer persisted across sessions to prevent
stale results.
- **Tests**
- Updated and expanded Jest coverage for Solana token-account fetching,
delegation matching, and related mocks.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: cowswap-release-sync[bot] <274575433+cowswap-release-sync[bot]@users.noreply.github.com>
Co-authored-by: Elena <70885163+elena-zh@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants