86 Commits
Author SHA1 Message Date
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 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 402cc58096 Unify logging to use luxfi/log everywhere
- Replace all 115+ files using github.com/luxfi/geth/log with github.com/luxfi/log
- Remove complex logger adapters
- Create minimal compatibility layer (asGethLogger) for external dependencies
- Fix go.mod version issue with luxfi/node
- Simplify logging infrastructure for better performance and maintainability
2025-07-26 07:28:27 -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 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 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 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 d353bbff3e chore(interfaces): use upstream code
- import interfaces from github.com/ava-labs/libevm directly
- import `NotFound` error from github.com/ava-labs/libevm directly
- Keep our two subnet-evm-specific interfaces at interfaces/interfaces.go

See original PR https://github.com/ava-labs/coreth/pull/883
2025-04-01 10:15:16 +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 Mc Gaw 497f43672c Merge branch 'master' into libevm 2025-03-21 10:27:18 +01:00
Martin EckardtandGitHub 658298cbeb [simulator] Fix wrong flag name in readme (#1476)
Signed-off-by: Martin Eckardt <[email protected]>
2025-03-10 07:29:56 +00:00
cce6dc2a2e chore: fix some comments (#1431)
Signed-off-by: chuangjinglu <[email protected]>
Co-authored-by: Ceyhun Onur <[email protected]>
2025-03-04 23:27:35 +03:00
b5698242c8 chore: Bump avalanchego to master (#1443)
Co-authored-by: Martin HS <[email protected]>
Co-authored-by: Marius van der Wijden <[email protected]>
Co-authored-by: Quentin McGaw <[email protected]>
Co-authored-by: Richard Pringle <[email protected]>
Co-authored-by: Ceyhun Onur <[email protected]>
Co-authored-by: Tsachi Herman <[email protected]>
2025-02-24 06:41:24 -08:00
Darioush JalaliandGitHub 513c6fa7ab libevm phase 2: Use libevm statedb from upstream (#1421)
Co-authored-by: Arran Schlosberg <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
Co-authored-by: Michael Kaplan <[email protected]>
Co-authored-by: Ceyhun Onur <[email protected]>
Co-authored-by: Richard Pringle <[email protected]>
Co-authored-by: Quentin McGaw <[email protected]>
Co-authored-by: Meaghan FitzGerald <[email protected]>
Co-authored-by: Quentin McGaw <[email protected]>
Co-authored-by: mountcount <[email protected]>
Co-authored-by: chuangjinglu <[email protected]>
Co-authored-by: guqicun <[email protected]>
Co-authored-by: Dmytrol <[email protected]>
fix problematic const name and some typos in comment (#1400)
fix some function names in interface comment (#1397)
close database on shutdown (#1403)
fix some function names in comment (#1405)
Fix Typos in Documentation (#1404)
fix test generator (#724)
2025-01-13 07:45:49 -08:00
0dc5c02e45 Geth v1.13.8 (#1146)
* all changes from v.13.2-x branch

* squash initial changes

* remove unneeded files

* fix lint

* gas estimation fix

* accounts/keystore: fix test with sleep

* rpc fixes

* try with a smaller limit

* logging

* change the trim fn

* remove main_test from rpc

* txpool: remove unused "PendingFrom"

* set local-txs-enabled in load tests

* bump avago

* bump coreth

* resync (#1164)

* resync

* reapply fix

* review comments

* remove fixit comment

* fix space in log levels (#1167)

* fix legacy lvls (#1175)

* fix legacy lvls

* fix simulator logger

* fix typo in rlpgen comment

* update avalanchego to version with coreth on master branch

---------

Co-authored-by: Ceyhun Onur <[email protected]>
2024-05-16 10:31:36 -07:00
Ceyhun OnurandGitHub f4a302b4fe improve metrics (#1093)
* improve metrics

* printout metric descriptions

* use json output
2024-02-14 20:58:50 +03:00
zeekay 65408996d7 Update import path 2024-01-03 09:50:41 +01:00
zeekay e09f9ae0e1 Update executable to luxd 2024-01-03 09:49:05 +01:00
zeekay f8dd36a8be Update SubnetEVM 2024-01-03 09:44:09 +01:00
aaronbuchwaldandGitHub 67cf00f67b cmd/simulator: refactor simulator to support warp load test (#1009)
* cmd/simulator: refactor simulator to support warp load test

* Fix metrics server blocking incorrectly

* Apply suggestions from code review

Signed-off-by: aaronbuchwald <[email protected]>

* Address comments

---------

Signed-off-by: aaronbuchwald <[email protected]>
2023-11-29 09:32:42 -05:00
AnushaandGitHub 2af62555ea Add metrics to simulator (#706)
* add tps

* get block build metrics

* Add issuance time, confirmed time, issued-> acceptance time, verify time

* Log times at end of batch

* cleaner

* address comments

* remove unused code block

* avoids taking len of channel

* nits

* pass in stringID

* move to loader

* remove unused field

* revert file back

* cleaner

* lint

* make it work for ws or for rpc

* protect

* endpoint

* no return on defer

* sep to a funciton

* have blockchainidstr passed in

* typo

* pass in metrics through config

* address comments

* address more comments and edit err policy of metrics functions

* add more logging to load_test

* typo

* better check

* fix endpoints

* typo:

* individual

* histogram

* address feedback:

* remove metrics from default

* address comments

* simplify time metrics

* better explanation

* address comments

* address comments

* cleanup

* more cleanup

* rename vars for clarity

* ws

* cleanup

* address comments

* ws

* expose metrics add flag

* fix blocking issue of http server and gracefully stop it

* cleanup

* use constant

* add issuance to confirmation metrics

* ws

* simplify metrics server

* Bump avalanchego to v1.10.5 and bump Subnet-EVM for v0.5.3 release (#757)

* Bump avalanchego to v1.10.5 and bump Subnet-EVM for v0.5.3 release

* bump anr version to v1.7.1

* handle control c

* print out output

* clean up

* clean up

* remove go routines to close client

* address comments

* memory leak

* fix

* print
2023-07-31 17:49:50 -04:00
Darioush JalaliandGitHub f7b22cc068 Minor simulator fixes (#703) 2023-06-28 08:57:31 -07:00
679c77d57a Turn list of txs into tx sequence (#683)
* Turn list of txs into tx sequence

* Add agent comments

* Remove unused code and address comments

* add some more comments

* address more comments'

* lint

* Remove :::warning

---------

Co-authored-by: Anusha <[email protected]>
2023-06-27 18:06:52 -04:00
aaronbuchwaldandGitHub f7336796cb Simulator improvements (#619)
* Refactor load simulator

* Cleanup

* simulator: support http as well as websocket endpoints

* simulator: move help err handling

* simulator: Fix distribute funds bug

* simulator: add metrics at the end of simulator run

* Support no timeout

* Address review comments

* Remove unused struct

* Update cmd/simulator/config/flags.go

* Update cmd/simulator/load/funder.go

* Remove . from simulator flags

* Add comment to scripts/run_simulator.sh

* Address PR comments
2023-04-22 01:44:44 -04:00
Patrick O'GradyandGitHub 11b74dc142 Set minimum golang version to go1.19.6 (#551) 2023-03-01 09:53:24 -08:00
aaronbuchwaldandGitHub b7c125dfe7 Bump minimum golang version to v1.20.1 (#548)
* Bump minimum golang version to 1.20.1

* Remove debug flag from gh action release
2023-02-27 18:47:20 -08: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
aaronbuchwaldandGitHub b5faa4f15b Bump avalanchego dep to v1.9.7 and start v0.4.9 release cycle (#433)
* Bump avalanchego dep to v1.9.7 and start v0.4.9 release cycle

* Update compatibility.json and README
2023-01-23 13:44:45 -05:00
aaronbuchwaldandGitHub a4ad7cdeca Bump to v0.4.8 and bump AvalancheGo dependency to v1.9.6 (#429)
* Bump avlanachego dep to v1.9.6 and bump version to v0.4.8 for release

* Fix simulator go mod
2023-01-11 17:45:22 -05:00
Darioush JalaliandGitHub 4d3ad1828a Light client mode to unlock dynamic state sync (#424)
* Light client mode to unlock dynamic state sync

* revert version to pass ci (?)

* fix simulator go.mod
2023-01-10 11:08:35 -05:00
aaronbuchwaldandGitHub 93258aa300 Bump avalanchego to v1.9.5 (#415)
* Bump avalanchego to v1.9.5-rc.0

* go mod tidy simulator

* Bump avalanchego v1.9.5-rc.1

* Bump avalanchego

* bump avalanchego and bump sevm version

* go mod tidy simulator

* Add rpcchainvm protocol version to compatibility.json
2022-12-22 14:12:10 -05:00
aaronbuchwaldandGitHub 21a14d2d90 Bump avalanchego to v1.9.4 (#402)
* Bump avalanchego to v1.9.4

* Bump subnet-evm version in scripts/versions.sh
2022-12-07 14:17:25 -07:00
715ca80766 use generic set (#391)
* use generic set

* bump version

* nit

* update inner go mod

* Bump rpcchainvm version in compatibility.json

Co-authored-by: aaronbuchwald <[email protected]>
Co-authored-by: Stephen <[email protected]>
2022-12-06 18:09:37 -07:00
minghinmatthewlamandGitHub 5ecbb913c2 Plumbing snow.Context for precompiles (#381)
* passing in snow context

* adding call and moving contractRef

* test with avalanche context

* fix import format

* dependency updates

* put snow ctx into avalanche ctx

* move back contract ref

* remove getaddress

* update go mod

* fix imports

* remove extra line

* fix pr comments

* remove call additions
2022-11-29 18:43:23 -05:00
a7afbfc2c4 Bump avalanchego v1.9.3 and Coreth Migration through v0.11.3 (#369)
* Migrate coreth to v0.11.3 wip

* WIP

* WIP

* migrate eth/gasprice

* update block building

* Add skip upgrade check to config

* Finish up changes

* Add ctx to tests

* Remove ported timer

* mod tidy for cmd/simulator

* Remove dead testcode

* Fix typo

* Fixes

* Fixes

* sync auto-formatted changes (#371)

* sync auto-formatted changes

* add coreth version txt

* add latest coreth version

* Update plugin/evm/block_builder.go

Co-authored-by: Darioush Jalali <[email protected]>

* Update plugin/evm/vm.go

Co-authored-by: Darioush Jalali <[email protected]>

Co-authored-by: Ceyhun Onur <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
2022-11-29 09:39:18 -05:00
209036a807 [e2e cleanups 1] Fix e2e tests with ginkgo label selector, remove unused npx tests (#344)
* *: fix e2e tests with ginkgo label selector, remove unused npx tests

Signed-off-by: Gyuho Lee <[email protected]>

* run.sh: remove --contracts-foundry-dir=./contracts-foundry

Signed-off-by: Gyuho Lee <[email protected]>

* *: add back solidity-with-npx tests

Signed-off-by: Gyuho Lee <[email protected]>

* *: remove avalanche-network-runner dependency

Signed-off-by: Gyuho Lee <[email protected]>

* Update scripts/run.sh

Co-authored-by: aaronbuchwald <[email protected]>

* run.sh: document "ping"

Signed-off-by: Gyuho Lee <[email protected]>

* regenerate go module

Signed-off-by: Gyuho Lee <[email protected]>

* README: fix run.sh docs

Signed-off-by: Gyuho Lee <[email protected]>

* fix run ginkgo

Signed-off-by: Gyuho Lee <[email protected]>

* e2e: fix

Signed-off-by: Gyuho Lee <[email protected]>

* e2e: update label

Signed-off-by: Gyuho Lee <[email protected]>

* e2e: use avalanchego env

Signed-off-by: Gyuho Lee <[email protected]>

* fix exec paths

Signed-off-by: Gyuho Lee <[email protected]>

* AVALANCHEGO_PATH to parser/main.go

Signed-off-by: Gyuho Lee <[email protected]>

* env

Signed-off-by: Gyuho Lee <[email protected]>

* hardcode endpoints

Signed-off-by: Gyuho Lee <[email protected]>

* Change genesis file to enable precompiles

* Added precompile to genesis and default gas on hardhat config

* Clean up run script

* More E2E tests are passing

* Fix Fee Manager Test - 1 more passes

* Comment out incorrect test

* Fix Minter tests

* Handle promises properly

* Cleanup

* Fix Deployer tests

* Clean up test suite :)

* clean up and revert

* Update suites from proper branch

* stop subnet after each test - experiment

* Final clean up

* Remove small .only

* Test new changes

* Stop network from starting before suite

* Remove set env

* Remove unneeded code from parse
r

* dont run main from parser

* Enable other precompiles in other genesises

* Fix simulator tests and e2e :)

* Fix simulator

* remove precompile enablement

* Revert suites and runner to original shape

* Remove old code from parser

* Remove default auto from hardhat config

* Revert all changes to tests and genesis files

* Add Tiny err message fix

* Cleanup

* Cleanup and clarity

* Cleaner return

* Cleaner

* Add comment explaining why we set path

* refactor before suite

* delete parser/main as it is unneccessary

* remove actual file

* fix lint

* remove parser directory

* change go version

* change node v

* revert ci changes

* Fix hardhat url in ci

* Add print

* wrong file name

* Address Aaron's comments part 1

* Set skip netowrk shutdown to false by default

Signed-off-by: Gyuho Lee <[email protected]>
Co-authored-by: aaronbuchwald <[email protected]>
Co-authored-by: Anusha Chillara <[email protected]>
Co-authored-by: Anusha <[email protected]>
2022-11-15 20:00:51 -05:00
4ca0cbfdb9 Added compatibility tracking (#334)
* Added compatibility tracking

* Added version moved test

* Cleaned up test

* Bump avalanchego version and nits

* go mod tidy cmd/simulator

* Mark trie clean jouranl test as flaky

* Bump avalanchego to v1.9.2

* Bump anr version in scripts/versions.sh

* Bump anr version in go.mod

* go mod tidy cmd/simulator

Co-authored-by: Aaron Buchwald <[email protected]>
2022-11-04 18:55:18 -04:00