Skip to content

Instantly share code, notes, and snippets.

View evertonfraga's full-sized avatar

Ev evertonfraga

View GitHub Profile
@evertonfraga
evertonfraga / hack.sh
Last active June 6, 2023 17:23 — forked from mbinna/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with useful tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://gist.githubusercontent.com/evertonfraga/8aea6566222b2e6089c9957099a153ee/raw/353f5ed63694b976f885ba075e10f2fc1b16f78e/hack.sh | sh
#
{
"name": "Uniswap Token Pairs",
"timestamp": "2021-02-18T18:12:31.882432+00:00",
"version": {
"major": 0,
"minor": 355,
"patch": 0
},
"tags": {},
"logoURI": "ipfs://QmNa8mQkrNKp1WEEeGjFezDmDeodkWRevGFN8JCV7b4Xir",
@evertonfraga
evertonfraga / token-list.json
Created October 23, 2021 01:53
Token List Example
{"name":"1inch","timestamp":"2021-06-24T18:24:17+00:00","version":{"major":137,"minor":0,"patch":0},"keywords":["1inch","default","list"],"tokens":[{"address":"0x006BeA43Baa3f7A6f765F14f10A1a1b08334EF45","chainId":1,"name":"Stox","symbol":"STX","decimals":18,"logoURI":"https://tokens.1inch.exchange/0x006bea43baa3f7a6f765f14f10a1a1b08334ef45.png"},{"address":"0x0327112423F3A68efdF1fcF402F6c5CB9f7C33fd","chainId":1,"name":"PieDAOBTC++","symbol":"BTC","decimals":18,"logoURI":"https://tokens.1inch.exchange/0x0327112423f3a68efdf1fcf402f6c5cb9f7c33fd.png"},{"address":"0x0417912b3a7AF768051765040A55BB0925D4DDcF","chainId":1,"name":"LiquidityDividendsProtocol","symbol":"LID","decimals":18,"logoURI":"https://tokens.1inch.exchange/0x0417912b3a7af768051765040a55bb0925d4ddcf.png"},{"address":"0x04Fa0d235C4abf4BcF4787aF4CF447DE572eF828","chainId":1,"name":"UMAVotingTokenv1","symbol":"UMA","decimals":18,"logoURI":"https://tokens.1inch.exchange/0x04fa0d235c4abf4bcf4787af4cf447de572ef828.png"},{"address":"0x07597255910a51509
Geth v1.10.2 is a maintenance release, containing bug fixes and a few minor new features.
#### Geth command changes
- Mining work package notifications can now be changed to contain the complete pending block header instead of a work package array. To enable this functionality, use the `--miner.notify.full` flag ([#22558](https://github.com/ethereum/go-ethereum/pull/22558))
- Geth will now open chain databases in read-only mode when performing commands that should not modify the database. This fixes several cases where indexing operations and snapshot generation would run as part of commands like `geth inspect` ([#22498](https://github.com/ethereum/go-ethereum/pull/22498))
- Geth now supports JSON log output using the `--log.json` flag ([#22341](https://github.com/ethereum/go-ethereum/pull/22341))
- The `geth copydb` command has been removed because it had been broken for quite a while ([#22501](https://github.com/ethereum/go-ethereum/pull/22501))
- The new `geth db dumptrie` command shows the state tree en
@evertonfraga
evertonfraga / Instructions
Created September 16, 2020 21:47
Public package
Add the script directory to your $PATH environment variable.
Run:
`public-package`
#!/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 \
#!/bin/bash
# Saving current directory
CWD=`pwd`
ALL_REPOS="account block blockchain tx vm"
# initialize/clean tmp file
echo "" > all-tags.txt
@evertonfraga
evertonfraga / test tree.md
Last active December 6, 2019 13:37
test tree
graph TD
  vm("vm (11)")
  tx("tx (9)")
  bl("block (9)")
  bc("blockchain (5)")
  co("common (4)")
  ac("account (5)")
  
 tx --> bl
#!/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
#