Skip to content

Asem/v2 115/evm to solana#34

Draft
Asem-Abdelhady wants to merge 9 commits intoasem/V2-114/fill-solana-ordersfrom
asem/V2-115/evm-to-solana
Draft

Asem/v2 115/evm to solana#34
Asem-Abdelhady wants to merge 9 commits intoasem/V2-114/fill-solana-ordersfrom
asem/V2-115/evm-to-solana

Conversation

@Asem-Abdelhady
Copy link
Copy Markdown

@Asem-Abdelhady Asem-Abdelhady commented Mar 14, 2026

No description provided.

@Asem-Abdelhady Asem-Abdelhady force-pushed the asem/V2-114/fill-solana-orders branch from a872537 to d4a7dad Compare March 16, 2026 23:54
@Asem-Abdelhady Asem-Abdelhady force-pushed the asem/V2-115/evm-to-solana branch from b950725 to 8d857fe Compare March 18, 2026 00:38
Asem-Abdelhady and others added 9 commits April 1, 2026 14:12
- flowProgress, Finalise, ReceiveMessage: replace solanaDevnetConnection
  and SOLANA_DEVNET_CHAIN_ID with getSolanaConnection(chainId) / isSolanaChain()
- solanaValidateLib: revert borsh BinaryWriter (CJS-only, not ESM-compatible
  in Vite); use Buffer.writeBigUInt64LE directly instead

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…-session error

Immediately after the EVM fill, the Polymer prover on Solana may not yet
have finalised the proof even though the API returns status "complete".
Phantom simulates the transaction internally before (or after) the user
confirms; if simulation fails it surfaces a generic "Unexpected error"
that only goes away after a page refresh (which adds the delay needed for
finalisation).

Fix: simulate the oracle_polymer.receive() transaction via the Solana RPC
with sigVerify=false before opening the Phantom dialog. If simulation fails
we retry with exponential back-off (0 / 10 / 20 / 40 / 60 s) and only
show Phantom once the transaction is confirmed to succeed on-chain.

Also: merge V2-114 finaliseSolanaEscrow / deriveOrderContextPda additions
into flowProgress.ts and Finalise.svelte so both branches stay in sync.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Asem-Abdelhady Asem-Abdelhady force-pushed the asem/V2-114/fill-solana-orders branch from d4a7dad to a23c52e Compare April 1, 2026 12:37
@Asem-Abdelhady Asem-Abdelhady force-pushed the asem/V2-115/evm-to-solana branch from 8d857fe to b628915 Compare April 1, 2026 12:37
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.

1 participant