gary rong
6814797173
accounts, cmd, contracts, les: integrate clef for transaction signing ( #19783 )
...
* accounts, cmd, contracts, les: integrate clef for transaction signing
* accounts, cmd/checkpoint-admin, signer/core: minor fixups
5 years ago
gary rong
5f5de49cd9
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
5 years ago
Guillaume Ballet
6bf5555c4f
accounts/abi/bind: Accept function ptr parameter ( #19755 )
...
* accounts/abi/bind: Accept function ptr parameter
They are translated as [24]byte
* Add Java template version
* accounts/abi/bind: fix merge issue
* Fix CI
5 years ago
zer0to0ne
0b26a826e9
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>
5 years ago
gary rong
f7cdea2bdc
all: on-chain oracle checkpoint syncing ( #19543 )
...
* all: implement simple checkpoint syncing
cmd, les, node: remove callback mechanism
cmd, node: remove callback definition
les: simplify the registrar
les: expose checkpoint rpc services in the light client
les, light: don't store untrusted receipt
cmd, contracts, les: discard stale checkpoint
cmd, contracts/registrar: loose restriction of registeration
cmd, contracts: add replay-protection
all: off-chain multi-signature contract
params: deploy checkpoint contract for rinkeby
cmd/registrar: add raw signing mode for registrar
cmd/registrar, contracts/registrar, les: fixed messages
* cmd/registrar, contracts/registrar: fix lints
* accounts/abi/bind, les: address comments
* cmd, contracts, les, light, params: minor checkpoint sync cleanups
* cmd, eth, les, light: move checkpoint config to config file
* cmd, eth, les, params: address comments
* eth, les, params: address comments
* cmd: polish up the checkpoint admin CLI
* cmd, contracts, params: deploy new version contract
* cmd/checkpoint-admin: add another flag for clef mode signing
* cmd, contracts, les: rename and regen checkpoint oracle with abigen
5 years ago
gary rong
6069b1a5f5
mobile: fix mobile interface ( #19180 )
...
* mobile: fix mobile interface
* mobile, accounts: generate correct java binding
* accounts: fix java type binding
* mobile: support integer slice
* accounts/abi/bind, cmd/abigen: implement java binding tests
5 years ago
salanfe
e4a1488b2f
abi: adding the method EventByID and its test ( #19359 )
...
This function searches for an event+parameters in the ABI and returns it if found.
Co-authored-by: Victor Tran <vu.tran54@gmail.com>
Co-authored-by: Guillaume Ballet <gballet@gmail.com>
5 years ago
Péter Szilágyi
38c914be64
accounts/abi/bind/backends: use EIP155 on the simulated chain
5 years ago
Marius van der Wijden
b3f7609d7d
accounts/abi/bind: rename NewKeystoreTransactor ( #19703 )
...
renamed NewKeyStoreFromTransactor to NewKeystoreTransactor
fixed godoc
5 years ago
Marius van der Wijden
6f80629383
accounts: added transactorFromKeyStore ( #19685 )
5 years ago
manlio
e687d063c3
accounts/abi: fix TestUnpackMethodIntoMap ( #19484 )
6 years ago
Jeremy Schlatter
184af72e4e
accounts/abi: fix documentation ( #19568 )
6 years ago
Péter Szilágyi
7221cb1434
core, eth, les, light: scope receipt functionality a bit cleaner
6 years ago
Ian Norden
cd79bc61a9
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)
6 years ago
Mats Julian Olsen
5b0d3fa393
accounts/abi: Add the original name as json-structtag for tuples.
6 years ago
Péter Szilágyi
5ce192ce44
accounts/abi/bind: simulated test case for fixed bytes logs
6 years ago
Jeremy McNevin
7640c9c933
bind: Static byte arrays should be right-padded
...
Per https://solidity.readthedocs.io/en/v0.5.3/abi-spec.html :
"bytes<M>: enc(X) is the sequence of bytes in X padded with trailing zero-bytes to a length of 32 bytes"
6 years ago
Péter Szilágyi
054412e335
all: clean up and proerly abstract database access
6 years ago
Dan Kinsley
f49f95e2b0
accounts/abi: mutex lock in TransactionByHash and code cleanup ( #19133 )
6 years ago
Hsien-Tang Kao
4a090a1bab
accounts/abi: fix error message format ( #19122 )
6 years ago
Dan Kinsley
555b3652dc
accounts/abi/bind/backends: add TransactionByHash to SimulatedBackend ( #19026 )
6 years ago
gary rong
a50b471b6b
accounts/abi: allow interface as the destination ( #18490 )
6 years ago
Guillaume Ballet
115b1c38ac
accounts/abi: Add tests for reflection ahead of refactor ( #18434 )
6 years ago
Guillaume Ballet
38cce9ac33
accounts/abi: Extra slice tests ( #18424 )
...
Co-authored-by: weimumu <934657014@qq.com>
6 years ago
gary rong
7ca40306af
accounts/abi: tuple support ( #18406 )
6 years ago
Dragan Milic
27913dd226
accounts/abi/bind: add optional block number for calls ( #17942 )
6 years ago
Guillaume Ballet
9bfd0b60cc
accounts/abi: fix case of generated java functions ( #18372 )
6 years ago
Matt K
a4af734328
accounts/abi: change unpacking of abi fields w/ underscores ( #16513 )
...
* accounts/abi: fix name styling when unpacking abi fields w/ underscores
ABI fields with underscores that are being unpacked
into structs expect structs with following form:
int_one -> Int_one
whereas in abigen the generated structs are camelcased
int_one -> IntOne
so updated the unpack method to expect camelcased structs as well.
6 years ago
weimumu
735343430d
fix string array unpack bug in accounts/abi ( #18364 )
6 years ago
Jeff Prestes
335760bf06
accounts/abi: Brings out the msg defined at require statement in SC function ( #17328 )
6 years ago
bas-vk
7df52e324c
accounts/abi: add support for unpacking returned bytesN arrays ( #15242 )
6 years ago
weimumu
3ad73443c7
fix slice unpack bug in accounts/abi ( #18321 )
...
* fix slice unpack bug in accounts/abi
6 years ago
tzapu
e79821cabe
accounts/abi: argument type and name were reversed ( #17947 )
...
argument type and name were reversed
6 years ago
Vedhavyas Singareddi
92639b676a
Add packing for dynamic array and slice types ( #18051 )
...
* added tests for new abi encoding features (#4 )
* added tests from bytes32[][] and string[]
* added offset to other types
* formatting
* Abi/dynamic types (#5 )
* Revert "Abi/dynamic types (#5 )" (#6 )
This reverts commit dabca31d797623d43bd780721fc0ad461d24be53.
* Abi/dynamic types (#7 )
* some cleanup
* Apply suggestions from code review
apply suggestions
Co-Authored-By: vedhavyas <vedhavyas.singareddi@gmail.com>
* added better formatting (#8 )
* review chnages
* better comments
6 years ago
Jeremy Schlatter
5ed3960b9b
accounts/abi/bind: stop using goimports in the binding generator ( #17768 )
6 years ago
Martin Holst Swende
96fd50be10
accounts/abi: fix panic in MethodById lookup. Fixes #17797 ( #17798 )
6 years ago
CDsigma
a5aaab2f22
accounts/abi/bind/backends: fix typo ( #17749 )
6 years ago
gary rong
d6254f827b
all: protect self-mined block during reorg ( #17656 )
6 years ago
Martin Holst Swende
16bc8741bf
abi, signer: fix nil dereference in #17633 ( #17653 )
...
* abi,signer: fix nil dereference in #17633
* signer/core: tiny typo fix in test error message
6 years ago
Diep Pham
42bd67bd6f
accounts/abi: fix unpacking of negative int256 ( #17583 )
6 years ago
Wenbiao Zheng
d1aa605f1e
all: remove the duplicate 'the' in annotations ( #17509 )
6 years ago
Jeff Prestes
212bba47ff
backends: configurable gas limit to allow testing large contracts ( #17358 )
...
* backends: increase gaslimit in order to allow tests of large contracts
* backends: increase gaslimit in order to allow tests of large contracts
* backends: increase gaslimit in order to allow tests of large contracts
6 years ago
Roc Yu
040dd5bd5d
accounts/abi: refactor Method#Sig() to use index in range iterator directly ( #17198 )
6 years ago
Péter Szilágyi
e1f1d3085c
accounts, eth, les: blockhash based filtering on all code paths
6 years ago
Wenbiao Zheng
61a5976368
accounts: remove deadcode isSigned ( #16990 )
6 years ago
Péter Szilágyi
49719e21bc
core, eth: minor txpool event cleanups
7 years ago
rjl493456442
a2e43d28d0
all: collate new transaction events together
7 years ago
Guillaume Ballet
247b5f0369
accounts/abi: allow abi: tags when unpacking structs
...
Go code users can now tag event struct members with `abi:` to specify in what fields the event will be de-serialized.
See PR #16648 for details.
7 years ago
gary rong
7beccb29be
all: get rid of error when creating memory database ( #16716 )
...
* all: get rid of error when create mdb
* core: clean up variables definition
* all: inline mdb definition
7 years ago
Péter Szilágyi
6cf0ab38bd
core/rawdb: separate raw database access to own package ( #16666 )
7 years ago