Contributing to aa-signers
If you are looking to add a new Signer type, please follow the following structure.
- Create a new folder in
src
with the name of your Signer type inkebab-case
(we are following kebab casing for files throughout the project). - If you require importing an external library for your implementation, add it as an
optionalDependency
- Create a new file in the folder you just created called
signer.ts
and add your implementation forSmartAccountSigner
orSmartAccountAuthenticator
. - If needed, create a file in your folder called
types.ts
and add any necessary types required for authentication, details, or the inner SDK. - Add some tests for your Signer by creating a subfolder in your
signer/my-signer
called__tests__
and make sure your files end with the.test.ts
suffix. - Export the classes and types you have defined in
src/index.ts
. - Open a PR and we will review it as soon as possible!