-
Notifications
You must be signed in to change notification settings - Fork 0
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: initialize new package for signers #1
base: development
Are you sure you want to change the base?
feat: initialize new package for signers #1
Conversation
Current dependencies on/for this PR:
This stack of pull requests is managed by Graphite. |
Updated dependencies detected. Learn more about Socket for GitHub ↗︎
|
any reason not to just do this directly in the aa-sdk? we could even have a branch called |
packages/signers/src/types.ts
Outdated
|
||
export interface User<UserDetails> { | ||
id: string; | ||
details: UserDetails; |
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.
let's drop this
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.
id + details, or just details?
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 details, since we have a getDetails
method
packages/signers/src/types.ts
Outdated
@@ -0,0 +1,26 @@ | |||
import type { Hash, Hex, SignTypedDataParameters } from "viem"; | |||
|
|||
export interface SmartAccountSigner<Inner, AuthParams, UserDetails> { |
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 wonder if this should live in aa-core
still. if this is here, then devs will ALWAYS need to install aa-signers which shouldn't be a requirement if devs want to bring their own in the end
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.
hmm good point. that makes sense.
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 actually more in line with how we did accounts
chatted live yesterday in sync: https://alchemyinsights.slack.com/archives/C04RHSDSP9U/p1699297061008119?thread_ts=1699074100.738799&cid=C04RHSDSP9U tl;dr: this is a breaking change and requires 3rd party contributions. ideally this all gets in before merging to development. as we build out with turnkey/magic/lit, we don't want to hint to the other signers that we're partnering with them by having their impls in first. that said, we could just merge in our own impls using the docs and then reach out to signers after to tweak. is that what you mean? |
Yea that's fine if we don't want to merge it into the |
Is the notion of User ”ALWAYS” relevant for signer? Then what about Local signers, Wallet Signers? I think we should align on the goal of having a separate aa-signer package. In my opinion, it should be:
|
agreed, it's not. as I've been playing with integrating magic, I've realized this. let's discuss tomorrow. right now I have something like this in aa-core/signer/types.ts to account for distinction between AuthSigner and Signer:
|
Pull Request Checklist
yarn test
)site
folder, see guidleines below)feat!: breaking change
)yarn lint:check
) and fix any issues? (yarn lint:fix
)development
and notmain
?