Commit Graph
103 Commits
Author SHA1 Message Date
aaronbuchwaldandGitHub b592052bd4 Start coreth migration (#552)
* Start coreth migration

* Bump version to v0.4.11 and avalanchego dep

* goimports core/blockchain.go

* Update compatibility.json

* Update compatibility in README

* Bump avalanchego dep to v1.9.10
2023-03-01 17:44:38 -08: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 38dcbacbca Start v0.4.10 release cycle (#533) 2023-02-21 15:08:47 -08:00
aaronbuchwaldandGitHub 5e95bc562d Bump AvalancheGo dep to v1.9.9 (#530) 2023-02-21 13:12:55 -08:00
aaronbuchwaldandGitHub d1157939b7 Bump avalanchego to v1.9.9-rc.4 (#526)
* Bump avalanchego to v1.9.9-rc.4

* Fix imports

* Bump compatibility.json for latest avalanchego release
2023-02-20 14:47:36 -08:00
cam-schultzandGitHub 450dcb9dd3 build with avago v1.9.8 (#498)
* build with avago v1.9.8

* add indirect deps

* build fix

* another build fix

* try to fix lint job
2023-02-07 20:08:42 -08:00
aaronbuchwaldandGitHub 6fff8614e8 Add generate precompile script to fix CGO flags issue (#489) 2023-02-06 15:40:30 -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
Ceyhun OnurandGitHub 4446703a0a Coreth 0.11.6 sync (#436)
* sync changes from coreth-0.11.6

* remove diff patch

* revert format changes

* nits (#441)
2023-01-23 14:06:36 -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
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 49458d22df Start v0.4.6 release cycle (#409) 2022-12-12 10:41:39 -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
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
aaronbuchwaldandGitHub fd3b1033d3 Start v0.4.4 release cycle (#349) 2022-11-07 18:37:18 -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
AnushaandGitHub e863438d2a Specify E2E Tests in Run Script (#340) 2022-11-02 21:44:51 -04:00
aaronbuchwaldandGitHub 4d830e4b44 Bump version to v0.4.2 (#328) 2022-11-01 09:45:06 -04:00
158e8882bd Bump avalanchego v1.9.1 (#324)
* changes to requester

* fix compilation

* whoopse

* whoopse again

* Bump avalanchego dependency to v1.9.1

* Migrate OpenTelemetry changes

* go mod tidy cmd/simulator

Co-authored-by: Anusha Chillara <[email protected]>
Co-authored-by: Stephen <[email protected]>
2022-10-28 19:30:48 -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
aaronbuchwaldandGitHub 2f3ff1c0c8 Update avalanchego v1.9.0 (#293)
* Bump avalanchego to v1.9.0

* go

* Update go.mod
2022-10-06 16:30:31 -04: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
12ddc72239 Update AvalancheGo Compatibility (#267)
* Update AvalancheGo Compatibility

* bump versions

* simulator go.mod

* Fix ago compat versions

Co-authored-by: Darioush Jalali <[email protected]>
Co-authored-by: Aaron Buchwald <[email protected]>
2022-09-22 18:44:19 +09:00
holisticodeandGitHub 165002b154 Revert PR 249 (#252)
* revert PR 249

* fix yaml indentation

* adjust e2e versions

* update simulator go.mod
2022-09-20 01:25:29 +09:00
aaronbuchwaldandGitHub c3d0656961 Add comment to geth pkg import linting script (#259) 2022-09-19 20:14:15 +09:00
b0e42eaa10 bump: [email protected] (#249)
* [email protected]

Signed-off-by: Sam Batschelet <[email protected]>

* *: react to bump

Signed-off-by: Sam Batschelet <[email protected]>

* bump: [email protected]

Signed-off-by: Sam Batschelet <[email protected]>

* Remove network runner dep

* remove needs from goreleaser

* Update subnet evm version to v0.3.0

Signed-off-by: Sam Batschelet <[email protected]>
Co-authored-by: Aaron Buchwald <[email protected]>
2022-09-05 03:01:44 -04:00
Darioush JalaliandGitHub e54238e908 geth import allowlist (#243)
* geth import allowlist

* attempt 2

* add permission / minimize diff

* fix allowlist: should pass

* add || true

* changes from review comments

* remove rawdb

* remove rawdb

* remove abi and params
2022-09-01 10:26:17 -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
0ad28c292b [email protected] (#213)
* update avalanchego

* Avalanchego bump anr (#214)

* bump ANR

* add todo

* Clean up logger and use commit from PR (#215)

* Clean up logger and use commit from PR

* Bump anr version

* Remove TODO

* Add comment to logging off

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

Co-authored-by: Darioush Jalali <[email protected]>
Co-authored-by: aaronbuchwald <[email protected]>
2022-08-19 12:26:38 -04:00
felipemaderoandGitHub bd50f4d5ba bump to ANR 1.2.0 (#185)
* bump

* fix golanglint version

* go mod tidy

* empty commit

* rm pretty dep

* mod tidy
2022-08-11 17:56:05 -04:00
aaronbuchwaldandGitHub 4fc2e0ffe4 Bump go version to 1.18 (#184)
* Bump go version to 1.18

* Set golangci lint version to v1.47

* Fix typo

* Update github action versions
2022-08-08 12:29:32 -04:00
aaronbuchwaldandGitHub d23fbfd8fe Start v0.2.9 release cycle (#181) 2022-08-03 14:29:50 -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
Patrick O'GradyandGitHub fed525f572 [email protected] (#162) 2022-07-23 09:47:53 -07:00
Patrick O'GradyandGitHub 616fe271f8 Update AvalancheGo (#157)
* update simulator

* update AvalancheGo

* update all versions

* remove flaky tests

* more badges
2022-07-21 17:29:34 -07: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
Joshua KimandGitHub fde8818a53 removing hard dependency on git from build script (#142) 2022-07-12 09:59:31 -04:00
aaronbuchwaldandGitHub 53abcc0de8 [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
2022-07-01 14:58:20 -04:00
52b47a7ef2 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]>
2022-07-01 12:27:24 -04:00
Patrick O'GradyandGitHub 09f5497526 [email protected] (#134) 2022-06-14 10:19:32 -07:00
Connor Daly b54abcb882 Removed run e2e 2022-06-10 15:45:51 -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
Connor Daly 8e6cc95c0e About to review 2022-06-10 15:44:44 -04:00