Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
af7bf37
version: begin v1.17.5 release cycle
fjl Jun 22, 2026
eea629b
core/txpool: drop support for v0 blob sidecar (#35191)
healthykim Jun 22, 2026
b723718
core/vm: inline the gas deduction (#35203)
rjl493456442 Jun 22, 2026
c80681c
p2p/discover: return errNoUDPEndpoint in RequestENR (#34933)
rayjun Jun 22, 2026
7f3afa1
ethdb/pebble, cmd, node: add pebble v2 support (#34009)
rjl493456442 Jun 22, 2026
023a573
core/rawdb/eradb: support ere files in era store (#34978)
0xjvn Jun 22, 2026
73eeee6
trie/bintrie: use bitarray for path encoding + fix serialization issu…
weiihann Jun 22, 2026
aec597d
core/vm: implements EIP-8037 spec change (#35173)
rjl493456442 Jun 23, 2026
12241bd
core: add debug log and repair the missing hash and receipts (#35190)
rjl493456442 Jun 23, 2026
38678ec
params: bump max code size as per EIP-7954 (#35217)
MariusVanDerWijden Jun 25, 2026
a63e2f1
eth/downloader: fix test panic (#35215)
rjl493456442 Jun 25, 2026
4387f43
core: implement EIP-8282: Builder Execution Requests (#35175)
MariusVanDerWijden Jun 25, 2026
ab134b2
cmd/geth: release storage iterator in snapshot dump (#35222)
cuiweixie Jun 26, 2026
07dd8e0
core: implement EIP-2780 (#35212)
rjl493456442 Jun 29, 2026
eccd239
trie: introduce UpdateBatch (#32448)
rjl493456442 Jun 29, 2026
11524ba
core/rawdb: fix freezer metadata log field ordering (#35246)
cuiweixie Jun 29, 2026
a0568b1
cmd/geth: release account iterator in listEIP7610EligibleAccounts (#3…
rayjun Jun 29, 2026
9700b5b
cmd/devp2p: support dual-stack discovery listener (#35220)
MysticRyuujin Jun 29, 2026
68671a4
core: implement EIP-8246 (#35219)
rjl493456442 Jun 30, 2026
04bf045
core/state: fix account prefetching for absent accounts (#35256)
jsign Jun 30, 2026
32986bf
triedb/pathdb: prealloc node map in nodeSet.write (#35232)
cuiweixie Jun 30, 2026
409aaef
log: clone terminal handler attrs (#35141)
cuiweixie Jun 30, 2026
5c253e5
core/rawdb: prevent truncateHead from returning an error for empty ta…
healthykim Jul 1, 2026
b6e2f13
accounts/keystore: fix negative timezone sign in toISO8601 (#35245)
cuiweixie Jul 1, 2026
dd672c6
eth: prealloc seen map in handleTransactions (#35237)
cuiweixie Jul 1, 2026
769c8c5
internal/ethapi: skip transfer capture for callcode in log tracer (#3…
cuiweixie Jul 1, 2026
00a773d
accounts/abi/abigen: add GetABI() method to abigen v2 generated bindi…
m1lestones Jul 1, 2026
ea24214
core: implement EIP-7928 spec change (#35260)
rjl493456442 Jul 1, 2026
0fbad29
params: remove named hardforks from bpo schedule (#35029)
MariusVanDerWijden Jul 1, 2026
21652ef
core/txpool: add blobTxForPool migration in limbo (#35209)
healthykim Jul 1, 2026
7e625dd
cmd: add amsterdam override flag (#35213)
skylenet Jul 1, 2026
59e89e8
cmd/devp2p/internal/ethtest: fix swapped args in readAccounts error (…
cuiweixie Jul 1, 2026
dd8dd15
core: implement EIP-8038 (#35216)
rjl493456442 Jul 2, 2026
0a47739
cmd/devp2p: add already used flag crawlParallelismFlag (#35031)
cuiweixie Jul 2, 2026
b4f749a
core/types: reduce allocs in CreateBloom (#35234)
cuiweixie Jul 2, 2026
df51c49
core/rawdb: fix freezer close sync error message (#35135)
cuiweixie Jul 2, 2026
46b79ea
cmd/devp2p: fix test error message formats (#35138)
cuiweixie Jul 2, 2026
c8953d1
core, consensus/misc, params: implement EIP-7997 (#35223)
rjl493456442 Jul 2, 2026
448515a
accounts/external: forward blob fee cap to external signer (#35167)
cuiweixie Jul 2, 2026
f9417bb
node: match auth-schema case insensitively (#35022)
cuiweixie Jul 2, 2026
7aa7806
cmd/devp2p: close the iterator in discv4 LookupRandom (#35206)
ozpool Jul 2, 2026
3d50e3e
core/types/bal: enhance the bal validation (#35281)
rjl493456442 Jul 3, 2026
d617f4f
rpc: reject block parameter with neither number nor hash (#35271)
svlachakis Jul 3, 2026
aa3d286
cmd/utils: keep metrics tag values containing '=' (#35168)
cuiweixie Jul 3, 2026
3006c44
eth/protocols/eth: fix blockAccessList empty marker (#35286)
rjl493456442 Jul 3, 2026
6eae868
p2p/discover: always increment TALKREQ drop counter on timeout (#35243)
cuiweixie Jul 3, 2026
2175063
accounts: fix missing wallet drop (#35133)
cuiweixie Jul 3, 2026
e3b6d0c
cmd/devp2p: fix swapped args in private-key error message (#35193)
ozpool Jul 3, 2026
415fe37
p2p/enode: close sources added after FairMix shutdown (#35298)
rayjun Jul 5, 2026
2919267
core: remaining spec fixes for glamsterdam (#35279)
MariusVanDerWijden Jul 6, 2026
3620a94
params: return AmsterdamTime from ChainConfig.Timestamp (#35293)
cuiweixie Jul 6, 2026
7c1959b
rpc: add --rpc.http-body-limit flag for HTTP request body size (#35224)
skylenet Jul 6, 2026
69d88ae
eth/tracers: include log index in erc7562 tracer output (#35200)
cuiweixie Jul 6, 2026
a8a7116
cmd/evm: respect --fuzz=false (#34975)
RekCuy63 Jul 6, 2026
e5c5e18
core/txpool/locals: nil journal writer before checking close error (#…
cuiweixie Jul 6, 2026
cf35a1b
core/vm: add access cost check (#35261)
rjl493456442 Jul 7, 2026
4d2181a
cmd, core, eth, miner: apply 7997 in block building (#35285)
rjl493456442 Jul 7, 2026
0c88fee
eth/downloader, eth/protocols/snap: snap v2 catchup failure (#35321)
rjl493456442 Jul 8, 2026
2133e01
internal/ethapi: reject gasPrice together with authorizationList (#35…
ozpool Jul 8, 2026
76e3dc6
core: improve chain reset head (#35252)
rjl493456442 Jul 8, 2026
6c80ee6
eth/protocols/snap: fix access list sync progress double counting (#3…
cuiweixie Jul 9, 2026
896a4ab
core/vm/runtime: cap regular gas budget at MaxTxGas for Amsterdam (#3…
cuiweixie Jul 9, 2026
2ce0200
cmd/evm, core: fixes for eels tests@v20.0.0 release (#35283)
spencer-tb Jul 9, 2026
5a39aa1
build: upgrade -dlgo version to Go 1.25.12 (#35317)
sandakersmann Jul 9, 2026
111e7b8
eth: protect high-value peers from random dropping based on tx inclus…
cskiraly Jul 9, 2026
3ab52d8
go.mod: update ckzg (#35336)
MariusVanDerWijden Jul 10, 2026
0e2cbeb
params: update contract addresses (#35341)
MariusVanDerWijden Jul 13, 2026
e7314c8
core: charge floorDataGas if it exceeds regularGas (#35342)
MariusVanDerWijden Jul 13, 2026
b34a925
beacon/engine, eth/catalyst: return block access lists in payload bod…
qu0b Jul 13, 2026
13bcbf0
core/rawdb: fix off-by-one in freezer init progress log (#35344)
cuiweixie Jul 13, 2026
df7b896
internal/testlog: clone attributes before appending (#35324)
cuiweixie Jul 13, 2026
3140668
miner: cap configured MaxBlobsPerBlock to protocol limit (#35295)
cuiweixie Jul 13, 2026
f9382c2
eth/tracers/logger: respect logging limit (#35349)
MariusVanDerWijden Jul 13, 2026
68f711b
beacon/engine: correct rlp encoding/decoding (#35348)
MariusVanDerWijden Jul 13, 2026
abfb2de
eth/catalyst, eth/ethconfig, cmd: make engine API max reorg depth con…
danceratopz Jul 14, 2026
1ef0ffb
core: implement EIP-2780 and EIP-8037 changes (#35318)
rjl493456442 Jul 14, 2026
0d1cf34
all: add bogota fork to config (#34057)
lightclient Jul 14, 2026
a10969f
accounts/abi: fix abigen v1 bindings for deployment of library depen…
jwasinger Jul 14, 2026
8d84e50
p2p/dnsdisc, cmd/devp2p: keep invalid and unreachable nodes out of DN…
MysticRyuujin Jul 14, 2026
6e6fcef
eth/protocols/eth: discard message before size check (#35289)
cuiweixie Jul 14, 2026
3155d3a
core/rawdb: drop stray %d verb from freezer metadata log message (#35…
ozpool Jul 14, 2026
d5d936d
eth/catalyst: handle bogota fork in payloadVersion (#35355)
jrhea Jul 14, 2026
c3f2851
cmd/utils: tune GOGC for large cache values (#34851)
s1na Jul 14, 2026
d91b71f
core/txpool/blobpool, eth: implement sparse blobpool (#34047)
healthykim Jul 15, 2026
bde64d7
.mailmap: consolidate healthykim committer names (#35366)
fjl Jul 15, 2026
06b23b4
.github: rm s1na from CODEOWNERS (#35365)
s1na Jul 15, 2026
80b58f6
cmd/devp2p/internal/ethtest: fix header stride in reverse GetHeaders …
ozpool Jul 17, 2026
dddbaa4
cmd/utils: export chain with block-level accessList (#35369)
rjl493456442 Jul 17, 2026
bb6401e
miner, core: reuse the chain's jumpdest cache when building payloads …
jrhea Jul 18, 2026
4911ab0
cmd/geth, eth/ethconfig: preserve zero engine reorg depth (#35373)
0xoasis Jul 20, 2026
4363b81
eth/catalyst: pass TargetGasLimit via engine api (#35372)
MariusVanDerWijden Jul 20, 2026
a38a90b
eth/protocols/eth: track announced tx hashes only after send (#35384)
0xoasis Jul 20, 2026
47450f9
core/vm: initialize the bogota instructions from Amsterdam (#35383)
rjl493456442 Jul 20, 2026
85fe272
core/txpool/blobpool: serialize legacy data conversions (#35387)
0xoasis Jul 20, 2026
6e49f8e
core: improve amsterdam fork test coverage (#35364)
rjl493456442 Jul 21, 2026
5d88c6b
core: fix tracer panic (#35396)
MariusVanDerWijden Jul 22, 2026
a9ca080
eth/fetcher: count unique hashes in blob queueing metric (#35393)
cuiweixie Jul 22, 2026
c767f82
cmd: add gogc flag (#35363)
rjl493456442 Jul 23, 2026
8e8003a
triedb/pathdb: report nothing recoverable during state sync (#35400)
jrhea Jul 23, 2026
81ab8b5
eth/downloader: disable snap mode after committing pivot block (#35402)
rjl493456442 Jul 23, 2026
e317407
eth/fetcher: clear partial map when dropping last waitlist peer (#35399)
cuiweixie Jul 23, 2026
f03b91c
core: optimize block validation (#35403)
rjl493456442 Jul 23, 2026
b2ee839
eth/catalyst: allow reorg depth equal to maxReorgDepth (#35391)
cuiweixie Jul 23, 2026
ff44a79
core: coordinate the state prefetcher with block processing (#35404)
jrhea Jul 24, 2026
af03a27
cmd/utils: skip memory-limit sanitize when total memory is unknown (#…
cuiweixie Jul 24, 2026
a524f2b
node: check authorization header case-insensitivity (#35408)
rjl493456442 Jul 24, 2026
cd65cca
eth/downloader: hold pivotLock when marking pivot committed (#35405)
cuiweixie Jul 24, 2026
ca1f2e4
core: fix tx size calculation (#35406)
rjl493456442 Jul 24, 2026
cff7fcb
go.mod: update snappy dependency (#35422)
rjl493456442 Jul 27, 2026
9621c6a
version: release v1.17.5 (#35421)
rjl493456442 Jul 27, 2026
300b300
merge geth 04bf04530 (v1.17.5 sync, batch 1/6 of v1.17.5)
pratikspatil024 Aug 10, 2026
e55b0f5
merge geth f9417bb27 (v1.17.5 sync, batch 2/6 of v1.17.5)
pratikspatil024 Aug 10, 2026
ca82e54
merge geth 76e3dc6b5 (v1.17.5 sync, batch 3/6 of v1.17.5)
pratikspatil024 Aug 10, 2026
f2de60e
merge geth 6e6fcef0b (v1.17.5 sync, batch 4/6 of v1.17.5)
pratikspatil024 Aug 10, 2026
1fb978c
merge geth 81ab8b594 (v1.17.5 sync, batch 5/6 of v1.17.5)
pratikspatil024 Aug 10, 2026
ae5cc27
merge geth 9621c6ad1 (v1.17.5 sync, batch 6/6 of v1.17.5)
pratikspatil024 Aug 11, 2026
c43b263
docs: record the v1.17.5 milestone of the go-ethereum sync
pratikspatil024 Aug 11, 2026
84c5db1
ethdb/pebble: drop redundant int64 conversion in data-size gauge
pratikspatil024 Aug 12, 2026
7a1136c
Merge branch 'ppatil-upstream-v1.17.4' into ppatil-upstream-v1.17.5 (…
pratikspatil024 Aug 13, 2026
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
5 changes: 1 addition & 4 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,12 @@ crypto/ @gballet @jwasinger @fjl
core/ @rjl493456442
eth/ @rjl493456442
eth/catalyst/ @MariusVanDerWijden @lightclient @fjl @jwasinger
eth/tracers/ @s1na
ethclient/ @fjl
ethdb/ @rjl493456442
event/ @fjl
trie/ @rjl493456442 @gballet
triedb/ @rjl493456442
core/tracing/ @s1na
graphql/ @s1na
internal/ethapi/ @fjl @s1na @lightclient
internal/ethapi/ @fjl @lightclient
internal/era/ @lightclient
miner/ @MariusVanDerWijden @fjl @rjl493456442
node/ @fjl
Expand Down
3 changes: 3 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ Bas van Kervel <bas@ethdev.com> <bas-vk@users.noreply.github.com>
Boqin Qin <bobbqqin@bupt.edu.cn>
Boqin Qin <bobbqqin@bupt.edu.cn> <Bobbqqin@gmail.com>

Bosul Mun <bsbs8645@snu.ac.kr>
Bosul Mun <bsbs8645@snu.ac.kr> <bosul.mun@ethereum.org>

Casey Detrio <cdetrio@gmail.com>

Charlotte <tqpcharlie@proton.me>
Expand Down
10 changes: 9 additions & 1 deletion accounts/abi/abigen/source.go.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
package {{.Package}}

import (
"context"
"math/big"
"strings"
"time"
"errors"

ethereum "github.com/ethereum/go-ethereum"
Expand All @@ -27,6 +29,8 @@ var (
_ = types.BloomLookup
_ = event.NewSubscription
_ = abi.ConvertType
_ = time.Tick
_ = context.Background
)

{{$structs := .Structs}}
Expand Down Expand Up @@ -77,7 +81,11 @@ var (
return common.Address{}, nil, nil, errors.New("GetABI returned nil")
}
{{range $pattern, $name := .Libraries}}
{{decapitalise $name}}Addr, _, _, _ := Deploy{{capitalise $name}}(auth, backend)
{{decapitalise $name}}Addr, tx, _, _ := Deploy{{capitalise $name}}(auth, backend)
ctx, _ := context.WithTimeout(context.Background(), 5 * time.Second)
if err := bind.WaitAccepted(ctx, backend, tx); err != nil {
return common.Address{}, nil, nil, err
}
{{$contract.Type}}Bin = strings.ReplaceAll({{$contract.Type}}Bin, "__${{$pattern}}$__", {{decapitalise $name}}Addr.String()[2:])
{{end}}
address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex({{.Type}}Bin), backend {{range .Constructor.Inputs}}, {{.Name}}{{end}})
Expand Down
5 changes: 5 additions & 0 deletions accounts/abi/abigen/source2.go.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ var (
abi abi.ABI
}

// GetABI returns the ABI associated with this contract binding.
func (c *{{.Type}}) GetABI() abi.ABI {
return c.abi
}

// New{{.Type}} creates a new instance of {{.Type}}.
func New{{.Type}}() *{{.Type}} {
parsed, err := {{.Type}}MetaData.ParseABI()
Expand Down
5 changes: 5 additions & 0 deletions accounts/abi/abigen/testdata/v2/callbackparam.go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ type CallbackParam struct {
abi abi.ABI
}

// GetABI returns the ABI associated with this contract binding.
func (c *CallbackParam) GetABI() abi.ABI {
return c.abi
}

// NewCallbackParam creates a new instance of CallbackParam.
func NewCallbackParam() *CallbackParam {
parsed, err := CallbackParamMetaData.ParseABI()
Expand Down
5 changes: 5 additions & 0 deletions accounts/abi/abigen/testdata/v2/crowdsale.go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ type Crowdsale struct {
abi abi.ABI
}

// GetABI returns the ABI associated with this contract binding.
func (c *Crowdsale) GetABI() abi.ABI {
return c.abi
}

// NewCrowdsale creates a new instance of Crowdsale.
func NewCrowdsale() *Crowdsale {
parsed, err := CrowdsaleMetaData.ParseABI()
Expand Down
5 changes: 5 additions & 0 deletions accounts/abi/abigen/testdata/v2/dao.go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ type DAO struct {
abi abi.ABI
}

// GetABI returns the ABI associated with this contract binding.
func (c *DAO) GetABI() abi.ABI {
return c.abi
}

// NewDAO creates a new instance of DAO.
func NewDAO() *DAO {
parsed, err := DAOMetaData.ParseABI()
Expand Down
5 changes: 5 additions & 0 deletions accounts/abi/abigen/testdata/v2/deeplynestedarray.go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ type DeeplyNestedArray struct {
abi abi.ABI
}

// GetABI returns the ABI associated with this contract binding.
func (c *DeeplyNestedArray) GetABI() abi.ABI {
return c.abi
}

// NewDeeplyNestedArray creates a new instance of DeeplyNestedArray.
func NewDeeplyNestedArray() *DeeplyNestedArray {
parsed, err := DeeplyNestedArrayMetaData.ParseABI()
Expand Down
5 changes: 5 additions & 0 deletions accounts/abi/abigen/testdata/v2/empty.go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ type Empty struct {
abi abi.ABI
}

// GetABI returns the ABI associated with this contract binding.
func (c *Empty) GetABI() abi.ABI {
return c.abi
}

// NewEmpty creates a new instance of Empty.
func NewEmpty() *Empty {
parsed, err := EmptyMetaData.ParseABI()
Expand Down
5 changes: 5 additions & 0 deletions accounts/abi/abigen/testdata/v2/eventchecker.go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ type EventChecker struct {
abi abi.ABI
}

// GetABI returns the ABI associated with this contract binding.
func (c *EventChecker) GetABI() abi.ABI {
return c.abi
}

// NewEventChecker creates a new instance of EventChecker.
func NewEventChecker() *EventChecker {
parsed, err := EventCheckerMetaData.ParseABI()
Expand Down
5 changes: 5 additions & 0 deletions accounts/abi/abigen/testdata/v2/getter.go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ type Getter struct {
abi abi.ABI
}

// GetABI returns the ABI associated with this contract binding.
func (c *Getter) GetABI() abi.ABI {
return c.abi
}

// NewGetter creates a new instance of Getter.
func NewGetter() *Getter {
parsed, err := GetterMetaData.ParseABI()
Expand Down
5 changes: 5 additions & 0 deletions accounts/abi/abigen/testdata/v2/identifiercollision.go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ type IdentifierCollision struct {
abi abi.ABI
}

// GetABI returns the ABI associated with this contract binding.
func (c *IdentifierCollision) GetABI() abi.ABI {
return c.abi
}

// NewIdentifierCollision creates a new instance of IdentifierCollision.
func NewIdentifierCollision() *IdentifierCollision {
parsed, err := IdentifierCollisionMetaData.ParseABI()
Expand Down
5 changes: 5 additions & 0 deletions accounts/abi/abigen/testdata/v2/inputchecker.go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ type InputChecker struct {
abi abi.ABI
}

// GetABI returns the ABI associated with this contract binding.
func (c *InputChecker) GetABI() abi.ABI {
return c.abi
}

// NewInputChecker creates a new instance of InputChecker.
func NewInputChecker() *InputChecker {
parsed, err := InputCheckerMetaData.ParseABI()
Expand Down
5 changes: 5 additions & 0 deletions accounts/abi/abigen/testdata/v2/interactor.go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ type Interactor struct {
abi abi.ABI
}

// GetABI returns the ABI associated with this contract binding.
func (c *Interactor) GetABI() abi.ABI {
return c.abi
}

// NewInteractor creates a new instance of Interactor.
func NewInteractor() *Interactor {
parsed, err := InteractorMetaData.ParseABI()
Expand Down
5 changes: 5 additions & 0 deletions accounts/abi/abigen/testdata/v2/nameconflict.go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ type NameConflict struct {
abi abi.ABI
}

// GetABI returns the ABI associated with this contract binding.
func (c *NameConflict) GetABI() abi.ABI {
return c.abi
}

// NewNameConflict creates a new instance of NameConflict.
func NewNameConflict() *NameConflict {
parsed, err := NameConflictMetaData.ParseABI()
Expand Down
5 changes: 5 additions & 0 deletions accounts/abi/abigen/testdata/v2/numericmethodname.go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ type NumericMethodName struct {
abi abi.ABI
}

// GetABI returns the ABI associated with this contract binding.
func (c *NumericMethodName) GetABI() abi.ABI {
return c.abi
}

// NewNumericMethodName creates a new instance of NumericMethodName.
func NewNumericMethodName() *NumericMethodName {
parsed, err := NumericMethodNameMetaData.ParseABI()
Expand Down
5 changes: 5 additions & 0 deletions accounts/abi/abigen/testdata/v2/outputchecker.go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ type OutputChecker struct {
abi abi.ABI
}

// GetABI returns the ABI associated with this contract binding.
func (c *OutputChecker) GetABI() abi.ABI {
return c.abi
}

// NewOutputChecker creates a new instance of OutputChecker.
func NewOutputChecker() *OutputChecker {
parsed, err := OutputCheckerMetaData.ParseABI()
Expand Down
5 changes: 5 additions & 0 deletions accounts/abi/abigen/testdata/v2/overload.go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ type Overload struct {
abi abi.ABI
}

// GetABI returns the ABI associated with this contract binding.
func (c *Overload) GetABI() abi.ABI {
return c.abi
}

// NewOverload creates a new instance of Overload.
func NewOverload() *Overload {
parsed, err := OverloadMetaData.ParseABI()
Expand Down
5 changes: 5 additions & 0 deletions accounts/abi/abigen/testdata/v2/rangekeyword.go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ type RangeKeyword struct {
abi abi.ABI
}

// GetABI returns the ABI associated with this contract binding.
func (c *RangeKeyword) GetABI() abi.ABI {
return c.abi
}

// NewRangeKeyword creates a new instance of RangeKeyword.
func NewRangeKeyword() *RangeKeyword {
parsed, err := RangeKeywordMetaData.ParseABI()
Expand Down
5 changes: 5 additions & 0 deletions accounts/abi/abigen/testdata/v2/slicer.go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ type Slicer struct {
abi abi.ABI
}

// GetABI returns the ABI associated with this contract binding.
func (c *Slicer) GetABI() abi.ABI {
return c.abi
}

// NewSlicer creates a new instance of Slicer.
func NewSlicer() *Slicer {
parsed, err := SlicerMetaData.ParseABI()
Expand Down
5 changes: 5 additions & 0 deletions accounts/abi/abigen/testdata/v2/structs.go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ type Structs struct {
abi abi.ABI
}

// GetABI returns the ABI associated with this contract binding.
func (c *Structs) GetABI() abi.ABI {
return c.abi
}

// NewStructs creates a new instance of Structs.
func NewStructs() *Structs {
parsed, err := StructsMetaData.ParseABI()
Expand Down
5 changes: 5 additions & 0 deletions accounts/abi/abigen/testdata/v2/token.go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ type Token struct {
abi abi.ABI
}

// GetABI returns the ABI associated with this contract binding.
func (c *Token) GetABI() abi.ABI {
return c.abi
}

// NewToken creates a new instance of Token.
func NewToken() *Token {
parsed, err := TokenMetaData.ParseABI()
Expand Down
5 changes: 5 additions & 0 deletions accounts/abi/abigen/testdata/v2/tuple.go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ type Tuple struct {
abi abi.ABI
}

// GetABI returns the ABI associated with this contract binding.
func (c *Tuple) GetABI() abi.ABI {
return c.abi
}

// NewTuple creates a new instance of Tuple.
func NewTuple() *Tuple {
parsed, err := TupleMetaData.ParseABI()
Expand Down
5 changes: 5 additions & 0 deletions accounts/abi/abigen/testdata/v2/tupler.go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ type Tupler struct {
abi abi.ABI
}

// GetABI returns the ABI associated with this contract binding.
func (c *Tupler) GetABI() abi.ABI {
return c.abi
}

// NewTupler creates a new instance of Tupler.
func NewTupler() *Tupler {
parsed, err := TuplerMetaData.ParseABI()
Expand Down
5 changes: 5 additions & 0 deletions accounts/abi/abigen/testdata/v2/underscorer.go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ type Underscorer struct {
abi abi.ABI
}

// GetABI returns the ABI associated with this contract binding.
func (c *Underscorer) GetABI() abi.ABI {
return c.abi
}

// NewUnderscorer creates a new instance of Underscorer.
func NewUnderscorer() *Underscorer {
parsed, err := UnderscorerMetaData.ParseABI()
Expand Down
6 changes: 6 additions & 0 deletions accounts/abi/bind/old.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,12 @@ func (m *MetaData) GetAbi() (*abi.ABI, error) {

// util.go

// WaitAccepted waits for a tx to be accepted into the pool.
// It stops waiting when the context is canceled.
func WaitAccepted(ctx context.Context, b ContractBackend, tx *types.Transaction) error {
return bind2.WaitAccepted(ctx, b, tx.Hash())
}

// WaitMined waits for tx to be mined on the blockchain.
// It stops waiting when the context is canceled.
func WaitMined(ctx context.Context, b DeployBackend, tx *types.Transaction) (*types.Receipt, error) {
Expand Down
3 changes: 3 additions & 0 deletions accounts/abi/bind/v2/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ type ContractTransactor interface {

// PendingNonceAt retrieves the current pending nonce associated with an account.
PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)

// TransactionByHash retrieves the transaction associated with the hash, if it exists in the pool.
TransactionByHash(ctx context.Context, hash common.Hash) (tx *types.Transaction, isPending bool, err error)
}

// DeployBackend wraps the operations needed by WaitMined and WaitDeployed.
Expand Down
6 changes: 3 additions & 3 deletions accounts/abi/bind/v2/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ func (c *BoundContract) createDynamicTx(opts *TransactOpts, contract *common.Add
}
}
// create the transaction
nonce, err := c.getNonce(opts)
nonce, err := c.GetNonce(opts)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -378,7 +378,7 @@ func (c *BoundContract) createLegacyTx(opts *TransactOpts, contract *common.Addr
}
}
// create the transaction
nonce, err := c.getNonce(opts)
nonce, err := c.GetNonce(opts)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -419,7 +419,7 @@ func (c *BoundContract) estimateGasLimit(opts *TransactOpts, contract *common.Ad
return c.transactor.EstimateGas(ensureContext(opts.Context), msg)
}

func (c *BoundContract) getNonce(opts *TransactOpts) (uint64, error) {
func (c *BoundContract) GetNonce(opts *TransactOpts) (uint64, error) {
if opts.Nonce == nil {
return c.transactor.PendingNonceAt(ensureContext(opts.Context), opts.From)
} else {
Expand Down
4 changes: 4 additions & 0 deletions accounts/abi/bind/v2/base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ func (mt *mockTransactor) SendTransaction(ctx context.Context, tx *types.Transac
return nil
}

func (mt *mockTransactor) TransactionByHash(ctx context.Context, hash common.Hash) (*types.Transaction, bool, error) {
return nil, false, nil
}

type mockCaller struct {
codeAtBlockNumber *big.Int
callContractBlockNumber *big.Int
Expand Down
5 changes: 5 additions & 0 deletions accounts/abi/bind/v2/internal/contracts/db/bindings.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading