aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwanderer <mjbecze@gmail.com>2015-01-25 08:45:53 +0800
committerwanderer <mjbecze@gmail.com>2015-01-25 08:45:53 +0800
commitfa93480d9aadf16698dd3a4439e1870dcb61b5cc (patch)
tree3023ab9a1894edd43fd652e444e69e2874e8f1e4
parente1fcffcc810bdf6a116cc12e21c5a8750cb86d23 (diff)
downloadgo-tangerine-fa93480d9aadf16698dd3a4439e1870dcb61b5cc.tar.gz
go-tangerine-fa93480d9aadf16698dd3a4439e1870dcb61b5cc.tar.zst
go-tangerine-fa93480d9aadf16698dd3a4439e1870dcb61b5cc.zip
added addressbook
-rw-r--r--lib/local.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/local.js b/lib/local.js
new file mode 100644
index 000000000..30cd14df2
--- /dev/null
+++ b/lib/local.js
@@ -0,0 +1,18 @@
+var addressName = {"0x12378912345789": "Gav", "0x57835893478594739854": "Jeff"};
+var nameAddress = {};
+
+for (var prop in addressName) {
+ if (addressName.hasOwnProperty(prop)) {
+ nameAddress[addressName[prop]] = prop;
+ }
+}
+
+var local = {
+ addressBook:{
+ byName: addressName,
+ byAddress: nameAddress
+ }
+};
+
+if (typeof(module) !== "undefined")
+ module.exports = local;