Péter Szilágyi
1d42061e2c
jsre: hotfix web3 for the console eth.syncing formatting
2016-05-09 11:59:59 +03:00
Felix Lange
87ae0df476
cmd/geth, jsre: improve the js command
...
geth js stopped the JS runtime after running the first input file
and blocked for pending callbacks. This commit makes it process
all files and enables quitting with Ctrl-C regardless of callbacks.
Error reporting is also improved. If a script fails to load, the error
is printed and includes the backtrace. package jsre now ensures that
otto is aware of the filename, the backtrace will contain them.
Before:
$ geth js bad.js; echo "exit $?"
... log messages ...
exit 0
After:
$ geth js bad.js; echo "exit $?"
... log messages ...
Fatal: JavaScript Error: Invalid number of input parameters
at web3.js:3109:20
at web3.js:4917:15
at web3.js:4960:5
at web3.js:4984:23
at checkWork (bad.js:11:9)
at bad.js:19:1
exit 1
2016-04-20 23:33:43 +02:00
Felix Lange
d04a2e7557
all: update license information
2016-04-15 09:48:05 +02:00
Felix Lange
05e257c22c
jsre: hide fields with prefix _ when pretty-printing
...
This makes web3 internals like _requestManager invisible.
2016-04-13 12:06:42 +02:00
Felix Lange
f08680985a
jsre: fix <tab><tab> completion magic
2016-04-13 12:06:42 +02:00
Felix Lange
5542b51b50
jsre: expose Do
2016-04-13 12:06:42 +02:00
Felix Lange
4e85be0717
jsre: print BigNumber objects with custom constructor as number
2016-04-12 17:42:14 +02:00
Bas van Kervel
aa9fff3e68
rpc: various fixes/enhancements
...
rpc: be less restrictive on the request id
rpc: improved documentation
console: upgrade web3.js to version 0.16.0
rpc: cache http connections
rpc: rename wsDomains parameter to wsOrigins
2016-04-12 11:02:39 +02:00
Bas van Kervel
6777531a2d
console: seed random number generator
2016-02-19 12:55:31 +01:00
Felix Lange
6ba7bbbe29
jsre: include constructor properties in auto-completion
2016-02-15 16:43:25 +01:00
Felix Lange
ae5bc89cad
cmd/geth, jsre: improve auto-completion
2016-02-15 15:03:26 +01:00
Felix Lange
2680e23b15
jsre: fix pretty printer for upstream otto change
2016-02-12 02:19:52 +01:00
Péter Szilágyi
59cd60b266
eth, eth/downloader, jsre: surface state sync progress through the API
2016-02-10 14:30:41 +02:00
Bas van Kervel
19b2640e89
rpc: migrated the RPC insterface to a new reflection based RPC layer
2016-01-26 13:51:50 +01:00
Jeffrey Wilcke
de75d542f3
Merge pull request #1999 from karalabe/javascript-timer-argcheck
...
jrse: fix #1082 , fail if setTimeout/setInterval lack callback
2015-11-26 23:00:36 +01:00
Jeffrey Wilcke
b1e0143444
cmd, crypto: fixed nil public keys and updated web3
2015-11-26 13:38:53 +01:00
Péter Szilágyi
f27e826b14
jrse: fix #1082 , fail if setTimeout/setInterval lack callback
2015-11-23 13:03:31 +02:00
Péter Szilágyi
bddb13d436
jsre: fix #1876 , sleep too short on a slow test server
2015-11-05 11:36:10 +02:00
Felix Lange
69f48e4689
Merge pull request #1811 from bas-vk/timer-clearinterval
...
timer bugfix when clearInterval was called from within the callback
2015-09-17 19:21:49 +02:00
Bas van Kervel
2f65ddc501
jsre: timer bugfix when clearInterval was called from within the callback
2015-09-16 11:57:33 +02:00
Péter Szilágyi
d4d3fc6a70
jsre, rpc/api: pull in new web3 and use hex numbers
2015-09-15 17:05:12 +03:00
Felix Lange
1086e2f298
jsre: fix annoying indentation when printing arrays of objects
...
The pretty printer, dumb as it is, printed arrays of objects as
[{
...
}]
With this change, they now print as:
[{
...
}]
2015-08-16 00:35:00 +01:00
Felix Lange
49703bea0a
jsre: bind the pretty printer to "inspect" in JS
2015-08-15 23:55:42 +01:00
Felix Lange
0ef80bb3d0
cmd/geth, jsre: restore command line editing on windows
...
PR #856 broke command line editing by wrapping stdout with a filter that
interprets ANSI escape sequences to fix colored printing on windows.
Implement the printer in Go instead so it can do its own
platform-dependent coloring.
As a nice side effect, the JS console is now noticeably more responsive
when printing results.
Fixes #1608
Fixes #1612
2015-08-12 12:04:00 +02:00
Jeffrey Wilcke
bf6ea2919d
web3: updated
2015-08-11 17:17:20 +02:00
Jeffrey Wilcke
a33726b7db
web3: regression. Fixes #1613
2015-08-07 12:33:12 +02:00
Felix Lange
3832019964
common/compiler, common/docserver, jsre: fix tests on windows
2015-08-06 17:18:59 +02:00
Jeffrey Wilcke
1fad8798ec
Merge pull request #1515 from fjl/license-fixes
...
all: fix license headers one more time
2015-07-28 04:29:42 -07:00
Jeffrey Wilcke
5001f778aa
web3: updated 0.9.1
2015-07-25 12:22:39 +02:00
Felix Lange
bfbcfbe4a9
all: fix license headers one more time
...
I forgot to update one instance of "go-ethereum" in commit 3f047be5a
.
2015-07-23 18:35:11 +02:00
Felix Lange
3f047be5aa
all: update license headers to distiguish GPL/LGPL
...
All code outside of cmd/ is licensed as LGPL. The headers
now reflect this by calling the whole work "the go-ethereum library".
2015-07-22 18:51:45 +02:00
Jeffrey Wilcke
97d22be318
Merge pull request #1441 from obscuren/logs-return-fix
...
miner, xeth: fire log event during mining. Fix return raw tx
2015-07-09 07:24:35 -07:00
Jeffrey Wilcke
d25634662b
web3: updated
2015-07-08 15:47:33 +02:00
Bas van Kervel
e84f3ec1d4
added net.version
2015-07-08 08:03:20 +02:00
Jeffrey Wilcke
c5972b4ac7
web3 update
2015-07-07 15:21:24 +02:00
Felix Lange
bdae4fd573
all: add some godoc synopsis comments
2015-07-07 14:12:45 +02:00
Felix Lange
ea54283b30
all: update license information
2015-07-07 14:12:44 +02:00
Bas van Kervel
6ea28f93b9
output BigNumbers objects in console as strings
2015-07-07 10:43:49 +02:00
Jeffrey Wilcke
b0aec6402a
web3: updated
2015-07-06 14:01:03 +02:00
Bas van Kervel
8150c0a726
upgrade web3 to version 0.7.1
2015-07-03 17:08:41 +02:00
Bas van Kervel
5f8e5a4875
upgrade web3.js with _extend support
2015-06-11 14:01:41 +02:00
Bas van Kervel
a1a475fb92
added console command
2015-06-11 14:01:39 +02:00
Péter Szilágyi
d6f4c515f5
jsre: print function arguments too
2015-06-09 17:23:44 +03:00
Péter Szilágyi
7842559353
jsre: sort pretty print output, fields before funcs
2015-06-09 17:19:56 +03:00
Péter Szilágyi
3f4ce70d92
jsre: fix wrong separator comma placing due to non consistent field orders
2015-06-09 13:27:45 +03:00
obscuren
598e454d46
cmd/geth: updated web3
2015-05-28 13:24:09 +02:00
Felix Lange
e221a449e0
cmd/geth, jsre, rpc: run all JS code on the event loop
...
Some JSRE methods (PrettyPrint, ToVal) bypassed the event loop. All
calls to the JS VM are now wrapped. In order to make this somewhat more
foolproof, the otto VM is now a local variable inside the event loop.
2015-05-25 02:27:37 +02:00
zelig
ea893aca8f
update web3.js to 0.4.2
2015-05-20 02:58:49 +01:00
Daniel A. Nagy
62dd9833ec
Merge branch 'develop' of github.com:ethereum/go-ethereum into develop
2015-05-08 17:55:53 +02:00
Daniel A. Nagy
3a01e3e39b
Signing (almost) works.
2015-05-08 17:52:44 +02:00