Skip to content

Commit

Permalink
Merge branch 'alchemyplatform:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
moldy530 authored Feb 2, 2024
2 parents 98416bd + bee152b commit 59641c2
Show file tree
Hide file tree
Showing 16 changed files with 58 additions and 14 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
{
"$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,
"changelog": true,
"command": {
"version": {
"message": "chore(release): publish %s [skip-ci]"
},
"publish": {
"preDistTag": "next"
}
},
"granularPathspec": false
Expand Down
4 changes: 4 additions & 0 deletions packages/accounts/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/accounts/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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"
}
}
6 changes: 6 additions & 0 deletions packages/alchemy/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/alchemy/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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": {
Expand Down
4 changes: 4 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/version.ts
Original file line number Diff line number Diff line change
@@ -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";
4 changes: 4 additions & 0 deletions packages/ethers/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/ethers/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions packages/signers/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/signers/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion site/packages/aa-accounts/light-account/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ head:

::: code-group

<<< @/snippets/aa-core/lightAccountClient.ts
<<< @/snippets/aa-accounts/lightAccountClient.ts
:::

## Returns
Expand Down
10 changes: 10 additions & 0 deletions site/snippets/aa-accounts/lightAccountClient.ts
Original file line number Diff line number Diff line change
@@ -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"),
});
7 changes: 5 additions & 2 deletions site/snippets/aa-core/lightAccountClient.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { createLightAccount } from "@alchemy/aa-accounts";
import {
createLightAccount,
lightAccountClientActions,
} from "@alchemy/aa-accounts";
import {
LocalAccountSigner,
SmartAccountSigner,
Expand All @@ -21,4 +24,4 @@ export const smartAccountClient = createSmartAccountClient({
chain,
owner,
}),
});
}).extend(lightAccountClientActions);

0 comments on commit 59641c2

Please sign in to comment.