Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump @grpc/grpc-js from 1.8.0 to 1.8.17 #164

Open
wants to merge 54 commits into
base: celestia-develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
f4998ee
da: use celestia as da
tuxcanfly Apr 21, 2023
54c1052
batcher: fix duplicate cli flag name
tuxcanfly Apr 25, 2023
d7cf0bb
docker: use latest devnet image
tuxcanfly Apr 26, 2023
146d21c
bump local celestia devnet to 0.9.1
tuxcanfly Apr 26, 2023
80977ae
docker: wait for da to boot
tuxcanfly Apr 27, 2023
82d4fee
op-ndoe: decodeeETHData - use uint32 for height
tuxcanfly Apr 27, 2023
884fd58
proposer: fix da rpc, estimate gas
tuxcanfly Apr 28, 2023
29c04d1
op-node: fix failed to parse frame error
tuxcanfly Apr 28, 2023
83e4fb9
proposer: fix revert
tuxcanfly May 2, 2023
249d312
proposer: restore gas limit; add explanation
tuxcanfly May 3, 2023
bcf0845
proposer: nit
tuxcanfly May 3, 2023
c4080a0
add celestia logo, update readme
jcstein May 3, 2023
73a4651
Update README.md
jcstein May 3, 2023
a536860
style size
jcstein May 3, 2023
544bb81
plus not x
jcstein May 3, 2023
1a3ed81
docs: edit intro
jcstein May 3, 2023
7550915
Update README.md
jcstein May 3, 2023
99b2a9b
Update README.md
jcstein May 3, 2023
3591a20
Merge pull request #33 from celestiaorg/jcs/update-readme
jcstein May 3, 2023
f073f20
nit
jcstein May 3, 2023
c33c5a0
Merge pull request #34 from celestiaorg/jcs/update-readme
jcstein May 3, 2023
4f73953
docs: add section on deposit bridge
jcstein May 3, 2023
d4f66d0
add workaround from @Ferret-san
jcstein May 3, 2023
6b45c90
close code block
jcstein May 3, 2023
e24f0b1
fix: typo
jcstein May 3, 2023
6dd4495
Update README.md
jcstein May 4, 2023
320b34a
docs: add bridging section from guidance from @Ferret-san
jcstein May 4, 2023
ccee67b
Merge pull request #35 from celestiaorg/jcs/bridge
jcstein May 4, 2023
1cdb0b8
deps: bump local-devnet to 0.9.2
jcstein May 4, 2023
9837663
Merge pull request #36 from celestiaorg/jcs/bump-local-devnet
jcstein May 4, 2023
b0519b4
docker: fix da container name
tuxcanfly May 4, 2023
d0280e1
op-node: gracefully retry da connection err
tuxcanfly May 10, 2023
8f48706
test: update e2e tests for celestia da
tuxcanfly May 15, 2023
7f3cca5
docs: update readme
jcstein May 15, 2023
102c5e2
deps: update local-celestia-devnet to v0.9.5
jcstein May 15, 2023
f05b485
Merge pull request #46 from celestiaorg/jcs/devnet-ver-bump
jcstein May 15, 2023
cb82872
Add DALC support (#47)
jcstein May 17, 2023
e71c751
fix: update path to node store (#52)
jcstein May 19, 2023
5b663de
devnet: increase block times (#50)
tuxcanfly May 19, 2023
1fa2312
.github: add dependabot
MSevey May 23, 2023
cebd51e
Merge pull request #61 from celestiaorg/sevey/dependabot
MSevey May 23, 2023
8f53660
deps: bump celestia-node & local-celestia-devnet image version to v0.…
jcstein May 23, 2023
5b97ddc
op-node: log namespaced data details (#94)
tuxcanfly May 23, 2023
521cd32
Dependabot and Fork Sync (#93)
MSevey May 24, 2023
37a4442
fix: resolve `max_subscriptions` and` share sequence` errors (#120)
jcstein May 26, 2023
a946f39
docs: add wiki to README
jcstein May 30, 2023
a5f8a9a
Merge pull request #130 from celestiaorg/jcs/add-wiki
MSevey May 30, 2023
8d625e9
proposer: allow non finalized true -> false (#133)
tuxcanfly Jun 1, 2023
d90765a
deps: update to node RC for Arabica (#132)
jcstein Jun 1, 2023
693f659
deps: bump celestia-node to v0.11.0-rc2 (#137)
jcstein Jun 5, 2023
de03b37
deps: remove trailing slash (#139)
jcstein Jun 5, 2023
5c9b975
op-node: continue on retrieval error (#142)
tuxcanfly Jun 6, 2023
4b7b01f
op-node: calldata source - reset pipeline on err (#144)
tuxcanfly Jun 7, 2023
a3936b8
build(deps): bump @grpc/grpc-js from 1.8.0 to 1.8.17
dependabot[bot] Jul 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: 2
updates:
# Check for updates on our docker image and for celestia-node
- package-ecosystem: docker
directory: "/ops-bedrock"
schedule:
interval: daily
open-pull-requests-limit: 10
labels:
- dependencies
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
labels:
- dependencies
# Check for updates on celestia packages
- package-ecosystem: gomod
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
labels:
- dependencies
18 changes: 18 additions & 0 deletions .github/workflows/fork-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Sync Fork

on:
schedule:
- cron: '*/30 * * * *' # every 30 minutes
workflow_dispatch: # on button click

jobs:
sync:

runs-on: ubuntu-latest

steps:
- uses: tgymnich/[email protected]
with:
owner: llvm
base: celesita-develop
head: develop
26 changes: 23 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,26 +65,46 @@ devnet-up:
@bash ./ops-bedrock/devnet-up.sh
.PHONY: devnet-up

testnet-up:
@bash ./ops-bedrock/testnet-up.sh
.PHONY: testnet-up

devnet-up-deploy:
PYTHONPATH=./bedrock-devnet python3 ./bedrock-devnet/main.py --monorepo-dir=.
.PHONY: devnet-up-deploy

devnet-down:
@(cd ./ops-bedrock && GENESIS_TIMESTAMP=$(shell date +%s) docker-compose stop)
@(cd ./ops-bedrock && GENESIS_TIMESTAMP=$(shell date +%s) docker-compose -f docker-compose-devnet.yml stop)
.PHONY: devnet-down

testnet-down:
@(cd ./ops-bedrock && GENESIS_TIMESTAMP=$(shell date +%s) docker-compose -f docker-compose-testnet.yml stop)
.PHONY: testnet-down

devnet-clean:
rm -rf ./packages/contracts-bedrock/deployments/devnetL1
rm -rf ./.devnet
cd ./ops-bedrock && docker-compose down
cd ./ops-bedrock && docker-compose -f docker-compose-devnet.yml down
docker image ls 'ops-bedrock*' --format='{{.Repository}}' | xargs -r docker rmi
docker volume ls --filter name=ops-bedrock --format='{{.Name}}' | xargs -r docker volume rm
.PHONY: devnet-clean

testnet-clean:
rm -rf ./packages/contracts-bedrock/deployments/devnetL1
rm -rf ./.devnet
cd ./ops-bedrock && docker-compose -f docker-compose-testnet.yml down
docker image ls 'ops-bedrock*' --format='{{.Repository}}' | xargs -r docker rmi
docker volume ls --filter name=ops-bedrock --format='{{.Name}}' | xargs -r docker volume rm
.PHONY: testnet-clean

devnet-logs:
@(cd ./ops-bedrock && docker-compose logs -f)
@(cd ./ops-bedrock && docker-compose -f docker-compose-devnet.yml logs -f)
.PHONY: devnet-logs

testnet-logs:
@(cd ./ops-bedrock && docker-compose -f docker-compose-testnet.yml logs -f)
.PHONY: testnet-logs

test-unit:
make -C ./op-node test
make -C ./op-proposer test
Expand Down
94 changes: 72 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,50 +3,100 @@
<br />
<br />
<a href="https://optimism.io"><img alt="Optimism" src="https://raw.githubusercontent.com/ethereum-optimism/brand-kit/main/assets/svg/OPTIMISM-R.svg" width=600></a>
<h3><a href="https://optimism.io">Optimism</a> is a low-cost and lightning-fast Ethereum L2 blockchain, built with the OP Stack.</h3>
<br />
<h3><a href="https://optimism.io">Optimism</a> is a low-cost and lightning-fast Ethereum L2 blockchain.</h3>
<h3>+</h3>
<a href="https://celestia.org"><img alt="Celestia" src="docs/op-stack/src/assets/docs/understand/Celestia-logo-color-color.svg" width=600></a>
<h3><a href="https://celestia.org">Celestia</a> is a modular consensus and data network, built to enable anyone to easily deploy their own blockchain with minimal overhead.</h3>
<br />
</div>

## What is Optimism?
## Celestia + OP Stack tutorial

If you're looking to run the OP Stack + Celestia setup for this repository, please visit the [Optimism & Celestia guides and tutorials](https://docs.celestia.org/developers/intro-to-op-stack/) to get started.

## What are Optimism and the OP Stack?

Optimism is a low-cost and lightning-fast Ethereum L2 blockchain, **but it's also so much more than that**.

Optimism is the technical foundation for [the Optimism Collective](https://app.optimism.io/announcement), a band of communities, companies, and citizens united by a mutually beneficial pact to adhere to the axiom of **impact=profit** — the principle that positive impact to the collective should be rewarded with profit to the individual.
We're trying to solve some of the most critical coordination failures facing the crypto ecosystem today.
**We're particularly focused on creating a sustainable funding stream for the public goods and infrastructure upon which the ecosystem so heavily relies but has so far been unable to adequately reward.**
We'd love for you to check out [The Optimistic Vision](https://www.optimism.io/vision) to understand more about why we do what we do.
The OP Stack powers Optimism, an Ethereum L2 blockchain, and forms the technical foundation for the [the Optimism Collective](https://app.optimism.io/announcement)—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.

## What is Celestia?

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](https://celestia.org).

## Maintenance

The maintenance guide for this repository can be found in the Wiki tab of the repository or [here](https://github.com/celestiaorg/optimism/wiki).

## Documentation

If you want to build on top of Optimism, take a look at the extensive documentation on the [Optimism Community Hub](http://community.optimism.io/).
If you want to build Optimism, check out the [Protocol Specs](./specs/).
If you want to build on top of Celestia, take a look at the documentation at [docs.celestia.org](https://docs.celestia.org).

If you want to learn more about the OP Stack, check out the documentation at [stack.optimism.io](https://stack.optimism.io/).

## Community

### Optimism

General discussion happens most frequently on the [Optimism discord](https://discord.gg/optimism).
Governance discussion can also be found on the [Optimism Governance Forum](https://gov.optimism.io/).

## Contributing
### Celestia

General discussion happens most frequently on the [Celestia discord](https://discord.com/invite/YsnTPcSfWQ).
Other discussions can be found on the [Celestia forum](https://forum.celestia.org).

<!-- ## Contributing

Read through [CONTRIBUTING.md](./CONTRIBUTING.md) for a general overview of our contribution process.
Use the [Developer Quick Start](./CONTRIBUTING.md#development-quick-start) to get your development environment set up to start working on the Optimism Monorepo.
Then check out our list of [good first issues](https://github.com/ethereum-optimism/optimism/contribute) to find something fun to work on!
Then check out our list of [good first issues](https://github.com/ethereum-optimism/optimism/contribute) to find something fun to work on! -->

## e2e testing

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](https://github.com/rollkit/local-celestia-devnet) running locally:

## Security Policy and Vulnerability Reporting
```bash
docker run --platform linux/amd64 -p 26650:26657 -p 26659:26659 ghcr.io/rollkit/local-celestia-devnet:v0.9.5
```

Please refer to our canonical [Security Policy](https://github.com/ethereum-optimism/.github/blob/master/SECURITY.md) document for detailed information about how to report vulnerabilities in this codebase.
Bounty hunters are encouraged to check out [our Immunefi bug bounty program](https://immunefi.com/bounty/optimism/).
We offer up to $2,000,042 for in-scope critical vulnerabilities and [we pay our maximum bug bounty rewards](https://medium.com/ethereum-optimism/disclosure-fixing-a-critical-bug-in-optimisms-geth-fork-a836ebdf7c94).
The e2e tests can be triggered with:

## The Bedrock Upgrade
```bash
cd $HOME/optimism
cd op-e2e
make test
```

Optimism is currently preparing for [its next major upgrade called Bedrock](https://dev.optimism.io/introducing-optimism-bedrock/).
Bedrock significantly revamps how Optimism works under the hood and will help make Optimism the fastest, cheapest, and most reliable rollup yet.
You can find detailed specifications for the Bedrock upgrade within the [specs folder](./specs) in this repository.
## Bridging

Please note that a significant number of packages and folders within this repository are part of the Bedrock upgrade and are NOT currently running in production.
Refer to the Directory Structure section below to understand which packages are currently running in production and which are intended for use as part of the Bedrock upgrade.
If 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:

```bash
L1_PROVIDER_URL=http://localhost:8545
L2_PROVIDER_URL=http://localhost:9545
PRIVATE_KEY=bf7604d9d3a1c7748642b1b7b05c2bd219c9faa91458b370f85e5a40f3b03af7
```

Then, run the following from the same directory:

```bash
npx hardhat deposit --network devnetL1 --l1-provider-url http://localhost:8545 --l2-provider-url http://localhost:9545 --amount-eth <AMOUNT> --to <ADDRESS>
```

## Directory Structure

Expand Down Expand Up @@ -86,7 +136,7 @@ Refer to the Directory Structure section below to understand which packages are
├── <a href="./ops-bedrock">ops-bedrock</a>: Bedrock devnet work
└── <a href="./specs">specs</a>: Specs of the rollup starting at the Bedrock upgrade
</pre>

<!--
## Branching Model

### Active Branches
Expand Down Expand Up @@ -159,4 +209,4 @@ It's strongly recommended to avoid merging PRs into develop during an active rel

Code forked from [`go-ethereum`](https://github.com/ethereum/go-ethereum) under the name [`l2geth`](https://github.com/ethereum-optimism/optimism/tree/master/l2geth) is licensed under the [GNU GPLv3](https://gist.github.com/kn9ts/cbe95340d29fc1aaeaa5dd5c059d2e60) in accordance with the [original license](https://github.com/ethereum/go-ethereum/blob/master/COPYING).

All other files within this repository are licensed under the [MIT License](https://github.com/ethereum-optimism/optimism/blob/master/LICENSE) unless stated otherwise.
All other files within this repository are licensed under the [MIT License](https://github.com/ethereum-optimism/optimism/blob/master/LICENSE) unless stated otherwise. -->
4 changes: 4 additions & 0 deletions bedrock-devnet/devnet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ def main():
})
wait_up(9545)

log.info('Bringing up DA')
run_command(['docker-compose', 'up', '-d', 'da'], cwd=ops_bedrock_dir, env={
'PWD': ops_bedrock_dir,
})
log.info('Bringing up everything else.')
run_command(['docker-compose', 'up', '-d', 'op-node', 'op-proposer', 'op-batcher'], cwd=ops_bedrock_dir, env={
'PWD': ops_bedrock_dir,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading