Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | accounts/abi: Extra slice tests (#18424) | Guillaume Ballet | 2019-01-10 | 1 | -0/+15 |
| | | | Co-authored-by: weimumu <934657014@qq.com> | ||||
* | accounts/abi: tuple support (#18406) | gary rong | 2019-01-10 | 1 | -3/+116 |
| | |||||
* | accounts/abi: change unpacking of abi fields w/ underscores (#16513) | Matt K | 2018-12-29 | 1 | -0/+47 |
| | | | | | | | | | | | | | | * 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. | ||||
* | fix string array unpack bug in accounts/abi (#18364) | weimumu | 2018-12-28 | 1 | -0/+61 |
| | |||||
* | accounts/abi: add support for unpacking returned bytesN arrays (#15242) | bas-vk | 2018-12-22 | 1 | -0/+49 |
| | |||||
* | fix slice unpack bug in accounts/abi (#18321) | weimumu | 2018-12-17 | 1 | -0/+5 |
| | | | | * fix slice unpack bug in accounts/abi | ||||
* | accounts/abi: fix unpacking of negative int256 (#17583) | Diep Pham | 2018-09-04 | 1 | -0/+5 |
| | |||||
* | accounts/abi: improve test coverage (#16044) | Ricardo Domingos | 2018-04-04 | 1 | -0/+17 |
| | |||||
* | accounts/abi: Abi binding support for nested arrays, fixes #15648, including ↵ | protolambda | 2018-03-05 | 1 | -0/+45 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: harden unpacking against malicious input | Martin Holst Swende | 2018-02-21 | 1 | -0/+70 |
| | |||||
* | accounts/abi: add another unpack interface | Martin Holst Swende | 2018-02-21 | 1 | -1/+1 |
| | |||||
* | all: update license information (#16089) | Felix Lange | 2018-02-14 | 1 | -1/+1 |
| | |||||
* | accounts/abi: handle named ouputs prefixed with underscores (#15766) | Péter Szilágyi | 2017-12-30 | 1 | -0/+45 |
| | | | | | | | | * accounts/abi: handle named ouputs prefixed with underscores * accounts/abi: handle collinding outputs for struct unpacks * accounts: handle purely underscore output names | ||||
* | accounts/abi: add unpack into array test | Robert Zaremba | 2017-12-21 | 1 | -0/+5 |
| | |||||
* | accounts/abi: add Method Unpack tests | Robert Zaremba | 2017-12-21 | 1 | -36/+59 |
| | | | | | + Reworked Method Unpack tests into more readable components + Added Method Unpack into slice test | ||||
* | accounts/abi: update array length after parsing array (#15618) | Dmitry Shulyak | 2017-12-20 | 1 | -19/+45 |
| | | | Fixes #15617 | ||||
* | all: use gometalinter.v2, fix new gosimple issues (#15650) | Zach | 2017-12-13 | 1 | -2/+2 |
| | |||||
* | all: gofmt -w -s (#15419) | ferhat elmas | 2017-11-08 | 1 | -1/+1 |
| | |||||
* | accounts/abi: improve type handling, add event support (#14743) | RJ Catalano | 2017-10-17 | 1 | -368/+273 |
| | |||||
* | accounts/abi: reorganizing package with small fixes (#14610) | RJ Catalano | 2017-06-27 | 1 | -0/+681 |
* accounts/abi: reorganizing package and some notes and a quick correction of name. Signed-off-by: RJ Catalano <rj@monax.io> get rid of some imports Signed-off-by: RJ Catalano <rj@monax.io> * accounts/abi: move file names Signed-off-by: RJ Catalano <rj@monax.io> * accounts/abi: fix boolean decode function Signed-off-by: RJ Catalano <rj@monax.io> * accounts/abi: fix for the array set and for creating a bool Signed-off-by: RJ Catalano <rj@monax.io> * accounts/abi: be very very very correct Signed-off-by: RJ Catalano <rj@monax.io> * accounts/abi: fix up error message and variable names Signed-off-by: RJ Catalano <rj@monax.io> * accounts/abi: take out unnecessary argument in pack method Signed-off-by: RJ Catalano <rj@monax.io> * accounts/abi: add bool unpack test and add a panic to readBool function Signed-off-by: RJ Catalano <rj@monax.io> * accounts/abi: fix panic message Signed-off-by: RJ Catalano <rj@monax.io> * accounts/abi: change from panic to basic error Signed-off-by: RJ Catalano <rj@monax.io> * accounts/abi: fix nil to false Signed-off-by: RJ Catalano <rj@monax.io> * accounts/abi: fill out type regex tests and fill with the correct type for integers Signed-off-by: RJ Catalano <rj@monax.io> * accounts/abi: move packNumbers into pack.go. Signed-off-by: RJ Catalano <rj@monax.io> * accounts/abi: separation of the testing suite into appropriately named files. Signed-off-by: RJ Catalano <rj@monax.io> * account/abi: change to hex string tests. Signed-off-by: RJ Catalano <rj@monax.io> * account/abi: fix up rest of tests to hex Signed-off-by: RJ Catalano <rj@monax.io> * accounts/abi: declare bool at the package level Signed-off-by: RJ Catalano <rj@monax.io> * accounts/abi: use errors package in the error file. Signed-off-by: RJ Catalano <rj@monax.io> * accounts/abi: fix ugly hack and fix error type declaration. Signed-off-by: RJ Catalano <rj@monax.io> |