55 Commits

Author SHA1 Message Date
Fabian Vogelsteller
c800df8d6d
decode receipts logs on contract events 2017-02-28 20:11:58 +01:00
Fabian Vogelsteller
83e42fa584
changed contract internal method name 2017-02-14 18:03:37 +01:00
Fabian Vogelsteller
e94a0a00a1
added contract.clone() 2017-02-14 17:58:38 +01:00
Fabian Vogelsteller
3fbb723d3b
changed eth.contract and eth.iban to uppercase 2017-02-08 10:03:12 +01:00
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
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
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
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
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
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
Fabian Vogelsteller
031a006c6e changed tests to apot new subscription API 2016-01-21 15:25:44 +01:00
debris
31bcdb4496 fixed failing test 2015-10-15 14:46:47 +08:00
debris
61916f9bb8 fixed some of the test that interferred with each other 2015-10-12 14:23:16 +08:00
debris
10e79d64b2 uncommented few more tests 2015-10-08 08:41:55 +02:00
debris
7dff0a461a refactored extensions 2015-10-08 04:09:51 +02:00
Fabian Vogelsteller
415929584c add isSyncing and better way of matching batch requests 2015-09-09 22:02:23 +02:00
debris
283b658656 throw an exception on invalid address 2015-08-08 21:22:01 +02:00
Fabian Vogelsteller
f649befa6d contract.new callback fires now twice, once on txhash and once deployed 2015-07-20 15:51:49 +02:00
Marek Kotewicz
7aca17e071 Merge branch 'develop' into allevents
Conflicts:
	dist/web3-light.js
	dist/web3-light.min.js
	dist/web3.js
	dist/web3.js.map
	dist/web3.min.js
	test/contract.js
2015-06-24 12:09:04 +02:00
Fabian Vogelsteller
d78b512fa5 add possible callback to filters 2015-06-24 10:28:12 +02:00
Marek Kotewicz
af9c027e7a all events filter 2015-06-24 08:50:19 +02:00
Fabian Vogelsteller
b6c49d4db7 improved async polling 2015-06-08 14:38:16 +02:00
Fabian Vogelsteller
f242489f81 add optional default block parameter to contract call fixes #159 2015-06-05 11:34:50 +02:00
Fabian Vogelsteller
0594e7f53d add estimateGas to contract methods and fixed sendTransaction return value 2015-05-20 11:58:09 +02:00
Marek Kotewicz
d3205523e9 crypto-js integrated into project 2015-05-16 17:03:27 +02:00
Marek Kotewicz
863607750f initial support for batch requests 2015-05-12 07:01:33 +02:00
Marek Kotewicz
a0b9cfb1e7 contract async call && transact 2015-05-11 18:59:46 +02:00
Marek Kotewicz
611f640101 asynchronous contract creation, breaking changes 2015-05-11 18:02:15 +02:00
Marek Kotewicz
6e60e1ffcd new solidity abi decoding 2015-05-09 20:15:08 +02:00
Marek Kotewicz
d795d36ef7 fixed trimming call output prefix 2015-04-26 10:27:21 +02:00
Marek Kotewicz
a2f561f263 fixed calling contract only with array param 2015-04-26 10:09:13 +02:00
Fabian Vogelsteller
40c5c9e00a merged develop 2015-04-22 15:54:46 +02:00
Fabian Vogelsteller
c9cd31b4ab add test for the new toTopic filter 2015-04-22 15:47:29 +02:00
Marek Kotewicz
960e9c99ec test for explicit sendTransaction && call 2015-04-22 15:24:53 +02:00
Marek Kotewicz
f84a68cb73 changed the way functions are being called 2015-04-21 19:41:57 +02:00
Marek Kotewicz
ea6bda4cbb event refactor in progress 2015-04-20 21:59:35 +02:00
Marek Kotewicz
c62f817cc6 picked watch change3 2015-04-13 12:56:14 +02:00