zeekay
46ea495f07
refactor: rename network_upgrades_alwayson.go to legacy_upgrades.go
...
Rename file to better differentiate from Lux-specific code as requested.
All upgrade functions continue to return true for clean genesis setup.
2025-07-24 14:53:07 -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
Ceyhun Onur and Quentin 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
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
e3a01fb149
use libevm: params, core/vm, eth/tracers/* + some of core/types ( #1380 )
...
* format: as coreth
* use libevm: params, core/vm, eth/tracers/* + some of core/types (#662 )
Co-authored-by: Arran Schlosberg <[email protected] >
* format: as subnet-evm
* fix coreth formatting
* fix mocks
* fix contract deployer allowlist
* nits
* nits
* nit
* fix test import loop
* fix imports
* nits
* fix
* add TODO
---------
Co-authored-by: Arran Schlosberg <[email protected] >
2024-12-12 10:04:35 -08: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
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
Ceyhun Onur and GitHub
c14d46dc0f
Reward Manager precompile ( #260 )
...
* add initial precompile configs and handle them
* add verify to precompile configs
* add unit tests for initial configs and verify
* add a nil check for initial fee config verification
* conditionally verify allowlist
* Update precompile/stateful_precompile_config.go
Co-authored-by: aaronbuchwald <[email protected] >
* add config test to precompile package
* add 0 test case for gas limit
* add comments for allowlist storage keys
* move allow list role to different file
* Update precompile/allow_list.go
Co-authored-by: aaronbuchwald <[email protected] >
* rename test
* Update precompile/allow_list.go
Co-authored-by: Darioush Jalali <[email protected] >
* rename test & use func to create config
* Remove unnecessary role checks
* use config constructor for precompile tests
* Update accounts/abi/bind/precompile_template.go
Co-authored-by: Darioush Jalali <[email protected] >
* Update precompile/contract_native_minter.go
Co-authored-by: Darioush Jalali <[email protected] >
* Update precompile/contract_deployer_allow_list.go
Co-authored-by: Darioush Jalali <[email protected] >
* Update precompile/allow_list.go
Co-authored-by: Darioush Jalali <[email protected] >
* add equals methods
* initialize reward manager precompile by precompilegen
* add reward upgrade to block verification
* handle empty case in configure
* use single field to decide allow fee recipieints
* add coinbase verification
* configure miner with coinbase in state accordingly
* Remove abis
* use header coinbase for verification
* remove hashToBool util methods
* use require and remove unneccessary address field from test
* add unit tests
* cleanups
* Update consensus/dummy/consensus.go
Co-authored-by: Darioush Jalali <[email protected] >
* Update contract-examples/contracts/IAllowList.sol
Co-authored-by: Darioush Jalali <[email protected] >
* Update core/stateful_precompile_test.go
Co-authored-by: Darioush Jalali <[email protected] >
* Update core/stateful_precompile_test.go
Co-authored-by: Darioush Jalali <[email protected] >
* Update core/stateful_precompile_test.go
Co-authored-by: Darioush Jalali <[email protected] >
* Update precompile/reward_manager.go
Co-authored-by: Darioush Jalali <[email protected] >
* Update precompile/reward_manager.go
Co-authored-by: Darioush Jalali <[email protected] >
* Update precompile/reward_manager.go
Co-authored-by: Darioush Jalali <[email protected] >
* review fixes
* add e2e tests and example contract
* add initial config to test
* Update contract-examples/tasks.ts
Co-authored-by: Darioush Jalali <[email protected] >
* Update contract-examples/test/ExampleRewardDistributor.ts
Co-authored-by: Darioush Jalali <[email protected] >
* Update contract-examples/test/ExampleRewardDistributor.ts
Co-authored-by: Darioush Jalali <[email protected] >
* review fixes
* Update consensus/dummy/consensus.go
Co-authored-by: aaronbuchwald <[email protected] >
* Update params/config.go
Co-authored-by: aaronbuchwald <[email protected] >
* Update params/config.go
Co-authored-by: aaronbuchwald <[email protected] >
* fixs after review
* add string method to reward manager
* revert coinbase syntactic verification
* review fixes
* review fixes
* add disabled precompile test cases
* use hash value instead of address
* config cleanup
* Update contract-examples/tasks.ts
Co-authored-by: Darioush Jalali <[email protected] >
* Update contract-examples/tasks.ts
Co-authored-by: Darioush Jalali <[email protected] >
* more nit fixes
* fix conflict
* add disabled test case
2022-11-21 14:17:25 -05:00
Aaron Buchwald
2774a26377
Nits
2022-03-11 13:05:15 -05:00