Daniel Liu
34020969ff
all: simplify timestamps to uint64 #19372 ( #1318 )
2025-08-08 10:33:37 +08:00
JukLee0ira
87ed24a113
all: update to golangci-lint 1.61.0 #30587 ( #1181 )
...
Co-authored-by: Martin Holst Swende <martin@swende.se>
2025-07-01 18:10:05 +08:00
Daniel Liu
93c2745b7b
all: disable recording preimage of trie keys #21402 ( #1054 )
2025-06-17 13:10:47 +08:00
JukLee0ira
b1e08e6642
all: refactor package node #21105 ( #923 )
2025-04-10 18:52:49 +08:00
Daniel Liu
a8a96a804f
accounts/abi/bind: make it possible to wait for tx hash ( #30079 )
...
This change adds methods which makes it possible for to wait for a transaction with a specific hash when deploying contracts during abi bind interaction.
---------
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
2025-01-24 16:54:12 +08:00
Daniel Liu
6f37e85e80
accounts/abi: support unpacking solidity errors ( #30738 )
...
This PR adds the error fragments to `func (abi ABI) getArguments` which
allows typed decoding of errors.
2025-01-24 16:54:12 +08:00
Daniel Liu
aa164fbbc1
accounts/abi: fix MakeTopics mutation of big.Int inputs ( #30785 )
...
However, it also changed the behavior of the function from just
_reading_ the input `*big.Int` via `Bytes()`, to leveraging
`big.U256Bytes` which is documented as being _destructive_:
This change updates `MakeTopics` to not mutate the original, and
also applies the same change in signer/core/apitypes.
2025-01-24 16:54:12 +08:00
Daniel Liu
db3dc1932c
accounts/usbwallet: support dynamic tx ( #30180 )
...
Adds support non-legacy transaction-signing using ledger
---------
Co-authored-by: Martin Holst Swende <martin@swende.se>
2025-01-24 16:54:12 +08:00
Daniel Liu
72e5ee7f17
accounts/abi: golangci-lint 1.61.0 ( #30587 )
2025-01-24 16:54:12 +08:00
Daniel Liu
ced65923db
accounts/abi/bind: check SendTransaction error in tests ( #30349 )
...
In few tests the returned error from `SendTransaction` is not being
checked. This PR checks the returned err in tests.
Returning errors also revealed tx in `TestCommitReturnValue` is not
actually being sent, and returns err ` only replay-protected (EIP-155)
transactions allowed over RPC`. Fixed the transaction by using the
`testTx` function.
2025-01-24 16:54:12 +08:00
Daniel Liu
11d3afd849
accounts/abi: handle ABIs with contract type parameter ( #30315 )
...
convert parameter of type contract to the basic `address` type
---------
Co-authored-by: Martin HS <martin@swende.se>
2025-01-24 16:54:12 +08:00
Daniel Liu
c6a8f79702
accounts/abi/bind: add accessList support to base bond contract ( #30195 )
...
Adding the correct accessList parameter when calling a contract can
reduce gas consumption. However, the current version only allows adding
the accessList manually when constructing the transaction. This PR can
provide convenience for saving gas.
2025-01-24 16:54:12 +08:00
Daniel Liu
5beff83a6d
all: remove deprecated protobuf dependencies ( #30232 )
...
The package `github.com/golang/protobuf/proto` is deprecated in favor
`google.golang.org/protobuf/proto`. We should update the codes to
recommended package.
Signed-off-by: Icarus Wu <icaruswu66@qq.com>
2025-01-24 16:54:12 +08:00
Daniel Liu
0cbaccd106
accounts/keystore: simplify tests using t.TempDir() ( #30150 )
2025-01-24 16:54:12 +08:00
Daniel Liu
52ac8ae22b
accounts/abi/bind: use embed pkg to split go source template to file ( #30098 )
2025-01-24 16:54:12 +08:00
Daniel Liu
1fcc36a2dc
build: add check for stale generated files ( #30037 )
...
Co-authored-by: Felix Lange <fjl@twurst.com>
2025-01-24 16:54:12 +08:00
Daniel Liu
a0a1322d84
accounts/usbwallet/trezor: upgrade to generate with protoc 27.1 ( #30058 )
2025-01-24 16:54:12 +08:00
Daniel Liu
62895df693
accounts/keystore: use t.TempDir in test ( #30052 )
2025-01-24 16:54:12 +08:00
Daniel Liu
d2e00672c5
accounts: avoid duplicate regex compilation ( #29943 )
...
* fix: Optimize regular initialization
* modify var name
* variable change to private types
2025-01-24 16:54:12 +08:00
Daniel Liu
643c715b43
accounts: fix TestUpdateKeyfileContents ( #29867 )
...
Create the directory before NewKeyStore. This ensures the watcher successfully starts on
the first attempt, and waitWatcherStart functions as intended.
2025-01-24 16:54:12 +08:00
Daniel Liu
ef71887d7a
accounts, cmd/geth, core: close opened files ( #29598 )
...
* fix: open file used up but not closed
* feat: more same case
* feat: accept conversation
2025-01-24 16:54:12 +08:00
Daniel Liu
02a3aa13c1
accounts/abi: fix typos ( #29542 #29600 )
2025-01-24 16:54:12 +08:00
Daniel Liu
733a5fc193
accounts: fix mismatched names in comments ( #29348 )
2025-01-24 16:54:12 +08:00
Daniel Liu
dfc0f112b8
accounts/keystore: use min/max/clear from go1.21 ( #29307 )
2025-01-24 16:54:12 +08:00
Daniel Liu
30dc0f47c9
accounts/abi/bind: check invalid chainID first ( #29275 )
2025-01-24 16:54:12 +08:00
Daniel Liu
2b60816af1
accounts/scwallet: remove references to deprecated elliptic package ( #28946 )
2025-01-24 16:54:12 +08:00
Daniel Liu
a9ca99dc6a
accounts: remove redundant string conversion ( #29184 )
2025-01-24 16:54:12 +08:00
Daniel Liu
888963c6ff
accounts: remove deprecated function NewPlaintextKeyStore ( #29171 )
2025-01-24 16:54:12 +08:00
Daniel Liu
13d39173b3
accounts/usbwallet: update hid library ( #29176 )
2025-01-24 16:54:12 +08:00
Daniel Liu
85059ed0d7
accounts/abi: delete duplicate error check ( #29136 )
2025-01-24 16:54:12 +08:00
Daniel Liu
b6f3007af1
core: move genesis alloc types to core/types ( #29003 )
2025-01-24 16:54:12 +08:00
Daniel Liu
745c276ed3
fix: update outdated link to trezor docs ( #28966 )
...
fix: update link to trezor
2025-01-24 16:54:12 +08:00
Daniel Liu
2dfb1cf7d3
accounts: fix typos ( #28881 )
2025-01-24 16:54:12 +08:00
Daniel Liu
0a0784d324
acounts/usbwallet: fix typo ( #28815 )
...
acounts:fix typo
2025-01-24 16:54:12 +08:00
Daniel Liu
c1913bb22a
accounts/abi/bind/backends: replace NewSimulatedBackend with NewXDCSimulatedBackend
2025-01-24 16:54:12 +08:00
Daniel Liu
b5f6104d5d
accounts/abi: fix bigInt topic encoding ( #28764 )
2025-01-24 16:54:12 +08:00
Daniel Liu
0e7679dc6a
accounts,signer: fix typos in comments ( #28730 )
2025-01-24 16:54:12 +08:00
Daniel Liu
36bf7311cd
accounts: properly close managed wallets when closing manager ( #28710 )
2025-01-24 16:54:12 +08:00
Daniel Liu
8133f96d5f
all: fix typos in comments ( #28662 )
...
Co-authored-by: Felix Lange <fjl@twurst.com>
2025-01-24 16:54:12 +08:00
Daniel Liu
4a54407eb9
accounts: run tests in parallel ( #28544 )
2025-01-24 16:54:12 +08:00
Daniel Liu
c032eed8f8
accounts/abi/bind: fixed typos ( #28634 )
...
* Update auth.go
* Update backend.go
* Update bind.go
* Update bind_test.go
2025-01-24 16:54:12 +08:00
Daniel Liu
0b30a3de38
accounts/abi/bind: fix typo ( #28630 )
2025-01-24 16:54:12 +08:00
Daniel Liu
f804203609
accounts/keystore: speed up tests ( #28461 )
2025-01-24 16:54:12 +08:00
Daniel Liu
ea6606ad1c
accounts/abi: context info on unpack-errors ( #28529 )
...
adds contextual information to errors returned by unpack
2025-01-24 16:54:12 +08:00
Daniel Liu
ccda15ef5d
accounts, cmd: fix typos ( #28526 )
2025-01-24 16:54:12 +08:00
Daniel Liu
e78abe0e44
accounts/scwallet: replace strings.SplitN(arg, sep, 2) with strings.Cut(arg, sep) ( #28446 )
2025-01-24 16:54:12 +08:00
Daniel Liu
919cbf6032
accounts/abi: improve readability of method-to-string conversion ( #28530 )
...
refactor: improve readability of NewMethod print
2025-01-24 16:54:12 +08:00
Daniel Liu
390daf98e4
accounts: fix errors checked by go-staticcheck ST1005 ( #28532 )
2025-01-24 16:54:12 +08:00
Daniel Liu
5081ad72f5
accounts: move fuzzers into native packages ( #28467 )
2025-01-24 16:54:12 +08:00
Daniel Liu
df87605355
api/bind: add CallOpts.BlockHash to allow calling contracts at a specific block hash ( #28084 )
...
* api/bind: Add CallOpts.BlockHash to allow calling contracts at a specific block hash.
* ethclient: Add BalanceAtHash, NonceAtHash and StorageAtHash functions
2025-01-24 16:54:12 +08:00