Skip to content

Instantly share code, notes, and snippets.

View VincentDebug's full-sized avatar
🎯
Focusing

Vincent VincentDebug

🎯
Focusing
  • ° ☾ ☆ ¸. ¸ ★ :.  . • ○ ° ★
View GitHub Profile
@VincentDebug
VincentDebug / IERC20.sol
Created August 28, 2020 06:18
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.6+commit.6c089d02.js&optimize=true&gist=
pragma solidity >=0.5.16;
interface IERC20 {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint8);
function totalSupply() external view returns (uint);
@VincentDebug
VincentDebug / IERC20.sol
Created August 28, 2020 05:37
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.16+commit.9c3226ce.js&optimize=true&gist=
pragma solidity >=0.5.16;
interface IERC20 {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint8);
function totalSupply() external view returns (uint);
@VincentDebug
VincentDebug / Creating A True Singleton In Node.js, With ES6 Symbols
Last active December 15, 2018 05:23
Creating A True Singleton In Node.js, With ES6 Symbols
// https://derickbailey.com/2016/03/09/creating-a-true-singleton-in-node-js-with-es6-symbols/
// create a unique, global symbol name
// -----------------------------------
const FOO_KEY = Symbol.for("My.App.Namespace.foo");
// check if the global object has this symbol
// add it if it does not have the symbol, yet
// ------------------------------------------
@VincentDebug
VincentDebug / TokenTimelock.sol
Created November 3, 2018 02:44
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.25-nightly.2018.5.16+commit.3897c367.js&optimize=true&gist=
pragma solidity ^0.4.24;
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
@VincentDebug
VincentDebug / keybase.md
Created July 20, 2017 09:26
Keybase proof

Keybase proof

I hereby claim:

  • I am wenshenjun on github.
  • I am shenjun (https://keybase.io/shenjun) on keybase.
  • I have a public key whose fingerprint is 4509 75C3 CB1C 9F57 06E2 9FBD 4043 3780 9DD9 BD09

To claim this, I am signing this object: