Skip to content

Instantly share code, notes, and snippets.

View jin10086's full-sized avatar
🏠
Working from home

gaojin jin10086

🏠
Working from home
View GitHub Profile
@jin10086
jin10086 / t.sol
Created July 21, 2018 12:35
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.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.24;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than asserting 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
@jin10086
jin10086 / dyss.sol
Created July 10, 2018 06:12
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.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.23;
contract Ownable {
address public owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
@jin10086
jin10086 / dyss.sol
Created July 10, 2018 06:09
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.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.23;
contract Ownable {
address public owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
@jin10086
jin10086 / dyss.sol
Created June 30, 2018 13:13
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.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.23;
contract Ownable {
address public owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
@jin10086
jin10086 / Counter.sol
Created June 30, 2018 13:02
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.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.23;
contract Counter {
uint private count = 0;
function increment() public {
count += 1;
}
function decrement() public {
@jin10086
jin10086 / Counter.sol
Created June 13, 2018 10: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.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.23;
contract Counter {
uint private count = 0;
function increment() public {
count += 1;
}
function decrement() public {
@jin10086
jin10086 / Counter.sol
Created June 13, 2018 10:10
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.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.23;
contract Counter {
uint private count = 0;
function increment() public {
count += 1;
}
function decrement() public {
@jin10086
jin10086 / Counter.sol
Created June 13, 2018 10:05
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.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.23;
contract Counter {
uint private count = 0;
function increment() public {
count += 1;
}
function decrement() public {
@jin10086
jin10086 / Counter.sol
Created June 13, 2018 10:02
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.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.23;
contract Counter {
uint private count = 0;
function increment() public {
count += 1;
}
function decrement() public {
@jin10086
jin10086 / Counter.sol
Created May 19, 2018 20:02
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=builtin&optimize=false&gist=
pragma solidity ^0.4.23;
contract Counter {
uint private count = 0;
function increment() public {
count += 1;
}
function decrement() public {