This file contains 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
#!/usr/bin/env bash | |
function run_installer() | |
{ | |
####### Init vars | |
HOMEBREW_PREFIX=/usr/local | |
HOMEBREW_CACHE=/Library/Caches/Homebrew | |
HOMEBREW_REPO=https://github.com/Homebrew/homebrew | |
OSX_REQUIERED_VERSION="10.7.0" |
This file contains 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 Web3 = require('web3'); | |
var web3 = new Web3(); | |
web3.setProvider(new web3.providers.HttpProvider('http://localhost:8545')); | |
web3.eth.defaultAccount = '0x4d6bb4ed029b33cf25d0810b029bd8b1a6bcab7b'; | |
var request = require('request'); | |
var express = require('express'); | |
var app = express(); | |
var OracleContract = web3.eth.contract([{"constant":true,"inputs":[],"name":"get_timestamp","outputs":[{"name":"","type":"uint32"}],"type":"function"},{"constant":true,"inputs":[],"name":"get","outputs":[{"name":"","type":"uint224"}],"type":"function"},{"constant":true,"inputs":[],"name":"data","outputs":[{"name":"timestamp","type":"uint32"},{"name":"value","type":"uint224"}],"type":"function"},{"constant":false,"inputs":[{"name":"_new","type":"address"}],"name":"set_owner","outputs":[],"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint224"}],"name":"note","outputs":[],"type":"function"},{"inputs": |
This file contains 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:(stable-ws) cargo run --release -- --signer -l "ws=trace" | |
Updating git repository `https://github.com/ethcore/ws-rs.git` | |
Compiling ws v0.5.0 (https://github.com/ethcore/ws-rs.git?branch=testing#a32558d4) | |
Compiling ethcore-signer v1.3.0 (file:///Users/gav/Core/parity/signer) | |
Compiling parity v1.3.0 (file:///Users/gav/Core/parity) | |
Running `target/release/parity --signer -l ws=trace` | |
2016-06-27 15:34:32 INFO:signer: New authentication token generated. | |
This key code will authorise your System Signer UI: 7zQk-yPpp-GX7o-Bj1V | |
2016-06-27 15:34:33 INFO:parity::configuration: Using a conversion rate of Ξ1 = US$13.96 (17055532000 wei/gas) | |
2016-06-27 15:34:33 INFO:ethcore::service: Starting Parity/v1.3.0-unstable-593d947-20160626/x86_64-macos/rustc1.9.0 |
This file contains 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
07/12/2016 13:51:41 | |
Public Pad Version 380 Saved July 12, 2016 | |
All accounts that used the recursive call exploit in their childDAO (all attackerDAOs, white hat and black hat) as well as the main DAO account (0xbb9bc244d798123fde783fcc1c72d3bb8c189413) and its extraBalance account (0x807640A13483f8AC783c557fcDF27Be11ea4AC7A) are enumerated into a list L. | |
At the beginning of some block X (to be determined), all ether throughout all accounts in L will be transferred to a contract account (C). | |
This file contains 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", |
This file has been truncated, but you can view the full file.
This file contains 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 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 contains 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 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 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; |