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
1cfa89aa03
Use luxfi/crypto, luxfi/database, luxfi/ids
2025-07-25 22:22:41 -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
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
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
Darioush Jalali and GitHub
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 Onur and GitHub
ab57550f02
add event to readme ( #1110 )
2024-02-29 18:32:26 +01:00
Darioush Jalali and GitHub
7c03d8a7c2
take slice of cmd/utils from upstream ( #1082 )
...
* take slice of cmd/utils from upstream
* add header
2024-02-09 08:59:10 +00:00
zeekay
f8dd36a8be
Update SubnetEVM
2024-01-03 09:44:09 +01:00
a16a959e28
add event packing/unpacking to contract template ( #949 )
...
* add event packing/unpacking to contract template
* add pack event tests to template
* add event precompile bind tests
* nits
* separate event file
* Update accounts/abi/bind/precompilebind/precompile_bind.go
Co-authored-by: aaronbuchwald <[email protected] >
Signed-off-by: Ceyhun Onur <[email protected] >
* revert set changes
* change event comments
* add get event gas cost and tests
* nits
* add topics to GetLogData
* Update utils.go
Signed-off-by: Ceyhun Onur <[email protected] >
* add output names
* Update precompile/testutils/test_precompile.go
Co-authored-by: Darioush Jalali <[email protected] >
Signed-off-by: Ceyhun Onur <[email protected] >
* Update accounts/abi/bind/precompilebind/precompile_event_template.go
Co-authored-by: Darioush Jalali <[email protected] >
Signed-off-by: Ceyhun Onur <[email protected] >
* fix tests
* fix tests
---------
Signed-off-by: Ceyhun Onur <[email protected] >
Signed-off-by: Ceyhun Onur <[email protected] >
Co-authored-by: aaronbuchwald <[email protected] >
Co-authored-by: Darioush Jalali <[email protected] >
2023-12-18 18:14:43 +00:00
Ceyhun Onur and GitHub
783209e580
Precompile bind cleanups + testing ( #792 )
...
* cleanup for single abi
* add new type generator & verify abi
* add fallback tests
* fix abi array
* add precompile bind tests (#793 )
2023-08-16 10:33:41 -04:00
4721f3ebe2
Sync coreth v0.12.4 rc0 ( #694 )
...
* apply diff to rc0
* replace coreth with subnet-evm
* go mod tidy
* remove must commit
* remove apricots
* replace coreth with subnet-evm
* rename banff and cortina
* test memory db
* add dUpgrade
* fix errors
* sync with v0.12.4-rc0
* more diffs
* change templates
* readd preparePredicateSlots
* run goimports
* readd tx allow list check to txpool
* Fix tests
* readd subnet evm check for tests
* fix tests
* add gas limit & coinbase fakers
* Fix timestamp types
* check error from newblockchain
* fix gas limit in simulated genesis
* downgrade ci to go 1.19
* gofmt files
* rebump go to 1.20
* bump anr to latest
* bump anr to latest
* prepare predicate storage slots in Subnet-EVM
* uncomment tests
* change order of airdrop memory cleanup
* add utils import
* Coreth 0.12.4 x apply (#720 )
Co-authored-by: Darioush Jalali <[email protected] >
* move instruction sets
* revert unpack changes
* reduce diffs
* move genesis verify to vm (#753 )
* move genesis verify to vm
* fix comment
* set a correct default from genesis
* fix log
* revert change to vm.go
---------
Co-authored-by: Darioush Jalali <[email protected] >
* avoid adding/removing GasLimits in tests (#755 )
* move genesis verify to vm
* fix comment
* set a correct default from genesis
* fix log
* revert change to vm.go
* avoid adding/removing GasLimits in tests
* nit
---------
Co-authored-by: Ceyhun Onur <[email protected] >
---------
Co-authored-by: Darioush Jalali <[email protected] >
2023-07-26 09:45:17 -04:00
Ceyhun Onur and GitHub
9b09e62625
Fix contract examples package json ( #672 )
...
* rename contract-examples to contracts & fix pack issue
* allow custom CMD to be run on blockchains for e2e tests
* move default hardhat test to utils
* fix comment
* add more comments
* change folder reference
2023-06-16 12:03:30 -04:00
Ceyhun Onur and GitHub
0727fbfff1
Generate precompile tests ( #565 )
...
* add verify allow list tests
* use new verify allow list suite in precompiles
* add equal test suite
* nits
* add cnfig test template
* add contract unit test generation
* Remove abis
* nits
* fix testing input in template
* Update accounts/abi/bind/precompilebind/precompile_contract_test_template.go
Co-authored-by: Darioush Jalali <[email protected] >
* Update accounts/abi/bind/precompilebind/precompile_contract_test_template.go
Co-authored-by: Darioush Jalali <[email protected] >
* Update accounts/abi/bind/precompilebind/precompile_contract_test_template.go
Co-authored-by: Darioush Jalali <[email protected] >
* fix non-allowlist tests
2023-05-01 11:30:07 -04:00
Ceyhun Onur and GitHub
6b3fb80b0f
fix e2e comment in readme ( #540 )
2023-02-23 10:35:52 -08:00
Ceyhun Onur and GitHub
d8a3e64378
Stateful Precompile Improvements ( #389 )
...
* move inline string ABIs to separate files and embed them (#383 )
* move inline string ABIs to separate files and embed them
* fix tests
* fix tests
* unexport function
* Update accounts/abi/bind/bind.go
Co-authored-by: Darioush Jalali <[email protected] >
* fix func name
Co-authored-by: Darioush Jalali <[email protected] >
* replace getByKey with getByAddress (#395 )
* rework on panics in precompiles (#418 )
* rework on panics in precompiles
* Update precompile/allow_list.go
Co-authored-by: aaronbuchwald <[email protected] >
* Update precompile/fee_config_manager.go
Co-authored-by: aaronbuchwald <[email protected] >
* Update precompile/fee_config_manager.go
Co-authored-by: aaronbuchwald <[email protected] >
* fix reviews
* wrap errors in ConfigurePrecompiles
* cleaner errors
* Update utils.go
* Update miner/worker.go
Co-authored-by: aaronbuchwald <[email protected] >
* Update core/state_processor.go
Co-authored-by: aaronbuchwald <[email protected] >
Co-authored-by: aaronbuchwald <[email protected] >
* Precompile Specific Packages (#420 )
* rework on panics in precompiles
* Update precompile/allow_list.go
Co-authored-by: aaronbuchwald <[email protected] >
* Update precompile/fee_config_manager.go
Co-authored-by: aaronbuchwald <[email protected] >
* Update precompile/fee_config_manager.go
Co-authored-by: aaronbuchwald <[email protected] >
* fix reviews
* wrap errors in ConfigurePrecompiles
* cleaner errors
* move reward manager precompile to package (WIP)
* rename files
* fix abi path
* move typecheck
* move precompiles to their own packages
* refactor precompile template
* remove test file
* upate comments
* rm test files
* new allowlist package
* Update precompile/utils.go
Co-authored-by: Darioush Jalali <[email protected] >
* Update precompile/nativeminter/contract_native_minter.go
Co-authored-by: Darioush Jalali <[email protected] >
* Update precompile/nativeminter/contract_native_minter.go
Co-authored-by: Darioush Jalali <[email protected] >
* Update precompile/utils.go
Co-authored-by: Darioush Jalali <[email protected] >
* Update precompile/nativeminter/contract_native_minter.go
Co-authored-by: Darioush Jalali <[email protected] >
* fix nits
Co-authored-by: aaronbuchwald <[email protected] >
Co-authored-by: Darioush Jalali <[email protected] >
* rename fee manager config struct (#427 )
* rename struct
* rename fee config managers to fee managers
* fix comments
* Generalized upgrades rb (#434 )
* introduce precompiles as registrable modules
* add precompile specific contract tests
* remove print debug
* add unmarshal tests
* remove unnecessary func
* fix initial disabled value
* register all modules in core/evm/contract_stateful
* more refactor & test fix
* sync template
* fix more tests
* rename file
* add comment
* rename
* fix linter
* use require error contains
* remove whitespace
* trim mock interface
* sort steps
* reviews
* Update precompile/stateful_precompile_module.go
* Update params/precompile_config.go
* Update params/precompile_config.go
* fix reviews
* add new module to configs and group module functions
* generalized-upgrades-rb review (#474 )
* keep genesis disabled fix
* nits
* nits
* nit
* review fixes
* Update precompile/allowlist/allowlist.go
* use address in map
* fix linter for embedded keys
* update err messages
* more err update
* remove unnecessary function (#478 )
* Start work on breaking cyclic dependency (#496 )
* Update core/state_processor.go
* fix reviews
* Update precompile/contracts/txallowlist/contract_test.go
* Generalized upgrades rb nits0 (#512 )
* Minor improvements
* restore readOnly
* more updates
* Add back readOnly to allow list tests
* Precompile improvements merge (#513 )
Co-authored-by: aaronbuchwald <[email protected] >
Co-authored-by: Ceyhun Onur <[email protected] >
Co-authored-by: Darioush Jalali <[email protected] >
Co-authored-by: cam-schultz <[email protected] >
Co-authored-by: Matthew Lam <[email protected] >
Co-authored-by: cam-schultz <[email protected] >
Co-authored-by: omahs <[email protected] >
Co-authored-by: Anusha <[email protected] >
Co-authored-by: Hagen Hübel <[email protected] >
Co-authored-by: minghinmatthewlam <[email protected] >
Fix: typos (#428 )
fix allow list comments (#469 )
fix CGO flags issue (#489 )
fix lint job (#499 )
* review fixes
* minor nits
* fix precompile generator
* fix fee manager config test
* remove debug files
* Update core/state_processor.go
Co-authored-by: aaronbuchwald <[email protected] >
* fix comments
* restore statedb ordering
* fix configure in reward manager
* precompiles: adds a regression test for the IsDisabled case in AvalancheRules (#515 )
* Rename configs: alternative (#520 )
* alternative renaming for precompile configs
* fixes
* update naming
* rename to AllowListConfig
* simplify
* move blackhole check to module registerer (#523 )
* move blackhole check to module registerer
* check blackhole first
* add unit test
* Add test case for registering module outside of reserved range
---------
Co-authored-by: Aaron Buchwald <[email protected] >
* precompile: improve test structure (#517 )
* refactor precompile tests
* minor improvements
* nit
* fix merge
* rename package
* pr comments
* rm file
* merge AllowListTests
* pr comments
* explicit BeforeHook
* wspace
* Mark TestTransactionIndices flaky
---------
Co-authored-by: Aaron Buchwald <[email protected] >
* nit improvements (#529 )
* nit improvements
* move comments to README
* Update cmd/precompilegen/template-readme.md
* Rename new config (#528 )
* rename configurator's new config to make config
* use new built-in to create new config instance
* precompile: just nits (#534 )
2023-02-22 12:27:48 -08:00
Anusha and GitHub
794d038760
Precompile Template Improvements ( #255 )
...
* Subset of changes that need review from hello world tutorial
* Modify bind to error on unnamed outputs and modify tests
* fix up broken test
* fix nil type
* fix nits
* easy nits
* easy nits p 2
* easy nits p3
* easy changes p4
* title the steps
* testing relative links
* test 2
* changes to explanation
* change bind
* bind test back to normal
* bind precompile test
* change method name
* explanations'
* better solc
* remove readme
* added more nils
* cleaner
* fix nil
2022-09-22 17:36:24 +09:00
c49629418a
add precompile gen cmd & template ( #180 )
...
* add precompile gen cmd & template
* add comments & template
* remove unneccessary package
* Update accounts/abi/abi.go
Co-authored-by: Darioush Jalali <[email protected] >
* Update accounts/abi/abi.go
Co-authored-by: Darioush Jalali <[email protected] >
* Update accounts/abi/abi.go
Co-authored-by: Darioush Jalali <[email protected] >
* Update accounts/abi/abi.go
Co-authored-by: Darioush Jalali <[email protected] >
* Update accounts/abi/bind/precompiletemplate.go
Co-authored-by: Darioush Jalali <[email protected] >
* Update accounts/abi/bind/precompiletemplate.go
Co-authored-by: Darioush Jalali <[email protected] >
* Update params/config.go
Co-authored-by: Darioush Jalali <[email protected] >
* Update accounts/abi/bind/precompiletemplate.go
Co-authored-by: Darioush Jalali <[email protected] >
* Update accounts/abi/bind/precompiletemplate.go
Co-authored-by: Darioush Jalali <[email protected] >
* review fixes
* fix comment
* Update precompile/params.go
Co-authored-by: aaronbuchwald <[email protected] >
* Update accounts/abi/abi.go
Co-authored-by: aaronbuchwald <[email protected] >
* fix reviews
* use all allowlist keys to determine inheritance
* add fallback function
* add whitespace to template
* Update accounts/abi/bind/precompiletemplate.go
Co-authored-by: aaronbuchwald <[email protected] >
* Update accounts/abi/bind/precompiletemplate.go
Co-authored-by: aaronbuchwald <[email protected] >
* moar review fixes
* return immediatly when error
* rename template file
* review fixes
Co-authored-by: Darioush Jalali <[email protected] >
Co-authored-by: aaronbuchwald <[email protected] >
2022-08-16 16:53:22 -04:00