Skip to content
This repository has been archived by the owner on Dec 5, 2021. It is now read-only.

Commit

Permalink
pkg: l2geth (#21)
Browse files Browse the repository at this point in the history
* pkg: import l2geth

* chore: add l2geth tests submodule

* ci: unit test l2geth

* chore: skip Android tests

* chore: cleanup ci
  • Loading branch information
gakonst authored Mar 30, 2021
1 parent 788b4f2 commit 8de52b9
Show file tree
Hide file tree
Showing 1,247 changed files with 582,892 additions and 2 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/geth.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: geth unit tests

on:
push:
branches:
- master
pull_request:
branches:
- master

defaults:
run:
working-directory: ./l2geth

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.14.x

- name: Checkout code
uses: actions/checkout@v2

- name: Lint
run: make lint

tests:
runs-on: ubuntu-latest

steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.14.x

- name: Checkout code
uses: actions/checkout@v2

- name: Install
run: make

- name: Test
run: make test
File renamed without changes.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ temp
.nyc_output
*.tsbuildinfo

build
dist

artifacts
artifacts-ovm
cache
cache-ovm

l2geth/build/bin

3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "tests"]
path = l2geth/tests/testdata
url = https://github.com/ethereum/tests
5 changes: 5 additions & 0 deletions l2geth/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**/*_test.go

build/_workspace
build/_bin
tests/testdata
3 changes: 3 additions & 0 deletions l2geth/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Auto detect text files and perform LF normalization
* text=auto
*.sol linguist-language=Solidity
3 changes: 3 additions & 0 deletions l2geth/.gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "tests"]
path = tests/testdata
url = https://github.com/ethereum/tests
53 changes: 53 additions & 0 deletions l2geth/.golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# This file configures github.com/golangci/golangci-lint.

run:
timeout: 2m
tests: true
# default is true. Enables skipping of directories:
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
skip-dirs-use-default: true
skip-files:
- core/genesis_alloc.go

linters:
disable-all: true
enable:
- deadcode
- goconst
- goimports
- gosimple
- govet
- ineffassign
- misspell
# - staticcheck
- unconvert
# - unused
- varcheck

linters-settings:
gofmt:
simplify: true
goconst:
min-len: 3 # minimum length of string constant
min-occurrences: 6 # minimum number of occurrences

issues:
exclude-rules:
- path: crypto/blake2b/
linters:
- deadcode
- path: crypto/bn256/cloudflare
linters:
- deadcode
- path: p2p/discv5/
linters:
- deadcode
- path: core/vm/instructions_test.go
linters:
- goconst
- path: cmd/faucet/
linters:
- deadcode
- path: core/chain_makers_test.go
linters:
- govet
123 changes: 123 additions & 0 deletions l2geth/.mailmap
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
Jeffrey Wilcke <[email protected]>
Jeffrey Wilcke <[email protected]> <[email protected]>
Jeffrey Wilcke <[email protected]> <[email protected]>
Jeffrey Wilcke <[email protected]> <[email protected]>

Viktor Trón <[email protected]>

Joseph Goulden <[email protected]>

Nick Savers <[email protected]>

Maran Hidskes <[email protected]>

Taylor Gerring <[email protected]>
Taylor Gerring <[email protected]> <[email protected]>

Bas van Kervel <[email protected]>
Bas van Kervel <[email protected]> <[email protected]>
Bas van Kervel <[email protected]> <[email protected]>
Bas van Kervel <[email protected]> <[email protected]>

Sven Ehlert <[email protected]>

Vitalik Buterin <[email protected]>

Marian Oancea <[email protected]>

Christoph Jentzsch <[email protected]>

Heiko Hees <[email protected]>

Alex Leverington <[email protected]>
Alex Leverington <[email protected]> <[email protected]>

Zsolt Felföldi <[email protected]>

Gavin Wood <[email protected]>

Martin Becze <[email protected]>
Martin Becze <[email protected]> <[email protected]>

Dimitry Khokhlov <[email protected]>

Roman Mandeleil <[email protected]>

Alec Perseghin <[email protected]>

Alon Muroch <[email protected]>

Arkadiy Paronyan <[email protected]>

Jae Kwon <[email protected]>

Aaron Kumavis <[email protected]>

Nick Dodson <[email protected]>

Jason Carver <[email protected]>
Jason Carver <[email protected]> <[email protected]>

Joseph Chow <[email protected]>
Joseph Chow <[email protected]> ethers <TODO>

Enrique Fynn <[email protected]>

Vincent G <[email protected]>

RJ Catalano <[email protected]>
RJ Catalano <[email protected]> <[email protected]>

Nchinda Nchinda <[email protected]>

Aron Fischer <[email protected]> <[email protected]>

Vlad Gluhovsky <[email protected]>

Ville Sundell <[email protected]>

Elliot Shepherd <[email protected]>

Yohann Léon <[email protected]>

Gregg Dourgarian <[email protected]>

Casey Detrio <[email protected]>

Jens Agerberg <[email protected]>

Nick Johnson <[email protected]>

Henning Diedrich <[email protected]>
Henning Diedrich <[email protected]> Drake Burroughs <[email protected]>

Felix Lange <[email protected]>
Felix Lange <[email protected]> <[email protected]>

Максим Чусовлянов <[email protected]>

Louis Holbrook <[email protected]>
Louis Holbrook <[email protected]> <[email protected]>

Thomas Bocek <[email protected]>

Victor Tran <[email protected]>

Justin Drake <[email protected]>

Frank Wang <[email protected]>

Gary Rong <[email protected]>

Guillaume Nicolas <[email protected]>

Sorin Neacsu <[email protected]>
Sorin Neacsu <[email protected]> <[email protected]>

Valentin Wüstholz <[email protected]>
Valentin Wüstholz <[email protected]> <[email protected]>

Armin Braun <[email protected]>

Ernesto del Toro <[email protected]>
Ernesto del Toro <[email protected]> <[email protected]>
Loading

0 comments on commit 8de52b9

Please sign in to comment.