Skip to content

Instantly share code, notes, and snippets.

View czepluch's full-sized avatar

Jacob Stenum Czepluch czepluch

  • epoch73
  • Copenhagen, Denmark
View GitHub Profile
+++ genesis +++
Root: 7e204dc9cfb7acdf062ff0b8052f7fcb0b7e6593754773967932ce458d134af3
Hash: 32d9162f861a01bc8274e70b3cdb9d688fd7d8566f2f8c25cf1a882f244081c4
2015/03/27 12:39:28 [CHAIN] Last block (#0) 32d9162f861a01bc8274e70b3cdb9d688fd7d8566f2f8c25cf1a882f244081c4 TD=0
2015/03/27 12:39:28 [CLI] Main address 3eaab80d41d0710c00ff0fc8fbaea100215a34ad
2015/03/27 12:39:28 [CLI] Starting Ethereum(G)/v0.8.6/linux/go1.4.2
2015/03/27 12:39:28 [P2P Server] Starting Server
2015/03/27 12:39:30 [P2P Discovery] Listening, enode://cceb34ddbfb074286828332db186f0646e1e4ecb5121f930110cd5cf7b7d7b929d6249d00b2dfd875dab11f7b198636aa17e203d7a55adda9787c025d0ee7029@[::]:30303
2015/03/27 12:39:30 [Blockpool] Started
2015/03/27 12:39:30 [P2P NAT] mapping error: no devices discovered
-- Configuring done
CMake Error at libethash/CMakeLists.txt:41 (add_library):
Cannot find source file:
io.c
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
<html>
<head>
<title>JavaScript API</title>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js">
<script type="text/javascript" src="~/cpp-ethereum/libjsqrc/ethereumjs/dist/ethereum.js"></script>
<script type="text/javascript">
///First web3.eth.watch code to monitor coinbase
def gen_list() do
gen_list([])
end
# Empty list. Adding first element
defp gen_list([]) do
gen_list([ gen_number | [] ])
end
# When list is non-empty and has less than 7 elements
defp gen_list(list) when length(list) < 7 do
/// Iteratable data structure of the type [bytes32 k, NettingContract v]
library IterableMapping
{
// Might have to define the NettingContract type here for insertion
struct itmap {
mapping(bytes32 => IndexValue) data;
KeyFlag[] keys;
uint size;
}
struct IndexValue { uint keyIndex; NettingContract value; }
/*
Wrapper and tests for the data structure of ChannelManager contracts
To run tests, use Solidity online compiler and execute the test funtions
One should see some 1's indicating success.
*/
/// @dev Models a uint -> uint mapping where it is possible to iterate over all keys.
library IterableMapping
{
[ { "constant": true, "inputs": [], "name": "name", "outputs": [ { "name": "", "type": "string", "value": "meetupCoin", "displayName": "" } ], "type": "function", "displayName": "name" }, { "constant": true, "inputs": [], "name": "decimals", "outputs": [ { "name": "", "type": "uint8", "value": "0", "displayName": "" } ], "type": "function", "displayName": "decimals" }, { "constant": true, "inputs": [ { "name": "", "type": "address", "index": 0, "typeShort": "address", "bits": "", "displayName": "", "template": "elements_input_address" } ], "name": "balanceOf", "outputs": [ { "name": "", "type": "uint256", "value": "0", "displayName": "" } ], "type": "function", "displayName": "balance Of" }, { "constant": true, "inputs": [], "name": "symbol", "outputs": [ { "name": "", "type": "string", "value": ":)", "displayName": "" } ], "type": "function", "displayName": "symbol" }, { "constant": false, "inputs": [ { "name": "_to", "type": "address", "index": 0, "typeShort": "address", "bits": "", "displayName": "&thinsp;
0x68ceCE29bdc5149aCCb1Be6946819202a1Ebe8f4
contract MyToken{
string public name;
string public symbol;
uint8 public decimals;
mapping (address => uint256) public balanceOf;
event Transfer(address indexed from, address indexed to, uint256 value);
ADDRESS OF DAO: 0x3d8377416185EC618ccAe85514A09129B63dBC06
interface:
[ { "constant": true, "inputs": [ { "name": "", "type": "uint256", "index": 0, "typeShort": "uint", "bits": "256", "displayName": "", "template": "elements_input_uint" } ], "name": "proposals", "outputs": [ { "name": "recipient", "type": "address" }, { "name": "amount", "type": "uint256" }, { "name": "description", "type": "string" }, { "name": "votingDeadline", "type": "uint256" }, { "name": "openToVote", "type": "bool" }, { "name": "proposalPassed", "type": "bool" }, { "name": "numberOfVotes", "type": "uint256" }, { "name": "proposalHash", "type": "bytes32" } ], "type": "function", "displayName": "proposals" }, { "constant": false, "inputs": [ { "name": "proposalNumber", "type": "uint256", "index": 0, "typeShort": "uint", "bits": "256", "displayName": "proposal Number", "template": "elements_input_uint" }, { "name": "transactionBytecode", "type": "bytes", "index": 1, "typeShort": "bytes", "bits": "", "displayName": "transaction Bytecode"