Skip to content

Instantly share code, notes, and snippets.

View AugustoL's full-sized avatar

Augusto Lemble AugustoL

View GitHub Profile
@AugustoL
AugustoL / ECRecover.sol
Created May 29, 2017 20:40
ECRecover Solidity Library
pragma solidity ^0.4.8;
// Based on https://gist.github.com/axic/5b33912c6f61ae6fd96d6c4a47afde6d
library ECRecover {
// ECRecovery Methods
// Duplicate Solidity's ecrecover, but catching the CALL return value
function safer_ecrecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal returns (bool, address) {
0xd6f6c1c740df8e6137fc88c89fe0829b645abb2e
@AugustoL
AugustoL / LifInterface.sol
Created July 11, 2017 13:09
Lif Token Interface
pragma solidity ^0.4.11;
import 'zeppelin-solidity/contracts/token/ERC20.sol';
/**
* @title Lif token interface
*/
contract LifInterface is ERC20 {
uint public maxSupply;
function approveData(address spender, uint value, bytes data, bool doCall);
@AugustoL
AugustoL / ERC20.sol
Created July 11, 2017 20:10
ERC20 interface
pragma solidity ^0.4.11;
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
contract ERC20 {
uint256 public totalSupply;
function balanceOf(address who) constant returns (uint256);
0xfcae8E8b8696ded91E4929e93855Ab3445D5B2e9
@AugustoL
AugustoL / Eternal Storage ERC.md
Created March 14, 2018 02:50
Eternal Storage ERC Draft
EIP: XXX
Title: ERCXXX Eternal Storage
Author: Augusto Lemble <me@augustolemble.com>
Type: Contract Standard
Category: ERC
Status: Draft
Created: 2018-03-14

Keybase proof

I hereby claim:

  • I am augustol on github.
  • I am augustol (https://keybase.io/augustol) on keybase.
  • I have a public key ASBlgHW6GL59njMzwiypFO-DMakYQD_XNH74gZIIbVx-KQo

To claim this, I am signing this object:

@AugustoL
AugustoL / contracts
Created June 8, 2018 21:28
Contracts
pragma solidity ^0.4.23;
/**
* @title Example1
* @dev Contact that receives ETH and release it at a certain time
*/
//Task: Find the issue
contract Example1 {
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.6.10;
pragma experimental ABIEncoderV2;
import "https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/master/contracts/math/SafeMath.sol";
/// @title ERC20 Guild
/// @author github:AugustoL
/// @notice This smart contract has not be audited.
/// @dev Extends an ERC20 funcionality into a Guild.