Skip to content

Instantly share code, notes, and snippets.

View AugustoL's full-sized avatar

Augusto Lemble AugustoL

View GitHub Profile
@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);
@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);
0xd6f6c1c740df8e6137fc88c89fe0829b645abb2e
@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) {