This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.4.21; | |
| /// @author MinakoKojima (https://github.com/lychees) | |
| contract SponsorToken{ | |
| address public owner; | |
| mapping (address => bool) public admins; | |
| struct Order { | |
| address[] sponsors; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.4.21; | |
| /// @author MinakoKojima (https://github.com/lychees) | |
| contract DecentralizedExchangeHotPotato { | |
| address private owner; | |
| mapping (address => bool) private admins; | |
| struct Order { | |
| address creator; | |
| address owner; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// Smart Signature Beta v0.1 | |
| pragma solidity ^0.4.20; | |
| library SafeMath { | |
| /** | |
| * @dev Multiplies two numbers, throws on overflow. | |
| */ | |
| function mul(uint256 a, uint256 b) internal pure returns (uint256) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |