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
1PK45arxipsfbv85GM2khYyhsxZpY3yUGP |
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
Verifying that +kobigurk is my openname (Bitcoin username). https://onename.com/kobigurk |
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
2015/04/06 17:58:29 [SERV] Protocol Version: 60, Network Id: 0 | |
2015/04/06 17:58:30 [POW] Making Cache | |
2015/04/06 17:58:31 [POW] Took: 768.224519ms | |
2015/04/06 17:58:31 [SERV] Bootstrap URL enode://09fbeec0d047e9a37e63f60f8618aa9df0e49271f3fadb2c070dc09e2099b95827b63a8b837c6fd01d0802d457dd83e3bd48bd: does not contain node ID | |
2015/04/06 17:58:31 [SERV] Bootstrap URL [email protected]:30303: invalid URL scheme, want "enode" | |
2015/04/06 17:58:31 [CLI] Starting Geth/v0.9.7/linux/go1.4.2 | |
2015/04/06 17:58:31 [P2P Server] Starting Server | |
2015/04/06 17:58:31 [P2P NAT] add mapping: udp 30303 -> 30303 (ethereum discovery) using UPnP or NAT-PMP | |
2015/04/06 17:58:32 [P2P NAT] mapping error: no devices discovered | |
2015/04/06 17:58:32 [P2P Discovery] Listening, enode://75273a0eb76565a651131420ee55d751a8ed45cfe958df9aed3bd07ca5b24689edc5dbeb5ed5fdefd0a1f00b33f11af07aa72bbf6b880288ad32fd7549fec3be@[::]: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
# !/bin/bash | |
# bash cluster <cluster_root> <number_of_clusters> <network_id> <runid> <local_IP> [[params]...] | |
# sets up a local ethereum network cluster of nodes | |
# - <cluster_root> is the root directory for the cluster, the nodes are set up | |
# - <number_of_clusters> is the number of clusters | |
# with datadir `<root>/01`, `<root>/02`, ... | |
# - new accounts are created for each node | |
# - they launch on port 30301, 30302, ... | |
# - they start rpc on port 8101, 8102, ... |
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
contract token { | |
mapping (address => uint) balances; | |
// Initializes contract with 10 000 tokens to the creator of the contract | |
function token() { | |
balances[msg.sender] = 10000; | |
} | |
// Very simple trade function | |
function sendToken(address receiver, uint amount) returns(bool sufficient) { | |
if (balances[msg.sender] < amount) return false; |
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
self = <ethereum.abi.ContractTranslator instance at 0x7fae30eeb5a8> | |
full_signature = [{'constant': False, 'inputs': [{'name': 'receiver', 'type': 'address'}, {'name': 'amount', 'type': 'uint256'}], 'name...'name': 'getBalance', 'outputs': [{'name': 'balance', 'type': 'uint256'}], ...}, {'inputs': [], 'type': 'constructor'}] | |
def __init__(self, full_signature): | |
self.function_data = {} | |
self.event_data = {} | |
v = vars(self) | |
print full_signature | |
if is_string(full_signature): | |
full_signature = json_decode(full_signature) |
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
contract token { | |
mapping (address => uint) balances; | |
// Initializes contract with 10 000 tokens to the creator of the contract | |
function token() { | |
balances[msg.sender] = 10000; |
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
contract multisig { | |
function multisig() { | |
// when a contract has a function with the same name as itself, | |
// then that function is run at startup | |
m_numOwners = 1; | |
m_required = m_numOwners; | |
m_owners[msg.sender] = m_numOwners; | |
} | |
function transact(address _to, uint _value) external onlyowner { |
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
[ | |
{ | |
"name" : "node-app", | |
"script" : "app.js", | |
"log_date_format" : "YYYY-MM-DD HH:mm Z", | |
"merge_logs" : false, | |
"watch" : false, | |
"exec_interpreter" : "node", | |
"exec_mode" : "fork_mode", | |
"env": |
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 "owned"; | |
contract NameReg is owned { | |
event AddressRegistered(address indexed account); | |
event AddressDeregistered(address indexed account); | |
function NameReg() { | |
toName[this] = "NameReg"; | |
toAddress["NameReg"] = this; | |
AddressRegistered(this); |
OlderNewer