Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update libevm branch with master branch #1484

Draft
wants to merge 57 commits into
base: libevm
Choose a base branch
from

Conversation

qdm12
Copy link
Collaborator

@qdm12 qdm12 commented Mar 10, 2025

(WIP)

ceyonur and others added 30 commits November 13, 2024 20:05
* add regression test

* remove shared memory from accept and precompile interface

* Update plugin/evm/vm_test.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* revert changes to test helper

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
* add validator state

* add pausable uptime manager

* remove stuttering name

* rename state listener

* add uptime tracking to VM

* remove unused param

* add wg for update validators

* update state before network shutdown

* restart bootstrapping status in test

* add get validator to state

* rename uptime to validator

* fix mock state

* tests

* Update plugin/evm/validators/state.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* use update enum

* Update plugin/evm/validators/state.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* Update plugin/evm/validators/state.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* respond to comments

* update avalanchego dep branch

* reviews

* reword errs

* fix test changes

* fix upgrades after deactivating latest in context

* use test branch from avalanchego

* use branch commit for ava version

* update e2e ava version

* update avago dep

* remove extra line...

* export struct

* reviews

* conflict fix

* custom err msg

* add listener mock

* bump avago test branch

* remove config

* remove api changes

* use non-version db for validatorsDB

* remove errs from resume and pause

* check after stopping

* use expectedTime in tests

* reviews

* fix len

* remove log

* use interfaces from pkgs

* improve comments

* new fields and refactorings

* fix linter

* clarify comments

* update comment

* bump to poc branch

* reviews

* update comment

* update to avago master

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
* add validator state

* add pausable uptime manager

* remove stuttering name

* rename state listener

* add uptime tracking to VM

* remove unused param

* add wg for update validators

* update state before network shutdown

* restart bootstrapping status in test

* add get validator to state

* rename uptime to validator

* fix mock state

* tests

* Update plugin/evm/validators/state.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* use update enum

* Update plugin/evm/validators/state.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* Update plugin/evm/validators/state.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* respond to comments

* update avalanchego dep branch

* reviews

* reword errs

* fix test changes

* fix upgrades after deactivating latest in context

* use test branch from avalanchego

* use branch commit for ava version

* update e2e ava version

* update avago dep

* remove extra line...

* export struct

* reviews

* conflict fix

* custom err msg

* add listener mock

* bump avago test branch

* remove config

* remove api changes

* Revert "remove api changes"

This reverts commit 8ef763f.

* use non-version db for validatorsDB

* remove errs from resume and pause

* check after stopping

* use expectedTime in tests

* reviews

* Update plugin/evm/vm.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* fix len

* remove log

* disable validators api by default

* use interfaces from pkgs

* improve comments

* new fields and refactorings

* add new fields

* fix linter

* clarify comments

* update comment

* bump to poc branch

* enable validators API by default

* reviews

* update comment

* update to avago master

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
* Bump avalanchego to master

* always sign uptime messages (testing branch)

* nits

* cleanup

* assign to correct `err`

* fix handler

* move ValidatorUptime type to subnet-evm

* disable always signing

* implement on the type itself

* remove unneeded code

* fix ut

* add validator state

* add pausable uptime manager

* remove stuttering name

* rename state listener

* add uptime tracking to VM

* remove unused param

* add wg for update validators

* update state before network shutdown

* restart bootstrapping status in test

* add get validator to state

* rename uptime to validator

* fix mock state

* tests

* Update plugin/evm/validators/state.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* use update enum

* Update plugin/evm/validators/state.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* Update plugin/evm/validators/state.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* respond to comments

* update avalanchego dep branch

* reviews

* reword errs

* fix test changes

* fix upgrades after deactivating latest in context

* use test branch from avalanchego

* use branch commit for ava version

* update e2e ava version

* update avago dep

* remove extra line...

* export struct

* implement acp118 signer and verifier

* avoid revalidating in sign

* refactor warp backend to use acp118 handler

* prune warp db before backend init

* add cache tests

* remove uptime msg type

* add cache test

* fix linter

* add validator uptimes

* bump avago getcurrentvalidators branch

* rename get validator IDs to NodeIDs

* sign uptime warp msg base on uptime calculator

* add tests

* reviews

* conflict fix

* custom err msg

* add listener mock

* bump avago test branch

* remove config

* remove api changes

* Revert "remove api changes"

This reverts commit 8ef763f.

* remove wrapped cache

* use non-version db for validatorsDB

* remove errs from resume and pause

* check after stopping

* use expectedTime in tests

* reviews

* Update plugin/evm/vm.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* fix len

* fix tests

* update avago branch

* use ctx from utils

* add empty check for source address

* nits

* remove log

* disable validators api by default

* fix test context

* use interfaces from pkgs

* improve comments

* Uptime validation nits (#1378)

* add uptime warp example

* remove log

* nit unused interface

* add weight and isSov as fields

* use validator struct in AddValidator

* add comments to example file

* fix test

* add new fields to tests

---------

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

* Update plugin/evm/validators/state.go

Co-authored-by: Michael Kaplan <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* pass locker

* rename addresscall verifier fn

* new fields and refactorings

* add new fields

* merge nits

* fix linter

* clarify comments

* update comment

* remove getnodeID

* bump to poc branch

* enable validators API by default

* reviews

* reviews

* update comment

* update to avago master

* revert test change

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
Co-authored-by: Michael Kaplan <[email protected]>
* fix start timestamp

* add client
* add db inspect

* Update plugin/evm/database.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* reduce db code from vm

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
Co-authored-by: Michael Kaplan <[email protected]>
* fix start timestamp

* add client

* rename sov to l1validator
* fix start timestamp

* add client

* rename sov to l1validator

* bump avago to v1.11.13-rc.1

* update compatibility
* use nodeID filter and uptimePerc

* add uptime seconds
* bump avago to v1.12.0

* close database on shutdown

* update release notes

* rename verdb

* close only if standalone db

* bump avago branch version

* bump avago
* bump avago to v1.12.0

* close database on shutdown

* update release notes

* rename verdb

* close only if standalone db

* bump avago branch version

* bump avago

* bump versions

---------

Signed-off-by: Ceyhun Onur <[email protected]>
* typos README.md

Signed-off-by: Dmytrol <[email protected]>

* typos README.md

Signed-off-by: Dmytrol <[email protected]>

---------

Signed-off-by: Dmytrol <[email protected]>
Co-authored-by: Ceyhun Onur <[email protected]>
* bump avalanchego to master (updates x/crypto)

* fix

* Encapsulate Signer (#693)

* Remove the bls dependency
---------
Co-authored-by: Darioush Jalali <[email protected]>

* bump to v1.12.1

---------

Co-authored-by: Richard Pringle <[email protected]>
* add validators pkg readme

* Apply suggestions from code review

Co-authored-by: Meaghan FitzGerald <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* Apply suggestions from code review

Co-authored-by: Meaghan FitzGerald <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* Apply suggestions from code review

Co-authored-by: Meaghan FitzGerald <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* nits

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Meaghan FitzGerald <[email protected]>
* add multiatch docker build to support arm

* fix build img id

* Update .github/workflows/publish_docker.yml

Co-authored-by: Quentin McGaw <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* Update .github/workflows/publish_docker.yml

Co-authored-by: Quentin McGaw <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* fix vm id

* remove debug echo

* revert format change

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Quentin McGaw <[email protected]>
- Localized mockgen commands in the package where they are needed
- Generate mocks from your IDE directly
- Platform independent way of generating mocks
- Check automatically mocks are kept up to date with their matching interfaces
- Check automatically mocks all have a matching source controlled generation command
- Remove license headers for generated mocks
- Generating mocks section added in contributing document
- Use same mockgen version as specified in go.mod
* fix test generator (#724)

* add go mod tidy check
darioush and others added 20 commits January 28, 2025 06:42
* move config package (coreth c167754)

* refactor: Split config package so it doesn't import core, core/vm (#734)

Co-authored-by: Quentin McGaw <[email protected]>

* bump avalanchego (same as coreth's 4765329)

* Apply upstream fixes (up to d3cc618) (#766)

Co-authored-by: maskpp <[email protected]>
Co-authored-by: Aaron Chen <[email protected]>
Co-authored-by: Shiming Zhang <[email protected]>
Co-authored-by: Felix Lange <[email protected]>
Co-authored-by: Nathan <[email protected]>
Co-authored-by: Eric <[email protected]>

* fix panic if config duration is set to 0 (#765)

* fix mocks

* antithesis script patch: change dir for avalanchego build (for go.mod)

---------

Co-authored-by: Quentin McGaw <[email protected]>
Co-authored-by: maskpp <[email protected]>
Co-authored-by: Aaron Chen <[email protected]>
Co-authored-by: Shiming Zhang <[email protected]>
Co-authored-by: Felix Lange <[email protected]>
Co-authored-by: Nathan <[email protected]>
Co-authored-by: Eric <[email protected]>
* Began #1428 by removing legacy gossip handler from network.go and its test file.

* Completed all recommended removals in #1428. Did not address any other changes in the original PR outside the scope of this issue

* Skip registration in Codec for removed EthTxsGossip type to ensure that numbering is consistent

* Fixed small RELEASES.md error incorrectly denoting version

* Apply suggestions from code review

Nit - typo, reduce git diffs

Co-authored-by: Quentin McGaw <[email protected]>
Signed-off-by: Austin Larson <[email protected]>

* Changed test codec version name for clarity

* Removed testCodecVersion due to later comparison with message.Version - use this for tests instead

---------

Signed-off-by: Austin Larson <[email protected]>
Co-authored-by: Ceyhun Onur <[email protected]>
Co-authored-by: Quentin McGaw <[email protected]>
* bump avalanchego to v1.12.2

* remove unneeded var

* fix antithesis images

* add cross-compile setup to dockerfile

* use build_env.sh in Dockerfile

* export variables

* remove build_env.sh from Dockerfile

* remove comment

* revert
* remove current state lock

* revert formatting
Co-authored-by: Martin HS <[email protected]>
Co-authored-by: Marius van der Wijden <[email protected]>
Co-authored-by: Quentin McGaw <[email protected]>
Co-authored-by: Richard Pringle <[email protected]>
Co-authored-by: Ceyhun Onur <[email protected]>
Co-authored-by: Tsachi Herman <[email protected]>
Signed-off-by: chuangjinglu <[email protected]>
Co-authored-by: Ceyhun Onur <[email protected]>
@qdm12 qdm12 force-pushed the qdm12/libevm/master-merge-1 branch from 6333aac to 4723d45 Compare March 10, 2025 15:04
@qdm12 qdm12 force-pushed the qdm12/libevm/master-merge-1 branch 2 times, most recently from 3219bef to 84cf189 Compare March 11, 2025 12:03
@qdm12 qdm12 force-pushed the qdm12/libevm/master-merge-1 branch from 84cf189 to 5f18e40 Compare March 11, 2025 15:27
@qdm12 qdm12 force-pushed the qdm12/libevm/master-merge-1 branch from 993de33 to 7960b4a Compare March 12, 2025 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.