3.12.1 • Published 2 days ago

@alchemy/aa-accounts v3.12.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 days ago

@alchemy/aa-accounts

This package contains various implementations of the 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 Getting started docs to get started.

via yarn

yarn add @alchemy/aa-accounts

via npm

npm i -s @alchemy/aa-accounts

via pnpm

pnpm i @alchemy/aa-accounts

Contributing

If you are looking to add a new account type, please follow the following structure.

  1. Create a new folder in src with the name of your account type in kebab-case (we are following kebab casing for files throughout the project).
  2. Create a new file in the folder you just created called account.ts and add your implementation for BaseSmartContractAccount
  3. If needed, create a sub-folder in your account folder called abis and add your abis as .ts files. eg:
export const MyContractAbi = [] as const; // the as const is important so we can get correct typing from viem
  1. If you need to extend the SmartAccountProvider class, add a file called provider.ts and add your implementation for SmartAccountProvider.
  • Ideally, your Account impl should just work with the base provider provided by aa-core.
  • If not, consider generalizing the use case and updating SmartAccountProvider
  1. Add some tests for your account and provider (if created) by creating a subfolder in your account/my-account called __tests__ and make sure your files end with the .test.ts suffix
  2. export the classes and types you have defined in src/index.ts
  3. Open a PR and we will review it as soon as possible!
3.12.1

2 days ago

3.12.0

7 days ago

3.11.0

9 days ago

3.11.1

9 days ago

3.10.0

10 days ago

3.9.0

15 days ago

3.8.2-alpha.1

22 days ago

3.8.2-alpha.0

23 days ago

3.8.1

28 days ago

3.8.0

29 days ago

3.6.1

2 months ago

3.6.0

2 months ago

2.5.0

2 months ago

3.5.1

2 months ago

3.5.0

2 months ago

3.4.2

2 months ago

3.4.0

2 months ago

3.2.1

2 months ago

3.3.0

2 months ago

3.2.0

2 months ago

3.0.1

3 months ago

3.0.0

3 months ago

3.1.1

3 months ago

3.1.0

3 months ago

3.0.0-alpha.13

3 months ago

3.0.0-alpha.9

3 months ago

3.0.0-alpha.10

3 months ago

3.0.0-alpha.12

3 months ago

3.0.0-alpha.11

3 months ago

3.0.0-alpha.7

3 months ago

3.0.0-alpha.6

3 months ago

3.0.0-alpha.5

3 months ago

3.0.0-alpha.3

3 months ago

3.0.0-alpha.2

3 months ago

3.0.0-alpha.4

3 months ago

3.0.0-alpha.1

3 months ago

3.0.0-alpha.0

3 months ago

2.4.0

3 months ago

2.3.1

4 months ago

2.3.0

4 months ago

2.2.1

4 months ago

2.2.0

4 months ago

2.1.0

4 months ago

2.0.1

4 months ago

2.0.0

4 months ago

1.2.4

4 months ago

1.2.3

5 months ago

1.2.2

5 months ago

1.2.1

5 months ago

1.2.0

6 months ago

1.1.0

6 months ago

1.0.0

6 months ago

0.3.0

6 months ago

0.2.0

6 months ago

0.1.0-alpha.30

8 months ago

0.1.0-alpha.32

8 months ago

0.1.0-alpha.31

8 months ago

0.1.0-alpha.14

11 months ago

0.1.0-alpha.16

10 months ago

0.1.0-alpha.15

10 months ago

0.1.0-alpha.18

10 months ago

0.1.0-alpha.17

10 months ago

0.1.0-alpha.19

9 months ago

0.1.0-alpha.21

9 months ago

0.1.0-alpha.20

9 months ago

0.1.0-alpha.23

9 months ago

0.1.0-alpha.22

9 months ago

0.1.0-alpha.25

9 months ago

0.1.0-alpha.24

9 months ago

0.1.0-alpha.27

9 months ago

0.1.0-alpha.26

9 months ago

0.1.0-alpha.29

8 months ago

0.1.0-alpha.28

9 months ago

0.1.0

7 months ago

0.1.1

7 months ago

0.1.0-alpha.10

11 months ago

0.1.0-alpha.11

11 months ago

0.1.0-alpha.8

11 months ago

0.1.0-alpha.7

11 months ago

0.1.0-alpha.5

11 months ago

0.1.0-alpha.4

11 months ago