Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
88 changes: 44 additions & 44 deletions .github/workflows/oracle.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
name: Oracle
# name: Oracle

on:
push:
branches:
- main
paths:
- "oracle/**"
- ".github/workflows/oracle.yaml"
pull_request:
paths:
- "build/**"
- "bindings/**"
- "node/**"
- "oracle/**"
- ".github/workflows/oracle.yaml"
# on:
# push:
# branches:
# - main
# paths:
# - "oracle/**"
# - ".github/workflows/oracle.yaml"
# pull_request:
# paths:
# - "build/**"
# - "bindings/**"
# - "node/**"
# - "oracle/**"
# - ".github/workflows/oracle.yaml"

defaults:
run:
working-directory: "oracle"
# defaults:
# run:
# working-directory: "oracle"

jobs:
check:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.24.x
- name: Lint
run: |
rm -rf $HOME/.cache/golangci-lint
make lint
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.24.x
- name: Run build
run: make build
- name: Run tests
run: make test
# jobs:
# check:
# if: github.event.pull_request.draft == false
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Install Go
# uses: actions/setup-go@v5
# with:
# go-version: 1.24.x
# - name: Lint
# run: |
# rm -rf $HOME/.cache/golangci-lint
# make lint
# test:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Install Go
# uses: actions/setup-go@v5
# with:
# go-version: 1.24.x
# - name: Run build
# run: make build
# - name: Run tests
# run: make test
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
################## update dependencies ####################
ETHEREUM_SUBMODULE_COMMIT_OR_TAG := morph-v2.0.8
ETHEREUM_TARGET_VERSION := morph-v2.0.8
ETHEREUM_SUBMODULE_COMMIT_OR_TAG := d085f8c79a53edbd45c4af09f8a8182f1b1d5401
ETHEREUM_TARGET_VERSION := v1.10.14-0.20251119080508-d085f8c79a53
Comment on lines +2 to +3
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

Verify the ETHEREUM_TARGET_VERSION is complete.

Line 3 shows v1.10.14-0.20251119080508-d085f8c79a53, but the PR summary mentions the version should be v1.10.14-0.20251119080508-d085f8c79a53edbd45c4af09f8a8182f1b1d5401 (including the full commit hash). Confirm this version string is complete and matches the intended go-ethereum commit on line 2.


🏁 Script executed:

#!/bin/bash
# Verify ETHEREUM_TARGET_VERSION completeness
grep "ETHEREUM_TARGET_VERSION" Makefile

Length of output: 200


Update ETHEREUM_TARGET_VERSION to include the full commit hash.

Line 3 is incomplete. The current value v1.10.14-0.20251119080508-d085f8c79a53 ends with only a 12-character commit hash abbreviation, but should be v1.10.14-0.20251119080508-d085f8c79a53edbd45c4af09f8a8182f1b1d5401 to match the full commit from ETHEREUM_SUBMODULE_COMMIT_OR_TAG on line 2.

🤖 Prompt for AI Agents
In Makefile around lines 2 to 3, the ETHEREUM_TARGET_VERSION value uses a
12-character abbreviated commit hash; update it to include the full commit hash
from ETHEREUM_SUBMODULE_COMMIT_OR_TAG (d085f8c79a53edbd45c4af09f8a8182f1b1d5401)
so ETHEREUM_TARGET_VERSION becomes
v1.10.14-0.20251119080508-d085f8c79a53edbd45c4af09f8a8182f1b1d5401, ensuring
both variables reference the exact same full commit hash.

TENDERMINT_TARGET_VERSION := v0.3.2

ETHEREUM_MODULE_NAME := github.com/morph-l2/go-ethereum
Expand Down
67 changes: 67 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,73 @@ Morph is an innovative force reshaping the consumer blockchain landscape for pra

2. [How Does RVP Run in Morph?](https://medium.com/@morphlayer2/how-does-rvp-run-in-morph-6025233a21cc)

## Development

### Setting Up Local Development Network

This repository supports launching a local private Morph network for development and debugging purposes.

#### Start the Development Network

```bash
make devnet-up
```

This command performs the following steps:
1. Initializes and updates the go-ethereum submodule to the specified version
2. Builds the go-ubuntu-builder Docker image (if not already present)
3. Compiles all necessary components (L1 execution layer, consensus layer, L2 node, and services)
4. Generates genesis configurations for both L1 and L2 networks
5. Deploys smart contracts to the L1 network
6. Starts a 4-node Morph network with associated services

**Note:** The initial startup may take considerable time due to extensive building operations.

#### Clean Up the Network

To completely remove the development network including Docker images:

```bash
make devnet-clean
```

To clean up only the data and build artifacts while preserving Docker images:

```bash
make devnet-clean-build
```

### Managing Dependencies

#### Update Module Dependencies

To download or update dependencies for all modules in this monorepo:

```bash
make update
```

This command synchronizes the Go workspace and updates all module dependencies according to the versions specified in the Makefile:
- `ETHEREUM_TARGET_VERSION`: Specifies the go-ethereum dependency version
- `TENDERMINT_TARGET_VERSION`: Specifies the tendermint dependency version

#### Update Submodules

To update the go-ethereum submodule to the target version:

```bash
make submodules
```

This command updates the go-ethereum submodule to the commit/tag specified by `ETHEREUM_SUBMODULE_COMMIT_OR_TAG` in the Makefile.

### Additional Commands

- `make lint`: Run linters for both Solidity and Go code
- `make fmt`: Format Solidity and Go code
- `make bindings`: Generate Go bindings from smart contracts
- `make geth`: Build the geth binary from the go-ethereum submodule

## Learn more

Website: https://www.morphl2.io/
Expand Down
2 changes: 1 addition & 1 deletion go-ethereum
Submodule go-ethereum updated 1118 files