88 Commits
Author SHA1 Message Date
zeekay 4ac18547fc Update to v2 module path and fix imports 2025-08-02 13:13:43 -05:00
zeekay b69677733e fix: remove v2 from internal imports 2025-08-02 12:55:11 -05:00
zeekay 69b8f99818 fix: update imports to use v2 paths 2025-08-02 12:54:33 -05:00
zeekay eba7646210 Fix import 2025-08-02 12:47:52 -05:00
zeekay 204ccb43c0 fix: update node imports to v2 path 2025-08-02 12:40:21 -05:00
zeekay b4f8fee98a fix: correct double v2 in imports 2025-08-02 12:34:16 -05:00
zeekay e8a1c06f73 feat: update to v2 module path for version 2.0.0-alpha.1 2025-08-02 12:31:47 -05:00
zeekay c7626c26c2 Fix build 2025-08-01 19:57:54 -05:00
zeekay bee2bd51c1 fix: update EVM for new consensus interfaces and Lux metrics
- Add AppSender adapter for interface compatibility
- Update block interfaces to match new consensus chain
- Replace prometheus metrics with Lux metrics library
- Fix import paths for consensus packages
- Update message types for new consensus engine
- Fix block Accept/Reject method signatures
- Add missing Status() method to Block
- Create public wrapper methods for ChainVM interface
- Update gossip pool to use Lux metrics

This ensures compatibility with updated node consensus interfaces.
2025-07-30 14:21:42 -05:00
zeekay 11827696a4 Update EVM 2025-07-26 17:36:32 -05:00
zeekay f1ab4c5948 refactor: unify logging to use luxfi/log with zap implementation
- Migrate from geth/log to luxfi/log throughout EVM codebase
- Update luxfi/log to use zap instead of slog for better performance
- Fix all compatibility issues with node and EVM logging interfaces
- Rename Write method to WriteLog to avoid io.Writer conflict
- Add GlogHandler and FromLegacyLevel exports for internal/debug compatibility
- Update all test files to use new logging interface

This unifies the logging implementation across luxfi/node and luxfi/evm,
using zap as the underlying logger for improved performance.
2025-07-26 08:27:07 -05:00
zeekay 41c58abb6e Update EVM 2025-07-26 03:55:18 -05:00
zeekay 1cfa89aa03 Use luxfi/crypto, luxfi/database, luxfi/ids 2025-07-25 22:22:41 -05:00
zeekay 470f55de1c Finish refactor to use new go-ethereum 2025-07-25 13:52:34 -05:00
zeekay aa9363b885 Re-organize 2025-07-25 01:18:10 -05:00
zeekay 8e2a0e979a Update architecture 2025-07-25 00:10:28 -05:00
zeekay 930b765218 fix: partial build fixes for clean genesis setup
- Fix warp package interface compatibility issues
- Update verifier stats to use pointer types for metrics
- Fix extstate AccessList type conversion
- Add missing ChainHeaderReader methods (GetCoinbaseAt, GetFeeConfigAt)
- Add IsCancun method to ChainConfig interface
- Use our own types in interfaces package instead of geth types
- Remove unused Withdrawal types from Engine interface
- Temporary workarounds for config type issues in consensus/dummy

Note: Build still has remaining issues to be fixed
2025-07-24 15:04:12 -05:00
zeekay 2ea0fff555 Furhter refactor 2025-07-24 03:06:10 -05:00
zeekay e79433b58a Update LP support 2025-07-24 02:25:18 -05:00
zeekay 30986b4f91 Clean up project 2025-07-24 00:41:34 -05:00
zeekay 065c36213e Update consensu 2025-07-24 00:28:52 -05:00
zeekay 9990441454 Adapt EVM to be new C-chain 2025-07-24 00:25:45 -05:00
zeekay 19fe8dc2c7 Replace ethereum/go-ethereum references with luxfi/geth
- Updated go:generate comments to use luxfi/geth instead of ethereum/go-ethereum
- Fixed GitHub issue/PR references to point to luxfi repositories
- Updated comments referencing the Lux geth fork
- Part of the migration to unified EVM architecture with Lux consensus
2025-07-23 17:34:24 -05:00
zeekay 7d8b52af3f Update copyrights properly 2025-07-21 21:10:03 -05:00
zeekay 66651957a4 Update docs 2025-07-21 19:04:03 -05:00
zeekay 2cb1ee55cc Rename SubnetEVM to EVM throughout codebase
- Updated all references from SubnetEVM to EVM
- This aligns with the new Lux architecture where EVM can run on L1, L2, or L3
- Removed 'subnet' terminology as it's being deprecated
2025-07-21 18:48:02 -05:00
zeekay ddafd6c12e Update for CLI compatibility 2025-07-21 12:57:42 -05:00
zeekay 2a19fe59a2 Update EVM module to remove local replace directives 2025-07-20 06:38:41 +00:00
zeekay 608f45f8e9 Fix build, update to latest node infra 2025-07-18 15:07:36 -05:00
zeekay 8da155c1b1 Update imports 2025-07-18 01:55:16 +00:00
zeekay c2e5564e89 Fix evm module imports and dependencies - resolve self-import issues 2025-07-18 00:38:33 +00:00
zeekay 5bde5ae476 fix: resolve merge conflicts in test files
- Fixed merge conflicts in precompile_config_test.go
- Fixed merge conflicts in block_test.go
- Fixed merge conflicts in test_statedb.go
2025-07-17 16:44:45 -05:00
zeekay fc1662afd8 Fix import paths and add missing interface stubs for subnet-evm v0.7.5
- Update imports from luxdefi/node to luxfi/node
- Replace libevm interfaces with direct go-ethereum imports
- Add placeholder interface files for missing dependencies
- Update go.mod to use local luxfi/node path
- Fix merge conflicts in multiple files
- Create stub implementations for missing packages

This allows the project structure to align with v0.7.5 requirements
but the build still needs additional work to be fully functional.
2025-07-04 00:03:10 -04: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
zeekay 1d04d6d04f Update copyright headers to Lux Industries Inc 2025
Updated all copyright headers from "Lux Partners Limited" to "Lux Industries Inc" and updated the year to 2025 to reflect the new holding company structure.
2025-07-03 23:49:31 -04:00
Quentin McGawandGitHub 9afa615197 chore(all): use upstream protocol params (#1563) 2025-05-15 12:36:18 +00:00
Quentin McGaw ccab64fcf8 chore(types): move plugin/evm/types to plugin/evm/customtypes
See original PR https://github.com/ava-labs/coreth/pull/890
2025-04-01 10:15:17 +02:00
Arran SchlosbergandQuentin Mc Gaw 083810610a refactor: move core/types to plugin/evm/types
The `types` package now only contains `coreth` logic an nothing from upstream so it shouldn't live in the same location in the repo.

Automated:

```shell
$ git mv core/types plugin/evm/types
$ find -name '*.go' | xargs sed -i 's|"github.com/ava-labs/coreth/core/types"|"github.com/ava-labs/coreth/plugin/evm/types"|'
$ golangci-lint run --fix
```

See original PR https://github.com/ava-labs/coreth/pull/877
2025-04-01 10:14:56 +02:00
Arran SchlosbergandQuentin Mc Gaw cfb6dda961 refactor: use upstream core/types
Complete the transition of `core/types` to upstream code.

Note that the previous commit results in _all_ upstream types / vars / consts being in the `imports.go` file. This results in a strict partition of upstream and local identifiers so it is safe to simply change import paths.

1. Globally change all imports from `subnet-evm/core/types` to `libevm/core/types`;
2. Rename all `subnet-evm/core/types` imports to `customtypes` for ease of review here;
3. Dot import `libevm/core/types` in tests only to avoid hundreds of noisy changes.

See original PR https://github.com/ava-labs/coreth/pull/875
2025-04-01 10:14:52 +02:00
Quentin McGawandArran Schlosberg 6d0bf13fbb chore(core/types): remove block.go and import Block and Body from libevm
- `BlockGasCost` getter pure function
- New import from libevm's `core/types`: `Block`, `Blocks`, `Body`, `CalcUncleHash`, `NewBlock` and `NewBlockWithHeader`
- remove now unneeded `core/types/block.go`

See original PR https://github.com/ava-labs/coreth/pull/760

Signed-off-by: Quentin McGaw <[email protected]>
Co-authored-by: Arran Schlosberg <[email protected]>
2025-04-01 10:10:03 +02:00
ba0ad8d3b3 chore(core/types): header JSON and RLP serialization hooks
- Define `HeaderExtra` with `RLP` and `JSON` serialization methods
- remove `BlockNonce`
- remove `EncodeNonce`
- new functions `GetHeaderExtra` and `SetHeaderExtra`
- Migrate existing custom `Header` to `HeaderSerializable` in block_ext.go with only `Hash` method for RLP code generation
- Rename files gen_header_json.go to gen_header_serializable_json.go
- Rename files gen_header_rlp.go to gen_header_serializable_rlp.go
- Update avalanchego to prevent double core/types extra registration conflict

See original PR https://github.com/ava-labs/coreth/pull/746

Signed-off-by: Quentin Mc Gaw <[email protected]>
Co-authored-by: Quentin Mc Gaw <[email protected]>
Co-authored-by: Arran Schlosberg <[email protected]>
Co-authored-by: Ceyhun Onur <[email protected]>
Co-authored-by: Darioush Jalili <[email protected]>
2025-04-01 10:09:58 +02:00
Ceyhun OnurandQuentin Mc Gaw 99fca502ac chore(all): remove vmerrs package
- Import errors from libevm/vmerrs
- Define subnet-evm specific errors in plugin/evm/vmerrors

See original PR https://github.com/ava-labs/coreth/pull/829
2025-04-01 10:08:42 +02:00
Quentin Mc Gaw 497f43672c Merge branch 'master' into libevm 2025-03-21 10:27:18 +01:00
Ceyhun OnurandQuentin Mc Gaw cdcc5cc2f7 move ap4 block gas cost check to header
See https://github.com/ava-labs/coreth/pull/849
2025-03-13 16:41:21 +01:00
Ceyhun OnurandQuentin Mc Gaw fbdc6f17d9 partial cherry-pick: Coreth/Implement ACP-176
See https://github.com/ava-labs/coreth/pull/815
2025-03-13 16:41:19 +01:00
Stephen ButtolphandQuentin Mc Gaw 3c52fc4323 Cleanup block fee tests
See https://github.com/ava-labs/coreth/pull/837
2025-03-13 12:43:30 +01:00
Stephen ButtolphandQuentin Mc Gaw 3766df5748 Move GasLimit handling into the header package
See https://github.com/ava-labs/coreth/pull/822
2025-03-13 12:43:19 +01:00
Stephen ButtolphandQuentin Mc Gaw 23576e668f Move header.ExtraPrefix calculation
See https://github.com/ava-labs/coreth/pull/825
2025-03-13 12:43:06 +01:00
Stephen ButtolphandQuentin Mc Gaw 93a5ce31cb Improve plugin/evm/header tests
See https://github.com/ava-labs/coreth/pull/816
2025-03-13 12:42:54 +01:00
Stephen ButtolphandQuentin Mc Gaw f6b1d3ab47 Refactor AP3 Window and Params
See https://github.com/ava-labs/coreth/pull/808
2025-03-13 12:42:44 +01:00