Daniel Liu
0050f84142
accounts/abi: enable struct golang binding generation ( #18491 )
...
* accounts/abi, cmd/abigen: support tuple
accounts/abi/bind, cmd/abigen: add objc back
accounts/abi/bind: use byte[24] as function indicator
accounts/abi/bind: resolve struct slice or array
accounts/abi/bind: remove sort logic
accounts: fix issues in abi
* accounts/abi: address comment
2025-01-24 16:18:29 +08:00
Daniel Liu
71e4c0609a
accounts/abi: Fix method overwritten by same name methods ( #17099 )
...
* accounts/abi: Fix method overwritten by same name methods.
* accounts/abi: Fix method overwritten by same name methods.
* accounts/abi: avoid possible name conflict
Co-authored-by: Guillaume Ballet <gballet@gmail.com>
2025-01-24 16:18:29 +08:00
Daniel Liu
f542e463d3
accounts: implement simple checkpoint syncing ( #19543 )
2025-01-24 16:18:29 +08:00
Daniel Liu
894bed5b7e
accounts/abi: adding the method EventById and its test ( #19359 )
2025-01-24 16:18:29 +08:00
Daniel Liu
07ebb5ef12
accounts/keystore: fix #19707 , avoid keyword as variable name ( #19731 )
2025-01-24 16:18:29 +08:00
Daniel Liu
6aeab6a207
accounts/abi/bind: rename NewKeystoreTransactor ( #19703 )
...
renamed NewKeyStoreFromTransactor to NewKeystoreTransactor
fixed godoc
2025-01-24 16:18:29 +08:00
Daniel Liu
313018496f
accounts: added transactorFromKeyStore ( #19685 )
2025-01-24 16:18:29 +08:00
Daniel Liu
e6df5f8798
account/usbwallet: abort usb enumeration after failures ( #19671 )
2025-01-24 16:18:29 +08:00
Daniel Liu
2e21b96101
accounts/usbwallet: add webusb trezor support ( #19588 )
2025-01-24 16:18:29 +08:00
Daniel Liu
100ea1c8e0
accounts/scwallet: add a switch to specify path to sc daemon ( #19439 )
2025-01-24 16:18:29 +08:00
Daniel Liu
fb35c54280
accounts/scwallet: change sc url scheme to keycard ( #19632 )
2025-01-24 16:18:29 +08:00
Daniel Liu
f80a00b6fa
accounts/scwallet: display PUK retry count, validate PIN/PUK length ( #19524 )
2025-01-24 16:18:29 +08:00
Daniel Liu
00fbe17f2e
accounts/keystore: enable fallback for darwin,!cgo ( #19614 )
...
Without this, accounts/keystore fails to build for Darwin with
CGO_ENABLED=0.
2025-01-24 16:18:29 +08:00
Daniel Liu
b2a9e1cb67
accounts/usbwallet: enable the Nano X and upcoming Ledger IDs ( #19623 )
2025-01-24 16:18:29 +08:00
Daniel Liu
7c8707f03e
accounts, p2p: make CGO_ENABLED=0 build again ( #19593 )
2025-01-24 16:18:29 +08:00
Daniel Liu
316d2f8052
accounts/abi: fix TestUnpackMethodIntoMap ( #19484 )
2025-01-24 16:18:29 +08:00
Daniel Liu
b75f946081
accounts: better support for EIP-191 intended validator ( #19523 )
2025-01-24 16:18:29 +08:00
Daniel Liu
44d58cb8dc
accounts/abi: fix documentation ( #19568 )
2025-01-24 16:18:29 +08:00
Daniel Liu
b5ace99624
accounts/usbwallet: fix a comment typo in trezor driver ( #19535 )
2025-01-24 16:18:29 +08:00
Daniel Liu
fa35614784
accounts, cmd: add note about backing up the keystore ( #19432 )
2025-01-24 16:18:29 +08:00
Daniel Liu
44b6b14685
accounts/scwallet: fix card pairing instruction message ( #19436 )
2025-01-24 16:18:29 +08:00
Daniel Liu
194a77505f
accounts: switch Ledger derivation path to canonical one ( #19438 )
2025-01-24 16:18:29 +08:00
Daniel Liu
508ae8f155
accounts/scwallet: Update README for v2.2.1 support ( #19425 )
...
Update the app download link to the latest version, as requested in #19418
2025-01-24 16:18:29 +08:00
Daniel Liu
2999bea17f
accounts: smartcard wallet without the dependency on libpcsclite ( #19273 )
2025-01-24 16:18:29 +08:00
Daniel Liu
1f9778bb9f
accounts: disable unlock account on open HTTP ( #17037 )
2025-01-24 16:18:29 +08:00
Daniel Liu
769a34bfb7
accounts/abi: generic unpacking of event logs into map[string]interface{} ( #18440 )
...
Add methods that allow for the unpacking of event logs into maps (allows for agnostic unpacking of logs)
2025-01-24 16:18:29 +08:00
Daniel Liu
36577396ec
accounts/abi: add the original name as json-structtag for tuples ( #19340 )
2025-01-24 16:18:29 +08:00
Daniel Liu
e4d78ed594
accounts/abi/bind: static byte arrays should be right-padded ( #19269 )
2025-01-24 16:18:29 +08:00
Daniel Liu
e7d8247fda
usbwallet: check error returned by driver close ( #18057 )
...
Although current two implementations(ledgerDriver, trezorDriver) of interface driver.Close do not actually return any error. Instead, they only return nil.
But since the declaration of Close function returns error, it is better to check the returned error in case in future some new implementation of Close function returns error and we may forget to modify the function which invokes Close function at that time.
2025-01-24 16:18:29 +08:00
Daniel Liu
4955476db4
accounts: prefer nil slices over zero-length slices ( #19079 )
2025-01-24 16:18:29 +08:00
Daniel Liu
5d0dea852e
accounts/abi: mutex lock in TransactionByHash and code cleanup ( #19133 )
2025-01-24 16:18:29 +08:00
Daniel Liu
dcc3fc3ec3
accounts/abi: fix error message format ( #19122 )
2025-01-24 16:18:29 +08:00
Daniel Liu
4b32073331
accounts: fix typos ( #19119 )
2025-01-24 16:18:29 +08:00
Daniel Liu
99092ac54f
accounts/abi/bind/backends: add TransactionByHash to SimulatedBackend ( #19026 )
2025-01-24 16:18:29 +08:00
Daniel Liu
43e6c8ecdc
accounts: implemented EIP191/712 ( #17789 )
2025-01-24 16:18:29 +08:00
Daniel Liu
07935ce124
accounts: support for external signer API ( #18079 )
2025-01-24 16:18:29 +08:00
Daniel Liu
fe14069bd7
accounts: support for external signer API ( #18079 )
2025-01-24 16:18:29 +08:00
Daniel Liu
f0ed12486a
accounts/usbwallet/trezor: expose protobuf package ( #17980 )
...
When some of the same messages are redefined anywhere in a Go project,
the protobuf package panics (see
https://github.com/golang/protobuf/issues/178 ).
Since this package is internal, there is no way to work around it, as
one cannot use it directly, but also cannot define the same messages.
There is no downside in making the package accessible.
2025-01-24 16:18:29 +08:00
Daniel Liu
e3c75c01c7
accounts/usbwallet: support trezor passphrases ( #16503 )
...
When opening the wallet, ask for passphrase as well as for the PIN
and return the relevant error (PIN/passphrase required). Open must then
be called again with either PIN or passphrase to advance the process.
This also updates the console bridge to support passphrase authentication.
2025-01-24 16:18:29 +08:00
Daniel Liu
d44902a64a
accounts/abi: allow interface as the destination ( #18490 )
2025-01-24 16:18:29 +08:00
Daniel Liu
e70bb4b119
accounts/abi: Add tests for reflection ahead of refactor ( #18434 )
2025-01-24 16:18:29 +08:00
Daniel Liu
7d5953f972
accounts/abi: Extra slice tests ( #18424 )
...
Co-authored-by: weimumu <934657014@qq.com>
2025-01-24 16:18:29 +08:00
Daniel Liu
2d0047b4b8
accounts/abi: tuple support ( #18406 )
2025-01-24 16:18:29 +08:00
Daniel Liu
a81fe22903
accounts/keystore: small code simplification ( #18394 )
2025-01-24 16:18:28 +08:00
Daniel Liu
e4adf8e4eb
accounts/keystore: fix comment typo ( #18395 )
2025-01-24 16:18:28 +08:00
Daniel Liu
67fe815714
console: squash golint warnings ( #16836 )
2025-01-24 16:18:28 +08:00
Daniel Liu
930ec9ba86
accounts/abi: allow abi tags when unpacking structs ( #16648 )
2025-01-24 16:18:28 +08:00
Daniel Liu
48de514dd9
accounts/abi/bind: add optional block number for calls ( #17942 )
2025-01-24 16:18:28 +08:00
Daniel Liu
9ec0b75eaf
accounts/abi: fix string array unpack bug ( #18364 )
2025-01-24 16:18:28 +08:00
Daniel Liu
bb54f11c13
accounts/abi: brings out the msg defined at require statement in SC function ( #17328 )
2025-01-24 16:18:28 +08:00