-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(all): minimal changes for last libevm dependency
- Uses tip of main libevm dependency + cherry picked commit: ava-labs/libevm@d3f6a5e - Precompile legacy gas fix (done in ava-labs/libevm@f906679) - Added `HeaderExtra` not-implemented implementation - Minimal changes shamelessly copied over from #746
- Loading branch information
Showing
12 changed files
with
65 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2179,6 +2179,11 @@ func golangBindings(t *testing.T, overload bool) { | |
if out, err := replacer.CombinedOutput(); err != nil { | ||
t.Fatalf("failed to replace binding test dependency to current source tree: %v\n%s", err, out) | ||
} | ||
replacer = exec.Command(gocmd, "mod", "edit", "-x", "-require", "github.com/ava-labs/[email protected]", "-replace", "github.com/ava-labs/libevm=github.com/ava-labs/[email protected]") | ||
replacer.Dir = pkg | ||
if out, err := replacer.CombinedOutput(); err != nil { | ||
t.Fatalf("failed to replace binding test dependency to current source tree: %v\n%s", err, out) | ||
} | ||
tidier := exec.Command(gocmd, "mod", "tidy", "-compat=1.22") | ||
tidier.Dir = pkg | ||
if out, err := tidier.CombinedOutput(); err != nil { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// (c) 2025, Ava Labs, Inc. All rights reserved. | ||
// See the file LICENSE for licensing terms. | ||
|
||
package types | ||
|
||
import ( | ||
"io" | ||
|
||
ethtypes "github.com/ava-labs/libevm/core/types" | ||
"github.com/ava-labs/libevm/rlp" | ||
) | ||
|
||
// HeaderExtra is a struct that contains extra fields used by Avalanche | ||
// in the block header. | ||
type HeaderExtra struct { | ||
} | ||
|
||
func (h *HeaderExtra) EncodeRLP(eth *ethtypes.Header, writer io.Writer) error { | ||
panic("not implemented") | ||
} | ||
|
||
func (h *HeaderExtra) DecodeRLP(eth *ethtypes.Header, stream *rlp.Stream) error { | ||
panic("not implemented") | ||
} | ||
|
||
func (h *HeaderExtra) MarshalJSON(eth *ethtypes.Header) ([]byte, error) { | ||
panic("not implemented") | ||
} | ||
|
||
func (h *HeaderExtra) UnmarshalJSON(eth *ethtypes.Header, input []byte) error { | ||
panic("not implemented") | ||
} | ||
|
||
func (h *HeaderExtra) PostCopy(dst *ethtypes.Header) { | ||
panic("not implemented") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,7 @@ git checkout -B "test-${AVALANCHE_VERSION}" "${AVALANCHE_VERSION}" | |
|
||
echo "updating coreth dependency to point to ${CORETH_PATH}" | ||
go mod edit -replace "github.com/ava-labs/coreth=${CORETH_PATH}" | ||
go mod edit -replace "github.com/ava-labs/libevm=github.com/ava-labs/[email protected]" | ||
go mod tidy | ||
|
||
echo "building avalanchego" | ||
|