From e307b42735cbd57132c7f3c1a61e49d572d58652 Mon Sep 17 00:00:00 2001 From: Arran Schlosberg Date: Thu, 19 Sep 2024 11:31:25 -0400 Subject: [PATCH 1/7] doc: licensing of libevm extensions and modifications --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 1e8dba80909..1374d802f9f 100644 --- a/README.md +++ b/README.md @@ -356,3 +356,9 @@ also included in our repository in the `COPYING.LESSER` file. The go-ethereum binaries (i.e. all code inside of the `cmd` directory) are licensed under the [GNU General Public License v3.0](https://www.gnu.org/licenses/gpl-3.0.en.html), also included in our repository in the `COPYING` file. + +The libevm (i) _extensions_ to the go-ethereum library (i.e. all code in files with `libevm` in their full path, +be it a directory or file name); and (ii) _modifications_ to existing go-ethereum code; are licensed under the +[GNU Lesser General Public License v3.0](https://www.gnu.org/licenses/lgpl-3.0.en.html), +also included in our repository in the `COPYING.LESSER` file. A comprehensive outline of _modifications_ is +produced by the [libevm delta workflow](https://github.com/ava-labs/go-ethereum/actions/workflows/libevm-delta.yml). From 5bbb232675d65459cf596dc98c146a89611bf779 Mon Sep 17 00:00:00 2001 From: Arran Schlosberg Date: Thu, 19 Sep 2024 12:35:49 -0400 Subject: [PATCH 2/7] chore: add license headers via linter --- .golangci.yml | 7 +++++++ .libevm-header | 15 +++++++++++++++ core/state_transition.libevm.go | 15 +++++++++++++++ core/state_transition.libevm_test.go | 15 +++++++++++++++ core/vm/contracts.libevm.go | 15 +++++++++++++++ core/vm/contracts.libevm_test.go | 15 +++++++++++++++ core/vm/libevm_test.go | 15 +++++++++++++++ libevm/ethtest/evm.go | 16 ++++++++++++++++ libevm/ethtest/rand.go | 15 +++++++++++++++ libevm/hookstest/stub.go | 16 ++++++++++++++++ libevm/interfaces_test.go | 15 +++++++++++++++ libevm/libevm.go | 15 +++++++++++++++ libevm/pseudo/constructor.go | 15 +++++++++++++++ libevm/pseudo/constructor_test.go | 15 +++++++++++++++ libevm/pseudo/type.go | 16 ++++++++++++++++ libevm/pseudo/type_test.go | 15 +++++++++++++++ params/config.libevm.go | 15 +++++++++++++++ params/config.libevm_test.go | 15 +++++++++++++++ params/example.libevm_test.go | 16 ++++++++++++++++ params/hooks.libevm.go | 15 +++++++++++++++ params/json.libevm.go | 15 +++++++++++++++ params/json.libevm_test.go | 15 +++++++++++++++ 22 files changed, 326 insertions(+) create mode 100644 .libevm-header diff --git a/.golangci.yml b/.golangci.yml index 50be17eef8f..6d181550500 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -16,6 +16,7 @@ linters: - gci - gocheckcompilerdirectives - gofmt + - goheader - goimports - gomodguard - gosec @@ -53,6 +54,10 @@ linters-settings: - alias - dot - blank + goheader: + values: + template-path: .libevm-header + gomodguard: blocked: modules: @@ -78,6 +83,7 @@ issues: - errcheck - gci - gofmt + - goheader - gosec - gosimple - govet @@ -92,6 +98,7 @@ issues: - testifylint - thelper - tparallel + - typecheck - usestdlibvars - varnamelen - wastedassign diff --git a/.libevm-header b/.libevm-header new file mode 100644 index 00000000000..250acf7f6e3 --- /dev/null +++ b/.libevm-header @@ -0,0 +1,15 @@ +Copyright {{ MOD-YEAR }} the libevm authors. + +The libevm extensions of go-ethereum are free software: you can redistribute +them and/or modify them under the terms of the GNU Lesser General Public License +as published by the Free Software Foundation, either version 3 of the License, +or (at your option) any later version. + +The libevm extensions are distributed in the hope that they will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser +General Public License for more details. + +You should have received a copy of the GNU Lesser General Public License +along with the go-ethereum library. If not, see +. diff --git a/core/state_transition.libevm.go b/core/state_transition.libevm.go index 4d2ee16f020..209573ca3ac 100644 --- a/core/state_transition.libevm.go +++ b/core/state_transition.libevm.go @@ -1,3 +1,18 @@ +// Copyright 2024 the libevm authors. +// +// The libevm extensions of go-ethereum are free software: you can redistribute +// them and/or modify them under the terms of the GNU Lesser General Public License +// as published by the Free Software Foundation, either version 3 of the License, +// or (at your option) any later version. +// +// The libevm extensions are distributed in the hope that they will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser +// General Public License for more details. +// +// 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/core/state_transition.libevm_test.go b/core/state_transition.libevm_test.go index 15235b40133..8bedc9eea57 100644 --- a/core/state_transition.libevm_test.go +++ b/core/state_transition.libevm_test.go @@ -1,3 +1,18 @@ +// Copyright 2024 the libevm authors. +// +// The libevm extensions of go-ethereum are free software: you can redistribute +// them and/or modify them under the terms of the GNU Lesser General Public License +// as published by the Free Software Foundation, either version 3 of the License, +// or (at your option) any later version. +// +// The libevm extensions are distributed in the hope that they will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser +// General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with the go-ethereum library. If not, see +// . package core_test import ( diff --git a/core/vm/contracts.libevm.go b/core/vm/contracts.libevm.go index 32eb811076b..9cb514d3da1 100644 --- a/core/vm/contracts.libevm.go +++ b/core/vm/contracts.libevm.go @@ -1,3 +1,18 @@ +// Copyright 2024 the libevm authors. +// +// The libevm extensions of go-ethereum are free software: you can redistribute +// them and/or modify them under the terms of the GNU Lesser General Public License +// as published by the Free Software Foundation, either version 3 of the License, +// or (at your option) any later version. +// +// The libevm extensions are distributed in the hope that they will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser +// General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with the go-ethereum library. If not, see +// . package vm import ( diff --git a/core/vm/contracts.libevm_test.go b/core/vm/contracts.libevm_test.go index 7950aa91933..304e62b65a8 100644 --- a/core/vm/contracts.libevm_test.go +++ b/core/vm/contracts.libevm_test.go @@ -1,3 +1,18 @@ +// Copyright 2024 the libevm authors. +// +// The libevm extensions of go-ethereum are free software: you can redistribute +// them and/or modify them under the terms of the GNU Lesser General Public License +// as published by the Free Software Foundation, either version 3 of the License, +// or (at your option) any later version. +// +// The libevm extensions are distributed in the hope that they will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser +// General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with the go-ethereum library. If not, see +// . package vm_test import ( diff --git a/core/vm/libevm_test.go b/core/vm/libevm_test.go index 5c2fbb02a14..5d00188f983 100644 --- a/core/vm/libevm_test.go +++ b/core/vm/libevm_test.go @@ -1,3 +1,18 @@ +// Copyright 2024 the libevm authors. +// +// The libevm extensions of go-ethereum are free software: you can redistribute +// them and/or modify them under the terms of the GNU Lesser General Public License +// as published by the Free Software Foundation, either version 3 of the License, +// or (at your option) any later version. +// +// The libevm extensions are distributed in the hope that they will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser +// General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with the go-ethereum library. If not, see +// . package vm // The original RunPrecompiledContract was migrated to being a method on diff --git a/libevm/ethtest/evm.go b/libevm/ethtest/evm.go index bf79e64aff1..7ae6af42598 100644 --- a/libevm/ethtest/evm.go +++ b/libevm/ethtest/evm.go @@ -1,3 +1,19 @@ +// Copyright 2024 the libevm authors. +// +// The libevm extensions of go-ethereum are free software: you can redistribute +// them and/or modify them under the terms of the GNU Lesser General Public License +// as published by the Free Software Foundation, either version 3 of the License, +// or (at your option) any later version. +// +// The libevm extensions are distributed in the hope that they will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser +// General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with the go-ethereum library. If not, see +// . + // Package ethtest provides utility functions for use in testing // Ethereum-related functionality. package ethtest diff --git a/libevm/ethtest/rand.go b/libevm/ethtest/rand.go index b6319178d1e..8af12e1115f 100644 --- a/libevm/ethtest/rand.go +++ b/libevm/ethtest/rand.go @@ -1,3 +1,18 @@ +// Copyright 2024 the libevm authors. +// +// The libevm extensions of go-ethereum are free software: you can redistribute +// them and/or modify them under the terms of the GNU Lesser General Public License +// as published by the Free Software Foundation, either version 3 of the License, +// or (at your option) any later version. +// +// The libevm extensions are distributed in the hope that they will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser +// General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with the go-ethereum library. If not, see +// . package ethtest import ( diff --git a/libevm/hookstest/stub.go b/libevm/hookstest/stub.go index 5c090387ea2..1c48ad8e540 100644 --- a/libevm/hookstest/stub.go +++ b/libevm/hookstest/stub.go @@ -1,3 +1,19 @@ +// Copyright 2024 the libevm authors. +// +// The libevm extensions of go-ethereum are free software: you can redistribute +// them and/or modify them under the terms of the GNU Lesser General Public License +// as published by the Free Software Foundation, either version 3 of the License, +// or (at your option) any later version. +// +// The libevm extensions are distributed in the hope that they will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser +// General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with the go-ethereum library. If not, see +// . + // Package hookstest provides test doubles and convenience wrappers for testing // libevm hooks. package hookstest diff --git a/libevm/interfaces_test.go b/libevm/interfaces_test.go index 05497ed40ab..16669a77ccd 100644 --- a/libevm/interfaces_test.go +++ b/libevm/interfaces_test.go @@ -1,3 +1,18 @@ +// Copyright 2024 the libevm authors. +// +// The libevm extensions of go-ethereum are free software: you can redistribute +// them and/or modify them under the terms of the GNU Lesser General Public License +// as published by the Free Software Foundation, either version 3 of the License, +// or (at your option) any later version. +// +// The libevm extensions are distributed in the hope that they will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser +// General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with the go-ethereum library. If not, see +// . package libevm_test import ( diff --git a/libevm/libevm.go b/libevm/libevm.go index bd11f971fef..6e2a1ac9e4d 100644 --- a/libevm/libevm.go +++ b/libevm/libevm.go @@ -1,3 +1,18 @@ +// Copyright 2024 the libevm authors +// +// The libevm extensions of go-ethereum are free software: you can redistribute +// it and/or modify it under the terms of the GNU Lesser General Public License +// as published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// The libevm extensions are distributed in the hope that they will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser +// General Public License for more details. +// +// 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/libevm/pseudo/constructor.go b/libevm/pseudo/constructor.go index 91429240340..835aaeac460 100644 --- a/libevm/pseudo/constructor.go +++ b/libevm/pseudo/constructor.go @@ -1,3 +1,18 @@ +// Copyright 2024 the libevm authors. +// +// The libevm extensions of go-ethereum are free software: you can redistribute +// them and/or modify them under the terms of the GNU Lesser General Public License +// as published by the Free Software Foundation, either version 3 of the License, +// or (at your option) any later version. +// +// The libevm extensions are distributed in the hope that they will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser +// General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with the go-ethereum library. If not, see +// . package pseudo // A Constructor returns newly constructed [Type] instances for a pre-registered diff --git a/libevm/pseudo/constructor_test.go b/libevm/pseudo/constructor_test.go index 7b681c48d63..60732d6b7cd 100644 --- a/libevm/pseudo/constructor_test.go +++ b/libevm/pseudo/constructor_test.go @@ -1,3 +1,18 @@ +// Copyright 2024 the libevm authors. +// +// The libevm extensions of go-ethereum are free software: you can redistribute +// them and/or modify them under the terms of the GNU Lesser General Public License +// as published by the Free Software Foundation, either version 3 of the License, +// or (at your option) any later version. +// +// The libevm extensions are distributed in the hope that they will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser +// General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with the go-ethereum library. If not, see +// . package pseudo import ( diff --git a/libevm/pseudo/type.go b/libevm/pseudo/type.go index 822198f9737..927e5ac6cd4 100644 --- a/libevm/pseudo/type.go +++ b/libevm/pseudo/type.go @@ -1,3 +1,19 @@ +// Copyright 2024 the libevm authors. +// +// The libevm extensions of go-ethereum are free software: you can redistribute +// them and/or modify them under the terms of the GNU Lesser General Public License +// as published by the Free Software Foundation, either version 3 of the License, +// or (at your option) any later version. +// +// The libevm extensions are distributed in the hope that they will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser +// General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with the go-ethereum library. If not, see +// . + // Package pseudo provides a bridge between generic and non-generic code via // pseudo-types and pseudo-values. With careful usage, there is minimal // reduction in type safety. diff --git a/libevm/pseudo/type_test.go b/libevm/pseudo/type_test.go index 8a47fe562b8..825d822f1b3 100644 --- a/libevm/pseudo/type_test.go +++ b/libevm/pseudo/type_test.go @@ -1,3 +1,18 @@ +// Copyright 2024 the libevm authors. +// +// The libevm extensions of go-ethereum are free software: you can redistribute +// them and/or modify them under the terms of the GNU Lesser General Public License +// as published by the Free Software Foundation, either version 3 of the License, +// or (at your option) any later version. +// +// The libevm extensions are distributed in the hope that they will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser +// General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with the go-ethereum library. If not, see +// . package pseudo import ( diff --git a/params/config.libevm.go b/params/config.libevm.go index e4e43d91228..7a8b352573c 100644 --- a/params/config.libevm.go +++ b/params/config.libevm.go @@ -1,3 +1,18 @@ +// Copyright 2024 the libevm authors. +// +// The libevm extensions of go-ethereum are free software: you can redistribute +// them and/or modify them under the terms of the GNU Lesser General Public License +// as published by the Free Software Foundation, either version 3 of the License, +// or (at your option) any later version. +// +// The libevm extensions are distributed in the hope that they will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser +// General Public License for more details. +// +// 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/config.libevm_test.go b/params/config.libevm_test.go index 524117e81b7..f1dae014857 100644 --- a/params/config.libevm_test.go +++ b/params/config.libevm_test.go @@ -1,3 +1,18 @@ +// Copyright 2024 the libevm authors. +// +// The libevm extensions of go-ethereum are free software: you can redistribute +// them and/or modify them under the terms of the GNU Lesser General Public License +// as published by the Free Software Foundation, either version 3 of the License, +// or (at your option) any later version. +// +// The libevm extensions are distributed in the hope that they will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser +// General Public License for more details. +// +// 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/example.libevm_test.go b/params/example.libevm_test.go index 631e528bbef..3d0b6a3af8d 100644 --- a/params/example.libevm_test.go +++ b/params/example.libevm_test.go @@ -1,3 +1,19 @@ +// Copyright 2024 the libevm authors. +// +// The libevm extensions of go-ethereum are free software: you can redistribute +// them and/or modify them under the terms of the GNU Lesser General Public License +// as published by the Free Software Foundation, either version 3 of the License, +// or (at your option) any later version. +// +// The libevm extensions are distributed in the hope that they will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser +// General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with the go-ethereum library. If not, see +// . + // In practice, everything in this file except for the Example() function SHOULD // be a standalone package, typically called `extraparams`. As long as this new // package is imported anywhere, its init() function will register the "extra" diff --git a/params/hooks.libevm.go b/params/hooks.libevm.go index 75fabbd3cce..57df29d793a 100644 --- a/params/hooks.libevm.go +++ b/params/hooks.libevm.go @@ -1,3 +1,18 @@ +// Copyright 2024 the libevm authors. +// +// The libevm extensions of go-ethereum are free software: you can redistribute +// them and/or modify them under the terms of the GNU Lesser General Public License +// as published by the Free Software Foundation, either version 3 of the License, +// or (at your option) any later version. +// +// The libevm extensions are distributed in the hope that they will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser +// General Public License for more details. +// +// 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 a60dd39062a..bf053c9fa57 100644 --- a/params/json.libevm.go +++ b/params/json.libevm.go @@ -1,3 +1,18 @@ +// Copyright 2024 the libevm authors. +// +// The libevm extensions of go-ethereum are free software: you can redistribute +// them and/or modify them under the terms of the GNU Lesser General Public License +// as published by the Free Software Foundation, either version 3 of the License, +// or (at your option) any later version. +// +// The libevm extensions are distributed in the hope that they will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser +// General Public License for more details. +// +// 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_test.go b/params/json.libevm_test.go index aa9f7928fdf..c2876b2c4d2 100644 --- a/params/json.libevm_test.go +++ b/params/json.libevm_test.go @@ -1,3 +1,18 @@ +// Copyright 2024 the libevm authors. +// +// The libevm extensions of go-ethereum are free software: you can redistribute +// them and/or modify them under the terms of the GNU Lesser General Public License +// as published by the Free Software Foundation, either version 3 of the License, +// or (at your option) any later version. +// +// The libevm extensions are distributed in the hope that they will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser +// General Public License for more details. +// +// 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 ( From 1f31b7e1e39498a5b648dfa26b1524d272ed1b00 Mon Sep 17 00:00:00 2001 From: Arran Schlosberg Date: Thu, 19 Sep 2024 12:40:19 -0400 Subject: [PATCH 3/7] chore: `golangci-lint run --fix` --- core/state_transition.libevm.go | 6 +++--- core/state_transition.libevm_test.go | 6 +++--- core/vm/contracts.libevm.go | 6 +++--- core/vm/contracts.libevm_test.go | 6 +++--- core/vm/libevm_test.go | 6 +++--- libevm/ethtest/evm.go | 6 +++--- libevm/ethtest/rand.go | 6 +++--- libevm/hookstest/stub.go | 6 +++--- libevm/interfaces_test.go | 6 +++--- libevm/pseudo/constructor.go | 6 +++--- libevm/pseudo/constructor_test.go | 6 +++--- libevm/pseudo/type.go | 6 +++--- libevm/pseudo/type_test.go | 6 +++--- params/config.libevm.go | 6 +++--- params/config.libevm_test.go | 6 +++--- params/example.libevm_test.go | 6 +++--- params/hooks.libevm.go | 6 +++--- params/json.libevm.go | 6 +++--- params/json.libevm_test.go | 6 +++--- 19 files changed, 57 insertions(+), 57 deletions(-) diff --git a/core/state_transition.libevm.go b/core/state_transition.libevm.go index 209573ca3ac..ca6c4493e99 100644 --- a/core/state_transition.libevm.go +++ b/core/state_transition.libevm.go @@ -1,15 +1,15 @@ // Copyright 2024 the libevm authors. -// +// // The libevm extensions of go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. -// +// // The libevm extensions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. -// +// // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see // . diff --git a/core/state_transition.libevm_test.go b/core/state_transition.libevm_test.go index 8bedc9eea57..54fe37675b8 100644 --- a/core/state_transition.libevm_test.go +++ b/core/state_transition.libevm_test.go @@ -1,15 +1,15 @@ // Copyright 2024 the libevm authors. -// +// // The libevm extensions of go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. -// +// // The libevm extensions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. -// +// // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see // . diff --git a/core/vm/contracts.libevm.go b/core/vm/contracts.libevm.go index 9cb514d3da1..3063b5f70c6 100644 --- a/core/vm/contracts.libevm.go +++ b/core/vm/contracts.libevm.go @@ -1,15 +1,15 @@ // Copyright 2024 the libevm authors. -// +// // The libevm extensions of go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. -// +// // The libevm extensions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. -// +// // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see // . diff --git a/core/vm/contracts.libevm_test.go b/core/vm/contracts.libevm_test.go index 304e62b65a8..9bf4ac2cd56 100644 --- a/core/vm/contracts.libevm_test.go +++ b/core/vm/contracts.libevm_test.go @@ -1,15 +1,15 @@ // Copyright 2024 the libevm authors. -// +// // The libevm extensions of go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. -// +// // The libevm extensions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. -// +// // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see // . diff --git a/core/vm/libevm_test.go b/core/vm/libevm_test.go index 5d00188f983..1cd959d82c0 100644 --- a/core/vm/libevm_test.go +++ b/core/vm/libevm_test.go @@ -1,15 +1,15 @@ // Copyright 2024 the libevm authors. -// +// // The libevm extensions of go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. -// +// // The libevm extensions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. -// +// // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see // . diff --git a/libevm/ethtest/evm.go b/libevm/ethtest/evm.go index 7ae6af42598..1f9d8609e06 100644 --- a/libevm/ethtest/evm.go +++ b/libevm/ethtest/evm.go @@ -1,15 +1,15 @@ // Copyright 2024 the libevm authors. -// +// // The libevm extensions of go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. -// +// // The libevm extensions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. -// +// // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see // . diff --git a/libevm/ethtest/rand.go b/libevm/ethtest/rand.go index 8af12e1115f..9ab2c9e432e 100644 --- a/libevm/ethtest/rand.go +++ b/libevm/ethtest/rand.go @@ -1,15 +1,15 @@ // Copyright 2024 the libevm authors. -// +// // The libevm extensions of go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. -// +// // The libevm extensions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. -// +// // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see // . diff --git a/libevm/hookstest/stub.go b/libevm/hookstest/stub.go index 1c48ad8e540..b7846578962 100644 --- a/libevm/hookstest/stub.go +++ b/libevm/hookstest/stub.go @@ -1,15 +1,15 @@ // Copyright 2024 the libevm authors. -// +// // The libevm extensions of go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. -// +// // The libevm extensions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. -// +// // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see // . diff --git a/libevm/interfaces_test.go b/libevm/interfaces_test.go index 16669a77ccd..1a7053ad5b9 100644 --- a/libevm/interfaces_test.go +++ b/libevm/interfaces_test.go @@ -1,15 +1,15 @@ // Copyright 2024 the libevm authors. -// +// // The libevm extensions of go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. -// +// // The libevm extensions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. -// +// // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see // . diff --git a/libevm/pseudo/constructor.go b/libevm/pseudo/constructor.go index 835aaeac460..b14550626e6 100644 --- a/libevm/pseudo/constructor.go +++ b/libevm/pseudo/constructor.go @@ -1,15 +1,15 @@ // Copyright 2024 the libevm authors. -// +// // The libevm extensions of go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. -// +// // The libevm extensions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. -// +// // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see // . diff --git a/libevm/pseudo/constructor_test.go b/libevm/pseudo/constructor_test.go index 60732d6b7cd..90099724a95 100644 --- a/libevm/pseudo/constructor_test.go +++ b/libevm/pseudo/constructor_test.go @@ -1,15 +1,15 @@ // Copyright 2024 the libevm authors. -// +// // The libevm extensions of go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. -// +// // The libevm extensions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. -// +// // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see // . diff --git a/libevm/pseudo/type.go b/libevm/pseudo/type.go index 927e5ac6cd4..72afcc66a21 100644 --- a/libevm/pseudo/type.go +++ b/libevm/pseudo/type.go @@ -1,15 +1,15 @@ // Copyright 2024 the libevm authors. -// +// // The libevm extensions of go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. -// +// // The libevm extensions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. -// +// // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see // . diff --git a/libevm/pseudo/type_test.go b/libevm/pseudo/type_test.go index 825d822f1b3..94dc7249ea0 100644 --- a/libevm/pseudo/type_test.go +++ b/libevm/pseudo/type_test.go @@ -1,15 +1,15 @@ // Copyright 2024 the libevm authors. -// +// // The libevm extensions of go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. -// +// // The libevm extensions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. -// +// // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see // . diff --git a/params/config.libevm.go b/params/config.libevm.go index 7a8b352573c..f66f7dfff4d 100644 --- a/params/config.libevm.go +++ b/params/config.libevm.go @@ -1,15 +1,15 @@ // Copyright 2024 the libevm authors. -// +// // The libevm extensions of go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. -// +// // The libevm extensions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. -// +// // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see // . diff --git a/params/config.libevm_test.go b/params/config.libevm_test.go index f1dae014857..bb449faf966 100644 --- a/params/config.libevm_test.go +++ b/params/config.libevm_test.go @@ -1,15 +1,15 @@ // Copyright 2024 the libevm authors. -// +// // The libevm extensions of go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. -// +// // The libevm extensions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. -// +// // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see // . diff --git a/params/example.libevm_test.go b/params/example.libevm_test.go index 3d0b6a3af8d..bd4f8fa6809 100644 --- a/params/example.libevm_test.go +++ b/params/example.libevm_test.go @@ -1,15 +1,15 @@ // Copyright 2024 the libevm authors. -// +// // The libevm extensions of go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. -// +// // The libevm extensions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. -// +// // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see // . diff --git a/params/hooks.libevm.go b/params/hooks.libevm.go index 57df29d793a..9beec005ddf 100644 --- a/params/hooks.libevm.go +++ b/params/hooks.libevm.go @@ -1,15 +1,15 @@ // Copyright 2024 the libevm authors. -// +// // The libevm extensions of go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. -// +// // The libevm extensions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. -// +// // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see // . diff --git a/params/json.libevm.go b/params/json.libevm.go index bf053c9fa57..64528dae003 100644 --- a/params/json.libevm.go +++ b/params/json.libevm.go @@ -1,15 +1,15 @@ // Copyright 2024 the libevm authors. -// +// // The libevm extensions of go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. -// +// // The libevm extensions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. -// +// // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see // . diff --git a/params/json.libevm_test.go b/params/json.libevm_test.go index c2876b2c4d2..c96ad651ceb 100644 --- a/params/json.libevm_test.go +++ b/params/json.libevm_test.go @@ -1,15 +1,15 @@ // Copyright 2024 the libevm authors. -// +// // The libevm extensions of go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. -// +// // The libevm extensions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. -// +// // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see // . From b28391153e80762cb1d28c33b19a0213111a11f4 Mon Sep 17 00:00:00 2001 From: Arran Schlosberg Date: Thu, 19 Sep 2024 12:45:40 -0400 Subject: [PATCH 4/7] chore: `golangci-lint run --fix` --- core/vm/stack.libevm.go | 15 +++++++++++++++ core/vm/stack.libevm_test.go | 15 +++++++++++++++ params/hooks.libevm_test.go | 15 +++++++++++++++ 3 files changed, 45 insertions(+) diff --git a/core/vm/stack.libevm.go b/core/vm/stack.libevm.go index bc16735276c..6248c150025 100644 --- a/core/vm/stack.libevm.go +++ b/core/vm/stack.libevm.go @@ -1,3 +1,18 @@ +// Copyright 2024 the libevm authors. +// +// The libevm extensions of go-ethereum are free software: you can redistribute +// them and/or modify them under the terms of the GNU Lesser General Public License +// as published by the Free Software Foundation, either version 3 of the License, +// or (at your option) any later version. +// +// The libevm extensions are distributed in the hope that they will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser +// General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with the go-ethereum library. If not, see +// . package vm import "github.com/holiman/uint256" diff --git a/core/vm/stack.libevm_test.go b/core/vm/stack.libevm_test.go index f6ce05e1a6b..7261e71f36f 100644 --- a/core/vm/stack.libevm_test.go +++ b/core/vm/stack.libevm_test.go @@ -1,3 +1,18 @@ +// Copyright 2024 the libevm authors. +// +// The libevm extensions of go-ethereum are free software: you can redistribute +// them and/or modify them under the terms of the GNU Lesser General Public License +// as published by the Free Software Foundation, either version 3 of the License, +// or (at your option) any later version. +// +// The libevm extensions are distributed in the hope that they will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser +// General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with the go-ethereum library. If not, see +// . package vm_test import ( diff --git a/params/hooks.libevm_test.go b/params/hooks.libevm_test.go index 4b9fbf4e9d1..a4fc3f95869 100644 --- a/params/hooks.libevm_test.go +++ b/params/hooks.libevm_test.go @@ -1,3 +1,18 @@ +// Copyright 2024 the libevm authors. +// +// The libevm extensions of go-ethereum are free software: you can redistribute +// them and/or modify them under the terms of the GNU Lesser General Public License +// as published by the Free Software Foundation, either version 3 of the License, +// or (at your option) any later version. +// +// The libevm extensions are distributed in the hope that they will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser +// General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with the go-ethereum library. If not, see +// . package params_test import ( From c1811f9d298c6e80c6f12e19c608d525f372b2ca Mon Sep 17 00:00:00 2001 From: Arran Schlosberg Date: Thu, 19 Sep 2024 15:42:53 -0400 Subject: [PATCH 5/7] chore: fix `libevm/libevm.go` header --- libevm/libevm.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libevm/libevm.go b/libevm/libevm.go index 6e2a1ac9e4d..6b5e221291a 100644 --- a/libevm/libevm.go +++ b/libevm/libevm.go @@ -1,9 +1,9 @@ -// Copyright 2024 the libevm authors +// Copyright 2024 the libevm authors. // // The libevm extensions of go-ethereum are free software: you can redistribute -// it and/or modify it under the terms of the GNU Lesser General Public License -// as published by the Free Software Foundation, either version 3 of the -// License, or (at your option) any later version. +// them and/or modify them under the terms of the GNU Lesser General Public License +// as published by the Free Software Foundation, either version 3 of the License, +// or (at your option) any later version. // // The libevm extensions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of From e3557a65828a994f8d0add6862e42a366fc95e27 Mon Sep 17 00:00:00 2001 From: Arran Schlosberg Date: Thu, 19 Sep 2024 17:28:07 -0400 Subject: [PATCH 6/7] chore: `s/extensions/additions/` --- .libevm-header | 4 ++-- README.md | 2 +- core/state_transition.libevm.go | 4 ++-- core/state_transition.libevm_test.go | 4 ++-- core/vm/contracts.libevm.go | 4 ++-- core/vm/contracts.libevm_test.go | 4 ++-- core/vm/libevm_test.go | 4 ++-- core/vm/stack.libevm.go | 4 ++-- core/vm/stack.libevm_test.go | 4 ++-- libevm/ethtest/evm.go | 4 ++-- libevm/ethtest/rand.go | 4 ++-- libevm/hookstest/stub.go | 4 ++-- libevm/interfaces_test.go | 4 ++-- libevm/libevm.go | 4 ++-- libevm/pseudo/constructor.go | 4 ++-- libevm/pseudo/constructor_test.go | 4 ++-- libevm/pseudo/type.go | 4 ++-- libevm/pseudo/type_test.go | 4 ++-- params/config.libevm.go | 4 ++-- params/config.libevm_test.go | 4 ++-- params/example.libevm_test.go | 4 ++-- params/hooks.libevm.go | 4 ++-- params/hooks.libevm_test.go | 4 ++-- params/json.libevm.go | 4 ++-- params/json.libevm_test.go | 4 ++-- 25 files changed, 49 insertions(+), 49 deletions(-) diff --git a/.libevm-header b/.libevm-header index 250acf7f6e3..f8685d93f28 100644 --- a/.libevm-header +++ b/.libevm-header @@ -1,11 +1,11 @@ Copyright {{ MOD-YEAR }} the libevm authors. -The libevm extensions of go-ethereum are free software: you can redistribute +The libevm additions to go-ethereum are free software: you can redistribute them and/or modify them under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -The libevm extensions are distributed in the hope that they will be useful, +The libevm additions are distributed in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. diff --git a/README.md b/README.md index 1374d802f9f..b4f80524a04 100644 --- a/README.md +++ b/README.md @@ -357,7 +357,7 @@ The go-ethereum binaries (i.e. all code inside of the `cmd` directory) are licen [GNU General Public License v3.0](https://www.gnu.org/licenses/gpl-3.0.en.html), also included in our repository in the `COPYING` file. -The libevm (i) _extensions_ to the go-ethereum library (i.e. all code in files with `libevm` in their full path, +The libevm (i) _additions_ to the go-ethereum library (i.e. all code in files with `libevm` in their full path, be it a directory or file name); and (ii) _modifications_ to existing go-ethereum code; are licensed under the [GNU Lesser General Public License v3.0](https://www.gnu.org/licenses/lgpl-3.0.en.html), also included in our repository in the `COPYING.LESSER` file. A comprehensive outline of _modifications_ is diff --git a/core/state_transition.libevm.go b/core/state_transition.libevm.go index ca6c4493e99..8c30ebc4b2e 100644 --- a/core/state_transition.libevm.go +++ b/core/state_transition.libevm.go @@ -1,11 +1,11 @@ // Copyright 2024 the libevm authors. // -// The libevm extensions of go-ethereum are free software: you can redistribute +// The libevm additions to go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // -// The libevm extensions are distributed in the hope that they will be useful, +// The libevm additions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. diff --git a/core/state_transition.libevm_test.go b/core/state_transition.libevm_test.go index 54fe37675b8..26abd15a47d 100644 --- a/core/state_transition.libevm_test.go +++ b/core/state_transition.libevm_test.go @@ -1,11 +1,11 @@ // Copyright 2024 the libevm authors. // -// The libevm extensions of go-ethereum are free software: you can redistribute +// The libevm additions to go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // -// The libevm extensions are distributed in the hope that they will be useful, +// The libevm additions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. diff --git a/core/vm/contracts.libevm.go b/core/vm/contracts.libevm.go index 89be64c294b..78f6df9192b 100644 --- a/core/vm/contracts.libevm.go +++ b/core/vm/contracts.libevm.go @@ -1,11 +1,11 @@ // Copyright 2024 the libevm authors. // -// The libevm extensions of go-ethereum are free software: you can redistribute +// The libevm additions to go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // -// The libevm extensions are distributed in the hope that they will be useful, +// The libevm additions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. diff --git a/core/vm/contracts.libevm_test.go b/core/vm/contracts.libevm_test.go index 891b7c1530d..d40513f89c4 100644 --- a/core/vm/contracts.libevm_test.go +++ b/core/vm/contracts.libevm_test.go @@ -1,11 +1,11 @@ // Copyright 2024 the libevm authors. // -// The libevm extensions of go-ethereum are free software: you can redistribute +// The libevm additions to go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // -// The libevm extensions are distributed in the hope that they will be useful, +// The libevm additions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. diff --git a/core/vm/libevm_test.go b/core/vm/libevm_test.go index 1cd959d82c0..4e365d4e425 100644 --- a/core/vm/libevm_test.go +++ b/core/vm/libevm_test.go @@ -1,11 +1,11 @@ // Copyright 2024 the libevm authors. // -// The libevm extensions of go-ethereum are free software: you can redistribute +// The libevm additions to go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // -// The libevm extensions are distributed in the hope that they will be useful, +// The libevm additions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. diff --git a/core/vm/stack.libevm.go b/core/vm/stack.libevm.go index 6248c150025..a022a62197e 100644 --- a/core/vm/stack.libevm.go +++ b/core/vm/stack.libevm.go @@ -1,11 +1,11 @@ // Copyright 2024 the libevm authors. // -// The libevm extensions of go-ethereum are free software: you can redistribute +// The libevm additions to go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // -// The libevm extensions are distributed in the hope that they will be useful, +// The libevm additions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. diff --git a/core/vm/stack.libevm_test.go b/core/vm/stack.libevm_test.go index 7261e71f36f..5a0db845439 100644 --- a/core/vm/stack.libevm_test.go +++ b/core/vm/stack.libevm_test.go @@ -1,11 +1,11 @@ // Copyright 2024 the libevm authors. // -// The libevm extensions of go-ethereum are free software: you can redistribute +// The libevm additions to go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // -// The libevm extensions are distributed in the hope that they will be useful, +// The libevm additions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. diff --git a/libevm/ethtest/evm.go b/libevm/ethtest/evm.go index 585279b0fbc..27a7c474584 100644 --- a/libevm/ethtest/evm.go +++ b/libevm/ethtest/evm.go @@ -1,11 +1,11 @@ // Copyright 2024 the libevm authors. // -// The libevm extensions of go-ethereum are free software: you can redistribute +// The libevm additions to go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // -// The libevm extensions are distributed in the hope that they will be useful, +// The libevm additions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. diff --git a/libevm/ethtest/rand.go b/libevm/ethtest/rand.go index 9ab2c9e432e..8584ce11698 100644 --- a/libevm/ethtest/rand.go +++ b/libevm/ethtest/rand.go @@ -1,11 +1,11 @@ // Copyright 2024 the libevm authors. // -// The libevm extensions of go-ethereum are free software: you can redistribute +// The libevm additions to go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // -// The libevm extensions are distributed in the hope that they will be useful, +// The libevm additions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. diff --git a/libevm/hookstest/stub.go b/libevm/hookstest/stub.go index b63eb360a7f..78fec96f0e7 100644 --- a/libevm/hookstest/stub.go +++ b/libevm/hookstest/stub.go @@ -1,11 +1,11 @@ // Copyright 2024 the libevm authors. // -// The libevm extensions of go-ethereum are free software: you can redistribute +// The libevm additions to go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // -// The libevm extensions are distributed in the hope that they will be useful, +// The libevm additions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. diff --git a/libevm/interfaces_test.go b/libevm/interfaces_test.go index 1a7053ad5b9..0357db665b0 100644 --- a/libevm/interfaces_test.go +++ b/libevm/interfaces_test.go @@ -1,11 +1,11 @@ // Copyright 2024 the libevm authors. // -// The libevm extensions of go-ethereum are free software: you can redistribute +// The libevm additions to go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // -// The libevm extensions are distributed in the hope that they will be useful, +// The libevm additions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. diff --git a/libevm/libevm.go b/libevm/libevm.go index 6b5e221291a..31f8b11b510 100644 --- a/libevm/libevm.go +++ b/libevm/libevm.go @@ -1,11 +1,11 @@ // Copyright 2024 the libevm authors. // -// The libevm extensions of go-ethereum are free software: you can redistribute +// The libevm additions to go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // -// The libevm extensions are distributed in the hope that they will be useful, +// The libevm additions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. diff --git a/libevm/pseudo/constructor.go b/libevm/pseudo/constructor.go index b14550626e6..42457278572 100644 --- a/libevm/pseudo/constructor.go +++ b/libevm/pseudo/constructor.go @@ -1,11 +1,11 @@ // Copyright 2024 the libevm authors. // -// The libevm extensions of go-ethereum are free software: you can redistribute +// The libevm additions to go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // -// The libevm extensions are distributed in the hope that they will be useful, +// The libevm additions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. diff --git a/libevm/pseudo/constructor_test.go b/libevm/pseudo/constructor_test.go index 90099724a95..4dc3b19aef6 100644 --- a/libevm/pseudo/constructor_test.go +++ b/libevm/pseudo/constructor_test.go @@ -1,11 +1,11 @@ // Copyright 2024 the libevm authors. // -// The libevm extensions of go-ethereum are free software: you can redistribute +// The libevm additions to go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // -// The libevm extensions are distributed in the hope that they will be useful, +// The libevm additions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. diff --git a/libevm/pseudo/type.go b/libevm/pseudo/type.go index 72afcc66a21..21eb31e2aa2 100644 --- a/libevm/pseudo/type.go +++ b/libevm/pseudo/type.go @@ -1,11 +1,11 @@ // Copyright 2024 the libevm authors. // -// The libevm extensions of go-ethereum are free software: you can redistribute +// The libevm additions to go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // -// The libevm extensions are distributed in the hope that they will be useful, +// The libevm additions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. diff --git a/libevm/pseudo/type_test.go b/libevm/pseudo/type_test.go index 94dc7249ea0..d68348cff06 100644 --- a/libevm/pseudo/type_test.go +++ b/libevm/pseudo/type_test.go @@ -1,11 +1,11 @@ // Copyright 2024 the libevm authors. // -// The libevm extensions of go-ethereum are free software: you can redistribute +// The libevm additions to go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // -// The libevm extensions are distributed in the hope that they will be useful, +// The libevm additions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. diff --git a/params/config.libevm.go b/params/config.libevm.go index f66f7dfff4d..f427e400360 100644 --- a/params/config.libevm.go +++ b/params/config.libevm.go @@ -1,11 +1,11 @@ // Copyright 2024 the libevm authors. // -// The libevm extensions of go-ethereum are free software: you can redistribute +// The libevm additions to go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // -// The libevm extensions are distributed in the hope that they will be useful, +// The libevm additions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. diff --git a/params/config.libevm_test.go b/params/config.libevm_test.go index bb449faf966..f9faae9b115 100644 --- a/params/config.libevm_test.go +++ b/params/config.libevm_test.go @@ -1,11 +1,11 @@ // Copyright 2024 the libevm authors. // -// The libevm extensions of go-ethereum are free software: you can redistribute +// The libevm additions to go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // -// The libevm extensions are distributed in the hope that they will be useful, +// The libevm additions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. diff --git a/params/example.libevm_test.go b/params/example.libevm_test.go index f6e29f29ac9..9e8a990d3b6 100644 --- a/params/example.libevm_test.go +++ b/params/example.libevm_test.go @@ -1,11 +1,11 @@ // Copyright 2024 the libevm authors. // -// The libevm extensions of go-ethereum are free software: you can redistribute +// The libevm additions to go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // -// The libevm extensions are distributed in the hope that they will be useful, +// The libevm additions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. diff --git a/params/hooks.libevm.go b/params/hooks.libevm.go index 11e88dc23a6..57e40d4f31a 100644 --- a/params/hooks.libevm.go +++ b/params/hooks.libevm.go @@ -1,11 +1,11 @@ // Copyright 2024 the libevm authors. // -// The libevm extensions of go-ethereum are free software: you can redistribute +// The libevm additions to go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // -// The libevm extensions are distributed in the hope that they will be useful, +// The libevm additions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. diff --git a/params/hooks.libevm_test.go b/params/hooks.libevm_test.go index a4fc3f95869..8cec3103b20 100644 --- a/params/hooks.libevm_test.go +++ b/params/hooks.libevm_test.go @@ -1,11 +1,11 @@ // Copyright 2024 the libevm authors. // -// The libevm extensions of go-ethereum are free software: you can redistribute +// The libevm additions to go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // -// The libevm extensions are distributed in the hope that they will be useful, +// The libevm additions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. diff --git a/params/json.libevm.go b/params/json.libevm.go index 64528dae003..c18ae4c0a10 100644 --- a/params/json.libevm.go +++ b/params/json.libevm.go @@ -1,11 +1,11 @@ // Copyright 2024 the libevm authors. // -// The libevm extensions of go-ethereum are free software: you can redistribute +// The libevm additions to go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // -// The libevm extensions are distributed in the hope that they will be useful, +// The libevm additions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. diff --git a/params/json.libevm_test.go b/params/json.libevm_test.go index c96ad651ceb..66173d350f7 100644 --- a/params/json.libevm_test.go +++ b/params/json.libevm_test.go @@ -1,11 +1,11 @@ // Copyright 2024 the libevm authors. // -// The libevm extensions of go-ethereum are free software: you can redistribute +// The libevm additions to go-ethereum are free software: you can redistribute // them and/or modify them under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // -// The libevm extensions are distributed in the hope that they will be useful, +// The libevm additions are distributed in the hope that they will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser // General Public License for more details. From 48f03d61cafd48e16c052dc96e0ccce74b86352a Mon Sep 17 00:00:00 2001 From: Arran Schlosberg Date: Thu, 19 Sep 2024 17:32:31 -0400 Subject: [PATCH 7/7] chore: add missing headers --- core/vm/evm.libevm_test.go | 15 +++++++++++++++ core/vm/hooks.libevm.go | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/core/vm/evm.libevm_test.go b/core/vm/evm.libevm_test.go index 3987ab1f2fe..069dbc28879 100644 --- a/core/vm/evm.libevm_test.go +++ b/core/vm/evm.libevm_test.go @@ -1,3 +1,18 @@ +// Copyright 2024 the libevm authors. +// +// The libevm additions to go-ethereum are free software: you can redistribute +// them and/or modify them under the terms of the GNU Lesser General Public License +// as published by the Free Software Foundation, either version 3 of the License, +// or (at your option) any later version. +// +// The libevm additions are distributed in the hope that they will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser +// General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with the go-ethereum library. If not, see +// . package vm import ( diff --git a/core/vm/hooks.libevm.go b/core/vm/hooks.libevm.go index bd5668b593d..42b7f93a49e 100644 --- a/core/vm/hooks.libevm.go +++ b/core/vm/hooks.libevm.go @@ -1,3 +1,18 @@ +// Copyright 2024 the libevm authors. +// +// The libevm additions to go-ethereum are free software: you can redistribute +// them and/or modify them under the terms of the GNU Lesser General Public License +// as published by the Free Software Foundation, either version 3 of the License, +// or (at your option) any later version. +// +// The libevm additions are distributed in the hope that they will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser +// General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with the go-ethereum library. If not, see +// . package vm import "github.com/ethereum/go-ethereum/params"