236 Commits
Author SHA1 Message Date
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
Connor Daly 962d82c356 Fixed return code 2022-06-10 15:44:44 -04:00
Connor Daly 1e52405f2f Tests work for one genesis 2022-06-10 15:44:43 -04:00
Connor Daly 78e1ce1c6f about to integrate hardhat 2022-06-10 15:44:40 -04:00
Connor Daly 5e8f799b44 Parity with old work and current main 2022-06-10 15:44:38 -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
Yulin DongandGitHub a4de5b3a34 currency (#124) 2022-06-02 16:27:01 -07:00
Gyuho LeeandGitHub 9f7318bfa4 tests/e2e: add basic curl tests for RPC server (#118)
build_test.sh: exclude "tests/e2e"

Signed-off-by: Gyuho Lee <[email protected]>
2022-05-31 11:51:24 -07: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
Ceyhun Onur 349599629f merge coreth 0.8.10-rc5 without fastsync & metrics package 2022-05-23 15:11:01 +03: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