Skip to content

Instantly share code, notes, and snippets.

View sherlock-shi-x's full-sized avatar
🤠
Hoooooa

Sherlock sherlock-shi-x

🤠
Hoooooa
View GitHub Profile
@sherlock-shi-x
sherlock-shi-x / LuckyETH.sol
Last active March 13, 2018 02:25
LuckyETH
pragma solidity ^0.4.20;
// <ORACLIZE_API>
/*
Copyright (c) 2015-2016 Oraclize SRL
Copyright (c) 2016 Oraclize LTD
Permission is hereby granted, free of charge, to any person obtaining a copy
@sherlock-shi-x
sherlock-shi-x / CryptoThreeKingdomsTokenPackage.sol
Last active March 5, 2018 03:05
CryptoThreeKingdomsTokenPackage
pragma solidity ^0.4.20;
import "github.com/oraclize/ethereum-api/oraclizeAPI.sol";
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
@sherlock-shi-x
sherlock-shi-x / CryptoThreeKingdoms.sol
Last active March 26, 2018 14:44
CryptoThreeKingdoms
pragma solidity ^0.4.20;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
pragma solidity ^0.4.18;
// <ORACLIZE_API>
/*
Copyright (c) 2015-2016 Oraclize SRL
Copyright (c) 2016 Oraclize LTD
Permission is hereby granted, free of charge, to any person obtaining a copy
@sherlock-shi-x
sherlock-shi-x / sponsorTokenDoor.sol
Last active February 27, 2018 10:22
STwithDoor
pragma solidity ^0.4.20;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
@sherlock-shi-x
sherlock-shi-x / moe.sol
Last active February 22, 2018 02:19
moe
pragma solidity ^0.4.19;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
@sherlock-shi-x
sherlock-shi-x / sponsorToken.sol
Last active March 22, 2018 12:04 — forked from lychees/sponsorToken.sol
sponsorToken.sol
pragma solidity ^0.4.20;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
pragma solidity ^0.4.18;
contract BotBob {
address owner;
mapping (address => bool) isAdmins;
IMainContract private iMainContract;
pragma solidity ^0.4.18;
contract BotAlice {
address owner;
mapping (address => bool) isAdmins;
IMainContract private iMainContract;
IBotBob private iBotBob;
pragma solidity ^0.4.18;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;