-
Notifications
You must be signed in to change notification settings - Fork 520
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
Introduce connectAndSignIn #908
Conversation
8fef882
to
7b47c70
Compare
RequestEthereumAccountsBaseParams & { | ||
domain: string; | ||
aud: string; | ||
version: string; | ||
type: string; | ||
nonce: string; | ||
iat: string; | ||
chainId: string; | ||
statement?: string; | ||
resources?: string[]; |
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.
it includes RequestEthereumAccountsBaseParams
export type ConnectAndSignInResponse = BaseWeb3Response<{ | ||
addresses: AddressString[]; | ||
message: string; | ||
signature: HexString; | ||
}>; | ||
|
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.
open to suggestions
@@ -858,6 +860,31 @@ export class WalletLinkRelay extends WalletSDKRelayAbstract { | |||
} | |||
} | |||
|
|||
// WIP |
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.
having it private for now.
will be exposed as public once it's done.
// WIP | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
// @ts-ignore | ||
private connectAndSignIn(_params: { |
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.
nit: _params
to params
* Introduce connectAndSignIn * simpler * linter
Summary
How did you test your changes?