Skip to content

Asem/v2 112/support solana intents#29

Draft
Asem-Abdelhady wants to merge 13 commits intodevelopfrom
asem/V2-112/support-solana-intents
Draft

Asem/v2 112/support solana intents#29
Asem-Abdelhady wants to merge 13 commits intodevelopfrom
asem/V2-112/support-solana-intents

Conversation

@Asem-Abdelhady
Copy link

Checl please the UI/UX and also the tweaks in the code

Asem-Abdelhady and others added 9 commits March 8, 2026 19:33
- Add solanaAddressToBytes32 / isValidSolanaAddress to intent.ts/ (shared library)
- Point @lifi/intent to local file: reference so latest build is used
- Delete lintent/src/lib/libraries/intent.ts (duplicates @lifi/intent)
- Delete lintent/src/lib/utils/convert.ts (Solana helpers now in @lifi/intent)
- Fix solanaEscrowLib.ts: use dynamic imports for @coral-xyz/anchor / @solana/web3.js
  to avoid CJS/ESM bundling issues, import types from @lifi/intent
- Fix intentFactory.ts: use openSolanaEscrow() directly, import from @lifi/intent
- Fix config.ts: use numeric chainId keys for POLYMER_ORACLE, add Solana constants,
  add solanaDevnet to testnet chainList, fix clientsById type for non-EVM chains
- Fix IssueIntent.svelte: import isValidSolanaAddress from @lifi/intent, fix hasSolanaInput typo
- Fix state.svelte.ts: use chainId-based approach (no token.chain string)
- Fix vite.config.ts: alias @solana/web3.js to CJS browser bundle to resolve borsh compat
- Add @coral-xyz/anchor, @solana/spl-token, @solana/wallet-adapter-* to dependencies

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Asem-Abdelhady Asem-Abdelhady requested a review from reednaa March 10, 2026 13:28
Asem-Abdelhady and others added 4 commits March 11, 2026 11:34
…m to compact lock

EscrowLock and CompactLock in @lifi/intent now require an explicit `chain`
field. Replace the removed `solanaEscrow` lock type with
`{ type: "escrow", chain: "solana" }` and add `chain: "evm"` to all
EVM escrow/compact lock objects.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Introduces solanaMainnet (chain id 1151111081099710) alongside the
existing solanaDevnet. Replaces flat SOLANA_* constants with SOLANA_PROGRAMS
and SOLANA_PDAS records keyed by devnet/mainnet; flat re-exports preserved
for backward compatibility. Mainnet program IDs and PDAs are TODO placeholders.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Replace solanaDevnetConnection/solanaMainnetConnection exports with
  getSolanaConnection(chainId) dispatcher and isSolanaChain(chainId) helper
- Store solana balances keyed by chain ID (number) instead of "solanaDevnet" string
- All callers now use isSolanaChain() / getSolanaConnection() so the code
  works transparently for both devnet and mainnet

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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