Skip to content

feat: add erc20 sponsorship card #1631

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

Merged
merged 30 commits into from
Jun 3, 2025
Merged

Conversation

blakecduncan
Copy link
Collaborator

@blakecduncan blakecduncan commented May 20, 2025

Pull Request Checklist


PR-Codex overview

This PR introduces a new Erc20Modal for handling ERC20 token minting and sponsorship, enhances existing components, and adds utility functions for gas estimation and user operations. It also updates dependencies and constants related to USDC addresses.

Detailed summary

  • Added Erc20Modal component for ERC20 minting.
  • Exported Erc20Modal and MFAModal from respective files.
  • Introduced constants for USDC addresses.
  • Enhanced MintCard and Badge components with additional props.
  • Updated Dialog component to support full width.
  • Added hooks for reading ERC20 balance and minting.
  • Implemented user operation sponsorship for ERC20.
  • Created utility functions for NFT minting and gas estimation.
  • Updated package dependencies to newer versions.

The following files were skipped due to too many changes: examples/ui-demo/contracts/broadcast/DeployNFTUSDCMintable.s.sol/421614/run-1747861796.json, examples/ui-demo/contracts/broadcast/DeployNFTUSDCMintable.s.sol/84532/run-1747861828.json, yarn.lock

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

vercel bot commented May 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
aa-sdk-ui-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 3, 2025 1:18pm

Copy link

graphite-app bot commented May 20, 2025

How to use the Graphite Merge Queue

Add the label graphite-merge-queue to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@blakecduncan blakecduncan changed the title Blake/erc20 sponsorship card feat: add erc20 sponsorship card May 20, 2025
Copy link

github-actions bot commented May 20, 2025

🌿 Documentation Preview

Name Status Preview Updated (UTC)
Alchemy Docs ✅ Ready 🔗 Visit Preview Jun 3, 2025, 1:12 PM

@github-actions github-actions bot temporarily deployed to docs-preview May 20, 2025 15:41 Inactive
@github-actions github-actions bot temporarily deployed to docs-preview May 20, 2025 16:45 Inactive
@github-actions github-actions bot temporarily deployed to docs-preview May 20, 2025 16:55 Inactive
@github-actions github-actions bot temporarily deployed to docs-preview June 2, 2025 14:58 Inactive
@github-actions github-actions bot temporarily deployed to docs-preview June 2, 2025 14:58 Inactive
: "#CBD5E1";

return (
<Dialog isOpen={isOpen} onClose={handleClose}>

This comment was marked as resolved.

This comment was marked as resolved.

This comment was marked as resolved.

} else if (buyNftButtonEnabled) {
bagIconColor = "white";
}
let bagIconColor = mintNftTxHash

This comment was marked as resolved.

This comment was marked as resolved.

@@ -47,7 +47,8 @@ export function Erc20Modal({
const { data: ethPriceData, isLoading: isLoadingEthPrice } = useGetEthPrice();

const chain = accountMode === "7702" ? baseSepolia : arbitrumSepolia;
const rpcUrl = chain.rpcUrls.default.http[0];
const rpcUrl =
chain.rpcUrls.alchemy?.http?.[0] ?? chain.rpcUrls.default.http[0];

This comment was marked as resolved.

@github-actions github-actions bot had a problem deploying to docs-preview June 2, 2025 20:43 Failure
@jakehobbs jakehobbs self-requested a review June 2, 2025 21:19
jakehobbs
jakehobbs previously approved these changes Jun 2, 2025
@github-actions github-actions bot had a problem deploying to docs-preview June 2, 2025 21:24 Failure
@jakehobbs jakehobbs self-requested a review June 2, 2025 21:43
@github-actions github-actions bot temporarily deployed to docs-preview June 3, 2025 02:07 Inactive
@github-actions github-actions bot temporarily deployed to docs-preview June 3, 2025 13:11 Inactive
@blakecduncan blakecduncan merged commit a827c70 into main Jun 3, 2025
10 checks passed
@blakecduncan blakecduncan deleted the blake/erc20-sponsorship-card branch June 3, 2025 13:42
linnall added a commit that referenced this pull request Jun 6, 2025
…ner (#1663)

* fix: run api spec generate as part of aa-sdk deploy (#1654)

* fix: run api spec generate as part of aa-sdk deploy

* ci: create aa-sdk copy of setup-pnpm composite action

* ci: remove unnecessary install node in pnpm composite action

* ci: try installing pnpm with exact action version

* ci: test with pnpm moved out of its own composite

* ci: fuck you install pnpm

* ci: ??????

* revert: install pnpm in its own setup composite

* ci: specify package.json for pnpm

---------

Co-authored-by: dslovinsky <[email protected]>

* feat(rn-signer): support passkeys in React Native (#1653)

* chore(release): publish v4.37.0 [skip-ci]

* feat: add erc20 sponsorship card (#1631)

* fix: remove trailing slash from alchemy rpc url (#1657)

* chore(release): publish v4.38.0 [skip-ci]

* fix: update copy (#1658)

* feat: add alchemy_requestPaymasterTokenQuote to aa-sdk (#1659)

* feat: add alchemy_requestPaymasterTokenQuote to aa-sdk

* fix: typo

* chore(release): publish v4.39.0 [skip-ci]

* feat: enables installValidation to take a Modular Account with no signer

* fix: test thank you howy

* test: update the rundler version we use in prool (#1646)

* chore: experimenting with types (#1665)

* chore: modifies types

---------

Co-authored-by: Daniel Slovinsky <[email protected]>
Co-authored-by: dslovinsky <[email protected]>
Co-authored-by: David Philipson <[email protected]>
Co-authored-by: Alchemy Bot <[email protected]>
Co-authored-by: Blake Duncan <[email protected]>
Co-authored-by: jakehobbs <[email protected]>
Co-authored-by: Andy <[email protected]>
Co-authored-by: Michael Moldoveanu <[email protected]>
Co-authored-by: howy <[email protected]>
linnall added a commit that referenced this pull request Jun 6, 2025
…ner (#1663)

* fix: run api spec generate as part of aa-sdk deploy (#1654)

* fix: run api spec generate as part of aa-sdk deploy

* ci: create aa-sdk copy of setup-pnpm composite action

* ci: remove unnecessary install node in pnpm composite action

* ci: try installing pnpm with exact action version

* ci: test with pnpm moved out of its own composite

* ci: fuck you install pnpm

* ci: ??????

* revert: install pnpm in its own setup composite

* ci: specify package.json for pnpm

---------

Co-authored-by: dslovinsky <[email protected]>

* feat(rn-signer): support passkeys in React Native (#1653)

* chore(release): publish v4.37.0 [skip-ci]

* feat: add erc20 sponsorship card (#1631)

* fix: remove trailing slash from alchemy rpc url (#1657)

* chore(release): publish v4.38.0 [skip-ci]

* fix: update copy (#1658)

* feat: add alchemy_requestPaymasterTokenQuote to aa-sdk (#1659)

* feat: add alchemy_requestPaymasterTokenQuote to aa-sdk

* fix: typo

* chore(release): publish v4.39.0 [skip-ci]

* feat: enables installValidation to take a Modular Account with no signer

* fix: test thank you howy

* test: update the rundler version we use in prool (#1646)

* chore: experimenting with types (#1665)

* chore: modifies types

---------

Co-authored-by: Daniel Slovinsky <[email protected]>
Co-authored-by: dslovinsky <[email protected]>
Co-authored-by: David Philipson <[email protected]>
Co-authored-by: Alchemy Bot <[email protected]>
Co-authored-by: Blake Duncan <[email protected]>
Co-authored-by: jakehobbs <[email protected]>
Co-authored-by: Andy <[email protected]>
Co-authored-by: Michael Moldoveanu <[email protected]>
Co-authored-by: howy <[email protected]>
linnall added a commit that referenced this pull request Jun 24, 2025
* chore: adds wip of webauthn client tests

* chore: updates webauthn test to use mocked window.credentials.get response

* chore: adds credential and mock response from self generated credential on try-webauthn.appspot.com

* fix: rename webAuthnCredentials to webAuthnAccountParams

* chore: adds to do

* feat: add ability to create a webauthn ModularAccountV2 without a signer

* chore: removes unused code

* fix: ensures presence of signer is explicit

* fix: refactor to not destructure

* feat: adds account functions for webauthn

* feat: add webauthn gas estimator

* chore: fix lint, change to use type narrowing instead

* feat: add webauthn signer

* chore: update dummy sig

* feat: modifies mav2 smart account client and mav2 client tests to work together

* fix: add documenting comment for webauthn gas estimator usage

* fix: adds documentation comment for webauthnGasEstimator usage

* chore: wip deploy webauthn account then sign message

* fix: prepend signatures with 0xff

* fix: prepend signature regardless of deferred actions data presence

* chore: wip debugging

* fix: debug

* chore: adds updated mock authenticator response

* fix: prefixes signature with offset

* chore: update credentials and mocked authenticator response

* chore: updates credentials and authenticator response

* chore: fix merge issues with main

* test: update tests using mock webauthn device (#1639)

* chore: wip format message to be EIP-712 and add lint fixes

* fix: inline documentation

Co-authored-by: Michael Moldoveanu <[email protected]>

* chore: removes debugging statements and linting fixes

* chore: rename types

* fix: refactor

* chore: remove debug statement

Co-authored-by: Michael Moldoveanu <[email protected]>

* fix: update return type

Co-authored-by: Michael Moldoveanu <[email protected]>

* fix: adds strongly typed errors

* chore: removes debug statements

* fix: fixes example in docs

* chore: add todo comment, removes debug statement

* chore: remove lint warnings

* refactor: encode sign parameters as a struct

* feat: enables installValidation to take a Modular Account with no signer (#1663)

* fix: run api spec generate as part of aa-sdk deploy (#1654)

* fix: run api spec generate as part of aa-sdk deploy

* ci: create aa-sdk copy of setup-pnpm composite action

* ci: remove unnecessary install node in pnpm composite action

* ci: try installing pnpm with exact action version

* ci: test with pnpm moved out of its own composite

* ci: fuck you install pnpm

* ci: ??????

* revert: install pnpm in its own setup composite

* ci: specify package.json for pnpm

---------

Co-authored-by: dslovinsky <[email protected]>

* feat(rn-signer): support passkeys in React Native (#1653)

* chore(release): publish v4.37.0 [skip-ci]

* feat: add erc20 sponsorship card (#1631)

* fix: remove trailing slash from alchemy rpc url (#1657)

* chore(release): publish v4.38.0 [skip-ci]

* fix: update copy (#1658)

* feat: add alchemy_requestPaymasterTokenQuote to aa-sdk (#1659)

* feat: add alchemy_requestPaymasterTokenQuote to aa-sdk

* fix: typo

* chore(release): publish v4.39.0 [skip-ci]

* feat: enables installValidation to take a Modular Account with no signer

* fix: test thank you howy

* test: update the rundler version we use in prool (#1646)

* chore: experimenting with types (#1665)

* chore: modifies types

---------

Co-authored-by: Daniel Slovinsky <[email protected]>
Co-authored-by: dslovinsky <[email protected]>
Co-authored-by: David Philipson <[email protected]>
Co-authored-by: Alchemy Bot <[email protected]>
Co-authored-by: Blake Duncan <[email protected]>
Co-authored-by: jakehobbs <[email protected]>
Co-authored-by: Andy <[email protected]>
Co-authored-by: Michael Moldoveanu <[email protected]>
Co-authored-by: howy <[email protected]>

* chore: lint

* feat: export WebAuthnValidationModule

* fix: typing for install validation decorator

* fix: typing on creation of clients to support alchemy configs

* fix: updates tests to retry transaction, updates hook with new InstallValidation params

* chore: removes unused import

* fix: uses session key provider

* fix: narrow account type to a modular account v2

* chore: adds wip of webauthn client tests

* chore: updates webauthn test to use mocked window.credentials.get response

* chore: adds credential and mock response from self generated credential on try-webauthn.appspot.com

* fix: rename webAuthnCredentials to webAuthnAccountParams

* chore: adds to do

* feat: add ability to create a webauthn ModularAccountV2 without a signer

* chore: removes unused code

* fix: ensures presence of signer is explicit

* fix: refactor to not destructure

* feat: adds account functions for webauthn

* feat: add webauthn gas estimator

* chore: fix lint, change to use type narrowing instead

* feat: add webauthn signer

* chore: update dummy sig

* feat: modifies mav2 smart account client and mav2 client tests to work together

* fix: add documenting comment for webauthn gas estimator usage

* fix: adds documentation comment for webauthnGasEstimator usage

* chore: wip deploy webauthn account then sign message

* fix: prepend signatures with 0xff

* fix: prepend signature regardless of deferred actions data presence

* chore: wip debugging

* fix: debug

* chore: adds updated mock authenticator response

* fix: prefixes signature with offset

* chore: update credentials and mocked authenticator response

* chore: updates credentials and authenticator response

* chore: fix merge issues with main

* test: update tests using mock webauthn device (#1639)

* chore: wip format message to be EIP-712 and add lint fixes

* fix: inline documentation

Co-authored-by: Michael Moldoveanu <[email protected]>

* chore: removes debugging statements and linting fixes

* chore: rename types

* fix: refactor

* chore: remove debug statement

Co-authored-by: Michael Moldoveanu <[email protected]>

* fix: update return type

Co-authored-by: Michael Moldoveanu <[email protected]>

* fix: adds strongly typed errors

* chore: removes debug statements

* fix: fixes example in docs

* chore: add todo comment, removes debug statement

* chore: remove lint warnings

* refactor: encode sign parameters as a struct

* feat: export WebAuthnValidationModule

* fix: typing on creation of clients to support alchemy configs

* fix: cleans up tests

* chore: removes unused import

* fix: webauthn session key test

* fix: removes duplicate identifier

* fix: remove unnecessary arg

* chore: removes to do comment

* chore: removes unnecessary account type check

* chore: updates yarn.lock and docs.yml

* fix: add back necessary account type checks

* fix: restore yarn.lock file

* fix: adds more granular errors

* chore: updates error docs

* fix: refactor

---------

Co-authored-by: howydev <[email protected]>
Co-authored-by: Michael Moldoveanu <[email protected]>
Co-authored-by: Daniel Slovinsky <[email protected]>
Co-authored-by: dslovinsky <[email protected]>
Co-authored-by: David Philipson <[email protected]>
Co-authored-by: Alchemy Bot <[email protected]>
Co-authored-by: Blake Duncan <[email protected]>
Co-authored-by: jakehobbs <[email protected]>
Co-authored-by: Andy <[email protected]>
moldy530 added a commit that referenced this pull request Jun 26, 2025
* chore: adds wip of webauthn client tests

* chore: updates webauthn test to use mocked window.credentials.get response

* chore: adds credential and mock response from self generated credential on try-webauthn.appspot.com

* fix: rename webAuthnCredentials to webAuthnAccountParams

* chore: adds to do

* feat: add ability to create a webauthn ModularAccountV2 without a signer

* chore: removes unused code

* fix: ensures presence of signer is explicit

* fix: refactor to not destructure

* feat: adds account functions for webauthn

* feat: add webauthn gas estimator

* chore: fix lint, change to use type narrowing instead

* feat: add webauthn signer

* chore: update dummy sig

* feat: modifies mav2 smart account client and mav2 client tests to work together

* fix: add documenting comment for webauthn gas estimator usage

* fix: adds documentation comment for webauthnGasEstimator usage

* chore: wip deploy webauthn account then sign message

* fix: prepend signatures with 0xff

* fix: prepend signature regardless of deferred actions data presence

* chore: wip debugging

* fix: debug

* chore: adds updated mock authenticator response

* fix: prefixes signature with offset

* chore: update credentials and mocked authenticator response

* chore: updates credentials and authenticator response

* chore: fix merge issues with main

* test: update tests using mock webauthn device (#1639)

* chore: wip format message to be EIP-712 and add lint fixes

* fix: inline documentation

Co-authored-by: Michael Moldoveanu <[email protected]>

* chore: removes debugging statements and linting fixes

* chore: rename types

* fix: refactor

* chore: remove debug statement

Co-authored-by: Michael Moldoveanu <[email protected]>

* fix: update return type

Co-authored-by: Michael Moldoveanu <[email protected]>

* fix: adds strongly typed errors

* chore: removes debug statements

* fix: fixes example in docs

* chore: add todo comment, removes debug statement

* chore: remove lint warnings

* refactor: encode sign parameters as a struct

* feat: enables installValidation to take a Modular Account with no signer (#1663)

* fix: run api spec generate as part of aa-sdk deploy (#1654)

* fix: run api spec generate as part of aa-sdk deploy

* ci: create aa-sdk copy of setup-pnpm composite action

* ci: remove unnecessary install node in pnpm composite action

* ci: try installing pnpm with exact action version

* ci: test with pnpm moved out of its own composite

* ci: fuck you install pnpm

* ci: ??????

* revert: install pnpm in its own setup composite

* ci: specify package.json for pnpm

---------

Co-authored-by: dslovinsky <[email protected]>

* feat(rn-signer): support passkeys in React Native (#1653)

* chore(release): publish v4.37.0 [skip-ci]

* feat: add erc20 sponsorship card (#1631)

* fix: remove trailing slash from alchemy rpc url (#1657)

* chore(release): publish v4.38.0 [skip-ci]

* fix: update copy (#1658)

* feat: add alchemy_requestPaymasterTokenQuote to aa-sdk (#1659)

* feat: add alchemy_requestPaymasterTokenQuote to aa-sdk

* fix: typo

* chore(release): publish v4.39.0 [skip-ci]

* feat: enables installValidation to take a Modular Account with no signer

* fix: test thank you howy

* test: update the rundler version we use in prool (#1646)

* chore: experimenting with types (#1665)

* chore: modifies types

---------

Co-authored-by: Daniel Slovinsky <[email protected]>
Co-authored-by: dslovinsky <[email protected]>
Co-authored-by: David Philipson <[email protected]>
Co-authored-by: Alchemy Bot <[email protected]>
Co-authored-by: Blake Duncan <[email protected]>
Co-authored-by: jakehobbs <[email protected]>
Co-authored-by: Andy <[email protected]>
Co-authored-by: Michael Moldoveanu <[email protected]>
Co-authored-by: howy <[email protected]>

* chore: lint

* feat: export WebAuthnValidationModule

* fix: typing for install validation decorator

* fix: typing on creation of clients to support alchemy configs

* fix: updates tests to retry transaction, updates hook with new InstallValidation params

* chore: removes unused import

* fix: uses session key provider

* fix: narrow account type to a modular account v2

* chore: adds wip of webauthn client tests

* chore: updates webauthn test to use mocked window.credentials.get response

* chore: adds credential and mock response from self generated credential on try-webauthn.appspot.com

* fix: rename webAuthnCredentials to webAuthnAccountParams

* chore: adds to do

* feat: add ability to create a webauthn ModularAccountV2 without a signer

* chore: removes unused code

* fix: ensures presence of signer is explicit

* fix: refactor to not destructure

* feat: adds account functions for webauthn

* feat: add webauthn gas estimator

* chore: fix lint, change to use type narrowing instead

* feat: add webauthn signer

* chore: update dummy sig

* feat: modifies mav2 smart account client and mav2 client tests to work together

* fix: add documenting comment for webauthn gas estimator usage

* fix: adds documentation comment for webauthnGasEstimator usage

* chore: wip deploy webauthn account then sign message

* fix: prepend signatures with 0xff

* fix: prepend signature regardless of deferred actions data presence

* chore: wip debugging

* fix: debug

* chore: adds updated mock authenticator response

* fix: prefixes signature with offset

* chore: update credentials and mocked authenticator response

* chore: updates credentials and authenticator response

* chore: fix merge issues with main

* test: update tests using mock webauthn device (#1639)

* chore: wip format message to be EIP-712 and add lint fixes

* fix: inline documentation

Co-authored-by: Michael Moldoveanu <[email protected]>

* chore: removes debugging statements and linting fixes

* chore: rename types

* fix: refactor

* chore: remove debug statement

Co-authored-by: Michael Moldoveanu <[email protected]>

* fix: update return type

Co-authored-by: Michael Moldoveanu <[email protected]>

* fix: adds strongly typed errors

* chore: removes debug statements

* fix: fixes example in docs

* chore: add todo comment, removes debug statement

* chore: remove lint warnings

* refactor: encode sign parameters as a struct

* feat: export WebAuthnValidationModule

* fix: typing on creation of clients to support alchemy configs

* fix: cleans up tests

* chore: removes unused import

* fix: webauthn session key test

* fix: removes duplicate identifier

* fix: remove unnecessary arg

* chore: removes to do comment

* chore: removes unnecessary account type check

* chore: updates yarn.lock and docs.yml

* fix: add back necessary account type checks

* fix: restore yarn.lock file

* fix: adds more granular errors

* chore: updates error docs

* fix: refactor

---------

Co-authored-by: howydev <[email protected]>
Co-authored-by: Michael Moldoveanu <[email protected]>
Co-authored-by: Daniel Slovinsky <[email protected]>
Co-authored-by: dslovinsky <[email protected]>
Co-authored-by: David Philipson <[email protected]>
Co-authored-by: Alchemy Bot <[email protected]>
Co-authored-by: Blake Duncan <[email protected]>
Co-authored-by: jakehobbs <[email protected]>
Co-authored-by: Andy <[email protected]>
moldy530 added a commit that referenced this pull request Jun 26, 2025
* chore: adds wip of webauthn client tests

* chore: updates webauthn test to use mocked window.credentials.get response

* chore: adds credential and mock response from self generated credential on try-webauthn.appspot.com

* fix: rename webAuthnCredentials to webAuthnAccountParams

* chore: adds to do

* feat: add ability to create a webauthn ModularAccountV2 without a signer

* chore: removes unused code

* fix: ensures presence of signer is explicit

* fix: refactor to not destructure

* feat: adds account functions for webauthn

* feat: add webauthn gas estimator

* chore: fix lint, change to use type narrowing instead

* feat: add webauthn signer

* chore: update dummy sig

* feat: modifies mav2 smart account client and mav2 client tests to work together

* fix: add documenting comment for webauthn gas estimator usage

* fix: adds documentation comment for webauthnGasEstimator usage

* chore: wip deploy webauthn account then sign message

* fix: prepend signatures with 0xff

* fix: prepend signature regardless of deferred actions data presence

* chore: wip debugging

* fix: debug

* chore: adds updated mock authenticator response

* fix: prefixes signature with offset

* chore: update credentials and mocked authenticator response

* chore: updates credentials and authenticator response

* chore: fix merge issues with main

* test: update tests using mock webauthn device (#1639)

* chore: wip format message to be EIP-712 and add lint fixes

* fix: inline documentation

Co-authored-by: Michael Moldoveanu <[email protected]>

* chore: removes debugging statements and linting fixes

* chore: rename types

* fix: refactor

* chore: remove debug statement

Co-authored-by: Michael Moldoveanu <[email protected]>

* fix: update return type

Co-authored-by: Michael Moldoveanu <[email protected]>

* fix: adds strongly typed errors

* chore: removes debug statements

* fix: fixes example in docs

* chore: add todo comment, removes debug statement

* chore: remove lint warnings

* refactor: encode sign parameters as a struct

* feat: enables installValidation to take a Modular Account with no signer (#1663)

* fix: run api spec generate as part of aa-sdk deploy (#1654)

* fix: run api spec generate as part of aa-sdk deploy

* ci: create aa-sdk copy of setup-pnpm composite action

* ci: remove unnecessary install node in pnpm composite action

* ci: try installing pnpm with exact action version

* ci: test with pnpm moved out of its own composite

* ci: fuck you install pnpm

* ci: ??????

* revert: install pnpm in its own setup composite

* ci: specify package.json for pnpm

---------

Co-authored-by: dslovinsky <[email protected]>

* feat(rn-signer): support passkeys in React Native (#1653)

* chore(release): publish v4.37.0 [skip-ci]

* feat: add erc20 sponsorship card (#1631)

* fix: remove trailing slash from alchemy rpc url (#1657)

* chore(release): publish v4.38.0 [skip-ci]

* fix: update copy (#1658)

* feat: add alchemy_requestPaymasterTokenQuote to aa-sdk (#1659)

* feat: add alchemy_requestPaymasterTokenQuote to aa-sdk

* fix: typo

* chore(release): publish v4.39.0 [skip-ci]

* feat: enables installValidation to take a Modular Account with no signer

* fix: test thank you howy

* test: update the rundler version we use in prool (#1646)

* chore: experimenting with types (#1665)

* chore: modifies types

---------

Co-authored-by: Daniel Slovinsky <[email protected]>
Co-authored-by: dslovinsky <[email protected]>
Co-authored-by: David Philipson <[email protected]>
Co-authored-by: Alchemy Bot <[email protected]>
Co-authored-by: Blake Duncan <[email protected]>
Co-authored-by: jakehobbs <[email protected]>
Co-authored-by: Andy <[email protected]>
Co-authored-by: Michael Moldoveanu <[email protected]>
Co-authored-by: howy <[email protected]>

* chore: lint

* feat: export WebAuthnValidationModule

* fix: typing for install validation decorator

* fix: typing on creation of clients to support alchemy configs

* fix: updates tests to retry transaction, updates hook with new InstallValidation params

* chore: removes unused import

* fix: uses session key provider

* fix: narrow account type to a modular account v2

* chore: adds wip of webauthn client tests

* chore: updates webauthn test to use mocked window.credentials.get response

* chore: adds credential and mock response from self generated credential on try-webauthn.appspot.com

* fix: rename webAuthnCredentials to webAuthnAccountParams

* chore: adds to do

* feat: add ability to create a webauthn ModularAccountV2 without a signer

* chore: removes unused code

* fix: ensures presence of signer is explicit

* fix: refactor to not destructure

* feat: adds account functions for webauthn

* feat: add webauthn gas estimator

* chore: fix lint, change to use type narrowing instead

* feat: add webauthn signer

* chore: update dummy sig

* feat: modifies mav2 smart account client and mav2 client tests to work together

* fix: add documenting comment for webauthn gas estimator usage

* fix: adds documentation comment for webauthnGasEstimator usage

* chore: wip deploy webauthn account then sign message

* fix: prepend signatures with 0xff

* fix: prepend signature regardless of deferred actions data presence

* chore: wip debugging

* fix: debug

* chore: adds updated mock authenticator response

* fix: prefixes signature with offset

* chore: update credentials and mocked authenticator response

* chore: updates credentials and authenticator response

* chore: fix merge issues with main

* test: update tests using mock webauthn device (#1639)

* chore: wip format message to be EIP-712 and add lint fixes

* fix: inline documentation

Co-authored-by: Michael Moldoveanu <[email protected]>

* chore: removes debugging statements and linting fixes

* chore: rename types

* fix: refactor

* chore: remove debug statement

Co-authored-by: Michael Moldoveanu <[email protected]>

* fix: update return type

Co-authored-by: Michael Moldoveanu <[email protected]>

* fix: adds strongly typed errors

* chore: removes debug statements

* fix: fixes example in docs

* chore: add todo comment, removes debug statement

* chore: remove lint warnings

* refactor: encode sign parameters as a struct

* feat: export WebAuthnValidationModule

* fix: typing on creation of clients to support alchemy configs

* fix: cleans up tests

* chore: removes unused import

* fix: webauthn session key test

* fix: removes duplicate identifier

* fix: remove unnecessary arg

* chore: removes to do comment

* chore: removes unnecessary account type check

* chore: updates yarn.lock and docs.yml

* fix: add back necessary account type checks

* fix: restore yarn.lock file

* fix: adds more granular errors

* chore: updates error docs

* fix: refactor

---------

Co-authored-by: howydev <[email protected]>
Co-authored-by: Michael Moldoveanu <[email protected]>
Co-authored-by: Daniel Slovinsky <[email protected]>
Co-authored-by: dslovinsky <[email protected]>
Co-authored-by: David Philipson <[email protected]>
Co-authored-by: Alchemy Bot <[email protected]>
Co-authored-by: Blake Duncan <[email protected]>
Co-authored-by: jakehobbs <[email protected]>
Co-authored-by: Andy <[email protected]>
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.

2 participants