solidity/helpers/test.method.js

80 lines
2.8 KiB
JavaScript
Raw Normal View History

Squashed 'libjsqrc/ethereumjs/' changes from eceeda7..73b9ed2 73b9ed2 rename to web3 c80ede5 fixed spelling in package description 67f0a75 version 0.2.4 e2990ae web3.eth.getBlockTransactionCount accepts pending/latest/earliest params 94429ff version 0.2.3 f9a5206 more tests for web3.eth.getBalance 31e046d Merge branch 'master' into develop 5e15037 fixed formatting address b7a03cd version 0.2.2 2536888 let travis check if npm package is not broken 92aba81 merge master, gulp e6a76ff Merge branch 'master' into develop 57d9f1f removed deprecated && unused lines from contract.js 5885bfe test for #128 e53f316 tests for transaction && call 31220d5 removed deprecated code in contract.js b837667 unified asBlock from filter.js with blockNumber formatter 202a8cd #140 badge 608d211 blockNumber can be earliest f0216fb fixed #149 e213551 tests for #144 21791f2 version 0.2.1 2262276 defaultBlockNumber accepts latest && pending e01bb23 fixed #148 && fixed polling test 8c39acc merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop 534e96d Merge branch 'master' of https://github.com/ethereum/ethereum.js 2f45df8 fix && tests for #147 e750fd9 fixed #147 e0d83d0 removed unecessary callformatter 9fc5575 version 0.2.0 2747f4c Merge pull request #137 from ethereum/sandbox ed2b62d add whisper, network and ethereum version aa9fc92 add whisper, network and ethereum version f4e5a99 default log formatter, improved contract test e9b5da4 updated package.js name to web3 8caf64a update package.json 07bcdb4 improved tests for contract.js, fixed few minor issues 1986c7f cleaned up web3.js 82b18c1 refactored filter.js 2133d27 filter changes in progress 0dbd68c Merge branch 'develop' into sandbox 17164be default toBlock && fromBlock is not null e928e14 Merge branch 'develop' into sandbox 1a84015 fixed events topics 0beb01f test for creating signatures a63d604 removed unused function 9d5b602 test names a1ec149 renamed few more tests cbf8ea1 test naming convention 04f0aa5 fixed filer.js complexity 722a5bc fixed eth.getTransaction.js location c065f17 Merge branch 'develop' into sandbox b78dffa small fix in filter tests 91baec2 polling tests 4f5c5fb first try to test polling f2c8a14 removed duplicate code 9f073d9 applied fixes from cpp-ethereum c01abfc add db tests b247c49 add sha3 test afd7e7b add shh tests e7304b5 add storage tests f32b8ad add runTest module to new tests c52250e add block uncle and block counts c1f5ab2 test.method.js in helpers 7df9099 moved test.utils to helpers a4e3645 Merge branch 'develop' into sandbox b3b95c5 add getBlock test abe064f add Property and passing through of RPC erro texts 0b84376 fix for otto 36fe79f another fix for otto be04c47 fixes for go otto env c7e5d0a light browser bundle 4b37137 light browser bundle without bignumber.js f13a727 add accounts test b915ceb add defaultBlock back b074a5e add check for providor async function ae76428 Merge branch 'master' into develop a34321d removed double FakeHTTPProvidor 7fb4405 add missing formatters, fixed tests 7511e4c fake providers moved to helpers directory b16982b fix for polling 126b40c fixed registering coverage on providers 2924e00 fix for toHex transforming boolean b6b809c setting up formatters for eth 99ea9cd fixed for defaultBlock formatter 33a3fc7 generic integration tests 4d1cf0b inputFormatter is an aray of functions 6b07920 add uninstall filter back 89b1ca6 first integration tests a4cf661 tests for method.js 7519fab method.js 9423b72 Merge pull request #139 from gitter-badger/gitter-badge 24a03e0 Added Gitter badge 0898669 changes in input formatters 748cda2 requestmanager tests 476023e requestmanager refactored e3faebe jsonrpc is an object cbab0ae common changes in requestmanager d408fb0 comments in requestmanager 5c1e85f requestmanager refactor in progress f604670 tests for qtsyncprovider.js 288caf3 node-sandbox, tests for httpprovider, request manager refactor in progress 8c36a10 rename getData to getCode de5de9e Merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop 5cdea25 Merge branch 'getCode' of https://github.com/jorisbontje/ethereum.js into getCode 3550f91 Merge pull request #122 from frozeman/apiOverhaul fb99d10 fixed meteor package 99795e3 expose bignumber.js db7092b Merge pull request #117 from ethereum/bundle_name 5bee7be changed bundle name web3 -> ethereum.js 7ca3b40 gulp 517eff9 Merge pull request #120 from dchambers/make-browserify-compatibile b032429 rename getData to getCode 768d4bf Make changes to 'gulpfile.js' reccomended by @debris. 0267e85 Use browserify's 'browser' field instead of 'envify' & 'unreachable-branch-transform to', plus always include 'bignumber.js' since it is needed in the browser. cb7c209 removed unused property 12aed56 fixed #111 git-subtree-dir: libjsqrc/ethereumjs git-subtree-split: 73b9ed29c09531817df311c2d050dec6667197e7
2015-04-07 02:50:10 +00:00
var chai = require('chai');
var assert = chai.assert;
var web3 = require('../../index');
var FakeHttpProvider = require('./FakeHttpProvider');
Squashed 'libjsqrc/ethereumjs/' changes from 4def095..f8a43ed f8a43ed Merge pull request #180 from ethereum/develop 4dc6e23 realease version 0.3.1 ee0ec4b Merge branch 'master' of github.com:ethereum/web3.js into develop 08dc2b2 add missing inputBlockNumberFormatter 99e89a1 Merge pull request #179 from ethereum/latest_pending dfbad66 add pending and latest to getBlockTransactionCount and getUncle dbf3ff0 latest and pending as possible blockNumber arg everywhere 3897bc2 version 0.3.0 d2068eb improved solidity event decoding 11f23ce Merge pull request #178 from ethereum/stringTopics 50f4a2b add new test filter 40c5c9e merged develop c9cd31b add test for the new toTopic filter e21ee7a Merge pull request #174 from ethereum/events_refactor 960e9c9 test for explicit sendTransaction && call a6ac6ed add new toTopic formatter in filters 3d3db61 tests for decoding event logs 7c16dbf one additional test for event encode 9f7d6a9 anonymous events implementation && tests b5eabd8 proper formatting event options 93b323f removed unused function findIndex from utils 9158ac7 removed unused function 1ac1ef9 cleaned event.encode test 5f2eb33 fixed filters encoding null 4482d5b Merge branch 'develop' into events_refactor 76ced9a basic tests for event encoding f767a9a removed unused formatOutputHash, renamed formatXXXString to formatXXXBytes 888a970 coder.encodeParam, coder.decodeParam tests template 983e4b1 removed signature.js f37057e Merge branch 'develop' of github.com:ethereum/web3.js into develop c8f4226 add possible 2d topic arrays fixes #175 e910736 eth_filter complex topics, #175 836529a Merge branch 'develop' into events_refactor 42e759e 0.10 on travis is painfully slow, lets remove it d411492 call && sendTransaction f84a68c changed the way functions are being called c8e5768 fixed log fields d38f5a2 Merge branch 'develop' into events_refactor a5c1bcc changed default providor port to 8545 closes #160 9e8cb8d removed non existing eth.flush method eeb0bc0 Merge branch 'develop' into events_refactor cdf02ec Merge pull request #173 from ethereum/failing_develop 501e3bc utils cleanup a88be00 docs 9d8a51d event.js refactored ea6bda4 event refactor in progress a827076 fixed tx/block return value tests 99a3696 events refactor, function.js 04cdb6c format also tx nonce to number 385cc2c removed minGasPrice from blocks c06d75b Merge pull request #170 from ethereum/abi_refactor e80ff10 Merge branch 'master' into abi_refactor 38641df fixed #154 1c8cd7d web3.eth.defaultAccount property, updated event_inc example, fixed #96 4aeba40 fixed event_inc example 5362e2a Merge branch 'develop' into abi_refactor 2a11852 Merge branch 'master' into develop ea413a8 updated gitter badge a46b9ea Merge branch 'develop' into abi_refactor 779a608 documentation 941535f SolidityParam moved to its own file && documented 18cef7c removed *collapse in contrat, gulp 677bb68 add bundle version 135b044 Merge pull request #164 from karalabe/empty-topics-fix b326202 formatters/whisper: polish corner case handling code 0567ba1 outputParser do not require 0x prefix before hash b5c6aa6 little cleanup && renaming dccfca1 solidity abi refactor in progress 6a058b6 Allow unset topics in posts too. af443f2 Fix #162: allow empty topic list in messages d643d06 solidity abi refactor in progress 271b00f bumped version f4cf699 rebuild 4eeaf19 rebuild 20fb2e3 Merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop ac69640 Merge pull request #158 from ethereum/watchImprovement2 96b4468 fixed #161, web3.ssh.post a320ef8 fixed coverage, unified creating errors 364eab7 add callback for async error c62f817 picked watch change3 56d13f7 picked watch change2 2215e7c picked watch change dc0f231 merged meteor package fixes c89ad86 renamed meteor package a0709f3 fixed meteor package 1a8032c version 0.2.7 dfb8dea gulp b1ada8d gulp a25a9e1 Merge branch 'master' of https://github.com/ethereum/ethereum.js 05343ea use version of bignumber.js without lookaheads 2651fd8 Update README.md git-subtree-dir: libjsqrc/ethereumjs git-subtree-split: f8a43eddfb450d0e0ba1669a6916babe0ea43642
2015-04-23 10:32:05 +00:00
var clone = function (object) { return JSON.parse(JSON.stringify(object)); };
Squashed 'libjsqrc/ethereumjs/' changes from eceeda7..73b9ed2 73b9ed2 rename to web3 c80ede5 fixed spelling in package description 67f0a75 version 0.2.4 e2990ae web3.eth.getBlockTransactionCount accepts pending/latest/earliest params 94429ff version 0.2.3 f9a5206 more tests for web3.eth.getBalance 31e046d Merge branch 'master' into develop 5e15037 fixed formatting address b7a03cd version 0.2.2 2536888 let travis check if npm package is not broken 92aba81 merge master, gulp e6a76ff Merge branch 'master' into develop 57d9f1f removed deprecated && unused lines from contract.js 5885bfe test for #128 e53f316 tests for transaction && call 31220d5 removed deprecated code in contract.js b837667 unified asBlock from filter.js with blockNumber formatter 202a8cd #140 badge 608d211 blockNumber can be earliest f0216fb fixed #149 e213551 tests for #144 21791f2 version 0.2.1 2262276 defaultBlockNumber accepts latest && pending e01bb23 fixed #148 && fixed polling test 8c39acc merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop 534e96d Merge branch 'master' of https://github.com/ethereum/ethereum.js 2f45df8 fix && tests for #147 e750fd9 fixed #147 e0d83d0 removed unecessary callformatter 9fc5575 version 0.2.0 2747f4c Merge pull request #137 from ethereum/sandbox ed2b62d add whisper, network and ethereum version aa9fc92 add whisper, network and ethereum version f4e5a99 default log formatter, improved contract test e9b5da4 updated package.js name to web3 8caf64a update package.json 07bcdb4 improved tests for contract.js, fixed few minor issues 1986c7f cleaned up web3.js 82b18c1 refactored filter.js 2133d27 filter changes in progress 0dbd68c Merge branch 'develop' into sandbox 17164be default toBlock && fromBlock is not null e928e14 Merge branch 'develop' into sandbox 1a84015 fixed events topics 0beb01f test for creating signatures a63d604 removed unused function 9d5b602 test names a1ec149 renamed few more tests cbf8ea1 test naming convention 04f0aa5 fixed filer.js complexity 722a5bc fixed eth.getTransaction.js location c065f17 Merge branch 'develop' into sandbox b78dffa small fix in filter tests 91baec2 polling tests 4f5c5fb first try to test polling f2c8a14 removed duplicate code 9f073d9 applied fixes from cpp-ethereum c01abfc add db tests b247c49 add sha3 test afd7e7b add shh tests e7304b5 add storage tests f32b8ad add runTest module to new tests c52250e add block uncle and block counts c1f5ab2 test.method.js in helpers 7df9099 moved test.utils to helpers a4e3645 Merge branch 'develop' into sandbox b3b95c5 add getBlock test abe064f add Property and passing through of RPC erro texts 0b84376 fix for otto 36fe79f another fix for otto be04c47 fixes for go otto env c7e5d0a light browser bundle 4b37137 light browser bundle without bignumber.js f13a727 add accounts test b915ceb add defaultBlock back b074a5e add check for providor async function ae76428 Merge branch 'master' into develop a34321d removed double FakeHTTPProvidor 7fb4405 add missing formatters, fixed tests 7511e4c fake providers moved to helpers directory b16982b fix for polling 126b40c fixed registering coverage on providers 2924e00 fix for toHex transforming boolean b6b809c setting up formatters for eth 99ea9cd fixed for defaultBlock formatter 33a3fc7 generic integration tests 4d1cf0b inputFormatter is an aray of functions 6b07920 add uninstall filter back 89b1ca6 first integration tests a4cf661 tests for method.js 7519fab method.js 9423b72 Merge pull request #139 from gitter-badger/gitter-badge 24a03e0 Added Gitter badge 0898669 changes in input formatters 748cda2 requestmanager tests 476023e requestmanager refactored e3faebe jsonrpc is an object cbab0ae common changes in requestmanager d408fb0 comments in requestmanager 5c1e85f requestmanager refactor in progress f604670 tests for qtsyncprovider.js 288caf3 node-sandbox, tests for httpprovider, request manager refactor in progress 8c36a10 rename getData to getCode de5de9e Merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop 5cdea25 Merge branch 'getCode' of https://github.com/jorisbontje/ethereum.js into getCode 3550f91 Merge pull request #122 from frozeman/apiOverhaul fb99d10 fixed meteor package 99795e3 expose bignumber.js db7092b Merge pull request #117 from ethereum/bundle_name 5bee7be changed bundle name web3 -> ethereum.js 7ca3b40 gulp 517eff9 Merge pull request #120 from dchambers/make-browserify-compatibile b032429 rename getData to getCode 768d4bf Make changes to 'gulpfile.js' reccomended by @debris. 0267e85 Use browserify's 'browser' field instead of 'envify' & 'unreachable-branch-transform to', plus always include 'bignumber.js' since it is needed in the browser. cb7c209 removed unused property 12aed56 fixed #111 git-subtree-dir: libjsqrc/ethereumjs git-subtree-split: 73b9ed29c09531817df311c2d050dec6667197e7
2015-04-07 02:50:10 +00:00
var runTests = function (obj, method, tests) {
var testName = obj ? 'web3.' + obj : 'web';
describe(testName, function () {
describe(method, function () {
tests.forEach(function (test, index) {
it('sync test: ' + index, function () {
// given
var provider = new FakeHttpProvider();
web3.setProvider(provider);
provider.injectResult(test.result);
provider.injectValidation(function (payload) {
assert.equal(payload.jsonrpc, '2.0');
assert.equal(payload.method, test.call);
assert.deepEqual(payload.params, test.formattedArgs);
});
Squashed 'libjsqrc/ethereumjs/' changes from 4def095..f8a43ed f8a43ed Merge pull request #180 from ethereum/develop 4dc6e23 realease version 0.3.1 ee0ec4b Merge branch 'master' of github.com:ethereum/web3.js into develop 08dc2b2 add missing inputBlockNumberFormatter 99e89a1 Merge pull request #179 from ethereum/latest_pending dfbad66 add pending and latest to getBlockTransactionCount and getUncle dbf3ff0 latest and pending as possible blockNumber arg everywhere 3897bc2 version 0.3.0 d2068eb improved solidity event decoding 11f23ce Merge pull request #178 from ethereum/stringTopics 50f4a2b add new test filter 40c5c9e merged develop c9cd31b add test for the new toTopic filter e21ee7a Merge pull request #174 from ethereum/events_refactor 960e9c9 test for explicit sendTransaction && call a6ac6ed add new toTopic formatter in filters 3d3db61 tests for decoding event logs 7c16dbf one additional test for event encode 9f7d6a9 anonymous events implementation && tests b5eabd8 proper formatting event options 93b323f removed unused function findIndex from utils 9158ac7 removed unused function 1ac1ef9 cleaned event.encode test 5f2eb33 fixed filters encoding null 4482d5b Merge branch 'develop' into events_refactor 76ced9a basic tests for event encoding f767a9a removed unused formatOutputHash, renamed formatXXXString to formatXXXBytes 888a970 coder.encodeParam, coder.decodeParam tests template 983e4b1 removed signature.js f37057e Merge branch 'develop' of github.com:ethereum/web3.js into develop c8f4226 add possible 2d topic arrays fixes #175 e910736 eth_filter complex topics, #175 836529a Merge branch 'develop' into events_refactor 42e759e 0.10 on travis is painfully slow, lets remove it d411492 call && sendTransaction f84a68c changed the way functions are being called c8e5768 fixed log fields d38f5a2 Merge branch 'develop' into events_refactor a5c1bcc changed default providor port to 8545 closes #160 9e8cb8d removed non existing eth.flush method eeb0bc0 Merge branch 'develop' into events_refactor cdf02ec Merge pull request #173 from ethereum/failing_develop 501e3bc utils cleanup a88be00 docs 9d8a51d event.js refactored ea6bda4 event refactor in progress a827076 fixed tx/block return value tests 99a3696 events refactor, function.js 04cdb6c format also tx nonce to number 385cc2c removed minGasPrice from blocks c06d75b Merge pull request #170 from ethereum/abi_refactor e80ff10 Merge branch 'master' into abi_refactor 38641df fixed #154 1c8cd7d web3.eth.defaultAccount property, updated event_inc example, fixed #96 4aeba40 fixed event_inc example 5362e2a Merge branch 'develop' into abi_refactor 2a11852 Merge branch 'master' into develop ea413a8 updated gitter badge a46b9ea Merge branch 'develop' into abi_refactor 779a608 documentation 941535f SolidityParam moved to its own file && documented 18cef7c removed *collapse in contrat, gulp 677bb68 add bundle version 135b044 Merge pull request #164 from karalabe/empty-topics-fix b326202 formatters/whisper: polish corner case handling code 0567ba1 outputParser do not require 0x prefix before hash b5c6aa6 little cleanup && renaming dccfca1 solidity abi refactor in progress 6a058b6 Allow unset topics in posts too. af443f2 Fix #162: allow empty topic list in messages d643d06 solidity abi refactor in progress 271b00f bumped version f4cf699 rebuild 4eeaf19 rebuild 20fb2e3 Merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop ac69640 Merge pull request #158 from ethereum/watchImprovement2 96b4468 fixed #161, web3.ssh.post a320ef8 fixed coverage, unified creating errors 364eab7 add callback for async error c62f817 picked watch change3 56d13f7 picked watch change2 2215e7c picked watch change dc0f231 merged meteor package fixes c89ad86 renamed meteor package a0709f3 fixed meteor package 1a8032c version 0.2.7 dfb8dea gulp b1ada8d gulp a25a9e1 Merge branch 'master' of https://github.com/ethereum/ethereum.js 05343ea use version of bignumber.js without lookaheads 2651fd8 Update README.md git-subtree-dir: libjsqrc/ethereumjs git-subtree-split: f8a43eddfb450d0e0ba1669a6916babe0ea43642
2015-04-23 10:32:05 +00:00
var args = clone(test.args)
// when
if (obj) {
var result = web3[obj][method].apply(null, args);
} else {
var result = web3[method].apply(null, args);
}
Squashed 'libjsqrc/ethereumjs/' changes from eceeda7..73b9ed2 73b9ed2 rename to web3 c80ede5 fixed spelling in package description 67f0a75 version 0.2.4 e2990ae web3.eth.getBlockTransactionCount accepts pending/latest/earliest params 94429ff version 0.2.3 f9a5206 more tests for web3.eth.getBalance 31e046d Merge branch 'master' into develop 5e15037 fixed formatting address b7a03cd version 0.2.2 2536888 let travis check if npm package is not broken 92aba81 merge master, gulp e6a76ff Merge branch 'master' into develop 57d9f1f removed deprecated && unused lines from contract.js 5885bfe test for #128 e53f316 tests for transaction && call 31220d5 removed deprecated code in contract.js b837667 unified asBlock from filter.js with blockNumber formatter 202a8cd #140 badge 608d211 blockNumber can be earliest f0216fb fixed #149 e213551 tests for #144 21791f2 version 0.2.1 2262276 defaultBlockNumber accepts latest && pending e01bb23 fixed #148 && fixed polling test 8c39acc merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop 534e96d Merge branch 'master' of https://github.com/ethereum/ethereum.js 2f45df8 fix && tests for #147 e750fd9 fixed #147 e0d83d0 removed unecessary callformatter 9fc5575 version 0.2.0 2747f4c Merge pull request #137 from ethereum/sandbox ed2b62d add whisper, network and ethereum version aa9fc92 add whisper, network and ethereum version f4e5a99 default log formatter, improved contract test e9b5da4 updated package.js name to web3 8caf64a update package.json 07bcdb4 improved tests for contract.js, fixed few minor issues 1986c7f cleaned up web3.js 82b18c1 refactored filter.js 2133d27 filter changes in progress 0dbd68c Merge branch 'develop' into sandbox 17164be default toBlock && fromBlock is not null e928e14 Merge branch 'develop' into sandbox 1a84015 fixed events topics 0beb01f test for creating signatures a63d604 removed unused function 9d5b602 test names a1ec149 renamed few more tests cbf8ea1 test naming convention 04f0aa5 fixed filer.js complexity 722a5bc fixed eth.getTransaction.js location c065f17 Merge branch 'develop' into sandbox b78dffa small fix in filter tests 91baec2 polling tests 4f5c5fb first try to test polling f2c8a14 removed duplicate code 9f073d9 applied fixes from cpp-ethereum c01abfc add db tests b247c49 add sha3 test afd7e7b add shh tests e7304b5 add storage tests f32b8ad add runTest module to new tests c52250e add block uncle and block counts c1f5ab2 test.method.js in helpers 7df9099 moved test.utils to helpers a4e3645 Merge branch 'develop' into sandbox b3b95c5 add getBlock test abe064f add Property and passing through of RPC erro texts 0b84376 fix for otto 36fe79f another fix for otto be04c47 fixes for go otto env c7e5d0a light browser bundle 4b37137 light browser bundle without bignumber.js f13a727 add accounts test b915ceb add defaultBlock back b074a5e add check for providor async function ae76428 Merge branch 'master' into develop a34321d removed double FakeHTTPProvidor 7fb4405 add missing formatters, fixed tests 7511e4c fake providers moved to helpers directory b16982b fix for polling 126b40c fixed registering coverage on providers 2924e00 fix for toHex transforming boolean b6b809c setting up formatters for eth 99ea9cd fixed for defaultBlock formatter 33a3fc7 generic integration tests 4d1cf0b inputFormatter is an aray of functions 6b07920 add uninstall filter back 89b1ca6 first integration tests a4cf661 tests for method.js 7519fab method.js 9423b72 Merge pull request #139 from gitter-badger/gitter-badge 24a03e0 Added Gitter badge 0898669 changes in input formatters 748cda2 requestmanager tests 476023e requestmanager refactored e3faebe jsonrpc is an object cbab0ae common changes in requestmanager d408fb0 comments in requestmanager 5c1e85f requestmanager refactor in progress f604670 tests for qtsyncprovider.js 288caf3 node-sandbox, tests for httpprovider, request manager refactor in progress 8c36a10 rename getData to getCode de5de9e Merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop 5cdea25 Merge branch 'getCode' of https://github.com/jorisbontje/ethereum.js into getCode 3550f91 Merge pull request #122 from frozeman/apiOverhaul fb99d10 fixed meteor package 99795e3 expose bignumber.js db7092b Merge pull request #117 from ethereum/bundle_name 5bee7be changed bundle name web3 -> ethereum.js 7ca3b40 gulp 517eff9 Merge pull request #120 from dchambers/make-browserify-compatibile b032429 rename getData to getCode 768d4bf Make changes to 'gulpfile.js' reccomended by @debris. 0267e85 Use browserify's 'browser' field instead of 'envify' & 'unreachable-branch-transform to', plus always include 'bignumber.js' since it is needed in the browser. cb7c209 removed unused property 12aed56 fixed #111 git-subtree-dir: libjsqrc/ethereumjs git-subtree-split: 73b9ed29c09531817df311c2d050dec6667197e7
2015-04-07 02:50:10 +00:00
// when
Squashed 'libjsqrc/ethereumjs/' changes from 4def095..f8a43ed f8a43ed Merge pull request #180 from ethereum/develop 4dc6e23 realease version 0.3.1 ee0ec4b Merge branch 'master' of github.com:ethereum/web3.js into develop 08dc2b2 add missing inputBlockNumberFormatter 99e89a1 Merge pull request #179 from ethereum/latest_pending dfbad66 add pending and latest to getBlockTransactionCount and getUncle dbf3ff0 latest and pending as possible blockNumber arg everywhere 3897bc2 version 0.3.0 d2068eb improved solidity event decoding 11f23ce Merge pull request #178 from ethereum/stringTopics 50f4a2b add new test filter 40c5c9e merged develop c9cd31b add test for the new toTopic filter e21ee7a Merge pull request #174 from ethereum/events_refactor 960e9c9 test for explicit sendTransaction && call a6ac6ed add new toTopic formatter in filters 3d3db61 tests for decoding event logs 7c16dbf one additional test for event encode 9f7d6a9 anonymous events implementation && tests b5eabd8 proper formatting event options 93b323f removed unused function findIndex from utils 9158ac7 removed unused function 1ac1ef9 cleaned event.encode test 5f2eb33 fixed filters encoding null 4482d5b Merge branch 'develop' into events_refactor 76ced9a basic tests for event encoding f767a9a removed unused formatOutputHash, renamed formatXXXString to formatXXXBytes 888a970 coder.encodeParam, coder.decodeParam tests template 983e4b1 removed signature.js f37057e Merge branch 'develop' of github.com:ethereum/web3.js into develop c8f4226 add possible 2d topic arrays fixes #175 e910736 eth_filter complex topics, #175 836529a Merge branch 'develop' into events_refactor 42e759e 0.10 on travis is painfully slow, lets remove it d411492 call && sendTransaction f84a68c changed the way functions are being called c8e5768 fixed log fields d38f5a2 Merge branch 'develop' into events_refactor a5c1bcc changed default providor port to 8545 closes #160 9e8cb8d removed non existing eth.flush method eeb0bc0 Merge branch 'develop' into events_refactor cdf02ec Merge pull request #173 from ethereum/failing_develop 501e3bc utils cleanup a88be00 docs 9d8a51d event.js refactored ea6bda4 event refactor in progress a827076 fixed tx/block return value tests 99a3696 events refactor, function.js 04cdb6c format also tx nonce to number 385cc2c removed minGasPrice from blocks c06d75b Merge pull request #170 from ethereum/abi_refactor e80ff10 Merge branch 'master' into abi_refactor 38641df fixed #154 1c8cd7d web3.eth.defaultAccount property, updated event_inc example, fixed #96 4aeba40 fixed event_inc example 5362e2a Merge branch 'develop' into abi_refactor 2a11852 Merge branch 'master' into develop ea413a8 updated gitter badge a46b9ea Merge branch 'develop' into abi_refactor 779a608 documentation 941535f SolidityParam moved to its own file && documented 18cef7c removed *collapse in contrat, gulp 677bb68 add bundle version 135b044 Merge pull request #164 from karalabe/empty-topics-fix b326202 formatters/whisper: polish corner case handling code 0567ba1 outputParser do not require 0x prefix before hash b5c6aa6 little cleanup && renaming dccfca1 solidity abi refactor in progress 6a058b6 Allow unset topics in posts too. af443f2 Fix #162: allow empty topic list in messages d643d06 solidity abi refactor in progress 271b00f bumped version f4cf699 rebuild 4eeaf19 rebuild 20fb2e3 Merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop ac69640 Merge pull request #158 from ethereum/watchImprovement2 96b4468 fixed #161, web3.ssh.post a320ef8 fixed coverage, unified creating errors 364eab7 add callback for async error c62f817 picked watch change3 56d13f7 picked watch change2 2215e7c picked watch change dc0f231 merged meteor package fixes c89ad86 renamed meteor package a0709f3 fixed meteor package 1a8032c version 0.2.7 dfb8dea gulp b1ada8d gulp a25a9e1 Merge branch 'master' of https://github.com/ethereum/ethereum.js 05343ea use version of bignumber.js without lookaheads 2651fd8 Update README.md git-subtree-dir: libjsqrc/ethereumjs git-subtree-split: f8a43eddfb450d0e0ba1669a6916babe0ea43642
2015-04-23 10:32:05 +00:00
//var result = (obj)
//? web3[obj][method].apply(null, test.args.slice(0))
//: web3[method].apply(null, test.args.slice(0));
Squashed 'libjsqrc/ethereumjs/' changes from eceeda7..73b9ed2 73b9ed2 rename to web3 c80ede5 fixed spelling in package description 67f0a75 version 0.2.4 e2990ae web3.eth.getBlockTransactionCount accepts pending/latest/earliest params 94429ff version 0.2.3 f9a5206 more tests for web3.eth.getBalance 31e046d Merge branch 'master' into develop 5e15037 fixed formatting address b7a03cd version 0.2.2 2536888 let travis check if npm package is not broken 92aba81 merge master, gulp e6a76ff Merge branch 'master' into develop 57d9f1f removed deprecated && unused lines from contract.js 5885bfe test for #128 e53f316 tests for transaction && call 31220d5 removed deprecated code in contract.js b837667 unified asBlock from filter.js with blockNumber formatter 202a8cd #140 badge 608d211 blockNumber can be earliest f0216fb fixed #149 e213551 tests for #144 21791f2 version 0.2.1 2262276 defaultBlockNumber accepts latest && pending e01bb23 fixed #148 && fixed polling test 8c39acc merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop 534e96d Merge branch 'master' of https://github.com/ethereum/ethereum.js 2f45df8 fix && tests for #147 e750fd9 fixed #147 e0d83d0 removed unecessary callformatter 9fc5575 version 0.2.0 2747f4c Merge pull request #137 from ethereum/sandbox ed2b62d add whisper, network and ethereum version aa9fc92 add whisper, network and ethereum version f4e5a99 default log formatter, improved contract test e9b5da4 updated package.js name to web3 8caf64a update package.json 07bcdb4 improved tests for contract.js, fixed few minor issues 1986c7f cleaned up web3.js 82b18c1 refactored filter.js 2133d27 filter changes in progress 0dbd68c Merge branch 'develop' into sandbox 17164be default toBlock && fromBlock is not null e928e14 Merge branch 'develop' into sandbox 1a84015 fixed events topics 0beb01f test for creating signatures a63d604 removed unused function 9d5b602 test names a1ec149 renamed few more tests cbf8ea1 test naming convention 04f0aa5 fixed filer.js complexity 722a5bc fixed eth.getTransaction.js location c065f17 Merge branch 'develop' into sandbox b78dffa small fix in filter tests 91baec2 polling tests 4f5c5fb first try to test polling f2c8a14 removed duplicate code 9f073d9 applied fixes from cpp-ethereum c01abfc add db tests b247c49 add sha3 test afd7e7b add shh tests e7304b5 add storage tests f32b8ad add runTest module to new tests c52250e add block uncle and block counts c1f5ab2 test.method.js in helpers 7df9099 moved test.utils to helpers a4e3645 Merge branch 'develop' into sandbox b3b95c5 add getBlock test abe064f add Property and passing through of RPC erro texts 0b84376 fix for otto 36fe79f another fix for otto be04c47 fixes for go otto env c7e5d0a light browser bundle 4b37137 light browser bundle without bignumber.js f13a727 add accounts test b915ceb add defaultBlock back b074a5e add check for providor async function ae76428 Merge branch 'master' into develop a34321d removed double FakeHTTPProvidor 7fb4405 add missing formatters, fixed tests 7511e4c fake providers moved to helpers directory b16982b fix for polling 126b40c fixed registering coverage on providers 2924e00 fix for toHex transforming boolean b6b809c setting up formatters for eth 99ea9cd fixed for defaultBlock formatter 33a3fc7 generic integration tests 4d1cf0b inputFormatter is an aray of functions 6b07920 add uninstall filter back 89b1ca6 first integration tests a4cf661 tests for method.js 7519fab method.js 9423b72 Merge pull request #139 from gitter-badger/gitter-badge 24a03e0 Added Gitter badge 0898669 changes in input formatters 748cda2 requestmanager tests 476023e requestmanager refactored e3faebe jsonrpc is an object cbab0ae common changes in requestmanager d408fb0 comments in requestmanager 5c1e85f requestmanager refactor in progress f604670 tests for qtsyncprovider.js 288caf3 node-sandbox, tests for httpprovider, request manager refactor in progress 8c36a10 rename getData to getCode de5de9e Merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop 5cdea25 Merge branch 'getCode' of https://github.com/jorisbontje/ethereum.js into getCode 3550f91 Merge pull request #122 from frozeman/apiOverhaul fb99d10 fixed meteor package 99795e3 expose bignumber.js db7092b Merge pull request #117 from ethereum/bundle_name 5bee7be changed bundle name web3 -> ethereum.js 7ca3b40 gulp 517eff9 Merge pull request #120 from dchambers/make-browserify-compatibile b032429 rename getData to getCode 768d4bf Make changes to 'gulpfile.js' reccomended by @debris. 0267e85 Use browserify's 'browser' field instead of 'envify' & 'unreachable-branch-transform to', plus always include 'bignumber.js' since it is needed in the browser. cb7c209 removed unused property 12aed56 fixed #111 git-subtree-dir: libjsqrc/ethereumjs git-subtree-split: 73b9ed29c09531817df311c2d050dec6667197e7
2015-04-07 02:50:10 +00:00
// then
assert.deepEqual(test.formattedResult, result);
});
it('async test: ' + index, function (done) {
// given
var provider = new FakeHttpProvider();
web3.setProvider(provider);
provider.injectResult(test.result);
provider.injectValidation(function (payload) {
assert.equal(payload.jsonrpc, '2.0');
assert.equal(payload.method, test.call);
assert.deepEqual(payload.params, test.formattedArgs);
});
Squashed 'libjsqrc/ethereumjs/' changes from 4def095..f8a43ed f8a43ed Merge pull request #180 from ethereum/develop 4dc6e23 realease version 0.3.1 ee0ec4b Merge branch 'master' of github.com:ethereum/web3.js into develop 08dc2b2 add missing inputBlockNumberFormatter 99e89a1 Merge pull request #179 from ethereum/latest_pending dfbad66 add pending and latest to getBlockTransactionCount and getUncle dbf3ff0 latest and pending as possible blockNumber arg everywhere 3897bc2 version 0.3.0 d2068eb improved solidity event decoding 11f23ce Merge pull request #178 from ethereum/stringTopics 50f4a2b add new test filter 40c5c9e merged develop c9cd31b add test for the new toTopic filter e21ee7a Merge pull request #174 from ethereum/events_refactor 960e9c9 test for explicit sendTransaction && call a6ac6ed add new toTopic formatter in filters 3d3db61 tests for decoding event logs 7c16dbf one additional test for event encode 9f7d6a9 anonymous events implementation && tests b5eabd8 proper formatting event options 93b323f removed unused function findIndex from utils 9158ac7 removed unused function 1ac1ef9 cleaned event.encode test 5f2eb33 fixed filters encoding null 4482d5b Merge branch 'develop' into events_refactor 76ced9a basic tests for event encoding f767a9a removed unused formatOutputHash, renamed formatXXXString to formatXXXBytes 888a970 coder.encodeParam, coder.decodeParam tests template 983e4b1 removed signature.js f37057e Merge branch 'develop' of github.com:ethereum/web3.js into develop c8f4226 add possible 2d topic arrays fixes #175 e910736 eth_filter complex topics, #175 836529a Merge branch 'develop' into events_refactor 42e759e 0.10 on travis is painfully slow, lets remove it d411492 call && sendTransaction f84a68c changed the way functions are being called c8e5768 fixed log fields d38f5a2 Merge branch 'develop' into events_refactor a5c1bcc changed default providor port to 8545 closes #160 9e8cb8d removed non existing eth.flush method eeb0bc0 Merge branch 'develop' into events_refactor cdf02ec Merge pull request #173 from ethereum/failing_develop 501e3bc utils cleanup a88be00 docs 9d8a51d event.js refactored ea6bda4 event refactor in progress a827076 fixed tx/block return value tests 99a3696 events refactor, function.js 04cdb6c format also tx nonce to number 385cc2c removed minGasPrice from blocks c06d75b Merge pull request #170 from ethereum/abi_refactor e80ff10 Merge branch 'master' into abi_refactor 38641df fixed #154 1c8cd7d web3.eth.defaultAccount property, updated event_inc example, fixed #96 4aeba40 fixed event_inc example 5362e2a Merge branch 'develop' into abi_refactor 2a11852 Merge branch 'master' into develop ea413a8 updated gitter badge a46b9ea Merge branch 'develop' into abi_refactor 779a608 documentation 941535f SolidityParam moved to its own file && documented 18cef7c removed *collapse in contrat, gulp 677bb68 add bundle version 135b044 Merge pull request #164 from karalabe/empty-topics-fix b326202 formatters/whisper: polish corner case handling code 0567ba1 outputParser do not require 0x prefix before hash b5c6aa6 little cleanup && renaming dccfca1 solidity abi refactor in progress 6a058b6 Allow unset topics in posts too. af443f2 Fix #162: allow empty topic list in messages d643d06 solidity abi refactor in progress 271b00f bumped version f4cf699 rebuild 4eeaf19 rebuild 20fb2e3 Merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop ac69640 Merge pull request #158 from ethereum/watchImprovement2 96b4468 fixed #161, web3.ssh.post a320ef8 fixed coverage, unified creating errors 364eab7 add callback for async error c62f817 picked watch change3 56d13f7 picked watch change2 2215e7c picked watch change dc0f231 merged meteor package fixes c89ad86 renamed meteor package a0709f3 fixed meteor package 1a8032c version 0.2.7 dfb8dea gulp b1ada8d gulp a25a9e1 Merge branch 'master' of https://github.com/ethereum/ethereum.js 05343ea use version of bignumber.js without lookaheads 2651fd8 Update README.md git-subtree-dir: libjsqrc/ethereumjs git-subtree-split: f8a43eddfb450d0e0ba1669a6916babe0ea43642
2015-04-23 10:32:05 +00:00
var args = clone(test.args);
Squashed 'libjsqrc/ethereumjs/' changes from eceeda7..73b9ed2 73b9ed2 rename to web3 c80ede5 fixed spelling in package description 67f0a75 version 0.2.4 e2990ae web3.eth.getBlockTransactionCount accepts pending/latest/earliest params 94429ff version 0.2.3 f9a5206 more tests for web3.eth.getBalance 31e046d Merge branch 'master' into develop 5e15037 fixed formatting address b7a03cd version 0.2.2 2536888 let travis check if npm package is not broken 92aba81 merge master, gulp e6a76ff Merge branch 'master' into develop 57d9f1f removed deprecated && unused lines from contract.js 5885bfe test for #128 e53f316 tests for transaction && call 31220d5 removed deprecated code in contract.js b837667 unified asBlock from filter.js with blockNumber formatter 202a8cd #140 badge 608d211 blockNumber can be earliest f0216fb fixed #149 e213551 tests for #144 21791f2 version 0.2.1 2262276 defaultBlockNumber accepts latest && pending e01bb23 fixed #148 && fixed polling test 8c39acc merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop 534e96d Merge branch 'master' of https://github.com/ethereum/ethereum.js 2f45df8 fix && tests for #147 e750fd9 fixed #147 e0d83d0 removed unecessary callformatter 9fc5575 version 0.2.0 2747f4c Merge pull request #137 from ethereum/sandbox ed2b62d add whisper, network and ethereum version aa9fc92 add whisper, network and ethereum version f4e5a99 default log formatter, improved contract test e9b5da4 updated package.js name to web3 8caf64a update package.json 07bcdb4 improved tests for contract.js, fixed few minor issues 1986c7f cleaned up web3.js 82b18c1 refactored filter.js 2133d27 filter changes in progress 0dbd68c Merge branch 'develop' into sandbox 17164be default toBlock && fromBlock is not null e928e14 Merge branch 'develop' into sandbox 1a84015 fixed events topics 0beb01f test for creating signatures a63d604 removed unused function 9d5b602 test names a1ec149 renamed few more tests cbf8ea1 test naming convention 04f0aa5 fixed filer.js complexity 722a5bc fixed eth.getTransaction.js location c065f17 Merge branch 'develop' into sandbox b78dffa small fix in filter tests 91baec2 polling tests 4f5c5fb first try to test polling f2c8a14 removed duplicate code 9f073d9 applied fixes from cpp-ethereum c01abfc add db tests b247c49 add sha3 test afd7e7b add shh tests e7304b5 add storage tests f32b8ad add runTest module to new tests c52250e add block uncle and block counts c1f5ab2 test.method.js in helpers 7df9099 moved test.utils to helpers a4e3645 Merge branch 'develop' into sandbox b3b95c5 add getBlock test abe064f add Property and passing through of RPC erro texts 0b84376 fix for otto 36fe79f another fix for otto be04c47 fixes for go otto env c7e5d0a light browser bundle 4b37137 light browser bundle without bignumber.js f13a727 add accounts test b915ceb add defaultBlock back b074a5e add check for providor async function ae76428 Merge branch 'master' into develop a34321d removed double FakeHTTPProvidor 7fb4405 add missing formatters, fixed tests 7511e4c fake providers moved to helpers directory b16982b fix for polling 126b40c fixed registering coverage on providers 2924e00 fix for toHex transforming boolean b6b809c setting up formatters for eth 99ea9cd fixed for defaultBlock formatter 33a3fc7 generic integration tests 4d1cf0b inputFormatter is an aray of functions 6b07920 add uninstall filter back 89b1ca6 first integration tests a4cf661 tests for method.js 7519fab method.js 9423b72 Merge pull request #139 from gitter-badger/gitter-badge 24a03e0 Added Gitter badge 0898669 changes in input formatters 748cda2 requestmanager tests 476023e requestmanager refactored e3faebe jsonrpc is an object cbab0ae common changes in requestmanager d408fb0 comments in requestmanager 5c1e85f requestmanager refactor in progress f604670 tests for qtsyncprovider.js 288caf3 node-sandbox, tests for httpprovider, request manager refactor in progress 8c36a10 rename getData to getCode de5de9e Merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop 5cdea25 Merge branch 'getCode' of https://github.com/jorisbontje/ethereum.js into getCode 3550f91 Merge pull request #122 from frozeman/apiOverhaul fb99d10 fixed meteor package 99795e3 expose bignumber.js db7092b Merge pull request #117 from ethereum/bundle_name 5bee7be changed bundle name web3 -> ethereum.js 7ca3b40 gulp 517eff9 Merge pull request #120 from dchambers/make-browserify-compatibile b032429 rename getData to getCode 768d4bf Make changes to 'gulpfile.js' reccomended by @debris. 0267e85 Use browserify's 'browser' field instead of 'envify' & 'unreachable-branch-transform to', plus always include 'bignumber.js' since it is needed in the browser. cb7c209 removed unused property 12aed56 fixed #111 git-subtree-dir: libjsqrc/ethereumjs git-subtree-split: 73b9ed29c09531817df311c2d050dec6667197e7
2015-04-07 02:50:10 +00:00
// add callback
args.push(function (err, result) {
assert.deepEqual(test.formattedResult, result);
done();
});
// when
Squashed 'libjsqrc/ethereumjs/' changes from 4def095..f8a43ed f8a43ed Merge pull request #180 from ethereum/develop 4dc6e23 realease version 0.3.1 ee0ec4b Merge branch 'master' of github.com:ethereum/web3.js into develop 08dc2b2 add missing inputBlockNumberFormatter 99e89a1 Merge pull request #179 from ethereum/latest_pending dfbad66 add pending and latest to getBlockTransactionCount and getUncle dbf3ff0 latest and pending as possible blockNumber arg everywhere 3897bc2 version 0.3.0 d2068eb improved solidity event decoding 11f23ce Merge pull request #178 from ethereum/stringTopics 50f4a2b add new test filter 40c5c9e merged develop c9cd31b add test for the new toTopic filter e21ee7a Merge pull request #174 from ethereum/events_refactor 960e9c9 test for explicit sendTransaction && call a6ac6ed add new toTopic formatter in filters 3d3db61 tests for decoding event logs 7c16dbf one additional test for event encode 9f7d6a9 anonymous events implementation && tests b5eabd8 proper formatting event options 93b323f removed unused function findIndex from utils 9158ac7 removed unused function 1ac1ef9 cleaned event.encode test 5f2eb33 fixed filters encoding null 4482d5b Merge branch 'develop' into events_refactor 76ced9a basic tests for event encoding f767a9a removed unused formatOutputHash, renamed formatXXXString to formatXXXBytes 888a970 coder.encodeParam, coder.decodeParam tests template 983e4b1 removed signature.js f37057e Merge branch 'develop' of github.com:ethereum/web3.js into develop c8f4226 add possible 2d topic arrays fixes #175 e910736 eth_filter complex topics, #175 836529a Merge branch 'develop' into events_refactor 42e759e 0.10 on travis is painfully slow, lets remove it d411492 call && sendTransaction f84a68c changed the way functions are being called c8e5768 fixed log fields d38f5a2 Merge branch 'develop' into events_refactor a5c1bcc changed default providor port to 8545 closes #160 9e8cb8d removed non existing eth.flush method eeb0bc0 Merge branch 'develop' into events_refactor cdf02ec Merge pull request #173 from ethereum/failing_develop 501e3bc utils cleanup a88be00 docs 9d8a51d event.js refactored ea6bda4 event refactor in progress a827076 fixed tx/block return value tests 99a3696 events refactor, function.js 04cdb6c format also tx nonce to number 385cc2c removed minGasPrice from blocks c06d75b Merge pull request #170 from ethereum/abi_refactor e80ff10 Merge branch 'master' into abi_refactor 38641df fixed #154 1c8cd7d web3.eth.defaultAccount property, updated event_inc example, fixed #96 4aeba40 fixed event_inc example 5362e2a Merge branch 'develop' into abi_refactor 2a11852 Merge branch 'master' into develop ea413a8 updated gitter badge a46b9ea Merge branch 'develop' into abi_refactor 779a608 documentation 941535f SolidityParam moved to its own file && documented 18cef7c removed *collapse in contrat, gulp 677bb68 add bundle version 135b044 Merge pull request #164 from karalabe/empty-topics-fix b326202 formatters/whisper: polish corner case handling code 0567ba1 outputParser do not require 0x prefix before hash b5c6aa6 little cleanup && renaming dccfca1 solidity abi refactor in progress 6a058b6 Allow unset topics in posts too. af443f2 Fix #162: allow empty topic list in messages d643d06 solidity abi refactor in progress 271b00f bumped version f4cf699 rebuild 4eeaf19 rebuild 20fb2e3 Merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop ac69640 Merge pull request #158 from ethereum/watchImprovement2 96b4468 fixed #161, web3.ssh.post a320ef8 fixed coverage, unified creating errors 364eab7 add callback for async error c62f817 picked watch change3 56d13f7 picked watch change2 2215e7c picked watch change dc0f231 merged meteor package fixes c89ad86 renamed meteor package a0709f3 fixed meteor package 1a8032c version 0.2.7 dfb8dea gulp b1ada8d gulp a25a9e1 Merge branch 'master' of https://github.com/ethereum/ethereum.js 05343ea use version of bignumber.js without lookaheads 2651fd8 Update README.md git-subtree-dir: libjsqrc/ethereumjs git-subtree-split: f8a43eddfb450d0e0ba1669a6916babe0ea43642
2015-04-23 10:32:05 +00:00
if (obj) {
Squashed 'libjsqrc/ethereumjs/' changes from eceeda7..73b9ed2 73b9ed2 rename to web3 c80ede5 fixed spelling in package description 67f0a75 version 0.2.4 e2990ae web3.eth.getBlockTransactionCount accepts pending/latest/earliest params 94429ff version 0.2.3 f9a5206 more tests for web3.eth.getBalance 31e046d Merge branch 'master' into develop 5e15037 fixed formatting address b7a03cd version 0.2.2 2536888 let travis check if npm package is not broken 92aba81 merge master, gulp e6a76ff Merge branch 'master' into develop 57d9f1f removed deprecated && unused lines from contract.js 5885bfe test for #128 e53f316 tests for transaction && call 31220d5 removed deprecated code in contract.js b837667 unified asBlock from filter.js with blockNumber formatter 202a8cd #140 badge 608d211 blockNumber can be earliest f0216fb fixed #149 e213551 tests for #144 21791f2 version 0.2.1 2262276 defaultBlockNumber accepts latest && pending e01bb23 fixed #148 && fixed polling test 8c39acc merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop 534e96d Merge branch 'master' of https://github.com/ethereum/ethereum.js 2f45df8 fix && tests for #147 e750fd9 fixed #147 e0d83d0 removed unecessary callformatter 9fc5575 version 0.2.0 2747f4c Merge pull request #137 from ethereum/sandbox ed2b62d add whisper, network and ethereum version aa9fc92 add whisper, network and ethereum version f4e5a99 default log formatter, improved contract test e9b5da4 updated package.js name to web3 8caf64a update package.json 07bcdb4 improved tests for contract.js, fixed few minor issues 1986c7f cleaned up web3.js 82b18c1 refactored filter.js 2133d27 filter changes in progress 0dbd68c Merge branch 'develop' into sandbox 17164be default toBlock && fromBlock is not null e928e14 Merge branch 'develop' into sandbox 1a84015 fixed events topics 0beb01f test for creating signatures a63d604 removed unused function 9d5b602 test names a1ec149 renamed few more tests cbf8ea1 test naming convention 04f0aa5 fixed filer.js complexity 722a5bc fixed eth.getTransaction.js location c065f17 Merge branch 'develop' into sandbox b78dffa small fix in filter tests 91baec2 polling tests 4f5c5fb first try to test polling f2c8a14 removed duplicate code 9f073d9 applied fixes from cpp-ethereum c01abfc add db tests b247c49 add sha3 test afd7e7b add shh tests e7304b5 add storage tests f32b8ad add runTest module to new tests c52250e add block uncle and block counts c1f5ab2 test.method.js in helpers 7df9099 moved test.utils to helpers a4e3645 Merge branch 'develop' into sandbox b3b95c5 add getBlock test abe064f add Property and passing through of RPC erro texts 0b84376 fix for otto 36fe79f another fix for otto be04c47 fixes for go otto env c7e5d0a light browser bundle 4b37137 light browser bundle without bignumber.js f13a727 add accounts test b915ceb add defaultBlock back b074a5e add check for providor async function ae76428 Merge branch 'master' into develop a34321d removed double FakeHTTPProvidor 7fb4405 add missing formatters, fixed tests 7511e4c fake providers moved to helpers directory b16982b fix for polling 126b40c fixed registering coverage on providers 2924e00 fix for toHex transforming boolean b6b809c setting up formatters for eth 99ea9cd fixed for defaultBlock formatter 33a3fc7 generic integration tests 4d1cf0b inputFormatter is an aray of functions 6b07920 add uninstall filter back 89b1ca6 first integration tests a4cf661 tests for method.js 7519fab method.js 9423b72 Merge pull request #139 from gitter-badger/gitter-badge 24a03e0 Added Gitter badge 0898669 changes in input formatters 748cda2 requestmanager tests 476023e requestmanager refactored e3faebe jsonrpc is an object cbab0ae common changes in requestmanager d408fb0 comments in requestmanager 5c1e85f requestmanager refactor in progress f604670 tests for qtsyncprovider.js 288caf3 node-sandbox, tests for httpprovider, request manager refactor in progress 8c36a10 rename getData to getCode de5de9e Merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop 5cdea25 Merge branch 'getCode' of https://github.com/jorisbontje/ethereum.js into getCode 3550f91 Merge pull request #122 from frozeman/apiOverhaul fb99d10 fixed meteor package 99795e3 expose bignumber.js db7092b Merge pull request #117 from ethereum/bundle_name 5bee7be changed bundle name web3 -> ethereum.js 7ca3b40 gulp 517eff9 Merge pull request #120 from dchambers/make-browserify-compatibile b032429 rename getData to getCode 768d4bf Make changes to 'gulpfile.js' reccomended by @debris. 0267e85 Use browserify's 'browser' field instead of 'envify' & 'unreachable-branch-transform to', plus always include 'bignumber.js' since it is needed in the browser. cb7c209 removed unused property 12aed56 fixed #111 git-subtree-dir: libjsqrc/ethereumjs git-subtree-split: 73b9ed29c09531817df311c2d050dec6667197e7
2015-04-07 02:50:10 +00:00
web3[obj][method].apply(null, args);
Squashed 'libjsqrc/ethereumjs/' changes from 4def095..f8a43ed f8a43ed Merge pull request #180 from ethereum/develop 4dc6e23 realease version 0.3.1 ee0ec4b Merge branch 'master' of github.com:ethereum/web3.js into develop 08dc2b2 add missing inputBlockNumberFormatter 99e89a1 Merge pull request #179 from ethereum/latest_pending dfbad66 add pending and latest to getBlockTransactionCount and getUncle dbf3ff0 latest and pending as possible blockNumber arg everywhere 3897bc2 version 0.3.0 d2068eb improved solidity event decoding 11f23ce Merge pull request #178 from ethereum/stringTopics 50f4a2b add new test filter 40c5c9e merged develop c9cd31b add test for the new toTopic filter e21ee7a Merge pull request #174 from ethereum/events_refactor 960e9c9 test for explicit sendTransaction && call a6ac6ed add new toTopic formatter in filters 3d3db61 tests for decoding event logs 7c16dbf one additional test for event encode 9f7d6a9 anonymous events implementation && tests b5eabd8 proper formatting event options 93b323f removed unused function findIndex from utils 9158ac7 removed unused function 1ac1ef9 cleaned event.encode test 5f2eb33 fixed filters encoding null 4482d5b Merge branch 'develop' into events_refactor 76ced9a basic tests for event encoding f767a9a removed unused formatOutputHash, renamed formatXXXString to formatXXXBytes 888a970 coder.encodeParam, coder.decodeParam tests template 983e4b1 removed signature.js f37057e Merge branch 'develop' of github.com:ethereum/web3.js into develop c8f4226 add possible 2d topic arrays fixes #175 e910736 eth_filter complex topics, #175 836529a Merge branch 'develop' into events_refactor 42e759e 0.10 on travis is painfully slow, lets remove it d411492 call && sendTransaction f84a68c changed the way functions are being called c8e5768 fixed log fields d38f5a2 Merge branch 'develop' into events_refactor a5c1bcc changed default providor port to 8545 closes #160 9e8cb8d removed non existing eth.flush method eeb0bc0 Merge branch 'develop' into events_refactor cdf02ec Merge pull request #173 from ethereum/failing_develop 501e3bc utils cleanup a88be00 docs 9d8a51d event.js refactored ea6bda4 event refactor in progress a827076 fixed tx/block return value tests 99a3696 events refactor, function.js 04cdb6c format also tx nonce to number 385cc2c removed minGasPrice from blocks c06d75b Merge pull request #170 from ethereum/abi_refactor e80ff10 Merge branch 'master' into abi_refactor 38641df fixed #154 1c8cd7d web3.eth.defaultAccount property, updated event_inc example, fixed #96 4aeba40 fixed event_inc example 5362e2a Merge branch 'develop' into abi_refactor 2a11852 Merge branch 'master' into develop ea413a8 updated gitter badge a46b9ea Merge branch 'develop' into abi_refactor 779a608 documentation 941535f SolidityParam moved to its own file && documented 18cef7c removed *collapse in contrat, gulp 677bb68 add bundle version 135b044 Merge pull request #164 from karalabe/empty-topics-fix b326202 formatters/whisper: polish corner case handling code 0567ba1 outputParser do not require 0x prefix before hash b5c6aa6 little cleanup && renaming dccfca1 solidity abi refactor in progress 6a058b6 Allow unset topics in posts too. af443f2 Fix #162: allow empty topic list in messages d643d06 solidity abi refactor in progress 271b00f bumped version f4cf699 rebuild 4eeaf19 rebuild 20fb2e3 Merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop ac69640 Merge pull request #158 from ethereum/watchImprovement2 96b4468 fixed #161, web3.ssh.post a320ef8 fixed coverage, unified creating errors 364eab7 add callback for async error c62f817 picked watch change3 56d13f7 picked watch change2 2215e7c picked watch change dc0f231 merged meteor package fixes c89ad86 renamed meteor package a0709f3 fixed meteor package 1a8032c version 0.2.7 dfb8dea gulp b1ada8d gulp a25a9e1 Merge branch 'master' of https://github.com/ethereum/ethereum.js 05343ea use version of bignumber.js without lookaheads 2651fd8 Update README.md git-subtree-dir: libjsqrc/ethereumjs git-subtree-split: f8a43eddfb450d0e0ba1669a6916babe0ea43642
2015-04-23 10:32:05 +00:00
} else {
Squashed 'libjsqrc/ethereumjs/' changes from eceeda7..73b9ed2 73b9ed2 rename to web3 c80ede5 fixed spelling in package description 67f0a75 version 0.2.4 e2990ae web3.eth.getBlockTransactionCount accepts pending/latest/earliest params 94429ff version 0.2.3 f9a5206 more tests for web3.eth.getBalance 31e046d Merge branch 'master' into develop 5e15037 fixed formatting address b7a03cd version 0.2.2 2536888 let travis check if npm package is not broken 92aba81 merge master, gulp e6a76ff Merge branch 'master' into develop 57d9f1f removed deprecated && unused lines from contract.js 5885bfe test for #128 e53f316 tests for transaction && call 31220d5 removed deprecated code in contract.js b837667 unified asBlock from filter.js with blockNumber formatter 202a8cd #140 badge 608d211 blockNumber can be earliest f0216fb fixed #149 e213551 tests for #144 21791f2 version 0.2.1 2262276 defaultBlockNumber accepts latest && pending e01bb23 fixed #148 && fixed polling test 8c39acc merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop 534e96d Merge branch 'master' of https://github.com/ethereum/ethereum.js 2f45df8 fix && tests for #147 e750fd9 fixed #147 e0d83d0 removed unecessary callformatter 9fc5575 version 0.2.0 2747f4c Merge pull request #137 from ethereum/sandbox ed2b62d add whisper, network and ethereum version aa9fc92 add whisper, network and ethereum version f4e5a99 default log formatter, improved contract test e9b5da4 updated package.js name to web3 8caf64a update package.json 07bcdb4 improved tests for contract.js, fixed few minor issues 1986c7f cleaned up web3.js 82b18c1 refactored filter.js 2133d27 filter changes in progress 0dbd68c Merge branch 'develop' into sandbox 17164be default toBlock && fromBlock is not null e928e14 Merge branch 'develop' into sandbox 1a84015 fixed events topics 0beb01f test for creating signatures a63d604 removed unused function 9d5b602 test names a1ec149 renamed few more tests cbf8ea1 test naming convention 04f0aa5 fixed filer.js complexity 722a5bc fixed eth.getTransaction.js location c065f17 Merge branch 'develop' into sandbox b78dffa small fix in filter tests 91baec2 polling tests 4f5c5fb first try to test polling f2c8a14 removed duplicate code 9f073d9 applied fixes from cpp-ethereum c01abfc add db tests b247c49 add sha3 test afd7e7b add shh tests e7304b5 add storage tests f32b8ad add runTest module to new tests c52250e add block uncle and block counts c1f5ab2 test.method.js in helpers 7df9099 moved test.utils to helpers a4e3645 Merge branch 'develop' into sandbox b3b95c5 add getBlock test abe064f add Property and passing through of RPC erro texts 0b84376 fix for otto 36fe79f another fix for otto be04c47 fixes for go otto env c7e5d0a light browser bundle 4b37137 light browser bundle without bignumber.js f13a727 add accounts test b915ceb add defaultBlock back b074a5e add check for providor async function ae76428 Merge branch 'master' into develop a34321d removed double FakeHTTPProvidor 7fb4405 add missing formatters, fixed tests 7511e4c fake providers moved to helpers directory b16982b fix for polling 126b40c fixed registering coverage on providers 2924e00 fix for toHex transforming boolean b6b809c setting up formatters for eth 99ea9cd fixed for defaultBlock formatter 33a3fc7 generic integration tests 4d1cf0b inputFormatter is an aray of functions 6b07920 add uninstall filter back 89b1ca6 first integration tests a4cf661 tests for method.js 7519fab method.js 9423b72 Merge pull request #139 from gitter-badger/gitter-badge 24a03e0 Added Gitter badge 0898669 changes in input formatters 748cda2 requestmanager tests 476023e requestmanager refactored e3faebe jsonrpc is an object cbab0ae common changes in requestmanager d408fb0 comments in requestmanager 5c1e85f requestmanager refactor in progress f604670 tests for qtsyncprovider.js 288caf3 node-sandbox, tests for httpprovider, request manager refactor in progress 8c36a10 rename getData to getCode de5de9e Merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop 5cdea25 Merge branch 'getCode' of https://github.com/jorisbontje/ethereum.js into getCode 3550f91 Merge pull request #122 from frozeman/apiOverhaul fb99d10 fixed meteor package 99795e3 expose bignumber.js db7092b Merge pull request #117 from ethereum/bundle_name 5bee7be changed bundle name web3 -> ethereum.js 7ca3b40 gulp 517eff9 Merge pull request #120 from dchambers/make-browserify-compatibile b032429 rename getData to getCode 768d4bf Make changes to 'gulpfile.js' reccomended by @debris. 0267e85 Use browserify's 'browser' field instead of 'envify' & 'unreachable-branch-transform to', plus always include 'bignumber.js' since it is needed in the browser. cb7c209 removed unused property 12aed56 fixed #111 git-subtree-dir: libjsqrc/ethereumjs git-subtree-split: 73b9ed29c09531817df311c2d050dec6667197e7
2015-04-07 02:50:10 +00:00
web3[method].apply(null, args);
Squashed 'libjsqrc/ethereumjs/' changes from 4def095..f8a43ed f8a43ed Merge pull request #180 from ethereum/develop 4dc6e23 realease version 0.3.1 ee0ec4b Merge branch 'master' of github.com:ethereum/web3.js into develop 08dc2b2 add missing inputBlockNumberFormatter 99e89a1 Merge pull request #179 from ethereum/latest_pending dfbad66 add pending and latest to getBlockTransactionCount and getUncle dbf3ff0 latest and pending as possible blockNumber arg everywhere 3897bc2 version 0.3.0 d2068eb improved solidity event decoding 11f23ce Merge pull request #178 from ethereum/stringTopics 50f4a2b add new test filter 40c5c9e merged develop c9cd31b add test for the new toTopic filter e21ee7a Merge pull request #174 from ethereum/events_refactor 960e9c9 test for explicit sendTransaction && call a6ac6ed add new toTopic formatter in filters 3d3db61 tests for decoding event logs 7c16dbf one additional test for event encode 9f7d6a9 anonymous events implementation && tests b5eabd8 proper formatting event options 93b323f removed unused function findIndex from utils 9158ac7 removed unused function 1ac1ef9 cleaned event.encode test 5f2eb33 fixed filters encoding null 4482d5b Merge branch 'develop' into events_refactor 76ced9a basic tests for event encoding f767a9a removed unused formatOutputHash, renamed formatXXXString to formatXXXBytes 888a970 coder.encodeParam, coder.decodeParam tests template 983e4b1 removed signature.js f37057e Merge branch 'develop' of github.com:ethereum/web3.js into develop c8f4226 add possible 2d topic arrays fixes #175 e910736 eth_filter complex topics, #175 836529a Merge branch 'develop' into events_refactor 42e759e 0.10 on travis is painfully slow, lets remove it d411492 call && sendTransaction f84a68c changed the way functions are being called c8e5768 fixed log fields d38f5a2 Merge branch 'develop' into events_refactor a5c1bcc changed default providor port to 8545 closes #160 9e8cb8d removed non existing eth.flush method eeb0bc0 Merge branch 'develop' into events_refactor cdf02ec Merge pull request #173 from ethereum/failing_develop 501e3bc utils cleanup a88be00 docs 9d8a51d event.js refactored ea6bda4 event refactor in progress a827076 fixed tx/block return value tests 99a3696 events refactor, function.js 04cdb6c format also tx nonce to number 385cc2c removed minGasPrice from blocks c06d75b Merge pull request #170 from ethereum/abi_refactor e80ff10 Merge branch 'master' into abi_refactor 38641df fixed #154 1c8cd7d web3.eth.defaultAccount property, updated event_inc example, fixed #96 4aeba40 fixed event_inc example 5362e2a Merge branch 'develop' into abi_refactor 2a11852 Merge branch 'master' into develop ea413a8 updated gitter badge a46b9ea Merge branch 'develop' into abi_refactor 779a608 documentation 941535f SolidityParam moved to its own file && documented 18cef7c removed *collapse in contrat, gulp 677bb68 add bundle version 135b044 Merge pull request #164 from karalabe/empty-topics-fix b326202 formatters/whisper: polish corner case handling code 0567ba1 outputParser do not require 0x prefix before hash b5c6aa6 little cleanup && renaming dccfca1 solidity abi refactor in progress 6a058b6 Allow unset topics in posts too. af443f2 Fix #162: allow empty topic list in messages d643d06 solidity abi refactor in progress 271b00f bumped version f4cf699 rebuild 4eeaf19 rebuild 20fb2e3 Merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop ac69640 Merge pull request #158 from ethereum/watchImprovement2 96b4468 fixed #161, web3.ssh.post a320ef8 fixed coverage, unified creating errors 364eab7 add callback for async error c62f817 picked watch change3 56d13f7 picked watch change2 2215e7c picked watch change dc0f231 merged meteor package fixes c89ad86 renamed meteor package a0709f3 fixed meteor package 1a8032c version 0.2.7 dfb8dea gulp b1ada8d gulp a25a9e1 Merge branch 'master' of https://github.com/ethereum/ethereum.js 05343ea use version of bignumber.js without lookaheads 2651fd8 Update README.md git-subtree-dir: libjsqrc/ethereumjs git-subtree-split: f8a43eddfb450d0e0ba1669a6916babe0ea43642
2015-04-23 10:32:05 +00:00
}
Squashed 'libjsqrc/ethereumjs/' changes from eceeda7..73b9ed2 73b9ed2 rename to web3 c80ede5 fixed spelling in package description 67f0a75 version 0.2.4 e2990ae web3.eth.getBlockTransactionCount accepts pending/latest/earliest params 94429ff version 0.2.3 f9a5206 more tests for web3.eth.getBalance 31e046d Merge branch 'master' into develop 5e15037 fixed formatting address b7a03cd version 0.2.2 2536888 let travis check if npm package is not broken 92aba81 merge master, gulp e6a76ff Merge branch 'master' into develop 57d9f1f removed deprecated && unused lines from contract.js 5885bfe test for #128 e53f316 tests for transaction && call 31220d5 removed deprecated code in contract.js b837667 unified asBlock from filter.js with blockNumber formatter 202a8cd #140 badge 608d211 blockNumber can be earliest f0216fb fixed #149 e213551 tests for #144 21791f2 version 0.2.1 2262276 defaultBlockNumber accepts latest && pending e01bb23 fixed #148 && fixed polling test 8c39acc merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop 534e96d Merge branch 'master' of https://github.com/ethereum/ethereum.js 2f45df8 fix && tests for #147 e750fd9 fixed #147 e0d83d0 removed unecessary callformatter 9fc5575 version 0.2.0 2747f4c Merge pull request #137 from ethereum/sandbox ed2b62d add whisper, network and ethereum version aa9fc92 add whisper, network and ethereum version f4e5a99 default log formatter, improved contract test e9b5da4 updated package.js name to web3 8caf64a update package.json 07bcdb4 improved tests for contract.js, fixed few minor issues 1986c7f cleaned up web3.js 82b18c1 refactored filter.js 2133d27 filter changes in progress 0dbd68c Merge branch 'develop' into sandbox 17164be default toBlock && fromBlock is not null e928e14 Merge branch 'develop' into sandbox 1a84015 fixed events topics 0beb01f test for creating signatures a63d604 removed unused function 9d5b602 test names a1ec149 renamed few more tests cbf8ea1 test naming convention 04f0aa5 fixed filer.js complexity 722a5bc fixed eth.getTransaction.js location c065f17 Merge branch 'develop' into sandbox b78dffa small fix in filter tests 91baec2 polling tests 4f5c5fb first try to test polling f2c8a14 removed duplicate code 9f073d9 applied fixes from cpp-ethereum c01abfc add db tests b247c49 add sha3 test afd7e7b add shh tests e7304b5 add storage tests f32b8ad add runTest module to new tests c52250e add block uncle and block counts c1f5ab2 test.method.js in helpers 7df9099 moved test.utils to helpers a4e3645 Merge branch 'develop' into sandbox b3b95c5 add getBlock test abe064f add Property and passing through of RPC erro texts 0b84376 fix for otto 36fe79f another fix for otto be04c47 fixes for go otto env c7e5d0a light browser bundle 4b37137 light browser bundle without bignumber.js f13a727 add accounts test b915ceb add defaultBlock back b074a5e add check for providor async function ae76428 Merge branch 'master' into develop a34321d removed double FakeHTTPProvidor 7fb4405 add missing formatters, fixed tests 7511e4c fake providers moved to helpers directory b16982b fix for polling 126b40c fixed registering coverage on providers 2924e00 fix for toHex transforming boolean b6b809c setting up formatters for eth 99ea9cd fixed for defaultBlock formatter 33a3fc7 generic integration tests 4d1cf0b inputFormatter is an aray of functions 6b07920 add uninstall filter back 89b1ca6 first integration tests a4cf661 tests for method.js 7519fab method.js 9423b72 Merge pull request #139 from gitter-badger/gitter-badge 24a03e0 Added Gitter badge 0898669 changes in input formatters 748cda2 requestmanager tests 476023e requestmanager refactored e3faebe jsonrpc is an object cbab0ae common changes in requestmanager d408fb0 comments in requestmanager 5c1e85f requestmanager refactor in progress f604670 tests for qtsyncprovider.js 288caf3 node-sandbox, tests for httpprovider, request manager refactor in progress 8c36a10 rename getData to getCode de5de9e Merge branch 'develop' of https://github.com/ethereum/ethereum.js into develop 5cdea25 Merge branch 'getCode' of https://github.com/jorisbontje/ethereum.js into getCode 3550f91 Merge pull request #122 from frozeman/apiOverhaul fb99d10 fixed meteor package 99795e3 expose bignumber.js db7092b Merge pull request #117 from ethereum/bundle_name 5bee7be changed bundle name web3 -> ethereum.js 7ca3b40 gulp 517eff9 Merge pull request #120 from dchambers/make-browserify-compatibile b032429 rename getData to getCode 768d4bf Make changes to 'gulpfile.js' reccomended by @debris. 0267e85 Use browserify's 'browser' field instead of 'envify' & 'unreachable-branch-transform to', plus always include 'bignumber.js' since it is needed in the browser. cb7c209 removed unused property 12aed56 fixed #111 git-subtree-dir: libjsqrc/ethereumjs git-subtree-split: 73b9ed29c09531817df311c2d050dec6667197e7
2015-04-07 02:50:10 +00:00
});
});
});
});
};
module.exports = {
runTests: runTests
}