Skip to content

Instantly share code, notes, and snippets.

View frozeman's full-sized avatar

Fabian Vogelsteller frozeman

View GitHub Profile
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 / token.md
Last active October 23, 2022 00:47
Token proposal

This is outdated: The ERC-20 is here: ethereum/EIPs#20

Token

Methods

totalSupply

@frozeman
frozeman / mistweb3.js
Last active July 22, 2021 01:00
Mist web3 loading proposal
/*
Basically "web3" comes from Mist,
but "Web3" CAN come from the dapp.
A Dapp has 3 ways to use web3.
2. and 3. would work when in Mist and outside.
*/
// 1. simply use, web3 comes already defined
@frozeman
frozeman / MyToken.js
Last active March 9, 2018 09:20
MyToken solidity contract
/*
This creates a public tradeable fungible token in the Ethereum Blockchain.
https://github.com/ethereum/wiki/wiki/Standardized_Contract_APIs
Unmodified this will create a cryptoasset with a fixed market cap
wholly owned by the contract creator. You can create any function
to change this contract, like allowing specific rules for the issuance,
destruction and freezing of any assets. This contract is intended for
educational purposes, you are fully responsible for compliance with
present or future regulations of finance, communications and the
@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.

@frozeman
frozeman / test-genesis.json
Created August 10, 2015 15:22
Test genesis block
{
"nonce": "0x0000000000000042",
"difficulty": "0x1",
"alloc": {
"990ccf8a0de58091c028d6ff76bb235ee67c1c39": {
"balance": "200909800000000000000000000"
},
"343c98e2b6e49bc0fed722c2a269f3814ddd1533": {
"balance": "1000009800000000000000000000"
}
@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"
},
@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 / 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 / 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.