Skip to content

Instantly share code, notes, and snippets.

View frozeman's full-sized avatar

Fabian Vogelsteller frozeman

View GitHub Profile
@frozeman
frozeman / mist_2015-02-04-174337_Fabians-MacBook-Pro.crash
Created February 5, 2015 13:44
mist_2015-02-04-174337_Fabians-MacBook-Pro
Process: mist [8284]
Path: /Users/USER/*/mist
Identifier: mist
Version: 0
Code Type: X86-64 (Native)
Parent Process: zsh [372]
Responsible: iTerm [241]
User ID: 501
Date/Time: 2015-02-04 17:43:35.647 +0100
Process: mist [1709]
Path: /Users/USER/*/mist
Identifier: mist
Version: 0
Code Type: X86-64 (Native)
Parent Process: zsh [503]
Responsible: iTerm [394]
User ID: 501
Date/Time: 2015-02-02 17:45:50.829 +0100
Process: mist [582]
Path: /Users/USER/*/mist
Identifier: mist
Version: 0
Code Type: X86-64 (Native)
Parent Process: zsh [503]
Responsible: iTerm [394]
User ID: 501
Date/Time: 2015-02-02 17:20:51.227 +0100
Process: mist [16296]
Path: /Users/USER/*/mist
Identifier: mist
Version: ???
Code Type: X86-64 (Native)
Parent Process: zsh [598]
Responsible: iTerm [594]
User ID: 501
Date/Time: 2015-02-01 23:13:41.641 +0100
contract JSON_Test {
event Log0(uint value);
event Log0Anonym (uint value) anonymous;
event Log1(bool indexed aBool, uint value);
event Log1Anonym(bool indexed aBool, uint value) anonymous;
event Log2(bool indexed aBool, address indexed aAddress, uint value);
event Log2Anonym(bool indexed aBool, address indexed aAddress, uint value) anonymous;
event Log3(bool indexed aBool, address indexed aAddress, bytes32 indexed aBytes32, uint value);
event Log3Anonym(bool indexed aBool, address indexed aAddress, bytes32 indexed aBytes32, uint value) anonymous;
event Log4(bool indexed aBool, address indexed aAddress, bytes32 indexed aBytes32, int8 aInt8, uint value);
@frozeman
frozeman / createContract.js
Last active September 5, 2018 18:57
Deploy contracts on Ethereum and reliable get the contract address
// -> Soldity
// **********
// Your Soldity contract
event Created(bytes32 indexed identifier);
contract MyContract {
function MyContract(bytes32 identifier) {
Created(identifier);
}
@frozeman
frozeman / wallet3.js
Created June 5, 2015 15:30
wallet3.sol
//sol Wallet
// Multi-sig, daily-limited account proxy/wallet.
// @authors:
// Gav Wood <g@ethdev.com>
// inheritable "property" contract that enables methods to be protected by requiring the acquiescence of either a
// single, or, crucially, each of a number of, designated owners.
// usage:
// use modifiers onlyowner (just own owned) or onlymanyowners(hash), whereby the same hash must be provided by
// some number (specified in constructor) of the set of owners (specified in the constructor, modifiable) before the
// interior is executed.
@frozeman
frozeman / gist:3ba4fec1c4ba3ce7a9f8
Last active August 29, 2015 14:23
Ethereum Meetup
https://github.com/frozeman/simple-dapp-example
./geth --rpccorsdomain "*" --rpc --networkid 8545 --minerthreads "1" --datadir <somePath>/testChain console
> admin.addPeer('enode://413a0d7a9b9e727dd7f20938401e2aa569549e075b1341eb4cc5073ee99fe8251b9d7d2be6d4a15bcc28c698589f17d0b2cfadda54a0f1aa6d0627082fefc5cb@10.10.42.108:30303')
@frozeman
frozeman / nodescript.js
Last active August 29, 2015 14:26
Ether balance distribution
var addresses = {
"3282791d6fd713f1e94f4bfd565eaa78b3a0599d": {
"balance": "1337000000000000000000"
},
"17961d633bcf20a7b029a7d94b7df4da2ec5427f": {
"balance": "229427000000000000000"
},
"493a67fe23decc63b10dda75f3287695a81bd5ab": {
"balance": "880000000000000000000"
},
@frozeman
frozeman / genesis.json
Created July 29, 2015 15:31
Ethereum genesis block
This file has been truncated, but you can view the full file.
{
"nonce": "0x0000000000000042",
"difficulty": "0x400000000",
"alloc": {
"3282791d6fd713f1e94f4bfd565eaa78b3a0599d": {
"balance": "1337000000000000000000"
},
"17961d633bcf20a7b029a7d94b7df4da2ec5427f": {
"balance": "229427000000000000000"
},