Skip to content

Instantly share code, notes, and snippets.

@HaoyangLiu
HaoyangLiu / ABCToken.sol
Last active November 9, 2022 16:27
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.4+commit.1dca32f3.js&optimize=true&gist=
pragma solidity 0.6.4;
import "./Context.sol";
import "./IERC20.sol";
import "./SafeMath.sol";
import "./Ownable.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
@HaoyangLiu
HaoyangLiu / BGBP.sol
Created July 12, 2019 06:26
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.8+commit.23d335f2.js&optimize=true&gist=
pragma solidity 0.5.8;
import 'github.com/OpenZeppelin/openzeppelin-solidity/contracts/token/ERC20/ERC20.sol';
import 'github.com/OpenZeppelin/openzeppelin-solidity/contracts/lifecycle/Pausable.sol';
import 'github.com/OpenZeppelin/openzeppelin-solidity/contracts/ownership/Ownable.sol';
contract BlackListableToken is Ownable, ERC20 {
/////// Getters to allow the same blacklist to be used also by other contracts (including upgraded Tether) ///////
function getBlackListStatus(address _maker) external view returns (bool) {
@HaoyangLiu
HaoyangLiu / readme.md
Last active June 6, 2019 08:47
General description for predefined scripts
  1. Implement a set of predefined verification fuctions. These fuctions signature should be like this
fn(address, stdTx, ...parameters){
}
  1. Add a new transaction type. With the new transaction, each address can specify on what transaction, execute which verification functions and corresponding parameters:
|key                                 | value          | type      |
|------------------------------------| -------------- |-----------|
|"func"+address+transactionType | function names |[]string |
@HaoyangLiu
HaoyangLiu / README-Template.md
Created December 1, 2018 07:41 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@HaoyangLiu
HaoyangLiu / keybase.md
Created November 9, 2018 05:36
HaoyangLiu

Keybase proof

I hereby claim:

  • I am haoyangliu on github.
  • I am xiaji261 (https://keybase.io/xiaji261) on keybase.
  • I have a public key ASB717PAs9WqJ4iNsVjA42o1KHt0tv7cYYWUxa0rR9oPLwo

To claim this, I am signing this object: