Skip to content

Instantly share code, notes, and snippets.

Jaewan Yun Jaewan-Yun

View GitHub Profile
View exchange.sol
pragma solidity ^0.4.16;
contract Token {
// ERC-20 token standard interface
function totalSupply() public view returns (uint);
function balanceOf(address tokenOwner) public view returns (uint balance);
function allowance(address tokenOwner, address spender) public view returns (uint remaining);
function transfer(address to, uint tokens) public returns (bool success);
function approve(address spender, uint tokens) public returns (bool success);
function transferFrom(address from, address to, uint tokens) public returns (bool success);
You can’t perform that action at this time.