-
Notifications
You must be signed in to change notification settings - Fork 125
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: add capsule to aa-signers #305
Conversation
Current dependencies on/for this PR:
This stack of pull requests is managed by Graphite. |
5215c45
to
805c410
Compare
import type { Environment } from "@usecapsule/web-sdk"; | ||
import type { WalletClientConfig } from "viem"; | ||
|
||
// copied since Capsule doesn't export this type |
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.
@nityas is there a way for Capsule to export these types from the capsule sdk so we don't have to re-write them 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.
you could do something like Params<typeof Capsule.prototype.constructor>
or w/e class you need the constructor params of
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'll export these types in the new version as well
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.
LGTM weird about those type issues though :/
a540b82
to
cb6ddd1
Compare
805c410
to
42bbb8d
Compare
cb6ddd1
to
d6c462d
Compare
42bbb8d
to
fa6d3f6
Compare
import type { Environment } from "@usecapsule/web-sdk"; | ||
import type { WalletClientConfig } from "viem"; | ||
|
||
// copied since Capsule doesn't export this type |
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'll export these types in the new version as well
d6c462d
to
cc37ab8
Compare
fa6d3f6
to
c0a9808
Compare
cc37ab8
to
194682e
Compare
3697353
to
a0a3668
Compare
a0a3668
to
f53c7f2
Compare
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.
Just 2 comments. The main one is about authenticating a user
0e7efcc
to
33b1cb5
Compare
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.
approved
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 adds the
CapsuleSigner
to theaa-signers
package. Notable changes include:CapsuleSigner
and related types frompackages/signers/src/capsule/index.ts
getAddress
,signMessage
,getAuthDetails
, andauthenticate
methods ofCapsuleSigner
createCapsuleSigner
function insite/snippets/capsule.ts
to include authentication