40 Commits
Author SHA1 Message Date
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
37ff0fc4d7 Docker image combined tag (#1566)
Signed-off-by: Martin Eckardt <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Martin Eckardt <[email protected]>
Co-authored-by: Michael Kaplan <[email protected]>
Co-authored-by: Quentin McGaw <[email protected]>
2025-04-24 11:56:27 +00:00
dff8c47675 Update to use default plugin dir ($HOME/.avalanchego/plugins) (#1245)
* Update to use default plugin dir ($HOME/.avalanchego/plugins)

This has been the default for avalanchego since v1.9.6.

* fixup: Update dockerfile to copy the original rather than the symlink

* remove plugin paths

Signed-off-by: Ceyhun Onur <[email protected]>

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Ceyhun Onur <[email protected]>
2024-07-26 10:07:54 -07:00
marunandGitHub b480fae01f ci: Add shellcheck step to lint job (#1061)
* `ci`: Add shellcheck step to lint job

* fixup: Exclude upstream files
2024-01-31 13:31:27 +00: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 0eef0d28e2 Bump avalanchego dep and update version for next release (#770)
* Bump avalanchego dep and update version for next release

* Update cache sizes

* Update flag in run script to replace staking-enabled=false
2023-08-02 15:28:19 -04: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
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
AnushaandGitHub e863438d2a Specify E2E Tests in Run Script (#340) 2022-11-02 21:44:51 -04:00
e73bd9993e use anr pid in e2e test yaml (#292)
* use anr pid in e2e test yaml

* fix parser

* fix naming in simulator to not be confused as ANR output

* rename to SaveClusterInfo

Co-authored-by: aaronbuchwald <[email protected]>
2022-10-12 10:49:42 -05:00
felipemaderoandGitHub 4ff12f4922 bump to avago 1.8.6 (#279)
* bump avago + anr

* add cross compilation

* mod tidy

* CGO_CFLAGS instead of CGO_FLAGS

* strange "" stuff in goreleaser

* add comment for CGO_FLAGS setting. move seting to constants

* fix path var

* fix unit test script

* bump avago version in versions.sh

* add checksum check for SDK archive

* fix checksum
2022-10-05 15:56:07 -04:00
Gyuho LeeandGitHub 98bdd260a9 *: add simulator e2e tests (#172)
* *: add simulator e2e tests

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

* lint-test: use Go 1.18

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

* cmd/simulator: use local subnet-evm version

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

* run.sh: remove go mod command

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

* cmd/simulator: use os.ReadFile

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

* *: update run.sh + e2e_test.go with latest network runner

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

* *: remove "mode"

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

* run.sh: fix genesis for e2e tests

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

* run.sh: fix "fi"

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

* test: skip shutdown for e2e

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

* run.sh: skip genesis when disabled nr

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

* e2e: skip

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

* run.sh: update

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

* run.sh: fix RUN_SIMULATOR

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

* run.sh: fix

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

* run.sh: fix

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

* test: skip shutdown when simular is enabled

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

* *: use avalanchego 1.7.17 for tests

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

* tests/e2e: remove "--enable-solidity-tests"

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

* run.sh: debug

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

* run.sh: fix

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

* run.sh: remove "set -x" debug mode

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

* go mod tidy

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

Signed-off-by: Gyuho Lee <[email protected]>
2022-08-24 21:01:58 -04:00
c82ac4714b enable/disable precompiles through upgradeBytes (#148)
* [wip] enable/disable precompile upgrades

* e2e json

* e2e genesis

* off by one

* omitEmpty -> omitempty

* custom json handling to avoid nested map

* simplify the config

* tx_pool: fix bug in calling IsTxAllowList

* precompile: add disable helpers

* plugin/evm: tentative UT

* precompile: move test helpers to their own file

* vm_test: fix gas / test

* fix copy/paste issue

* test fixes

* backward compatibility

* cleanup

* comment

* refactor: group NetworkUpgrades in struct

* rearrange Add/Disable helper methods

* move ethereum upgrades to chainConfig

* tx_gossiping_test: include eth upgrades

* vm_test: check for ErrSenderAddressNotAllowListed

* consensus/dummy: add clock

* TestTxAllowListDisablePrecompile: use clock

* vm_test.go: issueAndAccept helper / fixes

* vm_test: remove sleep

* support multiple activations/deactivations

* fix comment

* nit: simplify loop

* fix

* golang interfaces nil

* add some unit tests

* tests and fixes

* shutdown vm in test

* fix flakiness (AddRemoteSync)

* separate upgradeBytesConfig to its own struct

* add back wspace

* remove test helpers

* fix persitedUpgradeBytes

* make changes to embedding structure

* switch from getter to using an enum

* nit: fix strings

* upgrades_config.go -> precompile_config.go

* core: handle upgrade bytes in core.Blockchain

* nit: remove argument

* nit: less diff

* add equal check for StatefulPrecompileConfig

* split test

* upgrade_bytes_config_test -> upgrade_config_test

* revert AddRemoteSync -> addRemoteSync

* e2e tests: bump avalanche versions

* nit: remove args from run.sh in comments

* Upgrade nits (#167)

* Nits

* Nits

* Remove comment

* Fix

* Fixes

* upgradeBytes: verify increasing timestamps accross keys (#168)

* verify increasing timestamps accross keys

* nicer comparison

* Update plugin/evm/vm_upgrade_bytes_test.go

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

* unmarshal bytes to temp var

* test: reuse ctx

* test: add disable same time as enable test case

* merge (Read,Write) UpgradeConfig  w/ ChainConfig

* test disable/enable independent of timestamp

* rawdb: fix metadata accounting of upgradeConfig

* verify etherbase before genesis / minimize diff

* nit: BigNumEqual nil checks shortened version

* convert nested configs to json in String() (#175)

* Update plugin/evm/vm.go

Co-authored-by: Ceyhun Onur <[email protected]>
Co-authored-by: aaronbuchwald <[email protected]>
2022-07-30 14:28:48 -04:00
Ceyhun OnurandGitHub 9fbf087192 improve run script (#99)
* do not redownload everything & shutdown background processes

* fix build folders

* do no err out if process already killed

* remove force kills

* rework run script

* fix tmp file paths

* don't enforce old avago version

* rename basedir
2022-07-26 11:29:18 -04:00
Connor DalyandGitHub f2f2195dd4 Cleaned up ANR install process (#155)
* Cleaned up install process

* Fixed comment

* Fixed missing v and unnecessary file

* Bumped versions

* Update go install runner version

* Added test prints

* Updated prints

* Set gopath
2022-07-21 13:29:27 -04:00
91664ba114 init fee config precompile (#121)
* init fee config precompile

* add fee config manager precompile

* complete precompile internal functions

* nits

* add fee config provider

* init cache with limit

* added getFeeConfig func to precompile

* add fee config tasks to hardhat

* add getFeeConfigs for apis

* add unit tests

* update tx pool only if fee config is activated

* Update plugin/evm/block_verification.go

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

* fix for reviews

* add initial fee config to precompile & default back to chain config

* rename functions in tests

* add deployer allow list test suit

* add last accepted at

* add last accepted test to precompile test

* Revert selectBigWithinBounds changes

* use big int cmp

* move precompile test to last

* fix unit tests

* remove flaky test & ensure tx pool is reorged

* move local rpc into new file

* add comment to cachableFeeConfig

* add timestamp to block context

* add error to newOracle

* fix moar nits

* Nits

* revert allowlist setter helpers

* increase SetFeeConfigGasCost for setting last changed

* add configure validation to fee precompiles

* Address nits

* increase gas cost for wagmi

* Remove fee config from fee config manager config

* Update contract-examples/README.md

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

* add license to tests

* remove log

* add err check

* Update precompile/utils.go

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

* Remove no longer necessary test

* contract  example nits

* fix contract tests

* lower fees & split into two tests

* use explicit fees

* Nits

* feeconfig nits

* nit

* Fee config precompile nits (#145)

* Add COPYING file from geth (#83)

* Add COPYING file from geth

* Add COPYING.LESSER file

* Add version to code (#136)

* Add version to code

* bump version

* Add version to goreleaser

* Remove version from code in favor of setting at compile time

* use version env

* use v prefix in the version

Co-authored-by: Aaron Buchwald <[email protected]>

* [AV-1855] Simplify build script to place binary in avalanchego plugin directory (#81)

* Simplify build script to place binary in avalanchego plugin directory

* echo binary path

* split shutdown into network stop and client stop, call network stop
after each test, call client stop after suite ends

* add check for network up after stop

* switch to ANR

* bump script to ANR 1.1.3

* fix cluster status check

* minor fix

* cleanup of health/status check

* lint

* nits

Co-authored-by: Ceyhun Onur <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
Co-authored-by: Aaron Buchwald <[email protected]>
2022-07-12 10:37:18 -04:00
Connor Daly 8659ca5cc5 Cleaned up 2022-06-10 15:45:37 -04:00
Connor Daly 85a1d6a8fd Run now works 2022-06-10 15:45:36 -04:00
Patrick O'GradyandGitHub 5ea4ffe046 Bump AvalancheGo Version (#131)
* update versions

* update README

* fix breaking changes

* fix

* bump test version

* update README

* bump again
2022-06-09 18:04:48 -05:00
Patrick O'Grady ca04abe3b0 one-liner shutdown 2022-05-31 09:44:28 -07:00
Gyuho Lee b59b6f525f *: tests with avalanchego 1.7.11
Signed-off-by: Gyuho Lee <[email protected]>
2022-05-26 05:56:43 +08:00
Gyuho Lee 74386af2ec *: add automated release with "goreleaser"
Signed-off-by: Gyuho Lee <[email protected]>
2022-05-25 13:51:51 +08:00
Gyuho Lee 04010ea68e run.sh: remove "MODE" arg
Signed-off-by: Gyuho Lee <[email protected]>
2022-04-29 17:42:35 -07:00
Gyuho Lee d35fc1d316 scripts/run.sh: more logs
Signed-off-by: Gyuho Lee <[email protected]>
2022-04-29 16:31:14 -07:00
Gyuho Lee ec49a49d52 scripts/run.sh: add back "parser/main.go" commands
Signed-off-by: Gyuho Lee <[email protected]>
2022-04-29 16:23:57 -07:00
Gyuho Lee cd0a9466d8 scripts: remove duplicate GOOS, clean up e2e_test.go
Signed-off-by: Gyuho Lee <[email protected]>
2022-04-25 10:27:43 -07:00
Gyuho Lee 42fc7378ee scripts/e2e: use "os" package, fix missing mode error message
Signed-off-by: Gyuho Lee <[email protected]>
2022-04-25 08:52:28 -07:00
Gyuho Lee deb0501953 *: add e2e tests, replace "runner" with network-runner
Signed-off-by: Gyuho Lee <[email protected]>
2022-04-19 13:04:29 -07:00
Patrick O'Grady a1a9a93a3e fix README 2022-03-02 13:06:31 -08:00
Patrick O'Grady eaa38a0a6a proper golang package 2022-03-02 12:54:09 -08:00
Patrick O'Grady ff8ff8a9ba make better 2022-03-02 10:38:42 -08:00
Patrick O'Grady e68bb25add improve local runner experience 2022-03-02 10:24:34 -08:00
Patrick O'Grady 3c71a0d544 improve output 2022-03-02 09:59:41 -08:00
Patrick O'Grady 6258055fb4 add TODO 2022-02-24 20:36:28 -07:00
Patrick O'Grady 3a6adb7f48 don't do airdrop hash by default 2022-02-24 20:35:05 -07:00
Patrick O'Grady 43a542b6d0 local network running 2022-01-26 18:27:32 -08:00