Skip to content

feat: add sol signature support #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

avneesh0612
Copy link

@avneesh0612 avneesh0612 commented Apr 9, 2025

Added Solana signature support

additional minor changes:

  • optimize the images
  • improve the test coverage

*Total -- 473.07kb -> 315.28kb (33.35%)

/docs/images/xcode-components.png -- 228.37kb -> 129.15kb (43.45%)
/docs/images/open-xcode-settings.png -- 243.27kb -> 184.76kb (24.05%)
/assets/favicon.png -- 1.43kb -> 1.38kb (3.82%)

Signed-off-by: ImgBotApp <[email protected]>
Co-authored-by: ImgBotApp <[email protected]>
@avneesh0612 avneesh0612 requested a review from Copilot May 1, 2025 08:30
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for Solana signature functionality alongside existing extensions.

  • Extended the client initialization to include the SolanaExtension.
  • Added Solana message signing support in the DisplayAuthenticatedUserView along with updates to the UI.
  • Updated test mocks and app configurations to integrate the Solana extension.

Reviewed Changes

Copilot reviewed 12 out of 13 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/client.ts Added import and extension chaining for SolanaExtension.
src/LoginView/LoginView.tsx Removed unused background style and updated container style.
src/DisplayAuthenticatedUserView/DisplayAuthenticatedUserView.tsx Added EVM and Solana message signing functions and adjusted wallet UI.
jest-setup.ts Added and updated mocks to include solana-extension.
tests/client.spec.ts Updated tests to check for the new solana extension.
App.tsx Configured Buffer and TextEncoder for React Native support.
Files not reviewed (1)
  • package.json: Language not supported
Comments suppressed due to low confidence (1)

src/DisplayAuthenticatedUserView/DisplayAuthenticatedUserView.tsx:50

  • [nitpick] Consider defining constants or enums for wallet chain values (e.g., 'EVM', 'SOL') instead of using hard-coded string literals to reduce potential errors and improve maintainability.
<Text>Wallet address: {wallet.address}</Text>

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.

2 participants