Skip to content

conduitxyz/account-abstraction

 
 

Repository files navigation

Conduit Account Abstraction Scripts

Installation

yarn

Setup

Create a .env file like .example.env and fill it in with the RPC_URL of your network and a SIGNER_PRIVATE_KEY. If Conduit's bundler is already deployed for your network, you can also put your AA_URL in the .env file, which is required for the runop script only.

These scripts are designed to be used with Conduit's ERC4337 predeploys:

EntryPoint v0.7.0:    0x0000000071727De22E5E9d8BAf0edAc6f37da032
SimpleAccountFactory: 0x0ACDDd4868E24aad6A16573b416133F58795A916
TestCounter:          0x475d5a5B128c1846b86493b357e75E27201447B7

However, they should work on any chain where these contracts are present.

Creating an Account

yarn createAccount

Funding an Account

yarn fundAccount

This will take 0.01 ether from the account associated with the SIGNER_PRIVATE_KEY and deposit it on behalf of the account your created in the previous step.

Sending a test Transaction

yarn runop

The UserOp sent by this script emits a log from the TestCounter contract. However, this can be modified to send any kind of UserOp with the correct typechain types.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Solidity 85.4%
  • TypeScript 13.9%
  • JavaScript 0.7%