aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenton Liu <liu.denton+github@gmail.com>2016-08-19 22:37:24 +0800
committerDenton Liu <liu.denton+github@gmail.com>2016-08-19 23:02:54 +0800
commite91e945933eb66d8556b4af1fef657a5f86a7167 (patch)
tree622e21f4d14ec960b2926dd060d6cf2b2d4790b3
parent74545e70a4916437bab59d82637526c3087d1fa4 (diff)
downloaddexon-solidity-e91e945933eb66d8556b4af1fef657a5f86a7167.tar.gz
dexon-solidity-e91e945933eb66d8556b4af1fef657a5f86a7167.tar.zst
dexon-solidity-e91e945933eb66d8556b4af1fef657a5f86a7167.zip
Remove unnecessary contracts
-rw-r--r--std/Coin9
-rw-r--r--std/CoinReg6
-rw-r--r--std/Config6
-rw-r--r--std/NameReg6
-rw-r--r--std/coin9
-rw-r--r--std/configUser5
-rw-r--r--std/named9
-rw-r--r--std/service8
-rw-r--r--std/std8
9 files changed, 2 insertions, 64 deletions
diff --git a/std/Coin b/std/Coin
deleted file mode 100644
index aca30e6b..00000000
--- a/std/Coin
+++ /dev/null
@@ -1,9 +0,0 @@
-contract Coin {
- function isApprovedFor(address _target, address _proxy) constant returns (bool _r) {}
- function isApproved(address _proxy) constant returns (bool _r) {}
- function sendCoinFrom(address _from, uint256 _val, address _to) {}
- function coinBalanceOf(address _a) constant returns (uint256 _r) {}
- function sendCoin(uint256 _val, address _to) {}
- function coinBalance() constant returns (uint256 _r) {}
- function approve(address _a) {}
-}
diff --git a/std/CoinReg b/std/CoinReg
deleted file mode 100644
index 58400a98..00000000
--- a/std/CoinReg
+++ /dev/null
@@ -1,6 +0,0 @@
-contract CoinReg{
- function count() constant returns (uint256 r) {}
- function info(uint256 i) constant returns (address addr, bytes3 name, uint256 denom) {}
- function register(bytes3 name, uint256 denom) {}
- function unregister() {}
-}
diff --git a/std/Config b/std/Config
deleted file mode 100644
index 868e07df..00000000
--- a/std/Config
+++ /dev/null
@@ -1,6 +0,0 @@
-contract Config {
- function lookup(uint256 service) constant returns (address a) {}
- function kill() {}
- function unregister(uint256 id) {}
- function register(uint256 id, address service) {}
-}
diff --git a/std/NameReg b/std/NameReg
deleted file mode 100644
index 48fd6c6e..00000000
--- a/std/NameReg
+++ /dev/null
@@ -1,6 +0,0 @@
-contract NameReg {
- function register(bytes32 name) {}
- function addressOf(bytes32 name) constant returns (address addr) {}
- function unregister() {}
- function nameOf(address addr) constant returns (bytes32 name) {}
-}
diff --git a/std/coin b/std/coin
deleted file mode 100644
index b8ed5e4b..00000000
--- a/std/coin
+++ /dev/null
@@ -1,9 +0,0 @@
-import "./CoinReg";
-import "./Config";
-import "./configUser";
-
-contract coin is configUser {
- function coin(bytes3 name, uint denom) {
- CoinReg(Config(configAddr()).lookup(3)).register(name, denom);
- }
-}
diff --git a/std/configUser b/std/configUser
deleted file mode 100644
index 15a91621..00000000
--- a/std/configUser
+++ /dev/null
@@ -1,5 +0,0 @@
-contract configUser {
- function configAddr() constant returns (address a) {
- return 0xc6d9d2cd449a754c494264e1809c50e34d64562b;
- }
-}
diff --git a/std/named b/std/named
deleted file mode 100644
index 3907bf77..00000000
--- a/std/named
+++ /dev/null
@@ -1,9 +0,0 @@
-import "./Config";
-import "./NameReg";
-import "./configUser";
-
-contract named is configUser {
- function named(bytes32 name) {
- NameReg(Config(configAddr()).lookup(1)).register(name);
- }
-}
diff --git a/std/service b/std/service
deleted file mode 100644
index 48efae0e..00000000
--- a/std/service
+++ /dev/null
@@ -1,8 +0,0 @@
-import "./Config";
-import "./configUser";
-
-contract service is configUser {
- function service(uint _n) {
- Config(configAddr()).register(_n, this);
- }
-}
diff --git a/std/std b/std/std
index d4fed275..785dc1ce 100644
--- a/std/std
+++ b/std/std
@@ -1,8 +1,4 @@
import "./owned";
import "./mortal";
-import "./Config";
-import "./configUser";
-import "./NameReg";
-import "./named";
-import "./Coin";
-import "./ExampleCoin";
+import "./Token";
+import "./ExampleToken";