Skip to content

cartesi/erc-4337-devnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ERC-4337 devnet

This repository contains copies of ERC-4337 infrastructure smart contracts that can be deployed to a local devnet (anvil), so developers can develop application locally before moving to testnet or mainnet.

We understand that the most common ways of replicating live chains locally are:

  • use anvil forking capability;
  • or use anvil_setCode method to force the bytecode into a specify address with the bytecode obtained from the live network.

We however take a different approach.

As most contracts use deterministic deployment, we compile all smart contracts from source using the same settings as deployed to the live network, and deploy using the same salt, resulting in the same address. The contracts are usually downloaded from verified deployments from ethereum, using the forge clone command.

The local deployment is handled using cannon, which provides more composability.

Building

npm install -g @usecannon/cli
make install-foundry
make

Cannon packages

Useful tools

About

Local development environment for ERC-4337

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors