732 Commits
Author SHA1 Message Date
zeekay 5ee5eccbcc chore: sync working tree
Commits 3 outstanding change(s) that were sitting uncommitted.
No build artifacts and no secrets in the changeset (both checked).
2026-07-26 10:14:09 -07:00
zeekayandHanzo Dev 26e21d0a8e chore: migrate luxd HTTP routes /ext -> /v1
Drop the Avalanche-heritage /ext prefix; /v1 is the single canonical route
surface (one way, no backward compat). The node's baseURL is the source of
truth; clients, SDKs, CLI, indexer, maker, genesis, netrunner, and the
k8s/compose/gateway/explorer configs are updated to match.

Co-authored-by: Hanzo Dev <dev@hanzo.ai>
2026-07-01 11:40:27 -07:00
Antje WorringandHanzo Dev fc38410e31 style(netrunner): rename local luxAssetID -> utxoAssetID for naming consistency
Package-local identifier only; no exported field, json tag, or wire change.

Co-authored-by: Hanzo Dev <dev@hanzo.ai>
2026-06-06 23:13:38 -07:00
Hanzo AI 89da100f1e netrunner/local: use sdk pwallet.Codec for proto/p tx parsing
proto/p Wave 2A (#101) rips github.com/luxfi/codec from p/txs — the
package-level txs.Codec singleton is gone. local/blockchain.go's
newWallet was using it to parse PChain wire bytes; switch to
sdk/wallet/chain/p.Codec (already imported as pwallet in the same
file), which is the canonical linearcodec-backed codec.Manager
constructed by the sdk's wallet/chain/p init().

This is a one-line cascade fix — no new helper needed because the SDK
already exposes the codec we'd construct here anyway.

go build ./... green.

The proto pin remains at v1.1.0; the workspace go.work consumes the
local proto/ which is on branch chore/proto-p-codec-rip with the new
API. This commit goes live once proto v1.2.0 + sdk v?.?.? are tagged.
2026-06-06 02:07:51 -07:00
Hanzo AI 3c208deb18 scrub Avalanche/Snowman naming residue: docstring + label rename (no wire changes) 2026-06-02 22:42:47 -07:00
Hanzo AI 43ead226a9 scrub: subnet/l2 → chain (canonical vocabulary, forward-only)
Wire-format codec IDs unchanged. CLI aliases deleted; chain is the
command. No backwards-compat shims, no deprecation comments.
2026-05-31 15:09:15 -07:00
Hanzo DevandGitHub 1970f6efe0 refactor: XAssetID → UTXOAssetID (1-line consumer rename + replace directives) (#50) 2026-05-30 14:30:35 -07:00
Hanzo DevandGitHub 59fd676294 chore(netrunner): kill subnet — chain/network vocabulary (#48)
zapwire types renamed:
  WhitelistedSubnets → WhitelistedChains
  SubnetID          → NetworkID
  Subnets           → Networks

local/network.go: comment rephrase --whitelisted-subnets → --whitelisted-chains
zapwire/e2e_test.go: test data updated to match renamed fields.

Build clean. zapwire tests pass.
2026-05-29 21:11:41 -07:00
Hanzo AI 1ad2281065 drop ethAddr/luxAddr string tags — canonical is evmAddr/utxoAddr 2026-05-22 20:40:50 -07:00
Hanzo AI 1888428bd4 drop hardcoded /Users/z paths — use $HOME-relative 2026-05-21 15:01:35 -07:00
Hanzo AI 31175c1220 netrunner: refresh go.mod + gitignore .bak files
go.mod dep refresh, network.go updates, *.bak in gitignore.
2026-05-20 16:23:29 -07:00
Hanzo AI b673b28c31 rename: github.com/luxfi/protocol → github.com/luxfi/proto (imports + go.mod replace) 2026-05-18 21:19:09 -07:00
Hanzo DevandGitHub 811118da30 env: drop LUX_ prefix from env vars (noise) (#41)
Renames LUX_-prefixed env vars to canonical, non-noisy forms across
genesis_config, blockchain, network, examples, tests, genkeys, server:

- LUX_MNEMONIC      -> MNEMONIC
- LUX_PRIVATE_KEY   -> PRIVATE_KEY
- LUX_KEYS_DIR      -> KEYS_DIR
- LUX_BINARY_PATH   -> BINARY_PATH
- LUX_NETWORK_TYPE  -> NETWORK_TYPE  (doc only)
- LUX_GPU_EVM       -> GPU_EVM       (doc only)
- LUX_GPU_WORKER_PID-> GPU_WORKER_PID

Also fixes an obvious infinite-recursion bug in
local/genesis_config.go::getMnemonic() that the previous LUX_MNEMONIC
fallback line had become — the helper now reads MNEMONIC then
LIGHT_MNEMONIC and returns. Without this fix, callers reaching the
fallback would have hung the process.

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:26:33 -07:00
Hanzo AI 351584448a deps: bump constants v1.5.2 + genesis v1.9.2; LocalID/CustomID split
luxfi/constants and luxfi/genesis just split LocalID and CustomID
into distinct constants:

  LocalID  = 1337   canonical local single/multi-node dev
  CustomID = 0      sentinel for user-defined non-well-known networks

This repo now uses LocalID everywhere it actually meant the local
dev network, and constants.LocalID for the same in places that
imported through luxfi/constants. Plus configs.LocalnetID →
configs.LocalID and configs.LocalnetChainID → configs.LocalChainID
to track the renamed constants.

Net effect on netrunner:

* NewLocalConfig          uses configs.LocalID (was configs.CustomID/1337)
* NewCanonicalCustomConfig uses configs.LocalID
* NewLocalConfigFromMnemonic uses configs.LocalID
* network/config.go default switch now lists LocalID alongside Mainnet/Testnet
* server/network.go default networkID set to LocalID for the local server

The Custom* constants remain available for genuine user-defined
networks; on those, addresses use the "custom" HRP from
luxfi/constants and look like P-custom1..., X-custom1...

zapwire (Z-Wing PQ control RPC) and network tests still green; the
heavy local/ integration tests that actually spawn luxd are out of
scope for this change.
2026-05-06 18:14:35 -07:00
Hanzo AI 69860c26e7 ci: migrate to shared docker-build workflow (native multi-arch, semver) 2026-04-09 21:58:21 -07:00
Hanzo AI dab6ea2adf docs: replace subnet terminology with chain/L2 2026-03-29 12:15:56 -07:00
Zach Kelling 6a2f96e9dd fix: update API client and engine 2026-02-21 13:59:19 -08:00
Zach Kelling 2cb1aa1aa8 fix: apply gofmt formatting 2026-02-14 05:04:26 -08:00
Zach Kelling 82344302ec Remove TODO comments and dead code from orchestrator and local network 2026-02-14 04:56:18 -08:00
Zach Kelling 3d3ae6f2ac chore: update engine and orchestrator 2026-02-13 22:36:40 -08:00
Zach Kelling b323e845cb fix: update BIP-44 path comments to m/44'/60' (standard Ethereum)
Aligns derivation path documentation with the sdk/genesis coin type
change from 9000 to 60.
2026-02-13 13:04:51 -08:00
Zach Kelling 9cd711f46b chore: update evm to v0.8.35 and node to v1.23.4 with empty block fix 2026-01-31 16:31:32 -08:00
Zach Kelling 0ea3b63752 fix: resolve all golangci-lint issues
- Fix gofmt formatting in 8 files
- Remove duplicate luxfi/config imports in local/ package
- Add error checking for os.Remove calls in local/snapshot.go
2026-01-28 10:30:11 -08:00
Zach Kelling 75cb620ba4 fix: use node/utils/compression instead of compress
Update import from github.com/luxfi/compress to
github.com/luxfi/node/utils/compression for type compatibility.
2026-01-26 09:47:36 -08:00
Zach Kelling 2157b410c6 Improve genesis loading and snapshot management
- Enhance genesis.go with LoadCanonicalGenesis for mainnet/testnet
- Add LoadGenesisForNetwork to load from external paths
- Improve snapshot.go with better incremental backup support
- Fix network ID handling in genesis_config.go (use constants.MainnetID not ChainID)
- Update API client interfaces for better type safety
- Fix server network handling for proper genesis selection
- Update dependencies to latest versions
2026-01-20 00:03:35 -08:00
Zach Kelling 160e25c144 fix build 2026-01-14 19:56:11 -08:00
Zach Kelling 907b6ccb12 refactor: update all imports from node/vms to vm/vms 2026-01-09 00:03:50 -08:00
Zach Kelling 1013ead275 Update constants package 2026-01-08 20:38:49 -08:00
Zach Kelling e53011719c fix: rename TLS key files to luxtls.key/crt
- Rename staking.key -> luxtls.key in embedded configs
- Rename staking.crt -> luxtls.crt in embedded configs
- Update imports to github.com/luxfi/constants
2026-01-08 19:35:37 -08:00
Zach Kelling 30605d3406 Add new flags, profile support, updated genesis 2026-01-06 11:52:14 -08:00
Zach Kelling 4e2a4e432e chore: remove local replace directives and update dependencies
- Update github.com/luxfi/keys v1.0.5 → v1.0.6
- Update github.com/luxfi/genesis v1.5.18 → v1.5.19
- Remove local replace directives for keys and genesis
- Use published package versions for reproducible builds
2026-01-03 07:05:17 -08:00
Fuma Nama ecefe97063 chore(deps): update to latest luxfi packages
- Remove local replace directive for genesis
- Update to latest published versions:
  - genesis v1.5.18
  - geth v1.16.67
  - crypto v1.17.32
  - ids v1.2.6
  - database v1.2.18
  - p2p v1.18.3
  - consensus v1.22.47
2025-12-31 18:01:12 -08:00
Zach Kelling 50ce2380fe chore: add devnet config, improve network handling
- Add NewDevnetConfigFromMnemonic for devnet configuration
- Improve network server subnet handling
2025-12-30 07:18:45 -08:00
Zach Kelling 8252ac5a40 chore: migrate to stdlib maps, remove unused imports
- Replace golang.org/x/exp/maps with stdlib maps (Go 1.21+)
- Remove unused slices imports from network/config.go and local/genesis_config.go
2025-12-29 20:30:26 -08:00
Zach Kelling e74963cca4 refactor: clean up CLI and fix e2e tests
- Remove duplicate cmd files (start.go, multinet.go, engine.go)
  that bypassed server/control architecture and contained AI slop
- Fix e2e_test.go variable shadowing (log -> logger)
- Fix metric.NewRegistry() package reference
- Remove unused prometheus import
- CLI now cleanly provides: server, control, ping commands
- Update dependencies to github.com/luxfi/const v1.4.0
2025-12-29 15:10:32 -08:00
Zach Kelling cd0dd2fccc fix: correct network ID usage and remove HID conflicts
- Remove ledger-lux-go transitive dependency
- Fix Network ID vs Chain ID confusion in genesis_config.go
- Use constants.MainnetID/TestnetID instead of configs.ChainID
- Fix port base calculation for multi-network mode
- Add snapshot server functionality
- Update protobuf definitions with new RPC methods
- Add mnemonic test coverage
2025-12-29 10:07:43 -08:00
Zach Kelling 37c9881d7a feat: improve blockchain deployment and network handling
- Fix chain validator addition for testnet/mainnet networks
- Add better error handling for CreateChains
- Improve network state tracking for multi-network support
- Fix server shutdown to properly clean up network resources
2025-12-24 12:54:59 -08:00
Zach Kelling fa4f6450a5 feat: add multi-network support for mainnet/testnet
- Add testnet example alongside mainnet example
- Update server/network.go to properly handle network IDs
- Fix genesis config loading for different network types
- Support concurrent mainnet (port 9630) and testnet (port 9640)
- Add multi-network architecture documentation
2025-12-23 17:15:00 -08:00
Zach Kelling a6f652d094 deps: upgrade to warp v1.18.0
Upgrade warp to v1.18.0 which consolidates warp-specific types
from lp118 into the warp package directly.

RIP lp118 🪦
2025-12-23 10:32:48 -08:00
Zach Kelling ec09524375 refactor: migrate from zap to luxfi/log, remove local replace directives
- Replace all direct go.uber.org/zap imports with github.com/luxfi/log
- Rename log variables to logger throughout codebase to avoid shadowing
  the log package when using package-level functions like log.String, log.Err
- Remove local replace directives from go.mod (genesis, config)
- Bump version to 1.6.1
2025-12-22 12:39:05 -08:00
Zach Kelling 03de0bc797 fix: add Windows support for filesystem sync operations 2025-12-22 07:56:54 -08:00
Zach Kelling facf820d95 deps: update to Go 1.25.5
Update go.mod and CI to Go 1.25.5.
2025-12-22 06:19:13 -08:00
Zach Kelling 413af4dfd9 ci: downgrade to Go 1.23.5 for compatibility 2025-12-22 06:13:41 -08:00
Zach Kelling d4f6811dfc ci: upgrade Go version to 1.25.5
Update from outdated Go 1.19 to latest 1.25.5.
2025-12-22 06:03:29 -08:00
Zach Kelling 63c660b2a7 fix: use reassignPortsIfUsed=true in test to avoid port conflicts 2025-12-22 05:58:34 -08:00
Zach Kelling 6edf405934 refactor: use constants for network/chain IDs, fix paths
- cmd/multinet.go: Use constants.MainnetID (1), TestnetID (2), etc.
- cmd/start.go: Use constants, add devnet support
- All data dirs now use ~/.lux/networks/ instead of /tmp/
- Network IDs (P-Chain): 1, 2, 3, 1337
- Chain IDs (C-Chain EVM): 96369, 96368, 96370, 1337
2025-12-22 05:42:02 -08:00
Zach Kelling 35f02edd25 Update logging, examples 2025-12-22 05:07:52 -08:00
Zach Kelling ce09e0388e chore(deps): upgrade to node v1.22.40, geth v1.16.60
- Update all lux dependencies to latest versions
- consensus v1.22.37, crypto v1.17.26, genesis v1.5.9
2025-12-21 16:19:09 -08:00
Zach Kelling 8d816a38ad refactor: remove all SubnetEVM references
- Rename --subnet-evm-path flag to --evm-path
- Rename subnetEvmPath variable to evmPath
- Rename subnet-evm-genesis.json to evm-genesis.json
- Change VmName from "subnetevm" to "evm"
- Update all test configurations
2025-12-21 11:12:41 -08:00
Zach Kelling 4e9393e5fb chore(deps): upgrade node to v1.22.37 with track-all-chains
- Update node dependency to v1.22.37
- Enable track-all-chains flag in default dev flags
2025-12-21 11:06:09 -08:00