Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
@alchemy/aa-accounts
Advanced tools
A collection of ERC-4337 compliant smart contract account interfaces
@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!
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
If you are looking to add a new account type, please follow the following structure.
src
with the name of your account type in kebab-case
(we're following kebab casing for files throughout the project).account.ts
and add your implementation for BaseSmartContractAccount
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
SmartAccountProvider
class, add a file called provider.ts
and add your implementation for SmartAccountProvider
.Account
impl should just work with the base provider provided by aa-core
.account/my-account
called __tests__
and make sure your files end with the .test.ts
suffixsrc/index.ts
3.0.0-alpha.11 (2024-02-14)
FAQs
A collection of ERC-4337 compliant smart contract account interfaces
We found that @alchemy/aa-accounts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.