Commit Graph

281 Commits

Author SHA1 Message Date
Nick Dodson 86d9b5875d Added sendRawTransaction 2015-06-18 13:25:57 -04:00
Fabian Vogelsteller 3e49f56971 add currentProvidor and mist fixes 2015-06-17 12:41:25 +02:00
Marek Kotewicz 4228b02cd0 common fixes in requestmanager 2015-06-15 07:00:38 +02:00
Marek Kotewicz 03ae21bd77 special logs will never be nulls, so there is no reason to check for null value 2015-06-10 12:20:39 +02:00
Fabian Vogelsteller fdf46edbb0 fixed providor not set in request manager 2015-06-09 11:14:24 +02:00
Marek Kotewicz f454dda8e6 Merge branch 'develop' of https://github.com/asinyagin/web3.js into develop
Conflicts:
	dist/web3-light.js
	dist/web3-light.min.js
	dist/web3.js
	dist/web3.min.js
2015-06-08 18:04:05 +02:00
Marek Kotewicz b09bf319bd Merge branch 'develop' into allAsync
Conflicts:
	dist/web3-light.js.map
	dist/web3-light.min.js
	dist/web3.js.map
	dist/web3.min.js
2015-06-08 17:31:58 +02:00
Alexander Sinyagin 6ea0d670b6 Set requests content type to application/json 2015-06-08 20:30:14 +05:00
Fabian Vogelsteller a2e5fbdf63 add tests for the outputformatters 2015-06-08 17:06:20 +02:00
Fabian Vogelsteller 08d2212953 small fix on outputFormatters, dont transform null to 0 2015-06-08 16:53:28 +02:00
Fabian Vogelsteller 1495a0c67c add comlexity push for poll, does only show on travis 2015-06-08 15:18:48 +02:00
Fabian Vogelsteller b6c49d4db7 improved async polling 2015-06-08 14:38:16 +02:00
Fabian Vogelsteller 16252f3de5 imporved async callback adding, without setinterval 2015-06-08 10:46:30 +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 1d3d727f31 improved comment 2015-06-05 11:05:14 +02:00
Fabian Vogelsteller d9ce08e49e improved filter interval 2015-06-05 11:04:06 +02:00
Fabian Vogelsteller ddafe0027a asyncified filters 2015-06-05 10:47:17 +02:00
Marek Kotewicz b19e46c0d3 updated "deposit" method description, updated icap example contract abi 2015-05-26 21:00:21 +02:00
Marek Kotewicz d0be181345 fixed const functions calls handling errors 2015-05-24 14:34:00 +02:00
Marek Kotewicz 858d0c62a4 lint 2015-05-23 16:03:01 +02:00
Marek Kotewicz 95aabe3305 sendIBANTransaction && tests 2015-05-23 15:59:19 +02:00
Marek Kotewicz dfd5060a6a use "official" namereg, updated examples 2015-05-21 15:49:10 +02:00
Marek Kotewicz d8ad2b7a98 Merge branch 'develop' into icap
Conflicts:
	dist/web3-light.js.map
	dist/web3-light.min.js
	dist/web3.js.map
	dist/web3.min.js
2015-05-21 12:04:05 +02:00
Fabian Vogelsteller d4bf850c11 fixed typo 2015-05-21 09:51:13 +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 e9483a6404 icap.html example 2015-05-19 15:17:02 +02:00
Marek Kotewicz cd773fc92a updated docs 2015-05-18 15:22:58 +02:00
Marek Kotewicz 4af00857de web3.eth.namereg contract, icap in progress 2015-05-18 11:22:24 +02:00
Marek Kotewicz d3205523e9 crypto-js integrated into project 2015-05-16 17:03:27 +02:00
Marek Kotewicz e4f7dde868 fixed failing lint 2015-05-14 12:53:47 +02:00
Fabian Vogelsteller ff48da19c3 fixed callback error issue 2015-05-13 18:07:08 +02:00
Marek Kotewicz 2ae0afa90d critical bugfix 2015-05-13 12:23:07 +02:00
Fabian Vogelsteller 22ef4a1958 added estimateGas method 2015-05-12 15:33:27 +02:00
Fabian Vogelsteller 6fd17d99be merged develop 2015-05-12 10:53:58 +02:00
Marek Kotewicz b2ff2ffe37 Merge branch 'contract_overhaul' into batch
Conflicts:
	dist/web3-light.js.map
	dist/web3-light.min.js
	dist/web3.js.map
	dist/web3.min.js
2015-05-12 10:52:16 +02:00
Marek Kotewicz 99a3bdab59 removed redundant lines 2015-05-12 10:41:36 +02:00
Marek Kotewicz 7cafac9521 Merge branch 'develop' into contract_overhaul
Conflicts:
	dist/web3-light.js.map
	dist/web3-light.min.js
	dist/web3.js.map
	dist/web3.min.js
2015-05-12 10:39:42 +02:00
Marek Kotewicz 5f9272c280 asyncGet -> getAsync 2015-05-12 09:57:18 +02:00
Marek Kotewicz 80c0792e79 async getting properties, remove property setters 2015-05-12 08:26:27 +02:00
Marek Kotewicz 744bb9ee0d batch for requests with calls/transacts 2015-05-12 07:50:58 +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 1272780686 sendTransaction && call async 2015-05-11 18:48:26 +02:00
Marek Kotewicz 6afb1f9a56 Merge branch 'async-contract-calls' of https://github.com/niran/web3.js into contract_overhaul 2015-05-11 18:17:22 +02:00
Marek Kotewicz 611f640101 asynchronous contract creation, breaking changes 2015-05-11 18:02:15 +02:00
Marek Kotewicz 9812b01979 Merge branch 'blockFilterProposal' of https://github.com/ethereum/ethereum.js into develop
Conflicts:
	dist/web3-light.js.map
	dist/web3-light.min.js
	dist/web3.js.map
	dist/web3.min.js
2015-05-11 15:28:22 +02:00
Fabian Vogelsteller 6f466f64bb add miner functions 2015-05-11 12:45:04 +02:00
Marek Kotewicz 091c8e5428 Merge branch 'develop' into tcoulter
Conflicts:
	dist/web3-light.js.map
	dist/web3-light.min.js
	dist/web3.js.map
	dist/web3.min.js
2015-05-10 15:41:58 +02:00
Fabian Vogelsteller 3af8e27255 add newblockfilter Proposal 2015-05-07 12:45:36 +02:00
Fabian Vogelsteller 08f3aaea8c add optional nonce property to sendTransaction 2015-05-06 15:19:33 +02:00
Tim Coulter 2ca4240bb7 Add error handling to synchronous methods (obligatory warning against using synchronous calls at all). 2015-05-05 09:56:56 -07:00
Tim Coulter b064eaba20 Handle this error properly. For instance, without this, if we cannot connect to the RPC client, JSON won't be able to parse the result (there is none), in which case would cause a RuntimeException. 2015-04-30 14:17:34 -07:00
Niran Babalola e86552f01a Use async contract calls when a callback is passed 2015-04-30 04:15:48 -05:00
Marek Kotewicz 539ef7bdcf Merge pull request #186 from ethereum/eventFilterFix
fixed event from and toBlock
2015-04-29 09:04:40 +02:00
cubedro bd73cccd14 added eth_hashrate 2015-04-29 00:24:33 +03:00
Fabian Vogelsteller e9ec70881e fixed event from and toBlock 2015-04-28 17:01:37 +02:00
Marek Kotewicz 3b799d1284 fixed typos 2015-04-26 10:51:32 +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
Marek Kotewicz dbf3ff05a4 latest and pending as possible blockNumber arg everywhere 2015-04-22 18:16:40 +02:00
Marek Kotewicz d2068eb095 improved solidity event decoding 2015-04-22 16:44:09 +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
Fabian Vogelsteller a6ac6ed36a add new toTopic formatter in filters 2015-04-22 12:54:48 +02:00
Marek Kotewicz 3d3db61e2e tests for decoding event logs 2015-04-22 11:28:46 +02:00
Marek Kotewicz 9f7d6a9925 anonymous events implementation && tests 2015-04-22 10:35:48 +02:00
Marek Kotewicz b5eabd875f proper formatting event options 2015-04-22 10:12:39 +02:00
Marek Kotewicz 5f2eb3308f fixed filters encoding null 2015-04-22 09:39:28 +02:00
Marek Kotewicz 4482d5bf00 Merge branch 'develop' into events_refactor
Conflicts:
	dist/web3-light.js
	dist/web3-light.js.map
	dist/web3-light.min.js
	dist/web3.js
	dist/web3.js.map
	dist/web3.min.js
	lib/web3/filter.js
2015-04-22 09:28:56 +02:00
Marek Kotewicz 983e4b1082 removed signature.js 2015-04-22 08:41:30 +02:00
Fabian Vogelsteller c8f42262cc add possible 2d topic arrays fixes #175 2015-04-21 20:46:14 +02:00
Marek Kotewicz e9107367fd eth_filter complex topics, #175 2015-04-21 20:34:33 +02:00
Marek Kotewicz d411492649 call && sendTransaction 2015-04-21 20:06:44 +02:00
Marek Kotewicz f84a68cb73 changed the way functions are being called 2015-04-21 19:41:57 +02:00
Marek Kotewicz c8e576893e fixed log fields 2015-04-21 18:46:42 +02:00
Marek Kotewicz d38f5a215a Merge branch 'develop' into events_refactor
Conflicts:
	dist/web3-light.js.map
	dist/web3-light.min.js
	dist/web3.js.map
	dist/web3.min.js
2015-04-21 17:17:22 +02:00
Fabian Vogelsteller a5c1bcc6e4 changed default providor port to 8545 closes #160 2015-04-21 17:01:00 +02:00
Fabian Vogelsteller 9e8cb8d17f removed non existing eth.flush method 2015-04-21 16:02:10 +02:00
Marek Kotewicz eeb0bc014b Merge branch 'develop' into events_refactor
Conflicts:
	dist/web3-light.js.map
	dist/web3-light.min.js
	dist/web3.js.map
	dist/web3.min.js
2015-04-20 23:13:47 +02:00
Marek Kotewicz 501e3bc56e utils cleanup 2015-04-20 23:01:21 +02:00
Marek Kotewicz a88be00cef docs 2015-04-20 22:48:01 +02:00
Marek Kotewicz 9d8a51d439 event.js refactored 2015-04-20 22:06:49 +02:00
Marek Kotewicz ea6bda4cbb event refactor in progress 2015-04-20 21:59:35 +02:00
Marek Kotewicz 99a3696e51 events refactor, function.js 2015-04-20 18:16:15 +02:00
Fabian Vogelsteller 04cdb6ca02 format also tx nonce to number 2015-04-20 16:31:40 +02:00
Fabian Vogelsteller 385cc2c73b removed minGasPrice from blocks 2015-04-20 16:08:12 +02:00
Marek Kotewicz e80ff10f52 Merge branch 'master' into abi_refactor
Conflicts:
	dist/web3-light.js.map
	dist/web3-light.min.js
	dist/web3.js.map
	dist/web3.min.js
2015-04-20 15:12:54 +02:00
Marek Kotewicz 38641dfa9c fixed #154 2015-04-20 14:38:08 +02:00
Marek Kotewicz 1c8cd7d6b0 web3.eth.defaultAccount property, updated event_inc example, fixed #96 2015-04-20 14:16:29 +02:00
Marek Kotewicz a46b9ea016 Merge branch 'develop' into abi_refactor
Conflicts:
	dist/web3-light.js.map
	dist/web3-light.min.js
	dist/web3.js.map
	dist/web3.min.js
2015-04-20 11:51:10 +02:00
Marek Kotewicz 18cef7c3f5 removed *collapse in contrat, gulp 2015-04-20 10:08:41 +02:00
Péter Szilágyi b326202314 formatters/whisper: polish corner case handling code 2015-04-17 11:20:40 +03:00
Marek Kotewicz 0567ba1826 outputParser do not require 0x prefix before hash 2015-04-16 22:11:15 +02:00
Péter Szilágyi 6a058b690b Allow unset topics in posts too. 2015-04-16 18:13:47 +03:00
Péter Szilágyi af443f2acb Fix #162: allow empty topic list in messages 2015-04-16 18:05:08 +03:00
Marek Kotewicz 20fb2e3c70 Merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop
Conflicts:
	dist/web3-light.js.map
	dist/web3-light.min.js
	dist/web3.js.map
	dist/web3.min.js
2015-04-16 12:43:06 +02:00
Marek Kotewicz 96b44682f1 fixed #161, web3.ssh.post 2015-04-16 12:22:20 +02:00
Marek Kotewicz a320ef8bd9 fixed coverage, unified creating errors 2015-04-16 11:11:33 +02:00
Fabian Vogelsteller 364eab72b1 add callback for async error 2015-04-15 11:48:05 +02:00
Marek Kotewicz c62f817cc6 picked watch change3 2015-04-13 12:56:14 +02:00
Fabian Vogelsteller 56d13f72fb picked watch change2 2015-04-13 12:55:43 +02:00
Fabian Vogelsteller 2215e7c3af picked watch change 2015-04-13 12:53:26 +02:00
Marek Kotewicz 2ef5efc8f8 fixed #70, creating contract with nondefault constructor 2015-04-09 23:30:18 +02:00
Fabian Vogelsteller 7f75f3e64f fixed gasPrice output
Conflicts:
	dist/ethereum-light.js.map
	dist/ethereum-light.min.js
	dist/ethereum.js.map
	dist/ethereum.min.js
2015-04-09 20:15:38 +02:00
Fabian Vogelsteller ddec6298dc fixed getUncle parameter count
Conflicts:
	dist/ethereum-light.js.map
	dist/ethereum-light.min.js
	dist/ethereum.js.map
	dist/ethereum.min.js
2015-04-09 20:14:35 +02:00
Marek Kotewicz e2990ae77e web3.eth.getBlockTransactionCount accepts pending/latest/earliest params 2015-04-02 16:30:40 +02:00
Marek Kotewicz 5e150378c8 fixed formatting address 2015-04-02 13:08:58 +02:00
Marek Kotewicz 57d9f1f036 removed deprecated && unused lines from contract.js 2015-03-31 10:35:36 +02:00
Marek Kotewicz e53f316db9 tests for transaction && call 2015-03-31 09:34:06 +02:00
Marek Kotewicz 31220d578f removed deprecated code in contract.js 2015-03-30 23:48:03 +02:00
Marek Kotewicz b837667649 unified asBlock from filter.js with blockNumber formatter 2015-03-30 23:23:34 +02:00
Marek Kotewicz 608d211400 blockNumber can be earliest 2015-03-30 09:27:59 +02:00
Marek Kotewicz 2262276dae defaultBlockNumber accepts latest && pending 2015-03-28 15:52:40 +01:00
Marek Kotewicz e01bb23759 fixed #148 && fixed polling test 2015-03-28 15:15:44 +01:00
Marek Kotewicz 8c39acc571 merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop
Conflicts:
	dist/ethereum-light.js.map
	dist/ethereum-light.min.js
	dist/ethereum.js.map
	dist/ethereum.min.js
2015-03-28 14:42:16 +01:00
Marek Kotewicz 534e96da9e Merge branch 'master' of https://github.com/ethereum/ethereum.js
Conflicts:
	lib/web3/jsonrpc.js
2015-03-28 14:41:15 +01:00
Marek Kotewicz 2f45df835a fix && tests for #147 2015-03-28 14:38:56 +01:00
cubedro e750fd9bb4 fixed #147 2015-03-28 00:32:52 +02:00
Fabian Vogelsteller e0d83d065e removed unecessary callformatter 2015-03-27 14:53:47 +01: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
Marek Kotewicz 82b18c1aa0 refactored filter.js 2015-03-26 18:11:05 +01:00
Marek Kotewicz 2133d2717d filter changes in progress 2015-03-26 15:43:35 +01:00
Marek Kotewicz e928e14bc4 Merge branch 'develop' into sandbox
Conflicts:
	dist/ethereum-light.js
	dist/ethereum-light.js.map
	dist/ethereum-light.min.js
	dist/ethereum.js
	dist/ethereum.js.map
	dist/ethereum.min.js
	lib/web3.js
2015-03-26 11:19:12 +01:00
Marek Kotewicz 1a84015bab fixed events topics 2015-03-26 11:12:33 +01:00
Marek Kotewicz a63d604c57 removed unused function 2015-03-26 07:51:33 +01:00
Marek Kotewicz 04f0aa5d4f fixed filer.js complexity 2015-03-25 21:46:45 +01:00
Marek Kotewicz 722a5bcd69 fixed eth.getTransaction.js location 2015-03-25 15:02:07 +01:00
Marek Kotewicz c065f174ee Merge branch 'develop' into sandbox
Conflicts:
	dist/ethereum-light.js
	dist/ethereum-light.js.map
	dist/ethereum-light.min.js
	dist/ethereum.js
	dist/ethereum.js.map
	dist/ethereum.min.js
	lib/web3/filter.js
2015-03-25 14:47:55 +01:00
Marek Kotewicz b78dffaf8b small fix in filter tests 2015-03-25 14:43:41 +01:00
Marek Kotewicz 4f5c5fb2fb first try to test polling 2015-03-25 13:17:21 +01:00
Marek Kotewicz 9f073d9091 applied fixes from cpp-ethereum 2015-03-25 08:08:14 +01:00
Fabian Vogelsteller c01abfc4bd add db tests 2015-03-24 12:21:52 +01:00
Fabian Vogelsteller afd7e7ba32 add shh tests 2015-03-24 11:44:33 +01:00
Fabian Vogelsteller e7304b546e add storage tests 2015-03-24 11:17:06 +01:00
Fabian Vogelsteller f32b8ad5a8 add runTest module to new tests 2015-03-24 09:48:07 +01:00
Fabian Vogelsteller c52250e203 add block uncle and block counts 2015-03-24 09:42:09 +01:00
Marek Kotewicz a4e3645190 Merge branch 'develop' into sandbox
Conflicts:
	dist/ethereum.js.map
	dist/ethereum.min.js
2015-03-23 23:03:50 +01:00
Fabian Vogelsteller b3b95c5f98 add getBlock test 2015-03-23 18:50:53 +01:00
Fabian Vogelsteller abe064fb34 add Property and passing through of RPC erro texts 2015-03-23 18:26:48 +01:00
Fabian Vogelsteller b915ceb43f add defaultBlock back 2015-03-23 17:11:19 +01:00
Fabian Vogelsteller a34321d1e4 removed double FakeHTTPProvidor 2015-03-23 16:50:13 +01:00
Fabian Vogelsteller 7fb440579d add missing formatters, fixed tests 2015-03-23 16:43:49 +01:00
Marek Kotewicz b16982b5de fix for polling 2015-03-23 15:41:02 +01:00
Marek Kotewicz b6b809c3d2 setting up formatters for eth 2015-03-23 15:08:09 +01:00
Marek Kotewicz 99ea9cdc1c fixed for defaultBlock formatter 2015-03-23 14:23:45 +01:00
Marek Kotewicz 4d1cf0bd9f inputFormatter is an aray of functions 2015-03-23 13:42:36 +01:00
Fabian Vogelsteller 6b07920aa5 add uninstall filter back
Conflicts:
	dist/ethereum.js.map
	dist/ethereum.min.js
2015-03-23 12:57:32 +01:00
Marek Kotewicz a4cf661f24 tests for method.js 2015-03-22 19:48:25 +01:00
Marek Kotewicz 7519faba9c method.js 2015-03-22 18:12:52 +01:00