Skip to content

Bump avago subnet #800

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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Bump avago subnet #800

wants to merge 10 commits into from

Conversation

iansuvak
Copy link
Contributor

@iansuvak iansuvak commented Jun 13, 2025

Why this should be merged

Updates dependencies in testing to the current versions.

How this works

  • Updates avago + subnet deps
  • Updates existing manually created files to reference libevm instead of go-ethereum
  • Updates the E2E testing code for the new tmpnet interfaces.

How this was tested

CI

How is this documented

@iansuvak iansuvak marked this pull request as ready for review June 18, 2025 12:43
@iansuvak iansuvak requested a review from a team as a code owner June 18, 2025 12:43
Copy link
Contributor

@geoff-vball geoff-vball left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple naming nits, otherwise lgtm

@@ -73,6 +73,8 @@ cp ${BASEDIR}/subnet-evm/subnet-evm ${BASEDIR}/avalanchego/plugins/srEXiWaHuhNyG
echo "Copied ${BASEDIR}/subnet-evm/subnet-evm binary to ${BASEDIR}/avalanchego/plugins/"

export AVALANCHEGO_BUILD_PATH=$BASEDIR/avalanchego
export AVALANCHEGO_PATH=$AVALANCHEGO_BUILD_PATH/avalanchego
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this something we can change? Building into $BASEDIR/avalanchego/avalanchego seems a little confusing

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The actual location of the build is the same as it was before. ~/.teleporter-deps/avalanchego/avalanchego where the final avalanchego is the actual binary but the folder also contains a plugins subfolder with the subnet-evm binary there.

The only difference here is that instead of passing that path in the code to tmpnet we now set it as a env variable that tmpnet reads.

@@ -23,18 +23,18 @@ import (
nativeMinter "github.com/ava-labs/icm-contracts/abi-bindings/go/INativeMinter"
"github.com/ava-labs/icm-contracts/tests/interfaces"
gasUtils "github.com/ava-labs/icm-contracts/utils/gas-utils"
ethereum "github.com/ava-labs/libevm"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

importing libevm and ethereum seems slightly strange to me, but not pressed about it either way

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the pattern used inside subnet-evm for imports of libevm top level exports.

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.

3 participants