Commit Graph
32 Commits
Author SHA1 Message Date
zeekayandHanzo Dev 1c66017b0e build: honor pure-Go release mode
Co-authored-by: Hanzo Dev <[email protected]>
2026-08-21 12:03:30 -07:00
zeekayandGitHub 8d53833026 env: drop LUX_ prefix from env vars (noise) (#113)
Renames LUX_-prefixed env vars to their canonical, non-noisy forms:

- LUX_RLP_PATH    -> RLP_PATH    (test override for the RLP fixture path)
- LUX_VERSION     -> LUXD_VERSION (the luxd version being downloaded/cloned)
- LUX_PLUGIN_DIR  -> PLUGIN_DIR  (the lux plugin install dir, ~/.lux/plugins)

LUX_VERSION had two callers: shell scripts treating it as the luxd
version, and install_luxd_release.sh that already aliased
'LUXD_VERSION=${LUXD_VERSION:-${LUX_VERSION#v}}' on read. Collapse this
to a single canonical name (LUXD_VERSION) and a one-liner v-prefix
strip; no more aliasing.

LUX_PLUGIN_DIR points at ~/.lux/plugins on disk — the path is unchanged,
only the env var name. INSTALL=1 ./scripts/build.sh continues to work,
just driven from $PLUGIN_DIR.

Note: the historical README mention of LUX_VM_RUNTIME_ENGINE_ADDR /
LUX_VM_TRANSPORT (legacy luxfi/vm <= v1.1.0 names) is left in place
because it documents past behavior, per task convention for CHANGELOG/
historical docs.

BREAKING: external callers (CI, dev scripts, operators) must update
env var names. Per CLAUDE.md no-backwards-compatibility rule, the old
forms are removed.
2026-05-15 16:05:42 -07:00
zeekay 458178730d evm: derive plugin VM ID from luxfi/constants.EVMID; bump luxfi/gpu v1.0.1
- cmd/vmid prints constants.EVMID — Go source of truth for the C-Chain VM
  ID. Build scripts and Makefile now call this instead of hardcoding the
  base58 string. Drops a stale subnet-evm ID (ag3GReYP…) from the Makefile.
- scripts/build.sh: default output is build/evm; INSTALL=1 installs under
  the derived VMID at \$LUX_PLUGIN_DIR. Codesigns on darwin in-line so a
  fresh binary doesn't get SIGKILLed by gatekeeper post-cp.
- core/parallel/gpu_bridge.go: build tag flipped from \`!nogpu\` (opt-out)
  to \`gpu\` (opt-in) so default builds don't drag in luxfi/gpu cgo.
- go.mod: luxfi/gpu v0.30.0 → v1.0.1. v0.30.0 referenced removed MLX
  symbols (mlx_from_slice_int64 etc.); v1.0.1 migrated to lux/gpu.h and
  builds cleanly with -tags gpu and -tags \"cevm gpu\".
- LLM.md: build commands updated; \"no canonical / no aliases\" reflects
  reality (single VMID, one filename, derived from Go).
2026-05-11 22:36:46 -07:00
zeekay dc55dcd381 canonical: scrub upstream 'Subnet-EVM' / 'subnet-evm' brand language
Lux uses 'Lux EVM' (the canonical luxfi/evm plugin) for both C-Chain
and EVM-based L2 chains. The upstream 'subnet-evm' / 'Subnet-EVM' brand
was a separate codebase we don't use anymore.
2026-05-05 20:26:03 -07:00
zeekay 1ebe7f99ab canonical: single Lux EVM VM ID = mgj786NP… (CB58 of ids.ID{'e','v','m'})
Removed legacy 'srEXi…' (upstream Subnet-EVM ID) — Lux uses one canonical
EVM VM ID for both C-Chain and EVM-based subnets per luxfi/constants.EVMID.
Plugin filename is mgj786NP7uDwBCcq6YwThhaN8FLyybkCa4zBWTQbNgmK6k9A6 only;
no dual install, no aliases.
2026-05-05 20:16:25 -07:00
zeekay a2ff1232e8 Update constants 2025-12-21 03:49:29 -08:00
zeekay 8bc9dd01a8 Fix CI: Go version and script permissions
- Change Go version from 1.24.6 to 1.22.8 (stable version)
- Ensure all build scripts have executable permissions
- Fix covdata issue by using stable Go version
- CI should now pass all checks
2025-09-19 05:56:47 +00:00
zeekay bf5727c99e fix: update Docker image references from avaplatform to luxfi
- Changed LUXD_IMAGE_NAME from avaplatform/luxd to luxfi/node
- Updated comments to reflect correct image names
- This fixes Docker build failures in CI
2025-09-06 17:11:43 +00:00
zeekay c74bd1e40e fix: update VM to implement block.ChainVM interface correctly
- Updated Initialize signature to match block.ChainVM interface
- Added chainCtx field to store chain context (interfaces.Runtime)
- Fixed DBManager usage with Current() method
- Added ParseBlock wrapper to return correct block.Block type
- Fixed AppSender type conversion for network initialization
- Updated constants.sh to use luxfi/node instead of luxd
- Store toEngine channel for consensus message passing

This fixes the compilation errors and aligns with the new consensus interfaces.
2025-09-06 13:52:18 +00:00
zeekay b1979b4a02 Update EVM 2025-08-01 01:23:42 +00:00
zeekay 8da155c1b1 Update imports 2025-07-18 01:55:16 +00:00
zeekay 9cb77af539 fix: remove ALL ava-labs/libevm imports
- Remove all references to github.com/ava-labs/libevm
- Clean up imports in state, triedb, and test files
2025-07-17 17:06:20 -05:00
zeekay 4ac513dba4 Merge upstream subnet-evm v0.7.5
Merged latest upstream changes from ava-labs/subnet-evm v0.7.5 while preserving Lux customizations:
- Updated copyright headers to Lux Industries Inc 2025
- Kept Lux branding and network references
- Preserved custom Lux configurations
- Updated dependencies to latest versions
- Removed deprecated files (trie/, core/vm/, etc)
- Updated import paths to use go-ethereum libraries where applicable
2025-07-03 23:56:17 -04:00
37ff0fc4d7 Docker image combined tag (#1566)
Signed-off-by: Martin Eckardt <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Martin Eckardt <[email protected]>
Co-authored-by: Michael Kaplan <[email protected]>
Co-authored-by: Quentin McGaw <[email protected]>
2025-04-24 11:56:27 +00:00
Ceyhun OnurandGitHub 083e51fce9 fix multiarch docker binary build (#1461) 2025-03-04 23:26:34 +03:00
marunandGitHub ffe4249178 [testing] Fix image build validation for unmerged avalanchego commit (#1349)
* [testing] Enable image build testing for unmerged avalanchego version

* fixup: Correct CI failures
2024-09-20 18:53:45 +00:00
marunandGitHub 4bd95875b7 [ci] Validate image build (#1318)
A recent failure of post-merge image build suggested the need for a
pre-merge sanity check to avoid unintentionally merging changes that
break the image build.
2024-08-28 14:32:58 -07:00
Ceyhun OnurandGitHub b1c32065b6 use default path to build, remove symlinking (#1256) 2024-07-29 16:17:49 +00:00
dff8c47675 Update to use default plugin dir ($HOME/.avalanchego/plugins) (#1245)
* Update to use default plugin dir ($HOME/.avalanchego/plugins)

This has been the default for avalanchego since v1.9.6.

* fixup: Update dockerfile to copy the original rather than the symlink

* remove plugin paths

Signed-off-by: Ceyhun Onur <[email protected]>

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Ceyhun Onur <[email protected]>
2024-07-26 10:07:54 -07:00
Ceyhun OnurandGitHub e31a29d5f2 Fix docker push test (#1138)
* refactor docker yml and scripts

* enable pr for test

* fix path

* fix path

* rename img id

* try simpler name

* use -a

* test tag

* remove test steps

* remove avalanchego from image id
2024-04-08 19:43:25 +03:00
Ceyhun OnurandGitHub c105451b9d move docker build to separate ci (#1128)
* move docker build to separate ci

* rename CI workflow for simplicity

* workflow cleanup
2024-03-19 16:16:19 +00:00
marunandGitHub b480fae01f ci: Add shellcheck step to lint job (#1061)
* `ci`: Add shellcheck step to lint job

* fixup: Exclude upstream files
2024-01-31 13:31:27 +00:00
zeekay f8dd36a8be Update SubnetEVM 2024-01-03 09:44:09 +01:00
Ceyhun OnurandGitHub a08fda51b3 use cgo in mockgen (#974)
* use cgo in mockgen

* use repo path

* move constants
2023-10-27 10:34:06 -04:00
66c57ca626 Fix Dockerfile and add Build Image to GH Actions (#561)
* Remove specified git version to avoid downgrades breaking docker build

* Add build docker image to unit test action

* Update to use current branch instead of commit for docker image build

* Update docker image script to push image if env var is set

* Add new line to build image script

* Update scripts/constants.sh

Co-authored-by: Sam Batschelet <[email protected]>

* Update docker login

* Update build image action

* Update gh action

* checkout for docker image build

* Set build image ID in gh action with github.ref_name

* Separate CI and release

* remove extra copy

* Update name

* Update variable used in build image id

* Update set var

* Update dockerhub repo

* Revert dockerhub repo name chnge and use Subnet-EVM in tag name

---------

Co-authored-by: Sam Batschelet <[email protected]>
2023-03-09 13:44:17 -05:00
aaronbuchwaldandGitHub 8c08ebc052 Refactor e2e tests (#425)
* Simplify e2e tests

* Add TODOs

* WIP

* Replace GetSubnetIDF

* Bump avalanchego to v1.9.6-rc.0

* Working on tests

* Light client mode to unlock dynamic state sync

* revert version to pass ci (?)

* fix simulator go.mod

* Set env variable using os setenv

* Needed renames to run all solidity precompile tests

* Cleanup

* E2E test GH Action

* Remove simualtor from GH Actions

* Re-add simulator to GH Actions

* nits

* Modify run script to support running a network and running simulator

* Fix GH Actions file

* Bump avalanchego to v1.9.6-rc.2

* go mod tidy

* Fix run script

* Reduce ctx timeout for starting new subnet to 15s

* Set data dir from github action

* Update run script

* Create separate load test for ginkgo

* Refactor scripts

* Fix up env variables in run single node script

* WIP

* Add install_cli.sh script

* Create 1 script to start a non-staking network of nodes in a subshell

* Fix run script to run 5 node non-staking network and add simple load script

* Fix load test

* go mod update to ago v1.9.7

* Fix allowed geth imports for simulator

* Populate constants to fix blst warning

* load constants in run ginkgo

* Update run simulator name check

* Update data dir

* Add plugin dir env variable

* Update github action and env var used in install avago script

* Filter out both precompile and load test from unit test script

* Add comment about skipping load test in unit test script

* Fix lint geth allowed pkgs

* Address nits

* Remove unused DATA_DIRs var from run script

* Add TODO to update run script to allow running N nodes instead of just one

* Update READMEs

* Break down simulator

* Cleanup

* Update cmd/simulator/README.md

* Update cmd/simulator/README.md

* Update cmd/simulator/README.md

* Update contract-examples/README.md

* Address review comments

* Address PR comments
2023-01-26 16:23:32 -05:00
felipemaderoandGitHub 4ff12f4922 bump to avago 1.8.6 (#279)
* bump avago + anr

* add cross compilation

* mod tidy

* CGO_CFLAGS instead of CGO_FLAGS

* strange "" stuff in goreleaser

* add comment for CGO_FLAGS setting. move seting to constants

* fix path var

* fix unit test script

* bump avago version in versions.sh

* add checksum check for SDK archive

* fix checksum
2022-10-05 15:56:07 -04:00
Joshua KimandGitHub fde8818a53 removing hard dependency on git from build script (#142) 2022-07-12 09:59:31 -04:00
Gyuho Lee 9f1408daa1 constants.sh: use "command -v"
Signed-off-by: Gyuho Lee <[email protected]>
2022-02-28 20:15:27 -08:00
Gyuho Lee 1469e8c935 scripts: support static compile, fix "-X" import paths
Signed-off-by: Gyuho Lee <[email protected]>
2022-02-28 18:25:42 -08:00
Patrick O'Grady 43a542b6d0 local network running 2022-01-26 18:27:32 -08:00
Patrick O'Grady f6aef56afd first commit 2021-12-15 12:28:56 -08:00