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

feat: merge development into main for new major version release #294

Closed
wants to merge 81 commits into from

Conversation

avasisht23
Copy link
Contributor

@avasisht23 avasisht23 commented Dec 1, 2023

Pull Request Checklist

  • Did you add new tests and confirm existing tests pass? (yarn test)
  • Did you update relevant docs? (docs are found in the site folder, and guidelines for updating/adding docs can be found in the contribution guide)
  • Do your commits follow the Conventional Commits standard?
  • Does your PR title also follow the Conventional Commits standard?
  • If you have a breaking change, is it correctly reflected in your commit message? (e.g. feat!: breaking change)
  • Did you run lint (yarn lint:check) and fix any issues? (yarn lint:fix)
  • Is the base branch you're merging into development and not main?
  • Did you follow the contribution guidelines?

PR-Codex overview

Focus of this PR:

Update dependencies and configuration files for the signers and alchemy packages.

Detailed summary:

  • Updated tsconfig.json and tsconfig.build.json files in the signers package.
  • Added new exports and types in the magic and web3auth modules of the signers package.
  • Updated the Node.js version in the GitHub workflows.
  • Added new exports and types in the signers package.
  • Updated the package.json file in the accounts package.
  • Updated the getOwnerAddress.md and signTypedData.md files in the aa-accounts package.
  • Added new exports and types in the web3auth module of the signers package.
  • Updated the constants.ts file in the alchemy package.
  • Updated the Node.js version and added new exports in the alchemy package.
  • Updated the Footer.tsx file in the aa-simple-dapp example.
  • Updated the exports in the alchemy package.
  • Added new configuration files in the signers package.
  • Updated the package.json file in the aa-simple-dapp example.
  • Updated the configuration files in the signers package.
  • Updated the account.ts file in the accounts package.
  • Updated the Node.js version in the GitHub workflows.
  • Updated the index.ts file in the alchemy package.
  • Updated the vitest.config.ts and vitest.config.e2e.ts files in the signers package.
  • Updated the package.json file in the alchemy-daapp example.
  • Updated the simulate-uo.ts file in the alchemy package.
  • Added new types in the magic module of the signers package.
  • Updated the package.json file in the aa-core package.
  • Updated the account-alchemy.ts file in the snippets.
  • Updated the deployment-addresses.md file in the snippets.
  • Updated the sendUserOperation.md file in the aa-core package.
  • Updated the light-account-provider.ts file in the snippets.
  • Updated the package.json file in the alchemy package.
  • Updated the signMessageWith6492.md file in the snippets.
  • Updated the getDummySignature.md file in the aa-core package.
  • Updated the signTypedDataWith6492.md file in the snippets.

The following files were skipped due to too many changes: packages/accounts/src/index.ts, site/packages/aa-core/provider/getUserOperationByHash.md, site/packages/aa-accounts/light-account/signMessageWith6492.md, packages/alchemy/src/type.ts, site/packages/aa-accounts/light-account/signTypedDataWith6492.md, package.json, packages/alchemy/src/middleware/types/index.ts, examples/aa-simple-dapp/README.md, site/packages/aa-alchemy/provider/withAlchemyGasManager.md, site/packages/aa-core/client/index.md, site/packages/aa-core/signers/local-account.md, packages/alchemy/src/middleware/client.ts, site/packages/aa-core/signers/utils/verifyEIP6492Signature.md, site/packages/aa-alchemy/middleware/introduction.md, site/packages/aa-core/provider/connect.md, site/packages/aa-ethers/account-signer/connect.md, site/packages/aa-core/utils/getUserOperationHash.md, packages/core/src/logger.ts, site/packages/aa-alchemy/provider/simulateUserOperationAssetChanges.md, site/packages/aa-core/provider/dropAndReplaceUserOperation.md, site/packages/aa-core/accounts/optional/signMessageWith6492.md, packages/core/src/utils/schema.ts, site/packages/aa-ethers/account-signer/sendTransaction.md, packages/alchemy/src/defaults.ts, site/packages/aa-ethers/account-signer/getAddress.md, site/packages/aa-alchemy/provider/withAlchemyEnhancedApis.md, packages/core/src/account/types.ts, site/packages/aa-ethers/provider-adapter/connectToAccount.md, packages/core/src/utils/defaults.ts, site/packages/aa-core/signers/utils/wrapSignatureWith6492.md, packages/accounts/src/light-account/schema.ts, site/packages/aa-core/accounts/optional/signTypedDataWith6492.md, site/packages/aa-accounts/light-account/encodeTransferOwnership.md, site/packages/aa-accounts/light-account/constructor.md, site/packages/aa-ethers/provider-adapter/introduction.md, site/packages/aa-signers/magic/getAddress.md, site/packages/aa-alchemy/provider/gasEstimator.md, site/packages/aa-core/accounts/constructor.md, site/packages/aa-signers/web3auth/getAddress.md, packages/ethers/README.md, site/glossary/types/percentage.md, site/packages/aa-core/provider/sendUserOperation.md, site/glossary/types/bigNumberishRange.md, site/packages/aa-signers/magic/signMessage.md, site/glossary/types/bigNumberish.md, packages/core/src/index.ts, site/packages/aa-signers/web3auth/signMessage.md, site/packages/aa-alchemy/middleware/withAlchemyGasFeeEstimator.md, site/snippets/magic.ts, packages/accounts/src/light-account/provider.ts, site/packages/aa-alchemy/index.md, site/packages/aa-signers/index.md, site/overview/demos.md, packages/accounts/src/light-account/__tests__/account.test.ts, packages/core/src/account/base.ts, examples/README.md, site/guides/enhanced-apis/token.md, site/packages/aa-core/provider/withPaymasterMiddleware.md, site/snippets/web3auth.ts, site/packages/aa-signers/contributing.md, packages/alchemy/src/provider/light-account.ts, site/packages/aa-ethers/index.md, .github/PULL_REQUEST_TEMPLATE/pull_request_template.md, site/packages/aa-core/provider/buildUserOperation.md, site/packages/aa-core/provider/sendTransactions.md, site/packages/aa-alchemy/provider/withAlchemyUserOpSimulation.md, site/smart-accounts/signers/dynamic.md, site/smart-accounts/signers/turnkey.md, packages/alchemy/src/__tests__/provider.test.ts, packages/core/src/utils/userop.ts, site/packages/aa-core/provider/sendTransaction.md, site/packages/aa-core/provider/buildUserOperationFromTx.md, packages/core/src/provider/types.ts, packages/core/src/utils/bigint.ts, site/packages/aa-signers/magic/getAuthDetails.md, site/smart-accounts/accounts/choosing-a-smart-account.md, site/packages/aa-alchemy/middleware/withAlchemyGasManager.md, site/smart-accounts/signers/privy.md, packages/core/src/utils/index.ts, site/packages/aa-core/types/userOperationFeeOptionsField.md, site/packages/aa-core/provider/withGasEstimator.md, site/packages/aa-core/provider/withFeeDataGetter.md, site/packages/aa-core/types/userOperationFeeOptions.md, packages/alchemy/src/schema.ts, site/packages/aa-signers/magic/constructor.md, packages/signers/src/magic/signer.ts, site/smart-accounts/accounts/using-your-own.md, site/packages/aa-alchemy/provider/introduction.md, site/packages/aa-signers/magic/signTypedData.md, packages/signers/README.md, site/packages/aa-signers/web3auth/signTypedData.md, site/index.md, site/packages/aa-signers/magic/authenticate.md, packages/alchemy/src/middleware/gas-fees.ts, site/smart-accounts/signers/portal.md, site/smart-accounts/signers/lit.md, site/packages/aa-core/accounts/introduction.md, packages/signers/src/web3auth/signer.ts, packages/signers/package.json, site/packages/aa-signers/web3auth/getAuthDetails.md, site/smart-accounts/signers/eoa.md, packages/core/src/types.ts, site/smart-accounts/signers/capsule.md, site/guides/transferring-ownership.md, site/packages/aa-signers/magic/introduction.md, site/.vitepress/config.ts, site/packages/aa-core/provider/checkGasSponsorshipEligibility.md, site/smart-accounts/overview.md, site/packages/aa-signers/web3auth/introduction.md, packages/core/src/provider/schema.ts, site/packages/aa-ethers/account-signer/introduction.md, site/smart-accounts/signers/fireblocks.md, site/packages/aa-accounts/light-account/introduction.md, site/getting-started.md, site/guides/enhanced-apis/nft.md, site/packages/aa-core/provider/constructor.md, site/packages/aa-signers/web3auth/authenticate.md, packages/signers/src/magic/__tests__/signer.test.ts, examples/alchemy-daapp/README.md, site/smart-accounts/signers/contributing.md, packages/core/e2e-tests/simple-account.test.ts, site/smart-accounts/accounts/light-account.md, site/guides/send-user-operation.md, packages/accounts/src/kernel-zerodev/README.md, site/smart-accounts/signers/particle-network.md, README.md, site/smart-accounts/signers/magic.md, site/smart-accounts/signers/custom-signer.md, packages/signers/src/web3auth/__tests__/signer.test.ts, site/smart-accounts/signers/web3auth.md, site/guides/sim-user-operation.md, site/guides/batching-transactions.md, site/packages/aa-accounts/light-account/provider.md, site/packages/aa-alchemy/provider/constructor.md, site/packages/aa-signers/web3auth/constructor.md, packages/accounts/src/light-account/e2e-tests/light-account.test.ts, site/overview/getting-started.md, site/packages/aa-core/types/userOperationOverrides.md, site/packages/aa-alchemy/provider/light-account-factory.md, site/overview/why-account-kit.md, CONTRIBUTING.md, site/guides/sponsoring-gas/gas-sponsorship-eligibility.md, packages/alchemy/src/provider.ts, site/overview/package-overview.md, site/smart-accounts/accounts/modular-account.md, site/guides/sponsoring-gas/sponsoring-gas.md, packages/alchemy/e2e-tests/simple-account.test.ts, packages/alchemy/src/middleware/gas-manager.ts, site/smart-accounts/signers/choosing-a-signer.md, site/overview/introduction.md, packages/signers/CHANGELOG.md, packages/core/src/provider/base.ts, yarn.lock

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

denniswon and others added 30 commits November 14, 2023 15:54
* feat: abstract out entry point contract address from SCA provider params

* feat: make entry point address as an optional param to SCA provider class

* feat: update docs for the new utils methods

* Update site/packages/aa-core/utils/getDefaultEntryPointContract.md

Co-authored-by: Ajay Vasisht <[email protected]>

* Update site/packages/aa-core/utils/getDefaultSimpleAccountFactory.md

Co-authored-by: Ajay Vasisht <[email protected]>

* chore: nit error message update and refactoring

---------

Co-authored-by: Ajay Vasisht <[email protected]>
* docs: update the magic docs to highlight signer creation is async

* docs: update the magic docs to highlight signer creation is async
* feat: abstract out entry point contract address from SCA provider params

* feat: make entry point address as an optional param to SCA provider class

* feat: update docs for the new utils methods

* Update site/packages/aa-core/utils/getDefaultEntryPointContract.md

Co-authored-by: Ajay Vasisht <[email protected]>

* Update site/packages/aa-core/utils/getDefaultSimpleAccountFactory.md

Co-authored-by: Ajay Vasisht <[email protected]>

* chore: nit error message update and refactoring

---------

Co-authored-by: Ajay Vasisht <[email protected]>
* feat: add zod runtime validation for base account

* feat: add zod runtime validation for base account

* feat: add zod runtime validation for simple account

* refactor: clean up base schemas

* refactor: rebase

* refactor: rename abitype import
BREAKING CHANGE: forcing breaking change
* feat: abstract out entry point contract address from SCA provider params

* feat: make entry point address as an optional param to SCA provider class

* feat: update docs for the new utils methods

* Update site/packages/aa-core/utils/getDefaultEntryPointContract.md

Co-authored-by: Ajay Vasisht <[email protected]>

* Update site/packages/aa-core/utils/getDefaultSimpleAccountFactory.md

Co-authored-by: Ajay Vasisht <[email protected]>

* chore: nit error message update and refactoring

---------

Co-authored-by: Ajay Vasisht <[email protected]>
* docs: update the magic docs to highlight signer creation is async

* docs: update the magic docs to highlight signer creation is async
* feat: abstract out entry point contract address from SCA provider params

* feat: make entry point address as an optional param to SCA provider class

* feat: update docs for the new utils methods

* Update site/packages/aa-core/utils/getDefaultEntryPointContract.md

Co-authored-by: Ajay Vasisht <[email protected]>

* Update site/packages/aa-core/utils/getDefaultSimpleAccountFactory.md

Co-authored-by: Ajay Vasisht <[email protected]>

* chore: nit error message update and refactoring

---------

Co-authored-by: Ajay Vasisht <[email protected]>
* feat: add zod runtime validation for base account

* feat: add zod runtime validation for base account

* feat: add zod runtime validation for simple account

* refactor: clean up base schemas

* refactor: rebase

* refactor: rename abitype import
avasisht23 and others added 20 commits November 17, 2023 15:14
…#290)

* docs: update CONTRIBUTING guide, fix PR template, and clean up README

* Update CONTRIBUTING.md

Co-authored-by: Ajay Vasisht <[email protected]>

* Update README.md

Co-authored-by: Ajay Vasisht <[email protected]>

* docs: make requested changes

---------

Co-authored-by: Ajay Vasisht <[email protected]>
…matic fee options for userops (#276)

* feat: aa-core smart account provider fee options to handle more systematic fee options for userops

* feat: remove fee options middleware and expose fee options to middleware functions

* feat: aa-alchemy ergonomic support for handling gas estimation (#243)

* feat: support updated overrides for alchemy request gas and paymaster and data

* feat: rebase parent where account middle func def is updated

* Update site/packages/aa-alchemy/middleware/withAlchemyGasManager.md

Co-authored-by: Ajay Vasisht <[email protected]>

* Update packages/core/src/utils/index.ts

Co-authored-by: Ajay Vasisht <[email protected]>

* Update packages/core/src/utils/index.ts

Co-authored-by: Ajay Vasisht <[email protected]>

* Update packages/core/src/provider/base.ts

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

* fix: alchemy gas manager 0x check for user op overrides

---------

Co-authored-by: Ajay Vasisht <[email protected]>
Co-authored-by: Michael Moldoveanu <[email protected]>
* feat: support one-off percentage overrides for user operations

* feat: apply user op override or fee option utils in aa-core
…errides (#277)

* feat: support one-off percentage overrides for user operations

* feat: apply user op override or fee option utils in aa-core

* docs: add documentation for smart account provider fee options and overrides

* docs: add glossary section and add general types doc in the section
moldy530
moldy530 previously approved these changes Dec 1, 2023
@moldy530
Copy link
Collaborator

moldy530 commented Dec 1, 2023

closing in favor of #295

@moldy530 moldy530 closed this Dec 1, 2023
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.

7 participants