-
Notifications
You must be signed in to change notification settings - Fork 197
feat: export wallet #1858
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
feat: export wallet #1858
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🌿 Documentation Preview
|
cd79e2c
to
70b038a
Compare
SEED_PHRASE = "SEED_PHRASE", | ||
} | ||
|
||
export type ExportWalletParams = { |
There was a problem hiding this comment.
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
account-kit/rn-signer/src/client.ts
Outdated
export enum ExportWalletAs { | ||
PRIVATE_KEY = "PRIVATE_KEY", | ||
SEED_PHRASE = "SEED_PHRASE", | ||
} |
There was a problem hiding this comment.
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
account-kit/signer/src/base.ts
Outdated
import { hashAuthorization } from "viem/utils"; | ||
|
||
export interface BaseAlchemySignerParams<TClient extends BaseSignerClient> { | ||
export interface BaseAlchemySignerParams< |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
account-kit/signer/src/base.ts
Outdated
export abstract class BaseAlchemySigner<TClient extends BaseSignerClient> | ||
implements SmartAccountAuthenticator<AuthParams, User, TClient> | ||
export abstract class BaseAlchemySigner< | ||
TClient extends BaseSignerClient<any, any>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here, any any
Pull Request Checklist
yarn test
)site
folder, and guidelines for updating/adding docs can be found in the contribution guide)feat!: breaking change
)yarn lint:check
) and fix any issues? (yarn lint:write
)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
ExportWalletOutput
type asboolean
.exportWallet
methods to returnPromise<unknown>
.BaseSignerClient
to handle different export types and outputs.RNSignerClient
to support exporting both private keys and seed phrases.