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

Merge master (2e4e6bd) into libevm (2) #812

Merged
merged 72 commits into from
Feb 20, 2025
Merged
Show file tree
Hide file tree
Changes from 70 commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
9d2e5a0
fix chainID in TestWaitDeployedCornerCases (#670)
darioush Oct 16, 2024
4c5617b
ci: fix windows flake test detection (#677)
darioush Oct 28, 2024
3abb04c
sync subnet-evm to 981830ed + avalanchego v1.12.0-initial-poc.9 (#686)
darioush Nov 13, 2024
c06af9b
bump avago to v1.11.13-rc.0 (#688)
ceyonur Nov 15, 2024
e73e655
Encapsulate Signer (#693)
richardpringle Dec 4, 2024
9d4ce7b
Release notes and avalanchego update (#696)
darioush Dec 10, 2024
7a90507
prepare release cycle v0.14.1 (#698)
darioush Dec 12, 2024
340fe93
Remove eth_getAssetBalance API (#715)
darioush Dec 23, 2024
6b4dbb4
Simplify txpool min base fee code (post etna cleanup) (#717)
darioush Dec 26, 2024
1732ff5
chore: fix function name in comment (#718)
cuiweiyuan Dec 26, 2024
1df5f45
chore(ci): remove `check-latest: true` to ensure the specified Go ver…
qdm12 Dec 27, 2024
90ce341
fix test generator (#724)
ceyonur Dec 30, 2024
3511497
new atomic pkg (#699)
ceyonur Dec 30, 2024
c167754
move atomic gossip (#706)
ceyonur Dec 31, 2024
cf1dd75
refactor trie_prefetcher to be similar to upstream structurally (#727)
darioush Jan 3, 2025
0fe743a
bump avago 902377d447ba (#732)
ceyonur Jan 6, 2025
b16fc67
chore(scripts): simplify mocks generation (#721)
qdm12 Jan 7, 2025
7c069d8
Sync subnet-evm changes up to 981830ed (#737)
darioush Jan 7, 2025
e19a2f7
ci verification for go mod tidy (#736)
darioush Jan 7, 2025
14e9d30
refactor: Split config package so it doesn't import core, core/vm (#734)
darioush Jan 7, 2025
24e1459
remove currentStateLock (#741)
darioush Jan 9, 2025
b6b4dfb
atomic syncer: simplify interface (#735)
darioush Jan 9, 2025
5013851
feat(internal/ethapi)!: reject `eth_getProof` queries for historical …
qdm12 Jan 15, 2025
be859c9
remove keystore and related APIs (#748)
ceyonur Jan 16, 2025
4765329
bump avalanchego in preparation for tagging rc (#751)
darioush Jan 16, 2025
d00d1db
chore: changed the link to the documentation (#755)
Radovenchyk Jan 17, 2025
a087e40
restore TestReorgReInsert (#762)
darioush Jan 22, 2025
9e729ab
Apply upstream fixes (up to d3cc618) (#766)
darioush Jan 27, 2025
3148809
fix panic if config duration is set to 0 (#765)
darioush Jan 27, 2025
8b6a54e
update: readme changes for 9000 upgrade (#761)
ashucoder9 Jan 28, 2025
1d21850
chore: use new avalanchego `utils/crypto/bls/signers/local` package (…
richardpringle Jan 29, 2025
584302d
Update wrap.Verify interface changes (#769)
tsachiherman Jan 29, 2025
39ec874
Reduce magic numbers in dynamic fees (#773)
StephenButtolph Jan 29, 2025
2718ad1
Add F-Upgrade upgrades.Config support (#770)
StephenButtolph Jan 30, 2025
235e9a5
Cleanup dynamic fee windower logic (#774)
StephenButtolph Jan 31, 2025
4b33be0
chore(plugin/evm): remove `core.BoundedBuffer` from `atomicTrie` (#767)
qdm12 Feb 10, 2025
66c1a92
chore(metrics): use geth metrics package and delete local metrics (#745)
qdm12 Feb 10, 2025
ab19679
chore(all): minimal changes for last libevm dependency
qdm12 Feb 10, 2025
986b18e
Implement ACP-176 math (#783)
StephenButtolph Feb 11, 2025
aa6bcf4
Refactor `header.Extra` verification (#788)
StephenButtolph Feb 11, 2025
fe9ce00
Bump libevm dependency to current main
qdm12 Feb 12, 2025
4e68587
Bump libevm dependency to current main
qdm12 Feb 13, 2025
c5296af
Implement `eth_suggestPriceOptions` (#789)
StephenButtolph Feb 13, 2025
fca99ef
Remove `header.Extra` from `EstimateNextBaseFee` (#793)
StephenButtolph Feb 13, 2025
b9890a7
Refactor `BlockGasCost` calculations (#792)
StephenButtolph Feb 13, 2025
e50d59d
Cleanup header gas verification (#794)
StephenButtolph Feb 13, 2025
32a879f
Bump libevm dependency to current main
qdm12 Feb 14, 2025
266add1
cleanup: chain config changes for similarty with subnet-evm (#798)
darioush Feb 14, 2025
20387de
ci: bump avalanchego to master (#799)
darioush Feb 14, 2025
a9437e4
Ensure CalcBaseFee is only called with a sufficient timestamp (#797)
StephenButtolph Feb 14, 2025
ea21f92
fix(internal/ethapi): fix nil block in debug apis (#796)
darioush Feb 14, 2025
ea5897b
cleanup(miner): remove unused code (#795)
darioush Feb 17, 2025
6060a4a
ci: bump golang to 1.23.6 (#805)
darioush Feb 17, 2025
a8710a4
Bump libevm to v1.13.14-0.1.0.rc-2
qdm12 Feb 17, 2025
7ae03b1
Split `CalcExtraData` out of `CalcBaseFee` (#802)
StephenButtolph Feb 18, 2025
0510079
Support all upgrades in CalcBaseFee and CalcExtraPrefix (#804)
StephenButtolph Feb 18, 2025
f23d63b
Fix `params.ApricotPhase4BaseFeeChangeDenominator` name (#807)
StephenButtolph Feb 18, 2025
1145574
ci: bump golang to 1.23.6 (#805)
darioush Feb 17, 2025
2e4e6bd
Move AP4 params (#809)
StephenButtolph Feb 18, 2025
e3470ce
format: as upstream
darioush Feb 18, 2025
583877e
Merge branch 'master' of github.com:ava-labs/coreth into darioush/qdm…
darioush Feb 19, 2025
41ecca2
changes
darioush Feb 19, 2025
57e5037
fix leftover
darioush Feb 19, 2025
53dfaf5
Merge branch 'darioush/qdm12/libevm-phase-2.5' of github.com:ava-labs…
darioush Feb 19, 2025
e4b8c7b
bump avalanchego to branch
darioush Feb 19, 2025
be98876
fix bad merge
darioush Feb 19, 2025
63c167d
sort eth imports
darioush Feb 19, 2025
104afc2
regen mocks
darioush Feb 19, 2025
0f5f211
shell scripting
darioush Feb 19, 2025
0865d96
patch metrics for Nil types
darioush Feb 19, 2025
0716f4c
Move noop metrics types case to top of switch
qdm12 Feb 20, 2025
03e5551
Merge branch 'libevm' into darioush/qdm12/libevm-phase-2.5-merge-master
qdm12 Feb 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.56
version: v1.63
working-directory: .
args: --timeout 3m
skip-pkg-cache: true
Expand Down
16 changes: 11 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
run:
timeout: 10m
tests: true
# default is true. Enables skipping of directories:
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
skip-dirs-use-default: true
# Include non-test files tagged as test-only.
# Context: https://github.com/ava-labs/avalanchego/pull/3173

linters:
disable-all: true
Expand All @@ -18,8 +13,19 @@ linters:
- ineffassign
- misspell
- unconvert
- typecheck
- unused
# - staticcheck
- bidichk
- durationcheck
- copyloopvar
- whitespace
# - revive # only certain checks enabled
- durationcheck
- gocheckcompilerdirectives
- reassign
- mirror
- tenv

linters-settings:
gofmt:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Coreth and the C-Chain

[Avalanche](https://docs.avax.network/intro) is a network composed of multiple blockchains.
[Avalanche](https://www.avax.network/) is a network composed of multiple blockchains.
Each blockchain is an instance of a Virtual Machine (VM), much like an object in an object-oriented language is an instance of a class.
That is, the VM defines the behavior of the blockchain.
Coreth (from core Ethereum) is the [Virtual Machine (VM)](https://docs.avax.network/learn/virtual-machines) that defines the Contract Chain (C-Chain).
Expand Down Expand Up @@ -39,7 +39,7 @@ Full documentation for the C-Chain's API can be found [here.](https://docs.avax.

## Compatibility

The C-Chain is compatible with almost all Ethereum tooling, including [Core,](https://docs.avax.network/build/dapp/launch-dapp#through-core) [Metamask,](https://docs.avax.network/build/dapp/launch-dapp#through-metamask) [Remix](https://docs.avax.network/build/tutorials/smart-contracts/deploy-a-smart-contract-on-avalanche-using-remix-and-metamask) and [Truffle.](https://docs.avax.network/build/tutorials/smart-contracts/using-truffle-with-the-avalanche-c-chain)
The C-Chain is compatible with almost all Ethereum tooling, including [Core,](https://docs.avax.network/build/dapp/launch-dapp#through-core) [Metamask,](https://docs.avax.network/build/dapp/launch-dapp#through-metamask) [Remix](https://docs.avax.network/dapps/smart-contract-dev/deploy-with-remix-ide) and [Truffle.](https://docs.avax.network/build/tutorials/smart-contracts/using-truffle-with-the-avalanche-c-chain)

## Differences Between Avalanche C-Chain and Ethereum

Expand Down
9 changes: 9 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# Release Notes

## Pending Release
- Bump golang version to v1.23.6
- Bump golangci-lint to v1.63 and add linters

## [v0.14.1](https://github.com/ava-labs/coreth/releases/tag/v0.14.1)

- Removed deprecated `ExportKey`, `ExportAVAX`, `Export`, `ImportKey`, `ImportAVAX`, `Import` APIs
- IMPORTANT: `eth_getProof` calls for historical state will be rejected by default.
- On archive nodes (`"pruning-enabled": false`): queries for historical proofs for state older than approximately 24 hours preceding the last accepted block will be rejected by default. This can be adjusted with the new option `historical-proof-query-window` which defines the number of blocks before the last accepted block which should be accepted for state proof queries, or set to `0` to accept any block number state query (previous behavior).
- On `pruning` nodes: queries for proofs past the tip buffer (32 blocks) will be rejected. This is in support of moving to a path based storage scheme, which does not support historical state proofs.
- Remove API eth_getAssetBalance that was used to query ANT balances (deprecated since v0.10.0)
- Remove legacy gossip handler and metrics (deprecated since v0.10.0)
- Refactored trie_prefetcher.go to be structurally similar to [upstream](https://github.com/ethereum/go-ethereum/tree/v1.13.14).
Expand Down
1 change: 0 additions & 1 deletion accounts/abi/abi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,6 @@ func TestUnpackRevert(t *testing.T) {
{"4e487b7100000000000000000000000000000000000000000000000000000000000000ff", "unknown panic code: 0xff", nil},
}
for index, c := range cases {
index, c := index, c
t.Run(fmt.Sprintf("case %d", index), func(t *testing.T) {
t.Parallel()
got, err := UnpackRevert(common.Hex2Bytes(c.input))
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/bind/bind.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func Bind(types []string, abis []string, bytecodes []string, fsigs []map[string]
}
// Parse library references.
for pattern, name := range libs {
matched, err := regexp.Match("__\\$"+pattern+"\\$__", []byte(contracts[types[i]].InputBin))
matched, err := regexp.MatchString("__\\$"+pattern+"\\$__", contracts[types[i]].InputBin)
if err != nil {
log.Error("Could not search for pattern", "pattern", pattern, "contract", contracts[types[i]], "err", err)
}
Expand Down
1 change: 0 additions & 1 deletion accounts/abi/event_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,6 @@ func TestEventTupleUnpack(t *testing.T) {

for _, tc := range testCases {
assert := assert.New(t)
tc := tc
t.Run(tc.name, func(t *testing.T) {
err := unpackTestEventData(tc.dest, tc.data, tc.jsonLog, assert)
if tc.error == "" {
Expand Down
1 change: 0 additions & 1 deletion accounts/abi/pack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ import (
func TestPack(t *testing.T) {
t.Parallel()
for i, test := range packUnpackTests {
i, test := i, test
t.Run(strconv.Itoa(i), func(t *testing.T) {
t.Parallel()
encb, err := hex.DecodeString(test.packed)
Expand Down
1 change: 0 additions & 1 deletion accounts/abi/reflect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ var reflectTests = []reflectTest{
func TestReflectNameToStruct(t *testing.T) {
t.Parallel()
for _, test := range reflectTests {
test := test
t.Run(test.name, func(t *testing.T) {
t.Parallel()
m, err := mapArgNamesToStructFields(test.args, reflect.ValueOf(test.struc))
Expand Down
3 changes: 0 additions & 3 deletions accounts/abi/topics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ func TestMakeTopics(t *testing.T) {
},
}
for _, tt := range tests {
tt := tt
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
got, err := MakeTopics(tt.args.query...)
Expand Down Expand Up @@ -383,7 +382,6 @@ func TestParseTopics(t *testing.T) {
tests := setupTopicsTests()

for _, tt := range tests {
tt := tt
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
createObj := tt.args.createObj()
Expand All @@ -403,7 +401,6 @@ func TestParseTopicsIntoMap(t *testing.T) {
tests := setupTopicsTests()

for _, tt := range tests {
tt := tt
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
outMap := make(map[string]interface{})
Expand Down
3 changes: 1 addition & 2 deletions accounts/abi/unpack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,6 @@ func TestMethodMultiReturn(t *testing.T) {
"Can not unpack into a slice with wrong types",
}}
for _, tc := range testCases {
tc := tc
t.Run(tc.name, func(t *testing.T) {
require := require.New(t)
err := abi.UnpackIntoInterface(tc.dest, "multi", data)
Expand Down Expand Up @@ -957,7 +956,7 @@ func TestOOMMaliciousInput(t *testing.T) {
}
encb, err := hex.DecodeString(test.enc)
if err != nil {
t.Fatalf("invalid hex: %s" + test.enc)
t.Fatalf("invalid hex: %s", test.enc)
}
_, err = abi.Methods["method"].Outputs.UnpackValues(encb)
if err == nil {
Expand Down
Loading
Loading