@alchemy/aa-accounts
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -14,2 +14,3 @@ "use strict"; | ||
case chains_1.optimismGoerli.id: | ||
case chains_1.optimismSepolia.id: | ||
case chains_1.arbitrum.id: | ||
@@ -20,2 +21,3 @@ case chains_1.arbitrumGoerli.id: | ||
case chains_1.baseGoerli.id: | ||
case chains_1.baseSepolia.id: | ||
return "0x00000055C0b4fA41dde26A74435ff03692292FBD"; | ||
@@ -22,0 +24,0 @@ } |
@@ -1,2 +0,2 @@ | ||
import { arbitrum, arbitrumGoerli, arbitrumSepolia, base, baseGoerli, goerli, mainnet, optimism, optimismGoerli, polygon, polygonMumbai, sepolia, } from "viem/chains"; | ||
import { arbitrum, arbitrumGoerli, arbitrumSepolia, base, baseGoerli, baseSepolia, goerli, mainnet, optimism, optimismGoerli, optimismSepolia, polygon, polygonMumbai, sepolia, } from "viem/chains"; | ||
export const getDefaultLightAccountFactoryAddress = (chain) => { | ||
@@ -11,2 +11,3 @@ switch (chain.id) { | ||
case optimismGoerli.id: | ||
case optimismSepolia.id: | ||
case arbitrum.id: | ||
@@ -17,2 +18,3 @@ case arbitrumGoerli.id: | ||
case baseGoerli.id: | ||
case baseSepolia.id: | ||
return "0x00000055C0b4fA41dde26A74435ff03692292FBD"; | ||
@@ -19,0 +21,0 @@ } |
{ | ||
"name": "@alchemy/aa-accounts", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "A collection of ERC-4337 compliant smart contract account interfaces", | ||
@@ -42,4 +42,4 @@ "author": "Alchemy", | ||
"devDependencies": { | ||
"@alchemy/aa-alchemy": "^1.0.0", | ||
"@alchemy/aa-core": "^0.2.0", | ||
"@alchemy/aa-alchemy": "^1.1.0", | ||
"@alchemy/aa-core": "^1.0.0", | ||
"typescript": "^5.0.4", | ||
@@ -61,7 +61,7 @@ "typescript-template": "*", | ||
"homepage": "https://github.com/alchemyplatform/aa-sdk#readme", | ||
"gitHead": "d4bcef7e1301c41ebff4bedf0da5737a172b22e7", | ||
"gitHead": "cd5715f9f978d5cb433174c11e90820a37e7a498", | ||
"dependencies": { | ||
"@alchemy/aa-core": "^1.0.0", | ||
"@alchemy/aa-core": "^1.1.0", | ||
"viem": "^1.16.2" | ||
} | ||
} |
# `@alchemy/aa-accounts` | ||
This package contains various implementations of the [`BaseSmartContractAccount`](../core/src/account/base.ts) class defined in `aa-core`. This repo is community maintained and we welcome contributions! | ||
This package contains various implementations of the [`BaseSmartContractAccount`](https://accountkit.alchemy.com/packages/aa-core/accounts/introduction.html#basesmartcontractaccount) class defined in `aa-core`. This repo is community maintained and we welcome contributions! | ||
## Getting started | ||
If you are already using the `@alchemy/aa-core` package, you can simply install this package and start using the accounts. If you are not using `@alchemy/aa-core`, you can install it and follow the instructions in the [README](../../README.md) to get started. | ||
If you are already using the `@alchemy/aa-core` package, you can simply install this package and start using the accounts. If you are not using `@alchemy/aa-core`, you can install it and follow the instructions in the [Getting Started](https://accountkit.alchemy.com/packages/aa-accounts/) docs to get started. | ||
@@ -21,2 +21,8 @@ via `yarn` | ||
via `pnpm` | ||
```bash | ||
pnpm i @alchemy/aa-accounts | ||
``` | ||
## Contributing | ||
@@ -34,3 +40,3 @@ | ||
4. If you need to extend the [`SmartAccountProvider`](../core/src/provider/base.ts) class, add a file called `provider.ts` and add your implementation for `SmartAccountProvider`. | ||
4. If you need to extend the [`SmartAccountProvider`](https://accountkit.alchemy.com/packages/aa-core/provider/introduction.html) class, add a file called `provider.ts` and add your implementation for `SmartAccountProvider`. | ||
@@ -37,0 +43,0 @@ - Ideally, your `Account` impl should _just_ work with the base provider provided by `aa-core`. |
@@ -8,2 +8,3 @@ import type { Address, Chain } from "viem"; | ||
baseGoerli, | ||
baseSepolia, | ||
goerli, | ||
@@ -13,2 +14,3 @@ mainnet, | ||
optimismGoerli, | ||
optimismSepolia, | ||
polygon, | ||
@@ -35,2 +37,3 @@ polygonMumbai, | ||
case optimismGoerli.id: | ||
case optimismSepolia.id: | ||
case arbitrum.id: | ||
@@ -41,2 +44,3 @@ case arbitrumGoerli.id: | ||
case baseGoerli.id: | ||
case baseSepolia.id: | ||
return "0x00000055C0b4fA41dde26A74435ff03692292FBD"; | ||
@@ -43,0 +47,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
505486
9436
47
Updated@alchemy/aa-core@^1.1.0