491 Commits

Author SHA1 Message Date
Greg Hysen
14c094d050 Use SolidityTypes from ethereum-types package. 2018-11-28 16:38:11 -08:00
Greg Hysen
f196dc9e35 Use ethUti.isValidAddress in encoder 2018-11-28 16:38:11 -08:00
Greg Hysen
e7bdf4717d Fixed build error: was using this instead of class name to reference a static function that used to be an instance method. 2018-11-28 16:38:11 -08:00
Greg Hysen
f479212410 Style cleanup. Improved wording of some error messages. 2018-11-28 16:38:11 -08:00
Greg Hysen
ffb8b0a619 Changed remaining instances of implicit bool casts to explicit lodash calls 2018-11-28 16:38:11 -08:00
Greg Hysen
1f693ea121 Changed from <string>.startsWith to _.startsWith 2018-11-28 16:38:11 -08:00
Greg Hysen
3f545da9f8 Switched implicit conversions to explicit lodash calls 2018-11-28 16:38:11 -08:00
Greg Hysen
f31d4ddffd Replaced null/undefined checks with lodash 2018-11-28 16:38:11 -08:00
Greg Hysen
2e79ce26cb Tests use to.be.deep.equal instead of JSON 2018-11-28 16:38:11 -08:00
Greg Hysen
ad1b5af4e5 Ran prettier 2018-11-28 16:38:11 -08:00
Greg Hysen
feb551a02e Comments to Set datatype 2018-11-28 16:38:11 -08:00
Greg Hysen
a8d707b462 Linter on Calldata 2018-11-28 16:38:11 -08:00
Greg Hysen
3bf5a4e83f Moved some consts outside of a loop 2018-11-28 16:38:11 -08:00
Greg Hysen
50344fa24a Added inline documentation for Calldata class 2018-11-28 16:38:11 -08:00
Greg Hysen
bab1c92c70 Linter for Calldata Block Iterator 2018-11-28 16:38:11 -08:00
Greg Hysen
8f73f53c95 Moved calldata iterator logic into its own iterator clas 2018-11-28 16:38:11 -08:00
Greg Hysen
9a51af46ee Payload -> Blob, Dependent -> Pointer, Member -> Set 2018-11-28 16:38:11 -08:00
Greg Hysen
bb4d02e413 Comments for Address 2018-11-28 16:38:11 -08:00
Greg Hysen
22ce3e2e29 Comments for Array 2018-11-28 16:38:11 -08:00
Greg Hysen
acd364b71c Comments and inline documentation for dynamic bytes 2018-11-28 16:38:11 -08:00
Greg Hysen
ebaf9dd275 Removed abstract Number class. 2018-11-28 16:38:11 -08:00
Greg Hysen
d2d89adbdd Abstracted out encoding/decoding of numeric values into its own utility. Could be useful elsewhere. 2018-11-28 16:38:11 -08:00
Greg Hysen
58a2dfbc4d Final rounds on evm data types 2018-11-28 16:38:11 -08:00
Greg Hysen
173fc1dcef Moved encoder selector check into DataType 2018-11-28 16:38:11 -08:00
Greg Hysen
dd8bb6d08b Made default encoding/decoding rules global to all modules in encoder 2018-11-28 16:38:11 -08:00
Greg Hysen
dc7092e1eb Removed mapDataItemToDataType from Factory. Now its just ::create() 2018-11-28 16:38:11 -08:00
Greg Hysen
c638151b73 Some minor cleanup in ABI Encoder 2018-11-28 16:38:11 -08:00
Greg Hysen
978a58105c Prepended front to function names in Queue 2018-11-28 16:38:11 -08:00
Greg Hysen
dcc439c2e3 Ran prettier 2018-11-28 16:38:11 -08:00
Greg Hysen
a895dacd4e moved abi encoder constants into utils dir 2018-11-28 16:38:11 -08:00
Greg Hysen
5a748fb4e5 Split ABI Encoder/Decoder tests into separate files 2018-11-28 16:38:11 -08:00
Greg Hysen
fee67326ad Merge above 2018-11-28 16:38:11 -08:00
Greg Hysen
a47901370b Ran prettier 2018-11-28 16:38:11 -08:00
Greg Hysen
d4d917f350 Ran prettier 2018-11-28 16:38:11 -08:00
Greg Hysen
aed8b083b5 Split Calldata into multiple files - 1 class per file 2018-11-28 16:38:11 -08:00
Greg Hysen
e6ab6f38ba Split EVM data types and factory into separate files 2018-11-28 16:38:11 -08:00
Greg Hysen
5934e5a57b Renaming some EVM data types for clarity 2018-11-28 16:38:11 -08:00
Greg Hysen
29d63cdf97 Fixed linter errors in package.json 2018-11-28 16:38:11 -08:00
Greg Hysen
62e6b22789 Fixed linter errors on tests 2018-11-28 16:38:11 -08:00
Greg Hysen
0ed1819143 Fixed linter errors on evm_data_types 2018-11-28 16:38:11 -08:00
Greg Hysen
406b5739be Fixed linter errors on data_type.ts 2018-11-28 16:38:11 -08:00
Greg Hysen
fbbca8e283 Ran prettier on utils 2018-11-28 16:38:11 -08:00
Greg Hysen
0f7abcd59b Moved global constants to separate file 2018-11-28 16:38:11 -08:00
Greg Hysen
2164b34bf9 Ran linter on Calldata 2018-11-28 16:38:11 -08:00
Greg Hysen
b0ebc6fa14 Tests for decoding return values + Ability to encode return values 2018-11-28 16:38:11 -08:00
Greg Hysen
6daa79ec12 Arrays nested in tuples 2018-11-28 16:38:10 -08:00
Greg Hysen
acd570b2b3 Multidimensional Array tests 2018-11-28 16:38:10 -08:00
Greg Hysen
0d65c9da4a Optimizer Tests 2018-11-28 16:38:10 -08:00
Greg Hysen
67dd062a2f Cleaning up optimizer tests 2018-11-28 16:38:10 -08:00
Greg Hysen
0c0bcb44d3 All 71 tests passing. Both for function encoding and individual types. 2018-11-28 16:38:10 -08:00