Skip to content

Instantly share code, notes, and snippets.

View frozeman's full-sized avatar

Fabian Vogelsteller frozeman

View GitHub Profile
@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 / isSynching.md
Last active September 9, 2015 15:04
eth_isSyncing proposal

This method should notify a dapp when the node is syncing (e.g. importing more than 10 blocks), so that dapps can stop asking nodes or process incoming blocks for performance reasons.

We might add fields in the future for state db syncing.

eth_syncing

Returns an object object with data about the sync status.

DB = {};
DB.movies = new Meteor.Collection('movies');
DB.ratings = new Meteor.Collection('ratings');
/*
* OfflineCollections, works as wrapper to easily clean your local collections
*/
OfflineCollections = (function(){
// PRIVATE
@frozeman
frozeman / gist:8206698
Last active January 1, 2016 21:58
jQuery testing stubs. Where the stub can be overwritten e.g. by setting jQueryStub.prototype.find = ...;
var $, jQueryStub;
(function () {
"use strict";
var emptyFunction = function () {
};
var selfReturn = function(){
return new jQueryStub();
};
Process: Electron [17945]
Path: /Users/USER/Sites/*/Ethereum-Wallet.app/Contents/MacOS/Electron
Identifier: com.ethereum.wallet
Version: 0.3.8 (0.3.8)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Electron [17945]
User ID: 501
Date/Time: 2016-01-07 17:04:31.448 +0100
@frozeman
frozeman / contract.js
Last active February 17, 2016 17:13
New contract object
// un"addresses" contract object
var myContrac2 = new web3.eth.contract(abi)
myContrac2.address = '0x12345678...'; // add address later
// initiate with address
var myContrac = new web3.eth.contract(abi, address)
// deploy contract
eventemitter = new web3.eth.contract(abi).deploy(param1, {data: '0x23456'});

Keybase proof

I hereby claim:

  • I am frozeman on github.
  • I am frozeman (https://keybase.io/frozeman) on keybase.
  • I have a public key whose fingerprint is 3452 1ABF 002E C4CF 9F51 BB5F E51E ADA7 7F1A 4124

To claim this, I am signing this object:

## Full changelog
- Client binary refactor - asking user for permission before updating Geth (#1383)
- **.gitignore:** add 'npm-debug.log' (#1310)
- **codeclimate:** add config (#1381)
- **codeclimate:** enable GPA rating (#1410)
- **codeclimate:** fix eslint configuration in progress (#1389)