Skip to content

Commit

Permalink
approve added
Browse files Browse the repository at this point in the history
  • Loading branch information
hnamzian committed Jun 9, 2018
1 parent 375f79a commit 05a24e0
Show file tree
Hide file tree
Showing 8 changed files with 125 additions and 1,000 deletions.
1 change: 0 additions & 1 deletion contracts.json

This file was deleted.

3 changes: 3 additions & 0 deletions contracts/openZeppelin/token/ERC20/BasicToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ contract BasicToken is ERC20Basic {

mapping(address => uint256) balances;

uint8 public decimals_;
uint256 totalSupply_;
string public name_;
string public symbol_;

/**
* @dev total number of tokens in existence
Expand Down
16 changes: 0 additions & 16 deletions contracts/openZeppelin/token/ERC20/DetailedERC20.sol

This file was deleted.

8 changes: 7 additions & 1 deletion contracts/openZeppelin/token/ERC20/StandardToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ pragma solidity ^0.4.23;

import "./BasicToken.sol";
import "./ERC20.sol";
import "../../ownership/Ownable.sol";


/**
Expand All @@ -11,10 +12,15 @@ import "./ERC20.sol";
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/
contract StandardToken is ERC20, BasicToken {
contract StandardToken is ERC20, BasicToken, Ownable {

mapping (address => mapping (address => uint256)) internal allowed;

constructor() public {
decimals_ = 18;
totalSupply_ = 1e9 * 10 ** decimals_;
balances[owner] = totalSupply_;
}

/**
* @dev Transfer tokens from one address to another
Expand Down
Loading

0 comments on commit 05a24e0

Please sign in to comment.