Skip to content

This is a rewrite of the official beacon chain deposit contract. Eth 2.0 deposit contract.

License

Notifications You must be signed in to change notification settings

k1rill-fedoseev/deposit-contract

 
 

Repository files navigation

Stake Beacon Chain Deposit Contract

This is a rewrite of the official beacon chain deposit contract. Eth 2.0 deposit contract.

The following things were changed:

  • Upgraded to Solidity 0.8.9
  • Deposit is made via ERC20 tokens instead of native ETH
  • Deposits can be done in batches
  • Contract can be made upgradeable
  • Contract can be made claimable (allowing to claim mistakenly sent third-party tokens back)
  • Contract can be made pausable
  • Withdrawals functionality was added

Compiling solidity deposit contract

yarn compile

Running web3 tests

yarn test

About

This is a rewrite of the official beacon chain deposit contract. Eth 2.0 deposit contract.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 56.1%
  • Solidity 43.6%
  • Dockerfile 0.3%