42 Commits

Author SHA1 Message Date
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
Marek Kotewicz
57d9f1f036 removed deprecated && unused lines from contract.js 2015-03-31 10:35:36 +02:00
Marek Kotewicz
5885bfe69b test for #128 2015-03-31 09:42:03 +02:00
Marek Kotewicz
e53f316db9 tests for transaction && call 2015-03-31 09:34:06 +02:00
Marek Kotewicz
f4e5a99be1 default log formatter, improved contract test 2015-03-27 11:27:50 +01:00
Marek Kotewicz
07bcdb441e improved tests for contract.js, fixed few minor issues 2015-03-27 08:42:23 +01:00