Skip to content

Instantly share code, notes, and snippets.

View GNSPS's full-sized avatar
❤️
Spreading the love

Gonçalo Sá GNSPS

❤️
Spreading the love
View GitHub Profile

Keybase proof

I hereby claim:

  • I am gnsps on github.
  • I am gnsps (https://keybase.io/gnsps) on keybase.
  • I have a public key ASDWTWKdxSyiEOANCbtGq_PvJXxY0CXFMqxQzUj-fWvHEQo

To claim this, I am signing this object:

@GNSPS
GNSPS / rinkeby_faucet.md
Created April 30, 2017 02:09
Rinkeby Faucet Gist Auth

0x019EdcB493Bd91e2b25b70f26D5d9041Fd7EF946

@GNSPS
GNSPS / june_19_parity_attack.md
Last active July 20, 2017 00:52
my compiled findings and conclusions about June 19th Parity wallet attack addresses
@GNSPS
GNSPS / solc-changer
Last active December 7, 2017 01:19
Bash script meant to easily change the version of `solc` that comes packaged with Truffle when you install it globally
#!/bin/bash
# ------------------------------------------------------------------
# [GNSPS] Truffle's solc version changer
#
# Bash script to change the version of the solc the
# Truffle module comes packaged with.
#
#
# Installation: save this file as
#
@GNSPS
GNSPS / ProxyFactory.sol
Last active October 9, 2021 08:47
Improved `delegatecall` proxy contract factory (Solidity) [v0.0.5]
/***
* Shoutouts:
*
* Bytecode origin https://www.reddit.com/r/ethereum/comments/6ic49q/any_assembly_programmers_willing_to_write_a/dj5ceuw/
* Modified version of Vitalik's https://www.reddit.com/r/ethereum/comments/6c1jui/delegatecall_forwarders_how_to_save_5098_on/
* Credits to Jorge Izquierdo (@izqui) for coming up with this design here: https://gist.github.com/izqui/7f904443e6d19c1ab52ec7f5ad46b3a8
* Credits to Stefan George (@Georgi87) for inspiration for many of the improvements from Gnosis Safe: https://github.com/gnosis/gnosis-safe-contracts
*
* This version has many improvements over the original @izqui's library like using REVERT instead of THROWing on failed calls.
* It also implements the awesome design pattern for initializing code as seen in Gnosis Safe Factory: https://github.com/gnosis/gnosis-safe-contracts/blob/master/contracts/ProxyFactory.sol
Verifying my identity on Peepeth.com 0x54488ad9f88cf00397de235d343c421dcb4d5245