Skip to content

Conversation

androbwebb
Copy link
Collaborator

@androbwebb androbwebb commented Aug 11, 2025

Pull Request Checklist

Screenshot 2025-08-29 at 8 48 37 PM

PR-Codex overview

This PR introduces significant changes to the wallet export functionality, transitioning from a boolean return type to a Promise<unknown>, enhancing the export process with improved error handling and support for different export formats.

Detailed summary

  • Added ExportWalletOutput type as boolean.
  • Updated exportWallet methods to return Promise<unknown>.
  • Modified BaseSignerClient to handle different export types and outputs.
  • Enhanced error handling for wallet export operations.
  • Refactored RNSignerClient to support exporting both private keys and seed phrases.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

vercel bot commented Aug 11, 2025

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

Project Deployment Preview Comments Updated (UTC)
aa-sdk-ui-demo Ready Ready Preview Comment Sep 4, 2025 8:02pm

Copy link

github-actions bot commented Aug 11, 2025

🌿 Documentation Preview

Name Status Preview Updated (UTC)
Alchemy Docs ✅ Ready 🔗 Visit Preview Sep 4, 2025, 7:58 PM

@androbwebb androbwebb changed the title feat: export wallet feat: export wallet [WIP, no review needed yet] Aug 11, 2025
@github-actions github-actions bot temporarily deployed to docs-preview August 11, 2025 17:51 Inactive
@github-actions github-actions bot temporarily deployed to docs-preview August 25, 2025 15:01 Inactive
@github-actions github-actions bot temporarily deployed to docs-preview August 25, 2025 17:10 Inactive
@androbwebb androbwebb changed the title feat: export wallet [WIP, no review needed yet] feat: export wallet Aug 29, 2025
@androbwebb androbwebb marked this pull request as ready for review August 29, 2025 11:19
@github-actions github-actions bot temporarily deployed to docs-preview September 4, 2025 00:06 Inactive
@github-actions github-actions bot temporarily deployed to docs-preview September 4, 2025 00:16 Inactive
@github-actions github-actions bot temporarily deployed to docs-preview September 4, 2025 00:24 Inactive
SEED_PHRASE = "SEED_PHRASE",
}

export type ExportWalletParams = {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@florrdv making this type into a simple string (or the enum above) requires a larger refactor in the useWalletExport function too. I just didn't want to get into it

Comment on lines 57 to 60
export enum ExportWalletAs {
PRIVATE_KEY = "PRIVATE_KEY",
SEED_PHRASE = "SEED_PHRASE",
}
Copy link
Contributor

Choose a reason for hiding this comment

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

🌈 can we revert this to not be an enum? no need

import { hashAuthorization } from "viem/utils";

export interface BaseAlchemySignerParams<TClient extends BaseSignerClient> {
export interface BaseAlchemySignerParams<
Copy link
Contributor

Choose a reason for hiding this comment

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

‼️ do we need this here? I think we have default generic values right?

export abstract class BaseAlchemySigner<TClient extends BaseSignerClient>
implements SmartAccountAuthenticator<AuthParams, User, TClient>
export abstract class BaseAlchemySigner<
TClient extends BaseSignerClient<any, any>,
Copy link
Contributor

Choose a reason for hiding this comment

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

same here, any any

@github-actions github-actions bot temporarily deployed to docs-preview September 4, 2025 08:39 Inactive
@github-actions github-actions bot temporarily deployed to docs-preview September 4, 2025 08:46 Inactive
florrdv
florrdv previously approved these changes Sep 4, 2025
@github-actions github-actions bot temporarily deployed to docs-preview September 4, 2025 19:57 Inactive
@androbwebb androbwebb merged commit bc856e1 into main Sep 4, 2025
10 checks passed
@androbwebb androbwebb deleted the webb/rn-export branch September 4, 2025 20:12
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