Skip to content

Instantly share code, notes, and snippets.

View lychees's full-sized avatar
🌴
People, Fund, Strategy ...

minakokojima lychees

🌴
People, Fund, Strategy ...
View GitHub Profile
@lychees
lychees / PokeKitties.sol
Created November 18, 2018 05:26
PokeKitties.sol
pragma solidity ^0.4.21;
/// @author MinakoKojima (https://github.com/lychees)
contract DecentralizedExchange{
address public owner;
mapping (address => bool) public admins;
struct Order {
address owner;
@lychees
lychees / A.solidity
Last active November 5, 2018 19:25
PonziToken
// https://etherscan.io/address/0x9f4fd6c336388f2ab7dc7bbe4740ae7b88b880d7#code
pragma solidity ^0.4.18;
// If you wanna escape this contract REALLY FAST
// 1. open MEW/METAMASK
// 2. Put this as data: 0xb1e35242
// 3. send 150000+ gas
// That calls the getMeOutOfHere() method
// Remember, cashout fee is 10% :^)
@lychees
lychees / temp.sol
Created June 21, 2018 17:12
temp.sol
/**
* CryptoHero Contract Nebulas Version
* ©️ Andoromeda Foundation All Right Reserved.
* @author: Frank Wei <[email protected]>
* @version: 1.0
*/
"use strict"
class Operator {
/**
* LinkIdol Contract, copyright is owned by Andoromeda Foundation
* @author: Frank Wei <[email protected]>
* Last updated: 12:00 AM, May 30th
* Test Net Contract Address: n1oecF9SK8wUKxAcTVCYfvsvG3P6TmHWdzW
* @version: 0.9 beta - need to find the potential bug
*/
"use strict"
class Operator {
@lychees
lychees / 721.sol
Last active June 8, 2018 15:51
NRC721
/**
* LinkIdol Contract, copyright is owned by Andoromeda Foundation
* @author: Frank Wei <[email protected]>
* Last updated: 12:00 AM, May 30th
* Test Net Contract Address: n1oecF9SK8wUKxAcTVCYfvsvG3P6TmHWdzW
* @version: 0.9 beta - need to find the potential bug
*/
"use strict"
class Operator {
@lychees
lychees / idoldraw.sol
Last active May 31, 2018 17:35
idoldraw.sol
pragma solidity ^0.4.24;
contract IdolDraw {
event Buy(address indexed buyerAddr);
event RollDice(address indexed playerAddr, address indexed prizeIssuer, uint prizeId);
address public mainContractAddr;
uint256 public sigmaType = 6;
@lychees
lychees / linkidol.sol
Last active May 30, 2018 06:53
linkidol.sol
pragma solidity ^0.4.24;
/// @title Interface for contracts conforming to ERC-721: Non-Fungible Tokens
/// @author MinakoKojima (https://github.com/lychees)
contract ERC721 {
// Required methods
function totalSupply() public view returns (uint256 total);
function balanceOf(address _owner) public view returns (uint256 balance);
function ownerOf(uint256 _tokenId) public view returns (address owner);
function approve(address _to, uint256 _tokenId) public;
pragma solidity ^0.4.21;
/// @title Interface for contracts conforming to ERC-721: Non-Fungible Tokens
/// @author MinakoKojima (https://github.com/lychees)
contract ERC721 {
// Required methods
function totalSupply() public view returns (uint256 total);
function balanceOf(address _owner) public view returns (uint256 balance);
function ownerOf(uint256 _tokenId) public view returns (address owner);
function approve(address _to, uint256 _tokenId) public;
@lychees
lychees / sponsorTokenV0.05.sol
Last active May 30, 2018 05:31
sponsorTokenV0.05
pragma solidity ^0.4.21;
/// @author MinakoKojima (https://github.com/lychees)
contract SponsorToken{
address public owner;
mapping (address => bool) public admins;
struct Order {
address issuer;
@lychees
lychees / sponsorTokenV0.04.sol
Last active April 11, 2018 17:50
sponsorTokenV0.04
pragma solidity ^0.4.21;
/// @author MinakoKojima (https://github.com/lychees)
contract SponsorToken{
address public owner;
mapping (address => bool) public admins;
struct Order {
address issuer;