Skip to content

stakewithus/eigenlayer-staking-contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EigenLayer Staking Contracts

Stakewithus ETH Staking Contracts with EigenLayer integration.

EigenLayer

The main differences between native ETH staking and EigenLayer restaking are:

  • Validator withdrawal credentials are set to to EigenLayer smart contracts
  • Users verify ETH deposits and withdrawals by comparing proofs to EigenLayer's Beacon Chain oracle
  • Users have the option to restake ETH to EigenLayer Operators for additional rewards

Setup

Installation

forge install
cp .env.sample .env # and fill in values

Tests

forge test

Scripts

source .env
forge script Script/Staking.s.sol:Deploy --rpc_url $RPC_HOLESKY --broadcast --verify # or RPC_MAINNET

Notes

EigenLayer Beacon Chain ETH withdrawals are queued via verifyAndProcessWithdrawals(), which is an unpermissioned function anyone can call with a valid proof.

Dependencies

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published