github.com/SuriyaRuk/pos-deposit_contract

An animated time-lapse of how SuriyaRuk/pos-deposit_contract was built, commit by commit.

Open this visualization on its own page →

Contributors

1

Lines of Code

301

From

2026-01-18

To

2026-01-18

About SuriyaRuk/pos-deposit_contract

This is a Solidity implementation of the Ethereum 2.0 deposit contract, following the official Eth2.0 specification. The contract handles validator deposits on the Ethereum network, allowing users to submit a minimum of 1 ETH to participate in staking. It maintains a Merkle tree of deposits and provides functions to retrieve the current deposit root and count.

The project uses Foundry as its development framework and includes comprehensive deployment tooling for local testing via Anvil as well as testnet and mainnet deployments. Developers can deploy using environment variables, keystore accounts, or private keys, with optional contract verification on block explorers. The contract is compiled with Solidity 0.6.11 targeting the Istanbul EVM version with optimization enabled.

The repository is designed for developers and node operators deploying Ethereum 2.0 infrastructure. It provides multiple deployment strategies and configuration options, including support for custom chains and bytecode-based deployments. The project is released under the CC0-1.0 license, making it freely available for public use.

Share this video