This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jack@vent:~/.ethereum$ geth --rpc --mine --rpccorsdomain "http://127.0.0.1:8545" --unlock primary console | |
| Welcome to the FRONTIER | |
| I0422 01:16:57.050231 9324 backend.go:189] Protocol Version: 60, Network Id: 0 | |
| I0422 01:16:57.050350 9324 backend.go:199] Blockchain DB Version: 2 | |
| I0422 01:16:57.052690 9324 chain_manager.go:227] Last block (#149999) 8495c8a64bdcfbc67ab6ce69302242f4bfbe0c58b336eea6ec198a871b9cc6ed TD=963398537175 | |
| I0422 01:16:57.970454 9324 ethash.go:94] Making cache for epoch: 4 (149999) (b903bd7696740696b2b18bd1096a2873bb8ad0c2e7f25b00a0431014edb3f539) | |
| I0422 01:16:59.270579 9324 ethash.go:99] Took: 1.300065244s | |
| I0422 01:16:59.281333 9324 cmd.go:116] Starting Geth/v0.9.11/linux/go1.4.2 | |
| I0422 01:16:59.281463 9324 server.go:183] Starting Server | |
| I0422 01:16:59.287502 9324 udp.go:157] Listening, enode://b7593cca51d1091ef9c8d2a95187b65bd8f03905d809f4a988ee001ad1767a469fa309a0ef35a42922324755e01238bc514fe1a45c95fc00e1a273b9cf3c1816@97.125.125.194:30303 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var EthRPC = require('ethrpc.js'); | |
| var augur = { | |
| info: "0x910b359bb5b2c2857c1d3b7f207a08f3f25c4a8b", | |
| createEvent: "0xcae6d5912033d66650894e2ae8c2f7502eaba15c" | |
| }; | |
| function hexToAscii(hexx) { | |
| var hex = hexx.toString(); | |
| var substr, str = ''; | |
| var foundNonzero = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var EthRPC = require('ethrpc.js'); | |
| var ERRORS = { | |
| "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff": { | |
| code: -1, | |
| message: "bad input or parent doesn't exist" | |
| }, | |
| "0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe": { | |
| code: -2, | |
| message: "too many events" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var EthRPC = require('ethrpc.js'); | |
| var augur = { | |
| info: "0x910b359bb5b2c2857c1d3b7f207a08f3f25c4a8b", | |
| expiringEvents: "0x61d90fd4c1c3502646153003ec4d5c177de0fb58", | |
| branches: "0x13dc5836cd5638d0b81a1ba8377a7852d41b5bbe", | |
| events: "0xb71464588fc19165cbdd1e6e8150c40df544467b" | |
| }; | |
| function parse_array(string, stride, init, bignum) { | |
| stride = stride || 64; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var EthRPC = require('ethrpc.js'); | |
| var augur = { | |
| info: "0x910b359bb5b2c2857c1d3b7f207a08f3f25c4a8b", | |
| expiringEvents: "0x61d90fd4c1c3502646153003ec4d5c177de0fb58", | |
| branches: "0x13dc5836cd5638d0b81a1ba8377a7852d41b5bbe", | |
| events: "0xb71464588fc19165cbdd1e6e8150c40df544467b" | |
| }; | |
| function parse_array(string, stride, init, bignum) { | |
| stride = stride || 64; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var tx = { | |
| method: 'createEvent', | |
| signature: 'isiiii', | |
| params: | |
| [ '0x38a820692912b5f7a3bfefc2a1d4826e1da6beaed5fac6de3d22b18132133991', | |
| 'my event', | |
| 250000, | |
| 1, | |
| 2, | |
| 2 ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Augur = require('augur.js'); | |
| Augur.connect(); | |
| var tx = { | |
| from: Augur.coinbase, | |
| to: "0xa4805a8c5313e53269a523dfac6b44f436fdfd8e", | |
| method: "saveString", | |
| signature: "is", | |
| params: [1, "I, String"] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var ragefest = { | |
| inquiry: "you mad, bro?" | |
| }; | |
| var Syringe = function (drugs) { | |
| return { | |
| superHappy: function () { | |
| console.log(drugs.inquiry); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| data stuff[](otherstuff[], numStuff) | |
| event stdout(data) | |
| # prints an array to stdout | |
| # $a: array | |
| # $n: array length | |
| macro log_array($a, $n): | |
| with $i = 0: | |
| while $i < $n: |