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
1cfa89aa03
Use luxfi/crypto, luxfi/database, luxfi/ids
2025-07-25 22:22:41 -05:00
zeekay
8e2a0e979a
Update architecture
2025-07-25 00:10:28 -05:00
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
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
97896c8439
Updates and improvements
2025-07-18 06:47:51 +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
Quentin Mc Gaw
9f170c7057
Merge branch 'master' into libevm
2025-04-02 11:28:31 +02:00
Quentin McGaw and Arran Schlosberg
f890fcd476
chore(all): final changes to the libevm branch
...
Changes applied from comments on the review of https://github.com/ava-labs/coreth/pull/820
See original PR https://github.com/ava-labs/coreth/pull/862
Signed-off-by: Quentin McGaw <[email protected] >
Co-authored-by: Arran Schlosberg <[email protected] >
2025-04-01 10:15:18 +02: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
eae544c463
chore(all): fix different typos ( #1506 )
...
Signed-off-by: pudongair <[email protected] >
Signed-off-by: linchizhen <[email protected] >
Signed-off-by: lencap <[email protected] >
Co-authored-by: pudongair <[email protected] >
Co-authored-by: linchizhen <[email protected] >
Co-authored-by: lencap <[email protected] >
2025-03-25 19:25:23 +00:00
Quentin Mc Gaw
497f43672c
Merge branch 'master' into libevm
2025-03-21 10:27:18 +01:00
huochexizhan and GitHub
0b4c401a5d
refactor: use slices.Equal to simplify code ( #1470 )
...
Signed-off-by: huochexizhan <[email protected] >
2025-03-10 10:10:56 +03: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
6a8e82fad4
Bump avalanchego to master ( #1268 )
...
* Bump avalanchego to master
* Update avalanchego x (#1275 )
* remove test tags
* use avago default
* revert ws diffs
* remove ginkgo test tags
---------
Co-authored-by: Ceyhun Onur <[email protected] >
2024-08-12 15:59:42 +00:00
5fed36811e
Update avago 1.11.10 rc0 ( #1241 )
...
* Update to latest p2p API (#594 )
* sdk app errors
Signed-off-by: Joshua Kim <[email protected] >
* nit
Signed-off-by: Joshua Kim <[email protected] >
* nit
Signed-off-by: Joshua Kim <[email protected] >
* nit
Signed-off-by: Joshua Kim <[email protected] >
* nit
Signed-off-by: Joshua Kim <[email protected] >
* nit
Signed-off-by: Joshua Kim <[email protected] >
* nit
Signed-off-by: Joshua Kim <[email protected] >
* nit
Signed-off-by: Joshua Kim <[email protected] >
* nti
Signed-off-by: Joshua Kim <[email protected] >
* nit
Signed-off-by: Joshua Kim <[email protected] >
* nit
Signed-off-by: Joshua Kim <[email protected] >
* nit
Signed-off-by: Joshua Kim <[email protected] >
* nti
Signed-off-by: Joshua Kim <[email protected] >
---------
Signed-off-by: Joshua Kim <[email protected] >
* update go mod
* Remove block.Status (#593 )
* Remove block.Status
* nit
* nit
* nit
* update coreth indirect dep
* fix linter
* use rc.0 tag for e2e tests
* eupgrade: base definitions (#603 )
* eupgrade: base definitions
* updates
* nit: consistently use EUpgrade for replace later
* update test configs
* refactor json genesis specs in vm_test.go
* Update params/config.go
Signed-off-by: Darioush Jalali <[email protected] >
---------
Signed-off-by: Darioush Jalali <[email protected] >
* Update avalanchego v1.11.10 prerelease (#607 )
* update avago 668b452
* update avago
* update with test build tags
* update golangci
* update avalanchego
---------
Signed-off-by: Ceyhun Onur <[email protected] >
Co-authored-by: Ceyhun Onur <[email protected] >
* update to latest avago
* add test build tags to allowlist pkg
* add test tags
* add test tags to bind cmd
* add gingko test tags
* revert cosmetic changes
* fix test chain config timestamps
---------
Signed-off-by: Joshua Kim <[email protected] >
Signed-off-by: Darioush Jalali <[email protected] >
Signed-off-by: Ceyhun Onur <[email protected] >
Co-authored-by: Joshua Kim <[email protected] >
Co-authored-by: Stephen Buttolph <[email protected] >
Co-authored-by: Darioush Jalali <[email protected] >
2024-07-26 19:41:18 +03: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
6308c49540
rename DUpgrade to Durango ( #1029 )
...
* rename DUpgrade to Durango
* Update core/evm.go
Signed-off-by: Darioush Jalali <[email protected] >
* Update x/warp/contract.go
Signed-off-by: Darioush Jalali <[email protected] >
* Update precompile/contracts/nativeminter/contract.go
Signed-off-by: Darioush Jalali <[email protected] >
* Update predicate/predicate_bytes.go
Signed-off-by: Darioush Jalali <[email protected] >
* Update precompile/precompileconfig/config.go
Signed-off-by: Darioush Jalali <[email protected] >
* Update x/warp/config.go
Signed-off-by: Darioush Jalali <[email protected] >
* Update x/warp/contract.go
Signed-off-by: Darioush Jalali <[email protected] >
* Update x/warp/contract.go
Signed-off-by: Darioush Jalali <[email protected] >
---------
Signed-off-by: Darioush Jalali <[email protected] >
Co-authored-by: Darioush Jalali <[email protected] >
2024-01-04 16:41:57 -05:00
zeekay
d561b4d550
Sync upstream
2024-01-03 09:52:28 +01:00
zeekay
65408996d7
Update import path
2024-01-03 09:50:41 +01:00
zeekay
309bce563c
Update deps
2024-01-03 09:49:19 +01:00
zeekay
3803940d43
Fix merge issues
2024-01-03 09:48:43 +01:00
zeekay
f8dd36a8be
Update SubnetEVM
2024-01-03 09:44:09 +01:00
2ba8bcd80e
Precompile events allow list ( #968 )
...
* add equality tests
* regenerate abis
* add extra padding tests
* override network upgrades (#839 )
* override network upgrades
* genesis network upgrades defaults
* fix conflicts
* Update plugin/evm/vm.go
* update native minter
* nativeminter nit test changes
* replace fee manager packers
* remove generated abis
* Update precompile/contracts/feemanager/contract.go
Co-authored-by: Darioush Jalali <[email protected] >
Signed-off-by: Ceyhun Onur <[email protected] >
* fix comments
* 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
* wip: log allow list events
* propagated allow list events to other precompiles
* add get event gas cost and tests
* nits
* revert unrelated changes
* add allowlist events
* add topics to GetLogData
* fix dep cycle in tests
* add allowlist hardhat tests
* use len in zero assertion
Signed-off-by: Ceyhun Onur <[email protected] >
* Update test_allowlist.go
Signed-off-by: Ceyhun Onur <[email protected] >
* add sender to indexed topics
* Update utils.go
Signed-off-by: Ceyhun Onur <[email protected] >
* add output names
* add signature topic gas costs
* 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
* return err
* add RoleSet event
* Update contracts/test/contract_deployer_allow_list.ts
Co-authored-by: Darioush Jalali <[email protected] >
Signed-off-by: Ceyhun Onur <[email protected] >
* Update contracts/test/tx_allow_list.ts
Co-authored-by: Darioush Jalali <[email protected] >
Signed-off-by: Ceyhun Onur <[email protected] >
* add assert event func
* use hash len
---------
Signed-off-by: Ceyhun Onur <[email protected] >
Signed-off-by: Ceyhun Onur <[email protected] >
Co-authored-by: Ceyhun Onur <[email protected] >
Co-authored-by: Darioush Jalali <[email protected] >
Co-authored-by: aaronbuchwald <[email protected] >
2023-12-21 19:05:04 +03: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
d1c41afc0e
Fix abi get inputs ( #1023 )
...
* add equality tests
* regenerate abis
* add extra padding tests
* override network upgrades (#839 )
* override network upgrades
* genesis network upgrades defaults
* fix conflicts
* Update plugin/evm/vm.go
* update native minter
* nativeminter nit test changes
* replace fee manager packers
* remove generated abis
* Update precompile/contracts/feemanager/contract.go
Co-authored-by: Darioush Jalali <[email protected] >
Signed-off-by: Ceyhun Onur <[email protected] >
* fix comments
* readd pack/unpack tests
* add signature tests
* refactor allowlist
* add readt allowlist tests
* refactor modify allowlist functions
* add pack read allowlist output
* fix golangci
* remove unrelated signature tests
* fix reviews
* remove skip len check vars
* add native minter equality tests
* add strict mode to getInputs
* fix nits
* add get fee config output fuzz tests
* disable strict mode by default in warp
* add fee manager fuzz tests
* move tests to another test file
* move pack test to another file
* fix tests
* merge allowlist refactor
* move function name getter to type
* move signatures to unpack test
* move signatures to unpack test
* Update precompile/allowlist/allowlist.go
Co-authored-by: Darioush Jalali <[email protected] >
Signed-off-by: Ceyhun Onur <[email protected] >
* nits
* unexport test fields
* fix tests
---------
Signed-off-by: Ceyhun Onur <[email protected] >
Co-authored-by: Darioush Jalali <[email protected] >
2023-12-15 14:24:35 -08:00
a9bd96ac20
Refactor allowlist ( #1011 )
...
* add equality tests
* regenerate abis
* add extra padding tests
* override network upgrades (#839 )
* override network upgrades
* genesis network upgrades defaults
* fix conflicts
* Update plugin/evm/vm.go
* update native minter
* nativeminter nit test changes
* replace fee manager packers
* remove generated abis
* Update precompile/contracts/feemanager/contract.go
Co-authored-by: Darioush Jalali <[email protected] >
Signed-off-by: Ceyhun Onur <[email protected] >
* fix comments
* readd pack/unpack tests
* add signature tests
* refactor allowlist
* add readt allowlist tests
* refactor modify allowlist functions
* add pack read allowlist output
* fix golangci
* remove unrelated signature tests
* fix reviews
* remove skip len check vars
* add native minter equality tests
* add get fee config output fuzz tests
* add fee manager fuzz tests
* move tests to another test file
* move pack test to another file
* move function name getter to type
* move signatures to unpack test
* move signatures to unpack test
* Update precompile/allowlist/allowlist.go
Co-authored-by: Darioush Jalali <[email protected] >
Signed-off-by: Ceyhun Onur <[email protected] >
* nits
---------
Signed-off-by: Ceyhun Onur <[email protected] >
Co-authored-by: Darioush Jalali <[email protected] >
2023-12-15 13:05:34 -08:00
bcf1139b3c
Replace old packers ( #857 )
...
* add equality tests
* regenerate abis
* add extra padding tests
* override network upgrades (#839 )
* override network upgrades
* genesis network upgrades defaults
* fix conflicts
* Update plugin/evm/vm.go
* update native minter
* nativeminter nit test changes
* replace fee manager packers
* remove generated abis
* Update precompile/contracts/feemanager/contract.go
Co-authored-by: Darioush Jalali <[email protected] >
Signed-off-by: Ceyhun Onur <[email protected] >
* fix comments
* readd pack/unpack tests
* add signature tests
* remove skip len check vars
* add native minter equality tests
* add get fee config output fuzz tests
* add fee manager fuzz tests
* move tests to another test file
* move signatures to unpack test
* nits
---------
Signed-off-by: Ceyhun Onur <[email protected] >
Co-authored-by: Darioush Jalali <[email protected] >
2023-12-15 18:18:43 +00:00
Ceyhun Onur and GitHub
a1c23956ad
Add manager allowlist role ( #801 )
...
* update npm package
* expand allowlist.configure
* add activation func to precompile functions
* move chainconfig to precompileconfig
* use chainconfig in verification
* trim unnecessary changes
* add manager role
* fix tests
* add verify test
* nits
* add mocks
* reviews
* fix linter
* fix benchmarks
* nits
* nits
* fix alow list bind tests & ensure they're being tested (#841 )
* simplify can modify check
* fix vm tests
* Add manager allowlist role merge (#850 )
* Warp stapling block context (#823 )
* Add GetPredicateResults to BlockContext
* Serve predicate results from blockContext
* Allow extra data to extend past DynamicFeeWindow post DUpgrade
* Get vm warp unit tests working
* Bump ANR to intermediate version to fix incompatibility with AvalancheGo
* Add kc to EthKeyChain
* Bump avalanchego dep in scripts for CI
* Add block hash payload support
* Use gomocks for precompileconfig and predicater and re-write CheckPredicates with gomocks
* Use gomock for mock accessible state and block context
* Fix existing warp contract tests with mock block context
* Remove unused mockPredicater impl
* x/warp: add contract execution unit tests
* Update NewEVMBlockContext
* Add AppendExtra to syncervm to fix tests
* x/warp: add unit test for multiple predicate results
* core: add unit test for CheckPredicates insufficient gas
* Update receive warp message test to trace block and assert the expected result
* Fix lint
* Update warp solidity contracts
* Fix block context mocks for bench
* Update precompile/precompileconfig/config.go
Co-authored-by: Darioush Jalali <[email protected] >
Signed-off-by: aaronbuchwald <[email protected] >
* Cleanup
* precompile/results: Add predicate results tests + comments
* nits
* precompile/results: omit tx predicate results if empty
* core: add invariant comment to predicate check
* Address PR comments
* Fix unpackWarpMessage and add unit tests
* Rename OriginChainID -> SourceChainID to match ago warp message type
* nits
* x/warp: set public key in warp predicate unit tests
* Update payload format
* Clarify IWarpMessenger verified message return types
* core/state: improve statedb warp specific comments
* Update input param type to uint32 to avoid potential overflow on conversion
* Update GetPredicateStorageSlots arg type to uint32
* warp/payload: add README for payload serialization (#835 )
* Fix merge
* x/warp: add unit test for PrimaryNetwork to Subnet predicate verification (#831 )
* precompilebind: add ChainConfig with DUpgrade enabled to precompile chain config verify template
2023-09-13 09:56:57 -04:00
aaronbuchwald and GitHub
523dcc272e
Warp stapling block context ( #823 )
...
* Add GetPredicateResults to BlockContext
* Serve predicate results from blockContext
* Allow extra data to extend past DynamicFeeWindow post DUpgrade
* Get vm warp unit tests working
* Bump ANR to intermediate version to fix incompatibility with AvalancheGo
* Add kc to EthKeyChain
* Bump avalanchego dep in scripts for CI
* Add block hash payload support
* Use gomocks for precompileconfig and predicater and re-write CheckPredicates with gomocks
* Use gomock for mock accessible state and block context
* Fix existing warp contract tests with mock block context
* Remove unused mockPredicater impl
* x/warp: add contract execution unit tests
* Update NewEVMBlockContext
* Add AppendExtra to syncervm to fix tests
* x/warp: add unit test for multiple predicate results
* core: add unit test for CheckPredicates insufficient gas
* Update receive warp message test to trace block and assert the expected result
* Fix lint
* Update warp solidity contracts
* Fix block context mocks for bench
* Update precompile/precompileconfig/config.go
Co-authored-by: Darioush Jalali <[email protected] >
Signed-off-by: aaronbuchwald <[email protected] >
* Cleanup
* precompile/results: Add predicate results tests + comments
* nits
* precompile/results: omit tx predicate results if empty
* core: add invariant comment to predicate check
* Address PR comments
* Fix unpackWarpMessage and add unit tests
* Rename OriginChainID -> SourceChainID to match ago warp message type
* nits
* x/warp: set public key in warp predicate unit tests
* Update payload format
* Clarify IWarpMessenger verified message return types
* core/state: improve statedb warp specific comments
* Update input param type to uint32 to avoid potential overflow on conversion
* Update GetPredicateStorageSlots arg type to uint32
* warp/payload: add README for payload serialization (#835 )
* Fix merge
2023-09-12 13:10:26 -04:00
Ceyhun Onur and GitHub
8758c47ee4
expand allowlist.configure ( #800 )
...
* expand allowlist.configure
* trim unnecessary changes
* fix package
2023-08-18 19:14:28 -04:00
Ceyhun Onur and GitHub
d57883fd11
Expand verify ( #798 )
...
* move chainconfig to precompileconfig
* use chainconfig in verification
2023-08-18 10:10:10 -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
aaronbuchwald and GitHub
cd07a1a54a
Add support for predicate gas into IntrinsicGas ( #713 )
...
* Add support for predicate gas
* Address review
* Fix test and add test for PredicateGas
* Address comments
2023-07-07 13:37:51 -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
aaronbuchwald and GitHub
50ba91df2e
Bench precompile ( #610 )
...
* Add stateful precompile benchmarks
* Add GH Action for bench precompiles
* Remove coverage from benchmarks
* Rename bench workflow
2023-04-11 13:48:27 -04:00
Ceyhun Onur and GitHub
708b7d58f1
Config test suites ( #557 )
...
* add verify allow list tests
* use new verify allow list suite in precompiles
* add equal test suite
* nits
* nits
2023-04-04 11:00:22 -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