aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/abi/bind/bind.go
Commit message (Collapse)AuthorAgeFilesLines
* Change import go github.com/dexon-foundation/dexonWei-Ning Huang2019-04-091-2/+2
|
* accounts/abi: fix case of generated java functions (#18372)Guillaume Ballet2019-01-021-4/+6
|
* accounts/abi: change unpacking of abi fields w/ underscores (#16513)Matt K2018-12-291-37/+4
| | | | | | | | | | | | | | * 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.
* accounts/abi/bind: stop using goimports in the binding generator (#17768)Jeremy Schlatter2018-10-061-3/+3
|
* all: remove the duplicate 'the' in annotations (#17509)Wenbiao Zheng2018-08-271-2/+2
|
* accounts/abi: normalize method name to a camel-case string (#15976)Mark2018-03-071-5/+34
|
* accounts/abi: Abi binding support for nested arrays, fixes #15648, including ↵protolambda2018-03-051-70/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | nested array unpack fix (#15676) * accounts/abi/bind: support for multi-dim arrays Also: - reduce usage of regexes a bit. - fix minor Java syntax problems Fixes #15648 * accounts/abi/bind: Add some more documentation * accounts/abi/bind: Improve code readability * accounts/abi: bugfix for unpacking nested arrays The code previously assumed the arrays/slices were always 1 level deep. While the packing supports nested arrays (!!!). The current code for unpacking doesn't return the "consumed" length, so this fix had to work around that by calculating it (i.e. packing and getting resulting length) after the unpacking of the array element. It's far from ideal, but unpacking behaviour is fixed now. * accounts/abi: Fix unpacking of nested arrays Removed the temporary workaround of packing to calculate size, which was incorrect for slice-like types anyway. Full size of nested arrays is used now. * accounts/abi: deeply nested array unpack test Test unpacking of an array nested more than one level. * accounts/abi: Add deeply nested array pack test Same as the deep nested array unpack test, but the other way around. * accounts/abi/bind: deeply nested arrays bind test Test the usage of bindings that were generated for methods with multi-dimensional (and not just a single extra dimension, like foo[2][3]) array arguments and returns. edit: trigger rebuild, CI failed to fetch linter module. * accounts/abi/bind: improve array binding wrapArray uses a regex now, and arrayBindingJava is improved. * accounts/abi: Improve naming of element size func The full step size for unpacking an array is now retrieved with "getFullElemSize". * accounts/abi: support nested nested array args Previously, the code only considered the outer-size of the array, ignoring the size of the contents. This was fine for most types, but nested arrays are packed directly into it, and count towards the total size. This resulted in arguments following a nested array to replicate some of the binary contents of the array. The fix: for arrays, calculate their complete contents size: count the arg.Type.Elem.Size when Elem is an Array, and repeat when their child is an array too, etc. The count is the number of 32 byte elements, similar to how it previously counted, but nested. * accounts/abi: Test deep nested arr multi-arguments Arguments with a deeply nested array should not cause the next arguments to be read from the wrong position.
* accounts/abi/bind: support event filtering in abigenPéter Szilágyi2018-01-241-13/+65
|
* accounts/abi: handle named ouputs prefixed with underscores (#15766)Péter Szilágyi2017-12-301-2/+18
| | | | | | | | * accounts/abi: handle named ouputs prefixed with underscores * accounts/abi: handle collinding outputs for struct unpacks * accounts: handle purely underscore output names
* all: use gometalinter.v2, fix new gosimple issues (#15650)Zach2017-12-131-1/+1
|
* accounts/abi/bind: pass non-empty directory when calling goimports (#15070)nkbai2017-09-081-1/+1
|
* all: fix issues reported by honnef.co/go/simple/cmd/gosimpleFelix Lange2017-01-071-10/+10
|
* accounts/abi/bind, mobile: review fixes and android testsPéter Szilágyi2016-11-151-5/+9
|
* mobile: initial wrappers for mobile supportPéter Szilágyi2016-11-141-8/+153
|
* accounts/abi/bind: support generating bindings for various arraysPéter Szilágyi2016-04-051-16/+23
|
* accounts/abi/bind: support account slices, drop hash typePéter Szilágyi2016-03-311-2/+2
|
* accounts/abi/bind, cmd/abigen: port to templates, bind to solidityPéter Szilágyi2016-03-241-334/+87
|
* accounts/abi/bind: constructor, auth utils and various backendsPéter Szilágyi2016-03-241-37/+140
|
* accounts/abi/bind, cmd/abigen: Go API generator around an EVM ABIPéter Szilágyi2016-03-241-0/+317