Skip to content

Instantly share code, notes, and snippets.

Avatar

Ev evertonfraga

View GitHub Profile
View git-tags.sh
#!/bin/bash
# Saving current directory
CWD=`pwd`
ALL_REPOS="account block blockchain tx vm"
# initialize/clean tmp file
echo "" > all-tags.txt
View Instructions
Add the script directory to your $PATH environment variable.
Run:
`public-package`
@evertonfraga
evertonfraga / ethereum-dev-mode.md
Last active Jul 16, 2020
Set up an Ethereum development network in two minutes
View ethereum-dev-mode.md
View ethereumjs-config-localdev.sh
#!/bin/sh
# from 1.1.1 production to 2.0.0 development
npm remove @ethereumjs/config-nyc @ethereumjs/config-tsc @ethereumjs/config-prettier @ethereumjs/config-tslint
ETHEREUMJS_CONFIG_PATH=/Users/evertonfraga/Projects/Ethereum/ethereumjs-config
npm i --save-dev \
@ethereumjs/config-coverage@file:$ETHEREUMJS_CONFIG_PATH/packages/coverage \
View test tree.md
graph TD
  vm("vm (11)")
  tx("tx (9)")
  bl("block (9)")
  bc("blockchain (5)")
  co("common (4)")
  ac("account (5)")
  
  tx --> bl
View wrap-ethereum-test.sh
#!/bin/sh
#
# It wraps the provided JSON file and adds some metadata to it (source, commit, date).
# Based on these instructions: https://github.com/ethereumjs/ethereumjs-block/issues/55
#
# Usage:
# ./wrap-ethereum-test.sh "https://raw.githubusercontent.com/ethereum/tests/eea4bfbeec5524b2e2c0ff84c8a350fcb3edec23/BasicTests/difficultyEIP2384.json"
# The url must contain the commit hash and should point to a raw JSON file
#
@evertonfraga
evertonfraga / convert-genesis.md
Created Nov 8, 2019
genesis balance formats
View convert-genesis.md

1. exporting fresh genesis.json for mainnet and ropsten with balances in hex

This PR adds dumpgenesis capability to geth: https://github.com/ethereum/go-ethereum/pull/20191

git clone git@github.com:etclabscore/ethereum.go-ethereum.git etc-geth
cd etc-geth
git checkout etclabscore:feat/cmd-dumpgenesis
make geth

./build/geth dumpgenesis > genesis-mainnet.json
View MyToken.sol
pragma solidity ^0.4.8;
contract tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData); }
contract MyToken {
/* Public variables of the token */
string public standard = 'Token 0.1';
string public name;
string public symbol;
uint8 public decimals;
@evertonfraga
evertonfraga / 0.11.0 release candidate.md
Last active Jun 22, 2018
Mist browser and Ethereum Wallet 0.11.0-rc
View 0.11.0 release candidate.md
File Checksum (SHA256)
Ethereum-Wallet-installer-0-11-0-rc.exe f5431a32a419fdd51a379a02806a0d1cf9fa6a80213661aba2e4713731010615
Ethereum-Wallet-linux32-0-11-0-rc.deb 161f69d2546999363c64b1c85f938469a37afc51719ed48d4f4b02f33fd0206e
Ethereum-Wallet-linux32-0-11-0-rc.zip 9da6da638b3cb851df78fbe5bf65229147e5a43555463da65ef3a31f7cf93034
Ethereum-Wallet-linux64-0-11-0-rc.deb dd32ee3c36e4dc2ef04a118b4a6a3402097d722947b09fac9f8914672df39642
[Ethereum-Wallet-linux64-0-11-0-rc.zip](http://ethereum-mist.s3.amazonaws.com/mist/0.11.
View gist:245addbaa4f9b22197dc78bd45032554
http://download1041.mediafire.com/hc5zv5fb018g/mipd74z5gai6xtm/Presentation+1+Tom+Creighton.mp4
http://download1632.mediafire.com/el9htaigy5xg/esnd0bbmba5phsv/Presentation+2+Dan+Finlay.mp4
http://download614.mediafire.com/p9rmwl2obirg/gn3lglmmw9ed6r9/Presentation+3+Dan+Ternyak.mp4
http://download1953.mediafire.com/isa189kx5egg/oo2cjibijwnwnpg/Presentation+4+Richard+Burton.mp4
http://download1301.mediafire.com/fsohdx961d9g/0cdtbimsm9fk8hw/Presentation+5+Alex+Van+de+Sande.mp4
http://download31.mediafire.com/v0ha7iwetlag/oa11rxa6a024w4x/Presentation+6+Philippe+Castonguay+and+Panashe+Mahachi.mp4
http://download1511.mediafire.com/6o2r27h50ycg/95n4q9a65tuj4e0/Presentation+7+Viktor+Radchenko.mp4
http://download1608.mediafire.com/t4xf41g7gbbg/5tjpkgg6859f8tc/Presentation+8+Sid+Coelho-Prabhu.mp4
http://download1085.mediafire.com/ye4vakh4leqg/xtmbjv5atxgxkdc/Presentation+9+Andy+Tudhope.mp4
http://download1424.mediafire.com/nauwtoxyu1tg/8ubrlfjsl3zzt59/Presentation+10+Beltran+Berrocal.mp4
You can’t perform that action at this time.