From 16d4c4e56a1bee775943ab1db1ab0039c4327fad Mon Sep 17 00:00:00 2001 From: moldy Date: Thu, 1 Feb 2024 19:30:18 -0500 Subject: [PATCH 1/4] chore: update lerna config to account for predist tags --- lerna.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lerna.json b/lerna.json index f791500413..09c8b765f4 100644 --- a/lerna.json +++ b/lerna.json @@ -8,6 +8,9 @@ "command": { "version": { "message": "chore(release): publish %s [skip-ci]" + }, + "publish": { + "preDistTag": "next" } }, "granularPathspec": false From 9d2a97539996bd7d4b96668730afaf3f8b1fef90 Mon Sep 17 00:00:00 2001 From: moldy Date: Thu, 1 Feb 2024 19:31:24 -0500 Subject: [PATCH 2/4] chore(release): publish v3.0.0-alpha.3 [skip-ci] --- CHANGELOG.md | 6 ++++++ lerna.json | 2 +- packages/accounts/CHANGELOG.md | 4 ++++ packages/accounts/package.json | 4 ++-- packages/alchemy/CHANGELOG.md | 6 ++++++ packages/alchemy/package.json | 4 ++-- packages/core/CHANGELOG.md | 4 ++++ packages/core/package.json | 2 +- packages/core/src/version.ts | 2 +- packages/ethers/CHANGELOG.md | 4 ++++ packages/ethers/package.json | 4 ++-- packages/signers/CHANGELOG.md | 4 ++++ packages/signers/package.json | 4 ++-- 13 files changed, 39 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f0ed31602..2b97daaac1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [3.0.0-alpha.3](https://github.com/alchemyplatform/aa-sdk/compare/v3.0.0-alpha.2...v3.0.0-alpha.3) (2024-02-02) + +### Features + +- **aa-alchemy:** add a modular account client function ([323f49e](https://github.com/alchemyplatform/aa-sdk/commit/323f49ecad4fb33991748f168f4ec8da2746ebce)) + # [3.0.0-alpha.2](https://github.com/alchemyplatform/aa-sdk/compare/v3.0.0-alpha.1...v3.0.0-alpha.2) (2024-02-01) ### Bug Fixes diff --git a/lerna.json b/lerna.json index 09c8b765f4..facbaa399b 100644 --- a/lerna.json +++ b/lerna.json @@ -1,6 +1,6 @@ { "$schema": "node_modules/lerna/schemas/lerna-schema.json", - "version": "3.0.0-alpha.2", + "version": "3.0.0-alpha.3", "npmClient": "yarn", "conventionalCommits": true, "conventionalPrerelease": true, diff --git a/packages/accounts/CHANGELOG.md b/packages/accounts/CHANGELOG.md index 6414e0e62e..0bca64c51e 100644 --- a/packages/accounts/CHANGELOG.md +++ b/packages/accounts/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [3.0.0-alpha.3](https://github.com/alchemyplatform/aa-sdk/compare/v3.0.0-alpha.2...v3.0.0-alpha.3) (2024-02-02) + +**Note:** Version bump only for package @alchemy/aa-accounts + # [3.0.0-alpha.2](https://github.com/alchemyplatform/aa-sdk/compare/v3.0.0-alpha.1...v3.0.0-alpha.2) (2024-02-01) ### Bug Fixes diff --git a/packages/accounts/package.json b/packages/accounts/package.json index 553306d0bc..5dd7401172 100644 --- a/packages/accounts/package.json +++ b/packages/accounts/package.json @@ -1,6 +1,6 @@ { "name": "@alchemy/aa-accounts", - "version": "3.0.0-alpha.2", + "version": "3.0.0-alpha.3", "description": "A collection of ERC-4337 compliant smart contract account interfaces", "author": "Alchemy", "license": "MIT", @@ -74,7 +74,7 @@ "homepage": "https://github.com/alchemyplatform/aa-sdk#readme", "gitHead": "ee46e8bb857de3b631044fa70714ea706d9e317d", "dependencies": { - "@alchemy/aa-core": "^3.0.0-alpha.1", + "@alchemy/aa-core": "^3.0.0-alpha.3", "viem": "^2.5.0" } } diff --git a/packages/alchemy/CHANGELOG.md b/packages/alchemy/CHANGELOG.md index d4855a505f..9d36c13af6 100644 --- a/packages/alchemy/CHANGELOG.md +++ b/packages/alchemy/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [3.0.0-alpha.3](https://github.com/alchemyplatform/aa-sdk/compare/v3.0.0-alpha.2...v3.0.0-alpha.3) (2024-02-02) + +### Features + +- **aa-alchemy:** add a modular account client function ([323f49e](https://github.com/alchemyplatform/aa-sdk/commit/323f49ecad4fb33991748f168f4ec8da2746ebce)) + # [3.0.0-alpha.2](https://github.com/alchemyplatform/aa-sdk/compare/v3.0.0-alpha.1...v3.0.0-alpha.2) (2024-02-01) **Note:** Version bump only for package @alchemy/aa-alchemy diff --git a/packages/alchemy/package.json b/packages/alchemy/package.json index dcbebbd9a1..b2952993b4 100644 --- a/packages/alchemy/package.json +++ b/packages/alchemy/package.json @@ -1,6 +1,6 @@ { "name": "@alchemy/aa-alchemy", - "version": "3.0.0-alpha.2", + "version": "3.0.0-alpha.3", "description": "adapters for @alchemy/aa-core for interacting with alchemy services", "author": "Alchemy", "license": "MIT", @@ -57,7 +57,7 @@ "vitest": "^0.31.0" }, "dependencies": { - "@alchemy/aa-core": "^3.0.0-alpha.1", + "@alchemy/aa-core": "^3.0.0-alpha.3", "viem": "^2.5.0" }, "publishConfig": { diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 7fd4db172c..2f7ef62dfd 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [3.0.0-alpha.3](https://github.com/alchemyplatform/aa-sdk/compare/v3.0.0-alpha.2...v3.0.0-alpha.3) (2024-02-02) + +**Note:** Version bump only for package @alchemy/aa-core + # [3.0.0-alpha.1](https://github.com/alchemyplatform/aa-sdk/compare/v3.0.0-alpha.0...v3.0.0-alpha.1) (2024-01-31) ### Bug Fixes diff --git a/packages/core/package.json b/packages/core/package.json index 03886d9d98..fa37169808 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,7 +1,7 @@ { "name": "@alchemy/aa-core", "license": "MIT", - "version": "3.0.0-alpha.1", + "version": "3.0.0-alpha.3", "description": "viem based SDK that enables interactions with ERC-4337 Smart Accounts. ABIs are based off the definitions generated in @account-abstraction/contracts", "author": "Alchemy", "type": "module", diff --git a/packages/core/src/version.ts b/packages/core/src/version.ts index 131857a162..743bb30b63 100644 --- a/packages/core/src/version.ts +++ b/packages/core/src/version.ts @@ -1,3 +1,3 @@ // This file is autogenerated by inject-version.ts. Any changes will be // overwritten on commit! -export const VERSION = "3.0.0-alpha.1"; +export const VERSION = "3.0.0-alpha.3"; diff --git a/packages/ethers/CHANGELOG.md b/packages/ethers/CHANGELOG.md index 1c529718da..ac482d5c9e 100644 --- a/packages/ethers/CHANGELOG.md +++ b/packages/ethers/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [3.0.0-alpha.3](https://github.com/alchemyplatform/aa-sdk/compare/v3.0.0-alpha.2...v3.0.0-alpha.3) (2024-02-02) + +**Note:** Version bump only for package @alchemy/aa-ethers + # [3.0.0-alpha.1](https://github.com/alchemyplatform/aa-sdk/compare/v3.0.0-alpha.0...v3.0.0-alpha.1) (2024-01-31) **Note:** Version bump only for package @alchemy/aa-ethers diff --git a/packages/ethers/package.json b/packages/ethers/package.json index da5c64d3ee..587142b79f 100644 --- a/packages/ethers/package.json +++ b/packages/ethers/package.json @@ -1,7 +1,7 @@ { "name": "@alchemy/aa-ethers", "license": "MIT", - "version": "3.0.0-alpha.1", + "version": "3.0.0-alpha.3", "description": "Ethers.js wrapper for @alchemy/aa-core", "author": "Alchemy", "type": "module", @@ -49,7 +49,7 @@ "vitest": "^0.31.0" }, "dependencies": { - "@alchemy/aa-core": "^3.0.0-alpha.1", + "@alchemy/aa-core": "^3.0.0-alpha.3", "@ethersproject/abi": "^5.7.0", "@ethersproject/abstract-signer": "^5.7.0", "@ethersproject/bytes": "^5.7.0", diff --git a/packages/signers/CHANGELOG.md b/packages/signers/CHANGELOG.md index 0fb151ec4b..5e54f65bb8 100644 --- a/packages/signers/CHANGELOG.md +++ b/packages/signers/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [3.0.0-alpha.3](https://github.com/alchemyplatform/aa-sdk/compare/v3.0.0-alpha.2...v3.0.0-alpha.3) (2024-02-02) + +**Note:** Version bump only for package @alchemy/aa-signers + # [3.0.0-alpha.1](https://github.com/alchemyplatform/aa-sdk/compare/v3.0.0-alpha.0...v3.0.0-alpha.1) (2024-01-31) **Note:** Version bump only for package @alchemy/aa-signers diff --git a/packages/signers/package.json b/packages/signers/package.json index 4b06cfb0af..269c13eaa8 100644 --- a/packages/signers/package.json +++ b/packages/signers/package.json @@ -1,6 +1,6 @@ { "name": "@alchemy/aa-signers", - "version": "3.0.0-alpha.1", + "version": "3.0.0-alpha.3", "description": "A collection of signers used to create ERC-4337 smart accounts", "author": "Alchemy", "license": "MIT", @@ -114,7 +114,7 @@ "homepage": "https://github.com/alchemyplatform/aa-sdk#readme", "gitHead": "ee46e8bb857de3b631044fa70714ea706d9e317d", "dependencies": { - "@alchemy/aa-core": "^3.0.0-alpha.1", + "@alchemy/aa-core": "^3.0.0-alpha.3", "viem": "^2.5.0" }, "optionalDependencies": { From fa22d2bfa2aee1616de1dc02b0c14a3f2edd0b94 Mon Sep 17 00:00:00 2001 From: moldy Date: Thu, 1 Feb 2024 19:40:37 -0500 Subject: [PATCH 3/4] docs: clean up some code snippets for better separation --- site/packages/aa-accounts/light-account/client.md | 2 +- site/snippets/aa-core/lightAccountClient.ts | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/site/packages/aa-accounts/light-account/client.md b/site/packages/aa-accounts/light-account/client.md index 7416173517..56a31b1adf 100644 --- a/site/packages/aa-accounts/light-account/client.md +++ b/site/packages/aa-accounts/light-account/client.md @@ -20,7 +20,7 @@ head: ::: code-group -<<< @/snippets/aa-core/lightAccountClient.ts +<<< @/snippets/aa-accounts/lightAccountClient.ts ::: ## Returns diff --git a/site/snippets/aa-core/lightAccountClient.ts b/site/snippets/aa-core/lightAccountClient.ts index 7178cc49fc..7e9606d252 100644 --- a/site/snippets/aa-core/lightAccountClient.ts +++ b/site/snippets/aa-core/lightAccountClient.ts @@ -1,4 +1,7 @@ -import { createLightAccount } from "@alchemy/aa-accounts"; +import { + createLightAccount, + lightAccountClientActions, +} from "@alchemy/aa-accounts"; import { LocalAccountSigner, SmartAccountSigner, @@ -21,4 +24,4 @@ export const smartAccountClient = createSmartAccountClient({ chain, owner, }), -}); +}).extend(lightAccountClientActions); From bee152b0f52eca9b04e724f05f1ce292c920544c Mon Sep 17 00:00:00 2001 From: moldy Date: Thu, 1 Feb 2024 19:40:58 -0500 Subject: [PATCH 4/4] docs: left out the snippets on last push --- site/snippets/aa-accounts/lightAccountClient.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 site/snippets/aa-accounts/lightAccountClient.ts diff --git a/site/snippets/aa-accounts/lightAccountClient.ts b/site/snippets/aa-accounts/lightAccountClient.ts new file mode 100644 index 0000000000..48e626e844 --- /dev/null +++ b/site/snippets/aa-accounts/lightAccountClient.ts @@ -0,0 +1,10 @@ +import { createLightAccountClient } from "@alchemy/aa-accounts"; +import { LocalAccountSigner, sepolia } from "@alchemy/aa-core"; +import { http } from "viem"; + +export const smartAccountClient = createLightAccountClient({ + transport: http("RPC_URL"), + chain: sepolia, + // or any other SmartAccountSigner + owner: LocalAccountSigner.mnemonicToAccountSigner("YOUR_MNEMONIC"), +});