132 Commits
Author SHA1 Message Date
e77c9c97cc coreth sync: 0.12.4-rc.0 -> 0.12.7 (#975)
* coreth sync: 0.12.4-rc.0 -> 0.12.7

* Review coreth 0.12.7 (#980)

* Apply suggested changes from https://github.com/ava-labs/coreth/pull/381/files

* drop reexec=0

* add txHashes

* bump avalanchego

* remove manager

* fix compat test

* bump version for e2e tests

---------

Co-authored-by: Ceyhun Onur <[email protected]>
2023-11-07 14:35:02 -05:00
Darioush JalaliandGitHub acb8bc67d8 bump avalanchego to v1.10.15 (#988)
* bump avalanchego

* remove manager

* fix compat test

* bump version for e2e tests

* update readme
2023-11-07 13:59:22 -05:00
Ceyhun OnurandGitHub a08fda51b3 use cgo in mockgen (#974)
* use cgo in mockgen

* use repo path

* move constants
2023-10-27 10:34:06 -04:00
Ceyhun OnurandGitHub 1b6ddf5720 bump avalanchego to v1.10.14 (#971)
* bump avalanchego to v1.10.14

* fix versions in readme

* bump min golang version

* bump anr
2023-10-26 12:42:12 -04:00
Ceyhun OnurandGitHub a2ba3700ff bump subnet-evm and avalanchego versions (#965) 2023-10-19 20:24:06 +03:00
AnushaandGitHub e60565d5d8 Improve TPS on E2E Load Test (#947)
* init

* make fee changes

* change simulator settings

* Correct numbers

* correct header

* correct
2023-10-18 14:56:06 +00:00
Ceyhun OnurandGitHub 7d9d91ab56 bump avalanchego to v1.10.12 (#952) 2023-10-11 13:56:18 -07:00
Ceyhun OnurandGitHub 95817a816e bump versions (#880)
* bump versions

* bump anr
2023-09-20 20:47:36 +03:00
318a6fe09d P2p sdk pull gossip (#861)
* Add SDK Router message handling (#316)

Co-authored-by: Stephen Buttolph <[email protected]>

* Fix hanging requests after Shutdown (#326)

* fix requests hanging after shutdown

* fix build

---------

Signed-off-by: Stephen Buttolph <[email protected]>
Co-authored-by: Stephen Buttolph <[email protected]>

* Update to 1.10.10-rc.2 (#328)

* update to avalanchego 1.10.10-rc.2

* nits

* nit

* Add P2P SDK Pull Gossip (#318)

* add batchsize

* sync changes

* Drop outbound gossip for non vdrs (#862)

* Drop outbound gossip requests for non-validators (#334)

* drop outbound gossip requests for non validators

* nit

* nit

* sync changes

---------

Co-authored-by: Joshua Kim <[email protected]>

---------

Co-authored-by: Joshua Kim <[email protected]>
2023-09-19 15:09:47 -04:00
Ceyhun OnurandGitHub 6e22df3bc5 Add SDK Router message handling (#316) (#858)
* Add SDK Router message handling (#316)

Co-authored-by: Stephen Buttolph <[email protected]>

* revert avago version bump

* Fix hanging requests after Shutdown (#326) (#859)

* Fix hanging requests after Shutdown (#326)

* fix requests hanging after shutdown

* fix build

---------

Signed-off-by: Stephen Buttolph <[email protected]>
Co-authored-by: Stephen Buttolph <[email protected]>

* Bump avago rc (#860)

* Update to 1.10.10-rc.2 (#328)

* update to avalanchego 1.10.10-rc.2

* nits

* nit

* add batchsize

* increase timeout dynamically

---------

Co-authored-by: Joshua Kim <[email protected]>

---------

---------
2023-09-18 21:24:58 -04:00
aaronbuchwaldandGitHub 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 OnurandGitHub be1bf355e8 add mockgen (#838) 2023-09-12 10:48:30 -04:00
aaronbuchwaldandGitHub ce59e115b5 add mocks for precompile tests (#812)
* add mocks for precompile tests

* Update compatibility

* Bump AvalancheGo dep to v1.10.9

* Bump ANR dep to be compatible with ago v1.10.9

* revert ConfigurationBlockContext changes
2023-08-25 12:58:05 -04:00
Ceyhun OnurandGitHub 123ef41742 bump avalanchego version (#789) 2023-08-14 18:17:01 -04:00
7e958c8b1d Bump min go version (#780)
Co-authored-by: Darioush Jalali <[email protected]>
2023-08-08 09:32:04 -07: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 246815e95d Add warp contract implementation (#718)
* Add warp contract implementation

* Cleanup predicate test

* Fix new function signature

* Replace invalid fuzz test with unit test

* Add chain config to enable warp API for warp e2e test

* remove unused var

* Add experimental warning and move warp precompile to x/ package

* fix warning label

* Fix warning

* vm test nits

* Improve sendWarpMessenger sol comment

* more vm warp test nits

* Move warp params into params package

* More vm warp test nits

* Address more PR comments

* Remove triggerTx2

* Add check for expected topics from sendWarpMessage log

* Fix config test

* Fix incorrect replace

* remove unnecessary echo

* Address comments

* Address comments

* Address PR comments

* Improve comments

* Convert [32]byte type to common.Hash

* Add base cost for getVerifiedWarpMessage

* fix require equal type check

* Fix updated awm message format

* Update warp message format

* Move IWarpMessenger.sol to interfaces/

* Add newline to warp genesis

* uncomment assertion

* Fix broken links in README
2023-07-31 10:56:25 -04:00
aaronbuchwaldandGitHub 2d89a14f35 Bump avalanchego to v1.10.5 and bump Subnet-EVM for v0.5.3 release (#757)
* Bump avalanchego to v1.10.5 and bump Subnet-EVM for v0.5.3 release

* bump anr version to v1.7.1
2023-07-26 12:05:44 -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
CesarandGitHub 13ad4f7091 Run ginkgo precompile tests in parallel (#712)
Use SynchronizedBeforeSuite to create the node and all the subnet that are
needed to run tests. Pass the blockchainID to each work processor and run the
tests in parallel to reduce runtime
2023-07-14 18:43:29 -04:00
Ceyhun OnurandGitHub e7d1a6c504 bump version to v0.5.2 (#681)
* bump version to v0.5.2

* downgrade avalanchego to 1.10.2

* update compatibility
2023-06-26 21:54:10 -04:00
aaronbuchwaldandGitHub 532a0e9581 Bump avalanchego dep to v1.10.1 and bump version to v0.5.1 (#634) 2023-05-01 12:21:02 -04:00
aaronbuchwaldandGitHub f7336796cb Simulator improvements (#619)
* Refactor load simulator

* Cleanup

* simulator: support http as well as websocket endpoints

* simulator: move help err handling

* simulator: Fix distribute funds bug

* simulator: add metrics at the end of simulator run

* Support no timeout

* Address review comments

* Remove unused struct

* Update cmd/simulator/config/flags.go

* Update cmd/simulator/load/funder.go

* Remove . from simulator flags

* Add comment to scripts/run_simulator.sh

* Address PR comments
2023-04-22 01:44:44 -04:00
aaronbuchwaldandGitHub 4a550f04b1 Bump avalanchego to v1.10.0 (#604)
* Bump avalanchego to v1.10.0-fuji-rc.2

* Add comptibility version

* Bump avalanchego dep to v1.10.0 and update version to v0.5.0

* Fix interface changes from avalanchego

* Update compatibility in README
2023-04-12 13:04:01 -04:00
aaronbuchwaldandGitHub 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
Richard PringleandGitHub d694ef43e2 Add ability to specify commit of avalanchego in ci (#589) 2023-03-24 14:04:26 -04:00
66c57ca626 Fix Dockerfile and add Build Image to GH Actions (#561)
* Remove specified git version to avoid downgrades breaking docker build

* Add build docker image to unit test action

* Update to use current branch instead of commit for docker image build

* Update docker image script to push image if env var is set

* Add new line to build image script

* Update scripts/constants.sh

Co-authored-by: Sam Batschelet <[email protected]>

* Update docker login

* Update build image action

* Update gh action

* checkout for docker image build

* Set build image ID in gh action with github.ref_name

* Separate CI and release

* remove extra copy

* Update name

* Update variable used in build image id

* Update set var

* Update dockerhub repo

* Revert dockerhub repo name chnge and use Subnet-EVM in tag name

---------

Co-authored-by: Sam Batschelet <[email protected]>
2023-03-09 13:44:17 -05:00
9a537aa109 state modifications as network upgrade (#549)
Co-authored-by: Aaron Buchwald <[email protected]>
2023-03-08 13:10:35 -08:00
427afc5457 Start release cycle v0.4.12 (#559)
* start v0.4.12 release cycle

* add setup action to lint ci for proper go version

* Bump version in plugin/evm/version.go

* Remove go version pin

* Revert "Remove go version pin"

This reverts commit e651bebbdcb51afab1291374ff5c20c4a14f20c5.

* bump golangci-lint-acion to @v3

* bump golangci lint

* try 1.48

* golangci-lint v1.51 and goimports leveldb file

* migrate linting changes from coreth

* goimports and fix diagram comments

* Fix bad goimports changes

---------

Co-authored-by: Darioush Jalali <[email protected]>
2023-03-07 09:07:17 -05:00
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