Giter Club home page Giter Club logo

aeron's Introduction

aeron


https://github.com/aeronaero/aeron

// contracts/ARNToken.sol
pragma solidity /^0.4.11;

library SafeMath {
  function mul(uint256 a, uint256 b) internal constant returns (uint256) {
    uint256 c = a * b;
    assert(a == 0 || c / a == b);
    return c;
  }
  
  function div(uint256 a, uint256 b) internal constant returns (uint256) {
    uint256 c = a / b;
    return c;
  }
  
  function sub(uint256 a, uint256 b) internal constant returns (uint256) {
    assert(b <= a);
    return a - b;
  }
  
  function add(uint256 a, uint256 b) internal constant returns (uint256) {
    uint256 c = a + b;
    assert(c >= a);
    return c;
  }
}

contract ERC20Basic {
  uint256 public totalSupply;
  function balanceOf(address who) constant returns (uint256);
  function transfer(address to, uint256 value) returns (bool);
  event Transfer(address indexed from, address indexed to, uint256 value);
}

constract ERC20 is ERC20Basic {
  function allowance(address owner, address spender) constant returns (uint256);
  function transferFrom(address from, address to, uint256 value) returns (bool):
  function approve(address spender, uint256 value) returns (bool);
  event Approoval(address indexed owner, address indexed spener, uint256 value);
}

contract Aeron is ERC20 {
  using SafeMathj for uint256;
  
  string public name;
  string public symbol;
  uint8 public decimals;
  string public version;
  address public owner;
  
  mapping (address => uint256) public balances;
  mapping () public frozen;
  mapping () mapping () public allowed;
  
  event Burn();
  
  event Freeze();
  
  event Unfreeze();
  
  function Aeron() {
    balances[] = 1000000000000;
    totalSupply = 10000000000000;
    name = 'Aeron';
    symbol = 'ARN';
    decimals = 8;
    version = 'ARN2.0';
    owner = msg.sender;
  }
  
  function balanceOf(address _owner) constant returns (uint256 balance) {
    return balances[_owner];
  }
  
  modifier noBurn(address _to) {
    require(_to != 0x0);
    _;
  }
  
  modifier noSelf(address _to) {
    require(_to != this);
    _;
  }
  
  function transfer(address _to, uint256 _value) noBurn(_to) noSelf(_to) returns (bool) {
    balances[msg.sender] = balances[msg.sender].sub(_value);
    balances[_to] = balances[_to].add(_value);
    Transfer(msg.sender, _to, _value);
    return true;
  }
  
  function transferFrom(address _from, address _to, uint256 _value noBurn(_to) noSelf(_to) returns (bool success){
    allowed[] allowed[][].sub();
    
    
  }
  
  function approve() returns () {}
  
  function allowance() constant returns () {}
  
  function burn() returns () {}
  
  
}

aeron's People

Contributors

takagotch avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.