Skip to content
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

Merged
merged 5 commits into from
Nov 6, 2024

Conversation

andrewkmin
Copy link
Collaborator

@andrewkmin andrewkmin commented Nov 3, 2024

Summary & Motivation

$title

see changelog

How I Tested These Changes

  • Local

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.

Copy link

socket-security bot commented Nov 3, 2024

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@biconomy/account@4.6.3 environment, network +35 47.2 MB joepegler
npm/ethers@6.13.4 Transitive: environment, network +6 16.4 MB ricmoo

View full report↗︎

Copy link

codesandbox-ci bot commented Nov 3, 2024

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.

@andrewkmin andrewkmin force-pushed the andrew/aa-passkeys-galore branch 3 times, most recently from 65e0014 to b458056 Compare November 3, 2024 22:56
@andrewkmin andrewkmin force-pushed the andrew/aa-passkeys-galore branch from b458056 to a9b7690 Compare November 3, 2024 22:57
@@ -1,5 +1,13 @@
# @turnkey/with-eth-passkey-signers

## 0.2.0
Copy link
Collaborator Author

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

Copy link
Contributor

@omkarshanbhag omkarshanbhag left a 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;
Copy link
Contributor

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?

Copy link
Collaborator Author

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
Copy link
Contributor

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.

Copy link
Contributor

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

Copy link
Collaborator

@taylorjdawson taylorjdawson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with nits! 🙌

Comment on lines +26 to +30
type signMessageFormData = {
messageToSign: string;
};

type signTransactionFormData = {
Copy link
Collaborator

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&apos;s sign a transaction!</h2>
Copy link
Collaborator

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

Suggested change
<h2>... and now let&apos;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>

Copy link
Contributor

@omkarshanbhag omkarshanbhag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lfg

@andrewkmin andrewkmin merged commit ed92c90 into main Nov 6, 2024
5 checks passed
@andrewkmin andrewkmin deleted the andrew/aa-passkeys-galore branch November 6, 2024 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants