Optimism is a low-cost and lightning-fast Ethereum L2 blockchain, built with the OP Stack.
Celestia is a modular consensus and data network, built to enable anyone to easily deploy their own blockchain with minimal overhead.
If you're looking to run the OP Stack + Celestia setup for this repository, please visit the Optimism & Celestia guides and tutorials to get started.
Optimism is a project dedicated to scaling Ethereum's technology and expanding its ability to coordinate people from across the world to build effective decentralized economies and governance systems. The Optimism Collective builds open-source software for running L2 blockchains and aims to address key governance and economic challenges in the wider cryptocurrency ecosystem. Optimism operates on the principle of impact=profit, the idea that individuals who positively impact the Collective should be proportionally rewarded with profit. Change the incentives and you change the world.
The OP Stack powers Optimism, an Ethereum L2 blockchain, and forms the technical foundation for the the Optimism Collective—a group committed to the impact=profit principle. This principle rewards individuals for their positive contributions to the collective.
Optimism addresses critical coordination failures in the crypto ecosystem, such as funding public goods and infrastructure. The OP Stack focuses on creating a shared, open-source system for developing new L2 blockchains within the proposed Superchain ecosystem, promoting collaboration and preventing redundant efforts.
As Optimism evolves, the OP Stack will adapt, encompassing components ranging from blockchain infrastructure to governance systems. This software suite aims to simplify L2 blockchain creation while supporting the growth and development of the Optimism ecosystem.
Celestia is a modular consensus and data network, built to enable anyone to easily deploy their own blockchain with minimal overhead.
Celestia is a minimal blockchain that only orders and publishes transactions and does not execute them. By decoupling the consensus and application execution layers, Celestia modularizes the blockchain technology stack and unlocks new possibilities for decentralized application builders. Lean more at Celestia.org.
The maintenance guide for this repository can be found in the Wiki tab of the repository or here.
If you want to build on top of Celestia, take a look at the documentation at docs.celestia.org.
If you want to learn more about the OP Stack, check out the documentation at stack.optimism.io.
General discussion happens most frequently on the Optimism discord. Governance discussion can also be found on the Optimism Governance Forum.
General discussion happens most frequently on the Celestia discord. Other discussions can be found on the Celestia forum.
This repository has updated end-to-end tests in the op-e2e package to work with
Celestia as the data availability (DA) layer.
Currently, the tests assume a working Celestia devnet running locally:
docker run --platform linux/amd64 -p 26658:26658 ghcr.io/rollkit/local-celestia-devnet:v0.11.0-rc8The e2e tests can be triggered with:
cd $HOME/optimism
cd op-e2e
make testIf you have the OP Stack + Celestia setup running, you can test out bridging from the L1 to the L2.
To do this, first navigate to the packages/contracts-bedrock directory and create a
.env file with the following contents:
L1_PROVIDER_URL=http://localhost:8545
L2_PROVIDER_URL=http://localhost:9545
PRIVATE_KEY=bf7604d9d3a1c7748642b1b7b05c2bd219c9faa91458b370f85e5a40f3b03af7Then, run the following from the same directory:
npx hardhat deposit --network devnetL1 --l1-provider-url http://localhost:8545 --l2-provider-url http://localhost:9545 --amount-eth <AMOUNT> --to <ADDRESS>~~ Production ~~ ├── packages │ ├── common-ts: Common tools for building apps in TypeScript │ ├── contracts-bedrock: Bedrock smart contracts. │ ├── contracts-periphery: Peripheral contracts for Optimism │ ├── core-utils: Low-level utilities that make building Optimism easier │ ├── chain-mon: Chain monitoring services │ ├── fault-detector: Service for detecting Sequencer faults │ ├── replica-healthcheck: Service for monitoring the health of a replica node │ └── sdk: provides a set of tools for interacting with Optimism ├── op-bindings: Go bindings for Bedrock smart contracts. ├── op-batcher: L2-Batch Submitter, submits bundles of batches to L1 ├── op-bootnode: Standalone op-node discovery bootnode ├── op-chain-ops: State surgery utilities ├── op-challenger: Dispute game challenge agent ├── op-e2e: End-to-End testing of all bedrock components in Go ├── op-exporter: Prometheus exporter client ├── op-heartbeat: Heartbeat monitor service ├── op-node: rollup consensus-layer client ├── op-program: Fault proof program ├── op-proposer: L2-Output Submitter, submits proposals to L1 ├── op-service: Common codebase utilities ├── op-signer: Client signer ├── op-wheel: Database utilities ├── ops-bedrock: Bedrock devnet work ├── proxyd: Configurable RPC request router and proxy └── specs: Specs of the rollup starting at the Bedrock upgrade ~~ Pre-BEDROCK ~~ ├── packages │ ├── common-ts: Common tools for building apps in TypeScript │ ├── contracts-periphery: Peripheral contracts for Optimism │ ├── core-utils: Low-level utilities that make building Optimism easier │ ├── chain-mon: Chain monitoring services │ ├── fault-detector: Service for detecting Sequencer faults │ ├── replica-healthcheck: Service for monitoring the health of a replica node │ └── sdk: provides a set of tools for interacting with Optimism ├── indexer: indexes and syncs transactions ├── op-exporter: A prometheus exporter to collect/serve metrics from an Optimism node ├── proxyd: Configurable RPC request router and proxy └── technical-documents: audits and post-mortem documents