Skip to content

Conversation

@chemonoworld
Copy link
Contributor

Summary

  • Activate Sol SDK initialization in demo_web
  • Add Solana address display to address widget
  • Activate Solana offchain/onchain sign widgets

Changes

1. Sol SDK Initialization (sdk.ts, use_oko.ts)

  • Uncomment @oko-wallet/oko-sdk-sol import and types
  • Add oko_sol state to SDKState interface
  • Implement initOkoSol() function
  • Add initOkoSol call in useInitOko hook

2. Address Widget (wallet.ts, address_row.tsx, address_widget.tsx)

  • Add solanaAddress state and fetch logic in useAddresses hook
  • Add "solana" chain type with chainConfig refactoring
  • Add Solana row with SolanaIcon

3. Solana Sign Widgets (preview_panel.tsx, solana_*_sign_widget.tsx)

  • Uncomment SolanaOffchainSignWidget (Ed25519 message signing)
  • Uncomment SolanaOnchainSignWidget (Legacy/V0 transaction signing)
  • Add isSolLazyInitialized check and widget rendering

Test plan

  • Login to demo_web
  • Verify Solana address is displayed in address widget
  • Test Solana offchain sign (message signing)
  • Test Solana onchain sign (devnet transaction)
  • Verify signature uses FROST (Ed25519 MPC) via console logs

🤖 Generated with Claude Code

chemonoworld and others added 3 commits January 19, 2026 18:51
- Uncomment @oko-wallet/oko-sdk-sol import and types
- Add oko_sol state to SDKState interface
- Implement initOkoSol() function with proper error handling
- Add initOkoSol call in useInitOko hook
- Add oko_sol to isInitialized check

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add solanaAddress state and fetch logic in useAddresses hook
- Add "solana" chain type to AddressRowProps
- Refactor AddressRow to use chainConfig for label/prefix mapping
- Add Solana row with SolanaIcon in AddressWidget

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Uncomment SolanaOffchainSignWidget implementation
- Uncomment SolanaOnchainSignWidget with Legacy/V0 transaction support
- Add isSolLazyInitialized to isLazyInitialized check in PreviewPanel
- Import and render Solana sign widgets in PreviewPanel

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

@chemonoworld chemonoworld changed the base branch from main to develop January 19, 2026 09:54
@chihunmanse chihunmanse requested a review from eldenpark January 21, 2026 03:15
@chihunmanse
Copy link
Contributor

@eldenpark Ready for review

promises.push(
(async () => {
try {
// lazyInit에서 이미 connected=true일 수 있음
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no Korean

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no Korean

Removed

} catch (err) {
console.error("Failed to get Solana address:", err);
}
})(),
Copy link
Collaborator

@eldenpark eldenpark Jan 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why immediately invoked fn expression?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why immediately invoked fn expression?

Probably because solana requires connect() before accessing publicKey. Refactored to Promise chaining for consistency. cc. @chemonoworld

Copy link
Collaborator

@eldenpark eldenpark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left comments

@eldenpark eldenpark merged commit 5588a4d into develop Jan 22, 2026
1 of 2 checks passed
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.

4 participants