-
Notifications
You must be signed in to change notification settings - Fork 18
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
add biconomy aa support to eth passkeys example #415
Conversation
New dependencies detected. Learn more about Socket for GitHub ↗︎
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
65e0014
to
b458056
Compare
b458056
to
a9b7690
Compare
@@ -1,5 +1,13 @@ | |||
# @turnkey/with-eth-passkey-signers | |||
|
|||
## 0.2.0 |
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 primarily for tracking on our side. think a changelog would be helpful in keeping track of changes over time
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 -- Just some requests for further context and nits
) => Promise<BiconomySmartAccountV2>, | ||
options?: { nonceOptions?: { nonceKey: number } } | ||
) => { | ||
const { destinationAddress, amount } = data; |
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.
tiny nit: do we want to do any input validation?
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.
we should in a more serious application but will leave it out of this PR for now :)
@@ -28,13 +28,20 @@ $ pnpm install # Install dependencies | |||
$ pnpm run build # Compile source code | |||
``` | |||
|
|||
### 2/ Setting up Turnkey |
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.
Would be great to be more explicit about the two options of how to run this example in the README!!
It looks like we either do an AA based flow or a normal ETH signing flow based on whether or not NEXT_PUBLIC_BICONOMY_BUNDLER_URL
and NEXT_PUBLIC_BICONOMY_PAYMASTER_API_KEY
are set.
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.
Also a quick line on what Biconomy is and what functionality it adds to this example
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 with nits! 🙌
type signMessageFormData = { | ||
messageToSign: string; | ||
}; | ||
|
||
type signTransactionFormData = { |
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: should we capitalize these types?
@@ -366,6 +560,53 @@ export default function Home() { | |||
</form> | |||
</div> | |||
)} | |||
{wallet && ( | |||
<div> | |||
<h2>... and now let's sign a transaction!</h2> |
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.
maybe a little more readable
<h2>... and now let's sign a transaction!</h2> | |
<h2>... and now let{"'"}s sign a transaction!</h2> |
or even
<h2>... and now {"let's"} sign a transaction!</h2>
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.
lfg
Summary & Motivation
$title
see changelog
How I Tested These Changes
Did you add a changeset?
If updating one of our packages, you'll likely need to add a changeset to your PR. To do so, run
pnpm changeset
.pnpm changeset
will generate a file where you should write a human friendly message about the changes. Note how this (example) includes the package name (should be auto added by the command) along with the type of semver change (major.minor.patch) (which you should set).These changes will be used at release time to determine what packages to publish and how to bump their version. For more context see this comment.