Fabian Vogelsteller
530c4a3b1d
fixed PR issues
2017-08-10 16:58:29 +02:00
Susmit
f646ab45f9
Refactored method encodeWithOffset ( #970 )
...
* Example Code for Message Signing Added
Added an example java script which demonstrates the following
- How to sign a message using Ethereum account
- How to find the address using which the message was signed
* Refactored method encodeWithOffset
Performed refactoring for encodeWithOffset method. Removed code redundancy.
2017-08-10 14:14:10 +02:00
David Braun
864071fd30
Fix staticPartLength calculation for multidimensional arrays. ( #527 )
...
* Remove extraneous whitespace.
* Fix dynamicOffset calculation when encoding params.
Dynamic types should contribute only one word, not their staticPartLength.
* Fix staticPartLength calculation for multidimensional arrays.
Previously it was accounting for only one of the dimensions.
* Define default behavior for SolidityType.staticPartLength.
The default behavior was defined redundantly for every type.
2017-01-05 15:55:55 +01:00
David Braun
02f083198c
Fix #483 by improving formatting of bytes type.
2016-11-21 13:36:34 -05:00
David Braun
7efbe40c9c
Remove extraneous whitespace.
2016-11-21 12:12:41 -05:00
Leonid Gaiazov
557268d116
Fixed a bug where negative numbers were rounded up instead of rounding down ( #507 )
...
There was an issue in combination of `solidity.formatters.formatInputInt` and `utils.toTwosComplement` where the value was rounded *after* performing the toTwosComplement. This caused negative floats to round _UP_ instead of rounding _DOWN_. I'm not sure if this is a bug or intentional, but from reading the code it appears to be intended to be rounded down.
Added simple unit test to demonstrate the behavior
2016-11-11 11:38:03 +01:00
debris
b794007a52
sed ethereum.js -> web3.js
2015-10-08 15:34:07 +08:00
debris
50a42ab839
additional test and bugfix for encoding bytes3, fixed #325
2015-10-06 00:51:36 +02:00
debris
72ed89fd1b
fixed #321 , encoding/decodig fixed size arrays of bytes
2015-10-05 08:51:01 +02:00
debris
bbe031a35f
fixed decoding big uints
2015-08-12 08:39:17 +02:00
debris
639f451517
toAscii/fromAscii -> toUtf8/fromUtf8
2015-08-10 22:11:37 +02:00
debris
f9130a58bd
fixed lint errors
2015-08-07 11:13:40 +02:00
debris
e6c31f7558
fixed most of jshint issues
2015-08-03 15:14:54 +02:00
debris
492f0e224f
fixed some of the jshint issues
2015-07-29 18:02:34 +02:00
debris
55240b2ca1
fixed order of nested arrays encoding/decoding
2015-07-29 17:31:51 +02:00
debris
b46140cd07
fixed array order in address, bool, bytes array order
2015-07-29 17:00:11 +02:00
debris
ae34877774
encoding/decoding all tests passing
2015-07-28 16:47:56 +02:00
debris
3f8ec7ed13
real && ureal types
2015-07-28 15:56:18 +02:00
debris
03f6a5b849
common fixed in encoding
2015-07-28 15:46:38 +02:00
debris
cf4817e785
fixed bug in getOffsets
2015-07-28 15:04:33 +02:00
debris
1a3d7e821a
refactored dynamic bytes and uint encoding
2015-07-28 14:39:26 +02:00
debris
cc215ceb40
todo, fix encoding of nested dynamic arrays
2015-07-28 12:27:12 +02:00
debris
afd886318f
solidity type int, missing file
2015-07-28 10:14:18 +02:00
debris
d38f8bcbe6
solidity type int
2015-07-28 10:13:59 +02:00
debris
f3e0fdaec9
bool type
2015-07-28 09:01:05 +02:00
debris
9b2b10c8b8
docs...
2015-07-28 08:28:46 +02:00
debris
7b27c47d69
solidity refactor in progres
2015-07-28 03:44:19 +02:00
debris
b815c5561a
removed _mode field
2015-07-28 03:34:36 +02:00
debris
bdd68cde1a
new encoding
2015-07-28 03:30:47 +02:00
debris
38018446a3
step by step encoding
2015-07-28 02:34:31 +02:00
debris
fa8d4c1087
step by step encoding
2015-07-28 01:43:28 +02:00
debris
b043832cfd
step by step encoding
2015-07-28 01:36:32 +02:00
debris
2559b958a6
step by step encoding
2015-07-28 00:32:46 +02:00
debris
d319ee8d92
nested encoding in progress
2015-07-28 00:14:41 +02:00
debris
b2f2202450
removed unused lines
2015-07-27 22:52:55 +02:00
debris
38b698dadd
decoding refactor, nested arrays
2015-07-27 22:38:33 +02:00
debris
13807c1b19
solidity types prototypes
2015-07-27 15:10:10 +02:00
debris
3e66cca699
encoding fixed size variables > 32 bytes"
2015-07-27 14:09:12 +02:00
Fabian Vogelsteller
3fe001c235
fixed build error
2015-07-21 15:51:19 +02:00
Marek Kotewicz
4a7edb5ad8
fixed utf8 encoding/decoding in solidity params
2015-07-21 11:35:52 +02:00
Marek Kotewicz
490dde52a7
fixed encoding/decoding strings, #249
2015-06-30 12:02:46 +02:00
Marek Kotewicz
b3f5d0927c
fixed long bytes dynamic decoding/encoding, #249
2015-06-30 11:16:15 +02:00
Fabian Vogelsteller
ecf0a2cbdf
changed | to Math.floor
2015-06-22 15:55:24 +02:00
Fabian Vogelsteller
9061116db3
fixed build issues in formatInputDynamicBytes
2015-06-22 11:17:26 +02:00
Marek Kotewicz
fa3239f457
abi string type, fixes #216 , #218 , #219
2015-06-01 19:50:45 +02:00
Marek Kotewicz
d03bec658e
decoding of empty array, fixed #210 , fixed #211
2015-05-21 11:38:19 +02:00
Marek Kotewicz
9abf38a349
fixed encoding of empty arrays
2015-05-21 11:28:15 +02:00
Marek Kotewicz
611f640101
asynchronous contract creation, breaking changes
2015-05-11 18:02:15 +02:00
Marek Kotewicz
272837e0dd
cleaned up param.js
2015-05-10 15:25:35 +02:00
Marek Kotewicz
38a13bc188
removed unused functions from coder.js
2015-05-10 15:23:26 +02:00