aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth/js.go
Commit message (Collapse)AuthorAgeFilesLines
* cmd, console: split off the console into a reusable packagePéter Szilágyi2016-05-301-424/+0
|
* eth: add new RPC method (personal.) SignAndSendTransactionBas van Kervel2016-05-201-1/+1
|
* cmd/geth: fix console history exclusionFelix Lange2016-05-141-6/+3
| | | | | | Calls to 'personal' API should be excluded from console history because they can be called with an account passphrase as argument. The check for such calls was inverted and didn't work.
* cmd/geth, internal/web3ext, rpc: surface rpc module, fix shh, fix minerPéter Szilágyi2016-05-111-1/+1
|
* cmd/geth, jsre: improve the js commandFelix Lange2016-04-211-9/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* rpc: move web3.js extensions to internal/web3extFelix Lange2016-04-151-1/+2
|
* all: update license informationFelix Lange2016-04-151-1/+1
|
* accounts: streamline APIFelix Lange2016-04-121-1/+3
| | | | | | - Manager.Accounts no longer returns an error. - Manager methods take Account instead of common.Address. - All uses of Account with unkeyed fields are converted.
* cmd/geth, cmd/utils: improve input handlingFelix Lange2016-04-121-63/+20
| | | | | | | | | | | | | | | | | | | These changes make prompting behave consistently on all platforms: * The input buffer is now global. Buffering was previously set up for each prompt, which can cause weird behaviour, e.g. when running "geth account update <input.txt" where input.txt contains three lines. In this case, the first password prompt would fill up the buffer with all lines and then use only the first one. * Print the "unsupported terminal" warning only once. Now that stdin prompting has global state, we can use it to track the warning there. * Work around small liner issues, particularly on Windows. Prompting didn't work under most of the third-party terminal emulators on Windows because liner assumes line editing is always available.
* Merge pull request #2359 from bas-vk/rpc-optional-argsJeffrey Wilcke2016-04-121-1/+1
|\ | | | | rpc: several fixes and support for optional arguments
| * rpc: various fixes/enhancementsBas van Kervel2016-04-121-1/+1
| | | | | | | | | | | | | | | | 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
* | cmd/geth: add JS preload parameterBas van Kervel2016-04-111-0/+18
|/
* cmd/geth: removed multiline supportJeffrey Wilcke2016-02-271-1/+0
| | | | | | | | | When attempting to paste very long lines of text the REPL goes completely fubar, never completing the paste. Removing the multiline support "fixes" this. Long lines of text are usually pasted when deploying contracts and as it stands right now makes creating new contracts from the REPL impossible.
* cmd/geth, jsre: improve auto-completionFelix Lange2016-02-151-64/+5
|
* cmd/geth: enable multi-line modeFelix Lange2016-02-121-0/+1
| | | | | This was requested by some users earlier but liner didn't support it at the time. It does now.
* cmd/geth: gofmt js.go and rename ethereum.js to web3.jsFelix Lange2016-02-121-6/+6
| | | | | Fixing the filename matters now because it will actually show up in JS backtraces.
* rpc: migrated the RPC insterface to a new reflection based RPC layerBas van Kervel2016-01-261-93/+79
|
* console: add admin.sleep and admin.sleepBlocksBas van Kervel2016-01-191-0/+9
|
* console: bugfix that causes the console to crash when connection to an ↵Bas van Kervel2015-12-181-5/+6
| | | | endpoint without the personal api enabled
* rpc: new RPC implementation with pub/sub supportBas van Kervel2015-12-141-3/+19
|
* console: fix instance name printed incorrect on startBas van Kervel2015-11-301-1/+1
|
* Merge pull request #1970 from karalabe/customizable-protocol-stacksJeffrey Wilcke2015-11-271-11/+22
|\ | | | | Customizable protocol stacks
| * cmd, eth, node, rpc, xeth: use single-instance servicesPéter Szilágyi2015-11-271-2/+2
| |
| * cmd, common, core, eth, node, rpc, tests, whisper, xeth: use protocol stacksPéter Szilágyi2015-11-271-11/+22
| |
* | cmd, crypto: fixed nil public keys and updated web3Jeffrey Wilcke2015-11-261-2/+2
|/
* rpc api: eth_getNatSpeczelig2015-10-271-18/+13
| | | | | | | | * xeth, rpc: implement eth_getNatSpec for tx confirmations * rename silly docserver -> httpclient * eth/backend: httpclient now accessible via eth.Ethereum init-d via config.DocRoot * cmd: introduce separate CLI flag for DocRoot (defaults to homedir) * common/path: delete unused assetpath func, separate HomeDir func
* fix console history, lines with leadning whitespace NOT includedzelig2015-10-241-1/+1
|
* console:zelig2015-10-221-23/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lines with leading space are ommitted from history * exit processed even with whitespace around * all whitespace lines (not only empty ones) are ignored add 7 missing commands to admin api autocomplete registrar: methods now return proper error if reg addresses are not set. fixes #1457 rpc/console: fix personal.newAccount() regression. Now all comms accept interactive password registrar: add registrar tests for errors crypto: catch AES decryption error on presale wallet import + fix error msg format. fixes #1580 CLI: improve error message when starting a second instance of geth. fixes #1564 cli/accounts: unlock multiple accounts. fixes #1785 * make unlocking multiple accounts work with inline <() fd * passwdfile now correctly read only once * improve logs * fix CLI help text for unlocking fix regression with docRoot / admin API * docRoot/jspath passed to rpc/api ParseApis, which passes onto adminApi * docRoot field for JS console in order to pass when RPC is (re)started * improve flag desc for jspath common/docserver: catch http errors from response fix rpc/api tests common/natspec: fix end to end test (skipped because takes 8s) registrar: fix major regression: * deploy registrars on frontier * register HashsReg and UrlHint in GlobalRegistrar. * set all 3 contract addresses in code * zero out addresses first in tests
* console/history respect datadirBas van Kervel2015-09-251-11/+6
|
* cmd/geth Autocompletion bugfix which let the console crashBas van Kervel2015-09-061-1/+1
|
* Merge pull request #1659 from bas-vk/exec-outputJeffrey Wilcke2015-08-151-6/+1
|\ | | | | Javascript --exec output
| * main print console output for js statement given by the exec argumentBas van Kervel2015-08-141-6/+1
| |
* | Merge pull request #1658 from bas-vk/liner-ctrl-cJeffrey Wilcke2015-08-141-0/+11
|\ \ | | | | | | Clear current line on ctrl-C
| * | main clear current line on ctrl-CBas van Kervel2015-08-141-0/+11
| | |
* | | Merge pull request #1642 from ethereum/fix-js-console-windowsJeffrey Wilcke2015-08-141-24/+15
|\ \ \ | |/ / |/| / | |/ cmd/geth, jsre: restore command line editing on windows
| * cmd/geth, jsre: restore command line editing on windowsFelix Lange2015-08-121-24/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | support for user agentsBas van Kervel2015-08-121-7/+3
|/
* jsre: leave out lines from history containing methods of the personal modulezelig2015-07-311-2/+17
|
* all: update license headers to distiguish GPL/LGPLFelix Lange2015-07-231-2/+2
| | | | | All code outside of cmd/ is licensed as LGPL. The headers now reflect this by calling the whole work "the go-ethereum library".
* all: update license informationFelix Lange2015-07-071-11/+10
|
* Registrar and contractInfo handlingzelig2015-07-071-1/+1
| | | | | | | | | | | | | | | | * resolver -> common/registrar * global registrar name registry interface * add Call to resolver backend interface * the hashReg and UrlHing contracts now initialised from global registry * initialization of contracts uniform * improve errors and more econsistent method names * common/registrar/ethreg: versioned registrar * integrate new naming and registrar in natspec * js console api: setGlobalRegistrar, setHashReg, setUrlHint * js test TestContract uses mining - tests fixed all pass * eth/backend: allow PoW test mode (small ethash DAG) * console jsre refers to resolver.abi/addr, * cmd/geth/contracts.go moved to common/registrar
* Registrar and contractInfo handlingzelig2015-07-071-5/+7
| | | | | | | | | | | | | | | | * resolver -> common/registrar * global registrar name registry interface * add Call to resolver backend interface * the hashReg and UrlHing contracts now initialised from global registry * initialization of contracts uniform * improve errors and more econsistent method names * common/registrar/ethreg: versioned registrar * integrate new naming and registrar in natspec * js console api: setGlobalRegistrar, setHashReg, setUrlHint * js test TestContract uses mining - tests fixed all pass * eth/backend: allow PoW test mode (small ethash DAG) * console jsre refers to resolver.abi/addr, * cmd/geth/contracts.go moved to common/registrar
* added missing change for sign testBas van Kervel2015-06-221-1/+1
|
* added RPC start/stop supportBas van Kervel2015-06-221-2/+5
|
* added batch support to console and attach actionsBas van Kervel2015-06-221-0/+19
|
* fixed bug where history file was create in cwdBas van Kervel2015-06-221-1/+1
|
* added attach over ipc commandBas van Kervel2015-06-221-25/+64
|
* cleanup comments/codeBas van Kervel2015-06-221-51/+0
|
* removed old rpc structure and added new inproc api clientBas van Kervel2015-06-221-3/+186
|
* changed send methods for backwards compatability in geth consoleBas van Kervel2015-06-111-0/+1
|
* added console commandBas van Kervel2015-06-111-5/+5
|
* cmd/geth: exit the console cleanly when interruptedFelix Lange2015-05-271-20/+44
| | | | | | This fix applies mostly to unsupported terminals that do not trigger the special interrupt handling in liner. Supported terminals were covered because liner.Prompt returns an error if Ctrl-C is pressed.
* cmd/geth, jsre, rpc: run all JS code on the event loopFelix Lange2015-05-251-1/+1
| | | | | | 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.
* make registrar available in consoleBas van Kervel2015-05-221-1/+1
|
* solc now in ethereum, fixes solc path setting; setSolc() didnt workzelig2015-05-201-2/+1
|
* Use common.Address type for accounts.AddressGustav Simonsson2015-05-121-1/+2
|
* removed redundant newlines in import blockBas van Kervel2015-05-121-2/+1
|
* replaced several path.* with filepath.* which is platform independentBas van Kervel2015-05-121-2/+3
|
* jsre, cmd/geth: updated web3.js and altered settimeoutobscuren2015-05-081-6/+0
|
* solidity compiler and contract metadocs integrationzelig2015-05-071-11/+18
| | | | | | | | | | | | | * common/compiler: solidity compiler + tests * rpc: eth_compilers, eth_compileSolidity + tests * fix natspec test using keystore API, notice exp dynamically changes addr, cleanup * resolver implements registrars and needs to create reg contract (temp) * xeth: solidity compiler. expose getter Solc() and paths setter SetSolc(solcPath) * ethereumApi: implement compiler related RPC calls using XEth - json struct tests * admin: make use of XEth.SetSolc to allow runtime setting of compiler paths * cli: command line flags solc to set custom solc bin path * js admin api with new features debug and contractInfo modules * wiki is the doc https://github.com/ethereum/go-ethereum/wiki/Contracts-and-Transactions
* setTimeout and sendAsync implementedzsfelfoldi2015-05-061-0/+4
| | | | added and eval queue for serializing JSRE vm execution
* cli/js console: if corsDomain is not given to startRpc, we fall back to ↵zelig2015-04-241-7/+9
| | | | value set on command line with `-corsDomain`
* cmd/geth, jsre: updated ethereum.js => web3.jsobscuren2015-04-241-1/+1
|
* NatSpec cli option, resolver tests passingzsfelfoldi2015-04-201-4/+8
|
* default fallback NatSpec messageszsfelfoldi2015-04-201-8/+1
|
* resolver testszelig2015-04-201-1/+4
| | | | | | - add resolver tests and fix resolver to pass - statereg constructor fixed - comments added to natspec plus docserver integration for natspec userdoc fetching
* NatSpec, URL register storage retrievalzsfelfoldi2015-04-201-4/+3
| | | | fixed 2/3 tests
* natspec integrated to console frontend confirmTransactionzelig2015-04-201-2/+11
|
* Added some quotes ....obscuren2015-04-101-1/+1
|
* Added proper contract for registrarobscuren2015-04-091-1/+1
|
* Added default registrarobscuren2015-04-091-0/+1
|
* Use ExtraDB for storage. Fixes #577Taylor Gerring2015-03-271-2/+1
|
* renamed ethereum => gethobscuren2015-03-271-0/+246