Thanks to visit codestin.com
Credit goes to github.com

Skip to content

christian-obi/walletFactory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wallet Factory

A simple smart contract factory that creates deterministic wallet addresses using CREATE2.

Features

  • Create deterministic wallet addresses using CREATE2
  • Predict wallet addresses before deployment
  • Simple wallet with ETH transfer capabilities
  • Owner-based access control

Contracts

WalletFactory

  • createWallet(uint256 salt) - Creates a new wallet for the caller
  • predictWalletAddress(address owner, uint256 salt) - Predicts wallet address
  • getWalletsByOwner(address owner) - Returns all wallets created by an owner

Wallet

  • execute(address to, uint256 value, bytes data) - Execute transactions
  • transferOwnership(address newOwner) - Transfer wallet ownership
  • receive() - Receive ETH

Deployment

Prerequisites

  • Foundry installed
  • Private key with ETH on Sepolia
  • Infura/Alchemy API key

Setup

  1. Install dependencies:
forge install

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published