mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-28 07:36:44 +00:00
* feat: add EIP-7702 * fix goimport * add unit tests * add api test * sync txpool update * update generated code * make code readable * fix goimport * fix TestAsyncChecker unit test * add AuthorizationList in fuzz tests for completeness sake * add EuclidV2 test, EIP-7702 transaction in TestT8n * clean up logs * bump version * fix TestAsyncChecker * Revert "fix TestAsyncChecker" This reverts commit 314478303d4a504a3948bd6595568916ba7d82f0. * accept eip-7702 txns only after enabling eip-7702 * revert IntrinsicGas param name from setCodeAuthorizations to authList * fix a bug * align upstream implementation in Encoding Receipts * fix one test case * fix tracer * return precode copy * support setcode tx in EstimateGas and add unit tests * add TestValidateAuthorizations * poseidon hash fix * migrate a fix before the fix pr is merged * support setcode type transactions in TransactionData * chore: auto version bump [bot] * add a nonce-gapped-auth-does-not-block-pending-tx unit test * make the auth invalid * Apply suggestions from code review * change usedAndLeftSlots and knownConflicts to util functions * add comments about different return of applyAuthorization * remove gencodec:required in transaction signatures * fix goimport * update StructLogger and AccessListTracer * fix a bug * fix flaky test --------- Co-authored-by: colinlyguo <colinlyguo@users.noreply.github.com> Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
78 lines
2.7 KiB
Makefile
78 lines
2.7 KiB
Makefile
# This Makefile is meant to be used by people that do not usually work
|
|
# with Go source code. If you know what GOPATH is then you probably
|
|
# don't need to bother with make.
|
|
|
|
.PHONY: geth android ios evm all test clean libzkp
|
|
|
|
GOBIN = ./build/bin
|
|
GO ?= latest
|
|
GORUN = env GO111MODULE=on go run
|
|
|
|
libzkp:
|
|
cd $(PWD)/rollup/ccc/libzkp && make libzkp
|
|
|
|
nccc_geth: ## geth without circuit capacity checker
|
|
$(GORUN) build/ci.go install ./cmd/geth
|
|
@echo "Done building."
|
|
@echo "Run \"$(GOBIN)/geth\" to launch geth."
|
|
|
|
geth: libzkp
|
|
$(GORUN) build/ci.go install -buildtags circuit_capacity_checker ./cmd/geth
|
|
@echo "Done building."
|
|
@echo "Run \"$(GOBIN)/geth\" to launch geth."
|
|
|
|
all:
|
|
$(GORUN) build/ci.go install
|
|
|
|
android:
|
|
$(GORUN) build/ci.go aar --local
|
|
@echo "Done building."
|
|
@echo "Import \"$(GOBIN)/geth.aar\" to use the library."
|
|
@echo "Import \"$(GOBIN)/geth-sources.jar\" to add javadocs"
|
|
@echo "For more info see https://stackoverflow.com/questions/20994336/android-studio-how-to-attach-javadoc"
|
|
|
|
ios:
|
|
$(GORUN) build/ci.go xcode --local
|
|
@echo "Done building."
|
|
@echo "Import \"$(GOBIN)/Geth.framework\" to use the library."
|
|
|
|
test: all
|
|
# genesis test
|
|
cd ${PWD}/cmd/geth; go test -test.run TestCustomGenesis
|
|
# module test
|
|
$(GORUN) build/ci.go test ./consensus ./core ./eth ./miner ./node ./trie ./rollup/...
|
|
# RIP-7212 (secp256r1) precompiled contract test
|
|
cd ${PWD}/core/vm; go test -v -run=^TestPrecompiledP256 -bench=^BenchmarkPrecompiledP256
|
|
# EIP-7702 test
|
|
cd ${PWD}/core/vm/runtime; go test -v -run=^TestDelegatedAccountAccessCost
|
|
cd ${PWD}/core/types; go test -v -run=^TestParseDelegation
|
|
cd ${PWD}/internal/ethapi; go test -v -run=^TestEstimateGas
|
|
cd ${PWD}/cmd/evm; go test -v -run=^TestT8n
|
|
|
|
lint: ## Run linters.
|
|
$(GORUN) build/ci.go lint
|
|
|
|
clean:
|
|
env GO111MODULE=on go clean -cache
|
|
rm -fr build/_workspace/pkg/ $(GOBIN)/*
|
|
|
|
# The devtools target installs tools required for 'go generate'.
|
|
# You need to put $GOBIN (or $GOPATH/bin) in your PATH to use 'go generate'.
|
|
|
|
devtools:
|
|
env GOBIN= go install golang.org/x/tools/cmd/stringer@latest
|
|
env GOBIN= go install github.com/kevinburke/go-bindata/go-bindata@latest
|
|
env GOBIN= go install github.com/fjl/gencodec@latest
|
|
env GOBIN= go install github.com/golang/protobuf/protoc-gen-go@latest
|
|
env GOBIN= go install ./cmd/abigen
|
|
@type "solc" 2> /dev/null || echo 'Please install solc'
|
|
@type "protoc" 2> /dev/null || echo 'Please install protoc'
|
|
|
|
docker:
|
|
docker build --platform linux/x86_64 -t scrolltech/l2geth:latest ./ -f Dockerfile
|
|
|
|
mockccc_docker:
|
|
docker build --platform linux/x86_64 -t scrolltech/l2geth:latest ./ -f Dockerfile.mockccc
|
|
|
|
mockccc_alpine_docker:
|
|
docker build --platform linux/x86_64 -t scrolltech/l2geth:latest ./ -f Dockerfile.mockccc.alpine
|