Browse Source

remove truffle scaffolding

Manuel Araoz 9 years ago
parent
commit
aa1e0944ec
2 changed files with 0 additions and 35 deletions
  1. 0 6
      contracts/ConvertLib.sol
  2. 0 29
      contracts/MetaCoin.sol

+ 0 - 6
contracts/ConvertLib.sol

@@ -1,6 +0,0 @@
-library ConvertLib{
-	function convert(uint amount,uint conversionRate) returns (uint convertedAmount)
-	{
-		return amount * conversionRate;
-	}
-}

+ 0 - 29
contracts/MetaCoin.sol

@@ -1,29 +0,0 @@
-import "ConvertLib.sol";
-
-// This is just a simple example of a coin-like contract.
-// It is not standards compatible and cannot be expected to talk to other
-// coin/token contracts. If you want to create a standards-compliant
-// token, see: https://github.com/ConsenSys/Tokens. Cheers!
-
-contract MetaCoin {
-	mapping (address => uint) balances;
-
-	function MetaCoin() {
-		balances[tx.origin] = 10000;
-	}
-
-	function sendCoin(address receiver, uint amount) returns(bool sufficient) {
-		if (balances[msg.sender] < amount) return false;
-		balances[msg.sender] -= amount;
-		balances[receiver] += amount;
-		return true;
-	}
-
-	function getBalanceInEth(address addr) returns(uint){
-		return ConvertLib.convert(getBalance(addr),2);
-	}
-
-	function getBalance(address addr) returns(uint) {
-  	return balances[addr];
-	}
-}