From aa1e0944ec6962957d6e75f955a1540599b69623 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Mon, 8 Aug 2016 17:34:41 -0300 Subject: [PATCH] remove truffle scaffolding --- contracts/ConvertLib.sol | 6 ------ contracts/MetaCoin.sol | 29 ----------------------------- 2 files changed, 35 deletions(-) delete mode 100644 contracts/ConvertLib.sol delete mode 100644 contracts/MetaCoin.sol diff --git a/contracts/ConvertLib.sol b/contracts/ConvertLib.sol deleted file mode 100644 index b5d30aa01..000000000 --- a/contracts/ConvertLib.sol +++ /dev/null @@ -1,6 +0,0 @@ -library ConvertLib{ - function convert(uint amount,uint conversionRate) returns (uint convertedAmount) - { - return amount * conversionRate; - } -} \ No newline at end of file diff --git a/contracts/MetaCoin.sol b/contracts/MetaCoin.sol deleted file mode 100644 index 128f746c1..000000000 --- a/contracts/MetaCoin.sol +++ /dev/null @@ -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]; - } -}