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
| JSON.stringify(web3.eth.traceReplayTransaction('0xad55c3aeb72eef58d5a921a0f30a2f761187ba10d1d6a888a9780beaf8b59547', ['vmTrace']).vmTrace) | |
| "{"code":"0x6000605f535961002880610013593961003b566100168061000e600039610024567397e65e29406ac9ee107fead2dd54ce5c29850855ff5b6000f35b816000f090506020526000600060006000600060205161c350f150fe61000080610066600039610066565b6000f3","ops":[{"cost":3,"ex":{"mem":null,"push":["0x0"],"store":null,"used":161133},"pc":0,"sub":null},{"cost":3,"ex":{"mem":null,"push":["0x5f"],"store":null,"used":161130},"pc":2,"sub":null},{"cost":12,"ex":{"mem":{"data":"0x00","off":95},"push":[],"store":null,"used":161118},"pc":4,"sub":null},{"cost":2,"ex":{"mem":null,"push":["0x60"],"store":null,"used":161116},"pc":5,"sub":null},{"cost":3,"ex":{"mem":null,"push":["0x28"],"store":null,"used":161113},"pc":6,"sub":null},{"cost":3,"ex":{"mem":null,"push":["0x28","0x28"],"store":null,"used":161110},"pc":9,"sub":null},{"cost":3,"ex":{"mem":null,"push":["0x13"],"store":null,"used":161107},"pc":10,"sub":null}, |
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
| JSON.stringify(web3.eth.traceReplayTransaction(web3.eth.getBlock(2686351).transactions[28], ['stateDiff', 'trace'])) | |
| "{"output":"0x","stateDiff":{"0x005f66aa91ec75541529fd0e8b22f951092fe424":{"balance":{"+":"0x0"},"code":{"+":"0x"},"nonce":{"+":"0x0"},"storage":{}},"0x00b6d5d0d0d4d79c72b5e184430931e0672cbf80":{"balance":{"+":"0x0"},"code":{"+":"0x"},"nonce":{"+":"0x0"},"storage":{}},"0x010e44f70fbd39e4d041c5f9faef6a6fc5299adc":{"balance":{"+":"0x0"},"code":{"+":"0x"},"nonce":{"+":"0x0"},"storage":{}},"0x0165b41d4ea59c2d2dcdaa6fb2d5a2ff23267637":{"balance":{"+":"0x0"},"code":{"+":"0x"},"nonce":{"+":"0x0"},"storage":{}},"0x01bd23438d8dfe758b598ee56abbdb8e81235193":{"balance":{"+":"0x0"},"code":{"+":"0x"},"nonce":{"+":"0x0"},"storage":{}},"0x02149269cc7660bde8e5735b22a2141ddf202cef":{"balance":{"+":"0x0"},"code":{"+":"0x"},"nonce":{"+":"0x0"},"storage":{}},"0x026c01900b5ec306467157d0da884cad3d1d084a":{"balance":{"+":"0x0"},"code":{"+":"0x"},"nonce":{"+":"0x0"},"storage":{}},"0x02c370b64a47254ea3fd3c46926e853c9b1 |
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
| JSON.stringify(web3.eth.traceReplayTransaction(web3.eth.getBlock(2686351).transactions[28], ['trace'])) | |
| "{"output":"0x","stateDiff":null,"trace":[{"action":{"callType":"call","from":"0xe9c9068240d8450da314f60804debfc194b72309","gas":"0x8cb28","input":"0x53f11cb3d546c2cef583ef9e9b1359ec6159a13d7055db70b78b41dad7496dd770eb80e20000000000000000000000000000000000000000000000000000000000000528","to":"0xa43ebd8939d8328f5858119a3fb65f65c864c6dd","value":"0x0"},"error":"Out of gas","subtraces":742,"traceAddress":[],"type":"call"},{"action":{"callType":"call","from":"0xa43ebd8939d8328f5858119a3fb65f65c864c6dd","gas":"0x0","input":"0x","to":"0xaa8d859deb07df3d3626b3d8c2b3427ae0abb6e1","value":"0x0"},"result":{"gasUsed":"0x0","output":"0x"},"subtraces":0,"traceAddress":[0],"type":"call"},{"action":{"callType":"call","from":"0xa43ebd8939d8328f5858119a3fb65f65c864c6dd","gas":"0x0","input":"0x","to":"0x7fd4486ce08bcedbd13a0dc5240ce3b851019252","value":"0x0"},"result":{"gasUsed":"0x0","output":"0x"},"subtraces":0,"traceAddre |
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
| JSON.stringify(web3.eth.getBlock(2686351).transactions.map(t => web3.eth.getTransactionReceipt(t))) | |
| "[{"blockHash":"0xf8cc76d0d05cc059893d979569f7637f32f415496a250c0e1bd35976e7a67151","blockNumber":2686351,"contractAddress":null,"cumulativeGasUsed":28210,"gasUsed":28210,"logs":[],"logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","root":"0xd6025228164e7c8efd1c93e055dc8bd89900a542d86ce3e3c952d0b54cc3bdfc","transactionHash":"0x4ef7fd73084b5665dfa63450af2a7d2a2ce0bbf38aa4189555303fb81f0532f4","transactionIndex":0},{"blockHash":"0xf8cc76d0d05cc |
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
| #[test] | |
| fn simple_test() { | |
| use std; | |
| use client; | |
| use db; | |
| use util as ethcore_util; | |
| use state_db; | |
| use state; |
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
| // Copyright 2015, 2016 Ethcore (UK) Ltd. | |
| // This file is part of Parity. | |
| // Parity is free software: you can redistribute it and/or modify | |
| // it under the terms of the GNU General Public License as published by | |
| // the Free Software Foundation, either version 3 of the License, or | |
| // (at your option) any later version. | |
| // Parity is distributed in the hope that it will be useful, | |
| // but WITHOUT ANY WARRANTY; without even the implied warranty of |
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
| enode://57cec80b92eb2b7235045daaa47e8c9c750066074f8df01f9589fa988786dfcd7a7bebf30e4cb6a18182104cbc619b03b7d5ddb0e6d7a09e5e94ecce282071bb@176.9.247.205:30303 | |
| enode://ceb5c0f85eb994dbe9693bf46d99b03f6b838d17cc74e68d5eb003171ff39e5f120b17f965b267c319303f94d80b9d994b77062fb1486d76ce95d9f3d8fe1cb4@46.101.122.141:30303 | |
| enode://b0f26a43924f94f831b89e211d9e65476ad115b334b4b306bb1b522431e7cdfcafbb8a2fc48d6943e39445d6f410255ef94913e5c564945644e781eb1a29e29e@50.155.199.54:30303 | |
| enode://1d0b31b5bb4d693bd3591a75cf89c0d9ff914abfa5a6f07ac36319cdd920a87c9957e2cc5a2c0f22e168d8f7d3b3f7f4ff0a0e71aa2c825d2fc5cf61258fcffb@46.4.58.205:33333 | |
| enode://4eabb9f637fb497ae5d5b782818a421f148fee95b0d3fd0e7393ae695ad06cff3faa0b22230b90a5be74870474fb8ef1fc7d7c965bc2438d9f5cdf1fd2c6f8a5@52.29.130.210: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
| import SolidityFunction from 'web3/lib/web3/function'; | |
| import Web3 from 'web3'; | |
| var isManaged = typeof(window.web3) == "object"; | |
| export var web3 = isManaged ? window.web3 : new Web3(new Web3.providers.HttpProvider("http://localhost:8545")); | |
| if (web3.eth.accounts.indexOf(web3.eth.defaultAccount) == -1) { | |
| var best = 0; | |
| web3.eth.accounts.forEach(function(a) { | |
| var b = +web3.eth.getBalance(a); |
This file has been truncated, but you can view the full file.
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
| ➜ parity git:(name-and-meta-in-accounts) ✗ cargo run --bin parity -- --chain=testnet --jsonrpc-apis=web3,eth,net,ethcore,personal,traces,ethcore_set | |
| Running `target/debug/parity --chain=testnet --jsonrpc-apis=web3,eth,net,ethcore,personal,traces,ethcore_set` | |
| 2016-07-23 10:49:54 Starting Parity/v1.3.0-unstable-c4196a0-20160720/x86_64-macos/rustc1.10.0 | |
| 2016-07-23 10:49:54 Using state DB journalling strategy fast | |
| 2016-07-23 10:49:54 Configured for Morden using Ethash engine | |
| 2016-07-23 10:49:54 Restored mismatched best block. Was: 264c532403408e5fb82b4fcae5a36692ace6c97dbb480a9d406f467ead3bb7fc, new: 5e7089c9c791bced4a9765b6a84efd49bec680ecb0d515188ab3ad53fa0ba3cb | |
| 2016-07-23 10:49:54 Restored mismatched best block. Was: 264c532403408e5fb82b4fcae5a36692ace6c97dbb480a9d406f467ead3bb7fc, new: 4dc61268a506500d013d77bd8cb70749d0f203c4dbbc82fffb8284d868a7133a | |
| 2016-07-23 10:49:54 Restored mismatched best block. Was: 264c532403408e5fb82b4fcae5a36692ace6c97dbb480a9d406f467ead3bb7fc, new: 174dc3ad7d5bf3112a439844cbe7 |
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
| [ | |
| "0xd4fe7bc31cedb7bfb8a345f31e668033056b2728", | |
| "0xb3fb0e5aba0e20e5c49d252dfd30e102b171a425", | |
| "0x2c19c7f9ae8b751e37aeb2d93a699722395ae18f", | |
| "0xecd135fa4f61a655311e86238c92adcd779555d2", | |
| "0x1975bd06d486162d5dc297798dfc41edd5d160a7", | |
| "0xa3acf3a1e16b1d7c315e23510fdd7847b48234f6", | |
| "0x319f70bab6845585f412ec7724b744fec6095c85", | |
| "0x06706dd3f2c9abf0a21ddcc6941d9b86f0596936", | |
| "0x5c8536898fbb74fc7445814902fd08422eac56d0", |