-
Notifications
You must be signed in to change notification settings - Fork 170
feat: add initial smart wallet client actions #1648
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
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
How to use the Graphite Merge QueueAdd the label graphite-merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
5ba93d5
to
5a87789
Compare
}, | ||
// TODO: we can probably do away with some of the if-else logic here and just convert the params to creation hints | ||
// and pass them to the client | ||
return smartWalletClient |
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.
This is probably the most beneficial place to add support for wallet apis because it means accounts will be index correctly. everything downstream will the touch this flow which is what we want
6ae679e
to
03078f3
Compare
TAccount extends JsonRpcAccount<Address> | undefined = | ||
| JsonRpcAccount<Address> | ||
| undefined, | ||
> = { mode?: "local" | "remote" } & (IsUndefined<TAccount> extends true |
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.
actually, we should move the mode into the config
rather than here
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.
i do this in a later pr
account-kit/core/src/experimental/actions/getSmartWalletClient.ts
Outdated
Show resolved
Hide resolved
03078f3
to
126aa8a
Compare
126aa8a
to
895fe14
Compare
895fe14
to
85be9fa
Compare
🌿 Documentation Preview
|
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 an experimental namespace for actions utilizing Wallet APIs and adds a
SignerNotConnectedError
class. It enhances the state management for smart wallet clients and updates the configuration and account creation processes to integrate with the new smart wallet functionality.Detailed summary
# Experimental
section inREADME.md
.SignerNotConnectedError
class inerrors.ts
.index.ts
to export new actions for smart wallet clients.store.ts
andtypes.ts
to managesmartWalletClients
state.package.json
for wallet-client dependencies.watchSmartWalletClient
action inwatchSmartWalletClient.ts
.createConfig
to includeaccountCreationHint
.useSmartWalletClient
hook inhooks/useSmartWalletClient.ts
.getSmartWalletClient
to handle connection checks and state management.createAccount.ts
to utilize smart wallet client.