68 Commits
Author SHA1 Message Date
rogojs 7935e5f407 Added optional padding parameter to utils.fromAscii and updated tests (#1474) 2018-04-12 11:41:12 +02:00
William Morriss bd6a890bdf Use fromUtf8 in web3.toHex (#1398)
* always use fromUtf8 in toHex

* add korean test case

* treat 0 as 00 instead of end of string

* update test case for utf8

* chinese and korean utf8 cases
2018-03-13 13:46:40 +01:00
Jaecheol Shin 4239c626de Add constraint conditions and increase the readability (#1418) 2018-03-13 10:30:01 +01:00
Fabian Vogelsteller e4d94a2c15 Merge develop (#1242)
* remove duplicate line (#1086) (#1098)

* Align text for unitMap (#1127)

* fixing compiler errors (#1174)

* Added web3j-scala to the list of Other Implementations (#1206)

* Extends HttpProvider with custom http headers (#1228)

* extend HttpProvider with custom http headers

* reset formatting

* reset formatting

* reset formatting

* fix null object

* fix null object

* Adds checksum isAddress() test cases (#1224)

* fixed tests

* build files
2017-12-21 10:49:20 +01:00
Rachel Rose O'Leary e6af9b08e8 remove duplicate line (#1086) 2017-10-04 11:12:57 +02:00
Allen McCabe f74d60c171 Replace instanceof Array with Array.isArray because of reasons. (#995) 2017-09-15 13:08:01 +02:00
Fabian Vogelsteller 89b9cb9e04 Merge develop and bump version (#870)
* bumped version (#865)

* validate number of args to solidity functions (#866)

* Fix for "filterCreationErrorCallback is not a function" Error #552 (#861)

* Missing some checks in order to verify if given value is an object (#568)

* make sure the old behaviour is valued in toHex

* Porting personal.importRawKey, personal.sign, personal.ecRecover from go-ethereum to web3.js (#565)

* Porting personal.importRawKey

* Porting personal.sign

* Porting personal.ecRecover

* Export padLeft and padRight as functions of web3 (#848)

I'm working with `bytes12` and it's useful to have these two functions in the web3 object for formatting.

* bumped version

* fixed lint

* new versions file
2017-05-09 13:13:41 +02:00
bas-vk 4653e3fb01 fix jslint warnings (#561) 2017-02-17 12:13:26 +01:00
bas-vk be528f7436 add support for Ethereum blooms (#559) 2017-02-17 11:10:34 +01: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
Alexandre Van de Sande a850e6d945 added correct sha3.js address 2016-02-25 15:01:07 -03:00
Alexandre Van de Sande 9fc4f508dc Merge branch 'ethers-units' into experimental-hex-checksum 2016-02-25 11:14:12 -03:00
Alexandre Van de Sande a824f5ad83 merge conflicts 2016-02-25 11:13:34 -03:00
Alexandre Van de Sande 2caadc4495 solve travis test issues 2016-02-25 11:10:43 -03:00
ethers b9dff51d89 match with Homestead guide
https://github.com/ethereum/homestead-guide/blob/master/source/using-ethereum-the-basics/ether.rst
2016-02-24 18:57:11 -08:00
ethers 60aa712a88 matc with Homestead guide
https://github.com/ethereum/homestead-guide/blob/master/source/using-ethereum-the-basics/ether.rst
2016-02-24 18:52:27 -08:00
Alexandre Van de Sande c6c344d7d8 if undefined, return 2016-02-23 16:54:44 -03:00
Alexandre Van de Sande d95b10a57a off by one error 2016-02-23 08:40:27 -03:00
Alexandre Van de Sande cd1974b883 added separate function for checksum 2016-02-22 15:17:32 -03:00
Alexandre Van de Sande 9f47fa5535 Simplifies checksum process 2016-02-22 12:19:50 -03:00
Alexandre Van de Sande 083ab3a2cc experimental checksum 2016-02-19 11:05:42 -02:00
Fabian Vogelsteller 0563dba4ee readd topic convertion, add fix 2015-11-24 22:03:21 +01:00
debris b794007a52 sed ethereum.js -> web3.js 2015-10-08 15:34:07 +08:00
Marek Kotewicz d04c48dd8e Merge pull request #307 from caktux/develop
fromUtf8 and toUtf8 should ignore null characters
2015-10-06 03:48:54 +02:00
debris da082a393c fromICAP method 2015-10-05 12:50:19 +02:00
Fabian Vogelsteller 072b7962cb make address check case independent 2015-09-10 14:44:34 +02:00
caktux e500fd3101 fromUtf8 and toUtf8 should ignore null characters 2015-08-26 17:21:49 -04:00
caktux a0e34b2dd5 fix fromAscii, toAscii and toHex, fix wrong test assertions, add raw bytes test #291 2015-08-10 23:33:51 -04:00
debris 9743787c07 fixed #267 2015-08-10 22:20:41 +02:00
debris 639f451517 toAscii/fromAscii -> toUtf8/fromUtf8 2015-08-10 22:11:37 +02:00
debris ac7ac14760 use utf8 library for utf encoding/decoding 2015-08-10 21:38:27 +02:00
debris 9b005e4473 removed utf8 support, do not use "escape" && "unescape" 2015-08-10 21:23:56 +02:00
debris b965bd8506 Merge branch 'develop' 2015-08-07 11:55:40 +02:00
debris f9130a58bd fixed lint errors 2015-08-07 11:13:40 +02:00
debris a9db26f22a refactored iban stuff 2015-08-06 17:11:15 +02:00
Fabian Vogelsteller f9b735ea8b add Meteor server fix 2015-07-30 15:44:51 +02:00
debris bbd6df0a83 isFinite behaves differently in go js env 2015-07-27 11:01:12 +02:00
Marek Kotewicz 4a7edb5ad8 fixed utf8 encoding/decoding in solidity params 2015-07-21 11:35:52 +02:00
Fabian Vogelsteller 0e3b29c7c2 fixed coverage issue 2015-06-19 13:33:43 +02:00
ethers 8379696e64 unit names per White Paper
A very early version of the White Paper (Dec 10 2014) already clarified unit names.
https://github.com/ethereum/wiki/wiki/White-Paper/502e0e01355a42c8e6f5463c49cce496ae423179
2015-06-18 03:27:51 -07:00
Fabian Vogelsteller bd6d9ba5b2 merged develop 2015-06-09 12:56:05 +02:00
Fabian Vogelsteller cc533d9e83 fixed bytes wrong encoding 2015-06-04 23:13:33 +02:00
Fabian Vogelsteller 61f1ba6dda Merge pull request #224 from alexvandesande/prefix-name-reorg
Prefix name reorg
2015-06-03 17:16:05 +02:00
Marek Kotewicz fa3239f457 abi string type, fixes #216, #218, #219 2015-06-01 19:50:45 +02:00
Alexandre Van de Sande 5866f0882a milli should have two l's 2015-05-22 12:04:06 -03:00
Alexandre Van de Sande bacb03cc5d Rename Kwei to kwei, added support for some SI base units for ether 2015-05-22 11:45:37 -03:00
Marek Kotewicz e9483a6404 icap.html example 2015-05-19 15:17:02 +02:00
Fabian Vogelsteller d1e1206e5a removed byte formatter methods 2015-05-12 11:02:46 +02:00
Fabian Vogelsteller edf808ad7c add getWork and submitWork functions and toXBytes utils 2015-05-11 16:22:39 +02:00
Marek Kotewicz 93b323f176 removed unused function findIndex from utils 2015-04-22 09:51:27 +02:00