400 Commits

Author SHA1 Message Date
Fabian Vogelsteller
ea0e9445e2
added tests for syncing subscription 2017-02-06 18:37:48 +01:00
Fabian Vogelsteller
2700ba71eb
moved data and topics in decoded events to raw 2017-02-06 16:00:50 +01:00
Fabian Vogelsteller
1b554e0bb7
wip move docs over 2017-01-27 15:41:56 +01:00
Fabian Vogelsteller
e4c43d5e55
add more address tests 2017-01-26 19:29:12 +01:00
Fabian Vogelsteller
b08d97f79b
add more address tests 2017-01-26 16:28:06 +01:00
Fabian Vogelsteller
7755d13f8a
add more address tests 2017-01-26 15:02:53 +01:00
Fabian Vogelsteller
8f347fb7d6
added contract address conversino tests 2017-01-26 11:38:30 +01:00
Fabian Vogelsteller
3f723c36f5
fixed once tests 2017-01-26 10:55:46 +01:00
Fabian Vogelsteller
bbfefb091c Modularize web3.js (#541)
* added sub packages

* added lerna monopackage management

* check for package is instance

* added method, subscription and utils package

* moved almost all packages

* moved all packages, no umbrella package yet

* added extend to packages

* made contract pass

* made batch tests pass

* expose providers

* fixed test async

* fixed test errors

* fixed test event encode decode

* fixed test formatter tests

* fixed method tests

* fixed method utils

* fixed some eth methods

* fixed some eth methods 2

* bumped version 0.18.3 to republish meteor package

* fixed get* tests

* fixed subscribe tests

* added newBlockHeaders subscription

* remove unpublished package from package.json

* added sendTransaction test

* fixed call test

* moved files to done

* changed extend

* added iban tests

* Fixed ALL tests

* Fixed lint tests

* Fixed contract tests

* added method tests

* added more method tests to test promiEvents extensively

* added confirmation event

* improved method confirmation checking
2017-01-26 10:24:14 +01:00
Fabian Vogelsteller
17af9b5565
Merge branch 'develop' into 1.0 2017-01-05 15:56:28 +01: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
Fabian Vogelsteller
742e55c721
added payable checks and tests 2017-01-05 15:23:41 +01:00
Fabian Vogelsteller
c3529f0539
reworked deploy method 2017-01-05 14:43:10 +01:00
Federico Bond
f33723ee39 Throw error if trying to send value to non-payable function (#534) 2017-01-05 11:23:24 +01:00
Fabian Vogelsteller
345b756361
merged develop 2017-01-05 11:17:41 +01:00
David Braun
02f083198c Fix #483 by improving formatting of bytes type. 2016-11-21 13:36:34 -05:00
David Braun
b4613cc5f5 Remove bytes64 test.
There is no bytes64 type in Solidity (http://solidity.readthedocs.io/en/1242/types.html#fixed-size-byte-arrays).
2016-11-21 12:12:46 -05:00
David Braun
7efbe40c9c Remove extraneous whitespace. 2016-11-21 12:12:41 -05:00
Pedro Branco
09044dff1d Add timeout to HTTP provider (#499) 2016-11-14 09:00:13 +01:00
Fabian Vogelsteller
a3373365d1
added tests for once with on('data'..) 2016-11-11 16:29:18 +01:00
Fabian Vogelsteller
c4c71b9145
added tests for multiple topics in events 2016-11-11 15:46:57 +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
Fabian Vogelsteller
cce1b3d68c
added getPastEvent docs 2016-11-10 15:38:03 +01:00
Fabian Vogelsteller
f1658b1eda
added deploy docs 2016-11-10 12:04:47 +01:00
Fabian Vogelsteller
8deb24161d
moved address and jsonInterface to options 2016-11-10 11:14:01 +01:00
Fabian Vogelsteller
9c1d54453f
added tests for changing address 2016-11-10 10:51:45 +01:00
Fabian Vogelsteller
b455bcb950
added tests for re-setting json interface 2016-11-09 16:34:10 +01:00
Fabian Vogelsteller
154911071e
added test for contract.once 2016-11-09 16:06:46 +01:00
Fabian Vogelsteller
e2dd99cccb
removed functions from main contract object 2016-11-09 15:48:44 +01:00
Fabian Vogelsteller
f5511d729b
fixed all lint errors 2016-11-04 16:29:40 +01:00
Fabian Vogelsteller
abb393b88c
fixed linting 2016-11-04 12:17:20 +01:00
Fabian Vogelsteller
72859abf7e
merged develop 2016-11-02 11:13:46 +01:00
Fabian Vogelsteller
50754c5b28
doc changes 2016-11-01 17:24:16 +01:00
Fabian Vogelsteller
54a56e770c
changed minded event to receipt 2016-11-01 16:03:03 +01:00
Fabian Vogelsteller
23f428b096 Refactored the contract object (#424)
* started contract

* prepared the contract functions

* added deploy function

* added event emitter funcitons

* eventified promise

* added encodeABI

* added optional bluebird

* improved the param finder

* added call, transact and estimateGas

* allow siganture for encodeABI

* working on events

* added event listeners to contracts

* working on contract events

* changed on message to on data

* working on decoding events

* switched deploy check to subscriptions

* removed all event functions, keep only contract.on

* added subscription stuff

* fixed substractions formatters

* added log decoding

* added all events

* fixed events

* added new method calling structure

* added mined event for send tx

* worked on getPastEvents, still WIP

* working on tests

* added once method

* made options object in function execution optional

* finished pastEvents

* added request function for batch processing to contract methods

* fixed contract tests

* finished proting tests

* test provider isolatiton issues

* commented out test to prevent unsolvable issue for now

* changed deploy resolve

* deactivate encodeABI

* improved fake provider, with stacking validation and results

* added fromBlock test

* added tests for internal methods of the contract object
2016-10-07 13:07:42 +02:00
Marius Darila
b489f5e24b add formatter for syncing States (#482) 2016-09-12 15:52:36 +02:00
bas-vk
c2426ad880 add eth_protocolVersion (#491) 2016-09-12 15:20:20 +02:00
kumavis
14494699c8 Add callback handling in method Filter.stopWatching 2016-08-26 16:01:44 -07:00
kumavis
74995bbbf7 Jsonrpc - fix singleton pattern 2016-08-26 14:55:16 -07:00
Fabian Vogelsteller
7273693588 merged develop 2016-06-29 11:40:06 +02:00
Leon Liang
49bed91163 Fix test coverage calculation (#467) 2016-06-29 11:34:05 +02:00
Fabian Vogelsteller
5275969765 merged subscriptions 2016-04-05 14:33:33 +02:00
Martin
84420e3340 also passes options argument 2016-03-04 00:58:00 +01:00
Martin
dd875e06aa web3.sha3 returns string with hex prefix 2016-03-04 00:47:05 +01:00
Fabian Vogelsteller
fc9e96473a fixed test 2016-02-29 16:24:50 +01:00
Fabian Vogelsteller
dccde3f1d7 Merge branch 'master' of github.com:ethereum/web3.js 2016-02-29 11:42:38 +01:00
Fabian Vogelsteller
bb5a1d9297 Merge branch 'develop' of github.com:ethereum/web3.js into develop 2016-02-29 11:23:18 +01:00
Fabian Vogelsteller
f6b7d89878 fixed tests 2016-02-29 11:22:57 +01:00
Dan Turner
6a7a896da3 Implement the "personal" API's of go-ethereum
As per: https://github.com/ethereum/go-ethereum/wiki/Go-ethereum-management-API's
2016-02-29 15:59:54 +11:00
Alexandre Van de Sande
7400df977f added checksum tests 2016-02-25 11:40:32 -03:00