mirror of
https://github.com/luxfi/chains.git
synced 2026-07-27 03:39:41 +00:00
VM consolidation (one module, one place only):
- Removed per-VM go.mod/go.sum/VERSION from {aivm,bridgevm,dexvm,evm,
graphvm,identityvm,keyvm,oraclevm,quantumvm,relayvm,thresholdvm,zkvm}
- All VMs now compile under github.com/luxfi/chains root module
- aivm/, dexvm/, identityvm/, keyvm/, oraclevm/ factory.go + vm.go updated
for AccelHost wiring
cevm Go-side (evm/cevm/):
- cevm.go, cevm_cgo.go, cevm_nocgo.go: ExecuteBlockV4(backend, threads,
txs, ctx, state) with StateAccount snapshot
- cevm_secp256k1.go: BatchRecoverSenders Metal LDFLAGS
- cevm_secp256k1_metal_anchor_darwin.{c,go}: anchor to keep linker from
dropping libsecp256k1_metal.a
- cevm_secp256k1_nocgo.go: stub for non-cgo builds
- plugin.go, fetch-luxcpp.sh, luxcpp-SHA256SUMS, LUXCPP_VERSION:
pinned luxcpp consumption
- evm/cevm/parallel/parallel.go: BlockExecutor adapter calls
cevm.ExecuteBlockV4 with state snapshot built from txs+statedb
Quantum/ZK witness:
- quantumvm/quasar_witness.go, zkvm/zwitness.go
go.mod: removed dead `replace github.com/ethereum/go-ethereum => luxfi/geth`
directive (caused dual-path conflict after math semver bump; no remaining
ethereum/go-ethereum imports in source). go mod tidy clean.
Tests: TestBatchRecoverSenders PASS through Metal anchor (cevm package).
20 lines
437 B
Makefile
20 lines
437 B
Makefile
VMS := $(shell ls -d */ 2>/dev/null | sed 's|/||' | grep -v '.github\|build\|node_modules')
|
|
|
|
.PHONY: all test clean $(VMS)
|
|
|
|
all: $(VMS)
|
|
|
|
# evm has main.go at root; all other VMs ship their plugin under cmd/plugin.
|
|
$(VMS):
|
|
@if [ -f $@/main.go ]; then \
|
|
go build -trimpath -ldflags="-s -w" -o build/$@ ./$@; \
|
|
else \
|
|
go build -trimpath -ldflags="-s -w" -o build/$@ ./$@/cmd/plugin; \
|
|
fi
|
|
|
|
test:
|
|
go test ./...
|
|
|
|
clean:
|
|
rm -rf build/
|