Skip to content

Solana initial implementation, resolves FRONT-896#82

Open
yasha-meursault wants to merge 7 commits intomain-v2from
dev-solana
Open

Solana initial implementation, resolves FRONT-896#82
yasha-meursault wants to merge 7 commits intomain-v2from
dev-solana

Conversation

@yasha-meursault
Copy link
Contributor

feat: add Solana blockchain support with HTLC client and wallet integration

  • Implemented SolanaHTLCClient and registration functions in index.ts
  • Created login module for Solana wallet signing
  • Added transaction builder for user lock transactions
  • Defined types for Solana signer and HTLC client configuration
  • Introduced utility function for converting secrets to buffers
  • Configured TypeScript settings for the Solana package
  • Updated pnpm lockfile to include Solana dependencies

…ration

- Implemented SolanaHTLCClient and registration functions in index.ts
- Created login module for Solana wallet signing
- Added transaction builder for user lock transactions
- Defined types for Solana signer and HTLC client configuration
- Introduced utility function for converting secrets to buffers
- Configured TypeScript settings for the Solana package
- Updated pnpm lockfile to include Solana dependencies
@vercel
Copy link

vercel bot commented Mar 5, 2026

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

Project Deployment Actions Updated (UTC)
trainapp-monorepo Ready Ready Preview, Comment Mar 6, 2026 4:58pm

Request Review

…transaction handling with instruction-based approach
…HTLC client

- Use provider.name (not provider.id) for InternalConnector.providerName,
  AccountIdentity.providerName, and all downstream comparisons across
  useConnectors, ConnectorsList, evmConnectorsContext,
  MultichainConnectorPicker, swapAccounts, and AddressPicker

- Surface e.message in UserLockAction error handler (was silently dropping
  errors when only e.name='Error' was present)

- Replace Solana _getSolverLockDetails unbounded loop with
  getSolverLockCount-bounded loop, matching EVM/Starknet pattern

- Remove single-tick setTimeout hack in walletLoginContext Solana path;
  check connected state explicitly instead

- Validate amount string in toBaseUnits before constructing BN

- Fix useHTLCWriteClient to pass resolved rpcUrl to Solana client instead
  of solanaConnection.rpcEndpoint (respects user RPC overrides)

- Eliminate duplicate AnchorProvider construction in _getSolverLockDetails
  by routing through buildProgram with connection override

- Add unit tests for SolanaHTLCClient.getUserLockDetails and refund
  (13 cases covering active lock, closed account log parsing, SOL/token
  paths, missing signer, confirmation errors)
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