1.2.3 • Published 2 years ago
tab-aa-signers v1.2.3
@alchemy/aa-signers
This package contains various implementations of the SmartAccountSigner and AuthSmartAccountSigner classes 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 to get started.
via yarn
yarn add @alchemy/aa-signersvia npm
npm i -s @alchemy/aa-signersContributing
If you are looking to add a new account type, please follow the following structure.
- Create a new folder in srcwith the name of your account type inkebab-case(we're following kebab casing for files throughout the project).
- Create a new file in the folder you just created called signer.tsand add your implementation forSmartAccountSigner, along with any additional types or utils files.
- If you need to extend the SmartAccountSignerorAuthSmartAccountSignerclass, add a file calledsigner.tsin a new sub-folder under this package and add your implementation for.
- Ideally, your SmartAccountSignerimpl should just work with the base provider provided byaa-coreand whatever peer dependencies you install.
- If not, consider generalizing the use case and updating SmartAccountSigner
- Add some tests for your account and provider (if created) by creating a subfolder in your signer/my-signercalled__tests__and make sure your files end with the.test.tssuffix
- export the classes and types you've defined in src/index.ts
- Open a PR and we'll review it as soon as possible!
1.2.3
2 years ago