From 41a2592b8cc2504ef30ad0e95481277e9f09d211 Mon Sep 17 00:00:00 2001
From: Arran Schlosberg <519948+ARR4N@users.noreply.github.com>
Date: Wed, 30 Oct 2024 13:51:41 +0000
Subject: [PATCH] chore: post-rename cleanup + `libevm` intro (#68)
## Why this should be merged
Cleans up loose ends after renaming the Go module. Also adds an
introduction to the README to explain the purpose of libevm.
## How this works
The changed hash in the workflow is just a fix (although a no-op). The
spaces after the copyright headers are to stop them from [showing up in
documentation](https://pkg.go.dev/github.com/ava-labs/libevm@v1.13.14-0.1.0-rc.1/params).
## How this was tested
n/a
---
.github/workflows/libevm-delta.yml | 4 ++--
README.md | 23 ++++++++++++++++-------
core/state_transition.libevm.go | 1 +
libevm/libevm.go | 1 +
params/config.libevm.go | 1 +
params/hooks.libevm.go | 1 +
params/json.libevm.go | 1 +
7 files changed, 23 insertions(+), 9 deletions(-)
diff --git a/.github/workflows/libevm-delta.yml b/.github/workflows/libevm-delta.yml
index 124bbea6dc..b2d4e1c668 100644
--- a/.github/workflows/libevm-delta.yml
+++ b/.github/workflows/libevm-delta.yml
@@ -10,8 +10,8 @@ on:
jobs:
diffs:
env:
- # Last commit on `renamed-go-module` branch to be merged into `main`
- LIBEVM_BASE: a7f08d0e757d5a69d3e269c69dcea7e45bab97e3
+ # Last commit from rename-module workflow job to be included in `main`
+ LIBEVM_BASE: 0b56af5a01b8a0c6fc9d60247bb79ffd03d1bcfd
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
diff --git a/README.md b/README.md
index efb72b5b07..0f18436b40 100644
--- a/README.md
+++ b/README.md
@@ -1,14 +1,23 @@
+# libevm
+
+[](https://pkg.go.dev/github.com/ava-labs/libevm?tab=doc)
+[](https://goreportcard.com/report/github.com/ava-labs/libevm)
+[](https://github.com/ava-labs/libevm/actions/workflows/go.yml)
+
+The Ethereum Virtual Machine (EVM) as a library, `libevm` is a fork of [`geth`](https://github.com/ethereum/go-ethereum) with
+injectable configuration directives. Although designed to support the Avalanche [C-Chain](https://github.com/ava-labs/coreth) and
+[EVM-L1s](https://github.com/ava-labs/subnet-evm) (formerly _subnets_), configuration is general-purpose and backwards-compatible
+with `geth`.
+
+
+We are immensely grateful for the hard work of the `geth` authors, and hope that our contribution can be of value to others too. Thank you!
+
## Go Ethereum
Golang execution layer implementation of the Ethereum protocol.
-[](https://pkg.go.dev/github.com/ethereum/go-ethereum?tab=doc)
-[](https://goreportcard.com/report/github.com/ethereum/go-ethereum)
-[](https://app.travis-ci.com/github/ethereum/go-ethereum)
-[](https://discord.gg/nthXNEv)
-
Automated builds are available for stable releases and the unstable master branch. Binary
archives are published at https://geth.ethereum.org/downloads/.
diff --git a/core/state_transition.libevm.go b/core/state_transition.libevm.go
index 8c30ebc4b2..49e509d563 100644
--- a/core/state_transition.libevm.go
+++ b/core/state_transition.libevm.go
@@ -13,6 +13,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see
// .
+
package core
// canExecuteTransaction is a convenience wrapper for calling the
diff --git a/libevm/libevm.go b/libevm/libevm.go
index cb2d1c46eb..af9941aedb 100644
--- a/libevm/libevm.go
+++ b/libevm/libevm.go
@@ -13,6 +13,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see
// .
+
package libevm
import (
diff --git a/params/config.libevm.go b/params/config.libevm.go
index ddde634f8a..479dd79b27 100644
--- a/params/config.libevm.go
+++ b/params/config.libevm.go
@@ -13,6 +13,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see
// .
+
package params
import (
diff --git a/params/hooks.libevm.go b/params/hooks.libevm.go
index 0e2127aca4..c67c7c5d3d 100644
--- a/params/hooks.libevm.go
+++ b/params/hooks.libevm.go
@@ -13,6 +13,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see
// .
+
package params
import (
diff --git a/params/json.libevm.go b/params/json.libevm.go
index 6b217cc1f8..9f66900892 100644
--- a/params/json.libevm.go
+++ b/params/json.libevm.go
@@ -13,6 +13,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see
// .
+
package params
import (